@ckeditor/ckeditor5-ai 47.7.0-alpha.4 → 47.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.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/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/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/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/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewmode/aireviewmode.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/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x37e35d=_0xd077;(function(_0x4554fa,_0x3da19c){const _0x42b208=_0xd077,_0x1f7ada=_0x4554fa();while(!![]){try{const _0x2e1d91=-parseInt(_0x42b208(0x129))/0x1+parseInt(_0x42b208(0x10e))/0x2+parseInt(_0x42b208(0x115))/0x3+parseInt(_0x42b208(0x102))/0x4+-parseInt(_0x42b208(0x13c))/0x5+parseInt(_0x42b208(0x110))/0x6*(parseInt(_0x42b208(0x11d))/0x7)+-parseInt(_0x42b208(0x12f))/0x8;if(_0x2e1d91===_0x3da19c)break;else _0x1f7ada['push'](_0x1f7ada['shift']());}catch(_0x4fbffa){_0x1f7ada['push'](_0x1f7ada['shift']());}}}(_0x4706,0xcb2ac));import{ButtonView as _0x3596fa,IconView as _0x458559}from'ckeditor5/src/ui.js';import{IconClose as _0x132dc9,IconDocument as _0x35e4af,IconFileUpload as _0xadd2ff,IconLink as _0x142ae7,IconSelection as _0x394cd6}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2913ae}from'../../../aicore/utils/common-translations.js';function _0x4706(){const _0x155df6=['set','_initializeProperties','ck-ai-chat-context-chip__label','readonly','ck-ai-chat-context-chip_document','removeContextItemChip','ck-ai-chat-context-controls__chip-tooltip','classList','_createTemplateChildren','render','lastIndexOf','1814334uiYpKo','removeEventListener','252798CrxCwZ','slice','uiId','length','_createRemoveButton','2200758dNzlYf','_handleAnimationEndOnce','bindTemplate','_createTemplateAttributes','isLoading','element','animationend','document','133UPSvxc','_isAnimationOnEnterEnabled','_setupRemoveButtonEvent','setTemplate','ck-ai-chat-context-chip_wide','bind','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','span','ck-ai-chat-context-chip__type-icon','fire','disableAnimationOnEnter','_setupTemplate','313048tTVHSy','ck-ai-chat-context-chip_new-chip','ck-hidden','_createIconView','type','itemType','4325096qiYVSQ','_createLabelElement','execute','small','addEventListener','div','remove','locale','ck-ai-chat-context-chip','extendTemplate','content','webkitAnimationEnd','label','7926055pISOrP','_createLoaderIcon','add','tooltip','selection','isVisible','3319152nwTppj'];_0x4706=function(){return _0x155df6;};return _0x4706();}import{AISpinnerView as _0x261f68}from'../../../aicore/ui/aispinner.js';const xn={'file':_0xadd2ff,'document':_0x35e4af,'web-resource':_0x142ae7,'text':_0xadd2ff,'selection':_0x394cd6,'mcp-tool-context':_0x35e4af},bn=_0x37e35d(0x137),wn=_0x37e35d(0x121),Tn=_0x37e35d(0x107),En=_0x37e35d(0x105),fn=_0x37e35d(0x125),An=_0x37e35d(0x109),Cn='n';function _0xd077(_0x3e8ba3,_0x31ea6a){const _0x4706e0=_0x4706();return _0xd077=function(_0xd0771,_0x33c60b){_0xd0771=_0xd0771-0x100;let _0x53dc31=_0x4706e0[_0xd0771];return _0x53dc31;},_0xd077(_0x3e8ba3,_0x31ea6a);}export class AIChatContextItemButtonView extends _0x3596fa{constructor(_0x324634,_0x135f01,_0x1e880b,_0x239351,_0x38f913=!0x1){const _0xc85eb4=_0x37e35d;super(_0x324634),this[_0xc85eb4(0x11e)]=_0x239351,this[_0xc85eb4(0x104)](_0x135f01,_0x1e880b,_0x38f913),this[_0xc85eb4(0x128)]();}[_0x37e35d(0x10c)](){const _0x3643e8=_0x37e35d;super[_0x3643e8(0x10c)](),this[_0x3643e8(0x11e)]&&this[_0x3643e8(0x11a)]&&(this[_0x3643e8(0x11a)][_0x3643e8(0x10a)][_0x3643e8(0x13e)](_0x3643e8(0x12a)),this[_0x3643e8(0x116)](this[_0x3643e8(0x11a)],()=>{const _0xf55bb4=_0x3643e8;this[_0xf55bb4(0x11a)]&&this[_0xf55bb4(0x11a)][_0xf55bb4(0x10a)][_0xf55bb4(0x135)](_0xf55bb4(0x12a));}));}[_0x37e35d(0x127)](){const _0x55165d=_0x37e35d;this[_0x55165d(0x11e)]=!0x1,this[_0x55165d(0x11a)]&&this[_0x55165d(0x11a)][_0x55165d(0x10a)][_0x55165d(0x135)](_0x55165d(0x12a));}[_0x37e35d(0x104)](_0x124a4f,_0x141f50,_0x416655){const _0x36e1a1=_0x37e35d;this[_0x36e1a1(0x103)](_0x36e1a1(0x13b),_0x124a4f[_0x36e1a1(0x13b)]),this[_0x36e1a1(0x103)](_0x36e1a1(0x13f),!0x0),this[_0x36e1a1(0x103)](_0x36e1a1(0x12e),_0x124a4f[_0x36e1a1(0x12d)]),this[_0x36e1a1(0x103)]('id',_0x124a4f[_0x36e1a1(0x112)]),this[_0x36e1a1(0x103)](_0x36e1a1(0x106),_0x141f50),this[_0x36e1a1(0x103)](_0x36e1a1(0x119),_0x416655);}[_0x37e35d(0x128)](){const _0x2f53b2=_0x37e35d,_0x4bed84=this[_0x2f53b2(0x12c)](),_0x2c6523=this[_0x2f53b2(0x114)](),_0x26f422=this[_0x2f53b2(0x117)];this[_0x2f53b2(0x120)]({'tag':_0x2f53b2(0x134),'attributes':this[_0x2f53b2(0x118)](_0x26f422),'children':this[_0x2f53b2(0x10b)](_0x4bed84,_0x2c6523,_0x26f422)});}[_0x37e35d(0x118)](_0x2c1c90){const _0x3c11d0=_0x37e35d;return{'class':[bn,_0x2c1c90['if'](_0x3c11d0(0x12e),Tn,_0x1dad02=>_0x3c11d0(0x11c)==_0x1dad02),_0x2c1c90['if'](_0x3c11d0(0x12e),wn,_0x48d020=>_0x3c11d0(0x100)==_0x48d020)],'data-cke-tooltip-text':_0x2c1c90['to'](_0x3c11d0(0x13b),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x37e35d(0x10b)](_0x4879f9,_0x2eb97e,_0x16e971){const _0x111857=_0x37e35d,_0x4bf1f1=this[_0x111857(0x130)](_0x16e971),_0x234bf1=this[_0x111857(0x13d)]();return this[_0x111857(0x106)]?[_0x4879f9,_0x4bf1f1]:[_0x4879f9,_0x234bf1,_0x4bf1f1,_0x2eb97e];}[_0x37e35d(0x130)](_0x455cf2){const _0x3f63a5=_0x37e35d;return{'tag':_0x3f63a5(0x124),'attributes':{'class':En},'children':[{'text':_0x455cf2['to'](_0x3f63a5(0x13b))}]};}[_0x37e35d(0x114)](){const _0x42bac3=_0x37e35d,_0x1a6041=new _0x3596fa(this[_0x42bac3(0x136)]);return _0x1a6041[_0x42bac3(0x103)]({'label':_0x2913ae(this[_0x42bac3(0x136)],_0x42bac3(0x123)),'icon':_0x132dc9}),this[_0x42bac3(0x11f)](_0x1a6041),_0x1a6041;}[_0x37e35d(0x11f)](_0x57332b){const _0x3d460a=_0x37e35d;_0x57332b['on'](_0x3d460a(0x131),()=>{const _0x47e5ec=_0x3d460a;this[_0x47e5ec(0x126)](_0x47e5ec(0x108),this['id']);});}[_0x37e35d(0x12c)](){const _0x5c95df=_0x37e35d,_0x4bcc8a=this[_0x5c95df(0x117)],_0xb1044b=new _0x458559();return _0xb1044b[_0x5c95df(0x139)]=xn[this[_0x5c95df(0x12e)]],_0xb1044b[_0x5c95df(0x138)]({'attributes':{'class':[fn,_0x4bcc8a['if'](_0x5c95df(0x119),_0x5c95df(0x12b),_0x58d40f=>_0x58d40f)]}}),_0xb1044b;}[_0x37e35d(0x116)](_0x50cf56,_0x24b6d5){const _0x16d4c9=_0x37e35d;if(!_0x50cf56)return;const _0x51cf55=()=>{const _0x2aa51e=_0xd077;_0x24b6d5(),_0x50cf56[_0x2aa51e(0x10f)](_0x2aa51e(0x11b),_0x51cf55),_0x50cf56[_0x2aa51e(0x10f)](_0x2aa51e(0x13a),_0x51cf55);};_0x50cf56[_0x16d4c9(0x133)](_0x16d4c9(0x11b),_0x51cf55),_0x50cf56[_0x16d4c9(0x133)](_0x16d4c9(0x13a),_0x51cf55);}[_0x37e35d(0x13d)](){const _0x3c5212=_0x37e35d,_0x36a77f=new _0x261f68(_0x3c5212(0x132));return _0x36a77f[_0x3c5212(0x122)](_0x3c5212(0x101))['to'](this,_0x3c5212(0x119),_0x378503=>_0x378503),_0x36a77f;}}function In(_0x195d0f){const _0x2bb095=_0x37e35d;if(!_0x195d0f)return _0x195d0f;if(_0x195d0f[_0x2bb095(0x113)]<=0x78)return _0x195d0f;const _0x4d8a96=_0x195d0f[_0x2bb095(0x111)](0x0,0x78),_0x509af8=_0x4d8a96[_0x2bb095(0x10d)]('\x20');return(_0x509af8>0x0?_0x4d8a96[_0x2bb095(0x111)](0x0,_0x509af8):_0x4d8a96)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x494187=_0x5ab5;function _0x5ab5(_0x409297,_0x6c68f6){const _0x5e705d=_0x5e70();return _0x5ab5=function(_0x5ab5c2,_0x54b3c7){_0x5ab5c2=_0x5ab5c2-0x161;let _0x16fbd5=_0x5e705d[_0x5ab5c2];return _0x16fbd5;},_0x5ab5(_0x409297,_0x6c68f6);}(function(_0x1a391d,_0x425f10){const _0x2f4e92=_0x5ab5,_0xe6fc23=_0x1a391d();while(!![]){try{const _0x97f5f=-parseInt(_0x2f4e92(0x16b))/0x1+-parseInt(_0x2f4e92(0x1a8))/0x2*(parseInt(_0x2f4e92(0x17d))/0x3)+parseInt(_0x2f4e92(0x180))/0x4*(parseInt(_0x2f4e92(0x18c))/0x5)+-parseInt(_0x2f4e92(0x179))/0x6+parseInt(_0x2f4e92(0x190))/0x7+parseInt(_0x2f4e92(0x193))/0x8+-parseInt(_0x2f4e92(0x18a))/0x9;if(_0x97f5f===_0x425f10)break;else _0xe6fc23['push'](_0xe6fc23['shift']());}catch(_0x3a1a78){_0xe6fc23['push'](_0xe6fc23['shift']());}}}(_0x5e70,0xaaf20));import{FocusTracker as _0x24d632,KeystrokeHandler as _0xcee961}from'ckeditor5/src/utils.js';import{ButtonView as _0x4ce56d,FocusCycler as _0xb43fbb,LabeledFieldView as _0xe0e548,View as _0xc1955e,FormHeaderView as _0x390cd5,createLabeledInputText as _0x431eac,submitHandler as _0x373f51}from'ckeditor5/src/ui.js';function _0x5e70(){const _0x447fe7=['setError','\x20ck-hidden','_focusables','_updateConfirmButtonState','ck-button-icon\x20ck-button-back','form','focusCycler','_createUrlInputField','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','AI_CHAT_CONTEXT_URL_PLACEHOLDER','fieldView','length','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','setTemplate','2rKqQPM','tab','div','withBackButton','AI_CHAT_CONTEXT_URL_INVALID_ERROR','execute','_createBackButton','shift+tab','isEnabled','change:withBackButton','submitUrl','ck-button-icon','children','submit','312522hQJQRg','focus','_setupKeystrokes','_createConfirmButton','add','render','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','confirmButton','ck-labeled-field-view_empty','errorText','refreshBalloon','getValue','createCollection','listenTo','3903396hqGXuH','esc','cancel','trim','1785324lyWZEy','clear','keystrokes','228CmhxWu','focusTracker','fire','value','stop','ck-ai-chat-context-controls__url-input-section','ck-ai-chat-context-controls__url-form','input','set','forEach','7945029jNSOyG','backButton','91505NMyxwk','clearError','_setupEventHandlers','_isValidUrl','7688016xWeCIr','element','AI_CHAT_CONTEXT_URL_LABEL','7997792VHgLAI','urlInputField','_setupTemplate','AI_CHAT_CONTEXT_URL_ADD_URL','destroy','locale','_handleSubmit'];_0x5e70=function(){return _0x447fe7;};return _0x5e70();}import{IconCheck as _0x4625aa,IconPreviousArrow as _0x462b95}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4b30b2}from'../../../aicore/utils/common-translations.js';const oh=_0x494187(0x186),ch=_0x494187(0x185);export class AIChatContextPanelUrlInputView extends _0xc1955e{[_0x494187(0x181)];[_0x494187(0x17f)];[_0x494187(0x19c)];[_0x494187(0x1a0)];[_0x494187(0x194)];[_0x494187(0x18b)];[_0x494187(0x172)];constructor(_0x227880){const _0x3a8d0a=_0x494187;super(_0x227880),this[_0x3a8d0a(0x181)]=new _0x24d632(),this[_0x3a8d0a(0x17f)]=new _0xcee961(),this[_0x3a8d0a(0x18b)]=this[_0x3a8d0a(0x163)](),this[_0x3a8d0a(0x194)]=this[_0x3a8d0a(0x1a1)](),this[_0x3a8d0a(0x172)]=this[_0x3a8d0a(0x16e)](),this[_0x3a8d0a(0x19c)]=this[_0x3a8d0a(0x177)]([this[_0x3a8d0a(0x18b)],this[_0x3a8d0a(0x194)],this[_0x3a8d0a(0x172)]]),this[_0x3a8d0a(0x1a0)]=new _0xb43fbb({'focusables':this[_0x3a8d0a(0x19c)],'focusTracker':this[_0x3a8d0a(0x181)],'keystrokeHandler':this[_0x3a8d0a(0x17f)],'actions':{'focusPrevious':_0x3a8d0a(0x164),'focusNext':_0x3a8d0a(0x1a9)}}),this[_0x3a8d0a(0x188)](_0x3a8d0a(0x1ab),!0x0),this[_0x3a8d0a(0x195)](),this[_0x3a8d0a(0x18e)](),this[_0x3a8d0a(0x16d)]();}[_0x494187(0x170)](){const _0x873e02=_0x494187;super[_0x873e02(0x170)](),this[_0x873e02(0x19c)][_0x873e02(0x189)](_0x4fc4fe=>{const _0x3e426d=_0x873e02;this[_0x3e426d(0x181)][_0x3e426d(0x16f)](_0x4fc4fe[_0x3e426d(0x191)]),this[_0x3e426d(0x17f)][_0x3e426d(0x178)](_0x4fc4fe[_0x3e426d(0x191)]);}),_0x373f51({'view':this}),this[_0x873e02(0x16c)]();}[_0x494187(0x197)](){const _0x40d32c=_0x494187;super[_0x40d32c(0x197)](),this[_0x40d32c(0x181)][_0x40d32c(0x197)](),this[_0x40d32c(0x17f)][_0x40d32c(0x197)]();}[_0x494187(0x16c)](){const _0x372b85=_0x494187;this[_0x372b85(0x194)][_0x372b85(0x16c)]();}[_0x494187(0x176)](){const _0x10e99a=_0x494187;return this[_0x10e99a(0x194)][_0x10e99a(0x1a4)][_0x10e99a(0x191)]?.[_0x10e99a(0x183)]?.[_0x10e99a(0x17c)]()||'';}[_0x494187(0x17e)](){const _0x120a16=_0x494187;this[_0x120a16(0x194)][_0x120a16(0x1a4)][_0x120a16(0x191)][_0x120a16(0x183)]='',this[_0x120a16(0x194)][_0x120a16(0x174)]=null,this[_0x120a16(0x172)][_0x120a16(0x165)]=!0x1;}[_0x494187(0x19a)](_0x2d730c){const _0x4f6ad3=_0x494187;this[_0x4f6ad3(0x194)][_0x4f6ad3(0x174)]=_0x2d730c,this[_0x4f6ad3(0x19d)](),this[_0x4f6ad3(0x182)](_0x4f6ad3(0x175));}[_0x494187(0x18d)](){const _0x4f313f=_0x494187;this[_0x4f313f(0x194)][_0x4f313f(0x174)]=null,this[_0x4f313f(0x19d)]();}[_0x494187(0x163)](){const _0x409630=_0x494187,_0x1a847a=new _0x4ce56d(this[_0x409630(0x198)]);return _0x1a847a[_0x409630(0x188)]({'icon':_0x462b95,'tooltip':_0x4b30b2(this[_0x409630(0x198)],_0x409630(0x171)),'tooltipPosition':'n','class':[_0x409630(0x19e)]}),this['on'](_0x409630(0x166),(_0x2ed3f5,_0x566fe4,_0x1c80dc)=>{const _0x4938f5=_0x409630;_0x1a847a[_0x4938f5(0x188)]({'class':[_0x4938f5(0x19e)+(_0x1c80dc?'':_0x4938f5(0x19b))]});}),_0x1a847a;}[_0x494187(0x1a1)](){const _0x7e183=_0x494187,_0x206fce=new _0xe0e548(this[_0x7e183(0x198)],_0x431eac);return _0x206fce[_0x7e183(0x188)]({'label':_0x4b30b2(this[_0x7e183(0x198)],_0x7e183(0x192)),'class':_0x7e183(0x173)}),_0x206fce[_0x7e183(0x1a4)][_0x7e183(0x188)]({'placeholder':_0x4b30b2(this[_0x7e183(0x198)],_0x7e183(0x1a3))}),_0x206fce;}[_0x494187(0x16e)](){const _0x3aa984=_0x494187,_0x4f6490=new _0x4ce56d(this[_0x3aa984(0x198)]);return _0x4f6490[_0x3aa984(0x188)]({'icon':_0x4625aa,'tooltip':_0x4b30b2(this[_0x3aa984(0x198)],_0x3aa984(0x196)),'tooltipPosition':'n','class':_0x3aa984(0x168),'type':_0x3aa984(0x16a),'isEnabled':!0x1}),_0x4f6490;}[_0x494187(0x195)](){const _0x6ece35=_0x494187,_0x45c555=new _0x390cd5(this[_0x6ece35(0x198)],{'label':_0x4b30b2(this[_0x6ece35(0x198)],_0x6ece35(0x196)),'class':_0x6ece35(0x1a6)});_0x45c555[_0x6ece35(0x169)][_0x6ece35(0x16f)](this[_0x6ece35(0x18b)],0x0),this[_0x6ece35(0x1a7)]({'tag':_0x6ece35(0x19f),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x45c555,{'tag':_0x6ece35(0x1aa),'attributes':{'class':ch},'children':[this[_0x6ece35(0x194)],this[_0x6ece35(0x172)]]}]});}[_0x494187(0x18e)](){const _0x4f417e=_0x494187;this[_0x4f417e(0x18b)]['on'](_0x4f417e(0x162),()=>{const _0x57e7dd=_0x4f417e;this[_0x57e7dd(0x17e)](),this[_0x57e7dd(0x182)](_0x57e7dd(0x17b));}),this[_0x4f417e(0x194)][_0x4f417e(0x1a4)]['on'](_0x4f417e(0x187),()=>{const _0x45d3d4=_0x4f417e;this[_0x45d3d4(0x18d)](),this[_0x45d3d4(0x19d)](),this[_0x45d3d4(0x182)](_0x45d3d4(0x175));}),this['on'](_0x4f417e(0x16a),_0x325dc8=>{const _0x1b008d=_0x4f417e;_0x325dc8[_0x1b008d(0x184)](),this[_0x1b008d(0x199)]();});}[_0x494187(0x16d)](){const _0x177ebb=_0x494187;this[_0x177ebb(0x17f)][_0x177ebb(0x188)](_0x177ebb(0x17a),(_0x25ed04,_0x64d7c)=>{const _0x256aab=_0x177ebb;this[_0x256aab(0x17e)](),this[_0x256aab(0x182)](_0x256aab(0x17b)),_0x64d7c();});}[_0x494187(0x199)](){const _0x584cd9=_0x494187,_0x29b7ae=this[_0x584cd9(0x176)]()[_0x584cd9(0x17c)]();_0x29b7ae?this[_0x584cd9(0x18f)](_0x29b7ae)?(this[_0x584cd9(0x18d)](),this[_0x584cd9(0x182)](_0x584cd9(0x167),_0x29b7ae)):this[_0x584cd9(0x19a)](_0x4b30b2(this[_0x584cd9(0x198)],_0x584cd9(0x161))):this[_0x584cd9(0x19a)](_0x4b30b2(this[_0x584cd9(0x198)],_0x584cd9(0x1a2)));}[_0x494187(0x19d)](){const _0x393d93=_0x494187,_0x4710e6=this[_0x393d93(0x176)]()[_0x393d93(0x17c)](),_0x391e93=!!this[_0x393d93(0x194)][_0x393d93(0x174)];this[_0x393d93(0x172)][_0x393d93(0x165)]=_0x4710e6[_0x393d93(0x1a5)]>0x0&&!_0x391e93;}[_0x494187(0x18f)](_0x1edbe0){try{return!!new URL(_0x1edbe0);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xc9e2af=_0x12e9;(function(_0x5e94ce,_0x2a2720){const _0xbdc567=_0x12e9,_0x30fa27=_0x5e94ce();while(!![]){try{const _0x457612=-parseInt(_0xbdc567(0x176))/0x1+-parseInt(_0xbdc567(0x106))/0x2+parseInt(_0xbdc567(0x101))/0x3*(parseInt(_0xbdc567(0x142))/0x4)+-parseInt(_0xbdc567(0x167))/0x5*(parseInt(_0xbdc567(0x174))/0x6)+parseInt(_0xbdc567(0x150))/0x7*(-parseInt(_0xbdc567(0x11a))/0x8)+parseInt(_0xbdc567(0x138))/0x9*(parseInt(_0xbdc567(0x132))/0xa)+parseInt(_0xbdc567(0x12f))/0xb;if(_0x457612===_0x2a2720)break;else _0x30fa27['push'](_0x30fa27['shift']());}catch(_0x1c72a2){_0x30fa27['push'](_0x30fa27['shift']());}}}(_0x2698,0x28743));function _0x2698(){const _0x157dec=['pin','cancel','isLoading','locale','showAddContextBalloonPanel','icon','files','819enQupu','_createAddContextButtonView','isOn','_createContextButton','find','set','type','_setupTemplate','executeCustomItemCallback','setContextItemLoading','get','_addContextToCollection','_addContextBalloonConfig','submitUrl','_setupUrlBalloonClickOutsideHandler','clearConversationContextItems','_showSourceResourcesBalloon','setAddContextOptions','removeContextItemChip','AI_CHAT_CONTEXT_FILE_LABEL','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','loadSourceResources','northArrowSouth','5NwPQzt','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-controls_context_show-more-button','label','_setupAddContextBalloonClickOutsideHandler','_bindEventHandlers','customItem','menuitem','hide','defaultPositions','ck-ai-chat-context-controls__balloon-button','_conversationContextsChips','enabled','1147698uYunHV','arrowView','162400JmybWB','createCollection','ck-ai-chat-context-chips-wrapper-balloon','fire','focus','_urlInputView','addContextItem','_urlBalloonPanelView','closest','conversation','hideUrlBalloonPanel','__arrow','customItems','bodyCollection','_setupAllBalloonClickOutsideHandlers','setConversationContext','ck-ai-chat-context-controls__add-context-balloon-panel','body','ck-ai-chat-controls-button','source','_createBaseBalloonPanel','addDocumentToContext','execute','element','_createResourcesBalloonView','balloonView','showUrlBalloonPanel','tooltip','_createAddContextBalloonPanelView','addResourceToContext','_addContextBalloonPanelView','current','_createArrowView','ck-ai-chat-context-controls__balloon-button-source','_setBalloonPanelContent','127557PIicyr','urls','done','populateSourceResourceBalloon','sources','290828lGPVHl','addUrlToContext','_overflowManager','isVisible','isAnyResourceBalloonVisible','closeSourceResourceBalloon','_removeContextFromCollection','refreshBalloon','bind','document','isHidden','extendTemplate','overflowChips','addFileToContext','_handleAddContextButtonClick','_createBalloonButton','northArrowSouthWest','ck-ai-chat-context-controls','showSourceResourcesBalloon','isEnabled','8384AxiAiA','ck-ai-chat-context-controls__url-balloon-panel','northArrowSouthEast','_setAddContextButtonEnabled','clear','setTemplate','length','hideAddContextBalloonPanel','withBackButton','ck-ai-chat-context-controls__show-more-balloon-panel','_currentContextsChips','addContextButtonView','ck-reset_all-excluded','children','destroy','_handleUrlSubmit','_getLimiterElement','remove','buttonView','clearCurrentContextItems','AI_CHAT_CONTEXT_ADD_CONTEXT','5168383jyxoKf','searchInputVisibleFrom','show','120zpKkae','_addUrlContent','reorganizeChips','southArrowNorth','div','add','78723frSxzz','isReadOnly','ck-ai-chat','_createUrlBalloonPanelView','content','southArrowNorthWest','_hasExactlyOneSource','southArrowNorthEast','AI_CHAT_CONTEXT_URL_LABEL','removeContextItem','20uyWdfq','_toggleAddContextBalloon','updateResourceState','ck-ai-chat-context-controls__add-context-button','_resourcesBalloonView','render','setContainerElement'];_0x2698=function(){return _0x157dec;};return _0x2698();}import{BalloonPanelView as _0x383475,ButtonView as _0x3b0686,clickOutsideHandler as _0x59f10d,FileDialogButtonView as _0x2f5c69,IconView as _0xee0d64,View as _0x2ae63e}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x41d776,IconDocument as _0x598448,IconDocumentOutline as _0x2f3fbf,IconDropdownArrow as _0xbe5854,IconLink as _0x2a2771,IconPaperClip as _0x3a64be}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0xf97f7a}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x52daff}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x242ca9}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x20b15e}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2c663f}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0xc9e2af(0xf3),_0xc9e2af(0x113),_0xc9e2af(0x107),_0xc9e2af(0xfb),_0xc9e2af(0x141),_0xc9e2af(0x165),_0xc9e2af(0x158)];const Uo=_0xc9e2af(0x117),Lo=_0xc9e2af(0x168),No=_0xc9e2af(0x186),Mo=_0xc9e2af(0x145),Ho=_0xc9e2af(0x11b),jo=_0xc9e2af(0x171),Fo=_0xc9e2af(0xff),Xo=_0xc9e2af(0xf0),Do=_0xc9e2af(0x178),$o=_0xc9e2af(0x169),Wo=_0xc9e2af(0x123),qo=_0xc9e2af(0x13a),zo=[_0x383475[_0xc9e2af(0x170)][_0xc9e2af(0x116)],_0x383475[_0xc9e2af(0x170)][_0xc9e2af(0x166)],_0x383475[_0xc9e2af(0x170)][_0xc9e2af(0x11c)],_0x383475[_0xc9e2af(0x170)][_0xc9e2af(0x13d)],_0x383475[_0xc9e2af(0x170)][_0xc9e2af(0x135)],_0x383475[_0xc9e2af(0x170)][_0xc9e2af(0x13f)]];export class AIChatContextPanelView extends _0x2ae63e{[_0xc9e2af(0x125)];[_0xc9e2af(0x124)]=this[_0xc9e2af(0x177)]();[_0xc9e2af(0x172)]=this[_0xc9e2af(0x177)]();[_0xc9e2af(0x108)];[_0xc9e2af(0xfc)];[_0xc9e2af(0x17d)];[_0xc9e2af(0x17b)];[_0xc9e2af(0x146)];[_0xc9e2af(0x15c)];[_0xc9e2af(0x13e)]=!0x1;[_0xc9e2af(0x183)];constructor(_0x528af5,_0x3929fb){const _0x52e931=_0xc9e2af;super(_0x528af5),this[_0x52e931(0x183)]=_0x3929fb[_0x52e931(0x183)],this[_0x52e931(0x124)]=this[_0x52e931(0x177)](),this[_0x52e931(0x172)]=this[_0x52e931(0x177)](),this[_0x52e931(0x125)]=this[_0x52e931(0x151)](_0x528af5),this[_0x52e931(0xfc)]=this[_0x52e931(0xfa)](_0x528af5),this[_0x52e931(0x17d)]=this[_0x52e931(0x13b)](_0x528af5),this[_0x52e931(0x146)]=this[_0x52e931(0xf6)](_0x528af5,_0x3929fb);const _0x1e7f5d={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x52e931(0x108)]=new _0x242ca9(_0x528af5,this[_0x52e931(0x124)],_0x1e7f5d,this[_0x52e931(0x183)],this),this[_0x52e931(0x15c)]={'buttonView':this[_0x52e931(0x125)],'balloonView':this[_0x52e931(0xfc)],'hideMethod':this[_0x52e931(0x121)][_0x52e931(0x10e)](this),'showMethod':this[_0x52e931(0x14d)][_0x52e931(0x10e)](this)},this[_0x52e931(0x157)](),this[_0x52e931(0x16c)]();}[_0xc9e2af(0x147)](){const _0x1e47c2=_0xc9e2af;super[_0x1e47c2(0x147)](),this[_0x1e47c2(0x184)](),this[_0x1e47c2(0x108)][_0x1e47c2(0x148)](this[_0x1e47c2(0xf5)]),this[_0x1e47c2(0x108)][_0x1e47c2(0x134)]();}[_0xc9e2af(0x128)](){const _0x1ac5f5=_0xc9e2af;super[_0x1ac5f5(0x128)](),this[_0x1ac5f5(0x108)][_0x1ac5f5(0x128)](),this[_0x1ac5f5(0x146)][_0x1ac5f5(0x128)]();}[_0xc9e2af(0x17c)](_0xef0262,_0x29f318){const _0x1d26f1=_0xc9e2af,_0x347870=this[_0x1d26f1(0x153)](_0xef0262,_0x1d26f1(0xfd),!0x0,_0x29f318);this[_0x1d26f1(0x15b)](_0x347870,this[_0x1d26f1(0x124)]),this[_0x1d26f1(0x108)][_0x1d26f1(0x134)]();}[_0xc9e2af(0x141)](_0x281e10){const _0x3f8497=_0xc9e2af;this[_0x3f8497(0x10c)](_0x281e10,this[_0x3f8497(0x124)]),this[_0x3f8497(0x10c)](_0x281e10,this[_0x3f8497(0x108)][_0x3f8497(0x112)]),this[_0x3f8497(0x108)][_0x3f8497(0x134)]();}[_0xc9e2af(0x159)](_0x5bb867,_0x2c9b6d){const _0x238305=_0xc9e2af;let _0x51fa46=this[_0x238305(0x124)][_0x238305(0x154)](_0x20e70d=>_0x20e70d['id']===_0x5bb867);_0x51fa46||(_0x51fa46=this[_0x238305(0x108)][_0x238305(0x112)][_0x238305(0x154)](_0x53b507=>_0x53b507['id']===_0x5bb867)),_0x51fa46&&(_0x51fa46[_0x238305(0x14b)]=_0x2c9b6d);}[_0xc9e2af(0x185)](_0x18e2b3){const _0xb73e27=_0xc9e2af;this[_0xb73e27(0x172)][_0xb73e27(0x11e)]();for(const _0x2e7edd of _0x18e2b3){const _0x51ceb6=this[_0xb73e27(0x153)](_0x2e7edd,_0xb73e27(0x17f),!0x1,!0x1);this[_0xb73e27(0x15b)](_0x51ceb6,this[_0xb73e27(0x172)]);}}[_0xc9e2af(0x12d)](){const _0x142640=_0xc9e2af;this[_0x142640(0x124)][_0x142640(0x11e)](),this[_0x142640(0x108)][_0x142640(0x11e)]();}[_0xc9e2af(0x15f)](){const _0x4ce895=_0xc9e2af;this[_0x4ce895(0x172)][_0x4ce895(0x11e)]();}[_0xc9e2af(0x144)](_0x45780d,_0x2eac98,_0x2c685b){const _0x3057fd=_0xc9e2af;this[_0x3057fd(0x146)][_0x3057fd(0x144)](_0x45780d,_0x2eac98,_0x2c685b);}[_0xc9e2af(0x121)](){const _0x4d6cfb=_0xc9e2af;this[_0x4d6cfb(0x143)](!0x1);}[_0xc9e2af(0x14d)](){const _0x3c6600=_0xc9e2af;this[_0x3c6600(0x143)](!0x0);}[_0xc9e2af(0x180)](){const _0x4005b6=_0xc9e2af;this[_0x4005b6(0x17d)][_0x4005b6(0x16f)](),this[_0x4005b6(0x125)][_0x4005b6(0x152)]=!0x1,this[_0x4005b6(0x17b)]&&this[_0x4005b6(0x17b)][_0x4005b6(0x11e)]();}[_0xc9e2af(0xf8)](){const _0x143f90=_0xc9e2af;this[_0x143f90(0x17d)][_0x143f90(0x131)](),this[_0x143f90(0x125)][_0x143f90(0x152)]=!0x0;}[_0xc9e2af(0x160)]({source:_0x1ba09d,withBackButton:_0x19c20f}){const _0x4ce893=_0xc9e2af;this[_0x4ce893(0x146)][_0x4ce893(0x118)]({'source':_0x1ba09d,'withBackButton':_0x19c20f}),this[_0x4ce893(0x125)][_0x4ce893(0x152)]=!0x0;}[_0xc9e2af(0x104)](_0xd7150a,_0x37f270,_0x15baff,_0x2cdfa9){const _0x1a3045=_0xc9e2af;this[_0x1a3045(0x146)][_0x1a3045(0x104)](_0xd7150a,_0x15baff,_0x2cdfa9);}[_0xc9e2af(0x10b)](_0x42e061){const _0x3ea1=_0xc9e2af;this[_0x3ea1(0x146)][_0x3ea1(0x10b)](_0x42e061),this[_0x3ea1(0x125)][_0x3ea1(0x152)]=!0x1;}[_0xc9e2af(0x161)](_0x46384b){const _0x390344=_0xc9e2af;this[_0x390344(0x100)](this[_0x390344(0xfc)],this[_0x390344(0x14c)],_0x46384b),this[_0x390344(0x11d)](_0x46384b);}[_0xc9e2af(0x11d)](_0x3f5a1b){const _0xd5c96e=_0xc9e2af,_0x53d488=!_0x3f5a1b[_0xd5c96e(0x10f)][_0xd5c96e(0x110)]&&_0x3f5a1b[_0xd5c96e(0x10f)][_0xd5c96e(0x173)],_0x5726f2=_0x3f5a1b[_0xd5c96e(0x102)][_0xd5c96e(0x173)],_0x53063b=_0x3f5a1b[_0xd5c96e(0x14f)][_0xd5c96e(0x173)],_0x252a34=_0x3f5a1b[_0xd5c96e(0x105)][_0xd5c96e(0x120)]>0x0,_0x5cc85b=_0x3f5a1b[_0xd5c96e(0x182)]&&_0x3f5a1b[_0xd5c96e(0x182)][_0xd5c96e(0x120)]>0x0;this[_0xd5c96e(0x125)][_0xd5c96e(0x119)]=_0x53d488||_0x5726f2||_0x53063b||_0x252a34||_0x5cc85b;}[_0xc9e2af(0x157)](){const _0x5cc917=_0xc9e2af;this[_0x5cc917(0x11f)]({'tag':_0x5cc917(0x136),'attributes':{'class':[Uo,_0x5cc917(0x126)]},'children':[{'tag':_0x5cc917(0x136),'attributes':{'class':Lo},'children':this[_0x5cc917(0x124)]}]});}[_0xc9e2af(0x16c)](){const _0xde9563=_0xc9e2af;this[_0xde9563(0x125)]['on'](_0xde9563(0xf4),()=>{const _0x3c7d69=_0xde9563;this[_0x3c7d69(0x114)]();});}[_0xc9e2af(0x151)](_0x4cf82e){const _0x2bcd32=_0xc9e2af,_0x57a567=new _0x3b0686(_0x4cf82e);return _0x57a567[_0x2bcd32(0x155)]({'label':_0x20b15e(_0x4cf82e,_0x2bcd32(0x12e)),'class':Xo+'\x20'+Mo,'icon':_0x3a64be,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x57a567;}[_0xc9e2af(0xfa)](_0x5cb4b9){const _0x4a5f09=_0xc9e2af;return this[_0x4a5f09(0xf2)](_0x5cb4b9,No);}[_0xc9e2af(0x13b)](_0x231a7b){const _0x417976=_0xc9e2af,_0x441f59=this[_0x417976(0xf2)](_0x231a7b,Ho);return this[_0x417976(0x133)](_0x441f59,_0x231a7b),_0x441f59;}[_0xc9e2af(0xf6)](_0x337a2f,_0x5f216c){const _0x3d2249=_0xc9e2af,_0x350704={'searchInputVisibleFrom':_0x5f216c[_0x3d2249(0x130)],'onBackToContext':()=>{const _0x4d41f3=_0x3d2249;this[_0x4d41f3(0x14d)](),this[_0x4d41f3(0xfc)][_0x4d41f3(0x149)]({'target':this[_0x4d41f3(0x125)][_0x4d41f3(0xf5)],'limiter':this[_0x4d41f3(0x12a)](),'positions':zo});},'onResourceSelected':(_0x17332b,_0x28a44c)=>{const _0x3059a6=_0x3d2249;this[_0x3059a6(0x179)](_0x3059a6(0xfb),{'source':_0x17332b,'resource':_0x28a44c});},'onLoadSourceResources':_0x52ac8b=>{const _0x514e98=_0x3d2249;this[_0x514e98(0x179)](_0x514e98(0x165),_0x52ac8b);},'onBalloonClosed':()=>{const _0x26cbb2=_0x3d2249;this[_0x26cbb2(0x125)][_0x26cbb2(0x152)]=!0x1;},'getLimiterElement':()=>this[_0x3d2249(0x12a)](),'getTargetElement':()=>this[_0x3d2249(0x125)][_0x3d2249(0xf5)]};return new _0x2c663f(_0x337a2f,_0x5f216c[_0x3d2249(0x183)],_0x350704);}[_0xc9e2af(0x12a)](){const _0x1e4ab5=_0xc9e2af;return this[_0x1e4ab5(0xf5)]?.[_0x1e4ab5(0x17e)]('.'+qo)||document[_0x1e4ab5(0x187)];}[_0xc9e2af(0xf2)](_0x53ffc1,_0x1db371){const _0x3170fd=_0xc9e2af,_0x2a4c36=new _0x383475(_0x53ffc1);return _0x2a4c36[_0x3170fd(0x111)]({'attributes':{'class':_0x1db371}}),this[_0x3170fd(0x183)][_0x3170fd(0x137)](_0x2a4c36),_0x2a4c36;}[_0xc9e2af(0x100)](_0x3289b3,_0x115486,_0xaf6217){const _0x535d73=_0xc9e2af;if(_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x11e)](),!_0xaf6217[_0x535d73(0x10f)][_0x535d73(0x110)]&&_0xaf6217[_0x535d73(0x10f)][_0x535d73(0x173)]){const _0x5d4fe6=this[_0x535d73(0x115)](_0x115486,{'label':_0x20b15e(_0x115486,_0x535d73(0x164)),'icon':_0x598448});_0x5d4fe6['on'](_0x535d73(0xf4),()=>{const _0x92d74e=_0x535d73;this[_0x92d74e(0x179)](_0x92d74e(0xf3)),this[_0x92d74e(0x121)]();}),_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x137)](_0x5d4fe6);}if(_0xaf6217[_0x535d73(0x102)][_0x535d73(0x173)]){const _0x3e833c=this[_0x535d73(0x115)](_0x115486,{'label':_0x20b15e(_0x115486,_0x535d73(0x140)),'icon':_0x2a2771});_0x3e833c['on'](_0x535d73(0xf4),()=>{const _0x110e40=_0x535d73;this[_0x110e40(0x121)](),this[_0x110e40(0xf8)](),this[_0x110e40(0x17d)][_0x110e40(0x149)]({'target':this[_0x110e40(0x125)][_0x110e40(0xf5)],'limiter':this[_0x110e40(0x12a)](),'positions':zo}),this[_0x110e40(0x17b)][_0x110e40(0x17a)]();}),_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x137)](_0x3e833c);}if(_0xaf6217[_0x535d73(0x14f)][_0x535d73(0x173)]){const _0xf7124b=new _0x2f5c69(_0x115486);_0xf7124b[_0x535d73(0x155)]({'label':_0x20b15e(_0x115486,_0x535d73(0x163)),'icon':_0x41d776,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0xf7124b['on'](_0x535d73(0xf4),()=>{const _0x29b8e3=_0x535d73;this[_0x29b8e3(0x121)]();}),_0xf7124b['on'](_0x535d73(0x103),(_0x3d7f63,_0x35d4a6)=>{const _0x1b917c=_0x535d73;this[_0x1b917c(0x179)](_0x1b917c(0x113),_0x35d4a6);}),_0xf7124b[_0x535d73(0xf9)]=!0x0,_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x137)](_0xf7124b);}for(const _0x20cb51 of _0xaf6217[_0x535d73(0x105)]){const _0x3742e8=this[_0x535d73(0x115)](_0x115486,{'label':_0x20cb51[_0x535d73(0x16a)],'icon':_0x20cb51[_0x535d73(0x14e)]||_0x2f3fbf,'type':_0x535d73(0xf1)});_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x137)](_0x3742e8),_0x3742e8['on'](_0x535d73(0xf4),()=>{const _0x665771=_0x535d73;this[_0x665771(0x121)](),this[_0x665771(0x160)]({'source':_0x20cb51,'withBackButton':!this[_0x665771(0x13e)]});});}for(const _0x19abf7 of _0xaf6217[_0x535d73(0x182)]||[]){const _0x39a680=this[_0x535d73(0x115)](_0x115486,{'label':_0x19abf7[_0x535d73(0x16a)],'icon':_0x19abf7[_0x535d73(0x14e)]||_0x2f3fbf,'type':_0x535d73(0x16d)});_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x137)](_0x39a680),_0x39a680['on'](_0x535d73(0xf4),()=>{const _0x1f7f39=_0x535d73;this[_0x1f7f39(0x121)](),this[_0x1f7f39(0x179)](_0x1f7f39(0x158),_0x19abf7);});}this[_0x535d73(0x13e)]=0x1===_0x3289b3[_0x535d73(0x13c)][_0x535d73(0x120)],this[_0x535d73(0x17b)][_0x535d73(0x122)]=!this[_0x535d73(0x13e)];}[_0xc9e2af(0x133)](_0x178bf9,_0x2044e1){const _0x527488=_0xc9e2af;this[_0x527488(0x17b)]=new _0x52daff(_0x2044e1),this[_0x527488(0x17b)]['on'](_0x527488(0x15d),(_0x51b87a,_0x105fd8)=>{const _0x5b859e=_0x527488;this[_0x5b859e(0x129)](_0x105fd8);}),this[_0x527488(0x17b)]['on'](_0x527488(0x14a),()=>{const _0x5b4458=_0x527488;this[_0x5b4458(0x180)](),this[_0x5b4458(0x13e)]||(this[_0x5b4458(0x14d)](),this[_0x5b4458(0xfc)][_0x5b4458(0x149)]({'target':this[_0x5b4458(0x125)][_0x5b4458(0xf5)],'limiter':this[_0x5b4458(0x12a)](),'positions':zo}));}),this[_0x527488(0x17b)]['on'](_0x527488(0x10d),()=>{const _0x5c46aa=_0x527488;this[_0x5c46aa(0x17d)][_0x5c46aa(0x109)]&&this[_0x5c46aa(0x17d)][_0x5c46aa(0x149)]({'target':this[_0x5c46aa(0x125)][_0x5c46aa(0xf5)],'limiter':this[_0x5c46aa(0x12a)](),'positions':zo});}),_0x178bf9[_0x527488(0x13c)][_0x527488(0x137)](this[_0x527488(0x17b)]);}[_0xc9e2af(0x115)](_0x87a001,_0x2e345f){const _0x3fd1cf=_0xc9e2af,_0x134ed5=_0x3fd1cf(0xf1)===_0x2e345f[_0x3fd1cf(0x156)]?new SourcesBalloonButtonView(_0x87a001):new _0x3b0686(_0x87a001);return _0x134ed5[_0x3fd1cf(0x155)]({'label':_0x2e345f[_0x3fd1cf(0x16a)],'icon':_0x2e345f[_0x3fd1cf(0x14e)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x134ed5;}[_0xc9e2af(0x184)](){const _0xa226a=_0xc9e2af;this[_0xa226a(0x16b)](),this[_0xa226a(0x15e)]();}[_0xc9e2af(0x15e)](){const _0x51031a=_0xc9e2af;_0x59f10d({'emitter':this[_0x51031a(0x17d)],'contextElements':[this[_0x51031a(0x17d)][_0x51031a(0xf5)]],'callback':()=>{const _0x1f4f87=_0x51031a;this[_0x1f4f87(0x180)]();},'activator':()=>this[_0x51031a(0x17d)][_0x51031a(0x109)]});}[_0xc9e2af(0x143)](_0x4d4f02){const _0x1d5de2=_0xc9e2af,_0x4eeebd=this[_0x1d5de2(0x15c)];_0x4eeebd[_0x1d5de2(0x12c)][_0x1d5de2(0x152)]=_0x4d4f02,_0x4d4f02?_0x4eeebd[_0x1d5de2(0xf7)][_0x1d5de2(0x131)]():_0x4eeebd[_0x1d5de2(0xf7)][_0x1d5de2(0x16f)]();}[_0xc9e2af(0x16b)](){const _0xade1bd=_0xc9e2af,{balloonView:_0x470d45,buttonView:_0x354945,hideMethod:_0x35f214}=this[_0xade1bd(0x15c)];_0x59f10d({'emitter':_0x470d45,'contextElements':[_0x470d45[_0xade1bd(0xf5)],_0x354945[_0xade1bd(0xf5)]],'callback':()=>{_0x35f214();},'activator':()=>_0x354945[_0xade1bd(0x152)]&&!this[_0xade1bd(0x17d)][_0xade1bd(0x109)]&&!this[_0xade1bd(0x146)][_0xade1bd(0x10a)]()});}[_0xc9e2af(0x153)](_0x42746f,_0x3f5deb,_0xbf9bde=!0x1,_0x2df2fd=!0x1){const _0x7697e3=_0xc9e2af,_0x565a19=_0x7697e3(0x17f)===_0x3f5deb||!0x0===_0x42746f[_0x7697e3(0x139)],_0x6b6e9f=new _0xf97f7a(this[_0x7697e3(0x14c)],_0x42746f,_0x565a19,_0xbf9bde,_0x2df2fd);return _0x565a19||_0x6b6e9f['on'](_0x7697e3(0x162),()=>{const _0x28cf6f=_0x7697e3;this[_0x28cf6f(0x179)](_0x28cf6f(0x141),_0x6b6e9f['id']);}),_0x6b6e9f;}[_0xc9e2af(0x15b)](_0x444bb1,_0x360693){const _0x98a86c=_0xc9e2af;_0x360693[_0x98a86c(0x137)](_0x444bb1,0x0);}[_0xc9e2af(0x10c)](_0x3d83dc,_0x622be8){const _0xc200aa=_0xc9e2af,_0x39977d=_0x622be8[_0xc200aa(0x154)](_0x504ff1=>_0x504ff1['id']===_0x3d83dc);_0x39977d&&_0x622be8[_0xc200aa(0x12b)](_0x39977d);}[_0xc9e2af(0x114)](){const _0xa989d8=_0xc9e2af;this[_0xa989d8(0x125)][_0xa989d8(0x152)]?this[_0xa989d8(0x121)]():(this[_0xa989d8(0x14d)](),this[_0xa989d8(0xfc)][_0xa989d8(0x149)]({'target':this[_0xa989d8(0x125)][_0xa989d8(0xf5)],'limiter':this[_0xa989d8(0x12a)](),'positions':zo}),this[_0xa989d8(0x13e)]&&this[_0xa989d8(0xfc)][_0xa989d8(0x13c)][_0xa989d8(0x15a)](0x0)?.[_0xa989d8(0x179)](_0xa989d8(0xf4)));}[_0xc9e2af(0x129)](_0xdf1783){const _0x2c82ee=_0xc9e2af;this[_0x2c82ee(0x17b)][_0x2c82ee(0x11e)](),this[_0x2c82ee(0x180)](),this[_0x2c82ee(0x179)](_0x2c82ee(0x107),_0xdf1783);}}function _0x12e9(_0x2da827,_0x3865b2){const _0x269878=_0x2698();return _0x12e9=function(_0x12e98a,_0x16f0f5){_0x12e98a=_0x12e98a-0xf0;let _0x2e9b1c=_0x269878[_0x12e98a];return _0x2e9b1c;},_0x12e9(_0x2da827,_0x3865b2);}export class SourcesBalloonButtonView extends _0x3b0686{[_0xc9e2af(0x175)];constructor(_0x5ec39e){const _0x531f86=_0xc9e2af;super(_0x5ec39e),this[_0x531f86(0x155)]({'withText':!0x0,'role':_0x531f86(0x16e)}),this[_0x531f86(0x175)]=this[_0x531f86(0xfe)](),this[_0x531f86(0x111)]({'attributes':{'class':[Fo]}});}[_0xc9e2af(0x147)](){const _0x57ef38=_0xc9e2af;super[_0x57ef38(0x147)](),this[_0x57ef38(0x127)][_0x57ef38(0x137)](this[_0x57ef38(0x175)]);}[_0xc9e2af(0xfe)](){const _0x4a5693=_0xc9e2af,_0x14b5c5=new _0xee0d64();return _0x14b5c5[_0x4a5693(0x13c)]=_0xbe5854,_0x14b5c5[_0x4a5693(0x111)]({'attributes':{'class':Fo+_0x4a5693(0x181)}}),_0x14b5c5;}}
|
|
23
|
+
const _0x58ecfd=_0x350b;(function(_0xf88e86,_0x34cdce){const _0x2954f6=_0x350b,_0x3a9e15=_0xf88e86();while(!![]){try{const _0x7e0f0=-parseInt(_0x2954f6(0x27e))/0x1+parseInt(_0x2954f6(0x200))/0x2+parseInt(_0x2954f6(0x208))/0x3*(parseInt(_0x2954f6(0x207))/0x4)+-parseInt(_0x2954f6(0x260))/0x5*(-parseInt(_0x2954f6(0x26d))/0x6)+-parseInt(_0x2954f6(0x211))/0x7+parseInt(_0x2954f6(0x206))/0x8*(parseInt(_0x2954f6(0x240))/0x9)+-parseInt(_0x2954f6(0x257))/0xa;if(_0x7e0f0===_0x34cdce)break;else _0x3a9e15['push'](_0x3a9e15['shift']());}catch(_0x58c5cf){_0x3a9e15['push'](_0x3a9e15['shift']());}}}(_0x1541,0x44545));import{BalloonPanelView as _0x74dd,ButtonView as _0x65baa0,clickOutsideHandler as _0x5cb7f1,FileDialogButtonView as _0xf4da95,IconView as _0x555624,View as _0x367ad0}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0xd8be8f,IconDocument as _0xd137c6,IconDocumentOutline as _0x111980,IconDropdownArrow as _0x5e52bf,IconLink as _0x42b062,IconPaperClip as _0xa2853}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x4cbc4a}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x135a62}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x5caa0e}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x8be458}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2802c9}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x58ecfd(0x24e),_0x58ecfd(0x26c),_0x58ecfd(0x242),_0x58ecfd(0x1ea),_0x58ecfd(0x248),_0x58ecfd(0x1eb),_0x58ecfd(0x25c)];function _0x1541(){const _0x3dec04=['content','closeSourceResourceBalloon','_createUrlBalloonPanelView','addContextItem','hideAddContextBalloonPanel','_currentContextsChips','_urlInputView','element','locale','customItem','get','overflowChips','ck-ai-chat','createCollection','conversation','submitUrl','_resourcesBalloonView','2957697qiVDXf','find','addUrlToContext','set','show','_setupAddContextBalloonClickOutsideHandler','isHidden','execute','removeContextItem','menuitem','div','clear','southArrowNorthEast','_createResourcesBalloonView','addDocumentToContext','bind','ck-ai-chat-context-controls__pending-contexts','_setBalloonPanelContent','hideUrlBalloonPanel','northArrowSouthEast','focus','cancel','buttonView','5920890aJUSpu','populateSourceResourceBalloon','_setAddContextButtonEnabled','refreshBalloon','_createBalloonButton','executeCustomItemCallback','setAddContextOptions','remove','setContainerElement','1605ByLeka','setConversationContext','document','bodyCollection','ck-ai-chat-context-controls__balloon-button','ck-ai-chat-context-controls','add','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','balloonView','_createContextButton','southArrowNorth','body','addFileToContext','1698mCarNq','isAnyResourceBalloonVisible','_conversationContextsChips','_toggleAddContextBalloon','_setupAllBalloonClickOutsideHandlers','_setupTemplate','ck-ai-chat-controls-button','closest','_urlBalloonPanelView','ck-ai-chat-context-chips-wrapper-balloon','current','clearCurrentContextItems','hide','_addContextToCollection','showUrlBalloonPanel','removeContextItemChip','_addContextBalloonConfig','94140pYByOf','_createBaseBalloonPanel','_getLimiterElement','addResourceToContext','loadSourceResources','reorganizeChips','showSourceResourcesBalloon','setContextItemLoading','_handleAddContextButtonClick','_createArrowView','isEnabled','__arrow','source','defaultPositions','setTemplate','customItems','addContextButtonView','icon','northArrowSouth','updateResourceState','type','_hasExactlyOneSource','ck-ai-chat-context-controls__balloon-button-source','label','isOn','621944PXiDzD','arrowView','isLoading','destroy','ck-ai-chat-controls_context_show-more-button','_overflowManager','8VuDGpw','31412fAoQBR','186ActnSx','withBackButton','_createAddContextBalloonPanelView','ck-ai-chat-context-controls__url-balloon-panel','isReadOnly','urls','_setupUrlBalloonClickOutsideHandler','pin','_removeContextFromCollection','1758596YPjltS','clearConversationContextItems','_handleUrlSubmit','northArrowSouthWest','southArrowNorthWest','files','showAddContextBalloonPanel','_showSourceResourcesBalloon','AI_CHAT_CONTEXT_URL_LABEL','children','sources','fire','_addContextBalloonPanelView','render','done','_createAddContextButtonView','ck-ai-chat-context-controls__add-context-balloon-panel','_addUrlContent','extendTemplate','ck-reset_all-excluded','ck-ai-chat-context-controls__show-more-balloon-panel','searchInputVisibleFrom','AI_CHAT_CONTEXT_ADD_CONTEXT','AI_CHAT_CONTEXT_FILE_LABEL','_bindEventHandlers','isVisible','ck-ai-chat-context-controls__add-context-button','tooltip','length','enabled'];_0x1541=function(){return _0x3dec04;};return _0x1541();}function _0x350b(_0x3c2fe4,_0x5e6b91){const _0x15416a=_0x1541();return _0x350b=function(_0x350b5d,_0x539844){_0x350b5d=_0x350b5d-0x1e8;let _0x8eebe=_0x15416a[_0x350b5d];return _0x8eebe;},_0x350b(_0x3c2fe4,_0x5e6b91);}const Uo=_0x58ecfd(0x265),Lo=_0x58ecfd(0x250),No=_0x58ecfd(0x221),Mo=_0x58ecfd(0x22b),Ho=_0x58ecfd(0x20b),jo=_0x58ecfd(0x264),Fo=_0x58ecfd(0x1fd),Xo=_0x58ecfd(0x273),Do=_0x58ecfd(0x276),$o=_0x58ecfd(0x204),Wo=_0x58ecfd(0x225),qo=_0x58ecfd(0x23b),zo=[_0x74dd[_0x58ecfd(0x1f4)][_0x58ecfd(0x214)],_0x74dd[_0x58ecfd(0x1f4)][_0x58ecfd(0x1f9)],_0x74dd[_0x58ecfd(0x1f4)][_0x58ecfd(0x253)],_0x74dd[_0x58ecfd(0x1f4)][_0x58ecfd(0x215)],_0x74dd[_0x58ecfd(0x1f4)][_0x58ecfd(0x26a)],_0x74dd[_0x58ecfd(0x1f4)][_0x58ecfd(0x24c)]];export class AIChatContextPanelView extends _0x367ad0{[_0x58ecfd(0x1f7)];[_0x58ecfd(0x234)]=this[_0x58ecfd(0x23c)]();[_0x58ecfd(0x26f)]=this[_0x58ecfd(0x23c)]();[_0x58ecfd(0x205)];[_0x58ecfd(0x21d)];[_0x58ecfd(0x275)];[_0x58ecfd(0x235)];[_0x58ecfd(0x23f)];[_0x58ecfd(0x27d)];[_0x58ecfd(0x1fc)]=!0x1;[_0x58ecfd(0x263)];constructor(_0x20d8dd,_0xe185a0){const _0x2d95f3=_0x58ecfd;super(_0x20d8dd),this[_0x2d95f3(0x263)]=_0xe185a0[_0x2d95f3(0x263)],this[_0x2d95f3(0x234)]=this[_0x2d95f3(0x23c)](),this[_0x2d95f3(0x26f)]=this[_0x2d95f3(0x23c)](),this[_0x2d95f3(0x1f7)]=this[_0x2d95f3(0x220)](_0x20d8dd),this[_0x2d95f3(0x21d)]=this[_0x2d95f3(0x20a)](_0x20d8dd),this[_0x2d95f3(0x275)]=this[_0x2d95f3(0x231)](_0x20d8dd),this[_0x2d95f3(0x23f)]=this[_0x2d95f3(0x24d)](_0x20d8dd,_0xe185a0);const _0x533751={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x2d95f3(0x205)]=new _0x5caa0e(_0x20d8dd,this[_0x2d95f3(0x234)],_0x533751,this[_0x2d95f3(0x263)],this),this[_0x2d95f3(0x27d)]={'buttonView':this[_0x2d95f3(0x1f7)],'balloonView':this[_0x2d95f3(0x21d)],'hideMethod':this[_0x2d95f3(0x233)][_0x2d95f3(0x24f)](this),'showMethod':this[_0x2d95f3(0x217)][_0x2d95f3(0x24f)](this)},this[_0x2d95f3(0x272)](),this[_0x2d95f3(0x229)]();}[_0x58ecfd(0x21e)](){const _0x39984e=_0x58ecfd;super[_0x39984e(0x21e)](),this[_0x39984e(0x271)](),this[_0x39984e(0x205)][_0x39984e(0x25f)](this[_0x39984e(0x236)]),this[_0x39984e(0x205)][_0x39984e(0x1ec)]();}[_0x58ecfd(0x203)](){const _0xbf2f18=_0x58ecfd;super[_0xbf2f18(0x203)](),this[_0xbf2f18(0x205)][_0xbf2f18(0x203)](),this[_0xbf2f18(0x23f)][_0xbf2f18(0x203)]();}[_0x58ecfd(0x232)](_0x174450,_0x42dbe2){const _0x3dab5c=_0x58ecfd,_0xf377e4=this[_0x3dab5c(0x269)](_0x174450,_0x3dab5c(0x277),!0x0,_0x42dbe2);this[_0x3dab5c(0x27a)](_0xf377e4,this[_0x3dab5c(0x234)]),this[_0x3dab5c(0x205)][_0x3dab5c(0x1ec)]();}[_0x58ecfd(0x248)](_0x32c719){const _0x1572f5=_0x58ecfd;this[_0x1572f5(0x210)](_0x32c719,this[_0x1572f5(0x234)]),this[_0x1572f5(0x210)](_0x32c719,this[_0x1572f5(0x205)][_0x1572f5(0x23a)]),this[_0x1572f5(0x205)][_0x1572f5(0x1ec)]();}[_0x58ecfd(0x1ee)](_0x49de06,_0x2a1373){const _0x23f1a=_0x58ecfd;let _0x1b962c=this[_0x23f1a(0x234)][_0x23f1a(0x241)](_0x1da648=>_0x1da648['id']===_0x49de06);_0x1b962c||(_0x1b962c=this[_0x23f1a(0x205)][_0x23f1a(0x23a)][_0x23f1a(0x241)](_0x2027f9=>_0x2027f9['id']===_0x49de06)),_0x1b962c&&(_0x1b962c[_0x23f1a(0x202)]=_0x2a1373);}[_0x58ecfd(0x261)](_0x4dd718){const _0xe3058=_0x58ecfd;this[_0xe3058(0x26f)][_0xe3058(0x24b)]();for(const _0x1738a9 of _0x4dd718){const _0x3e5603=this[_0xe3058(0x269)](_0x1738a9,_0xe3058(0x23d),!0x1,!0x1);this[_0xe3058(0x27a)](_0x3e5603,this[_0xe3058(0x26f)]);}}[_0x58ecfd(0x278)](){const _0x58d705=_0x58ecfd;this[_0x58d705(0x234)][_0x58d705(0x24b)](),this[_0x58d705(0x205)][_0x58d705(0x24b)]();}[_0x58ecfd(0x212)](){const _0x3b5c3f=_0x58ecfd;this[_0x3b5c3f(0x26f)][_0x3b5c3f(0x24b)]();}[_0x58ecfd(0x1fa)](_0x425ada,_0xee8b31,_0x37d84a){const _0x5e5551=_0x58ecfd;this[_0x5e5551(0x23f)][_0x5e5551(0x1fa)](_0x425ada,_0xee8b31,_0x37d84a);}[_0x58ecfd(0x233)](){const _0x576fb7=_0x58ecfd;this[_0x576fb7(0x270)](!0x1);}[_0x58ecfd(0x217)](){const _0x375c63=_0x58ecfd;this[_0x375c63(0x270)](!0x0);}[_0x58ecfd(0x252)](){const _0x3bad78=_0x58ecfd;this[_0x3bad78(0x275)][_0x3bad78(0x279)](),this[_0x3bad78(0x1f7)][_0x3bad78(0x1ff)]=!0x1,this[_0x3bad78(0x235)]&&this[_0x3bad78(0x235)][_0x3bad78(0x24b)]();}[_0x58ecfd(0x27b)](){const _0x1d5590=_0x58ecfd;this[_0x1d5590(0x275)][_0x1d5590(0x244)](),this[_0x1d5590(0x1f7)][_0x1d5590(0x1ff)]=!0x0;}[_0x58ecfd(0x218)]({source:_0x52170c,withBackButton:_0x1b455e}){const _0x382a34=_0x58ecfd;this[_0x382a34(0x23f)][_0x382a34(0x1ed)]({'source':_0x52170c,'withBackButton':_0x1b455e}),this[_0x382a34(0x1f7)][_0x382a34(0x1ff)]=!0x0;}[_0x58ecfd(0x258)](_0x237730,_0x118775,_0x112a8a,_0x2e8923){const _0x94cd0b=_0x58ecfd;this[_0x94cd0b(0x23f)][_0x94cd0b(0x258)](_0x237730,_0x112a8a,_0x2e8923);}[_0x58ecfd(0x230)](_0xca2523){const _0x595546=_0x58ecfd;this[_0x595546(0x23f)][_0x595546(0x230)](_0xca2523),this[_0x595546(0x1f7)][_0x595546(0x1ff)]=!0x1;}[_0x58ecfd(0x25d)](_0x3af4e1){const _0x422813=_0x58ecfd;this[_0x422813(0x251)](this[_0x422813(0x21d)],this[_0x422813(0x237)],_0x3af4e1),this[_0x422813(0x259)](_0x3af4e1);}[_0x58ecfd(0x259)](_0x925e80){const _0xaa27ba=_0x58ecfd,_0x1415c2=!_0x925e80[_0xaa27ba(0x262)][_0xaa27ba(0x246)]&&_0x925e80[_0xaa27ba(0x262)][_0xaa27ba(0x22e)],_0x1a6d95=_0x925e80[_0xaa27ba(0x20d)][_0xaa27ba(0x22e)],_0x4d9817=_0x925e80[_0xaa27ba(0x216)][_0xaa27ba(0x22e)],_0x17548e=_0x925e80[_0xaa27ba(0x21b)][_0xaa27ba(0x22d)]>0x0,_0x44ebdf=_0x925e80[_0xaa27ba(0x1f6)]&&_0x925e80[_0xaa27ba(0x1f6)][_0xaa27ba(0x22d)]>0x0;this[_0xaa27ba(0x1f7)][_0xaa27ba(0x1f1)]=_0x1415c2||_0x1a6d95||_0x4d9817||_0x17548e||_0x44ebdf;}[_0x58ecfd(0x272)](){const _0x198c05=_0x58ecfd;this[_0x198c05(0x1f5)]({'tag':_0x198c05(0x24a),'attributes':{'class':[Uo,_0x198c05(0x224)]},'children':[{'tag':_0x198c05(0x24a),'attributes':{'class':Lo},'children':this[_0x198c05(0x234)]}]});}[_0x58ecfd(0x229)](){const _0x5445d3=_0x58ecfd;this[_0x5445d3(0x1f7)]['on'](_0x5445d3(0x247),()=>{const _0x566b77=_0x5445d3;this[_0x566b77(0x1ef)]();});}[_0x58ecfd(0x220)](_0x18a5fd){const _0x41fa50=_0x58ecfd,_0x5448e7=new _0x65baa0(_0x18a5fd);return _0x5448e7[_0x41fa50(0x243)]({'label':_0x8be458(_0x18a5fd,_0x41fa50(0x227)),'class':Xo+'\x20'+Mo,'icon':_0xa2853,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x5448e7;}[_0x58ecfd(0x20a)](_0x593db7){const _0x9db34b=_0x58ecfd;return this[_0x9db34b(0x1e8)](_0x593db7,No);}[_0x58ecfd(0x231)](_0x1364ed){const _0x410aaf=_0x58ecfd,_0x59c77=this[_0x410aaf(0x1e8)](_0x1364ed,Ho);return this[_0x410aaf(0x222)](_0x59c77,_0x1364ed),_0x59c77;}[_0x58ecfd(0x24d)](_0x36914f,_0xff5556){const _0x58d769=_0x58ecfd,_0x2f3bb5={'searchInputVisibleFrom':_0xff5556[_0x58d769(0x226)],'onBackToContext':()=>{const _0x16613d=_0x58d769;this[_0x16613d(0x217)](),this[_0x16613d(0x21d)][_0x16613d(0x20f)]({'target':this[_0x16613d(0x1f7)][_0x16613d(0x236)],'limiter':this[_0x16613d(0x1e9)](),'positions':zo});},'onResourceSelected':(_0x3070bc,_0x4aaa22)=>{const _0x207965=_0x58d769;this[_0x207965(0x21c)](_0x207965(0x1ea),{'source':_0x3070bc,'resource':_0x4aaa22});},'onLoadSourceResources':_0x224aaa=>{const _0x24817c=_0x58d769;this[_0x24817c(0x21c)](_0x24817c(0x1eb),_0x224aaa);},'onBalloonClosed':()=>{const _0x315398=_0x58d769;this[_0x315398(0x1f7)][_0x315398(0x1ff)]=!0x1;},'getLimiterElement':()=>this[_0x58d769(0x1e9)](),'getTargetElement':()=>this[_0x58d769(0x1f7)][_0x58d769(0x236)]};return new _0x2802c9(_0x36914f,_0xff5556[_0x58d769(0x263)],_0x2f3bb5);}[_0x58ecfd(0x1e9)](){const _0x155ca2=_0x58ecfd;return this[_0x155ca2(0x236)]?.[_0x155ca2(0x274)]('.'+qo)||document[_0x155ca2(0x26b)];}[_0x58ecfd(0x1e8)](_0x144b97,_0x440bc0){const _0xa76e07=_0x58ecfd,_0x326b4d=new _0x74dd(_0x144b97);return _0x326b4d[_0xa76e07(0x223)]({'attributes':{'class':_0x440bc0}}),this[_0xa76e07(0x263)][_0xa76e07(0x266)](_0x326b4d),_0x326b4d;}[_0x58ecfd(0x251)](_0x22b742,_0x375348,_0x11913b){const _0xebbcd0=_0x58ecfd;if(_0x22b742[_0xebbcd0(0x22f)][_0xebbcd0(0x24b)](),!_0x11913b[_0xebbcd0(0x262)][_0xebbcd0(0x246)]&&_0x11913b[_0xebbcd0(0x262)][_0xebbcd0(0x22e)]){const _0x245f33=this[_0xebbcd0(0x25b)](_0x375348,{'label':_0x8be458(_0x375348,_0xebbcd0(0x267)),'icon':_0xd137c6});_0x245f33['on'](_0xebbcd0(0x247),()=>{const _0x392f09=_0xebbcd0;this[_0x392f09(0x21c)](_0x392f09(0x24e)),this[_0x392f09(0x233)]();}),_0x22b742[_0xebbcd0(0x22f)][_0xebbcd0(0x266)](_0x245f33);}if(_0x11913b[_0xebbcd0(0x20d)][_0xebbcd0(0x22e)]){const _0x1f3528=this[_0xebbcd0(0x25b)](_0x375348,{'label':_0x8be458(_0x375348,_0xebbcd0(0x219)),'icon':_0x42b062});_0x1f3528['on'](_0xebbcd0(0x247),()=>{const _0xb4a574=_0xebbcd0;this[_0xb4a574(0x233)](),this[_0xb4a574(0x27b)](),this[_0xb4a574(0x275)][_0xb4a574(0x20f)]({'target':this[_0xb4a574(0x1f7)][_0xb4a574(0x236)],'limiter':this[_0xb4a574(0x1e9)](),'positions':zo}),this[_0xb4a574(0x235)][_0xb4a574(0x254)]();}),_0x22b742[_0xebbcd0(0x22f)][_0xebbcd0(0x266)](_0x1f3528);}if(_0x11913b[_0xebbcd0(0x216)][_0xebbcd0(0x22e)]){const _0x5af04f=new _0xf4da95(_0x375348);_0x5af04f[_0xebbcd0(0x243)]({'label':_0x8be458(_0x375348,_0xebbcd0(0x228)),'icon':_0xd8be8f,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x5af04f['on'](_0xebbcd0(0x247),()=>{const _0x5d9978=_0xebbcd0;this[_0x5d9978(0x233)]();}),_0x5af04f['on'](_0xebbcd0(0x21f),(_0x3a4577,_0x21f4a5)=>{const _0x299c48=_0xebbcd0;this[_0x299c48(0x21c)](_0x299c48(0x26c),_0x21f4a5);}),_0x5af04f[_0xebbcd0(0x22c)]=!0x0,_0x22b742[_0xebbcd0(0x22f)][_0xebbcd0(0x266)](_0x5af04f);}for(const _0x2d62de of _0x11913b[_0xebbcd0(0x21b)]){const _0x78f5c4=this[_0xebbcd0(0x25b)](_0x375348,{'label':_0x2d62de[_0xebbcd0(0x1fe)],'icon':_0x2d62de[_0xebbcd0(0x1f8)]||_0x111980,'type':_0xebbcd0(0x1f3)});_0x22b742[_0xebbcd0(0x22f)][_0xebbcd0(0x266)](_0x78f5c4),_0x78f5c4['on'](_0xebbcd0(0x247),()=>{const _0x2fb926=_0xebbcd0;this[_0x2fb926(0x233)](),this[_0x2fb926(0x218)]({'source':_0x2d62de,'withBackButton':!this[_0x2fb926(0x1fc)]});});}for(const _0x161b3f of _0x11913b[_0xebbcd0(0x1f6)]||[]){const _0x43248d=this[_0xebbcd0(0x25b)](_0x375348,{'label':_0x161b3f[_0xebbcd0(0x1fe)],'icon':_0x161b3f[_0xebbcd0(0x1f8)]||_0x111980,'type':_0xebbcd0(0x238)});_0x22b742[_0xebbcd0(0x22f)][_0xebbcd0(0x266)](_0x43248d),_0x43248d['on'](_0xebbcd0(0x247),()=>{const _0xe971c=_0xebbcd0;this[_0xe971c(0x233)](),this[_0xe971c(0x21c)](_0xe971c(0x25c),_0x161b3f);});}this[_0xebbcd0(0x1fc)]=0x1===_0x22b742[_0xebbcd0(0x22f)][_0xebbcd0(0x22d)],this[_0xebbcd0(0x235)][_0xebbcd0(0x209)]=!this[_0xebbcd0(0x1fc)];}[_0x58ecfd(0x222)](_0x1e127f,_0xba99c7){const _0x54f876=_0x58ecfd;this[_0x54f876(0x235)]=new _0x135a62(_0xba99c7),this[_0x54f876(0x235)]['on'](_0x54f876(0x23e),(_0x31235f,_0x377d33)=>{const _0x4ceba8=_0x54f876;this[_0x4ceba8(0x213)](_0x377d33);}),this[_0x54f876(0x235)]['on'](_0x54f876(0x255),()=>{const _0xb615d0=_0x54f876;this[_0xb615d0(0x252)](),this[_0xb615d0(0x1fc)]||(this[_0xb615d0(0x217)](),this[_0xb615d0(0x21d)][_0xb615d0(0x20f)]({'target':this[_0xb615d0(0x1f7)][_0xb615d0(0x236)],'limiter':this[_0xb615d0(0x1e9)](),'positions':zo}));}),this[_0x54f876(0x235)]['on'](_0x54f876(0x25a),()=>{const _0x488423=_0x54f876;this[_0x488423(0x275)][_0x488423(0x22a)]&&this[_0x488423(0x275)][_0x488423(0x20f)]({'target':this[_0x488423(0x1f7)][_0x488423(0x236)],'limiter':this[_0x488423(0x1e9)](),'positions':zo});}),_0x1e127f[_0x54f876(0x22f)][_0x54f876(0x266)](this[_0x54f876(0x235)]);}[_0x58ecfd(0x25b)](_0xa08893,_0x48608e){const _0x4d6980=_0x58ecfd,_0x48ad85=_0x4d6980(0x1f3)===_0x48608e[_0x4d6980(0x1fb)]?new SourcesBalloonButtonView(_0xa08893):new _0x65baa0(_0xa08893);return _0x48ad85[_0x4d6980(0x243)]({'label':_0x48608e[_0x4d6980(0x1fe)],'icon':_0x48608e[_0x4d6980(0x1f8)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x48ad85;}[_0x58ecfd(0x271)](){const _0x149976=_0x58ecfd;this[_0x149976(0x245)](),this[_0x149976(0x20e)]();}[_0x58ecfd(0x20e)](){const _0x37ce8a=_0x58ecfd;_0x5cb7f1({'emitter':this[_0x37ce8a(0x275)],'contextElements':[this[_0x37ce8a(0x275)][_0x37ce8a(0x236)]],'callback':()=>{const _0x15aed4=_0x37ce8a;this[_0x15aed4(0x252)]();},'activator':()=>this[_0x37ce8a(0x275)][_0x37ce8a(0x22a)]});}[_0x58ecfd(0x270)](_0x1ddab2){const _0x325bf=_0x58ecfd,_0x45ff75=this[_0x325bf(0x27d)];_0x45ff75[_0x325bf(0x256)][_0x325bf(0x1ff)]=_0x1ddab2,_0x1ddab2?_0x45ff75[_0x325bf(0x268)][_0x325bf(0x244)]():_0x45ff75[_0x325bf(0x268)][_0x325bf(0x279)]();}[_0x58ecfd(0x245)](){const _0x13a80b=_0x58ecfd,{balloonView:_0x5f3adf,buttonView:_0x1fe092,hideMethod:_0x389e7b}=this[_0x13a80b(0x27d)];_0x5cb7f1({'emitter':_0x5f3adf,'contextElements':[_0x5f3adf[_0x13a80b(0x236)],_0x1fe092[_0x13a80b(0x236)]],'callback':()=>{_0x389e7b();},'activator':()=>_0x1fe092[_0x13a80b(0x1ff)]&&!this[_0x13a80b(0x275)][_0x13a80b(0x22a)]&&!this[_0x13a80b(0x23f)][_0x13a80b(0x26e)]()});}[_0x58ecfd(0x269)](_0x1778aa,_0xe06ae1,_0x43c11d=!0x1,_0x4a4bd2=!0x1){const _0x4e8f45=_0x58ecfd,_0x41b870=_0x4e8f45(0x23d)===_0xe06ae1||!0x0===_0x1778aa[_0x4e8f45(0x20c)],_0x1dd571=new _0x4cbc4a(this[_0x4e8f45(0x237)],_0x1778aa,_0x41b870,_0x43c11d,_0x4a4bd2);return _0x41b870||_0x1dd571['on'](_0x4e8f45(0x27c),()=>{const _0x1d4e5d=_0x4e8f45;this[_0x1d4e5d(0x21c)](_0x1d4e5d(0x248),_0x1dd571['id']);}),_0x1dd571;}[_0x58ecfd(0x27a)](_0x89d0dd,_0x73a8){const _0x8346ec=_0x58ecfd;_0x73a8[_0x8346ec(0x266)](_0x89d0dd,0x0);}[_0x58ecfd(0x210)](_0x5d7918,_0x14dd4a){const _0x2cee82=_0x58ecfd,_0x10a760=_0x14dd4a[_0x2cee82(0x241)](_0x16f0ff=>_0x16f0ff['id']===_0x5d7918);_0x10a760&&_0x14dd4a[_0x2cee82(0x25e)](_0x10a760);}[_0x58ecfd(0x1ef)](){const _0x5192df=_0x58ecfd;this[_0x5192df(0x1f7)][_0x5192df(0x1ff)]?this[_0x5192df(0x233)]():(this[_0x5192df(0x217)](),this[_0x5192df(0x21d)][_0x5192df(0x20f)]({'target':this[_0x5192df(0x1f7)][_0x5192df(0x236)],'limiter':this[_0x5192df(0x1e9)](),'positions':zo}),this[_0x5192df(0x1fc)]&&this[_0x5192df(0x21d)][_0x5192df(0x22f)][_0x5192df(0x239)](0x0)?.[_0x5192df(0x21c)](_0x5192df(0x247)));}[_0x58ecfd(0x213)](_0x207604){const _0x1f81db=_0x58ecfd;this[_0x1f81db(0x235)][_0x1f81db(0x24b)](),this[_0x1f81db(0x252)](),this[_0x1f81db(0x21c)](_0x1f81db(0x242),_0x207604);}}export class SourcesBalloonButtonView extends _0x65baa0{[_0x58ecfd(0x201)];constructor(_0x34b1db){const _0x506e5a=_0x58ecfd;super(_0x34b1db),this[_0x506e5a(0x243)]({'withText':!0x0,'role':_0x506e5a(0x249)}),this[_0x506e5a(0x201)]=this[_0x506e5a(0x1f0)](),this[_0x506e5a(0x223)]({'attributes':{'class':[Fo]}});}[_0x58ecfd(0x21e)](){const _0x1790f4=_0x58ecfd;super[_0x1790f4(0x21e)](),this[_0x1790f4(0x21a)][_0x1790f4(0x266)](this[_0x1790f4(0x201)]);}[_0x58ecfd(0x1f0)](){const _0x2975b5=_0x58ecfd,_0x3b5cdf=new _0x555624();return _0x3b5cdf[_0x2975b5(0x22f)]=_0x5e52bf,_0x3b5cdf[_0x2975b5(0x223)]({'attributes':{'class':Fo+_0x2975b5(0x1f2)}}),_0x3b5cdf;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x508f19=_0x513f;(function(_0x36b978,_0x58c22f){const _0x56f6b7=_0x513f,_0x220b31=_0x36b978();while(!![]){try{const _0x3177ce=-parseInt(_0x56f6b7(0x15b))/0x1*(-parseInt(_0x56f6b7(0x15a))/0x2)+-parseInt(_0x56f6b7(0x140))/0x3*(-parseInt(_0x56f6b7(0x146))/0x4)+parseInt(_0x56f6b7(0x151))/0x5+parseInt(_0x56f6b7(0x141))/0x6*(-parseInt(_0x56f6b7(0x13e))/0x7)+-parseInt(_0x56f6b7(0x155))/0x8+parseInt(_0x56f6b7(0x152))/0x9*(parseInt(_0x56f6b7(0x147))/0xa)+-parseInt(_0x56f6b7(0x143))/0xb;if(_0x3177ce===_0x58c22f)break;else _0x220b31['push'](_0x220b31['shift']());}catch(_0x1d030b){_0x220b31['push'](_0x220b31['shift']());}}}(_0x2dc5,0x3845b));import{ButtonView as _0x45cd19,View as _0x2f3e1b}from'ckeditor5/src/ui.js';function _0x2dc5(){const _0x2d7b92=['ck-ai-chat-controls-loader','1767335pusUgw','513YyqwoX','ck-ai-chat-controls-loader-icon','execute','2272456VUtpUU','_createLoaderView','AI_CHAT_IS_WRITING','fire','ck-ai-chat-controls-loader-icon-dot','23332NjJpoe','34YQbZEv','13489HhUgyX','_cancelButtonView','177ONMSKe','174FCHaSB','locale','6178238rapAzI','_loaderView','setTemplate','24324bvWMfD','4070YIOmqD','ck-ai-button-secondary\x20ck-ai-button-stop-generating','abortPromptStream','div','ck-reset_all','set','_createCancelButtonView','AI_CHAT_STOP_GENERATING','ck-ai-chat-controls-loader-wrapper'];_0x2dc5=function(){return _0x2d7b92;};return _0x2dc5();}import{IconStop as _0x4019d4}from'ckeditor5/src/icons.js';import{getTranslation as _0x111369}from'../../../aicore/utils/common-translations.js';function _0x513f(_0x14a9b7,_0x5797a9){const _0x2dc584=_0x2dc5();return _0x513f=function(_0x513f69,_0x1e7ae1){_0x513f69=_0x513f69-0x13e;let _0x15a676=_0x2dc584[_0x513f69];return _0x15a676;},_0x513f(_0x14a9b7,_0x5797a9);}export class AIChatControlsLoaderView extends _0x2f3e1b{[_0x508f19(0x13f)];[_0x508f19(0x144)];constructor(_0x43057d){const _0x5c1918=_0x508f19;super(_0x43057d),this[_0x5c1918(0x13f)]=this[_0x5c1918(0x14d)](),this[_0x5c1918(0x144)]=this[_0x5c1918(0x156)](),this[_0x5c1918(0x145)]({'tag':_0x5c1918(0x14a),'attributes':{'class':['ck',_0x5c1918(0x14f),_0x5c1918(0x14b)]},'children':[this[_0x5c1918(0x144)],this[_0x5c1918(0x13f)]]});}[_0x508f19(0x14d)](){const _0x16396e=_0x508f19,_0x421402=new _0x45cd19(this[_0x16396e(0x142)]);return _0x421402[_0x16396e(0x14c)]({'label':_0x111369(this[_0x16396e(0x142)],_0x16396e(0x14e)),'withText':!0x0,'class':_0x16396e(0x148),'icon':_0x4019d4}),_0x421402['on'](_0x16396e(0x154),()=>{const _0x496c70=_0x16396e;this[_0x496c70(0x158)](_0x496c70(0x149));}),_0x421402;}[_0x508f19(0x156)](){const _0x550222=_0x508f19,_0xa0d5c2=new _0x2f3e1b(this[_0x550222(0x142)]);return _0xa0d5c2[_0x550222(0x145)]({'tag':_0x550222(0x14a),'attributes':{'class':[_0x550222(0x150)]},'children':[{'tag':_0x550222(0x14a),'attributes':{'class':[_0x550222(0x153)]},'children':[{'tag':_0x550222(0x14a),'attributes':{'class':[_0x550222(0x159)]}},{'tag':_0x550222(0x14a),'attributes':{'class':[_0x550222(0x159)]}},{'tag':_0x550222(0x14a),'attributes':{'class':[_0x550222(0x159)]}}]},{'text':_0x111369(this[_0x550222(0x142)],_0x550222(0x157))}]}),_0xa0d5c2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1c2e(_0x210067,_0x24bb87){const _0x435066=_0x4350();return _0x1c2e=function(_0x1c2ede,_0x22a048){_0x1c2ede=_0x1c2ede-0x68;let _0x46ce39=_0x435066[_0x1c2ede];return _0x46ce39;},_0x1c2e(_0x210067,_0x24bb87);}const _0xb650=_0x1c2e;(function(_0x245efd,_0x2c65ba){const _0x579c7e=_0x1c2e,_0x9969eb=_0x245efd();while(!![]){try{const _0x4faa4f=parseInt(_0x579c7e(0x86))/0x1*(parseInt(_0x579c7e(0x7e))/0x2)+parseInt(_0x579c7e(0xb8))/0x3+-parseInt(_0x579c7e(0xac))/0x4*(parseInt(_0x579c7e(0xa1))/0x5)+parseInt(_0x579c7e(0x71))/0x6+parseInt(_0x579c7e(0xbe))/0x7+parseInt(_0x579c7e(0x6c))/0x8+parseInt(_0x579c7e(0x85))/0x9*(-parseInt(_0x579c7e(0x92))/0xa);if(_0x4faa4f===_0x2c65ba)break;else _0x9969eb['push'](_0x9969eb['shift']());}catch(_0x119307){_0x9969eb['push'](_0x9969eb['shift']());}}}(_0x4350,0xed89f));function _0x4350(){const _0x1dc54c=['_reasoningButton','ck-button__label','_getCapabilityParts','_modelNameView','335016RXXivs','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','addMany','name','description','10155264UBGkhq','bindTemplate','ck-hidden','execute','setTemplate','buttonView','bind','source','content','AI_CHAT_SEARCH_WEB','ck-ai-chat-controls-button--commands','length','hidden','70pgtTgp','toggleWebSearch','webSearch','model','ck-ai-chat__prompt-capabilities','createCollection','tooltip','1983717mQurRn','39233Zuwtsd','_commandsButton','setModelList','setWebSearch','capabilities','log','ck-ai-chat-controls-button','locale','add','AI_CHAT_CAPABILITIES_YES','ck-ai-chat-controls__model-selection__item-name','_modelSelectionDropdownItems','130rPbRNJ','_createModelSelectionDropdown','_webSearchButton','activeModelId','_createCommandsButton','listenTo','isOn','extendTemplate','selectModel','modelDisplayMode','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-description','text','modelSelectorEnabled','set','7995725dWIxcW','AI_CHAT_ENABLE_REASONING','Commands\x20are\x20not\x20implemented\x20yet.','label','style','webSearchActive','disableModelSelector','AI_CHAT_COMMANDS','toggleReasoning','_modelSelectionDropdown','ck-ai-button-tertiary','4vDkqWd','reasoningActive','AI_CHAT_REASONING','selector','isVisible','span','reasoning','_createReasoningButton','_createModelNameView','AI_CHAT_DISABLE_REASONING','div','AI_CHAT_DISABLE_WEB_SEARCH','2671116jxeCgq','setModel','ck-ai-chat-controls__model-selection__item-capabilities','button','enableModelSelector','menuitemradio','10076675hyPZMT','ck-ai-chat-controls__model-selection','isEnabled','enabled','fire','_createWebSearchButton','AI_CHAT_ENABLE_WEB_SEARCH','setReasoning','AI_CHAT_CAPABILITIES_NO','activeModelName','clear','ck-ai-chat-controls__model-name'];_0x4350=function(){return _0x1dc54c;};return _0x4350();}import{Collection as _0x743e24}from'ckeditor5/src/utils.js';import{IconAI as _0x6c17fd,IconBulb as _0x49b1bc,IconWeb as _0x525b78}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x15eeca,ButtonLabelView as _0x15fae0,ButtonView as _0x12b567,createDropdown as _0x55bec8,IconView as _0x1bbe68,UIModel as _0x4ce1c0,View as _0x59e499}from'ckeditor5/src/ui.js';import{getTranslation as _0x5da615}from'../../../aicore/utils/common-translations.js';const Ko=_0xb650(0x82),Xo=_0xb650(0x8c),Qo=_0xb650(0x7b),Zo=_0xb650(0xab),tl=_0xb650(0xbf),el=_0xb650(0x90),il=_0xb650(0x9d),sl=_0xb650(0xba),ol='n';export class AIChatPromptCapabilitiesView extends _0x59e499{[_0xb650(0x94)];[_0xb650(0x68)];[_0xb650(0x87)];[_0xb650(0xaa)];[_0xb650(0x91)];[_0xb650(0x6b)];constructor(_0x325cf2){const _0x5e1dde=_0xb650;super(_0x325cf2),this[_0x5e1dde(0xa0)](_0x5e1dde(0xa6),!0x1),this[_0x5e1dde(0xa0)](_0x5e1dde(0xad),!0x1),this[_0x5e1dde(0xa0)](_0x5e1dde(0x9b),_0x5e1dde(0xaf)),this[_0x5e1dde(0xa0)](_0x5e1dde(0x9f),!0x0),this[_0x5e1dde(0xa0)](_0x5e1dde(0x95),null),this[_0x5e1dde(0xa0)](_0x5e1dde(0xc7),null),this[_0x5e1dde(0xaa)]=this[_0x5e1dde(0x93)](),this[_0x5e1dde(0x6b)]=this[_0x5e1dde(0xb4)](),this[_0x5e1dde(0x94)]=this[_0x5e1dde(0xc3)](),this[_0x5e1dde(0x68)]=this[_0x5e1dde(0xb3)](),this[_0x5e1dde(0x87)]=this[_0x5e1dde(0x96)](),this[_0x5e1dde(0xaa)][_0x5e1dde(0x76)][_0x5e1dde(0x77)](_0x5e1dde(0xb0))['to'](this,_0x5e1dde(0x9b),_0x4ffc44=>_0x5e1dde(0xaf)===_0x4ffc44),this[_0x5e1dde(0xaa)][_0x5e1dde(0x76)][_0x5e1dde(0x77)](_0x5e1dde(0x84))['to'](this,_0x5e1dde(0x9f),_0x338d00=>_0x338d00?this[_0x5e1dde(0xaa)][_0x5e1dde(0x76)][_0x5e1dde(0xa4)]:_0x5da615(this[_0x5e1dde(0x8d)],_0x5e1dde(0x6d))),this[_0x5e1dde(0xaa)][_0x5e1dde(0x77)](_0x5e1dde(0xc0))['to'](this,_0x5e1dde(0x9f),_0x443467=>_0x443467),this[_0x5e1dde(0x94)][_0x5e1dde(0x77)](_0x5e1dde(0x98))['to'](this,_0x5e1dde(0xa6),_0x45bac4=>_0x45bac4),this[_0x5e1dde(0x94)][_0x5e1dde(0x77)](_0x5e1dde(0x84))['to'](this,_0x5e1dde(0xa6),_0x1d2782=>_0x5da615(this[_0x5e1dde(0x8d)],_0x1d2782?_0x5e1dde(0xb7):_0x5e1dde(0xc4))),this[_0x5e1dde(0x68)][_0x5e1dde(0x77)](_0x5e1dde(0x98))['to'](this,_0x5e1dde(0xad),_0x39c237=>_0x39c237),this[_0x5e1dde(0x68)][_0x5e1dde(0x77)](_0x5e1dde(0x84))['to'](this,_0x5e1dde(0xad),_0x3bf18e=>_0x5da615(this[_0x5e1dde(0x8d)],_0x3bf18e?_0x5e1dde(0xb5):_0x5e1dde(0xa2))),this[_0x5e1dde(0x75)]({'tag':_0x5e1dde(0xb6),'attributes':{'class':[Ko]},'children':[this[_0x5e1dde(0xaa)],this[_0x5e1dde(0x6b)],this[_0x5e1dde(0x94)],this[_0x5e1dde(0x68)],this[_0x5e1dde(0x87)]]}),this[_0x5e1dde(0x91)]=new _0x743e24(),_0x15eeca(this[_0x5e1dde(0xaa)],this[_0x5e1dde(0x91)]);}[_0xb650(0x88)](_0x2ee787,_0x366224){const _0x2c62d2=_0xb650;if(_0x366224)this[_0x2c62d2(0xa0)](_0x2c62d2(0x9b),_0x2c62d2(0x7d));else{const _0x3ff91d=0x1===_0x2ee787[_0x2c62d2(0x7c)];this[_0x2c62d2(0xa0)](_0x2c62d2(0x9b),_0x3ff91d?_0x2c62d2(0x6f):_0x2c62d2(0xaf));}if(this[_0x2c62d2(0x91)][_0x2c62d2(0xc8)](),_0x2ee787?.[_0x2c62d2(0x7c)])for(const _0x20cca9 of _0x2ee787){const _0x440408=new _0x4ce1c0({'label':_0x20cca9[_0x2c62d2(0x6f)],'withText':!0x0,'role':_0x2c62d2(0xbd),'id':_0x20cca9['id'],'model':_0x20cca9});_0x440408[_0x2c62d2(0x77)](_0x2c62d2(0x98))['to'](this,_0x2c62d2(0x95),_0x2d5d83=>_0x2d5d83===_0x20cca9['id']),this[_0x2c62d2(0x91)][_0x2c62d2(0x8e)]({'type':_0x2c62d2(0xbb),'model':_0x440408,'labelView':new ko(this[_0x2c62d2(0x8d)],_0x20cca9)});}}[_0xb650(0x89)](_0x241f3a){const _0x3cddc1=_0xb650;this[_0x3cddc1(0xa0)](_0x3cddc1(0xa6),_0x241f3a);}[_0xb650(0xc5)](_0x22b11b){const _0x2b7670=_0xb650;this[_0x2b7670(0xa0)](_0x2b7670(0xad),_0x22b11b);}[_0xb650(0xb9)](_0x5ab588){const _0x377b4a=_0xb650;if(!_0x5ab588)return;this[_0x377b4a(0x95)]=_0x5ab588['id'],this[_0x377b4a(0xc7)]=_0x5ab588[_0x377b4a(0x6f)]||_0x5ab588['id'],this[_0x377b4a(0xaa)][_0x377b4a(0x76)][_0x377b4a(0xa0)](_0x377b4a(0xa4),_0x5ab588[_0x377b4a(0x6f)]),this[_0x377b4a(0xaa)][_0x377b4a(0x76)][_0x377b4a(0xa0)](_0x377b4a(0x84),_0x5ab588[_0x377b4a(0x6f)]);const _0x3dbed0=_0x5ab588[_0x377b4a(0x8a)][_0x377b4a(0x80)]?.[_0x377b4a(0xc1)]??!0x1;this[_0x377b4a(0xa0)](_0x377b4a(0xa6),!0x1),this[_0x377b4a(0x94)][_0x377b4a(0xa0)](_0x377b4a(0x98),!0x1),this[_0x377b4a(0x94)][_0x377b4a(0xa0)](_0x377b4a(0xc0),_0x3dbed0),this[_0x377b4a(0x94)][_0x377b4a(0xa0)](_0x377b4a(0xb0),_0x3dbed0);const _0x5801c8=_0x5ab588[_0x377b4a(0x8a)][_0x377b4a(0xb2)]?.[_0x377b4a(0xc1)]??!0x1;this[_0x377b4a(0xa0)](_0x377b4a(0xad),!0x1),this[_0x377b4a(0x68)][_0x377b4a(0xa0)](_0x377b4a(0x98),!0x1),this[_0x377b4a(0x68)][_0x377b4a(0xa0)](_0x377b4a(0xc0),_0x5801c8),this[_0x377b4a(0x68)][_0x377b4a(0xa0)](_0x377b4a(0xb0),_0x5801c8);}[_0xb650(0xbc)](){const _0x146bb4=_0xb650;this[_0x146bb4(0xa0)](_0x146bb4(0x9f),!0x0);}[_0xb650(0xa7)](_0x30c0ba){const _0x2493d4=_0xb650;this[_0x2493d4(0xa0)](_0x2493d4(0x9f),!0x1),_0x30c0ba&&this[_0x2493d4(0xa0)](_0x2493d4(0x9b),_0x2493d4(0x7d));}[_0xb650(0xc3)](){const _0xc79fe8=_0xb650,_0x7a9b61=new _0x12b567();return _0x7a9b61[_0xc79fe8(0xa0)]({'label':_0x5da615(this[_0xc79fe8(0x8d)],_0xc79fe8(0x7a)),'icon':_0x525b78,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x7a9b61['on'](_0xc79fe8(0x74),()=>{const _0x3488f0=_0xc79fe8;this[_0x3488f0(0xc2)](_0x3488f0(0x7f));}),_0x7a9b61;}[_0xb650(0xb3)](){const _0x367cfb=_0xb650,_0x2615a3=new _0x12b567();return _0x2615a3[_0x367cfb(0xa0)]({'label':_0x5da615(this[_0x367cfb(0x8d)],_0x367cfb(0xae)),'icon':_0x49b1bc,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x2615a3['on'](_0x367cfb(0x74),()=>{const _0x518853=_0x367cfb;this[_0x518853(0xc2)](_0x518853(0xa9));}),_0x2615a3;}[_0xb650(0x96)](){const _0x4b99c7=_0xb650,_0xa2834a=new _0x12b567();return _0xa2834a[_0x4b99c7(0xa0)]({'label':_0x5da615(this[_0x4b99c7(0x8d)],_0x4b99c7(0xa8)),'icon':_0x6c17fd,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x5da615(this[_0x4b99c7(0x8d)],_0x4b99c7(0xa8)),'tooltipPosition':ol}),_0xa2834a[_0x4b99c7(0x99)]({'attributes':{'class':[Qo]}}),_0xa2834a['on'](_0x4b99c7(0x74),()=>{const _0x55f701=_0x4b99c7;console[_0x55f701(0x8b)](_0x55f701(0xa3)),alert(_0x55f701(0xa3));}),_0xa2834a;}[_0xb650(0x93)](){const _0x57b9b9=_0xb650,_0x2bb686=_0x55bec8(this[_0x57b9b9(0x8d)]);return _0x2bb686[_0x57b9b9(0xa0)]({'panelPosition':'ne','class':[tl]}),_0x2bb686[_0x57b9b9(0x76)][_0x57b9b9(0xa0)]({'label':_0x5da615(this[_0x57b9b9(0x8d)],_0x57b9b9(0x9c)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x57b9b9(0x97)](_0x2bb686,_0x57b9b9(0x74),_0x9fe0ab=>{const _0x74270d=_0x57b9b9;this[_0x74270d(0xc2)](_0x74270d(0x9a),_0x9fe0ab[_0x74270d(0x78)][_0x74270d(0x81)]);}),_0x2bb686;}[_0xb650(0xb4)](){const _0xb3732d=_0xb650,_0x5a1678=new _o(this[_0xb3732d(0x8d)]);return _0x5a1678[_0xb3732d(0x77)](_0xb3732d(0x9e))['to'](this,_0xb3732d(0xc7),_0x4ebe08=>_0x4ebe08??''),_0x5a1678[_0xb3732d(0x77)](_0xb3732d(0xb0))['to'](this,_0xb3732d(0x9b),_0x1d8121=>_0xb3732d(0x6f)===_0x1d8121),_0x5a1678;}}class ko extends _0x15fae0{constructor(_0x492ed6,_0x4f37b2){const _0x54b242=_0xb650;super();const _0x2ee01b=this[_0x54b242(0x72)],_0x5185d8=this[_0x54b242(0x83)]();this[_0x54b242(0x75)]({'tag':_0x54b242(0xb6),'attributes':{'class':['ck',_0x54b242(0x69)],'style':_0x2ee01b['to'](_0x54b242(0xa5)),'id':_0x2ee01b['to']('id')},'children':[{'tag':_0x54b242(0xb6),'attributes':{'class':[el]},'children':[{'text':_0x2ee01b['to'](_0x54b242(0x9e))}]},{'tag':_0x54b242(0xb6),'attributes':{'class':[il]},'children':[{'tag':_0x54b242(0xb1),'children':[{'text':_0x4f37b2[_0x54b242(0x70)]}]}]},{'tag':_0x54b242(0xb6),'attributes':{'class':[sl]},'children':_0x5185d8}]}),_0x5185d8[_0x54b242(0x6e)](this[_0x54b242(0x6a)](_0x492ed6,_0x525b78,_0x54b242(0x7a),_0x4f37b2[_0x54b242(0x8a)][_0x54b242(0x80)]?.[_0x54b242(0xc1)]??!0x1)),_0x5185d8[_0x54b242(0x6e)](this[_0x54b242(0x6a)](_0x492ed6,_0x49b1bc,_0x54b242(0xae),_0x4f37b2[_0x54b242(0x8a)][_0x54b242(0xb2)]?.[_0x54b242(0xc1)]??!0x1));}[_0xb650(0x6a)](_0x2ca241,_0x46161e,_0x48f304,_0x4d764a){const _0x22b916=_0xb650,_0xaae0ce=new _0x1bbe68();_0xaae0ce[_0x22b916(0x79)]=_0x46161e;const _0x40ce30=new _0x59e499(_0x2ca241);_0x40ce30[_0x22b916(0x75)]({'tag':_0x22b916(0xb1),'children':[{'text':_0x5da615(_0x2ca241,_0x48f304)+':\x20'}]});const _0x2cb0e0=new _0x59e499(_0x2ca241);return _0x2cb0e0[_0x22b916(0x75)]({'tag':_0x22b916(0xb1),'children':[{'text':_0x5da615(_0x2ca241,_0x4d764a?_0x22b916(0x8f):_0x22b916(0xc6))}]}),[_0xaae0ce,_0x40ce30,_0x2cb0e0];}}class _o extends _0x59e499{constructor(_0x344fc8){const _0x43fc40=_0xb650;super(_0x344fc8),this[_0x43fc40(0xa0)](_0x43fc40(0x9e),void 0x0),this[_0x43fc40(0xa0)](_0x43fc40(0xb0),!0x0);const _0x553f54=this[_0x43fc40(0x72)];this[_0x43fc40(0x75)]({'tag':_0x43fc40(0xb1),'attributes':{'class':['ck',_0x43fc40(0xc9),_0x553f54['if'](_0x43fc40(0xb0),_0x43fc40(0x73),_0x39bb39=>!_0x39bb39)]},'children':[{'text':_0x553f54['to'](_0x43fc40(0x9e))}]});}}
|
|
23
|
+
const _0x5cd6b7=_0x7e62;function _0x7e62(_0x1b1423,_0x1ae6b6){const _0x51d243=_0x51d2();return _0x7e62=function(_0x7e6252,_0x54cb43){_0x7e6252=_0x7e6252-0xe9;let _0x4ab9a6=_0x51d243[_0x7e6252];return _0x4ab9a6;},_0x7e62(_0x1b1423,_0x1ae6b6);}(function(_0x535cfa,_0x4a3b71){const _0x5a6a62=_0x7e62,_0x3e49d6=_0x535cfa();while(!![]){try{const _0x27b475=-parseInt(_0x5a6a62(0x116))/0x1+parseInt(_0x5a6a62(0x136))/0x2*(-parseInt(_0x5a6a62(0x11a))/0x3)+parseInt(_0x5a6a62(0x13e))/0x4+-parseInt(_0x5a6a62(0x106))/0x5*(-parseInt(_0x5a6a62(0xf9))/0x6)+parseInt(_0x5a6a62(0x102))/0x7*(parseInt(_0x5a6a62(0x13b))/0x8)+parseInt(_0x5a6a62(0x129))/0x9+-parseInt(_0x5a6a62(0x111))/0xa*(parseInt(_0x5a6a62(0x11f))/0xb);if(_0x27b475===_0x4a3b71)break;else _0x3e49d6['push'](_0x3e49d6['shift']());}catch(_0x3db497){_0x3e49d6['push'](_0x3e49d6['shift']());}}}(_0x51d2,0xe17b6));import{Collection as _0x11ff60}from'ckeditor5/src/utils.js';import{IconAI as _0x298e31,IconBulb as _0x5b4395,IconWeb as _0x470eb4}from'@ckeditor/ckeditor5-icons';function _0x51d2(){const _0x2c89e9=['AI_CHAT_CAPABILITIES_NO','isOn','menuitemradio','AI_CHAT_REASONING','execute','setWebSearch','AI_CHAT_COMMANDS','bindTemplate','ck-ai-chat-controls__model-selection__item-name','capabilities','49590TDAZlM','content','modelDisplayMode','locale','selector','reasoningActive','AI_CHAT_DISABLE_WEB_SEARCH','model','_modelSelectionDropdownItems','7KUvFvE','addMany','webSearchActive','style','860QSZfmD','ck-ai-chat__prompt-capabilities','fire','enabled','ck-button__label','text','AI_CHAT_DISABLE_REASONING','toggleWebSearch','isEnabled','button','hidden','10tGBSbV','name','_commandsButton','toggleReasoning','disableModelSelector','1523286MBNEQN','ck-ai-button-tertiary','listenTo','clear','3VZeUKv','label','bind','div','isVisible','12886940UWGUqi','AI_CHAT_SEARCH_WEB','ck-hidden','add','createCollection','AI_CHAT_CAPABILITIES_YES','_createReasoningButton','Commands\x20are\x20not\x20implemented\x20yet.','setModel','length','11121453MtDiVI','_modelSelectionDropdown','modelSelectorEnabled','_webSearchButton','span','set','activeModelName','ck-ai-chat-controls-button--commands','reasoning','_modelNameView','AI_CHAT_ENABLE_REASONING','_createModelNameView','ck-ai-chat-controls__model-selection__item-capabilities','2379286qxSpUX','setTemplate','extendTemplate','webSearch','ck-ai-chat-controls__model-name','4430616HwGbBi','ck-ai-chat-controls-button','ck-ai-chat-controls__model-selection','6387676VxVHmq','setModelList','AI_CHAT_ENABLE_WEB_SEARCH','activeModelId','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','_createCommandsButton','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_createModelSelectionDropdown','buttonView','setReasoning','enableModelSelector','log','source','selectModel','ck-ai-chat-controls__model-selection__item-description','_getCapabilityParts','tooltip','description','_reasoningButton','_createWebSearchButton'];_0x51d2=function(){return _0x2c89e9;};return _0x51d2();}import{addListToDropdown as _0xb0556d,ButtonLabelView as _0x505566,ButtonView as _0x55cea0,createDropdown as _0x1b8e0a,IconView as _0xf95e4f,UIModel as _0x2808f2,View as _0x460f8a}from'ckeditor5/src/ui.js';import{getTranslation as _0x3caed9}from'../../../aicore/utils/common-translations.js';const Ko=_0x5cd6b7(0x107),Xo=_0x5cd6b7(0x13c),Qo=_0x5cd6b7(0x130),Zo=_0x5cd6b7(0x117),tl=_0x5cd6b7(0x13d),el=_0x5cd6b7(0xf7),il=_0x5cd6b7(0xe9),sl=_0x5cd6b7(0x135),ol='n';export class AIChatPromptCapabilitiesView extends _0x460f8a{[_0x5cd6b7(0x12c)];[_0x5cd6b7(0xed)];[_0x5cd6b7(0x113)];[_0x5cd6b7(0x12a)];[_0x5cd6b7(0x101)];[_0x5cd6b7(0x132)];constructor(_0x5098de){const _0x2b4dfd=_0x5cd6b7;super(_0x5098de),this[_0x2b4dfd(0x12e)](_0x2b4dfd(0x104),!0x1),this[_0x2b4dfd(0x12e)](_0x2b4dfd(0xfe),!0x1),this[_0x2b4dfd(0x12e)](_0x2b4dfd(0xfb),_0x2b4dfd(0xfd)),this[_0x2b4dfd(0x12e)](_0x2b4dfd(0x12b),!0x0),this[_0x2b4dfd(0x12e)](_0x2b4dfd(0x141),null),this[_0x2b4dfd(0x12e)](_0x2b4dfd(0x12f),null),this[_0x2b4dfd(0x12a)]=this[_0x2b4dfd(0x145)](),this[_0x2b4dfd(0x132)]=this[_0x2b4dfd(0x134)](),this[_0x2b4dfd(0x12c)]=this[_0x2b4dfd(0xee)](),this[_0x2b4dfd(0xed)]=this[_0x2b4dfd(0x125)](),this[_0x2b4dfd(0x113)]=this[_0x2b4dfd(0x143)](),this[_0x2b4dfd(0x12a)][_0x2b4dfd(0x146)][_0x2b4dfd(0x11c)](_0x2b4dfd(0x11e))['to'](this,_0x2b4dfd(0xfb),_0x988d72=>_0x2b4dfd(0xfd)===_0x988d72),this[_0x2b4dfd(0x12a)][_0x2b4dfd(0x146)][_0x2b4dfd(0x11c)](_0x2b4dfd(0xeb))['to'](this,_0x2b4dfd(0x12b),_0x14a420=>_0x14a420?this[_0x2b4dfd(0x12a)][_0x2b4dfd(0x146)][_0x2b4dfd(0x11b)]:_0x3caed9(this[_0x2b4dfd(0xfc)],_0x2b4dfd(0x144))),this[_0x2b4dfd(0x12a)][_0x2b4dfd(0x11c)](_0x2b4dfd(0x10e))['to'](this,_0x2b4dfd(0x12b),_0x34797f=>_0x34797f),this[_0x2b4dfd(0x12c)][_0x2b4dfd(0x11c)](_0x2b4dfd(0xf0))['to'](this,_0x2b4dfd(0x104),_0x420d38=>_0x420d38),this[_0x2b4dfd(0x12c)][_0x2b4dfd(0x11c)](_0x2b4dfd(0xeb))['to'](this,_0x2b4dfd(0x104),_0x242e2c=>_0x3caed9(this[_0x2b4dfd(0xfc)],_0x242e2c?_0x2b4dfd(0xff):_0x2b4dfd(0x140))),this[_0x2b4dfd(0xed)][_0x2b4dfd(0x11c)](_0x2b4dfd(0xf0))['to'](this,_0x2b4dfd(0xfe),_0x39498b=>_0x39498b),this[_0x2b4dfd(0xed)][_0x2b4dfd(0x11c)](_0x2b4dfd(0xeb))['to'](this,_0x2b4dfd(0xfe),_0x20395b=>_0x3caed9(this[_0x2b4dfd(0xfc)],_0x20395b?_0x2b4dfd(0x10c):_0x2b4dfd(0x133))),this[_0x2b4dfd(0x137)]({'tag':_0x2b4dfd(0x11d),'attributes':{'class':[Ko]},'children':[this[_0x2b4dfd(0x12a)],this[_0x2b4dfd(0x132)],this[_0x2b4dfd(0x12c)],this[_0x2b4dfd(0xed)],this[_0x2b4dfd(0x113)]]}),this[_0x2b4dfd(0x101)]=new _0x11ff60(),_0xb0556d(this[_0x2b4dfd(0x12a)],this[_0x2b4dfd(0x101)]);}[_0x5cd6b7(0x13f)](_0x1ae3ab,_0x4d371c){const _0x1a9c62=_0x5cd6b7;if(_0x4d371c)this[_0x1a9c62(0x12e)](_0x1a9c62(0xfb),_0x1a9c62(0x110));else{const _0x132473=0x1===_0x1ae3ab[_0x1a9c62(0x128)];this[_0x1a9c62(0x12e)](_0x1a9c62(0xfb),_0x132473?_0x1a9c62(0x112):_0x1a9c62(0xfd));}if(this[_0x1a9c62(0x101)][_0x1a9c62(0x119)](),_0x1ae3ab?.[_0x1a9c62(0x128)])for(const _0x5b2e1d of _0x1ae3ab){const _0x1ec031=new _0x2808f2({'label':_0x5b2e1d[_0x1a9c62(0x112)],'withText':!0x0,'role':_0x1a9c62(0xf1),'id':_0x5b2e1d['id'],'model':_0x5b2e1d});_0x1ec031[_0x1a9c62(0x11c)](_0x1a9c62(0xf0))['to'](this,_0x1a9c62(0x141),_0x51c677=>_0x51c677===_0x5b2e1d['id']),this[_0x1a9c62(0x101)][_0x1a9c62(0x122)]({'type':_0x1a9c62(0x10f),'model':_0x1ec031,'labelView':new ko(this[_0x1a9c62(0xfc)],_0x5b2e1d)});}}[_0x5cd6b7(0xf4)](_0x44b81d){const _0x2ee7dd=_0x5cd6b7;this[_0x2ee7dd(0x12e)](_0x2ee7dd(0x104),_0x44b81d);}[_0x5cd6b7(0x147)](_0x1b2bbd){const _0x2a69fe=_0x5cd6b7;this[_0x2a69fe(0x12e)](_0x2a69fe(0xfe),_0x1b2bbd);}[_0x5cd6b7(0x127)](_0x5333fc){const _0x4a5743=_0x5cd6b7;if(!_0x5333fc)return;this[_0x4a5743(0x141)]=_0x5333fc['id'],this[_0x4a5743(0x12f)]=_0x5333fc[_0x4a5743(0x112)]||_0x5333fc['id'],this[_0x4a5743(0x12a)][_0x4a5743(0x146)][_0x4a5743(0x12e)](_0x4a5743(0x11b),_0x5333fc[_0x4a5743(0x112)]),this[_0x4a5743(0x12a)][_0x4a5743(0x146)][_0x4a5743(0x12e)](_0x4a5743(0xeb),_0x5333fc[_0x4a5743(0x112)]);const _0x437bcd=_0x5333fc[_0x4a5743(0xf8)][_0x4a5743(0x139)]?.[_0x4a5743(0x109)]??!0x1;this[_0x4a5743(0x12e)](_0x4a5743(0x104),!0x1),this[_0x4a5743(0x12c)][_0x4a5743(0x12e)](_0x4a5743(0xf0),!0x1),this[_0x4a5743(0x12c)][_0x4a5743(0x12e)](_0x4a5743(0x10e),_0x437bcd),this[_0x4a5743(0x12c)][_0x4a5743(0x12e)](_0x4a5743(0x11e),_0x437bcd);const _0x4e5a95=_0x5333fc[_0x4a5743(0xf8)][_0x4a5743(0x131)]?.[_0x4a5743(0x109)]??!0x1;this[_0x4a5743(0x12e)](_0x4a5743(0xfe),!0x1),this[_0x4a5743(0xed)][_0x4a5743(0x12e)](_0x4a5743(0xf0),!0x1),this[_0x4a5743(0xed)][_0x4a5743(0x12e)](_0x4a5743(0x10e),_0x4e5a95),this[_0x4a5743(0xed)][_0x4a5743(0x12e)](_0x4a5743(0x11e),_0x4e5a95);}[_0x5cd6b7(0x148)](){const _0x3c03c8=_0x5cd6b7;this[_0x3c03c8(0x12e)](_0x3c03c8(0x12b),!0x0);}[_0x5cd6b7(0x115)](_0x4e7b32){const _0x34830d=_0x5cd6b7;this[_0x34830d(0x12e)](_0x34830d(0x12b),!0x1),_0x4e7b32&&this[_0x34830d(0x12e)](_0x34830d(0xfb),_0x34830d(0x110));}[_0x5cd6b7(0xee)](){const _0x2f86f3=_0x5cd6b7,_0x2d3374=new _0x55cea0();return _0x2d3374[_0x2f86f3(0x12e)]({'label':_0x3caed9(this[_0x2f86f3(0xfc)],_0x2f86f3(0x120)),'icon':_0x470eb4,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x2d3374['on'](_0x2f86f3(0xf3),()=>{const _0x565b4c=_0x2f86f3;this[_0x565b4c(0x108)](_0x565b4c(0x10d));}),_0x2d3374;}[_0x5cd6b7(0x125)](){const _0xe948b=_0x5cd6b7,_0x199b04=new _0x55cea0();return _0x199b04[_0xe948b(0x12e)]({'label':_0x3caed9(this[_0xe948b(0xfc)],_0xe948b(0xf2)),'icon':_0x5b4395,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x199b04['on'](_0xe948b(0xf3),()=>{const _0x4da027=_0xe948b;this[_0x4da027(0x108)](_0x4da027(0x114));}),_0x199b04;}[_0x5cd6b7(0x143)](){const _0x348d4d=_0x5cd6b7,_0xf2a062=new _0x55cea0();return _0xf2a062[_0x348d4d(0x12e)]({'label':_0x3caed9(this[_0x348d4d(0xfc)],_0x348d4d(0xf5)),'icon':_0x298e31,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x3caed9(this[_0x348d4d(0xfc)],_0x348d4d(0xf5)),'tooltipPosition':ol}),_0xf2a062[_0x348d4d(0x138)]({'attributes':{'class':[Qo]}}),_0xf2a062['on'](_0x348d4d(0xf3),()=>{const _0x42e8e7=_0x348d4d;console[_0x42e8e7(0x149)](_0x42e8e7(0x126)),alert(_0x42e8e7(0x126));}),_0xf2a062;}[_0x5cd6b7(0x145)](){const _0xfbd184=_0x5cd6b7,_0x152813=_0x1b8e0a(this[_0xfbd184(0xfc)]);return _0x152813[_0xfbd184(0x12e)]({'panelPosition':'ne','class':[tl]}),_0x152813[_0xfbd184(0x146)][_0xfbd184(0x12e)]({'label':_0x3caed9(this[_0xfbd184(0xfc)],_0xfbd184(0x142)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0xfbd184(0x118)](_0x152813,_0xfbd184(0xf3),_0x408f26=>{const _0x5ed041=_0xfbd184;this[_0x5ed041(0x108)](_0x5ed041(0x14b),_0x408f26[_0x5ed041(0x14a)][_0x5ed041(0x100)]);}),_0x152813;}[_0x5cd6b7(0x134)](){const _0x2b7406=_0x5cd6b7,_0x253136=new _o(this[_0x2b7406(0xfc)]);return _0x253136[_0x2b7406(0x11c)](_0x2b7406(0x10b))['to'](this,_0x2b7406(0x12f),_0x46bc93=>_0x46bc93??''),_0x253136[_0x2b7406(0x11c)](_0x2b7406(0x11e))['to'](this,_0x2b7406(0xfb),_0x107337=>_0x2b7406(0x112)===_0x107337),_0x253136;}}class ko extends _0x505566{constructor(_0x2da14f,_0x1608d0){const _0xa52615=_0x5cd6b7;super();const _0x420f6c=this[_0xa52615(0xf6)],_0x5b6e7c=this[_0xa52615(0x123)]();this[_0xa52615(0x137)]({'tag':_0xa52615(0x11d),'attributes':{'class':['ck',_0xa52615(0x10a)],'style':_0x420f6c['to'](_0xa52615(0x105)),'id':_0x420f6c['to']('id')},'children':[{'tag':_0xa52615(0x11d),'attributes':{'class':[el]},'children':[{'text':_0x420f6c['to'](_0xa52615(0x10b))}]},{'tag':_0xa52615(0x11d),'attributes':{'class':[il]},'children':[{'tag':_0xa52615(0x12d),'children':[{'text':_0x1608d0[_0xa52615(0xec)]}]}]},{'tag':_0xa52615(0x11d),'attributes':{'class':[sl]},'children':_0x5b6e7c}]}),_0x5b6e7c[_0xa52615(0x103)](this[_0xa52615(0xea)](_0x2da14f,_0x470eb4,_0xa52615(0x120),_0x1608d0[_0xa52615(0xf8)][_0xa52615(0x139)]?.[_0xa52615(0x109)]??!0x1)),_0x5b6e7c[_0xa52615(0x103)](this[_0xa52615(0xea)](_0x2da14f,_0x5b4395,_0xa52615(0xf2),_0x1608d0[_0xa52615(0xf8)][_0xa52615(0x131)]?.[_0xa52615(0x109)]??!0x1));}[_0x5cd6b7(0xea)](_0x5c5af7,_0x41edf,_0x396006,_0x213d6c){const _0x2ad6f8=_0x5cd6b7,_0x15ed3e=new _0xf95e4f();_0x15ed3e[_0x2ad6f8(0xfa)]=_0x41edf;const _0x3b4488=new _0x460f8a(_0x5c5af7);_0x3b4488[_0x2ad6f8(0x137)]({'tag':_0x2ad6f8(0x12d),'children':[{'text':_0x3caed9(_0x5c5af7,_0x396006)+':\x20'}]});const _0xd406d6=new _0x460f8a(_0x5c5af7);return _0xd406d6[_0x2ad6f8(0x137)]({'tag':_0x2ad6f8(0x12d),'children':[{'text':_0x3caed9(_0x5c5af7,_0x213d6c?_0x2ad6f8(0x124):_0x2ad6f8(0xef))}]}),[_0x15ed3e,_0x3b4488,_0xd406d6];}}class _o extends _0x460f8a{constructor(_0x3e36fb){const _0x51645c=_0x5cd6b7;super(_0x3e36fb),this[_0x51645c(0x12e)](_0x51645c(0x10b),void 0x0),this[_0x51645c(0x12e)](_0x51645c(0x11e),!0x0);const _0x4f11e0=this[_0x51645c(0xf6)];this[_0x51645c(0x137)]({'tag':_0x51645c(0x12d),'attributes':{'class':['ck',_0x51645c(0x13a),_0x4f11e0['if'](_0x51645c(0x11e),_0x51645c(0x121),_0x494986=>!_0x494986)]},'children':[{'text':_0x4f11e0['to'](_0x51645c(0x10b))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x46a6(){const _0x44a22e=['isEmpty','queryView','fire','MAX_ROWS','16444FbpCeI','maxRows','submit','_createSubmitButton','ck-ai-chat__prompt-input','MIN_ROWS','left','2203940uzlDIr','destroy','bind','76HoJAdw','11302497GmqMll','enter','isEnabled','_queryViewResizeObserver','style','window','target','focusableChildren','AI_CHAT_LABEL_SUBMIT','setPlaceholderText','set','right','submitButtonView','setIsUploadInProgress','calc(','5886ZxdxKu','requestAnimationFrame','uiLanguageDirection','_setUpAddContextButtonPositioning','placeholder','ck-ai-chat__prompt-submit-button','8106040zoWJtn','keystrokes','render','add','errorText','trim','px\x20-\x20var(--ck-spacing-tiny))','isUploadInProgress','42599220olDcgl','extendTemplate','11XhBHvo','classList','remove','897ePMpBT','_addContextButtonView','reset','locale','focus','element','34638GTWcUe','fieldWrapperChildren','ck-ai-chat__prompt-input_highlighted','rtl','hasError','1570zfrRRi','AI_CHAT_PROMPT_EMPTY_ERROR','width','fieldView','excludeScrollbarsAndBorders','value','execute','sendUserMessage','7yvAJms','minRows','update','contains'];_0x46a6=function(){return _0x44a22e;};return _0x46a6();}const _0x4a6345=_0x3768;(function(_0x146256,_0x5edee6){const _0x514a4c=_0x3768,_0x211b2d=_0x146256();while(!![]){try{const _0x3d3fbc=parseInt(_0x514a4c(0x1d8))/0x1*(-parseInt(_0x514a4c(0x201))/0x2)+-parseInt(_0x514a4c(0x1fb))/0x3*(parseInt(_0x514a4c(0x1ce))/0x4)+-parseInt(_0x514a4c(0x1be))/0x5*(parseInt(_0x514a4c(0x1e8))/0x6)+-parseInt(_0x514a4c(0x1c6))/0x7*(parseInt(_0x514a4c(0x1ee))/0x8)+parseInt(_0x514a4c(0x1d9))/0x9+parseInt(_0x514a4c(0x1d5))/0xa*(-parseInt(_0x514a4c(0x1f8))/0xb)+parseInt(_0x514a4c(0x1f6))/0xc;if(_0x3d3fbc===_0x5edee6)break;else _0x211b2d['push'](_0x211b2d['shift']());}catch(_0x2e35b5){_0x211b2d['push'](_0x211b2d['shift']());}}}(_0x46a6,0xaf73c));function _0x3768(_0x2e43e3,_0xc99299){const _0x46a655=_0x46a6();return _0x3768=function(_0x376880,_0x24422f){_0x376880=_0x376880-0x1bb;let _0x2f0ed3=_0x46a655[_0x376880];return _0x2f0ed3;},_0x3768(_0x2e43e3,_0xc99299);}import{IconSubmit as _0x3d1b97}from'ckeditor5/src/icons.js';import{ButtonView as _0xdf4cf3,AutocompleteView as _0x18a513,createLabeledTextarea as _0x2d1c3d}from'ckeditor5/src/ui.js';import{global as _0x2a8ca8,isVisible as _0x28f330,Rect as _0x5764d9,ResizeObserver as _0x267f49}from'ckeditor5/src/utils.js';import{getTranslation as _0x16e61f}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x4e9421}from'./aichatpromptsuggestionslistview.js';import{escape as _0x340e17}from'es-toolkit/compat';const ah=_0x4a6345(0x1bb);export class AIChatPromptInputView extends _0x18a513{[_0x4a6345(0x1e5)];static [_0x4a6345(0x1d3)]=0x1;static [_0x4a6345(0x1cd)]=0xc;[_0x4a6345(0x1fc)];[_0x4a6345(0x1dc)];constructor(_0x6b5fa2,_0x3deea5){const _0xce59f6=_0x4a6345;super(_0x6b5fa2,{'queryView':{'label':'','creator':_0x2d1c3d,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x4e9421(_0x6b5fa2),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0xce59f6(0x1e3)](_0xce59f6(0x1ca),!0x0),this[_0xce59f6(0x1e3)](_0xce59f6(0x1f5),!0x1),this[_0xce59f6(0x1fc)]=_0x3deea5,this[_0xce59f6(0x1dc)]=null,this[_0xce59f6(0x1cb)][_0xce59f6(0x1c1)][_0xce59f6(0x1c7)]=AIChatPromptInputView[_0xce59f6(0x1d3)],this[_0xce59f6(0x1cb)][_0xce59f6(0x1c1)][_0xce59f6(0x1cf)]=AIChatPromptInputView[_0xce59f6(0x1cd)],this[_0xce59f6(0x1cb)][_0xce59f6(0x202)][_0xce59f6(0x1f1)](this[_0xce59f6(0x1fc)]),this[_0xce59f6(0x1eb)](),this[_0xce59f6(0x1f7)]({'attributes':{'class':['ck',_0xce59f6(0x1d2)]}}),this[_0xce59f6(0x1e5)]=this[_0xce59f6(0x1d1)](),this[_0xce59f6(0x1e5)][_0xce59f6(0x1d7)](_0xce59f6(0x1db))['to'](this,_0xce59f6(0x1ca),this,_0xce59f6(0x1f5),(_0x3ae2bf,_0x35b873)=>!_0x3ae2bf&&!_0x35b873),this[_0xce59f6(0x1e0)][_0xce59f6(0x1f1)](this[_0xce59f6(0x1e5)]);}[_0x4a6345(0x1f0)](){const _0x358fd5=_0x4a6345;super[_0x358fd5(0x1f0)](),this[_0x358fd5(0x1cb)][_0x358fd5(0x202)][_0x358fd5(0x1f1)](this[_0x358fd5(0x1e5)]),this[_0x358fd5(0x1ef)][_0x358fd5(0x1e3)](_0x358fd5(0x1da),(_0x1d50df,_0x599371)=>{const _0x1a6c10=_0x358fd5;this[_0x1a6c10(0x1f5)]||this[_0x1a6c10(0x1ca)]||_0x1d50df[_0x1a6c10(0x1df)]==this[_0x1a6c10(0x1cb)][_0x1a6c10(0x1c1)][_0x1a6c10(0x200)]&&(this[_0x1a6c10(0x1d0)](),_0x599371());}),this[_0x358fd5(0x1cb)][_0x358fd5(0x1c1)]['on'](_0x358fd5(0x1c8),()=>{const _0x495f9c=_0x358fd5;this[_0x495f9c(0x1ca)]=''===this[_0x495f9c(0x1cb)][_0x495f9c(0x1c1)][_0x495f9c(0x200)][_0x495f9c(0x1c3)]?.[_0x495f9c(0x1f3)]();});}[_0x4a6345(0x1d6)](){const _0x35d5ac=_0x4a6345;super[_0x35d5ac(0x1d6)](),this[_0x35d5ac(0x1dc)]&&this[_0x35d5ac(0x1dc)][_0x35d5ac(0x1d6)]();}[_0x4a6345(0x1d0)](){const _0x2639b7=_0x4a6345,_0x52d4f0=this[_0x2639b7(0x1cb)][_0x2639b7(0x1c1)][_0x2639b7(0x200)][_0x2639b7(0x1c3)]?.[_0x2639b7(0x1f3)]();if(!_0x52d4f0)return this[_0x2639b7(0x1cb)][_0x2639b7(0x1f2)]=_0x16e61f(this[_0x2639b7(0x1fe)],_0x2639b7(0x1bf)),void(this[_0x2639b7(0x1cb)][_0x2639b7(0x1c1)][_0x2639b7(0x1bd)]=!0x0);this[_0x2639b7(0x1cb)][_0x2639b7(0x1c1)][_0x2639b7(0x1bd)]=!0x1;const _0x38dd70=_0x340e17(_0x52d4f0);this[_0x2639b7(0x1cc)](_0x2639b7(0x1c5),_0x38dd70),this[_0x2639b7(0x1cb)][_0x2639b7(0x1c1)][_0x2639b7(0x1fd)]();}[_0x4a6345(0x1e2)](_0x145cfc){const _0x800fc2=_0x4a6345;this[_0x800fc2(0x1cb)][_0x800fc2(0x1c1)][_0x800fc2(0x1e3)](_0x800fc2(0x1ec),_0x145cfc);}[_0x4a6345(0x1ff)](_0x2b7106=!0x1){const _0x503c48=_0x4a6345;super[_0x503c48(0x1ff)](),_0x2b7106&&(this[_0x503c48(0x200)][_0x503c48(0x1f9)][_0x503c48(0x1c9)](ah)||(this[_0x503c48(0x200)][_0x503c48(0x1f9)][_0x503c48(0x1f1)](ah),setTimeout(()=>{const _0x52ab3e=_0x503c48;this[_0x52ab3e(0x200)][_0x52ab3e(0x1f9)][_0x52ab3e(0x1fa)](ah);},0x320)));}[_0x4a6345(0x1d1)](){const _0x5c5700=_0x4a6345,_0x4fef1a=new _0xdf4cf3(this[_0x5c5700(0x1fe)]);return _0x4fef1a[_0x5c5700(0x1e3)]({'icon':_0x3d1b97,'label':_0x16e61f(this[_0x5c5700(0x1fe)],_0x5c5700(0x1e1)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x5c5700(0x1ed),'isEnabled':!0x1}),_0x4fef1a['on'](_0x5c5700(0x1c4),()=>{const _0x172e07=_0x5c5700;this[_0x172e07(0x1d0)]();}),_0x4fef1a;}[_0x4a6345(0x1e6)](_0x4aa5fb){const _0x2777df=_0x4a6345;this[_0x2777df(0x1f5)]=_0x4aa5fb;}[_0x4a6345(0x1eb)](){const _0xbf13c6=_0x4a6345,_0x4ba447=this[_0xbf13c6(0x1fe)],_0x140f7f=()=>{const _0xd3bb5f=_0xbf13c6;_0x2a8ca8[_0xd3bb5f(0x1de)][_0xd3bb5f(0x1e9)](()=>{const _0x22fe71=_0xd3bb5f;if(_0x28f330(this[_0x22fe71(0x200)])){const _0x14d185=new _0x5764d9(this[_0x22fe71(0x1cb)][_0x22fe71(0x1c1)][_0x22fe71(0x200)]),_0x3455cc=new _0x5764d9(this[_0x22fe71(0x1fc)][_0x22fe71(0x200)]),_0x4b127c=_0x14d185[_0x22fe71(0x1c0)],_0x271765=_0x22fe71(0x1bc)===_0x4ba447[_0x22fe71(0x1ea)]?_0x22fe71(0x1e4):_0x22fe71(0x1d4);_0x14d185[_0x22fe71(0x1c2)]();const _0x59908a=_0x4b127c-_0x14d185[_0x22fe71(0x1c0)]+0x1;this[_0x22fe71(0x1fc)][_0x22fe71(0x200)][_0x22fe71(0x1dd)][_0x271765]=_0x22fe71(0x1e7)+(_0x4b127c-_0x3455cc[_0x22fe71(0x1c0)]-_0x59908a)+_0x22fe71(0x1f4);}});};this[_0xbf13c6(0x1cb)][_0xbf13c6(0x1c1)]['on'](_0xbf13c6(0x1c8),_0x140f7f),this['on'](_0xbf13c6(0x1f0),()=>{const _0x483a0c=_0xbf13c6;_0x140f7f(),this[_0x483a0c(0x1dc)]=new _0x267f49(this[_0x483a0c(0x1cb)][_0x483a0c(0x1c1)][_0x483a0c(0x200)],()=>{_0x140f7f();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36a381=_0x48ed;function _0x48ed(_0x19a504,_0x11cc3b){const _0x1cf66e=_0x1cf6();return _0x48ed=function(_0x48ed16,_0x36395b){_0x48ed16=_0x48ed16-0x68;let _0x215eb0=_0x1cf66e[_0x48ed16];return _0x215eb0;},_0x48ed(_0x19a504,_0x11cc3b);}(function(_0x165404,_0x450989){const _0x307b39=_0x48ed,_0x4a4acf=_0x165404();while(!![]){try{const _0x1e085b=-parseInt(_0x307b39(0x87))/0x1*(parseInt(_0x307b39(0x76))/0x2)+-parseInt(_0x307b39(0x71))/0x3+-parseInt(_0x307b39(0x8e))/0x4+parseInt(_0x307b39(0x6b))/0x5*(parseInt(_0x307b39(0x8c))/0x6)+-parseInt(_0x307b39(0x72))/0x7+-parseInt(_0x307b39(0x8b))/0x8+parseInt(_0x307b39(0x78))/0x9;if(_0x1e085b===_0x450989)break;else _0x4a4acf['push'](_0x4a4acf['shift']());}catch(_0x4851a7){_0x4a4acf['push'](_0x4a4acf['shift']());}}}(_0x1cf6,0xe338b));import{View as _0x3b2f1c,ViewCollection as _0x1b5440}from'ckeditor5/src/ui.js';import{uid as _0x13cae5}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x4952c3}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x34d66f}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x39e891,SKELETON_DEFINITIONS as _0x10e4aa}from'../../../../aicore/ui/aiskeleton.js';function _0x1cf6(){const _0x111783=['53878869KSCwIb','add','search','aiChatResources','length','setResources','_createSearchView','_searchView','fire','_searchSection','highlightText','_latestLoadResourcesUid','render','extendTemplate','_resourcesListView','10456WDPtZj','has','source','getQuery','14007464qxJPDq','60CJmDEn','ck-ai-chat-resources','3665948MQtEDg','div','_searchInputVisibleFrom','_createResourcesListView','loadResources','ck\x20ck-search','bindTemplate','_skeletonLoader','setTemplate','set','_createSearchSection','children','useDefaultFiltering','locale','587505njStHK','searchInputVisibleFrom','isLoading','addResourceToContext','_createSkeletonView','updateResourceState','3952431DlBcby','7890141mCLVIm','_source','loadSourceResources','ck-hidden','214wmxhvV','delegate'];_0x1cf6=function(){return _0x111783;};return _0x1cf6();}export class AIChatContextResourcesView extends _0x3b2f1c{[_0x36a381(0x7f)];[_0x36a381(0x81)];[_0x36a381(0x90)];[_0x36a381(0x86)];[_0x36a381(0x95)];[_0x36a381(0x73)];[_0x36a381(0x68)];[_0x36a381(0x83)]=null;constructor(_0x3780c8,_0x5d6ea0){const _0x4acf5e=_0x36a381;super(_0x3780c8),this[_0x4acf5e(0x73)]=_0x5d6ea0[_0x4acf5e(0x89)],this[_0x4acf5e(0x90)]=_0x5d6ea0[_0x4acf5e(0x6c)]??0x7,this[_0x4acf5e(0x97)](_0x4acf5e(0x6d),!0x0),this[_0x4acf5e(0x7f)]=this[_0x4acf5e(0x7e)](),this[_0x4acf5e(0x81)]=this[_0x4acf5e(0x98)](),this[_0x4acf5e(0x86)]=this[_0x4acf5e(0x91)](),this[_0x4acf5e(0x95)]=this[_0x4acf5e(0x6f)](),this[_0x4acf5e(0x68)]=new _0x1b5440([this[_0x4acf5e(0x95)],this[_0x4acf5e(0x86)]]),this[_0x4acf5e(0x96)]({'tag':_0x4acf5e(0x8f),'attributes':{'class':_0x4acf5e(0x8d)},'children':this[_0x4acf5e(0x68)]});}[_0x36a381(0x7e)](){const _0x313ee4=_0x36a381;return new _0x34d66f(this[_0x313ee4(0x6a)]);}[_0x36a381(0x98)](){const _0x769b54=_0x36a381,_0x24fc98=new _0x3b2f1c(this[_0x769b54(0x6a)]);return _0x24fc98[_0x769b54(0x96)]({'tag':_0x769b54(0x8f),'attributes':{'class':_0x769b54(0x93)},'children':[this[_0x769b54(0x7f)]]}),this[_0x769b54(0x7f)]['on'](_0x769b54(0x7a),(_0x41f1ab,_0x57bd64)=>{const _0x2d4252=_0x769b54;this[_0x2d4252(0x92)](_0x57bd64),this[_0x2d4252(0x73)][_0x2d4252(0x69)]&&this[_0x2d4252(0x86)][_0x2d4252(0x82)](_0x57bd64);}),_0x24fc98;}[_0x36a381(0x91)](){const _0x54c15a=_0x36a381,_0x337829=new _0x4952c3(this[_0x54c15a(0x6a)],this[_0x54c15a(0x73)]);return _0x337829[_0x54c15a(0x77)](_0x54c15a(0x6e))['to'](this),_0x337829[_0x54c15a(0x85)]({'attributes':{'class':this[_0x54c15a(0x94)]['if'](_0x54c15a(0x6d),_0x54c15a(0x75))}}),_0x337829;}[_0x36a381(0x6f)](){const _0x1f7c54=_0x36a381,_0x1ab081=new _0x39e891(this[_0x1f7c54(0x6a)],_0x10e4aa[_0x1f7c54(0x7b)]);return _0x1ab081[_0x1f7c54(0x85)]({'attributes':{'class':[this[_0x1f7c54(0x94)]['if'](_0x1f7c54(0x6d),_0x1f7c54(0x75),_0x5da145=>!_0x5da145)]}}),_0x1ab081;}[_0x36a381(0x84)](){const _0x26cab5=_0x36a381;super[_0x26cab5(0x84)](),this[_0x26cab5(0x92)]('');}[_0x36a381(0x92)](_0x6dc89d){const _0x2de391=_0x36a381,_0x5b5799=_0x13cae5();this[_0x2de391(0x83)]=_0x5b5799,this[_0x2de391(0x80)](_0x2de391(0x74),{'sourceId':this[_0x2de391(0x73)]['id'],'query':_0x6dc89d,'uid':_0x5b5799}),this[_0x2de391(0x6d)]=!0x0;}[_0x36a381(0x7d)](_0x5310ce,_0x24cfb8){const _0x31c288=_0x36a381;if(_0x24cfb8&&_0x24cfb8!==this[_0x31c288(0x83)])return;const _0x292b09=this[_0x31c288(0x73)][_0x31c288(0x69)]?this[_0x31c288(0x7f)][_0x31c288(0x8a)]():'';this[_0x31c288(0x86)][_0x31c288(0x7d)](_0x5310ce,_0x292b09),_0x5310ce[_0x31c288(0x7c)]>=this[_0x31c288(0x90)]&&!this[_0x31c288(0x68)][_0x31c288(0x88)](this[_0x31c288(0x81)])&&this[_0x31c288(0x68)][_0x31c288(0x79)](this[_0x31c288(0x81)],0x0),requestAnimationFrame(()=>{const _0xfb5cfd=_0x31c288;this[_0xfb5cfd(0x6d)]=!0x1;});}[_0x36a381(0x70)](_0x42eb6b,_0x22c13f){const _0x58931d=_0x36a381;this[_0x58931d(0x86)][_0x58931d(0x70)](_0x42eb6b,_0x22c13f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcd78b5=_0x108c;(function(_0x2492b5,_0x27c866){const _0x117836=_0x108c,_0x4682c0=_0x2492b5();while(!![]){try{const _0x3da835=-parseInt(_0x117836(0x1ac))/0x1*(-parseInt(_0x117836(0x1a1))/0x2)+parseInt(_0x117836(0x17b))/0x3*(parseInt(_0x117836(0x174))/0x4)+parseInt(_0x117836(0x176))/0x5*(parseInt(_0x117836(0x184))/0x6)+-parseInt(_0x117836(0x1af))/0x7+parseInt(_0x117836(0x196))/0x8+-parseInt(_0x117836(0x1a3))/0x9*(-parseInt(_0x117836(0x180))/0xa)+-parseInt(_0x117836(0x178))/0xb;if(_0x3da835===_0x27c866)break;else _0x4682c0['push'](_0x4682c0['shift']());}catch(_0x438fd8){_0x4682c0['push'](_0x4682c0['shift']());}}}(_0x39b2,0x9910c));import{BalloonPanelView as _0x545496,ButtonView as _0x9dda9e,clickOutsideHandler as _0x238819,FormHeaderView as _0x12ccbb}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x5e4c8e}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1242db}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x2ab9a9}from'./aichatcontextresourcesview.js';function _0x108c(_0x2c6304,_0x51a533){const _0x39b20c=_0x39b2();return _0x108c=function(_0x108c18,_0x46e2da){_0x108c18=_0x108c18-0x172;let _0x1d2ad2=_0x39b20c[_0x108c18];return _0x1d2ad2;},_0x108c(_0x2c6304,_0x51a533);}const Bc=_0xcd78b5(0x181),_c=_0xcd78b5(0x17d),mc=_0xcd78b5(0x198);function _0x39b2(){const _0x5c066f=['addResourceToContext','onBackToContext','children','delete','set','values','resource','_sourceResourceBalloons','clear','2462208yuZBVi','element','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','_createBackButton','isAnyResourceBalloonVisible','onLoadSourceResources','populateSourceResourceBalloon','content','closeSourceResourceBalloon','_addSourceResourceContent','change:isLoading','3948NlKKNR','updateResourceState','36osUUBa','add','getTargetElement','loadSourceResources','_locale','_createSourceResourceBalloonPanel','onBalloonClosed','_bodyCollection','get','257wKQwfK','isVisible','extendTemplate','5483499MlVgFD','once','source','4hVUFBe','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','75685pZuAjc','hide','8821956RmbijM','showSourceResourcesBalloon','getLimiterElement','1888755sgeHdQ','onResourceSelected','ck-button-icon\x20ck-button-back','_createBalloonHeader','label','178320wkMFVk','ck-ai-chat-context-controls__source-balloon-panel','pin','searchInputVisibleFrom','276UzmwUq','_createBalloonResourcesView','_getResourcesViewFromBalloon','setResources','destroy','_config','_setupSingleResourceBalloonClickOutsideHandler','execute','show'];_0x39b2=function(){return _0x5c066f;};return _0x39b2();}export class AIChatResourcesBalloonView{[_0xcd78b5(0x194)]=new Map();[_0xcd78b5(0x1aa)];[_0xcd78b5(0x1a7)];[_0xcd78b5(0x189)];constructor(_0x247fc2,_0x419386,_0x24ea77){const _0x400a67=_0xcd78b5;this[_0x400a67(0x1a7)]=_0x247fc2,this[_0x400a67(0x1aa)]=_0x419386,this[_0x400a67(0x189)]=_0x24ea77;}[_0xcd78b5(0x179)]({source:_0x4eb625,withBackButton:_0xf6f61f}){const _0x355390=_0xcd78b5;let _0x525f75=this[_0x355390(0x194)][_0x355390(0x1ab)](_0x4eb625['id']);_0x525f75||(_0x525f75=this[_0x355390(0x1a8)](),this[_0x355390(0x194)][_0x355390(0x191)](_0x4eb625['id'],_0x525f75),this[_0x355390(0x18a)](_0x525f75)),this[_0x355390(0x19f)]({'balloonPanel':_0x525f75,'source':_0x4eb625,'withBackButton':_0xf6f61f}),_0x525f75[_0x355390(0x18c)]();const _0xd81e5b=this[_0x355390(0x189)][_0x355390(0x1a5)]();_0xd81e5b&&_0x525f75[_0x355390(0x182)]({'target':_0xd81e5b,'limiter':this[_0x355390(0x189)][_0x355390(0x17a)]()});}[_0xcd78b5(0x19c)](_0x52345e,_0x33404b,_0x4b75d6){const _0x19f019=_0xcd78b5,_0x5c9e26=this[_0x19f019(0x194)][_0x19f019(0x1ab)](_0x52345e);if(!_0x5c9e26)return;const _0x4a26a9=this[_0x19f019(0x186)](_0x5c9e26);_0x4a26a9&&(_0x4a26a9[_0x19f019(0x187)](_0x33404b,_0x4b75d6),_0x4a26a9[_0x19f019(0x172)](_0x19f019(0x1a0),()=>{const _0xf0c2a8=_0x19f019;_0x5c9e26[_0xf0c2a8(0x182)]({'target':this[_0xf0c2a8(0x189)][_0xf0c2a8(0x1a5)](),'limiter':this[_0xf0c2a8(0x189)][_0xf0c2a8(0x17a)]()});}));}[_0xcd78b5(0x19e)](_0x3be9e8){const _0x4552a9=_0xcd78b5,_0x514a7f=this[_0x4552a9(0x194)][_0x4552a9(0x1ab)](_0x3be9e8);_0x514a7f&&requestAnimationFrame(()=>{const _0x198311=_0x4552a9;_0x514a7f[_0x198311(0x177)](),this[_0x198311(0x194)][_0x198311(0x190)](_0x3be9e8),this[_0x198311(0x189)][_0x198311(0x1a9)]();});}[_0xcd78b5(0x19a)](){const _0x58927e=_0xcd78b5;for(const _0x2f287b of this[_0x58927e(0x194)][_0x58927e(0x192)]())if(_0x2f287b[_0x58927e(0x1ad)])return!0x0;return!0x1;}[_0xcd78b5(0x1a2)](_0x228fe9,_0x23a2e1,_0x475d2e){const _0x7e50b9=_0xcd78b5,_0x13a4ea=this[_0x7e50b9(0x194)][_0x7e50b9(0x1ab)](_0x228fe9);if(!_0x13a4ea||!_0x13a4ea[_0x7e50b9(0x1ad)])return;const _0xed0daf=this[_0x7e50b9(0x189)][_0x7e50b9(0x1a5)]();if(!_0xed0daf)return;_0x13a4ea[_0x7e50b9(0x182)]({'target':_0xed0daf,'limiter':this[_0x7e50b9(0x189)][_0x7e50b9(0x17a)]()});const _0x462e6c=this[_0x7e50b9(0x186)](_0x13a4ea);_0x462e6c&&_0x462e6c[_0x7e50b9(0x1a2)](_0x23a2e1,_0x475d2e);}[_0xcd78b5(0x188)](){const _0x28d99b=_0xcd78b5;for(const _0x3330c2 of this[_0x28d99b(0x194)][_0x28d99b(0x192)]())_0x3330c2[_0x28d99b(0x188)]();this[_0x28d99b(0x194)][_0x28d99b(0x195)]();}[_0xcd78b5(0x1a8)](){const _0x1b3568=_0xcd78b5,_0x3a0b1e=new _0x545496(this[_0x1b3568(0x1a7)]);return _0x3a0b1e[_0x1b3568(0x1ae)]({'attributes':{'class':Bc}}),this[_0x1b3568(0x1aa)][_0x1b3568(0x1a4)](_0x3a0b1e),_0x3a0b1e;}[_0xcd78b5(0x19f)]({balloonPanel:_0x4c2b98,source:_0x4946f2,withBackButton:_0x428bde}){const _0x1aaaf6=_0xcd78b5;_0x4c2b98[_0x1aaaf6(0x19d)][_0x1aaaf6(0x195)]();const _0x3df6e3=this[_0x1aaaf6(0x17e)]({'balloonPanel':_0x4c2b98,'source':_0x4946f2,'withBackButton':_0x428bde});_0x4c2b98[_0x1aaaf6(0x19d)][_0x1aaaf6(0x1a4)](_0x3df6e3);const _0x3af4fc=this[_0x1aaaf6(0x185)](_0x4946f2);_0x4c2b98[_0x1aaaf6(0x19d)][_0x1aaaf6(0x1a4)](_0x3af4fc);}[_0xcd78b5(0x17e)]({balloonPanel:_0x54a1d2,source:_0x56aa65,withBackButton:_0x3027b3}){const _0x1963c3=_0xcd78b5,_0x4c0a08=new _0x12ccbb(this[_0x1963c3(0x1a7)],{'label':_0x56aa65[_0x1963c3(0x17f)],'class':mc});return _0x3027b3&&_0x4c0a08[_0x1963c3(0x18f)][_0x1963c3(0x1a4)](this[_0x1963c3(0x199)](_0x54a1d2),0x0),_0x4c0a08;}[_0xcd78b5(0x199)](_0x5bd11f){const _0x3a0cba=_0xcd78b5,_0x4be8ae=new _0x9dda9e(this[_0x3a0cba(0x1a7)]);return _0x4be8ae[_0x3a0cba(0x191)]({'icon':_0x5e4c8e,'tooltip':_0x1242db(this[_0x3a0cba(0x1a7)],_0x3a0cba(0x175)),'tooltipPosition':'n','class':_c}),_0x4be8ae['on'](_0x3a0cba(0x18b),()=>{const _0x151638=_0x3a0cba;_0x5bd11f[_0x151638(0x177)](),this[_0x151638(0x189)][_0x151638(0x18e)]();}),_0x4be8ae;}[_0xcd78b5(0x185)](_0x3a8541){const _0x3b5408=_0xcd78b5,_0x25a875=new _0x2ab9a9(this[_0x3b5408(0x1a7)],{'source':_0x3a8541,'searchInputVisibleFrom':this[_0x3b5408(0x189)][_0x3b5408(0x183)]});return _0x25a875['on'](_0x3b5408(0x1a6),(_0x3ec536,_0x2e8ea6)=>{const _0x153800=_0x3b5408;this[_0x153800(0x189)][_0x153800(0x19b)](_0x2e8ea6);}),_0x25a875['on'](_0x3b5408(0x18d),(_0x30e839,_0x3aaf3b)=>{const _0x4adfbf=_0x3b5408;this[_0x4adfbf(0x189)][_0x4adfbf(0x17c)](_0x3aaf3b[_0x4adfbf(0x173)],_0x3aaf3b[_0x4adfbf(0x193)]),this[_0x4adfbf(0x19e)](_0x3a8541['id']);}),_0x25a875;}[_0xcd78b5(0x186)](_0x178d55){const _0x307e54=_0xcd78b5,_0x3b3be5=_0x178d55[_0x307e54(0x19d)][_0x307e54(0x1ab)](0x1);return _0x3b3be5 instanceof _0x2ab9a9?_0x3b3be5:null;}[_0xcd78b5(0x18a)](_0x2aa1dd){const _0x190b89=_0xcd78b5;_0x238819({'emitter':_0x2aa1dd,'contextElements':[_0x2aa1dd[_0x190b89(0x197)]],'callback':()=>{const _0x490d04=_0x190b89;_0x2aa1dd[_0x490d04(0x177)](),this[_0x490d04(0x189)][_0x490d04(0x1a9)]();},'activator':()=>_0x2aa1dd[_0x190b89(0x1ad)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x1e8e5c,IconView as _0x1c1bef,LabeledFieldView as _0x259a81,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x476609,IconCancel as _0xea1348}from'ckeditor5/src/icons.js';import{getTranslation as _0x16722e}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x259a81{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x156a0e){const t=_0x156a0e['t'],_0x1bddde={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x16722e(_0x156a0e,'AI_CHAT_SEARCH_RESOURCES')};super(_0x156a0e,_0x1bddde['creator']),this['label']=_0x1bddde['label'],this['_viewConfig']=_0x1bddde,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x156a0e,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x4108fb){this['fire']('search',_0x4108fb);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x1c1bef(),this['iconView']['content']=_0x476609,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x114f6d,t){this['resetButtonView']=new _0x1e8e5c(_0x114f6d),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0xea1348,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x266870=>!_0x266870),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
|