@ckeditor/ckeditor5-ai 47.6.2-alpha.0 → 47.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/model/aiactionsinteraction.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/aiassistantediting.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/aiformpromptview.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/prompthistory.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/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/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/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/utils/promisequeue.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/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.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/aiskeleton.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/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.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/documentrange.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.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/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/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.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/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xc36ce6=_0x50f8;(function(_0x40fe26,_0x32ec45){const _0x4a0ac9=_0x50f8,_0xda47d2=_0x40fe26();while(!![]){try{const _0x48fbea=parseInt(_0x4a0ac9(0x174))/0x1*(parseInt(_0x4a0ac9(0x105))/0x2)+-parseInt(_0x4a0ac9(0xeb))/0x3*(parseInt(_0x4a0ac9(0x182))/0x4)+parseInt(_0x4a0ac9(0x155))/0x5*(-parseInt(_0x4a0ac9(0x131))/0x6)+-parseInt(_0x4a0ac9(0x11d))/0x7*(-parseInt(_0x4a0ac9(0x164))/0x8)+-parseInt(_0x4a0ac9(0x175))/0x9*(-parseInt(_0x4a0ac9(0x10b))/0xa)+-parseInt(_0x4a0ac9(0xf1))/0xb*(-parseInt(_0x4a0ac9(0xf8))/0xc)+-parseInt(_0x4a0ac9(0x170))/0xd*(parseInt(_0x4a0ac9(0x16f))/0xe);if(_0x48fbea===_0x32ec45)break;else _0xda47d2['push'](_0xda47d2['shift']());}catch(_0x6b58ba){_0xda47d2['push'](_0xda47d2['shift']());}}}(_0x579a,0x6ee9a));import{View as _0x4857de,BalloonPanelView as _0x3ed472,ButtonView as _0x27fabf,clickOutsideHandler as _0x94199d}from'ckeditor5/src/ui.js';import{Collection as _0x148701}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0xc36ce6(0xfd);function _0x579a(){const _0x795b7f=['absolute','from','innerWidth','_repinBalloonPanel','position','_testButtonFit','getBoundingClientRect','block','7JNulCk','appendChild','body','_distributeChips','observe','_makeAncestorsVisible','_renderChipsAndCountRows','showMoreButton','_createMockButton','visibility','pointerEvents','zIndex','.ck-ai-chat','set','_ancestorsToRestore','length','_handleShowMoreButtonClick','_createContainerElements','_setupVisibilityObserver','render','375438GzYaHN','width','_updateBalloonContent','_updateShowMoreButtonVisibility','offsetWidth','cssClasses','reorganizeChips','div','some','_overflowChips','_isContainerVisible','filter','_findTargetContainer','setContainerElement','clientWidth','disconnect','_parentView','extendTemplate','none','top','0px','element','createElement','_applyCalculationStyles','className','_visibleChips','controlsButton','_showMoreBalloonPanelView','border-box','display','_config','left','boxSizing','show','button','isOn','40fHDoUi','hide','block\x20!important','overflowContainer','label','_createShowMoreButton','destroy','_pendingCalculation','right','push','_createShowMoreButtonView','showBalloonPanel','getComputedStyle','execute','rowDetectionTolerance','6590784ulhlFW','hidden','showMoreButtonView','overflowChips','add','isVisible','toLowerCase','children','isIntersecting','50px','forEach','490HLSOPp','282919SddKEP','cloneNode','pin','_bodyCollection','4SCuodL','153PhHeHl','_intersectionObserver','opacity','clientHeight','_createCalculationContainer','abs','_containerElement','_targetContainer','showMoreLabelPrefix','visible\x20!important','textContent','-9999px','_calculateOverflowInContainer','176npcsvV','54687YMvRNT','hideBalloonPanel','_updateOverflowUI','pop','ck-calculation-container','tagName','55TKUHqb','showMoreBalloon','bottom','setTemplate','_applyOverflowResults','_restoreAncestorVisibility','_createShowMoreBalloonPanelView','1388184RQFyoU','_showMoreButtonView','isConnected','slice','+\x201','300px','disableAnimationOnEnter','calculationContainer','undefined','_checkAndHandleOverflow','clear','innerHTML','parentElement','135268TeFUBg','content','_locale','includes','maxVisibleRows','classList','497570CIvteM','querySelector','_calculateContainerWidth','auto','height','visible','innerHeight','remove','style','documentElement'];_0x579a=function(){return _0x795b7f;};return _0x579a();}function _0x50f8(_0x3941ee,_0x41940b){const _0x579ad7=_0x579a();return _0x50f8=function(_0x50f8c6,_0x553633){_0x50f8c6=_0x50f8c6-0xeb;let _0x1e27c1=_0x579ad7[_0x50f8c6];return _0x1e27c1;},_0x50f8(_0x3941ee,_0x41940b);}export class AIChatChipsOverflowManager{[_0xc36ce6(0x107)];[_0xc36ce6(0x14f)];[_0xc36ce6(0x14a)];[_0xc36ce6(0x13a)];[_0xc36ce6(0xf9)]=null;[_0xc36ce6(0x14c)]=null;[_0xc36ce6(0x17b)]=null;[_0xc36ce6(0x173)];[_0xc36ce6(0x141)]=null;[_0xc36ce6(0x176)]=null;[_0xc36ce6(0x15c)]=!0x1;constructor(_0x249ce8,_0x4c6b86,_0x1eb8e3,_0x2754fe,_0xf2b734){const _0xce9ddb=_0xc36ce6;this[_0xce9ddb(0x107)]=_0x249ce8,this[_0xce9ddb(0x14a)]=_0x4c6b86,this[_0xce9ddb(0x14f)]={...hn,..._0x1eb8e3,'cssClasses':{'controlsButton':'','calculationContainer':_0xce9ddb(0xef),..._0x1eb8e3[_0xce9ddb(0x136)]}},this[_0xce9ddb(0x13a)]=new _0x148701(),this[_0xce9ddb(0x173)]=_0x2754fe,this[_0xce9ddb(0x141)]=_0xf2b734||null;}[_0xc36ce6(0x13e)](_0x2c2513){const _0x30111e=_0xc36ce6;this[_0x30111e(0x176)]&&(this[_0x30111e(0x176)][_0x30111e(0x140)](),this[_0x30111e(0x176)]=null),this[_0x30111e(0x17b)]=_0x2c2513,this[_0x30111e(0x12f)]();}get[_0xc36ce6(0x166)](){const _0x28652f=_0xc36ce6;return this[_0x28652f(0xf9)];}get[_0xc36ce6(0x167)](){const _0x9c7892=_0xc36ce6;return this[_0x9c7892(0x13a)];}[_0xc36ce6(0x137)](){requestAnimationFrame(()=>{const _0x229228=_0x50f8;this[_0x229228(0x101)]();});}[_0xc36ce6(0x160)](){const _0xf68efc=_0xc36ce6;this[_0xf68efc(0xf9)]&&this[_0xf68efc(0x14c)]&&(this[_0xf68efc(0x133)](),this[_0xf68efc(0xf9)][_0xf68efc(0x154)]=!0x0,this[_0xf68efc(0x14c)][_0xf68efc(0x152)](),this[_0xf68efc(0x14c)][_0xf68efc(0x172)]({'target':this[_0xf68efc(0xf9)][_0xf68efc(0x146)],'limiter':document[_0xf68efc(0x10c)](_0xf68efc(0x129))}));}[_0xc36ce6(0xec)](){const _0x5a71ee=_0xc36ce6;this[_0x5a71ee(0xf9)]&&this[_0x5a71ee(0x14c)]&&(this[_0x5a71ee(0xf9)][_0x5a71ee(0x154)]=!0x1,this[_0x5a71ee(0x14c)][_0x5a71ee(0x156)]());}[_0xc36ce6(0x102)](){const _0x37eb5=_0xc36ce6;this[_0x37eb5(0x13a)][_0x37eb5(0x102)](),this[_0x37eb5(0xec)](),this[_0x37eb5(0x134)](),this[_0x37eb5(0xf9)]&&(this[_0x37eb5(0xf9)][_0x37eb5(0x159)]=''),this[_0x37eb5(0x14c)]&&this[_0x37eb5(0x14c)][_0x37eb5(0x106)][_0x37eb5(0x102)]();}[_0xc36ce6(0x15b)](){const _0x51fdd0=_0xc36ce6;this[_0x51fdd0(0x176)]&&(this[_0x51fdd0(0x176)][_0x51fdd0(0x140)](),this[_0x51fdd0(0x176)]=null),this[_0x51fdd0(0xf9)]&&(this[_0x51fdd0(0xf9)][_0x51fdd0(0x15b)](),this[_0x51fdd0(0xf9)]=null),this[_0x51fdd0(0x14c)]&&(this[_0x51fdd0(0x14c)][_0x51fdd0(0x15b)](),this[_0x51fdd0(0x14c)]=null);}[_0xc36ce6(0x101)](){const _0x20ce65=_0xc36ce6;if(!this[_0x20ce65(0x17b)])return;if(!this[_0x20ce65(0x13b)]())return void(this[_0x20ce65(0x15c)]=!0x0);this[_0x20ce65(0x15c)]=!0x1;const _0x5729d8=[...this[_0x20ce65(0x14a)],...this[_0x20ce65(0x13a)]],_0x519a31=this[_0x20ce65(0x179)](),_0x264919=this[_0x20ce65(0x181)](_0x519a31,_0x5729d8),_0x58dbd5=_0x519a31[_0x20ce65(0x12b)];_0x58dbd5&&this[_0x20ce65(0xf6)](_0x58dbd5),_0x519a31[_0x20ce65(0x112)](),this[_0x20ce65(0xf5)](_0x5729d8,_0x264919);}[_0xc36ce6(0x15a)](){const _0x595d03=_0xc36ce6;this[_0x595d03(0xf9)]=this[_0x595d03(0x15f)](),this[_0x595d03(0x14c)]=this[_0x595d03(0xf7)](),this[_0x595d03(0xf9)][_0x595d03(0x130)](),this[_0x595d03(0x17b)][_0x595d03(0x11e)](this[_0x595d03(0xf9)][_0x595d03(0x146)]),this[_0x595d03(0xf9)]['on'](_0x595d03(0x162),()=>{const _0x3ae2ce=_0x595d03;this[_0x3ae2ce(0x12d)]();}),_0x94199d({'emitter':this[_0x595d03(0x14c)],'contextElements':[this[_0x595d03(0x14c)][_0x595d03(0x146)],this[_0x595d03(0xf9)][_0x595d03(0x146)]],'callback':()=>this[_0x595d03(0xec)](),'activator':()=>this[_0x595d03(0xf9)][_0x595d03(0x154)]});}[_0xc36ce6(0x15f)](){const _0x2ccf48=_0xc36ce6,_0xcf2f5f=new _0x27fabf(this[_0x2ccf48(0x107)]);_0xcf2f5f[_0x2ccf48(0x12a)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x4b3f65=[this[_0x2ccf48(0x14f)][_0x2ccf48(0x136)][_0x2ccf48(0x124)]];return this[_0x2ccf48(0x14f)][_0x2ccf48(0x136)][_0x2ccf48(0x14b)]&&_0x4b3f65[_0x2ccf48(0x15e)](this[_0x2ccf48(0x14f)][_0x2ccf48(0x136)][_0x2ccf48(0x14b)]),_0xcf2f5f[_0x2ccf48(0x142)]({'attributes':{'class':_0x4b3f65}}),_0xcf2f5f;}[_0xc36ce6(0xf7)](){const _0x4cc470=_0xc36ce6,_0x54a2ea=new _0x3ed472(this[_0x4cc470(0x107)]);return _0x54a2ea[_0x4cc470(0x142)]({'attributes':{'class':this[_0x4cc470(0x14f)][_0x4cc470(0x136)][_0x4cc470(0xf2)]}}),this[_0x4cc470(0x173)][_0x4cc470(0x168)](_0x54a2ea),_0x54a2ea;}[_0xc36ce6(0x133)](){const _0x220305=_0xc36ce6;if(this[_0x220305(0x14c)]&&(this[_0x220305(0x14c)][_0x220305(0x106)][_0x220305(0x102)](),this[_0x220305(0x13a)][_0x220305(0x12c)]>0x0)){this[_0x220305(0x13a)][_0x220305(0x16e)](_0x71ffb3=>{const _0x140259=_0x220305;_0x71ffb3[_0x140259(0xfe)]();});const _0x11e4f6=new _0x4857de(this[_0x220305(0x107)]);_0x11e4f6[_0x220305(0xf4)]({'tag':_0x220305(0x138),'attributes':{'class':this[_0x220305(0x14f)][_0x220305(0x136)][_0x220305(0x158)]},'children':this[_0x220305(0x13a)]}),this[_0x220305(0x14c)][_0x220305(0x106)][_0x220305(0x168)](_0x11e4f6);}}[_0xc36ce6(0x12d)](){const _0x37b5be=_0xc36ce6;this[_0x37b5be(0xf9)][_0x37b5be(0x154)]?this[_0x37b5be(0xec)]():this[_0x37b5be(0x160)]();}[_0xc36ce6(0x134)](){const _0x107db1=_0xc36ce6,_0x4696d2=this[_0x107db1(0x13a)][_0x107db1(0x12c)]>0x0;this[_0x107db1(0xf9)]?.[_0x107db1(0x146)]&&(this[_0x107db1(0xf9)][_0x107db1(0x146)][_0x107db1(0x113)][_0x107db1(0x14e)]=_0x4696d2?'':_0x107db1(0x143));}[_0xc36ce6(0x118)](){const _0xaca2f1=_0xc36ce6;this[_0xaca2f1(0xf9)]?.[_0xaca2f1(0x154)]&&this[_0xaca2f1(0x14c)]?.[_0xaca2f1(0x169)]&&this[_0xaca2f1(0xf9)][_0xaca2f1(0x146)]&&this[_0xaca2f1(0x14c)][_0xaca2f1(0x172)]({'target':this[_0xaca2f1(0xf9)][_0xaca2f1(0x146)],'limiter':document[_0xaca2f1(0x10c)](_0xaca2f1(0x129))});}[_0xc36ce6(0x13d)](_0x33f8a2){const _0x51b98c=_0xc36ce6,_0x1afc82=this[_0x51b98c(0x17b)]?.[_0x51b98c(0xf0)][_0x51b98c(0x16a)]()||_0x51b98c(0x138),_0x48adb9=this[_0x51b98c(0x17b)]?.[_0x51b98c(0x10a)];if(_0x48adb9){const _0x9e53df=_0x48adb9[0x0]||'',_0xe74c20=_0x33f8a2[_0x51b98c(0x10c)]('.'+_0x9e53df),_0x76a35b=_0x33f8a2[_0x51b98c(0x10c)](_0x1afc82);return _0xe74c20||_0x76a35b||_0x33f8a2;}return _0x33f8a2[_0x51b98c(0x10c)](_0x1afc82)||_0x33f8a2;}[_0xc36ce6(0x10d)](){const _0x42df06=_0xc36ce6,_0x3404d1=this[_0x42df06(0x141)]?.[_0x42df06(0x146)]||this[_0x42df06(0x17b)];if(!_0x3404d1)return an;const _0x4cd7c0=window[_0x42df06(0x161)](_0x3404d1)[_0x42df06(0x132)];if(_0x42df06(0x10e)===_0x4cd7c0||_0x42df06(0x145)===_0x4cd7c0||!_0x4cd7c0){const _0x183d2b=_0x3404d1[_0x42df06(0x104)];if(_0x183d2b){const _0x3178ce=window[_0x42df06(0x161)](_0x183d2b);return _0x42df06(0x10e)!==_0x3178ce[_0x42df06(0x132)]?_0x3178ce[_0x42df06(0x132)]:an;}return an;}return _0x4cd7c0;}[_0xc36ce6(0x148)](_0x1837cd,_0x517d04){const _0x1272b7=_0xc36ce6;this[_0x1272b7(0x14f)][_0x1272b7(0x136)][_0x1272b7(0xff)]&&_0x1837cd[_0x1272b7(0x10a)][_0x1272b7(0x168)](this[_0x1272b7(0x14f)][_0x1272b7(0x136)][_0x1272b7(0xff)]),_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x132)]=_0x517d04,_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x119)]=_0x1272b7(0x115),_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x144)]=_0x1272b7(0x180),_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x150)]=_0x1272b7(0x180),_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x177)]='0',_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x127)]=_0x1272b7(0x143),_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x128)]='-1',_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x126)]=_0x1272b7(0x17e),_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x14e)]=_0x1272b7(0x157),_0x1837cd[_0x1272b7(0x113)][_0x1272b7(0x151)]=_0x1272b7(0x14d);}[_0xc36ce6(0xf6)](_0x317c0d){const _0x29f476=_0xc36ce6;_0x317c0d[_0x29f476(0x16e)](({element:_0x5f31c0,originalDisplay:_0x18b974,originalVisibility:_0x15542c})=>{const _0x19e789=_0x29f476;_0x5f31c0[_0x19e789(0x113)][_0x19e789(0x14e)]=_0x18b974,_0x5f31c0[_0x19e789(0x113)][_0x19e789(0x126)]=_0x15542c;});}[_0xc36ce6(0x122)](_0x550d64){const _0x4a1570=_0xc36ce6,_0x1e768e=[];let _0x2af71c=_0x550d64;for(;_0x2af71c&&_0x2af71c!==document[_0x4a1570(0x11f)];){const _0x27d28d=window[_0x4a1570(0x161)](_0x2af71c);_0x4a1570(0x143)!==_0x27d28d[_0x4a1570(0x14e)]&&_0x4a1570(0x165)!==_0x27d28d[_0x4a1570(0x126)]||(_0x1e768e[_0x4a1570(0x15e)]({'element':_0x2af71c,'originalDisplay':_0x2af71c[_0x4a1570(0x113)][_0x4a1570(0x14e)],'originalVisibility':_0x2af71c[_0x4a1570(0x113)][_0x4a1570(0x126)]}),_0x2af71c[_0x4a1570(0x113)][_0x4a1570(0x14e)]=_0x4a1570(0x11c),_0x2af71c[_0x4a1570(0x113)][_0x4a1570(0x126)]=_0x4a1570(0x110)),_0x2af71c=_0x2af71c[_0x4a1570(0x104)];}return _0x1e768e;}[_0xc36ce6(0x12e)](){const _0x37733a=_0xc36ce6;let _0x3ec7ba,_0x5aecd6;return this[_0x37733a(0x141)]?.[_0x37733a(0x146)]?(_0x3ec7ba=this[_0x37733a(0x141)][_0x37733a(0x146)][_0x37733a(0x171)](!0x0),_0x5aecd6=this[_0x37733a(0x13d)](_0x3ec7ba)):(_0x3ec7ba=document[_0x37733a(0x147)](_0x37733a(0x138)),_0x5aecd6=_0x3ec7ba),{'calculationContainer':_0x3ec7ba,'targetContainer':_0x5aecd6};}[_0xc36ce6(0x179)](){const _0x38928f=_0xc36ce6,{calculationContainer:_0x31c848,targetContainer:_0x26aed9}=this[_0x38928f(0x12e)](),_0x5d35d1=this[_0x38928f(0x10d)]();this[_0x38928f(0x148)](_0x31c848,_0x5d35d1);const _0x2fed23=this[_0x38928f(0x141)]?.[_0x38928f(0x146)]||this[_0x38928f(0x17b)],_0x38c276=_0x2fed23?.[_0x38928f(0x104)];_0x38c276?_0x38c276[_0x38928f(0x11e)](_0x31c848):document[_0x38928f(0x11f)][_0x38928f(0x11e)](_0x31c848),_0x31c848[_0x38928f(0x17c)]=_0x26aed9;const _0x7198c0=this[_0x38928f(0x122)](_0x38c276||null);return _0x31c848[_0x38928f(0x135)],_0x31c848[_0x38928f(0x12b)]=_0x7198c0,_0x31c848;}[_0xc36ce6(0x181)](_0x1185ef,_0x5535c1){const _0x5ebfd3=_0xc36ce6,_0x1b6e0a=_0x1185ef[_0x5ebfd3(0x17c)]||_0x1185ef,_0x5ed8c7=[],{rowCount:_0x2b15a0}=this[_0x5ebfd3(0x123)](_0x1b6e0a,_0x5535c1);if(_0x2b15a0<=this[_0x5ebfd3(0x14f)][_0x5ebfd3(0x109)])return _0x5ed8c7;const _0x7a1593=_0x5535c1[_0x5ebfd3(0xfb)]();for(;_0x7a1593[_0x5ebfd3(0x12c)]>0x0;){if(this[_0x5ebfd3(0x11a)](_0x1185ef,_0x1b6e0a,_0x7a1593)){const _0xd85dba=_0x5535c1[_0x5ebfd3(0x13c)](_0x203708=>!_0x7a1593[_0x5ebfd3(0x108)](_0x203708));_0x5ed8c7[_0x5ebfd3(0x15e)](..._0xd85dba);break;}if(!_0x7a1593[_0x5ebfd3(0xee)]())break;}return _0x5ed8c7;}[_0xc36ce6(0x123)](_0x2d16f6,_0x40819d){const _0x15eda9=_0xc36ce6;_0x2d16f6[_0x15eda9(0x103)]='',_0x40819d[_0x15eda9(0x16e)](_0x36682a=>{const _0x2ded66=_0x15eda9;if(_0x36682a[_0x2ded66(0x146)]){const _0x25b0e4=_0x36682a[_0x2ded66(0x146)][_0x2ded66(0x171)](!0x0);_0x2d16f6[_0x2ded66(0x11e)](_0x25b0e4);}}),_0x2d16f6[_0x15eda9(0x135)];const _0x1e606e=_0x2d16f6[_0x15eda9(0x16b)],_0x22f0ea=[];return Array[_0x15eda9(0x116)](_0x1e606e)[_0x15eda9(0x16e)](_0x186ed7=>{const _0x4ada1c=_0x15eda9,_0x23590a=_0x186ed7[_0x4ada1c(0x11b)]()[_0x4ada1c(0x144)];_0x22f0ea[_0x4ada1c(0x139)](_0x4842a9=>Math[_0x4ada1c(0x17a)](_0x4842a9-_0x23590a)<this[_0x4ada1c(0x14f)][_0x4ada1c(0x163)])||_0x22f0ea[_0x4ada1c(0x15e)](_0x23590a);}),{'rowCount':_0x22f0ea[_0x15eda9(0x12c)]};}[_0xc36ce6(0x125)](){const _0x16469e=_0xc36ce6,_0x475e34=document[_0x16469e(0x147)](_0x16469e(0x153));return _0x475e34[_0x16469e(0x149)]=this[_0x16469e(0x14f)][_0x16469e(0x136)][_0x16469e(0x124)],this[_0x16469e(0x14f)][_0x16469e(0x136)][_0x16469e(0x14b)]&&_0x475e34[_0x16469e(0x10a)][_0x16469e(0x168)](this[_0x16469e(0x14f)][_0x16469e(0x136)][_0x16469e(0x14b)]),_0x475e34[_0x16469e(0x17f)]=_0x16469e(0xfc),_0x475e34;}[_0xc36ce6(0x11a)](_0x31698a,_0x131f61,_0x3dfc83){const _0x2434ba=_0xc36ce6;this[_0x2434ba(0x123)](_0x131f61,_0x3dfc83);const _0x219b6d=this[_0x2434ba(0x125)]();_0x31698a[_0x2434ba(0x11e)](_0x219b6d),_0x31698a[_0x2434ba(0x135)];const _0xed4290=[..._0x131f61[_0x2434ba(0x16b)],_0x219b6d],_0x2a2c96=[];_0xed4290[_0x2434ba(0x16e)](_0x584f97=>{const _0x3bf3ae=_0x2434ba,_0x199d8e=_0x584f97[_0x3bf3ae(0x11b)]()[_0x3bf3ae(0x144)];_0x2a2c96[_0x3bf3ae(0x139)](_0x19637a=>Math[_0x3bf3ae(0x17a)](_0x19637a-_0x199d8e)<this[_0x3bf3ae(0x14f)][_0x3bf3ae(0x163)])||_0x2a2c96[_0x3bf3ae(0x15e)](_0x199d8e);});const _0x237ed0=_0x2a2c96[_0x2434ba(0x12c)];return _0x219b6d[_0x2434ba(0x112)](),_0x237ed0<=this[_0x2434ba(0x14f)][_0x2434ba(0x109)];}[_0xc36ce6(0x120)](_0x494697,_0x59f3f5){const _0xb743fa=_0xc36ce6;this[_0xb743fa(0x14a)][_0xb743fa(0x102)](),this[_0xb743fa(0x13a)][_0xb743fa(0x102)](),_0x494697[_0xb743fa(0x16e)](_0x213af2=>{const _0x5f2e1d=_0xb743fa;_0x59f3f5[_0x5f2e1d(0x108)](_0x213af2)?this[_0x5f2e1d(0x13a)][_0x5f2e1d(0x168)](_0x213af2):this[_0x5f2e1d(0x14a)][_0x5f2e1d(0x168)](_0x213af2);});}[_0xc36ce6(0xed)](_0x3758d9){const _0x556827=_0xc36ce6;if(_0x3758d9>0x0&&!this[_0x556827(0xf9)]&&this[_0x556827(0x15a)](),_0x3758d9>0x0&&this[_0x556827(0xf9)]){const _0x4f623e=''+this[_0x556827(0x14f)][_0x556827(0x17d)]+(_0x3758d9<0x63?_0x3758d9:'99');this[_0x556827(0xf9)][_0x556827(0x159)]=_0x4f623e;}this[_0x556827(0x133)](),this[_0x556827(0x134)](),this[_0x556827(0x118)]();}[_0xc36ce6(0xf5)](_0x205ac5,_0x472031){const _0x40535e=_0xc36ce6;this[_0x40535e(0x120)](_0x205ac5,_0x472031),this[_0x40535e(0xed)](_0x472031[_0x40535e(0x12c)]);}[_0xc36ce6(0x12f)](){const _0x49c94c=_0xc36ce6;this[_0x49c94c(0x17b)]&&_0x49c94c(0x100)!=typeof IntersectionObserver&&(this[_0x49c94c(0x176)]=new IntersectionObserver(_0x4c7f96=>{const _0x3a7727=_0x49c94c;_0x4c7f96[0x0][_0x3a7727(0x16c)]&&this[_0x3a7727(0x15c)]&&requestAnimationFrame(()=>{const _0x4153bb=_0x3a7727;this[_0x4153bb(0x101)]();});},{'threshold':0.01,'rootMargin':_0x49c94c(0x16d)}),this[_0x49c94c(0x176)][_0x49c94c(0x121)](this[_0x49c94c(0x17b)]));}[_0xc36ce6(0x13b)](){const _0x1f4436=_0xc36ce6;if(!this[_0x1f4436(0x17b)])return!0x1;if(!this[_0x1f4436(0x17b)][_0x1f4436(0xfa)])return!0x1;const _0x99a753=this[_0x1f4436(0x17b)][_0x1f4436(0x11b)]();if(0x0===_0x99a753[_0x1f4436(0x132)]||0x0===_0x99a753[_0x1f4436(0x10f)])return!0x1;const _0x2a8339=window[_0x1f4436(0x111)]||document[_0x1f4436(0x114)][_0x1f4436(0x178)],_0x57634c=window[_0x1f4436(0x117)]||document[_0x1f4436(0x114)][_0x1f4436(0x13f)],_0x5e3f0=0xc8;return _0x99a753[_0x1f4436(0xf3)]>=-0xc8&&_0x99a753[_0x1f4436(0x144)]<=_0x2a8339+_0x5e3f0&&_0x99a753[_0x1f4436(0x15d)]>=-0xc8&&_0x99a753[_0x1f4436(0x150)]<=_0x57634c+_0x5e3f0;}}
|
|
23
|
+
const _0x372e50=_0x5834;(function(_0x579373,_0x1dda01){const _0x275f6b=_0x5834,_0x377af4=_0x579373();while(!![]){try{const _0xe19331=-parseInt(_0x275f6b(0xce))/0x1*(-parseInt(_0x275f6b(0x149))/0x2)+parseInt(_0x275f6b(0xef))/0x3+-parseInt(_0x275f6b(0x134))/0x4+-parseInt(_0x275f6b(0x117))/0x5*(parseInt(_0x275f6b(0xf2))/0x6)+-parseInt(_0x275f6b(0x10c))/0x7+parseInt(_0x275f6b(0x124))/0x8+parseInt(_0x275f6b(0xec))/0x9;if(_0xe19331===_0x1dda01)break;else _0x377af4['push'](_0x377af4['shift']());}catch(_0x3a6b67){_0x377af4['push'](_0x377af4['shift']());}}}(_0x5af7,0xd3e16));import{View as _0x1a18a3,BalloonPanelView as _0x19ae94,ButtonView as _0x2a658e,clickOutsideHandler as _0x45c447}from'ckeditor5/src/ui.js';import{Collection as _0x5c9846}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x372e50(0x137);function _0x5834(_0x3e7a2d,_0x2a0f2c){const _0x5af797=_0x5af7();return _0x5834=function(_0x5834a6,_0x42e404){_0x5834a6=_0x5834a6-0xbc;let _0x2405ce=_0x5af797[_0x5834a6];return _0x2405ce;},_0x5834(_0x3e7a2d,_0x2a0f2c);}export class AIChatChipsOverflowManager{[_0x372e50(0xe5)];[_0x372e50(0x140)];[_0x372e50(0x108)];[_0x372e50(0xe2)];[_0x372e50(0xd0)]=null;[_0x372e50(0xde)]=null;[_0x372e50(0xfb)]=null;[_0x372e50(0x102)];[_0x372e50(0x104)]=null;[_0x372e50(0xe3)]=null;[_0x372e50(0x109)]=!0x1;constructor(_0x4a0ed8,_0x175bec,_0x47a461,_0x4d6262,_0x3dde8f){const _0x2bf7b2=_0x372e50;this[_0x2bf7b2(0xe5)]=_0x4a0ed8,this[_0x2bf7b2(0x108)]=_0x175bec,this[_0x2bf7b2(0x140)]={...hn,..._0x47a461,'cssClasses':{'controlsButton':'','calculationContainer':_0x2bf7b2(0x119),..._0x47a461[_0x2bf7b2(0x146)]}},this[_0x2bf7b2(0xe2)]=new _0x5c9846(),this[_0x2bf7b2(0x102)]=_0x4d6262,this[_0x2bf7b2(0x104)]=_0x3dde8f||null;}[_0x372e50(0x12b)](_0x383a83){const _0x58769e=_0x372e50;this[_0x58769e(0xe3)]&&(this[_0x58769e(0xe3)][_0x58769e(0x136)](),this[_0x58769e(0xe3)]=null),this[_0x58769e(0xfb)]=_0x383a83,this[_0x58769e(0xe9)]();}get[_0x372e50(0x145)](){const _0x33e07c=_0x372e50;return this[_0x33e07c(0xd0)];}get[_0x372e50(0x138)](){const _0x45e9ec=_0x372e50;return this[_0x45e9ec(0xe2)];}[_0x372e50(0xbe)](){requestAnimationFrame(()=>{const _0x5183b2=_0x5834;this[_0x5183b2(0xf5)]();});}[_0x372e50(0x114)](){const _0x3137fb=_0x372e50;this[_0x3137fb(0xd0)]&&this[_0x3137fb(0xde)]&&(this[_0x3137fb(0x105)](),this[_0x3137fb(0xd0)][_0x3137fb(0x148)]=!0x0,this[_0x3137fb(0xde)][_0x3137fb(0xff)](),this[_0x3137fb(0xde)][_0x3137fb(0xcb)]({'target':this[_0x3137fb(0xd0)][_0x3137fb(0x12e)],'limiter':document[_0x3137fb(0x13a)](_0x3137fb(0xd6))}));}[_0x372e50(0x10a)](){const _0x18610d=_0x372e50;this[_0x18610d(0xd0)]&&this[_0x18610d(0xde)]&&(this[_0x18610d(0xd0)][_0x18610d(0x148)]=!0x1,this[_0x18610d(0xde)][_0x18610d(0x14b)]());}[_0x372e50(0x115)](){const _0xde0585=_0x372e50;this[_0xde0585(0xe2)][_0xde0585(0x115)](),this[_0xde0585(0x10a)](),this[_0xde0585(0x11b)](),this[_0xde0585(0xd0)]&&(this[_0xde0585(0xd0)][_0xde0585(0x14a)]=''),this[_0xde0585(0xde)]&&this[_0xde0585(0xde)][_0xde0585(0xca)][_0xde0585(0x115)]();}[_0x372e50(0xc6)](){const _0x505d20=_0x372e50;this[_0x505d20(0xe3)]&&(this[_0x505d20(0xe3)][_0x505d20(0x136)](),this[_0x505d20(0xe3)]=null),this[_0x505d20(0xd0)]&&(this[_0x505d20(0xd0)][_0x505d20(0xc6)](),this[_0x505d20(0xd0)]=null),this[_0x505d20(0xde)]&&(this[_0x505d20(0xde)][_0x505d20(0xc6)](),this[_0x505d20(0xde)]=null);}[_0x372e50(0xf5)](){const _0x2a5eb4=_0x372e50;if(!this[_0x2a5eb4(0xfb)])return;if(!this[_0x2a5eb4(0x14e)]())return void(this[_0x2a5eb4(0x109)]=!0x0);this[_0x2a5eb4(0x109)]=!0x1;const _0x349b13=[...this[_0x2a5eb4(0x108)],...this[_0x2a5eb4(0xe2)]],_0x7d5de6=this[_0x2a5eb4(0xd9)](),_0x2882ad=this[_0x2a5eb4(0x101)](_0x7d5de6,_0x349b13),_0x5b6d7d=_0x7d5de6[_0x2a5eb4(0xcd)];_0x5b6d7d&&this[_0x2a5eb4(0x112)](_0x5b6d7d),_0x7d5de6[_0x2a5eb4(0xfe)](),this[_0x2a5eb4(0xd3)](_0x349b13,_0x2882ad);}[_0x372e50(0xf8)](){const _0x4fdb77=_0x372e50;this[_0x4fdb77(0xd0)]=this[_0x4fdb77(0xeb)](),this[_0x4fdb77(0xde)]=this[_0x4fdb77(0x130)](),this[_0x4fdb77(0xd0)][_0x4fdb77(0xd2)](),this[_0x4fdb77(0xfb)][_0x4fdb77(0x12a)](this[_0x4fdb77(0xd0)][_0x4fdb77(0x12e)]),this[_0x4fdb77(0xd0)]['on'](_0x4fdb77(0x12d),()=>{const _0x41bf23=_0x4fdb77;this[_0x41bf23(0x11e)]();}),_0x45c447({'emitter':this[_0x4fdb77(0xde)],'contextElements':[this[_0x4fdb77(0xde)][_0x4fdb77(0x12e)],this[_0x4fdb77(0xd0)][_0x4fdb77(0x12e)]],'callback':()=>this[_0x4fdb77(0x10a)](),'activator':()=>this[_0x4fdb77(0xd0)][_0x4fdb77(0x148)]});}[_0x372e50(0xeb)](){const _0x302e23=_0x372e50,_0xe6c8c6=new _0x2a658e(this[_0x302e23(0xe5)]);_0xe6c8c6[_0x302e23(0xda)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1a1629=[this[_0x302e23(0x140)][_0x302e23(0x146)][_0x302e23(0xf7)]];return this[_0x302e23(0x140)][_0x302e23(0x146)][_0x302e23(0x14d)]&&_0x1a1629[_0x302e23(0x10f)](this[_0x302e23(0x140)][_0x302e23(0x146)][_0x302e23(0x14d)]),_0xe6c8c6[_0x302e23(0xbf)]({'attributes':{'class':_0x1a1629}}),_0xe6c8c6;}[_0x372e50(0x130)](){const _0x29f0b1=_0x372e50,_0x212604=new _0x19ae94(this[_0x29f0b1(0xe5)]);return _0x212604[_0x29f0b1(0xbf)]({'attributes':{'class':this[_0x29f0b1(0x140)][_0x29f0b1(0x146)][_0x29f0b1(0xfc)]}}),this[_0x29f0b1(0x102)][_0x29f0b1(0xdb)](_0x212604),_0x212604;}[_0x372e50(0x105)](){const _0x5248e3=_0x372e50;if(this[_0x5248e3(0xde)]&&(this[_0x5248e3(0xde)][_0x5248e3(0xca)][_0x5248e3(0x115)](),this[_0x5248e3(0xe2)][_0x5248e3(0xe0)]>0x0)){this[_0x5248e3(0xe2)][_0x5248e3(0xc0)](_0x3fc24c=>{const _0x36e70b=_0x5248e3;_0x3fc24c[_0x36e70b(0x13f)]();});const _0x3f9aeb=new _0x1a18a3(this[_0x5248e3(0xe5)]);_0x3f9aeb[_0x5248e3(0xf4)]({'tag':_0x5248e3(0x106),'attributes':{'class':this[_0x5248e3(0x140)][_0x5248e3(0x146)][_0x5248e3(0x113)]},'children':this[_0x5248e3(0xe2)]}),this[_0x5248e3(0xde)][_0x5248e3(0xca)][_0x5248e3(0xdb)](_0x3f9aeb);}}[_0x372e50(0x11e)](){const _0x3cb5c1=_0x372e50;this[_0x3cb5c1(0xd0)][_0x3cb5c1(0x148)]?this[_0x3cb5c1(0x10a)]():this[_0x3cb5c1(0x114)]();}[_0x372e50(0x11b)](){const _0x186d03=_0x372e50,_0x3296bb=this[_0x186d03(0xe2)][_0x186d03(0xe0)]>0x0;this[_0x186d03(0xd0)]?.[_0x186d03(0x12e)]&&(this[_0x186d03(0xd0)][_0x186d03(0x12e)][_0x186d03(0xf1)][_0x186d03(0x135)]=_0x3296bb?'':_0x186d03(0xd8));}[_0x372e50(0xe6)](){const _0x1bceba=_0x372e50;this[_0x1bceba(0xd0)]?.[_0x1bceba(0x148)]&&this[_0x1bceba(0xde)]?.[_0x1bceba(0x11d)]&&this[_0x1bceba(0xd0)][_0x1bceba(0x12e)]&&this[_0x1bceba(0xde)][_0x1bceba(0xcb)]({'target':this[_0x1bceba(0xd0)][_0x1bceba(0x12e)],'limiter':document[_0x1bceba(0x13a)](_0x1bceba(0xd6))});}[_0x372e50(0x11c)](_0x4212dc){const _0x21cdc6=_0x372e50,_0x2e8a04=this[_0x21cdc6(0xfb)]?.[_0x21cdc6(0x12c)][_0x21cdc6(0xed)]()||_0x21cdc6(0x106),_0x24c4fd=this[_0x21cdc6(0xfb)]?.[_0x21cdc6(0x11a)];if(_0x24c4fd){const _0x39e396=_0x24c4fd[0x0]||'',_0x41377a=_0x4212dc[_0x21cdc6(0x13a)]('.'+_0x39e396),_0x42e95e=_0x4212dc[_0x21cdc6(0x13a)](_0x2e8a04);return _0x41377a||_0x42e95e||_0x4212dc;}return _0x4212dc[_0x21cdc6(0x13a)](_0x2e8a04)||_0x4212dc;}[_0x372e50(0xc4)](){const _0x35117a=_0x372e50,_0x3efda9=this[_0x35117a(0x104)]?.[_0x35117a(0x12e)]||this[_0x35117a(0xfb)];if(!_0x3efda9)return an;const _0xef5f1f=window[_0x35117a(0xc8)](_0x3efda9)[_0x35117a(0xc1)];if(_0x35117a(0x107)===_0xef5f1f||_0x35117a(0x118)===_0xef5f1f||!_0xef5f1f){const _0x49fef7=_0x3efda9[_0x35117a(0x129)];if(_0x49fef7){const _0x5dcac4=window[_0x35117a(0xc8)](_0x49fef7);return _0x35117a(0x107)!==_0x5dcac4[_0x35117a(0xc1)]?_0x5dcac4[_0x35117a(0xc1)]:an;}return an;}return _0xef5f1f;}[_0x372e50(0x10e)](_0x5458cc,_0x2a761c){const _0x4bf0b9=_0x372e50;this[_0x4bf0b9(0x140)][_0x4bf0b9(0x146)][_0x4bf0b9(0x131)]&&_0x5458cc[_0x4bf0b9(0x11a)][_0x4bf0b9(0xdb)](this[_0x4bf0b9(0x140)][_0x4bf0b9(0x146)][_0x4bf0b9(0x131)]),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0xc1)]=_0x2a761c,_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0x143)]=_0x4bf0b9(0x132),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0x127)]=_0x4bf0b9(0x126),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0xdc)]=_0x4bf0b9(0x126),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0xe8)]='0',_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0x120)]=_0x4bf0b9(0xd8),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0xf0)]='-1',_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0xbd)]=_0x4bf0b9(0xd7),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0x135)]=_0x4bf0b9(0x10b),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0x147)]=_0x4bf0b9(0x144);}[_0x372e50(0x112)](_0x47e07b){const _0x14565d=_0x372e50;_0x47e07b[_0x14565d(0xc0)](({element:_0x43506b,originalDisplay:_0xad5a9b,originalVisibility:_0x445900})=>{const _0x4ea9a1=_0x14565d;_0x43506b[_0x4ea9a1(0xf1)][_0x4ea9a1(0x135)]=_0xad5a9b,_0x43506b[_0x4ea9a1(0xf1)][_0x4ea9a1(0xbd)]=_0x445900;});}[_0x372e50(0xc9)](_0x3fa9bc){const _0x5704f2=_0x372e50,_0x27cc18=[];let _0x2e6be0=_0x3fa9bc;for(;_0x2e6be0&&_0x2e6be0!==document[_0x5704f2(0x10d)];){const _0xbbfd55=window[_0x5704f2(0xc8)](_0x2e6be0);_0x5704f2(0xd8)!==_0xbbfd55[_0x5704f2(0x135)]&&_0x5704f2(0x122)!==_0xbbfd55[_0x5704f2(0xbd)]||(_0x27cc18[_0x5704f2(0x10f)]({'element':_0x2e6be0,'originalDisplay':_0x2e6be0[_0x5704f2(0xf1)][_0x5704f2(0x135)],'originalVisibility':_0x2e6be0[_0x5704f2(0xf1)][_0x5704f2(0xbd)]}),_0x2e6be0[_0x5704f2(0xf1)][_0x5704f2(0x135)]=_0x5704f2(0xe7),_0x2e6be0[_0x5704f2(0xf1)][_0x5704f2(0xbd)]=_0x5704f2(0xc5)),_0x2e6be0=_0x2e6be0[_0x5704f2(0x129)];}return _0x27cc18;}[_0x372e50(0xe1)](){const _0x3a280c=_0x372e50;let _0x12de6b,_0x160731;return this[_0x3a280c(0x104)]?.[_0x3a280c(0x12e)]?(_0x12de6b=this[_0x3a280c(0x104)][_0x3a280c(0x12e)][_0x3a280c(0x110)](!0x0),_0x160731=this[_0x3a280c(0x11c)](_0x12de6b)):(_0x12de6b=document[_0x3a280c(0x116)](_0x3a280c(0x106)),_0x160731=_0x12de6b),{'calculationContainer':_0x12de6b,'targetContainer':_0x160731};}[_0x372e50(0xd9)](){const _0x4d56fe=_0x372e50,{calculationContainer:_0x3b958e,targetContainer:_0x4022be}=this[_0x4d56fe(0xe1)](),_0x5266f0=this[_0x4d56fe(0xc4)]();this[_0x4d56fe(0x10e)](_0x3b958e,_0x5266f0);const _0x46dbc1=this[_0x4d56fe(0x104)]?.[_0x4d56fe(0x12e)]||this[_0x4d56fe(0xfb)],_0x54f6e1=_0x46dbc1?.[_0x4d56fe(0x129)];_0x54f6e1?_0x54f6e1[_0x4d56fe(0x12a)](_0x3b958e):document[_0x4d56fe(0x10d)][_0x4d56fe(0x12a)](_0x3b958e),_0x3b958e[_0x4d56fe(0x12f)]=_0x4022be;const _0x2b27cd=this[_0x4d56fe(0xc9)](_0x54f6e1||null);return _0x3b958e[_0x4d56fe(0x141)],_0x3b958e[_0x4d56fe(0xcd)]=_0x2b27cd,_0x3b958e;}[_0x372e50(0x101)](_0x429bbb,_0x99850e){const _0x4d8ad8=_0x372e50,_0x1d40a0=_0x429bbb[_0x4d8ad8(0x12f)]||_0x429bbb,_0x34c827=[],{rowCount:_0x49d94a}=this[_0x4d8ad8(0xf3)](_0x1d40a0,_0x99850e);if(_0x49d94a<=this[_0x4d8ad8(0x140)][_0x4d8ad8(0x13c)])return _0x34c827;const _0xd366eb=_0x99850e[_0x4d8ad8(0xd1)]();for(;_0xd366eb[_0x4d8ad8(0xe0)]>0x0;){if(this[_0x4d8ad8(0xcc)](_0x429bbb,_0x1d40a0,_0xd366eb)){const _0x5e95a7=_0x99850e[_0x4d8ad8(0x125)](_0x2887df=>!_0xd366eb[_0x4d8ad8(0xbc)](_0x2887df));_0x34c827[_0x4d8ad8(0x10f)](..._0x5e95a7);break;}if(!_0xd366eb[_0x4d8ad8(0x139)]())break;}return _0x34c827;}[_0x372e50(0xf3)](_0x561906,_0x2ee034){const _0x2a7091=_0x372e50;_0x561906[_0x2a7091(0xf9)]='',_0x2ee034[_0x2a7091(0xc0)](_0x2e431f=>{const _0x6ecfdd=_0x2a7091;if(_0x2e431f[_0x6ecfdd(0x12e)]){const _0x1a3f13=_0x2e431f[_0x6ecfdd(0x12e)][_0x6ecfdd(0x110)](!0x0);_0x561906[_0x6ecfdd(0x12a)](_0x1a3f13);}}),_0x561906[_0x2a7091(0x141)];const _0x2f8a97=_0x561906[_0x2a7091(0xc2)],_0x430b7d=[];return Array[_0x2a7091(0xc3)](_0x2f8a97)[_0x2a7091(0xc0)](_0x4a1894=>{const _0xe5d3b4=_0x2a7091,_0x3c33dc=_0x4a1894[_0xe5d3b4(0x142)]()[_0xe5d3b4(0x127)];_0x430b7d[_0xe5d3b4(0x103)](_0x390dc1=>Math[_0xe5d3b4(0xfa)](_0x390dc1-_0x3c33dc)<this[_0xe5d3b4(0x140)][_0xe5d3b4(0x11f)])||_0x430b7d[_0xe5d3b4(0x10f)](_0x3c33dc);}),{'rowCount':_0x430b7d[_0x2a7091(0xe0)]};}[_0x372e50(0xd4)](){const _0x277d22=_0x372e50,_0x5d9c28=document[_0x277d22(0x116)](_0x277d22(0xdd));return _0x5d9c28[_0x277d22(0x13e)]=this[_0x277d22(0x140)][_0x277d22(0x146)][_0x277d22(0xf7)],this[_0x277d22(0x140)][_0x277d22(0x146)][_0x277d22(0x14d)]&&_0x5d9c28[_0x277d22(0x11a)][_0x277d22(0xdb)](this[_0x277d22(0x140)][_0x277d22(0x146)][_0x277d22(0x14d)]),_0x5d9c28[_0x277d22(0xd5)]=_0x277d22(0xee),_0x5d9c28;}[_0x372e50(0xcc)](_0x30cf8f,_0x4c010b,_0x1e7a45){const _0x39969e=_0x372e50;this[_0x39969e(0xf3)](_0x4c010b,_0x1e7a45);const _0x59cc4e=this[_0x39969e(0xd4)]();_0x30cf8f[_0x39969e(0x12a)](_0x59cc4e),_0x30cf8f[_0x39969e(0x141)];const _0x2278e4=[..._0x4c010b[_0x39969e(0xc2)],_0x59cc4e],_0x481ae3=[];_0x2278e4[_0x39969e(0xc0)](_0x334e6d=>{const _0x5aab51=_0x39969e,_0x549f5a=_0x334e6d[_0x5aab51(0x142)]()[_0x5aab51(0x127)];_0x481ae3[_0x5aab51(0x103)](_0x4d7979=>Math[_0x5aab51(0xfa)](_0x4d7979-_0x549f5a)<this[_0x5aab51(0x140)][_0x5aab51(0x11f)])||_0x481ae3[_0x5aab51(0x10f)](_0x549f5a);});const _0xf24bda=_0x481ae3[_0x39969e(0xe0)];return _0x59cc4e[_0x39969e(0xfe)](),_0xf24bda<=this[_0x39969e(0x140)][_0x39969e(0x13c)];}[_0x372e50(0x121)](_0x1e78a7,_0x176cd3){const _0x5307e4=_0x372e50;this[_0x5307e4(0x108)][_0x5307e4(0x115)](),this[_0x5307e4(0xe2)][_0x5307e4(0x115)](),_0x1e78a7[_0x5307e4(0xc0)](_0x2509d4=>{const _0x4002b0=_0x5307e4;_0x176cd3[_0x4002b0(0xbc)](_0x2509d4)?this[_0x4002b0(0xe2)][_0x4002b0(0xdb)](_0x2509d4):this[_0x4002b0(0x108)][_0x4002b0(0xdb)](_0x2509d4);});}[_0x372e50(0xf6)](_0x35bd43){const _0x333eee=_0x372e50;if(_0x35bd43>0x0&&!this[_0x333eee(0xd0)]&&this[_0x333eee(0xf8)](),_0x35bd43>0x0&&this[_0x333eee(0xd0)]){const _0x11b5e8=''+this[_0x333eee(0x140)][_0x333eee(0xea)]+(_0x35bd43<0x63?_0x35bd43:'99');this[_0x333eee(0xd0)][_0x333eee(0x14a)]=_0x11b5e8;}this[_0x333eee(0x105)](),this[_0x333eee(0x11b)](),this[_0x333eee(0xe6)]();}[_0x372e50(0xd3)](_0xf305dd,_0x5c6348){const _0x236763=_0x372e50;this[_0x236763(0x121)](_0xf305dd,_0x5c6348),this[_0x236763(0xf6)](_0x5c6348[_0x236763(0xe0)]);}[_0x372e50(0xe9)](){const _0x499fbb=_0x372e50;this[_0x499fbb(0xfb)]&&_0x499fbb(0xfd)!=typeof IntersectionObserver&&(this[_0x499fbb(0xe3)]=new IntersectionObserver(_0x470979=>{const _0x34edc2=_0x499fbb;_0x470979[0x0][_0x34edc2(0x100)]&&this[_0x34edc2(0x109)]&&requestAnimationFrame(()=>{const _0x5665e5=_0x34edc2;this[_0x5665e5(0xf5)]();});},{'threshold':0.01,'rootMargin':_0x499fbb(0x123)}),this[_0x499fbb(0xe3)][_0x499fbb(0xe4)](this[_0x499fbb(0xfb)]));}[_0x372e50(0x14e)](){const _0x5936b0=_0x372e50;if(!this[_0x5936b0(0xfb)])return!0x1;if(!this[_0x5936b0(0xfb)][_0x5936b0(0xdf)])return!0x1;const _0x53f511=this[_0x5936b0(0xfb)][_0x5936b0(0x142)]();if(0x0===_0x53f511[_0x5936b0(0xc1)]||0x0===_0x53f511[_0x5936b0(0x13d)])return!0x1;const _0x11a090=window[_0x5936b0(0xcf)]||document[_0x5936b0(0xc7)][_0x5936b0(0x13b)],_0x5d38d0=window[_0x5936b0(0x133)]||document[_0x5936b0(0xc7)][_0x5936b0(0x128)],_0x25bd6f=0xc8;return _0x53f511[_0x5936b0(0x111)]>=-0xc8&&_0x53f511[_0x5936b0(0x127)]<=_0x11a090+_0x25bd6f&&_0x53f511[_0x5936b0(0x14c)]>=-0xc8&&_0x53f511[_0x5936b0(0xdc)]<=_0x5d38d0+_0x25bd6f;}}function _0x5af7(){const _0x314bdf=['_updateShowMoreButtonVisibility','_findTargetContainer','isVisible','_handleShowMoreButtonClick','rowDetectionTolerance','pointerEvents','_distributeChips','hidden','50px','9501200lsfpVu','filter','-9999px','top','clientWidth','parentElement','appendChild','setContainerElement','tagName','execute','element','_targetContainer','_createShowMoreBalloonPanelView','calculationContainer','absolute','innerWidth','5238904dixWiv','display','disconnect','300px','overflowChips','pop','querySelector','clientHeight','maxVisibleRows','height','className','disableAnimationOnEnter','_config','offsetWidth','getBoundingClientRect','position','border-box','showMoreButtonView','cssClasses','boxSizing','isOn','1843118tvcryp','label','hide','right','controlsButton','_isContainerVisible','includes','visibility','reorganizeChips','extendTemplate','forEach','width','children','from','_calculateContainerWidth','visible','destroy','documentElement','getComputedStyle','_makeAncestorsVisible','content','pin','_testButtonFit','_ancestorsToRestore','1iyOsRn','innerHeight','_showMoreButtonView','slice','render','_applyOverflowResults','_createMockButton','textContent','.ck-ai-chat','visible\x20!important','none','_createCalculationContainer','set','add','left','button','_showMoreBalloonPanelView','isConnected','length','_createContainerElements','_overflowChips','_intersectionObserver','observe','_locale','_repinBalloonPanel','block','opacity','_setupVisibilityObserver','showMoreLabelPrefix','_createShowMoreButtonView','20286540XkrdaQ','toLowerCase','+\x201','980175kFOHLj','zIndex','style','8933532fhVAZn','_renderChipsAndCountRows','setTemplate','_checkAndHandleOverflow','_updateOverflowUI','showMoreButton','_createShowMoreButton','innerHTML','abs','_containerElement','showMoreBalloon','undefined','remove','show','isIntersecting','_calculateOverflowInContainer','_bodyCollection','some','_parentView','_updateBalloonContent','div','auto','_visibleChips','_pendingCalculation','hideBalloonPanel','block\x20!important','7164388gvJjAZ','body','_applyCalculationStyles','push','cloneNode','bottom','_restoreAncestorVisibility','overflowContainer','showBalloonPanel','clear','createElement','5bORAtD','0px','ck-calculation-container','classList'];_0x5af7=function(){return _0x314bdf;};return _0x5af7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xd3ff(_0x1f5425,_0x4bdf74){const _0x4fb278=_0x4fb2();return _0xd3ff=function(_0xd3ffa3,_0x39991f){_0xd3ffa3=_0xd3ffa3-0x1e5;let _0x3ed05f=_0x4fb278[_0xd3ffa3];return _0x3ed05f;},_0xd3ff(_0x1f5425,_0x4bdf74);}const _0x4894a8=_0xd3ff;(function(_0x3dc18e,_0x3063f7){const _0xf65c8d=_0xd3ff,_0x5a1776=_0x3dc18e();while(!![]){try{const _0xd4efcb=parseInt(_0xf65c8d(0x201))/0x1*(-parseInt(_0xf65c8d(0x211))/0x2)+-parseInt(_0xf65c8d(0x216))/0x3*(parseInt(_0xf65c8d(0x1ee))/0x4)+parseInt(_0xf65c8d(0x21c))/0x5+parseInt(_0xf65c8d(0x1e7))/0x6+parseInt(_0xf65c8d(0x220))/0x7+parseInt(_0xf65c8d(0x1ed))/0x8+parseInt(_0xf65c8d(0x225))/0x9;if(_0xd4efcb===_0x3063f7)break;else _0x5a1776['push'](_0x5a1776['shift']());}catch(_0x31eb27){_0x5a1776['push'](_0x5a1776['shift']());}}}(_0x4fb2,0x9e54e));function _0x4fb2(){const _0x43dff1=['_isAnimationOnEnterEnabled','document','3968920uhzJNf','slice','_handleAnimationEndOnce','locale','2280509msgFKF','ck-hidden','lastIndexOf','tooltip','uiId','727893ywUnxG','_createTemplateChildren','animationend','3073932wMSKdu','remove','ck-ai-chat-context-chip_wide','ck-ai-chat-context-chip_document','fire','element','4281272mVrftV','3850568TyAObf','webkitAnimationEnd','ck-ai-chat-context-controls__chip-tooltip','_createIconView','bind','readonly','disableAnimationOnEnter','span','selection','_initializeProperties','small','itemType','add','bindTemplate','ck-ai-chat-context-chip__label','_setupRemoveButtonEvent','_setupTemplate','removeEventListener','isVisible','1LgerhS','set','label','classList','content','extendTemplate','_createLabelElement','length','_createTemplateAttributes','ck-ai-chat-context-chip','type','removeContextItemChip','ck-ai-chat-context-chip_new-chip','setTemplate','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_createLoaderIcon','1273522pwENmD','div','addEventListener','_createRemoveButton','render','3nGNYSA','ck-ai-chat-context-chip__type-icon','isLoading','execute'];_0x4fb2=function(){return _0x43dff1;};return _0x4fb2();}import{ButtonView as _0x61a9f,IconView as _0x53b27f}from'ckeditor5/src/ui.js';import{IconClose as _0x465e8d,IconDocument as _0x4a17dc,IconFileUpload as _0x474fbb,IconLink as _0x17f3f1,IconSelection as _0x1e64a3}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x24b222}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x1e7fd4}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x474fbb,'document':_0x4a17dc,'web-resource':_0x17f3f1,'text':_0x474fbb,'selection':_0x1e64a3,'mcp-tool-context':_0x4a17dc},bn=_0x4894a8(0x20a),wn=_0x4894a8(0x1e9),Tn=_0x4894a8(0x1ea),En=_0x4894a8(0x1fc),fn=_0x4894a8(0x217),An=_0x4894a8(0x1f0),Cn='n';export class AIChatContextItemButtonView extends _0x61a9f{constructor(_0x5657bc,_0x54b9ea,_0x4c6751,_0x35d46a,_0x3bf41a=!0x1){const _0x3c9b9d=_0x4894a8;super(_0x5657bc),this[_0x3c9b9d(0x21a)]=_0x35d46a,this[_0x3c9b9d(0x1f7)](_0x54b9ea,_0x4c6751,_0x3bf41a),this[_0x3c9b9d(0x1fe)]();}[_0x4894a8(0x215)](){const _0x2a3826=_0x4894a8;super[_0x2a3826(0x215)](),this[_0x2a3826(0x21a)]&&this[_0x2a3826(0x1ec)]&&(this[_0x2a3826(0x1ec)][_0x2a3826(0x204)][_0x2a3826(0x1fa)](_0x2a3826(0x20d)),this[_0x2a3826(0x21e)](this[_0x2a3826(0x1ec)],()=>{const _0x11d269=_0x2a3826;this[_0x11d269(0x1ec)]&&this[_0x11d269(0x1ec)][_0x11d269(0x204)][_0x11d269(0x1e8)](_0x11d269(0x20d));}));}[_0x4894a8(0x1f4)](){const _0x32a094=_0x4894a8;this[_0x32a094(0x21a)]=!0x1,this[_0x32a094(0x1ec)]&&this[_0x32a094(0x1ec)][_0x32a094(0x204)][_0x32a094(0x1e8)](_0x32a094(0x20d));}[_0x4894a8(0x1f7)](_0x596d17,_0x473a8e,_0x423842){const _0xbd7194=_0x4894a8;this[_0xbd7194(0x202)](_0xbd7194(0x203),_0x596d17[_0xbd7194(0x203)]),this[_0xbd7194(0x202)](_0xbd7194(0x223),!0x0),this[_0xbd7194(0x202)](_0xbd7194(0x1f9),_0x596d17[_0xbd7194(0x20b)]),this[_0xbd7194(0x202)]('id',_0x596d17[_0xbd7194(0x224)]),this[_0xbd7194(0x202)](_0xbd7194(0x1f3),_0x473a8e),this[_0xbd7194(0x202)](_0xbd7194(0x218),_0x423842);}[_0x4894a8(0x1fe)](){const _0x400bcc=_0x4894a8,_0x4975d1=this[_0x400bcc(0x1f1)](),_0x5271be=this[_0x400bcc(0x214)](),_0x12758e=this[_0x400bcc(0x1fb)];this[_0x400bcc(0x20e)]({'tag':_0x400bcc(0x212),'attributes':this[_0x400bcc(0x209)](_0x12758e),'children':this[_0x400bcc(0x1e5)](_0x4975d1,_0x5271be,_0x12758e)});}[_0x4894a8(0x209)](_0x1220f7){const _0x5f2778=_0x4894a8;return{'class':[bn,_0x1220f7['if'](_0x5f2778(0x1f9),Tn,_0x17a48c=>_0x5f2778(0x21b)==_0x17a48c),_0x1220f7['if'](_0x5f2778(0x1f9),wn,_0x3b69d3=>_0x5f2778(0x1f6)==_0x3b69d3)],'data-cke-tooltip-text':_0x1220f7['to'](_0x5f2778(0x203),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x4894a8(0x1e5)](_0x126942,_0x56d9fc,_0x16a20a){const _0x49e4be=_0x4894a8,_0x5d077e=this[_0x49e4be(0x207)](_0x16a20a),_0xeaa3bd=this[_0x49e4be(0x210)]();return this[_0x49e4be(0x1f3)]?[_0x126942,_0x5d077e]:[_0x126942,_0xeaa3bd,_0x5d077e,_0x56d9fc];}[_0x4894a8(0x207)](_0x159170){const _0x2d6063=_0x4894a8;return{'tag':_0x2d6063(0x1f5),'attributes':{'class':En},'children':[{'text':_0x159170['to'](_0x2d6063(0x203))}]};}[_0x4894a8(0x214)](){const _0x24bef7=_0x4894a8,_0x501aab=new _0x61a9f(this[_0x24bef7(0x21f)]);return _0x501aab[_0x24bef7(0x202)]({'label':_0x24b222(this[_0x24bef7(0x21f)],_0x24bef7(0x20f)),'icon':_0x465e8d}),this[_0x24bef7(0x1fd)](_0x501aab),_0x501aab;}[_0x4894a8(0x1fd)](_0x1da8d0){const _0x31c29f=_0x4894a8;_0x1da8d0['on'](_0x31c29f(0x219),()=>{const _0x27df59=_0x31c29f;this[_0x27df59(0x1eb)](_0x27df59(0x20c),this['id']);});}[_0x4894a8(0x1f1)](){const _0x5d1a60=_0x4894a8,_0x45b159=this[_0x5d1a60(0x1fb)],_0x10931c=new _0x53b27f();return _0x10931c[_0x5d1a60(0x205)]=xn[this[_0x5d1a60(0x1f9)]],_0x10931c[_0x5d1a60(0x206)]({'attributes':{'class':[fn,_0x45b159['if'](_0x5d1a60(0x218),_0x5d1a60(0x221),_0x2e2079=>_0x2e2079)]}}),_0x10931c;}[_0x4894a8(0x21e)](_0x3a9c57,_0x503372){const _0x2aecb8=_0x4894a8;if(!_0x3a9c57)return;const _0x3c696c=()=>{const _0x119b61=_0xd3ff;_0x503372(),_0x3a9c57[_0x119b61(0x1ff)](_0x119b61(0x1e6),_0x3c696c),_0x3a9c57[_0x119b61(0x1ff)](_0x119b61(0x1ef),_0x3c696c);};_0x3a9c57[_0x2aecb8(0x213)](_0x2aecb8(0x1e6),_0x3c696c),_0x3a9c57[_0x2aecb8(0x213)](_0x2aecb8(0x1ef),_0x3c696c);}[_0x4894a8(0x210)](){const _0x5a827b=_0x4894a8,_0x39f47b=new _0x1e7fd4(_0x5a827b(0x1f8));return _0x39f47b[_0x5a827b(0x1f2)](_0x5a827b(0x200))['to'](this,_0x5a827b(0x218),_0x483e94=>_0x483e94),_0x39f47b;}}function In(_0x116455){const _0x148678=_0x4894a8;if(!_0x116455)return _0x116455;if(_0x116455[_0x148678(0x208)]<=0x78)return _0x116455;const _0x261f9f=_0x116455[_0x148678(0x21d)](0x0,0x78),_0xa949f6=_0x261f9f[_0x148678(0x222)]('\x20');return(_0xa949f6>0x0?_0x261f9f[_0x148678(0x21d)](0x0,_0xa949f6):_0x261f9f)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x3bf3e7=_0x156e;function _0x156e(_0x194786,_0x4d3ad0){const _0x475796=_0x4757();return _0x156e=function(_0x156ed6,_0x5a17a2){_0x156ed6=_0x156ed6-0x13d;let _0x4870bb=_0x475796[_0x156ed6];return _0x4870bb;},_0x156e(_0x194786,_0x4d3ad0);}(function(_0x46d732,_0x3f9009){const _0x2f23db=_0x156e,_0x48da3c=_0x46d732();while(!![]){try{const _0x56b39f=-parseInt(_0x2f23db(0x152))/0x1+-parseInt(_0x2f23db(0x16b))/0x2*(-parseInt(_0x2f23db(0x17d))/0x3)+parseInt(_0x2f23db(0x168))/0x4*(parseInt(_0x2f23db(0x184))/0x5)+parseInt(_0x2f23db(0x171))/0x6*(parseInt(_0x2f23db(0x172))/0x7)+parseInt(_0x2f23db(0x178))/0x8+-parseInt(_0x2f23db(0x14c))/0x9+-parseInt(_0x2f23db(0x158))/0xa;if(_0x56b39f===_0x3f9009)break;else _0x48da3c['push'](_0x48da3c['shift']());}catch(_0x11f90f){_0x48da3c['push'](_0x48da3c['shift']());}}}(_0x4757,0x9105a));function _0x4757(){const _0x245e8c=['forEach','clear','210454VZIasp','length','withBackButton','_createBackButton','trim','stop','6752598wUyZiJ','7zaByuJ','_updateConfirmButtonState','setError','keystrokes','_focusables','confirmButton','7454432xTRrCO','div','add','fire','AI_CHAT_CONTEXT_URL_ADD_URL','12fzlNqi','_createUrlInputField','cancel','ck-labeled-field-view_empty','shift+tab','_createConfirmButton','ck-button-icon','25gqfmYy','focus','submit','_setupTemplate','listenTo','destroy','getValue','focusCycler','locale','isEnabled','AI_CHAT_CONTEXT_URL_PLACEHOLDER','form','input','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','_handleSubmit','setTemplate','render','element','change:withBackButton','ck-ai-chat-context-controls__url-input-section','2177865VTQfBZ','refreshBalloon','backButton','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','set','AI_CHAT_CONTEXT_URL_LABEL','70252uazaGD','createCollection','\x20ck-hidden','clearError','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','execute','17318780JuwjIe','ck-button-icon\x20ck-button-back','children','_isValidUrl','value','submitUrl','tab','ck-ai-chat-context-controls__url-form','focusTracker','_setupEventHandlers','esc','urlInputField','fieldView','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_setupKeystrokes','errorText','127984JOoHtm'];_0x4757=function(){return _0x245e8c;};return _0x4757();}import{FocusTracker as _0x1eb731,KeystrokeHandler as _0x57b663}from'ckeditor5/src/utils.js';import{ButtonView as _0x15ac1a,FocusCycler as _0x2685dd,LabeledFieldView as _0x4a4011,View as _0x40d152,FormHeaderView as _0x98cf1e,createLabeledInputText as _0x1a369a,submitHandler as _0x479eeb}from'ckeditor5/src/ui.js';import{IconCheck as _0x4290db,IconPreviousArrow as _0x32c945}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x44cd3c}from'../../../aicore/utils/common-translations.js';const oh=_0x3bf3e7(0x15f),ch=_0x3bf3e7(0x14b);export class AIChatContextPanelUrlInputView extends _0x40d152{[_0x3bf3e7(0x160)];[_0x3bf3e7(0x175)];[_0x3bf3e7(0x176)];[_0x3bf3e7(0x13f)];[_0x3bf3e7(0x163)];[_0x3bf3e7(0x14e)];[_0x3bf3e7(0x177)];constructor(_0x40d338){const _0x26e837=_0x3bf3e7;super(_0x40d338),this[_0x26e837(0x160)]=new _0x1eb731(),this[_0x26e837(0x175)]=new _0x57b663(),this[_0x26e837(0x14e)]=this[_0x26e837(0x16e)](),this[_0x26e837(0x163)]=this[_0x26e837(0x17e)](),this[_0x26e837(0x177)]=this[_0x26e837(0x182)](),this[_0x26e837(0x176)]=this[_0x26e837(0x153)]([this[_0x26e837(0x14e)],this[_0x26e837(0x163)],this[_0x26e837(0x177)]]),this[_0x26e837(0x13f)]=new _0x2685dd({'focusables':this[_0x26e837(0x176)],'focusTracker':this[_0x26e837(0x160)],'keystrokeHandler':this[_0x26e837(0x175)],'actions':{'focusPrevious':_0x26e837(0x181),'focusNext':_0x26e837(0x15e)}}),this[_0x26e837(0x150)](_0x26e837(0x16d),!0x0),this[_0x26e837(0x187)](),this[_0x26e837(0x161)](),this[_0x26e837(0x166)]();}[_0x3bf3e7(0x148)](){const _0x47a556=_0x3bf3e7;super[_0x47a556(0x148)](),this[_0x47a556(0x176)][_0x47a556(0x169)](_0x11e94f=>{const _0x826dad=_0x47a556;this[_0x826dad(0x160)][_0x826dad(0x17a)](_0x11e94f[_0x826dad(0x149)]),this[_0x826dad(0x175)][_0x826dad(0x188)](_0x11e94f[_0x826dad(0x149)]);}),_0x479eeb({'view':this}),this[_0x47a556(0x185)]();}[_0x3bf3e7(0x13d)](){const _0x1adf04=_0x3bf3e7;super[_0x1adf04(0x13d)](),this[_0x1adf04(0x160)][_0x1adf04(0x13d)](),this[_0x1adf04(0x175)][_0x1adf04(0x13d)]();}[_0x3bf3e7(0x185)](){const _0x26ffe1=_0x3bf3e7;this[_0x26ffe1(0x163)][_0x26ffe1(0x185)]();}[_0x3bf3e7(0x13e)](){const _0x5942f7=_0x3bf3e7;return this[_0x5942f7(0x163)][_0x5942f7(0x164)][_0x5942f7(0x149)]?.[_0x5942f7(0x15c)]?.[_0x5942f7(0x16f)]()||'';}[_0x3bf3e7(0x16a)](){const _0x422e2c=_0x3bf3e7;this[_0x422e2c(0x163)][_0x422e2c(0x164)][_0x422e2c(0x149)][_0x422e2c(0x15c)]='',this[_0x422e2c(0x163)][_0x422e2c(0x167)]=null,this[_0x422e2c(0x177)][_0x422e2c(0x141)]=!0x1;}[_0x3bf3e7(0x174)](_0x562095){const _0x2ce202=_0x3bf3e7;this[_0x2ce202(0x163)][_0x2ce202(0x167)]=_0x562095,this[_0x2ce202(0x173)](),this[_0x2ce202(0x17b)](_0x2ce202(0x14d));}[_0x3bf3e7(0x155)](){const _0x23a016=_0x3bf3e7;this[_0x23a016(0x163)][_0x23a016(0x167)]=null,this[_0x23a016(0x173)]();}[_0x3bf3e7(0x16e)](){const _0x21d65e=_0x3bf3e7,_0x233d19=new _0x15ac1a(this[_0x21d65e(0x140)]);return _0x233d19[_0x21d65e(0x150)]({'icon':_0x32c945,'tooltip':_0x44cd3c(this[_0x21d65e(0x140)],_0x21d65e(0x156)),'tooltipPosition':'n','class':[_0x21d65e(0x159)]}),this['on'](_0x21d65e(0x14a),(_0x5ef3ce,_0x39d209,_0x53bcaf)=>{const _0x397ee5=_0x21d65e;_0x233d19[_0x397ee5(0x150)]({'class':[_0x397ee5(0x159)+(_0x53bcaf?'':_0x397ee5(0x154))]});}),_0x233d19;}[_0x3bf3e7(0x17e)](){const _0x3f8522=_0x3bf3e7,_0x14e1a6=new _0x4a4011(this[_0x3f8522(0x140)],_0x1a369a);return _0x14e1a6[_0x3f8522(0x150)]({'label':_0x44cd3c(this[_0x3f8522(0x140)],_0x3f8522(0x151)),'class':_0x3f8522(0x180)}),_0x14e1a6[_0x3f8522(0x164)][_0x3f8522(0x150)]({'placeholder':_0x44cd3c(this[_0x3f8522(0x140)],_0x3f8522(0x142))}),_0x14e1a6;}[_0x3bf3e7(0x182)](){const _0x501ce8=_0x3bf3e7,_0x307d87=new _0x15ac1a(this[_0x501ce8(0x140)]);return _0x307d87[_0x501ce8(0x150)]({'icon':_0x4290db,'tooltip':_0x44cd3c(this[_0x501ce8(0x140)],_0x501ce8(0x17c)),'tooltipPosition':'n','class':_0x501ce8(0x183),'type':_0x501ce8(0x186),'isEnabled':!0x1}),_0x307d87;}[_0x3bf3e7(0x187)](){const _0x196255=_0x3bf3e7,_0x4c2aae=new _0x98cf1e(this[_0x196255(0x140)],{'label':_0x44cd3c(this[_0x196255(0x140)],_0x196255(0x17c)),'class':_0x196255(0x145)});_0x4c2aae[_0x196255(0x15a)][_0x196255(0x17a)](this[_0x196255(0x14e)],0x0),this[_0x196255(0x147)]({'tag':_0x196255(0x143),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x4c2aae,{'tag':_0x196255(0x179),'attributes':{'class':ch},'children':[this[_0x196255(0x163)],this[_0x196255(0x177)]]}]});}[_0x3bf3e7(0x161)](){const _0x24a58c=_0x3bf3e7;this[_0x24a58c(0x14e)]['on'](_0x24a58c(0x157),()=>{const _0x3953ca=_0x24a58c;this[_0x3953ca(0x16a)](),this[_0x3953ca(0x17b)](_0x3953ca(0x17f));}),this[_0x24a58c(0x163)][_0x24a58c(0x164)]['on'](_0x24a58c(0x144),()=>{const _0x72eb20=_0x24a58c;this[_0x72eb20(0x155)](),this[_0x72eb20(0x173)](),this[_0x72eb20(0x17b)](_0x72eb20(0x14d));}),this['on'](_0x24a58c(0x186),_0x171bc0=>{const _0x190693=_0x24a58c;_0x171bc0[_0x190693(0x170)](),this[_0x190693(0x146)]();});}[_0x3bf3e7(0x166)](){const _0x11eb06=_0x3bf3e7;this[_0x11eb06(0x175)][_0x11eb06(0x150)](_0x11eb06(0x162),(_0x35a437,_0x53bc56)=>{const _0x5e94a4=_0x11eb06;this[_0x5e94a4(0x16a)](),this[_0x5e94a4(0x17b)](_0x5e94a4(0x17f)),_0x53bc56();});}[_0x3bf3e7(0x146)](){const _0x4cba9b=_0x3bf3e7,_0x480f39=this[_0x4cba9b(0x13e)]()[_0x4cba9b(0x16f)]();_0x480f39?this[_0x4cba9b(0x15b)](_0x480f39)?(this[_0x4cba9b(0x155)](),this[_0x4cba9b(0x17b)](_0x4cba9b(0x15d),_0x480f39)):this[_0x4cba9b(0x174)](_0x44cd3c(this[_0x4cba9b(0x140)],_0x4cba9b(0x165))):this[_0x4cba9b(0x174)](_0x44cd3c(this[_0x4cba9b(0x140)],_0x4cba9b(0x14f)));}[_0x3bf3e7(0x173)](){const _0x41b56c=_0x3bf3e7,_0x3d9dc4=this[_0x41b56c(0x13e)]()[_0x41b56c(0x16f)](),_0x3e2934=!!this[_0x41b56c(0x163)][_0x41b56c(0x167)];this[_0x41b56c(0x177)][_0x41b56c(0x141)]=_0x3d9dc4[_0x41b56c(0x16c)]>0x0&&!_0x3e2934;}[_0x3bf3e7(0x15b)](_0x57d2fe){try{return!!new URL(_0x57d2fe);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x217c82=_0x3c64;(function(_0x584a02,_0xdb7014){const _0x433660=_0x3c64,_0x2e83a9=_0x584a02();while(!![]){try{const _0x463c6f=-parseInt(_0x433660(0x236))/0x1*(-parseInt(_0x433660(0x1e7))/0x2)+parseInt(_0x433660(0x256))/0x3+parseInt(_0x433660(0x24b))/0x4*(-parseInt(_0x433660(0x216))/0x5)+parseInt(_0x433660(0x266))/0x6+-parseInt(_0x433660(0x23a))/0x7+-parseInt(_0x433660(0x237))/0x8+-parseInt(_0x433660(0x220))/0x9*(parseInt(_0x433660(0x26c))/0xa);if(_0x463c6f===_0xdb7014)break;else _0x2e83a9['push'](_0x2e83a9['shift']());}catch(_0x5c961d){_0x2e83a9['push'](_0x2e83a9['shift']());}}}(_0x1569,0x4c299));function _0x1569(){const _0x18ead8=['extendTemplate','addResourceToContext','loadSourceResources','southArrowNorthEast','destroy','2918988tncgmt','closest','cancel','length','_handleUrlSubmit','clearConversationContextItems','800yizDmH','label','get','remove','addFileToContext','setConversationContext','southArrowNorthWest','overflowChips','children','createCollection','balloonView','northArrowSouthWest','setContainerElement','hideAddContextBalloonPanel','ck-ai-chat-controls-button','_setupAllBalloonClickOutsideHandlers','_createUrlBalloonPanelView','ck-ai-chat-context-controls__url-balloon-panel','65874iHnwWT','defaultPositions','_getLimiterElement','closeSourceResourceBalloon','addContextItem','_addContextBalloonConfig','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_urlBalloonPanelView','_overflowManager','ck-ai-chat-controls_context_show-more-button','_createContextButton','focus','isEnabled','__arrow','_createBaseBalloonPanel','northArrowSouthEast','_showSourceResourcesBalloon','populateSourceResourceBalloon','addContextButtonView','isVisible','ck-ai-chat','_conversationContextsChips','_createArrowView','addUrlToContext','locale','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls__add-context-button','div','render','withBackButton','_setupUrlBalloonClickOutsideHandler','files','done','pin','customItems','_createAddContextButtonView','AI_CHAT_CONTEXT_ADD_CONTEXT','removeContextItem','isAnyResourceBalloonVisible','hide','_currentContextsChips','showAddContextBalloonPanel','_setupTemplate','ck-ai-chat-context-chips-wrapper-balloon','type','isOn','icon','1958545likEOV','hideUrlBalloonPanel','ck-ai-chat-context-controls__balloon-button-source','_resourcesBalloonView','_hasExactlyOneSource','_addContextBalloonPanelView','_createAddContextBalloonPanelView','execute','bind','AI_CHAT_CONTEXT_URL_LABEL','35901cYzMPS','find','menuitem','body','_urlInputView','current','removeContextItemChip','_handleAddContextButtonClick','reorganizeChips','ck-ai-chat-context-controls','southArrowNorth','refreshBalloon','set','bodyCollection','_toggleAddContextBalloon','_createBalloonButton','addDocumentToContext','document','customItem','submitUrl','_addUrlContent','setTemplate','17BOfUSu','1252304TEDURq','sources','source','1475201AyxMqw','isReadOnly','conversation','urls','isLoading','updateResourceState','content','showUrlBalloonPanel','northArrowSouth','_bindEventHandlers','executeCustomItemCallback','_setAddContextButtonEnabled','_addContextToCollection','clear','showSourceResourcesBalloon','searchInputVisibleFrom','add','4cbAaVh','_setBalloonPanelContent','_removeContextFromCollection','setContextItemLoading','ck-ai-chat-context-controls__balloon-button','isHidden','fire','arrowView','buttonView','clearCurrentContextItems','setAddContextOptions','1030932cmCiUb','enabled','show','element','ck-reset_all-excluded','tooltip','_createResourcesBalloonView','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-context-controls__add-context-balloon-panel','AI_CHAT_CONTEXT_FILE_LABEL'];_0x1569=function(){return _0x18ead8;};return _0x1569();}function _0x3c64(_0x5e4452,_0x25dba8){const _0x1569ee=_0x1569();return _0x3c64=function(_0x3c6407,_0x46fcd6){_0x3c6407=_0x3c6407-0x1e6;let _0x321747=_0x1569ee[_0x3c6407];return _0x321747;},_0x3c64(_0x5e4452,_0x25dba8);}import{BalloonPanelView as _0x36b04d,ButtonView as _0x4e50af,clickOutsideHandler as _0xc03999,FileDialogButtonView as _0x4ac669,IconView as _0x47381a,View as _0x155e76}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x2a0d0e,IconDocument as _0x54248c,IconDocumentOutline as _0x446af9,IconDropdownArrow as _0x3f18fa,IconLink as _0x4de35c,IconPaperClip as _0x2d100c}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x4f11f6}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x532c2e}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x4a18be}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x20dcc2}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5b73cc}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x217c82(0x230),_0x217c82(0x270),_0x217c82(0x1fe),_0x217c82(0x262),_0x217c82(0x20c),_0x217c82(0x263),_0x217c82(0x244)];const Oo=_0x217c82(0x229),Uo=_0x217c82(0x25e),Lo=_0x217c82(0x25f),No=_0x217c82(0x201),Mo=_0x217c82(0x1e6),Ho=_0x217c82(0x24f),jo=_0x217c82(0x218),Fo=_0x217c82(0x27a),Xo=_0x217c82(0x212),Do=_0x217c82(0x1f0),$o=_0x217c82(0x25d),Wo=_0x217c82(0x1fb),qo=[_0x36b04d[_0x217c82(0x1e8)][_0x217c82(0x277)],_0x36b04d[_0x217c82(0x1e8)][_0x217c82(0x242)],_0x36b04d[_0x217c82(0x1e8)][_0x217c82(0x1f6)],_0x36b04d[_0x217c82(0x1e8)][_0x217c82(0x272)],_0x36b04d[_0x217c82(0x1e8)][_0x217c82(0x22a)],_0x36b04d[_0x217c82(0x1e8)][_0x217c82(0x264)]];export class AIChatContextPanelView extends _0x155e76{[_0x217c82(0x1f9)];[_0x217c82(0x20f)]=this[_0x217c82(0x275)]();[_0x217c82(0x1fc)]=this[_0x217c82(0x275)]();[_0x217c82(0x1ef)];[_0x217c82(0x21b)];[_0x217c82(0x1ee)];[_0x217c82(0x224)];[_0x217c82(0x219)];[_0x217c82(0x1ec)];[_0x217c82(0x21a)]=!0x1;[_0x217c82(0x22d)];constructor(_0x1d0299,_0x536a2a){const _0x4539ab=_0x217c82;super(_0x1d0299),this[_0x4539ab(0x22d)]=_0x536a2a[_0x4539ab(0x22d)],this[_0x4539ab(0x20f)]=this[_0x4539ab(0x275)](),this[_0x4539ab(0x1fc)]=this[_0x4539ab(0x275)](),this[_0x4539ab(0x1f9)]=this[_0x4539ab(0x20a)](_0x1d0299),this[_0x4539ab(0x21b)]=this[_0x4539ab(0x21c)](_0x1d0299),this[_0x4539ab(0x1ee)]=this[_0x4539ab(0x27c)](_0x1d0299),this[_0x4539ab(0x219)]=this[_0x4539ab(0x25c)](_0x1d0299,_0x536a2a);const _0x298bbd={'cssClasses':{'showMoreButton':Do,'showMoreBalloon':$o,'overflowContainer':Xo,'controlsButton':Fo}};this[_0x4539ab(0x1ef)]=new _0x4a18be(_0x1d0299,this[_0x4539ab(0x20f)],_0x298bbd,this[_0x4539ab(0x22d)],this),this[_0x4539ab(0x1ec)]={'buttonView':this[_0x4539ab(0x1f9)],'balloonView':this[_0x4539ab(0x21b)],'hideMethod':this[_0x4539ab(0x279)][_0x4539ab(0x21e)](this),'showMethod':this[_0x4539ab(0x210)][_0x4539ab(0x21e)](this)},this[_0x4539ab(0x211)](),this[_0x4539ab(0x243)]();}[_0x217c82(0x203)](){const _0x1499d4=_0x217c82;super[_0x1499d4(0x203)](),this[_0x1499d4(0x27b)](),this[_0x1499d4(0x1ef)][_0x1499d4(0x278)](this[_0x1499d4(0x259)]),this[_0x1499d4(0x1ef)][_0x1499d4(0x228)]();}[_0x217c82(0x265)](){const _0x391c59=_0x217c82;super[_0x391c59(0x265)](),this[_0x391c59(0x1ef)][_0x391c59(0x265)](),this[_0x391c59(0x219)][_0x391c59(0x265)]();}[_0x217c82(0x1eb)](_0x561043,_0x4b6250){const _0x3866fc=_0x217c82,_0x1ec36f=this[_0x3866fc(0x1f1)](_0x561043,_0x3866fc(0x225),!0x0,_0x4b6250);this[_0x3866fc(0x246)](_0x1ec36f,this[_0x3866fc(0x20f)]),this[_0x3866fc(0x1ef)][_0x3866fc(0x228)]();}[_0x217c82(0x20c)](_0x274f6b){const _0x3b95c6=_0x217c82;this[_0x3b95c6(0x24d)](_0x274f6b,this[_0x3b95c6(0x20f)]),this[_0x3b95c6(0x24d)](_0x274f6b,this[_0x3b95c6(0x1ef)][_0x3b95c6(0x273)]),this[_0x3b95c6(0x1ef)][_0x3b95c6(0x228)]();}[_0x217c82(0x24e)](_0x12ca48,_0x2805cf){const _0x448bc5=_0x217c82;let _0x2bf6e9=this[_0x448bc5(0x20f)][_0x448bc5(0x221)](_0x3a45e7=>_0x3a45e7['id']===_0x12ca48);_0x2bf6e9||(_0x2bf6e9=this[_0x448bc5(0x1ef)][_0x448bc5(0x273)][_0x448bc5(0x221)](_0x2a01be=>_0x2a01be['id']===_0x12ca48)),_0x2bf6e9&&(_0x2bf6e9[_0x448bc5(0x23e)]=_0x2805cf);}[_0x217c82(0x271)](_0x313556){const _0x32c6bf=_0x217c82;this[_0x32c6bf(0x1fc)][_0x32c6bf(0x247)]();for(const _0x425027 of _0x313556){const _0x45408c=this[_0x32c6bf(0x1f1)](_0x425027,_0x32c6bf(0x23c),!0x1,!0x1);this[_0x32c6bf(0x246)](_0x45408c,this[_0x32c6bf(0x1fc)]);}}[_0x217c82(0x254)](){const _0x85334d=_0x217c82;this[_0x85334d(0x20f)][_0x85334d(0x247)](),this[_0x85334d(0x1ef)][_0x85334d(0x247)]();}[_0x217c82(0x26b)](){const _0x42c4e3=_0x217c82;this[_0x42c4e3(0x1fc)][_0x42c4e3(0x247)]();}[_0x217c82(0x23f)](_0x4bc5d5,_0x4f828a,_0x5e0bc0){const _0x475e7b=_0x217c82;this[_0x475e7b(0x219)][_0x475e7b(0x23f)](_0x4bc5d5,_0x4f828a,_0x5e0bc0);}[_0x217c82(0x279)](){const _0x543acd=_0x217c82;this[_0x543acd(0x22e)](!0x1);}[_0x217c82(0x210)](){const _0x33043d=_0x217c82;this[_0x33043d(0x22e)](!0x0);}[_0x217c82(0x217)](){const _0x16f7f9=_0x217c82;this[_0x16f7f9(0x1ee)][_0x16f7f9(0x20e)](),this[_0x16f7f9(0x1f9)][_0x16f7f9(0x214)]=!0x1,this[_0x16f7f9(0x224)]&&this[_0x16f7f9(0x224)][_0x16f7f9(0x247)]();}[_0x217c82(0x241)](){const _0x234607=_0x217c82;this[_0x234607(0x1ee)][_0x234607(0x258)](),this[_0x234607(0x1f9)][_0x234607(0x214)]=!0x0;}[_0x217c82(0x1f7)]({source:_0x47af61,withBackButton:_0x224de0}){const _0x406c78=_0x217c82;this[_0x406c78(0x219)][_0x406c78(0x248)]({'source':_0x47af61,'withBackButton':_0x224de0}),this[_0x406c78(0x1f9)][_0x406c78(0x214)]=!0x0;}[_0x217c82(0x1f8)](_0x2003cb,_0x41b496,_0x4c183f,_0x1d4082){const _0x4587ce=_0x217c82;this[_0x4587ce(0x219)][_0x4587ce(0x1f8)](_0x2003cb,_0x4c183f,_0x1d4082);}[_0x217c82(0x1ea)](_0xe19ca1){const _0x5bd9a1=_0x217c82;this[_0x5bd9a1(0x219)][_0x5bd9a1(0x1ea)](_0xe19ca1),this[_0x5bd9a1(0x1f9)][_0x5bd9a1(0x214)]=!0x1;}[_0x217c82(0x255)](_0x8c3be4){const _0x5311fa=_0x217c82;this[_0x5311fa(0x24c)](this[_0x5311fa(0x21b)],this[_0x5311fa(0x1ff)],_0x8c3be4),this[_0x5311fa(0x245)](_0x8c3be4);}[_0x217c82(0x245)](_0x124ce8){const _0x3e7a94=_0x217c82,_0x27d9e2=!_0x124ce8[_0x3e7a94(0x231)][_0x3e7a94(0x250)]&&_0x124ce8[_0x3e7a94(0x231)][_0x3e7a94(0x257)],_0x22e423=_0x124ce8[_0x3e7a94(0x23d)][_0x3e7a94(0x257)],_0x9a6a4c=_0x124ce8[_0x3e7a94(0x206)][_0x3e7a94(0x257)],_0x5ec949=_0x124ce8[_0x3e7a94(0x238)][_0x3e7a94(0x269)]>0x0,_0x508b4c=_0x124ce8[_0x3e7a94(0x209)]&&_0x124ce8[_0x3e7a94(0x209)][_0x3e7a94(0x269)]>0x0;this[_0x3e7a94(0x1f9)][_0x3e7a94(0x1f3)]=_0x27d9e2||_0x22e423||_0x9a6a4c||_0x5ec949||_0x508b4c;}[_0x217c82(0x211)](){const _0x47e9cf=_0x217c82;this[_0x47e9cf(0x235)]({'tag':_0x47e9cf(0x202),'attributes':{'class':[Oo,_0x47e9cf(0x25a)]},'children':[{'tag':_0x47e9cf(0x202),'attributes':{'class':Uo},'children':this[_0x47e9cf(0x20f)]}]});}[_0x217c82(0x243)](){const _0x56bc2d=_0x217c82;this[_0x56bc2d(0x1f9)]['on'](_0x56bc2d(0x21d),()=>{const _0x392c92=_0x56bc2d;this[_0x392c92(0x227)]();});}[_0x217c82(0x20a)](_0x2d4216){const _0x2328ce=_0x217c82,_0x18bd8a=new _0x4e50af(_0x2d4216);return _0x18bd8a[_0x2328ce(0x22c)]({'label':_0x20dcc2(_0x2d4216,_0x2328ce(0x20b)),'class':Fo+'\x20'+No,'icon':_0x2d100c,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x18bd8a;}[_0x217c82(0x21c)](_0x461c3b){const _0x2dd4b1=_0x217c82;return this[_0x2dd4b1(0x1f5)](_0x461c3b,Lo);}[_0x217c82(0x27c)](_0x3e726b){const _0x174dc7=_0x217c82,_0x111130=this[_0x174dc7(0x1f5)](_0x3e726b,Mo);return this[_0x174dc7(0x234)](_0x111130,_0x3e726b),_0x111130;}[_0x217c82(0x25c)](_0x436bde,_0x240a33){const _0x253e54=_0x217c82,_0x85111c={'searchInputVisibleFrom':_0x240a33[_0x253e54(0x249)],'onBackToContext':()=>{const _0x4fcc75=_0x253e54;this[_0x4fcc75(0x210)](),this[_0x4fcc75(0x21b)][_0x4fcc75(0x208)]({'target':this[_0x4fcc75(0x1f9)][_0x4fcc75(0x259)],'limiter':this[_0x4fcc75(0x1e9)](),'positions':qo});},'onResourceSelected':(_0xe72231,_0x492d77)=>{const _0x54b6bb=_0x253e54;this[_0x54b6bb(0x251)](_0x54b6bb(0x262),{'source':_0xe72231,'resource':_0x492d77});},'onLoadSourceResources':_0x2a8a71=>{const _0x3a3663=_0x253e54;this[_0x3a3663(0x251)](_0x3a3663(0x263),_0x2a8a71);},'onBalloonClosed':()=>{const _0x38448c=_0x253e54;this[_0x38448c(0x1f9)][_0x38448c(0x214)]=!0x1;},'getLimiterElement':()=>this[_0x253e54(0x1e9)](),'getTargetElement':()=>this[_0x253e54(0x1f9)][_0x253e54(0x259)]};return new _0x5b73cc(_0x436bde,_0x240a33[_0x253e54(0x22d)],_0x85111c);}[_0x217c82(0x1e9)](){const _0x3056fe=_0x217c82;return this[_0x3056fe(0x259)]?.[_0x3056fe(0x267)]('.'+Wo)||document[_0x3056fe(0x223)];}[_0x217c82(0x1f5)](_0x3b9aba,_0x31ceb1){const _0x3393f7=_0x217c82,_0x1929b6=new _0x36b04d(_0x3b9aba);return _0x1929b6[_0x3393f7(0x261)]({'attributes':{'class':_0x31ceb1}}),this[_0x3393f7(0x22d)][_0x3393f7(0x24a)](_0x1929b6),_0x1929b6;}[_0x217c82(0x24c)](_0x1fa190,_0x44c21b,_0x32a8d5){const _0x4c8825=_0x217c82;if(_0x1fa190[_0x4c8825(0x240)][_0x4c8825(0x247)](),!_0x32a8d5[_0x4c8825(0x231)][_0x4c8825(0x250)]&&_0x32a8d5[_0x4c8825(0x231)][_0x4c8825(0x257)]){const _0x327415=this[_0x4c8825(0x22f)](_0x44c21b,{'label':_0x20dcc2(_0x44c21b,_0x4c8825(0x1ed)),'icon':_0x54248c});_0x327415['on'](_0x4c8825(0x21d),()=>{const _0x17086b=_0x4c8825;this[_0x17086b(0x251)](_0x17086b(0x230)),this[_0x17086b(0x279)]();}),_0x1fa190[_0x4c8825(0x240)][_0x4c8825(0x24a)](_0x327415);}if(_0x32a8d5[_0x4c8825(0x23d)][_0x4c8825(0x257)]){const _0x40e4ab=this[_0x4c8825(0x22f)](_0x44c21b,{'label':_0x20dcc2(_0x44c21b,_0x4c8825(0x21f)),'icon':_0x4de35c});_0x40e4ab['on'](_0x4c8825(0x21d),()=>{const _0x48633f=_0x4c8825;this[_0x48633f(0x279)](),this[_0x48633f(0x241)](),this[_0x48633f(0x1ee)][_0x48633f(0x208)]({'target':this[_0x48633f(0x1f9)][_0x48633f(0x259)],'limiter':this[_0x48633f(0x1e9)](),'positions':qo}),this[_0x48633f(0x224)][_0x48633f(0x1f2)]();}),_0x1fa190[_0x4c8825(0x240)][_0x4c8825(0x24a)](_0x40e4ab);}if(_0x32a8d5[_0x4c8825(0x206)][_0x4c8825(0x257)]){const _0x3e4ceb=new _0x4ac669(_0x44c21b);_0x3e4ceb[_0x4c8825(0x22c)]({'label':_0x20dcc2(_0x44c21b,_0x4c8825(0x260)),'icon':_0x2a0d0e,'withText':!0x0,'tooltip':!0x0,'class':Ho,'allowMultipleFiles':!0x0}),_0x3e4ceb['on'](_0x4c8825(0x21d),()=>{const _0x1f84b7=_0x4c8825;this[_0x1f84b7(0x279)]();}),_0x3e4ceb['on'](_0x4c8825(0x207),(_0x453e9f,_0x2897a1)=>{const _0x34033c=_0x4c8825;this[_0x34033c(0x251)](_0x34033c(0x270),_0x2897a1);}),_0x3e4ceb[_0x4c8825(0x25b)]=!0x0,_0x1fa190[_0x4c8825(0x240)][_0x4c8825(0x24a)](_0x3e4ceb);}for(const _0x14b97f of _0x32a8d5[_0x4c8825(0x238)]){const _0x4d0bc5=this[_0x4c8825(0x22f)](_0x44c21b,{'label':_0x14b97f[_0x4c8825(0x26d)],'icon':_0x14b97f[_0x4c8825(0x215)]||_0x446af9,'type':_0x4c8825(0x239)});_0x1fa190[_0x4c8825(0x240)][_0x4c8825(0x24a)](_0x4d0bc5),_0x4d0bc5['on'](_0x4c8825(0x21d),()=>{const _0x7889d1=_0x4c8825;this[_0x7889d1(0x279)](),this[_0x7889d1(0x1f7)]({'source':_0x14b97f,'withBackButton':!this[_0x7889d1(0x21a)]});});}for(const _0xa0648c of _0x32a8d5[_0x4c8825(0x209)]||[]){const _0xc312c9=this[_0x4c8825(0x22f)](_0x44c21b,{'label':_0xa0648c[_0x4c8825(0x26d)],'icon':_0xa0648c[_0x4c8825(0x215)]||_0x446af9,'type':_0x4c8825(0x232)});_0x1fa190[_0x4c8825(0x240)][_0x4c8825(0x24a)](_0xc312c9),_0xc312c9['on'](_0x4c8825(0x21d),()=>{const _0x5636a5=_0x4c8825;this[_0x5636a5(0x279)](),this[_0x5636a5(0x251)](_0x5636a5(0x244),_0xa0648c);});}this[_0x4c8825(0x21a)]=0x1===_0x1fa190[_0x4c8825(0x240)][_0x4c8825(0x269)],this[_0x4c8825(0x224)][_0x4c8825(0x204)]=!this[_0x4c8825(0x21a)];}[_0x217c82(0x234)](_0x49571e,_0x25058f){const _0xf780a2=_0x217c82;this[_0xf780a2(0x224)]=new _0x532c2e(_0x25058f),this[_0xf780a2(0x224)]['on'](_0xf780a2(0x233),(_0x20879f,_0x5334de)=>{const _0x2f77b8=_0xf780a2;this[_0x2f77b8(0x26a)](_0x5334de);}),this[_0xf780a2(0x224)]['on'](_0xf780a2(0x268),()=>{const _0x8a20f=_0xf780a2;this[_0x8a20f(0x217)](),this[_0x8a20f(0x21a)]||(this[_0x8a20f(0x210)](),this[_0x8a20f(0x21b)][_0x8a20f(0x208)]({'target':this[_0x8a20f(0x1f9)][_0x8a20f(0x259)],'limiter':this[_0x8a20f(0x1e9)](),'positions':qo}));}),this[_0xf780a2(0x224)]['on'](_0xf780a2(0x22b),()=>{const _0x22366e=_0xf780a2;this[_0x22366e(0x1ee)][_0x22366e(0x1fa)]&&this[_0x22366e(0x1ee)][_0x22366e(0x208)]({'target':this[_0x22366e(0x1f9)][_0x22366e(0x259)],'limiter':this[_0x22366e(0x1e9)](),'positions':qo});}),_0x49571e[_0xf780a2(0x240)][_0xf780a2(0x24a)](this[_0xf780a2(0x224)]);}[_0x217c82(0x22f)](_0x361f54,_0x5ae04b){const _0x26aa26=_0x217c82,_0x2ee7ab=_0x26aa26(0x239)===_0x5ae04b[_0x26aa26(0x213)]?new SourcesBalloonButtonView(_0x361f54):new _0x4e50af(_0x361f54);return _0x2ee7ab[_0x26aa26(0x22c)]({'label':_0x5ae04b[_0x26aa26(0x26d)],'icon':_0x5ae04b[_0x26aa26(0x215)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ho}),_0x2ee7ab;}[_0x217c82(0x27b)](){const _0xd3d2f0=_0x217c82;this[_0xd3d2f0(0x200)](),this[_0xd3d2f0(0x205)]();}[_0x217c82(0x205)](){const _0x5f364c=_0x217c82;_0xc03999({'emitter':this[_0x5f364c(0x1ee)],'contextElements':[this[_0x5f364c(0x1ee)][_0x5f364c(0x259)]],'callback':()=>{const _0x3fff4a=_0x5f364c;this[_0x3fff4a(0x217)]();},'activator':()=>this[_0x5f364c(0x1ee)][_0x5f364c(0x1fa)]});}[_0x217c82(0x22e)](_0x54ccd6){const _0x7cd67b=_0x217c82,_0x5384cb=this[_0x7cd67b(0x1ec)];_0x5384cb[_0x7cd67b(0x253)][_0x7cd67b(0x214)]=_0x54ccd6,_0x54ccd6?_0x5384cb[_0x7cd67b(0x276)][_0x7cd67b(0x258)]():_0x5384cb[_0x7cd67b(0x276)][_0x7cd67b(0x20e)]();}[_0x217c82(0x200)](){const _0x3c8822=_0x217c82,{balloonView:_0x521874,buttonView:_0x564642,hideMethod:_0xe0dcb5}=this[_0x3c8822(0x1ec)];_0xc03999({'emitter':_0x521874,'contextElements':[_0x521874[_0x3c8822(0x259)],_0x564642[_0x3c8822(0x259)]],'callback':()=>{_0xe0dcb5();},'activator':()=>_0x564642[_0x3c8822(0x214)]&&!this[_0x3c8822(0x1ee)][_0x3c8822(0x1fa)]&&!this[_0x3c8822(0x219)][_0x3c8822(0x20d)]()});}[_0x217c82(0x1f1)](_0x1eb368,_0x142f4c,_0x4cae4b=!0x1,_0xfe5d19=!0x1){const _0x2ea3b2=_0x217c82,_0x4f56ce=_0x2ea3b2(0x23c)===_0x142f4c||!0x0===_0x1eb368[_0x2ea3b2(0x23b)],_0x5a88b7=new _0x4f11f6(this[_0x2ea3b2(0x1ff)],_0x1eb368,_0x4f56ce,_0x4cae4b,_0xfe5d19);return _0x4f56ce||_0x5a88b7['on'](_0x2ea3b2(0x226),()=>{const _0x4289f0=_0x2ea3b2;this[_0x4289f0(0x251)](_0x4289f0(0x20c),_0x5a88b7['id']);}),_0x5a88b7;}[_0x217c82(0x246)](_0x4888ce,_0xc52681){const _0x3e2962=_0x217c82;_0xc52681[_0x3e2962(0x24a)](_0x4888ce,0x0);}[_0x217c82(0x24d)](_0x2240ec,_0x4cceeb){const _0x430d79=_0x217c82,_0x1ec788=_0x4cceeb[_0x430d79(0x221)](_0x2a92fb=>_0x2a92fb['id']===_0x2240ec);_0x1ec788&&_0x4cceeb[_0x430d79(0x26f)](_0x1ec788);}[_0x217c82(0x227)](){const _0x3fb66c=_0x217c82;this[_0x3fb66c(0x1f9)][_0x3fb66c(0x214)]?this[_0x3fb66c(0x279)]():(this[_0x3fb66c(0x210)](),this[_0x3fb66c(0x21b)][_0x3fb66c(0x208)]({'target':this[_0x3fb66c(0x1f9)][_0x3fb66c(0x259)],'limiter':this[_0x3fb66c(0x1e9)](),'positions':qo}),this[_0x3fb66c(0x21a)]&&this[_0x3fb66c(0x21b)][_0x3fb66c(0x240)][_0x3fb66c(0x26e)](0x0)?.[_0x3fb66c(0x251)](_0x3fb66c(0x21d)));}[_0x217c82(0x26a)](_0x1e654e){const _0x4dcb70=_0x217c82;this[_0x4dcb70(0x224)][_0x4dcb70(0x247)](),this[_0x4dcb70(0x217)](),this[_0x4dcb70(0x251)](_0x4dcb70(0x1fe),_0x1e654e);}}export class SourcesBalloonButtonView extends _0x4e50af{[_0x217c82(0x252)];constructor(_0xe0ffcb){const _0x347a36=_0x217c82;super(_0xe0ffcb),this[_0x347a36(0x22c)]({'withText':!0x0,'role':_0x347a36(0x222)}),this[_0x347a36(0x252)]=this[_0x347a36(0x1fd)](),this[_0x347a36(0x261)]({'attributes':{'class':[jo]}});}[_0x217c82(0x203)](){const _0x34e576=_0x217c82;super[_0x34e576(0x203)](),this[_0x34e576(0x274)][_0x34e576(0x24a)](this[_0x34e576(0x252)]);}[_0x217c82(0x1fd)](){const _0xf94a3b=_0x217c82,_0x25ed35=new _0x47381a();return _0x25ed35[_0xf94a3b(0x240)]=_0x3f18fa,_0x25ed35[_0xf94a3b(0x261)]({'attributes':{'class':jo+_0xf94a3b(0x1f4)}}),_0x25ed35;}}
|
|
23
|
+
const _0x4e86c9=_0x275f;(function(_0x5a2794,_0x23c12a){const _0x448981=_0x275f,_0x2913db=_0x5a2794();while(!![]){try{const _0x2a22b5=parseInt(_0x448981(0x1ab))/0x1*(parseInt(_0x448981(0x1dd))/0x2)+-parseInt(_0x448981(0x1a5))/0x3+parseInt(_0x448981(0x1d7))/0x4+parseInt(_0x448981(0x19b))/0x5*(parseInt(_0x448981(0x16b))/0x6)+-parseInt(_0x448981(0x165))/0x7*(-parseInt(_0x448981(0x19c))/0x8)+-parseInt(_0x448981(0x1bf))/0x9+parseInt(_0x448981(0x1d3))/0xa;if(_0x2a22b5===_0x23c12a)break;else _0x2913db['push'](_0x2913db['shift']());}catch(_0x2ce027){_0x2913db['push'](_0x2913db['shift']());}}}(_0x4d35,0x62dbd));import{BalloonPanelView as _0x1d98f5,ButtonView as _0x22f368,clickOutsideHandler as _0x3c3c4f,FileDialogButtonView as _0x4f2f31,IconView as _0x5bd193,View as _0x39874e}from'ckeditor5/src/ui.js';function _0x275f(_0x4ac4b0,_0x39ef2f){const _0x4d3581=_0x4d35();return _0x275f=function(_0x275f0c,_0x238442){_0x275f0c=_0x275f0c-0x160;let _0x31fa1b=_0x4d3581[_0x275f0c];return _0x31fa1b;},_0x275f(_0x4ac4b0,_0x39ef2f);}import{IconBrowseFiles as _0x266edc,IconDocument as _0xa6dda9,IconDocumentOutline as _0x5f039d,IconDropdownArrow as _0x295eb8,IconLink as _0x392b14,IconPaperClip as _0x540b31}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x422dc7}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x3c7207}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x58a455}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x388cb3}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x455e0a}from'./resources/aichatresourcesballoonview.js';function _0x4d35(){const _0x506fbd=['ck-ai-chat-context-controls__show-more-balloon-panel','_handleUrlSubmit','AI_CHAT_CONTEXT_URL_LABEL','_createContextButton','type','clearCurrentContextItems','removeContextItemChip','createCollection','ck-ai-chat-context-controls__balloon-button-source','_createAddContextBalloonPanelView','defaultPositions','_setupAllBalloonClickOutsideHandlers','ck-ai-chat-context-controls__pending-contexts','menuitem','986500ifTKUh','128SDFAzw','updateResourceState','ck-ai-chat','AI_CHAT_CONTEXT_FILE_LABEL','find','conversation','_overflowManager','render','arrowView','1027206xFlAjx','_removeContextFromCollection','hideUrlBalloonPanel','_addContextBalloonPanelView','southArrowNorthEast','show','1kGhVKE','showUrlBalloonPanel','ck-reset_all-excluded','enabled','_setBalloonPanelContent','_setupAddContextBalloonClickOutsideHandler','showAddContextBalloonPanel','ck-ai-chat-context-controls__add-context-button','hideAddContextBalloonPanel','removeContextItem','northArrowSouthWest','destroy','cancel','southArrowNorthWest','div','closeSourceResourceBalloon','label','populateSourceResourceBalloon','clear','_currentContextsChips','4973400kVMHRO','isReadOnly','done','southArrowNorth','isLoading','execute','_addUrlContent','content','loadSourceResources','_conversationContextsChips','set','__arrow','_createBalloonButton','_bindEventHandlers','reorganizeChips','clearConversationContextItems','_addContextToCollection','balloonView','buttonView','length','991390TARnZM','northArrowSouth','_createUrlBalloonPanelView','tooltip','1472612cVeQyb','ck-ai-chat-controls_context_show-more-button','bodyCollection','_createArrowView','element','get','369102ooExyc','_showSourceResourcesBalloon','addResourceToContext','isHidden','bind','sources','document','setTemplate','fire','addContextButtonView','_toggleAddContextBalloon','addUrlToContext','_createResourcesBalloonView','_handleAddContextButtonClick','_getLimiterElement','extendTemplate','isEnabled','hide','setAddContextOptions','submitUrl','_addContextBalloonConfig','isVisible','showSourceResourcesBalloon','AI_CHAT_CONTEXT_ADD_CONTEXT','pin','_createAddContextButtonView','refreshBalloon','ck-ai-chat-context-controls__url-balloon-panel','_hasExactlyOneSource','_createBaseBalloonPanel','_setupTemplate','197218TzXnnv','urls','withBackButton','add','_urlInputView','addContextItem','6QhRgOS','executeCustomItemCallback','addDocumentToContext','source','isOn','setConversationContext','overflowChips','searchInputVisibleFrom','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','icon','_urlBalloonPanelView','addFileToContext','setContainerElement','ck-ai-chat-context-chips-wrapper-balloon','body','current','setContextItemLoading','locale','files','isAnyResourceBalloonVisible','ck-ai-chat-context-controls','remove','customItems','ck-ai-chat-context-controls__add-context-balloon-panel','focus','_setupUrlBalloonClickOutsideHandler','_setAddContextButtonEnabled','_resourcesBalloonView','northArrowSouthEast','customItem','ck-ai-chat-controls-button','children','closest','ck-ai-chat-context-controls__balloon-button'];_0x4d35=function(){return _0x506fbd;};return _0x4d35();}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4e86c9(0x16d),_0x4e86c9(0x176),_0x4e86c9(0x1e8),_0x4e86c9(0x1df),_0x4e86c9(0x1b4),_0x4e86c9(0x1c7),_0x4e86c9(0x16c)];const Ro=_0x4e86c9(0x17f),Oo=_0x4e86c9(0x199),Uo=_0x4e86c9(0x182),Lo=_0x4e86c9(0x1b2),No=_0x4e86c9(0x161),Mo=_0x4e86c9(0x18c),Ho=_0x4e86c9(0x195),jo=_0x4e86c9(0x189),Fo=_0x4e86c9(0x178),Xo=_0x4e86c9(0x1d8),yo=_0x4e86c9(0x18d),Do=_0x4e86c9(0x19e),$o=[_0x1d98f5[_0x4e86c9(0x197)][_0x4e86c9(0x1b5)],_0x1d98f5[_0x4e86c9(0x197)][_0x4e86c9(0x1d4)],_0x1d98f5[_0x4e86c9(0x197)][_0x4e86c9(0x187)],_0x1d98f5[_0x4e86c9(0x197)][_0x4e86c9(0x1b8)],_0x1d98f5[_0x4e86c9(0x197)][_0x4e86c9(0x1c2)],_0x1d98f5[_0x4e86c9(0x197)][_0x4e86c9(0x1a9)]];export class AIChatContextPanelView extends _0x39874e{[_0x4e86c9(0x1e6)];[_0x4e86c9(0x1be)]=this[_0x4e86c9(0x194)]();[_0x4e86c9(0x1c8)]=this[_0x4e86c9(0x194)]();[_0x4e86c9(0x1a2)];[_0x4e86c9(0x1a8)];[_0x4e86c9(0x175)];[_0x4e86c9(0x169)];[_0x4e86c9(0x186)];[_0x4e86c9(0x1f1)];[_0x4e86c9(0x162)]=!0x1;[_0x4e86c9(0x1d9)];constructor(_0x7a86dd,_0x329bbd){const _0x3f48ce=_0x4e86c9;super(_0x7a86dd),this[_0x3f48ce(0x1d9)]=_0x329bbd[_0x3f48ce(0x1d9)],this[_0x3f48ce(0x1be)]=this[_0x3f48ce(0x194)](),this[_0x3f48ce(0x1c8)]=this[_0x3f48ce(0x194)](),this[_0x3f48ce(0x1e6)]=this[_0x3f48ce(0x1f6)](_0x7a86dd),this[_0x3f48ce(0x1a8)]=this[_0x3f48ce(0x196)](_0x7a86dd),this[_0x3f48ce(0x175)]=this[_0x3f48ce(0x1d5)](_0x7a86dd),this[_0x3f48ce(0x186)]=this[_0x3f48ce(0x1e9)](_0x7a86dd,_0x329bbd);const _0x3087d4={'cssClasses':{'showMoreButton':Xo,'showMoreBalloon':yo,'overflowContainer':Fo,'controlsButton':jo}};this[_0x3f48ce(0x1a2)]=new _0x58a455(_0x7a86dd,this[_0x3f48ce(0x1be)],_0x3087d4,this[_0x3f48ce(0x1d9)],this),this[_0x3f48ce(0x1f1)]={'buttonView':this[_0x3f48ce(0x1e6)],'balloonView':this[_0x3f48ce(0x1a8)],'hideMethod':this[_0x3f48ce(0x1b3)][_0x3f48ce(0x1e1)](this),'showMethod':this[_0x3f48ce(0x1b1)][_0x3f48ce(0x1e1)](this)},this[_0x3f48ce(0x164)](),this[_0x3f48ce(0x1cc)]();}[_0x4e86c9(0x1a3)](){const _0x42739c=_0x4e86c9;super[_0x42739c(0x1a3)](),this[_0x42739c(0x198)](),this[_0x42739c(0x1a2)][_0x42739c(0x177)](this[_0x42739c(0x1db)]),this[_0x42739c(0x1a2)][_0x42739c(0x1cd)]();}[_0x4e86c9(0x1b6)](){const _0x56800e=_0x4e86c9;super[_0x56800e(0x1b6)](),this[_0x56800e(0x1a2)][_0x56800e(0x1b6)](),this[_0x56800e(0x186)][_0x56800e(0x1b6)]();}[_0x4e86c9(0x16a)](_0x48fa43,_0x1ea61d){const _0xfe307=_0x4e86c9,_0x41cec1=this[_0xfe307(0x190)](_0x48fa43,_0xfe307(0x17a),!0x0,_0x1ea61d);this[_0xfe307(0x1cf)](_0x41cec1,this[_0xfe307(0x1be)]),this[_0xfe307(0x1a2)][_0xfe307(0x1cd)]();}[_0x4e86c9(0x1b4)](_0x5bfd56){const _0x366715=_0x4e86c9;this[_0x366715(0x1a6)](_0x5bfd56,this[_0x366715(0x1be)]),this[_0x366715(0x1a6)](_0x5bfd56,this[_0x366715(0x1a2)][_0x366715(0x171)]),this[_0x366715(0x1a2)][_0x366715(0x1cd)]();}[_0x4e86c9(0x17b)](_0x44e24d,_0x395d3a){const _0x4d7c3d=_0x4e86c9;let _0x493882=this[_0x4d7c3d(0x1be)][_0x4d7c3d(0x1a0)](_0x4a1f18=>_0x4a1f18['id']===_0x44e24d);_0x493882||(_0x493882=this[_0x4d7c3d(0x1a2)][_0x4d7c3d(0x171)][_0x4d7c3d(0x1a0)](_0x414f97=>_0x414f97['id']===_0x44e24d)),_0x493882&&(_0x493882[_0x4d7c3d(0x1c3)]=_0x395d3a);}[_0x4e86c9(0x170)](_0x469d21){const _0x2c958b=_0x4e86c9;this[_0x2c958b(0x1c8)][_0x2c958b(0x1bd)]();for(const _0x88cf8e of _0x469d21){const _0x5d5753=this[_0x2c958b(0x190)](_0x88cf8e,_0x2c958b(0x1a1),!0x1,!0x1);this[_0x2c958b(0x1cf)](_0x5d5753,this[_0x2c958b(0x1c8)]);}}[_0x4e86c9(0x192)](){const _0x2cfd99=_0x4e86c9;this[_0x2cfd99(0x1be)][_0x2cfd99(0x1bd)](),this[_0x2cfd99(0x1a2)][_0x2cfd99(0x1bd)]();}[_0x4e86c9(0x1ce)](){const _0x51f7de=_0x4e86c9;this[_0x51f7de(0x1c8)][_0x51f7de(0x1bd)]();}[_0x4e86c9(0x19d)](_0xf52e9d,_0x3764e9,_0xbb945a){const _0x7ced48=_0x4e86c9;this[_0x7ced48(0x186)][_0x7ced48(0x19d)](_0xf52e9d,_0x3764e9,_0xbb945a);}[_0x4e86c9(0x1b3)](){const _0x130e3f=_0x4e86c9;this[_0x130e3f(0x1e7)](!0x1);}[_0x4e86c9(0x1b1)](){const _0x134b98=_0x4e86c9;this[_0x134b98(0x1e7)](!0x0);}[_0x4e86c9(0x1a7)](){const _0x346fdd=_0x4e86c9;this[_0x346fdd(0x175)][_0x346fdd(0x1ee)](),this[_0x346fdd(0x1e6)][_0x346fdd(0x16f)]=!0x1,this[_0x346fdd(0x169)]&&this[_0x346fdd(0x169)][_0x346fdd(0x1bd)]();}[_0x4e86c9(0x1ac)](){const _0x146c79=_0x4e86c9;this[_0x146c79(0x175)][_0x146c79(0x1aa)](),this[_0x146c79(0x1e6)][_0x146c79(0x16f)]=!0x0;}[_0x4e86c9(0x1de)]({source:_0x52c191,withBackButton:_0x1da705}){const _0x5b7f48=_0x4e86c9;this[_0x5b7f48(0x186)][_0x5b7f48(0x1f3)]({'source':_0x52c191,'withBackButton':_0x1da705}),this[_0x5b7f48(0x1e6)][_0x5b7f48(0x16f)]=!0x0;}[_0x4e86c9(0x1bc)](_0x31745a,_0x57313b,_0x12dc8e,_0x2f3816){const _0x292e7f=_0x4e86c9;this[_0x292e7f(0x186)][_0x292e7f(0x1bc)](_0x31745a,_0x12dc8e,_0x2f3816);}[_0x4e86c9(0x1ba)](_0xce3d11){const _0x5ea956=_0x4e86c9;this[_0x5ea956(0x186)][_0x5ea956(0x1ba)](_0xce3d11),this[_0x5ea956(0x1e6)][_0x5ea956(0x16f)]=!0x1;}[_0x4e86c9(0x1ef)](_0x3fa3e1){const _0x30ba7f=_0x4e86c9;this[_0x30ba7f(0x1af)](this[_0x30ba7f(0x1a8)],this[_0x30ba7f(0x17c)],_0x3fa3e1),this[_0x30ba7f(0x185)](_0x3fa3e1);}[_0x4e86c9(0x185)](_0x37b322){const _0x3580aa=_0x4e86c9,_0x40d483=!_0x37b322[_0x3580aa(0x1e3)][_0x3580aa(0x1e0)]&&_0x37b322[_0x3580aa(0x1e3)][_0x3580aa(0x1ae)],_0x3f9ee5=_0x37b322[_0x3580aa(0x166)][_0x3580aa(0x1ae)],_0x2f367d=_0x37b322[_0x3580aa(0x17d)][_0x3580aa(0x1ae)],_0xf9606a=_0x37b322[_0x3580aa(0x1e2)][_0x3580aa(0x1d2)]>0x0,_0x13b95c=_0x37b322[_0x3580aa(0x181)]&&_0x37b322[_0x3580aa(0x181)][_0x3580aa(0x1d2)]>0x0;this[_0x3580aa(0x1e6)][_0x3580aa(0x1ed)]=_0x40d483||_0x3f9ee5||_0x2f367d||_0xf9606a||_0x13b95c;}[_0x4e86c9(0x164)](){const _0x1b063e=_0x4e86c9;this[_0x1b063e(0x1e4)]({'tag':_0x1b063e(0x1b9),'attributes':{'class':[Ro,_0x1b063e(0x1ad)]},'children':[{'tag':_0x1b063e(0x1b9),'attributes':{'class':Oo},'children':this[_0x1b063e(0x1be)]}]});}[_0x4e86c9(0x1cc)](){const _0x28e2f6=_0x4e86c9;this[_0x28e2f6(0x1e6)]['on'](_0x28e2f6(0x1c4),()=>{const _0x45a32d=_0x28e2f6;this[_0x45a32d(0x1ea)]();});}[_0x4e86c9(0x1f6)](_0x2f982b){const _0x18de2c=_0x4e86c9,_0x44553a=new _0x22f368(_0x2f982b);return _0x44553a[_0x18de2c(0x1c9)]({'label':_0x388cb3(_0x2f982b,_0x18de2c(0x1f4)),'class':jo+'\x20'+Lo,'icon':_0x540b31,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x44553a;}[_0x4e86c9(0x196)](_0x3e0416){const _0x43704d=_0x4e86c9;return this[_0x43704d(0x163)](_0x3e0416,Uo);}[_0x4e86c9(0x1d5)](_0x255bf7){const _0x18bc16=_0x4e86c9,_0x3df444=this[_0x18bc16(0x163)](_0x255bf7,No);return this[_0x18bc16(0x1c5)](_0x3df444,_0x255bf7),_0x3df444;}[_0x4e86c9(0x1e9)](_0xe1341b,_0x5a9033){const _0x12987f=_0x4e86c9,_0x118850={'searchInputVisibleFrom':_0x5a9033[_0x12987f(0x172)],'onBackToContext':()=>{const _0x1b1c56=_0x12987f;this[_0x1b1c56(0x1b1)](),this[_0x1b1c56(0x1a8)][_0x1b1c56(0x1f5)]({'target':this[_0x1b1c56(0x1e6)][_0x1b1c56(0x1db)],'limiter':this[_0x1b1c56(0x1eb)](),'positions':$o});},'onResourceSelected':(_0x388aa3,_0x2391d4)=>{const _0x2a9c76=_0x12987f;this[_0x2a9c76(0x1e5)](_0x2a9c76(0x1df),{'source':_0x388aa3,'resource':_0x2391d4});},'onLoadSourceResources':_0x1cd346=>{const _0x1b3db8=_0x12987f;this[_0x1b3db8(0x1e5)](_0x1b3db8(0x1c7),_0x1cd346);},'onBalloonClosed':()=>{const _0x5148f1=_0x12987f;this[_0x5148f1(0x1e6)][_0x5148f1(0x16f)]=!0x1;},'getLimiterElement':()=>this[_0x12987f(0x1eb)](),'getTargetElement':()=>this[_0x12987f(0x1e6)][_0x12987f(0x1db)]};return new _0x455e0a(_0xe1341b,_0x5a9033[_0x12987f(0x1d9)],_0x118850);}[_0x4e86c9(0x1eb)](){const _0x14f390=_0x4e86c9;return this[_0x14f390(0x1db)]?.[_0x14f390(0x18b)]('.'+Do)||document[_0x14f390(0x179)];}[_0x4e86c9(0x163)](_0xd1bda5,_0x222efa){const _0x5a6345=_0x4e86c9,_0x32b156=new _0x1d98f5(_0xd1bda5);return _0x32b156[_0x5a6345(0x1ec)]({'attributes':{'class':_0x222efa}}),this[_0x5a6345(0x1d9)][_0x5a6345(0x168)](_0x32b156),_0x32b156;}[_0x4e86c9(0x1af)](_0x28e485,_0x3c9b43,_0x14ff94){const _0x223449=_0x4e86c9;if(_0x28e485[_0x223449(0x1c6)][_0x223449(0x1bd)](),!_0x14ff94[_0x223449(0x1e3)][_0x223449(0x1e0)]&&_0x14ff94[_0x223449(0x1e3)][_0x223449(0x1ae)]){const _0x4deba2=this[_0x223449(0x1cb)](_0x3c9b43,{'label':_0x388cb3(_0x3c9b43,_0x223449(0x173)),'icon':_0xa6dda9});_0x4deba2['on'](_0x223449(0x1c4),()=>{const _0x5202b7=_0x223449;this[_0x5202b7(0x1e5)](_0x5202b7(0x16d)),this[_0x5202b7(0x1b3)]();}),_0x28e485[_0x223449(0x1c6)][_0x223449(0x168)](_0x4deba2);}if(_0x14ff94[_0x223449(0x166)][_0x223449(0x1ae)]){const _0x1b257a=this[_0x223449(0x1cb)](_0x3c9b43,{'label':_0x388cb3(_0x3c9b43,_0x223449(0x18f)),'icon':_0x392b14});_0x1b257a['on'](_0x223449(0x1c4),()=>{const _0x699361=_0x223449;this[_0x699361(0x1b3)](),this[_0x699361(0x1ac)](),this[_0x699361(0x175)][_0x699361(0x1f5)]({'target':this[_0x699361(0x1e6)][_0x699361(0x1db)],'limiter':this[_0x699361(0x1eb)](),'positions':$o}),this[_0x699361(0x169)][_0x699361(0x183)]();}),_0x28e485[_0x223449(0x1c6)][_0x223449(0x168)](_0x1b257a);}if(_0x14ff94[_0x223449(0x17d)][_0x223449(0x1ae)]){const _0x52726f=new _0x4f2f31(_0x3c9b43);_0x52726f[_0x223449(0x1c9)]({'label':_0x388cb3(_0x3c9b43,_0x223449(0x19f)),'icon':_0x266edc,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x52726f['on'](_0x223449(0x1c4),()=>{const _0x2c26da=_0x223449;this[_0x2c26da(0x1b3)]();}),_0x52726f['on'](_0x223449(0x1c1),(_0xeb7d0a,_0x46ab27)=>{const _0x22ba9a=_0x223449;this[_0x22ba9a(0x1e5)](_0x22ba9a(0x176),_0x46ab27);}),_0x52726f[_0x223449(0x1d6)]=!0x0,_0x28e485[_0x223449(0x1c6)][_0x223449(0x168)](_0x52726f);}for(const _0x1ff33a of _0x14ff94[_0x223449(0x1e2)]){const _0x2fa8a9=this[_0x223449(0x1cb)](_0x3c9b43,{'label':_0x1ff33a[_0x223449(0x1bb)],'icon':_0x1ff33a[_0x223449(0x174)]||_0x5f039d,'type':_0x223449(0x16e)});_0x28e485[_0x223449(0x1c6)][_0x223449(0x168)](_0x2fa8a9),_0x2fa8a9['on'](_0x223449(0x1c4),()=>{const _0x4ec821=_0x223449;this[_0x4ec821(0x1b3)](),this[_0x4ec821(0x1de)]({'source':_0x1ff33a,'withBackButton':!this[_0x4ec821(0x162)]});});}for(const _0x4ebb80 of _0x14ff94[_0x223449(0x181)]||[]){const _0x39f43d=this[_0x223449(0x1cb)](_0x3c9b43,{'label':_0x4ebb80[_0x223449(0x1bb)],'icon':_0x4ebb80[_0x223449(0x174)]||_0x5f039d,'type':_0x223449(0x188)});_0x28e485[_0x223449(0x1c6)][_0x223449(0x168)](_0x39f43d),_0x39f43d['on'](_0x223449(0x1c4),()=>{const _0x1acc2f=_0x223449;this[_0x1acc2f(0x1b3)](),this[_0x1acc2f(0x1e5)](_0x1acc2f(0x16c),_0x4ebb80);});}this[_0x223449(0x162)]=0x1===_0x28e485[_0x223449(0x1c6)][_0x223449(0x1d2)],this[_0x223449(0x169)][_0x223449(0x167)]=!this[_0x223449(0x162)];}[_0x4e86c9(0x1c5)](_0x2c75e0,_0x556ca8){const _0x48d8cc=_0x4e86c9;this[_0x48d8cc(0x169)]=new _0x3c7207(_0x556ca8),this[_0x48d8cc(0x169)]['on'](_0x48d8cc(0x1f0),(_0x5202b2,_0x102e1b)=>{const _0x37c6bd=_0x48d8cc;this[_0x37c6bd(0x18e)](_0x102e1b);}),this[_0x48d8cc(0x169)]['on'](_0x48d8cc(0x1b7),()=>{const _0x236850=_0x48d8cc;this[_0x236850(0x1a7)](),this[_0x236850(0x162)]||(this[_0x236850(0x1b1)](),this[_0x236850(0x1a8)][_0x236850(0x1f5)]({'target':this[_0x236850(0x1e6)][_0x236850(0x1db)],'limiter':this[_0x236850(0x1eb)](),'positions':$o}));}),this[_0x48d8cc(0x169)]['on'](_0x48d8cc(0x160),()=>{const _0x35c7b9=_0x48d8cc;this[_0x35c7b9(0x175)][_0x35c7b9(0x1f2)]&&this[_0x35c7b9(0x175)][_0x35c7b9(0x1f5)]({'target':this[_0x35c7b9(0x1e6)][_0x35c7b9(0x1db)],'limiter':this[_0x35c7b9(0x1eb)](),'positions':$o});}),_0x2c75e0[_0x48d8cc(0x1c6)][_0x48d8cc(0x168)](this[_0x48d8cc(0x169)]);}[_0x4e86c9(0x1cb)](_0x1b114e,_0x3ab9cc){const _0x10e970=_0x4e86c9,_0x36eb8f=_0x10e970(0x16e)===_0x3ab9cc[_0x10e970(0x191)]?new SourcesBalloonButtonView(_0x1b114e):new _0x22f368(_0x1b114e);return _0x36eb8f[_0x10e970(0x1c9)]({'label':_0x3ab9cc[_0x10e970(0x1bb)],'icon':_0x3ab9cc[_0x10e970(0x174)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x36eb8f;}[_0x4e86c9(0x198)](){const _0x58768d=_0x4e86c9;this[_0x58768d(0x1b0)](),this[_0x58768d(0x184)]();}[_0x4e86c9(0x184)](){const _0x49f0ba=_0x4e86c9;_0x3c3c4f({'emitter':this[_0x49f0ba(0x175)],'contextElements':[this[_0x49f0ba(0x175)][_0x49f0ba(0x1db)]],'callback':()=>{const _0x1e7fe4=_0x49f0ba;this[_0x1e7fe4(0x1a7)]();},'activator':()=>this[_0x49f0ba(0x175)][_0x49f0ba(0x1f2)]});}[_0x4e86c9(0x1e7)](_0x117eb9){const _0x2e53d1=_0x4e86c9,_0x18435a=this[_0x2e53d1(0x1f1)];_0x18435a[_0x2e53d1(0x1d1)][_0x2e53d1(0x16f)]=_0x117eb9,_0x117eb9?_0x18435a[_0x2e53d1(0x1d0)][_0x2e53d1(0x1aa)]():_0x18435a[_0x2e53d1(0x1d0)][_0x2e53d1(0x1ee)]();}[_0x4e86c9(0x1b0)](){const _0x32fb63=_0x4e86c9,{balloonView:_0x1e3ef5,buttonView:_0x3b501c,hideMethod:_0x3e1efb}=this[_0x32fb63(0x1f1)];_0x3c3c4f({'emitter':_0x1e3ef5,'contextElements':[_0x1e3ef5[_0x32fb63(0x1db)],_0x3b501c[_0x32fb63(0x1db)]],'callback':()=>{_0x3e1efb();},'activator':()=>_0x3b501c[_0x32fb63(0x16f)]&&!this[_0x32fb63(0x175)][_0x32fb63(0x1f2)]&&!this[_0x32fb63(0x186)][_0x32fb63(0x17e)]()});}[_0x4e86c9(0x190)](_0x478310,_0x175e43,_0x217bbf=!0x1,_0x3aa63d=!0x1){const _0x140975=_0x4e86c9,_0x192c5a=_0x140975(0x1a1)===_0x175e43||!0x0===_0x478310[_0x140975(0x1c0)],_0x2f3cae=new _0x422dc7(this[_0x140975(0x17c)],_0x478310,_0x192c5a,_0x217bbf,_0x3aa63d);return _0x192c5a||_0x2f3cae['on'](_0x140975(0x193),()=>{const _0x34fddc=_0x140975;this[_0x34fddc(0x1e5)](_0x34fddc(0x1b4),_0x2f3cae['id']);}),_0x2f3cae;}[_0x4e86c9(0x1cf)](_0x5d0908,_0x58b798){const _0x2d214a=_0x4e86c9;_0x58b798[_0x2d214a(0x168)](_0x5d0908,0x0);}[_0x4e86c9(0x1a6)](_0x5d6ea2,_0x32f0a1){const _0x14f6ad=_0x4e86c9,_0x473aea=_0x32f0a1[_0x14f6ad(0x1a0)](_0x50e798=>_0x50e798['id']===_0x5d6ea2);_0x473aea&&_0x32f0a1[_0x14f6ad(0x180)](_0x473aea);}[_0x4e86c9(0x1ea)](){const _0x50c1ac=_0x4e86c9;this[_0x50c1ac(0x1e6)][_0x50c1ac(0x16f)]?this[_0x50c1ac(0x1b3)]():(this[_0x50c1ac(0x1b1)](),this[_0x50c1ac(0x1a8)][_0x50c1ac(0x1f5)]({'target':this[_0x50c1ac(0x1e6)][_0x50c1ac(0x1db)],'limiter':this[_0x50c1ac(0x1eb)](),'positions':$o}),this[_0x50c1ac(0x162)]&&this[_0x50c1ac(0x1a8)][_0x50c1ac(0x1c6)][_0x50c1ac(0x1dc)](0x0)?.[_0x50c1ac(0x1e5)](_0x50c1ac(0x1c4)));}[_0x4e86c9(0x18e)](_0x2de80b){const _0x15ea24=_0x4e86c9;this[_0x15ea24(0x169)][_0x15ea24(0x1bd)](),this[_0x15ea24(0x1a7)](),this[_0x15ea24(0x1e5)](_0x15ea24(0x1e8),_0x2de80b);}}export class SourcesBalloonButtonView extends _0x22f368{[_0x4e86c9(0x1a4)];constructor(_0x3bc324){const _0x5696a9=_0x4e86c9;super(_0x3bc324),this[_0x5696a9(0x1c9)]({'withText':!0x0,'role':_0x5696a9(0x19a)}),this[_0x5696a9(0x1a4)]=this[_0x5696a9(0x1da)](),this[_0x5696a9(0x1ec)]({'attributes':{'class':[Ho]}});}[_0x4e86c9(0x1a3)](){const _0xae0e87=_0x4e86c9;super[_0xae0e87(0x1a3)](),this[_0xae0e87(0x18a)][_0xae0e87(0x168)](this[_0xae0e87(0x1a4)]);}[_0x4e86c9(0x1da)](){const _0x452c1c=_0x4e86c9,_0xffcec=new _0x5bd193();return _0xffcec[_0x452c1c(0x1c6)]=_0x295eb8,_0xffcec[_0x452c1c(0x1ec)]({'attributes':{'class':Ho+_0x452c1c(0x1ca)}}),_0xffcec;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16fe4d=_0x53e0;(function(_0x5a7d26,_0x278787){const _0x54a786=_0x53e0,_0x4874bb=_0x5a7d26();while(!![]){try{const _0x35bd14=parseInt(_0x54a786(0x101))/0x1+-parseInt(_0x54a786(0xff))/0x2*(-parseInt(_0x54a786(0x111))/0x3)+parseInt(_0x54a786(0x107))/0x4*(-parseInt(_0x54a786(0x10a))/0x5)+-parseInt(_0x54a786(0x10f))/0x6*(parseInt(_0x54a786(0x102))/0x7)+parseInt(_0x54a786(0x115))/0x8+-parseInt(_0x54a786(0x108))/0x9*(-parseInt(_0x54a786(0x10b))/0xa)+parseInt(_0x54a786(0x109))/0xb*(parseInt(_0x54a786(0x11b))/0xc);if(_0x35bd14===_0x278787)break;else _0x4874bb['push'](_0x4874bb['shift']());}catch(_0x4f4b7f){_0x4874bb['push'](_0x4874bb['shift']());}}}(_0x2da8,0xcd854));function _0x53e0(_0x2ca4a1,_0x2254c8){const _0x2da86f=_0x2da8();return _0x53e0=function(_0x53e0ae,_0xe6cada){_0x53e0ae=_0x53e0ae-0xfd;let _0x10240f=_0x2da86f[_0x53e0ae];return _0x10240f;},_0x53e0(_0x2ca4a1,_0x2254c8);}import{ButtonView as _0x2b71d6,View as _0x33eede}from'ckeditor5/src/ui.js';import{IconStop as _0x188743}from'ckeditor5/src/icons.js';import{getTranslation as _0x1cbdac}from'../../../aicore/utils/common-translations.js';function _0x2da8(){const _0x3c54ec=['ck-ai-chat-controls-loader-wrapper','setTemplate','ck-ai-button-secondary\x20ck-ai-button-stop-generating','4drGwGq','3186ZsVAKF','242bDWheC','2236790etuiSx','26630wTKgIu','ck-reset_all','AI_CHAT_IS_WRITING','AI_CHAT_STOP_GENERATING','306444lPebcY','_loaderView','3dbGtfu','locale','ck-ai-chat-controls-loader-icon-dot','_createLoaderView','2073744oCACxY','execute','_cancelButtonView','_createCancelButtonView','abortPromptStream','ck-ai-chat-controls-loader-icon','10308zSRLBg','fire','set','538066NgIfev','ck-ai-chat-controls-loader','565429LrlZwO','105eMAcDH','div'];_0x2da8=function(){return _0x3c54ec;};return _0x2da8();}export class AIChatControlsLoaderView extends _0x33eede{[_0x16fe4d(0x117)];[_0x16fe4d(0x110)];constructor(_0x11b72f){const _0x29173a=_0x16fe4d;super(_0x11b72f),this[_0x29173a(0x117)]=this[_0x29173a(0x118)](),this[_0x29173a(0x110)]=this[_0x29173a(0x114)](),this[_0x29173a(0x105)]({'tag':_0x29173a(0x103),'attributes':{'class':['ck',_0x29173a(0x104),_0x29173a(0x10c)]},'children':[this[_0x29173a(0x110)],this[_0x29173a(0x117)]]});}[_0x16fe4d(0x118)](){const _0x57d823=_0x16fe4d,_0x105848=new _0x2b71d6(this[_0x57d823(0x112)]);return _0x105848[_0x57d823(0xfe)]({'label':_0x1cbdac(this[_0x57d823(0x112)],_0x57d823(0x10e)),'withText':!0x0,'class':_0x57d823(0x106),'icon':_0x188743}),_0x105848['on'](_0x57d823(0x116),()=>{const _0x1af040=_0x57d823;this[_0x1af040(0xfd)](_0x1af040(0x119));}),_0x105848;}[_0x16fe4d(0x114)](){const _0x2d9d66=_0x16fe4d,_0x414539=new _0x33eede(this[_0x2d9d66(0x112)]);return _0x414539[_0x2d9d66(0x105)]({'tag':_0x2d9d66(0x103),'attributes':{'class':[_0x2d9d66(0x100)]},'children':[{'tag':_0x2d9d66(0x103),'attributes':{'class':[_0x2d9d66(0x11a)]},'children':[{'tag':_0x2d9d66(0x103),'attributes':{'class':[_0x2d9d66(0x113)]}},{'tag':_0x2d9d66(0x103),'attributes':{'class':[_0x2d9d66(0x113)]}},{'tag':_0x2d9d66(0x103),'attributes':{'class':[_0x2d9d66(0x113)]}}]},{'text':_0x1cbdac(this[_0x2d9d66(0x112)],_0x2d9d66(0x10d))}]}),_0x414539;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1c71f6=_0x54ea;(function(_0xcf876d,_0x23047b){const _0x921e30=_0x54ea,_0x12a256=_0xcf876d();while(!![]){try{const _0x461c11=-parseInt(_0x921e30(0xc8))/0x1*(-parseInt(_0x921e30(0xe3))/0x2)+parseInt(_0x921e30(0xdc))/0x3*(-parseInt(_0x921e30(0xb6))/0x4)+parseInt(_0x921e30(0xc3))/0x5+parseInt(_0x921e30(0xb3))/0x6+-parseInt(_0x921e30(0xcb))/0x7+-parseInt(_0x921e30(0x9f))/0x8*(-parseInt(_0x921e30(0xff))/0x9)+-parseInt(_0x921e30(0xd4))/0xa;if(_0x461c11===_0x23047b)break;else _0x12a256['push'](_0x12a256['shift']());}catch(_0x351780){_0x12a256['push'](_0x12a256['shift']());}}}(_0x5a9c,0x31500));import{Collection as _0x4ed9f1}from'ckeditor5/src/utils.js';import{IconAI as _0x5032f6,IconBulb as _0x161bfa,IconWeb as _0x2e0bf3}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x3b1adf,ButtonLabelView as _0x531149,ButtonView as _0x23af47,createDropdown as _0x8910c6,IconView as _0x1d8823,UIModel as _0x53e80d,View as _0x4d4a85}from'ckeditor5/src/ui.js';import{getTranslation as _0x45f806}from'../../../aicore/utils/common-translations.js';const Jo=_0x1c71f6(0xd0),Fo=_0x1c71f6(0xf3),Ko=_0x1c71f6(0xa4),Qo=_0x1c71f6(0xe5),Zo=_0x1c71f6(0xa7),tl=_0x1c71f6(0xaa),el=_0x1c71f6(0xfb),il=_0x1c71f6(0xbe),sl='n';function _0x5a9c(){const _0x256358=['button','3aXwyvf','setWebSearch','selectModel','label','ck-ai-chat-controls__model-name','ck-hidden','_modelNameView','2282ujiIKZ','execute','ck-ai-button-tertiary','text','addMany','hidden','setReasoning','AI_CHAT_COMMANDS','_modelSelectionDropdown','span','description','source','AI_CHAT_DISABLE_REASONING','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_CAPABILITIES_YES','setModelList','ck-ai-chat-controls-button','bind','name','ck-button__label','reasoningActive','bindTemplate','_webSearchButton','buttonView','ck-ai-chat-controls__model-selection__item-description','toggleReasoning','_commandsButton','AI_CHAT_CAPABILITIES_NO','3501CZWfme','isVisible','7048VuPZGF','setModel','selector','model','toggleWebSearch','ck-ai-chat-controls-button--commands','isOn','isEnabled','ck-ai-chat-controls__model-selection','extendTemplate','listenTo','ck-ai-chat-controls__model-selection__item-name','set','AI_CHAT_ENABLE_REASONING','content','log','enabled','_createReasoningButton','_modelSelectionDropdownItems','_createModelSelectionDropdown','891300gXrRoy','menuitemradio','tooltip','1377108QBzdnS','_createWebSearchButton','style','AI_CHAT_SEARCH_WEB','webSearch','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','div','activeModelName','ck-ai-chat-controls__model-selection__item-capabilities','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','disableModelSelector','_createModelNameView','add','1870515voudfF','fire','_reasoningButton','length','AI_CHAT_DISABLE_WEB_SEARCH','277mNCsVb','_createCommandsButton','_getCapabilityParts','1403808oaxvbD','capabilities','clear','createCollection','AI_CHAT_ENABLE_WEB_SEARCH','ck-ai-chat__prompt-capabilities','modelDisplayMode','AI_CHAT_REASONING','modelSelectorEnabled','4346140EJtIXS','locale','enableModelSelector','setTemplate','activeModelId','reasoning','webSearchActive'];_0x5a9c=function(){return _0x256358;};return _0x5a9c();}export class AIChatPromptCapabilitiesView extends _0x4d4a85{[_0x1c71f6(0xf9)];[_0x1c71f6(0xc5)];[_0x1c71f6(0xfd)];[_0x1c71f6(0xeb)];[_0x1c71f6(0xb1)];[_0x1c71f6(0xe2)];constructor(_0x169efb){const _0x4f3dba=_0x1c71f6;super(_0x169efb),this[_0x4f3dba(0xab)](_0x4f3dba(0xda),!0x1),this[_0x4f3dba(0xab)](_0x4f3dba(0xf7),!0x1),this[_0x4f3dba(0xab)](_0x4f3dba(0xd1),_0x4f3dba(0xa1)),this[_0x4f3dba(0xab)](_0x4f3dba(0xd3),!0x0),this[_0x4f3dba(0xab)](_0x4f3dba(0xd8),null),this[_0x4f3dba(0xab)](_0x4f3dba(0xbd),null),this[_0x4f3dba(0xeb)]=this[_0x4f3dba(0xb2)](),this[_0x4f3dba(0xe2)]=this[_0x4f3dba(0xc1)](),this[_0x4f3dba(0xf9)]=this[_0x4f3dba(0xb7)](),this[_0x4f3dba(0xc5)]=this[_0x4f3dba(0xb0)](),this[_0x4f3dba(0xfd)]=this[_0x4f3dba(0xc9)](),this[_0x4f3dba(0xeb)][_0x4f3dba(0xfa)][_0x4f3dba(0xf4)](_0x4f3dba(0x100))['to'](this,_0x4f3dba(0xd1),_0x3c2b58=>_0x4f3dba(0xa1)===_0x3c2b58),this[_0x4f3dba(0xeb)][_0x4f3dba(0xfa)][_0x4f3dba(0xf4)](_0x4f3dba(0xb5))['to'](this,_0x4f3dba(0xd3),_0x54ff42=>_0x54ff42?this[_0x4f3dba(0xeb)][_0x4f3dba(0xfa)][_0x4f3dba(0xdf)]:_0x45f806(this[_0x4f3dba(0xd5)],_0x4f3dba(0xbf))),this[_0x4f3dba(0xeb)][_0x4f3dba(0xf4)](_0x4f3dba(0xa6))['to'](this,_0x4f3dba(0xd3),_0x58ddba=>_0x58ddba),this[_0x4f3dba(0xf9)][_0x4f3dba(0xf4)](_0x4f3dba(0xa5))['to'](this,_0x4f3dba(0xda),_0x3a1d37=>_0x3a1d37),this[_0x4f3dba(0xf9)][_0x4f3dba(0xf4)](_0x4f3dba(0xb5))['to'](this,_0x4f3dba(0xda),_0x3cd4aa=>_0x45f806(this[_0x4f3dba(0xd5)],_0x3cd4aa?_0x4f3dba(0xc7):_0x4f3dba(0xcf))),this[_0x4f3dba(0xc5)][_0x4f3dba(0xf4)](_0x4f3dba(0xa5))['to'](this,_0x4f3dba(0xf7),_0xc7ed5=>_0xc7ed5),this[_0x4f3dba(0xc5)][_0x4f3dba(0xf4)](_0x4f3dba(0xb5))['to'](this,_0x4f3dba(0xf7),_0x3a604e=>_0x45f806(this[_0x4f3dba(0xd5)],_0x3a604e?_0x4f3dba(0xef):_0x4f3dba(0xac))),this[_0x4f3dba(0xd7)]({'tag':_0x4f3dba(0xbc),'attributes':{'class':[Jo]},'children':[this[_0x4f3dba(0xeb)],this[_0x4f3dba(0xe2)],this[_0x4f3dba(0xf9)],this[_0x4f3dba(0xc5)],this[_0x4f3dba(0xfd)]]}),this[_0x4f3dba(0xb1)]=new _0x4ed9f1(),_0x3b1adf(this[_0x4f3dba(0xeb)],this[_0x4f3dba(0xb1)]);}[_0x1c71f6(0xf2)](_0x3dc0bc,_0x47319f){const _0x41ef0a=_0x1c71f6;if(_0x47319f)this[_0x41ef0a(0xab)](_0x41ef0a(0xd1),_0x41ef0a(0xe8));else{const _0x3c1439=0x1===_0x3dc0bc[_0x41ef0a(0xc6)];this[_0x41ef0a(0xab)](_0x41ef0a(0xd1),_0x3c1439?_0x41ef0a(0xf5):_0x41ef0a(0xa1));}if(this[_0x41ef0a(0xb1)][_0x41ef0a(0xcd)](),_0x3dc0bc?.[_0x41ef0a(0xc6)])for(const _0x529b4c of _0x3dc0bc){const _0x1f6185=new _0x53e80d({'label':_0x529b4c[_0x41ef0a(0xf5)],'withText':!0x0,'role':_0x41ef0a(0xb4),'id':_0x529b4c['id'],'model':_0x529b4c});_0x1f6185[_0x41ef0a(0xf4)](_0x41ef0a(0xa5))['to'](this,_0x41ef0a(0xd8),_0x5d19b7=>_0x5d19b7===_0x529b4c['id']),this[_0x41ef0a(0xb1)][_0x41ef0a(0xc2)]({'type':_0x41ef0a(0xdb),'model':_0x1f6185,'labelView':new ko(this[_0x41ef0a(0xd5)],_0x529b4c)});}}[_0x1c71f6(0xdd)](_0x41f82b){const _0x22b1a7=_0x1c71f6;this[_0x22b1a7(0xab)](_0x22b1a7(0xda),_0x41f82b);}[_0x1c71f6(0xe9)](_0x34b9af){const _0x4aed25=_0x1c71f6;this[_0x4aed25(0xab)](_0x4aed25(0xf7),_0x34b9af);}[_0x1c71f6(0xa0)](_0x195e86){const _0x4fd6aa=_0x1c71f6;if(!_0x195e86)return;this[_0x4fd6aa(0xd8)]=_0x195e86['id'],this[_0x4fd6aa(0xbd)]=_0x195e86[_0x4fd6aa(0xf5)]||_0x195e86['id'],this[_0x4fd6aa(0xeb)][_0x4fd6aa(0xfa)][_0x4fd6aa(0xab)](_0x4fd6aa(0xdf),_0x195e86[_0x4fd6aa(0xf5)]),this[_0x4fd6aa(0xeb)][_0x4fd6aa(0xfa)][_0x4fd6aa(0xab)](_0x4fd6aa(0xb5),_0x195e86[_0x4fd6aa(0xf5)]);const _0x243543=_0x195e86[_0x4fd6aa(0xcc)][_0x4fd6aa(0xba)]?.[_0x4fd6aa(0xaf)]??!0x1;this[_0x4fd6aa(0xab)](_0x4fd6aa(0xda),!0x1),this[_0x4fd6aa(0xf9)][_0x4fd6aa(0xab)](_0x4fd6aa(0xa5),!0x1),this[_0x4fd6aa(0xf9)][_0x4fd6aa(0xab)](_0x4fd6aa(0xa6),_0x243543),this[_0x4fd6aa(0xf9)][_0x4fd6aa(0xab)](_0x4fd6aa(0x100),_0x243543);const _0x26d297=_0x195e86[_0x4fd6aa(0xcc)][_0x4fd6aa(0xd9)]?.[_0x4fd6aa(0xaf)]??!0x1;this[_0x4fd6aa(0xab)](_0x4fd6aa(0xf7),!0x1),this[_0x4fd6aa(0xc5)][_0x4fd6aa(0xab)](_0x4fd6aa(0xa5),!0x1),this[_0x4fd6aa(0xc5)][_0x4fd6aa(0xab)](_0x4fd6aa(0xa6),_0x26d297),this[_0x4fd6aa(0xc5)][_0x4fd6aa(0xab)](_0x4fd6aa(0x100),_0x26d297);}[_0x1c71f6(0xd6)](){const _0x31bf62=_0x1c71f6;this[_0x31bf62(0xab)](_0x31bf62(0xd3),!0x0);}[_0x1c71f6(0xc0)](_0x2bac89){const _0x264af6=_0x1c71f6;this[_0x264af6(0xab)](_0x264af6(0xd3),!0x1),_0x2bac89&&this[_0x264af6(0xab)](_0x264af6(0xd1),_0x264af6(0xe8));}[_0x1c71f6(0xb7)](){const _0x4b4bbe=_0x1c71f6,_0x236c11=new _0x23af47();return _0x236c11[_0x4b4bbe(0xab)]({'label':_0x45f806(this[_0x4b4bbe(0xd5)],_0x4b4bbe(0xb9)),'icon':_0x2e0bf3,'class':Fo,'isToggleable':!0x0,'tooltipPosition':sl}),_0x236c11['on'](_0x4b4bbe(0xe4),()=>{const _0x59606e=_0x4b4bbe;this[_0x59606e(0xc4)](_0x59606e(0xa3));}),_0x236c11;}[_0x1c71f6(0xb0)](){const _0x53a12e=_0x1c71f6,_0x592109=new _0x23af47();return _0x592109[_0x53a12e(0xab)]({'label':_0x45f806(this[_0x53a12e(0xd5)],_0x53a12e(0xd2)),'icon':_0x161bfa,'class':Fo,'isToggleable':!0x0,'tooltipPosition':sl}),_0x592109['on'](_0x53a12e(0xe4),()=>{const _0xd10c99=_0x53a12e;this[_0xd10c99(0xc4)](_0xd10c99(0xfc));}),_0x592109;}[_0x1c71f6(0xc9)](){const _0x448559=_0x1c71f6,_0x1e9940=new _0x23af47();return _0x1e9940[_0x448559(0xab)]({'label':_0x45f806(this[_0x448559(0xd5)],_0x448559(0xea)),'icon':_0x5032f6,'withText':!0x0,'class':Fo,'isToggleable':!0x0,'tooltip':_0x45f806(this[_0x448559(0xd5)],_0x448559(0xea)),'tooltipPosition':sl}),_0x1e9940[_0x448559(0xa8)]({'attributes':{'class':[Ko]}}),_0x1e9940['on'](_0x448559(0xe4),()=>{const _0x45b206=_0x448559;console[_0x45b206(0xae)](_0x45b206(0xf0)),alert(_0x45b206(0xf0));}),_0x1e9940;}[_0x1c71f6(0xb2)](){const _0x305ca1=_0x1c71f6,_0x14b0ca=_0x8910c6(this[_0x305ca1(0xd5)]);return _0x14b0ca[_0x305ca1(0xab)]({'panelPosition':'ne','class':[Zo]}),_0x14b0ca[_0x305ca1(0xfa)][_0x305ca1(0xab)]({'label':_0x45f806(this[_0x305ca1(0xd5)],_0x305ca1(0xbb)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':sl,'class':Qo}),this[_0x305ca1(0xa9)](_0x14b0ca,_0x305ca1(0xe4),_0x218125=>{const _0x4780ce=_0x305ca1;this[_0x4780ce(0xc4)](_0x4780ce(0xde),_0x218125[_0x4780ce(0xee)][_0x4780ce(0xa2)]);}),_0x14b0ca;}[_0x1c71f6(0xc1)](){const _0x358876=_0x1c71f6,_0x1beb9c=new _o(this[_0x358876(0xd5)]);return _0x1beb9c[_0x358876(0xf4)](_0x358876(0xe6))['to'](this,_0x358876(0xbd),_0x3f950e=>_0x3f950e??''),_0x1beb9c[_0x358876(0xf4)](_0x358876(0x100))['to'](this,_0x358876(0xd1),_0xd04ab6=>_0x358876(0xf5)===_0xd04ab6),_0x1beb9c;}}class ko extends _0x531149{constructor(_0x686a95,_0x27f1bd){const _0x38f328=_0x1c71f6;super();const _0x10f2f5=this[_0x38f328(0xf8)],_0x53e725=this[_0x38f328(0xce)]();this[_0x38f328(0xd7)]({'tag':_0x38f328(0xbc),'attributes':{'class':['ck',_0x38f328(0xf6)],'style':_0x10f2f5['to'](_0x38f328(0xb8)),'id':_0x10f2f5['to']('id')},'children':[{'tag':_0x38f328(0xbc),'attributes':{'class':[tl]},'children':[{'text':_0x10f2f5['to'](_0x38f328(0xe6))}]},{'tag':_0x38f328(0xbc),'attributes':{'class':[el]},'children':[{'tag':_0x38f328(0xec),'children':[{'text':_0x27f1bd[_0x38f328(0xed)]}]}]},{'tag':_0x38f328(0xbc),'attributes':{'class':[il]},'children':_0x53e725}]}),_0x53e725[_0x38f328(0xe7)](this[_0x38f328(0xca)](_0x686a95,_0x2e0bf3,_0x38f328(0xb9),_0x27f1bd[_0x38f328(0xcc)][_0x38f328(0xba)]?.[_0x38f328(0xaf)]??!0x1)),_0x53e725[_0x38f328(0xe7)](this[_0x38f328(0xca)](_0x686a95,_0x161bfa,_0x38f328(0xd2),_0x27f1bd[_0x38f328(0xcc)][_0x38f328(0xd9)]?.[_0x38f328(0xaf)]??!0x1));}[_0x1c71f6(0xca)](_0x11395a,_0x39bc7c,_0x44c415,_0x12eb5a){const _0x59cb70=_0x1c71f6,_0x2d525a=new _0x1d8823();_0x2d525a[_0x59cb70(0xad)]=_0x39bc7c;const _0xab616d=new _0x4d4a85(_0x11395a);_0xab616d[_0x59cb70(0xd7)]({'tag':_0x59cb70(0xec),'children':[{'text':_0x45f806(_0x11395a,_0x44c415)+':\x20'}]});const _0x450b4e=new _0x4d4a85(_0x11395a);return _0x450b4e[_0x59cb70(0xd7)]({'tag':_0x59cb70(0xec),'children':[{'text':_0x45f806(_0x11395a,_0x12eb5a?_0x59cb70(0xf1):_0x59cb70(0xfe))}]}),[_0x2d525a,_0xab616d,_0x450b4e];}}function _0x54ea(_0x2c63d5,_0x1544e9){const _0x5a9ccb=_0x5a9c();return _0x54ea=function(_0x54ea42,_0x2c7756){_0x54ea42=_0x54ea42-0x9f;let _0x30f0d9=_0x5a9ccb[_0x54ea42];return _0x30f0d9;},_0x54ea(_0x2c63d5,_0x1544e9);}class _o extends _0x4d4a85{constructor(_0x503438){const _0x4feb63=_0x1c71f6;super(_0x503438),this[_0x4feb63(0xab)](_0x4feb63(0xe6),void 0x0),this[_0x4feb63(0xab)](_0x4feb63(0x100),!0x0);const _0x49b5fe=this[_0x4feb63(0xf8)];this[_0x4feb63(0xd7)]({'tag':_0x4feb63(0xec),'attributes':{'class':['ck',_0x4feb63(0xe0),_0x49b5fe['if'](_0x4feb63(0x100),_0x4feb63(0xe1),_0x37e677=>!_0x37e677)]},'children':[{'text':_0x49b5fe['to'](_0x4feb63(0xe6))}]});}}
|
|
23
|
+
const _0x377fb1=_0x1d49;(function(_0x206813,_0x250008){const _0x3427a5=_0x1d49,_0x341020=_0x206813();while(!![]){try{const _0xe2ffac=parseInt(_0x3427a5(0x11b))/0x1*(parseInt(_0x3427a5(0x141))/0x2)+parseInt(_0x3427a5(0x14f))/0x3+parseInt(_0x3427a5(0x119))/0x4*(parseInt(_0x3427a5(0x10c))/0x5)+-parseInt(_0x3427a5(0x108))/0x6*(parseInt(_0x3427a5(0xfa))/0x7)+parseInt(_0x3427a5(0x114))/0x8*(-parseInt(_0x3427a5(0x149))/0x9)+parseInt(_0x3427a5(0x14d))/0xa*(-parseInt(_0x3427a5(0x10a))/0xb)+parseInt(_0x3427a5(0x145))/0xc;if(_0xe2ffac===_0x250008)break;else _0x341020['push'](_0x341020['shift']());}catch(_0x4ab716){_0x341020['push'](_0x341020['shift']());}}}(_0x2e01,0xf10f4));import{Collection as _0x3577e4}from'ckeditor5/src/utils.js';import{IconAI as _0x556240,IconBulb as _0x6aebd6,IconWeb as _0xeaa065}from'@ckeditor/ckeditor5-icons';function _0x2e01(){const _0x5a6969=['ck-ai-chat-controls-button--commands','activeModelName','_getCapabilityParts','enableModelSelector','enabled','_createCommandsButton','AI_CHAT_DISABLE_WEB_SEARCH','addMany','tooltip','ck-ai-chat-controls__model-selection__item-description','_createModelSelectionDropdown','disableModelSelector','text','name','AI_CHAT_ENABLE_WEB_SEARCH','_createReasoningButton','ck-ai-chat-controls__model-name','reasoningActive','button','model','add','isOn','ck-ai-chat-controls-button','3380pZPmKr','selectModel','_createModelNameView','_modelNameView','33261228SLbGcI','_createWebSearchButton','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','AI_CHAT_ENABLE_REASONING','578682cjEaat','fire','activeModelId','AI_CHAT_CAPABILITIES_YES','60VfGpvj','bind','964107siVejA','extendTemplate','reasoning','webSearchActive','capabilities','AI_CHAT_DISABLE_REASONING','bindTemplate','execute','createCollection','span','AI_CHAT_COMMANDS','description','ck-ai-button-tertiary','toggleWebSearch','length','7yJlThf','clear','AI_CHAT_CAPABILITIES_NO','modelSelectorEnabled','content','ck-ai-chat-controls__model-selection__item-capabilities','setWebSearch','setModelList','_modelSelectionDropdownItems','ck-ai-chat-controls__model-selection','style','modelDisplayMode','source','menuitemradio','4496586TpURWl','Commands\x20are\x20not\x20implemented\x20yet.','2511674DrqzNt','_reasoningButton','305JRrAWo','setModel','webSearch','setReasoning','div','ck-button__label','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_SEARCH_WEB','96TyYiEi','isVisible','log','ck-ai-chat__prompt-capabilities','locale','37972dFrlRy','ck-hidden','122UBGZbg','hidden','_webSearchButton','toggleReasoning','label','setTemplate','buttonView','ck-ai-chat-controls__model-selection__item-name','listenTo','_modelSelectionDropdown','isEnabled','set','selector','AI_CHAT_REASONING','_commandsButton'];_0x2e01=function(){return _0x5a6969;};return _0x2e01();}import{addListToDropdown as _0x81dc69,ButtonLabelView as _0x367206,ButtonView as _0x223acb,createDropdown as _0x53be2c,IconView as _0x47f766,UIModel as _0x3216e1,View as _0xb3cbf}from'ckeditor5/src/ui.js';import{getTranslation as _0xc0153e}from'../../../aicore/utils/common-translations.js';const qo=_0x377fb1(0x117),jo=_0x377fb1(0x140),zo=_0x377fb1(0x12a),Jo=_0x377fb1(0xf7),Ko=_0x377fb1(0x103),Qo=_0x377fb1(0x122),Zo=_0x377fb1(0x133),tl=_0x377fb1(0xff),el='n';export class AIChatPromptCapabilitiesView extends _0xb3cbf{[_0x377fb1(0x11d)];[_0x377fb1(0x10b)];[_0x377fb1(0x129)];[_0x377fb1(0x124)];[_0x377fb1(0x102)];[_0x377fb1(0x144)];constructor(_0x2750bc){const _0x879ca6=_0x377fb1;super(_0x2750bc),this[_0x879ca6(0x126)](_0x879ca6(0x152),!0x1),this[_0x879ca6(0x126)](_0x879ca6(0x13b),!0x1),this[_0x879ca6(0x126)](_0x879ca6(0x105),_0x879ca6(0x127)),this[_0x879ca6(0x126)](_0x879ca6(0xfd),!0x0),this[_0x879ca6(0x126)](_0x879ca6(0x14b),null),this[_0x879ca6(0x126)](_0x879ca6(0x12b),null),this[_0x879ca6(0x124)]=this[_0x879ca6(0x134)](),this[_0x879ca6(0x144)]=this[_0x879ca6(0x143)](),this[_0x879ca6(0x11d)]=this[_0x879ca6(0x146)](),this[_0x879ca6(0x10b)]=this[_0x879ca6(0x139)](),this[_0x879ca6(0x129)]=this[_0x879ca6(0x12f)](),this[_0x879ca6(0x124)][_0x879ca6(0x121)][_0x879ca6(0x14e)](_0x879ca6(0x115))['to'](this,_0x879ca6(0x105),_0x2426de=>_0x879ca6(0x127)===_0x2426de),this[_0x879ca6(0x124)][_0x879ca6(0x121)][_0x879ca6(0x14e)](_0x879ca6(0x132))['to'](this,_0x879ca6(0xfd),_0x5b929c=>_0x5b929c?this[_0x879ca6(0x124)][_0x879ca6(0x121)][_0x879ca6(0x11f)]:_0xc0153e(this[_0x879ca6(0x118)],_0x879ca6(0x112))),this[_0x879ca6(0x124)][_0x879ca6(0x14e)](_0x879ca6(0x125))['to'](this,_0x879ca6(0xfd),_0x556d89=>_0x556d89),this[_0x879ca6(0x11d)][_0x879ca6(0x14e)](_0x879ca6(0x13f))['to'](this,_0x879ca6(0x152),_0x36e386=>_0x36e386),this[_0x879ca6(0x11d)][_0x879ca6(0x14e)](_0x879ca6(0x132))['to'](this,_0x879ca6(0x152),_0x2177f5=>_0xc0153e(this[_0x879ca6(0x118)],_0x2177f5?_0x879ca6(0x130):_0x879ca6(0x138))),this[_0x879ca6(0x10b)][_0x879ca6(0x14e)](_0x879ca6(0x13f))['to'](this,_0x879ca6(0x13b),_0x4f38b4=>_0x4f38b4),this[_0x879ca6(0x10b)][_0x879ca6(0x14e)](_0x879ca6(0x132))['to'](this,_0x879ca6(0x13b),_0x5c0e5c=>_0xc0153e(this[_0x879ca6(0x118)],_0x5c0e5c?_0x879ca6(0x154):_0x879ca6(0x148))),this[_0x879ca6(0x120)]({'tag':_0x879ca6(0x110),'attributes':{'class':[qo]},'children':[this[_0x879ca6(0x124)],this[_0x879ca6(0x144)],this[_0x879ca6(0x11d)],this[_0x879ca6(0x10b)],this[_0x879ca6(0x129)]]}),this[_0x879ca6(0x102)]=new _0x3577e4(),_0x81dc69(this[_0x879ca6(0x124)],this[_0x879ca6(0x102)]);}[_0x377fb1(0x101)](_0x700155,_0x2f1dac){const _0x5d5b6d=_0x377fb1;if(_0x2f1dac)this[_0x5d5b6d(0x126)](_0x5d5b6d(0x105),_0x5d5b6d(0x11c));else{const _0x12f7f6=0x1===_0x700155[_0x5d5b6d(0xf9)];this[_0x5d5b6d(0x126)](_0x5d5b6d(0x105),_0x12f7f6?_0x5d5b6d(0x137):_0x5d5b6d(0x127));}if(this[_0x5d5b6d(0x102)][_0x5d5b6d(0xfb)](),_0x700155?.[_0x5d5b6d(0xf9)])for(const _0x2f6de7 of _0x700155){const _0x2e313e=new _0x3216e1({'label':_0x2f6de7[_0x5d5b6d(0x137)],'withText':!0x0,'role':_0x5d5b6d(0x107),'id':_0x2f6de7['id'],'model':_0x2f6de7});_0x2e313e[_0x5d5b6d(0x14e)](_0x5d5b6d(0x13f))['to'](this,_0x5d5b6d(0x14b),_0x43882f=>_0x43882f===_0x2f6de7['id']),this[_0x5d5b6d(0x102)][_0x5d5b6d(0x13e)]({'type':_0x5d5b6d(0x13c),'model':_0x2e313e,'labelView':new po(this[_0x5d5b6d(0x118)],_0x2f6de7)});}}[_0x377fb1(0x100)](_0x138df5){const _0x540036=_0x377fb1;this[_0x540036(0x126)](_0x540036(0x152),_0x138df5);}[_0x377fb1(0x10f)](_0x3e39f9){const _0x22b3dc=_0x377fb1;this[_0x22b3dc(0x126)](_0x22b3dc(0x13b),_0x3e39f9);}[_0x377fb1(0x10d)](_0x2f1a45){const _0xa81fce=_0x377fb1;if(!_0x2f1a45)return;this[_0xa81fce(0x14b)]=_0x2f1a45['id'],this[_0xa81fce(0x12b)]=_0x2f1a45[_0xa81fce(0x137)]||_0x2f1a45['id'],this[_0xa81fce(0x124)][_0xa81fce(0x121)][_0xa81fce(0x126)](_0xa81fce(0x11f),_0x2f1a45[_0xa81fce(0x137)]),this[_0xa81fce(0x124)][_0xa81fce(0x121)][_0xa81fce(0x126)](_0xa81fce(0x132),_0x2f1a45[_0xa81fce(0x137)]);const _0x3514eb=_0x2f1a45[_0xa81fce(0x153)][_0xa81fce(0x10e)]?.[_0xa81fce(0x12e)]??!0x1;this[_0xa81fce(0x126)](_0xa81fce(0x152),!0x1),this[_0xa81fce(0x11d)][_0xa81fce(0x126)](_0xa81fce(0x13f),!0x1),this[_0xa81fce(0x11d)][_0xa81fce(0x126)](_0xa81fce(0x125),_0x3514eb),this[_0xa81fce(0x11d)][_0xa81fce(0x126)](_0xa81fce(0x115),_0x3514eb);const _0x233fbf=_0x2f1a45[_0xa81fce(0x153)][_0xa81fce(0x151)]?.[_0xa81fce(0x12e)]??!0x1;this[_0xa81fce(0x126)](_0xa81fce(0x13b),!0x1),this[_0xa81fce(0x10b)][_0xa81fce(0x126)](_0xa81fce(0x13f),!0x1),this[_0xa81fce(0x10b)][_0xa81fce(0x126)](_0xa81fce(0x125),_0x233fbf),this[_0xa81fce(0x10b)][_0xa81fce(0x126)](_0xa81fce(0x115),_0x233fbf);}[_0x377fb1(0x12d)](){const _0x172858=_0x377fb1;this[_0x172858(0x126)](_0x172858(0xfd),!0x0);}[_0x377fb1(0x135)](_0x5b4093){const _0x274076=_0x377fb1;this[_0x274076(0x126)](_0x274076(0xfd),!0x1),_0x5b4093&&this[_0x274076(0x126)](_0x274076(0x105),_0x274076(0x11c));}[_0x377fb1(0x146)](){const _0x4079d1=_0x377fb1,_0x90175f=new _0x223acb();return _0x90175f[_0x4079d1(0x126)]({'label':_0xc0153e(this[_0x4079d1(0x118)],_0x4079d1(0x113)),'icon':_0xeaa065,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x90175f['on'](_0x4079d1(0x156),()=>{const _0xad622d=_0x4079d1;this[_0xad622d(0x14a)](_0xad622d(0xf8));}),_0x90175f;}[_0x377fb1(0x139)](){const _0x2676c8=_0x377fb1,_0x55e0d2=new _0x223acb();return _0x55e0d2[_0x2676c8(0x126)]({'label':_0xc0153e(this[_0x2676c8(0x118)],_0x2676c8(0x128)),'icon':_0x6aebd6,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x55e0d2['on'](_0x2676c8(0x156),()=>{const _0x2dfa94=_0x2676c8;this[_0x2dfa94(0x14a)](_0x2dfa94(0x11e));}),_0x55e0d2;}[_0x377fb1(0x12f)](){const _0x121313=_0x377fb1,_0x4b0c6f=new _0x223acb();return _0x4b0c6f[_0x121313(0x126)]({'label':_0xc0153e(this[_0x121313(0x118)],_0x121313(0x159)),'icon':_0x556240,'withText':!0x0,'class':jo,'isToggleable':!0x0,'tooltip':_0xc0153e(this[_0x121313(0x118)],_0x121313(0x159)),'tooltipPosition':el}),_0x4b0c6f[_0x121313(0x150)]({'attributes':{'class':[zo]}}),_0x4b0c6f['on'](_0x121313(0x156),()=>{const _0x1805a8=_0x121313;console[_0x1805a8(0x116)](_0x1805a8(0x109)),alert(_0x1805a8(0x109));}),_0x4b0c6f;}[_0x377fb1(0x134)](){const _0x519725=_0x377fb1,_0x4a296f=_0x53be2c(this[_0x519725(0x118)]);return _0x4a296f[_0x519725(0x126)]({'panelPosition':'ne','class':[Ko]}),_0x4a296f[_0x519725(0x121)][_0x519725(0x126)]({'label':_0xc0153e(this[_0x519725(0x118)],_0x519725(0x147)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':el,'class':Jo}),this[_0x519725(0x123)](_0x4a296f,_0x519725(0x156),_0x3044f1=>{const _0x5394d1=_0x519725;this[_0x5394d1(0x14a)](_0x5394d1(0x142),_0x3044f1[_0x5394d1(0x106)][_0x5394d1(0x13d)]);}),_0x4a296f;}[_0x377fb1(0x143)](){const _0x5d7d3d=_0x377fb1,_0x133e4f=new wo(this[_0x5d7d3d(0x118)]);return _0x133e4f[_0x5d7d3d(0x14e)](_0x5d7d3d(0x136))['to'](this,_0x5d7d3d(0x12b),_0x3d0103=>_0x3d0103??''),_0x133e4f[_0x5d7d3d(0x14e)](_0x5d7d3d(0x115))['to'](this,_0x5d7d3d(0x105),_0x4c8b07=>_0x5d7d3d(0x137)===_0x4c8b07),_0x133e4f;}}function _0x1d49(_0x2c1c6f,_0x20dca3){const _0x2e0116=_0x2e01();return _0x1d49=function(_0x1d4902,_0x1f762b){_0x1d4902=_0x1d4902-0xf6;let _0x4b4eca=_0x2e0116[_0x1d4902];return _0x4b4eca;},_0x1d49(_0x2c1c6f,_0x20dca3);}class po extends _0x367206{constructor(_0x29af21,_0x24a1e9){const _0x3eca34=_0x377fb1;super();const _0x1d7c9a=this[_0x3eca34(0x155)],_0x3db467=this[_0x3eca34(0x157)]();this[_0x3eca34(0x120)]({'tag':_0x3eca34(0x110),'attributes':{'class':['ck',_0x3eca34(0x111)],'style':_0x1d7c9a['to'](_0x3eca34(0x104)),'id':_0x1d7c9a['to']('id')},'children':[{'tag':_0x3eca34(0x110),'attributes':{'class':[Qo]},'children':[{'text':_0x1d7c9a['to'](_0x3eca34(0x136))}]},{'tag':_0x3eca34(0x110),'attributes':{'class':[Zo]},'children':[{'tag':_0x3eca34(0x158),'children':[{'text':_0x24a1e9[_0x3eca34(0xf6)]}]}]},{'tag':_0x3eca34(0x110),'attributes':{'class':[tl]},'children':_0x3db467}]}),_0x3db467[_0x3eca34(0x131)](this[_0x3eca34(0x12c)](_0x29af21,_0xeaa065,_0x3eca34(0x113),_0x24a1e9[_0x3eca34(0x153)][_0x3eca34(0x10e)]?.[_0x3eca34(0x12e)]??!0x1)),_0x3db467[_0x3eca34(0x131)](this[_0x3eca34(0x12c)](_0x29af21,_0x6aebd6,_0x3eca34(0x128),_0x24a1e9[_0x3eca34(0x153)][_0x3eca34(0x151)]?.[_0x3eca34(0x12e)]??!0x1));}[_0x377fb1(0x12c)](_0x7144e5,_0xebc725,_0x3ca429,_0xe8838c){const _0xdbff16=_0x377fb1,_0x1c2494=new _0x47f766();_0x1c2494[_0xdbff16(0xfe)]=_0xebc725;const _0x2bb426=new _0xb3cbf(_0x7144e5);_0x2bb426[_0xdbff16(0x120)]({'tag':_0xdbff16(0x158),'children':[{'text':_0xc0153e(_0x7144e5,_0x3ca429)+':\x20'}]});const _0x5f04d7=new _0xb3cbf(_0x7144e5);return _0x5f04d7[_0xdbff16(0x120)]({'tag':_0xdbff16(0x158),'children':[{'text':_0xc0153e(_0x7144e5,_0xe8838c?_0xdbff16(0x14c):_0xdbff16(0xfc))}]}),[_0x1c2494,_0x2bb426,_0x5f04d7];}}class wo extends _0xb3cbf{constructor(_0xd9efe3){const _0xae3c21=_0x377fb1;super(_0xd9efe3),this[_0xae3c21(0x126)](_0xae3c21(0x136),void 0x0),this[_0xae3c21(0x126)](_0xae3c21(0x115),!0x0);const _0x104cb2=this[_0xae3c21(0x155)];this[_0xae3c21(0x120)]({'tag':_0xae3c21(0x158),'attributes':{'class':['ck',_0xae3c21(0x13a),_0x104cb2['if'](_0xae3c21(0x115),_0xae3c21(0x11a),_0x4f07f2=>!_0x4f07f2)]},'children':[{'text':_0x104cb2['to'](_0xae3c21(0x136))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x334a7e=_0x26bb;(function(_0xaa63d4,_0x598271){const _0x4f8f45=_0x26bb,_0x384c90=_0xaa63d4();while(!![]){try{const _0x5d02c8=-parseInt(_0x4f8f45(0xc1))/0x1*(parseInt(_0x4f8f45(0x89))/0x2)+parseInt(_0x4f8f45(0x97))/0x3*(-parseInt(_0x4f8f45(0x8e))/0x4)+-parseInt(_0x4f8f45(0xa7))/0x5*(-parseInt(_0x4f8f45(0x9f))/0x6)+parseInt(_0x4f8f45(0x88))/0x7+-parseInt(_0x4f8f45(0xbf))/0x8+parseInt(_0x4f8f45(0xab))/0x9+-parseInt(_0x4f8f45(0xbb))/0xa;if(_0x5d02c8===_0x598271)break;else _0x384c90['push'](_0x384c90['shift']());}catch(_0x281cc0){_0x384c90['push'](_0x384c90['shift']());}}}(_0x79bd,0xd7e22));import{IconSubmit as _0x5b0ae0}from'ckeditor5/src/icons.js';import{ButtonView as _0x1607a1,AutocompleteView as _0x312397,createLabeledTextarea as _0x2a9245}from'ckeditor5/src/ui.js';import{global as _0x5f0e48,isVisible as _0x14243b,Rect as _0x38a67e,ResizeObserver as _0xcc298d}from'ckeditor5/src/utils.js';import{getTranslation as _0x342936}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x10ada2}from'./aichatpromptsuggestionslistview.js';import{escape as _0x4556b8}from'es-toolkit/compat';const ah=_0x334a7e(0xad);function _0x26bb(_0x3b63ac,_0x1ef858){const _0x79bd16=_0x79bd();return _0x26bb=function(_0x26bb1c,_0x1f6e3e){_0x26bb1c=_0x26bb1c-0x87;let _0x26aa5f=_0x79bd16[_0x26bb1c];return _0x26aa5f;},_0x26bb(_0x3b63ac,_0x1ef858);}function _0x79bd(){const _0x27c3a9=['left','285RCGuAm','minRows','_addContextButtonView','right','excludeScrollbarsAndBorders','submit','value','rtl','294qbYIPn','isEnabled','ck-ai-chat__prompt-submit-button','destroy','reset','MIN_ROWS','target','calc(','33315uVBzMg','render','focusableChildren','submitButtonView','12513303gkiqcu','classList','ck-ai-chat__prompt-input_highlighted','enter','AI_CHAT_LABEL_SUBMIT','hasError','width','keystrokes','_queryViewResizeObserver','setIsUploadInProgress','maxRows','execute','locale','update','uiLanguageDirection','isEmpty','4285550CrjFuo','trim','add','focus','5132776RcjVNs','placeholder','168955yhYTTL','AI_CHAT_PROMPT_EMPTY_ERROR','style','requestAnimationFrame','bind','errorText','MAX_ROWS','fieldWrapperChildren','fieldView','px\x20-\x20var(--ck-spacing-tiny))','setPlaceholderText','_createSubmitButton','ck-ai-chat__prompt-input','4234762IeHMzA','2fnvvWw','queryView','fire','set','isUploadInProgress','8356IEgCOO','window','sendUserMessage','element','_setUpAddContextButtonPositioning','remove','contains','extendTemplate'];_0x79bd=function(){return _0x27c3a9;};return _0x79bd();}export class AIChatPromptInputView extends _0x312397{[_0x334a7e(0xaa)];static [_0x334a7e(0xa4)]=0x1;static [_0x334a7e(0xc7)]=0xc;[_0x334a7e(0x99)];[_0x334a7e(0xb3)];constructor(_0x638aa2,_0x1be234){const _0x556305=_0x334a7e;super(_0x638aa2,{'queryView':{'label':'','creator':_0x2a9245,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x10ada2(_0x638aa2),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x556305(0x8c)](_0x556305(0xba),!0x0),this[_0x556305(0x8c)](_0x556305(0x8d),!0x1),this[_0x556305(0x99)]=_0x1be234,this[_0x556305(0xb3)]=null,this[_0x556305(0x8a)][_0x556305(0xc9)][_0x556305(0x98)]=AIChatPromptInputView[_0x556305(0xa4)],this[_0x556305(0x8a)][_0x556305(0xc9)][_0x556305(0xb5)]=AIChatPromptInputView[_0x556305(0xc7)],this[_0x556305(0x8a)][_0x556305(0xc8)][_0x556305(0xbd)](this[_0x556305(0x99)]),this[_0x556305(0x92)](),this[_0x556305(0x95)]({'attributes':{'class':['ck',_0x556305(0x87)]}}),this[_0x556305(0xaa)]=this[_0x556305(0xcc)](),this[_0x556305(0xaa)][_0x556305(0xc5)](_0x556305(0xa0))['to'](this,_0x556305(0xba),this,_0x556305(0x8d),(_0x5f12d3,_0x1cd5b8)=>!_0x5f12d3&&!_0x1cd5b8),this[_0x556305(0xa9)][_0x556305(0xbd)](this[_0x556305(0xaa)]);}[_0x334a7e(0xa8)](){const _0x54baa6=_0x334a7e;super[_0x54baa6(0xa8)](),this[_0x54baa6(0x8a)][_0x54baa6(0xc8)][_0x54baa6(0xbd)](this[_0x54baa6(0xaa)]),this[_0x54baa6(0xb2)][_0x54baa6(0x8c)](_0x54baa6(0xae),(_0x42d229,_0x25809a)=>{const _0x1db2df=_0x54baa6;this[_0x1db2df(0x8d)]||this[_0x1db2df(0xba)]||_0x42d229[_0x1db2df(0xa5)]==this[_0x1db2df(0x8a)][_0x1db2df(0xc9)][_0x1db2df(0x91)]&&(this[_0x1db2df(0x9c)](),_0x25809a());}),this[_0x54baa6(0x8a)][_0x54baa6(0xc9)]['on'](_0x54baa6(0xb8),()=>{const _0x1b771a=_0x54baa6;this[_0x1b771a(0xba)]=''===this[_0x1b771a(0x8a)][_0x1b771a(0xc9)][_0x1b771a(0x91)][_0x1b771a(0x9d)]?.[_0x1b771a(0xbc)]();});}[_0x334a7e(0xa2)](){const _0x3f8592=_0x334a7e;super[_0x3f8592(0xa2)](),this[_0x3f8592(0xb3)]&&this[_0x3f8592(0xb3)][_0x3f8592(0xa2)]();}[_0x334a7e(0x9c)](){const _0x483d33=_0x334a7e,_0x24fc7a=this[_0x483d33(0x8a)][_0x483d33(0xc9)][_0x483d33(0x91)][_0x483d33(0x9d)]?.[_0x483d33(0xbc)]();if(!_0x24fc7a)return this[_0x483d33(0x8a)][_0x483d33(0xc6)]=_0x342936(this[_0x483d33(0xb7)],_0x483d33(0xc2)),void(this[_0x483d33(0x8a)][_0x483d33(0xc9)][_0x483d33(0xb0)]=!0x0);this[_0x483d33(0x8a)][_0x483d33(0xc9)][_0x483d33(0xb0)]=!0x1;const _0x5463fe=_0x4556b8(_0x24fc7a);this[_0x483d33(0x8b)](_0x483d33(0x90),_0x5463fe),this[_0x483d33(0x8a)][_0x483d33(0xc9)][_0x483d33(0xa3)]();}[_0x334a7e(0xcb)](_0x40faa5){const _0x2c286c=_0x334a7e;this[_0x2c286c(0x8a)][_0x2c286c(0xc9)][_0x2c286c(0x8c)](_0x2c286c(0xc0),_0x40faa5);}[_0x334a7e(0xbe)](_0x2772d6=!0x1){const _0x4d6a9e=_0x334a7e;super[_0x4d6a9e(0xbe)](),_0x2772d6&&(this[_0x4d6a9e(0x91)][_0x4d6a9e(0xac)][_0x4d6a9e(0x94)](ah)||(this[_0x4d6a9e(0x91)][_0x4d6a9e(0xac)][_0x4d6a9e(0xbd)](ah),setTimeout(()=>{const _0x12a1c4=_0x4d6a9e;this[_0x12a1c4(0x91)][_0x12a1c4(0xac)][_0x12a1c4(0x93)](ah);},0x320)));}[_0x334a7e(0xcc)](){const _0x49b2a3=_0x334a7e,_0x2d67d4=new _0x1607a1(this[_0x49b2a3(0xb7)]);return _0x2d67d4[_0x49b2a3(0x8c)]({'icon':_0x5b0ae0,'label':_0x342936(this[_0x49b2a3(0xb7)],_0x49b2a3(0xaf)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x49b2a3(0xa1),'isEnabled':!0x1}),_0x2d67d4['on'](_0x49b2a3(0xb6),()=>{const _0x35b9ff=_0x49b2a3;this[_0x35b9ff(0x9c)]();}),_0x2d67d4;}[_0x334a7e(0xb4)](_0x1a563c){const _0x32faa9=_0x334a7e;this[_0x32faa9(0x8d)]=_0x1a563c;}[_0x334a7e(0x92)](){const _0x2c777f=_0x334a7e,_0x2e8ac8=this[_0x2c777f(0xb7)],_0x5e72d8=()=>{const _0x343396=_0x2c777f;_0x5f0e48[_0x343396(0x8f)][_0x343396(0xc4)](()=>{const _0x3454de=_0x343396;if(_0x14243b(this[_0x3454de(0x91)])){const _0x526edf=new _0x38a67e(this[_0x3454de(0x8a)][_0x3454de(0xc9)][_0x3454de(0x91)]),_0x558a62=new _0x38a67e(this[_0x3454de(0x99)][_0x3454de(0x91)]),_0x48f1b4=_0x526edf[_0x3454de(0xb1)],_0x56ed2d=_0x3454de(0x9e)===_0x2e8ac8[_0x3454de(0xb9)]?_0x3454de(0x9a):_0x3454de(0x96);_0x526edf[_0x3454de(0x9b)]();const _0x5a6570=_0x48f1b4-_0x526edf[_0x3454de(0xb1)]+0x1;this[_0x3454de(0x99)][_0x3454de(0x91)][_0x3454de(0xc3)][_0x56ed2d]=_0x3454de(0xa6)+(_0x48f1b4-_0x558a62[_0x3454de(0xb1)]-_0x5a6570)+_0x3454de(0xca);}});};this[_0x2c777f(0x8a)][_0x2c777f(0xc9)]['on'](_0x2c777f(0xb8),_0x5e72d8),this['on'](_0x2c777f(0xa8),()=>{const _0x3f3c0c=_0x2c777f;_0x5e72d8(),this[_0x3f3c0c(0xb3)]=new _0xcc298d(this[_0x3f3c0c(0x8a)][_0x3f3c0c(0xc9)][_0x3f3c0c(0x91)],()=>{_0x5e72d8();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4fce34=_0x2af5;(function(_0x10aa4a,_0x5d9632){const _0x33e8bd=_0x2af5,_0x5c606e=_0x10aa4a();while(!![]){try{const _0xc04c67=parseInt(_0x33e8bd(0x1a0))/0x1+-parseInt(_0x33e8bd(0x1a8))/0x2*(-parseInt(_0x33e8bd(0x19d))/0x3)+parseInt(_0x33e8bd(0x1ab))/0x4*(parseInt(_0x33e8bd(0x193))/0x5)+-parseInt(_0x33e8bd(0x1b0))/0x6+parseInt(_0x33e8bd(0x18c))/0x7*(-parseInt(_0x33e8bd(0x183))/0x8)+parseInt(_0x33e8bd(0x187))/0x9+-parseInt(_0x33e8bd(0x1a1))/0xa;if(_0xc04c67===_0x5d9632)break;else _0x5c606e['push'](_0x5c606e['shift']());}catch(_0x7f8920){_0x5c606e['push'](_0x5c606e['shift']());}}}(_0x29b4,0xc5cfc));function _0x2af5(_0x5e5cb0,_0x1e6fe7){const _0x29b481=_0x29b4();return _0x2af5=function(_0x2af5e0,_0xffd73a){_0x2af5e0=_0x2af5e0-0x183;let _0x5c1816=_0x29b481[_0x2af5e0];return _0x5c1816;},_0x2af5(_0x5e5cb0,_0x1e6fe7);}import{View as _0x11cab5,ViewCollection as _0x59c633}from'ckeditor5/src/ui.js';import{uid as _0x360468}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x53b965}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x21bfdf}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x16dfc3,SKELETON_DEFINITIONS as _0x2c0570}from'../../../../aicore/ui/aiskeleton.js';function _0x29b4(){const _0x6bea18=['aiChatResources','95980SPWecd','setTemplate','updateResourceState','delegate','searchInputVisibleFrom','highlightText','search','loadResources','_skeletonLoader','_searchSection','28011txWZMz','locale','render','901321IGbnvc','20449680fSYsgC','_createSearchSection','bindTemplate','ck-hidden','_resourcesListView','source','setResources','10egRwZq','_createSearchView','_source','324WBjsMp','_createResourcesListView','ck-ai-chat-resources','children','_latestLoadResourcesUid','147738YEAbrj','div','ck\x20ck-search','add','_searchInputVisibleFrom','4616IgBFve','getQuery','_searchView','addResourceToContext','7188588eqhTYS','set','length','_createSkeletonView','useDefaultFiltering','5117Ecwyxr','has','isLoading','extendTemplate','fire','loadSourceResources'];_0x29b4=function(){return _0x6bea18;};return _0x29b4();}export class AIChatContextResourcesView extends _0x11cab5{[_0x4fce34(0x185)];[_0x4fce34(0x19c)];[_0x4fce34(0x1b4)];[_0x4fce34(0x1a5)];[_0x4fce34(0x19b)];[_0x4fce34(0x1aa)];[_0x4fce34(0x1ae)];[_0x4fce34(0x1af)]=null;constructor(_0x2c039a,_0x2d7b76){const _0x48183c=_0x4fce34;super(_0x2c039a),this[_0x48183c(0x1aa)]=_0x2d7b76[_0x48183c(0x1a6)],this[_0x48183c(0x1b4)]=_0x2d7b76[_0x48183c(0x197)]??0x7,this[_0x48183c(0x188)](_0x48183c(0x18e),!0x0),this[_0x48183c(0x185)]=this[_0x48183c(0x1a9)](),this[_0x48183c(0x19c)]=this[_0x48183c(0x1a2)](),this[_0x48183c(0x1a5)]=this[_0x48183c(0x1ac)](),this[_0x48183c(0x19b)]=this[_0x48183c(0x18a)](),this[_0x48183c(0x1ae)]=new _0x59c633([this[_0x48183c(0x19b)],this[_0x48183c(0x1a5)]]),this[_0x48183c(0x194)]({'tag':_0x48183c(0x1b1),'attributes':{'class':_0x48183c(0x1ad)},'children':this[_0x48183c(0x1ae)]});}[_0x4fce34(0x1a9)](){const _0x1885c2=_0x4fce34;return new _0x21bfdf(this[_0x1885c2(0x19e)]);}[_0x4fce34(0x1a2)](){const _0xb4282c=_0x4fce34,_0x4b5efc=new _0x11cab5(this[_0xb4282c(0x19e)]);return _0x4b5efc[_0xb4282c(0x194)]({'tag':_0xb4282c(0x1b1),'attributes':{'class':_0xb4282c(0x1b2)},'children':[this[_0xb4282c(0x185)]]}),this[_0xb4282c(0x185)]['on'](_0xb4282c(0x199),(_0x5a6747,_0x64aa4)=>{const _0x5b3be0=_0xb4282c;this[_0x5b3be0(0x19a)](_0x64aa4),this[_0x5b3be0(0x1aa)][_0x5b3be0(0x18b)]&&this[_0x5b3be0(0x1a5)][_0x5b3be0(0x198)](_0x64aa4);}),_0x4b5efc;}[_0x4fce34(0x1ac)](){const _0x4c684e=_0x4fce34,_0x57e45a=new _0x53b965(this[_0x4c684e(0x19e)],this[_0x4c684e(0x1aa)]);return _0x57e45a[_0x4c684e(0x196)](_0x4c684e(0x186))['to'](this),_0x57e45a[_0x4c684e(0x18f)]({'attributes':{'class':this[_0x4c684e(0x1a3)]['if'](_0x4c684e(0x18e),_0x4c684e(0x1a4))}}),_0x57e45a;}[_0x4fce34(0x18a)](){const _0x33e790=_0x4fce34,_0x5e5d49=new _0x16dfc3(this[_0x33e790(0x19e)],_0x2c0570[_0x33e790(0x192)]);return _0x5e5d49[_0x33e790(0x18f)]({'attributes':{'class':[this[_0x33e790(0x1a3)]['if'](_0x33e790(0x18e),_0x33e790(0x1a4),_0x3306d2=>!_0x3306d2)]}}),_0x5e5d49;}[_0x4fce34(0x19f)](){const _0x335a2f=_0x4fce34;super[_0x335a2f(0x19f)](),this[_0x335a2f(0x19a)]('');}[_0x4fce34(0x19a)](_0x30bee0){const _0x513010=_0x4fce34,_0x12a8a9=_0x360468();this[_0x513010(0x1af)]=_0x12a8a9,this[_0x513010(0x190)](_0x513010(0x191),{'sourceId':this[_0x513010(0x1aa)]['id'],'query':_0x30bee0,'uid':_0x12a8a9}),this[_0x513010(0x18e)]=!0x0;}[_0x4fce34(0x1a7)](_0x4a9012,_0x345fbf){const _0x32ffec=_0x4fce34;if(_0x345fbf&&_0x345fbf!==this[_0x32ffec(0x1af)])return;const _0x4c782c=this[_0x32ffec(0x1aa)][_0x32ffec(0x18b)]?this[_0x32ffec(0x185)][_0x32ffec(0x184)]():'';this[_0x32ffec(0x1a5)][_0x32ffec(0x1a7)](_0x4a9012,_0x4c782c),_0x4a9012[_0x32ffec(0x189)]>=this[_0x32ffec(0x1b4)]&&!this[_0x32ffec(0x1ae)][_0x32ffec(0x18d)](this[_0x32ffec(0x19c)])&&this[_0x32ffec(0x1ae)][_0x32ffec(0x1b3)](this[_0x32ffec(0x19c)],0x0),requestAnimationFrame(()=>{const _0x309e71=_0x32ffec;this[_0x309e71(0x18e)]=!0x1;});}[_0x4fce34(0x195)](_0x5add24,_0x2102e4){const _0x897919=_0x4fce34;this[_0x897919(0x1a5)][_0x897919(0x195)](_0x5add24,_0x2102e4);}}
|