@ckeditor/ckeditor5-ai 47.0.0-alpha.8 → 47.0.0-alpha.9
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 +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +197 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +30 -0
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +1 -0
- 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.d.ts +49 -0
- 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/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.d.ts +14 -0
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1aa33a=_0x20b8;function _0x51ad(){const _0x1ed277=['_createShowMoreBalloonPanelView','right','innerWidth','_distributeChips','hideBalloonPanel','innerHeight','filter','undefined','position','isOn','_config','_makeAncestorsVisible','_updateBalloonContent','_checkAndHandleOverflow','absolute','300px','ck-calculation-container','remove','pin','48917270icOohp','div','body','createElement','children','clientHeight','toLowerCase','_renderChipsAndCountRows','isVisible','display','opacity','width','render','includes','calculationContainer','_visibleChips','_pendingCalculation','querySelector','_applyCalculationStyles','5176736KXgMsx','pop','push','clientWidth','isIntersecting','overflowChips','_createMockButton','add','disableAnimationOnEnter','button','destroy','extendTemplate','66VqgYRX','_createShowMoreButton','getBoundingClientRect','overflowContainer','visibility','from','length','documentElement','2759973QlXgMf','style','setTemplate','content','abs','_testButtonFit','-9999px','border-box','top','_bodyCollection','parentElement','_calculateContainerWidth','showMoreBalloon','8UwNOQR','setContainerElement','none','zIndex','_createShowMoreButtonView','.ck-ai-chat','disconnect','50906ngIYDa','show','_showMoreBalloonPanelView','showMoreButtonView','isConnected','showMoreButton','showMoreLabelPrefix','5tkBlCf','0px','rowDetectionTolerance','_ancestorsToRestore','innerHTML','block','_applyOverflowResults','_restoreAncestorVisibility','offsetWidth','maxVisibleRows','_createCalculationContainer','appendChild','_repinBalloonPanel','reorganizeChips','_locale','7891245hKIPrh','_findTargetContainer','visible','className','_targetContainer','_handleShowMoreButtonClick','pointerEvents','_showMoreButtonView','hidden','50px','slice','clear','height','11ikiOBX','_createContainerElements','left','textContent','_isContainerVisible','boxSizing','_parentView','forEach','2242632lDFlcv','+\x201','hide','block\x20!important','cssClasses','4187750eJDXzA','element','some','auto','_containerElement','_updateOverflowUI','bottom','observe','tagName','visible\x20!important','cloneNode','controlsButton','classList','showBalloonPanel','label','_calculateOverflowInContainer','_updateShowMoreButtonVisibility','execute','getComputedStyle','_setupVisibilityObserver','_intersectionObserver','_overflowChips','set'];_0x51ad=function(){return _0x1ed277;};return _0x51ad();}(function(_0x1e57c2,_0x4a7eb0){const _0x466b85=_0x20b8,_0x481cb0=_0x1e57c2();while(!![]){try{const _0xe06e19=parseInt(_0x466b85(0x1c6))/0x1*(-parseInt(_0x466b85(0x1e2))/0x2)+-parseInt(_0x466b85(0x1ce))/0x3+parseInt(_0x466b85(0x1ba))/0x4*(-parseInt(_0x466b85(0x154))/0x5)+-parseInt(_0x466b85(0x178))/0x6+-parseInt(_0x466b85(0x17d))/0x7+-parseInt(_0x466b85(0x1db))/0x8*(-parseInt(_0x466b85(0x163))/0x9)+parseInt(_0x466b85(0x1a7))/0xa*(parseInt(_0x466b85(0x170))/0xb);if(_0xe06e19===_0x4a7eb0)break;else _0x481cb0['push'](_0x481cb0['shift']());}catch(_0x5dc3a7){_0x481cb0['push'](_0x481cb0['shift']());}}}(_0x51ad,0xdc525));import{View as _0x1a43a9,BalloonPanelView as _0x5d2c75,ButtonView as _0x551de0,clickOutsideHandler as _0x18bb58}from'ckeditor5/src/ui.js';import{Collection as _0x1d4733}from'ckeditor5/src/utils.js';function _0x20b8(_0x2b7aef,_0x2a1a45){const _0x51ad2e=_0x51ad();return _0x20b8=function(_0x20b859,_0xd337b){_0x20b859=_0x20b859-0x14f;let _0x3693df=_0x51ad2e[_0x20b859];return _0x3693df;},_0x20b8(_0x2b7aef,_0x2a1a45);}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},wn=_0x1aa33a(0x1a3);export class AIChatChipsOverflowManager{[_0x1aa33a(0x162)];[_0x1aa33a(0x19e)];[_0x1aa33a(0x1b6)];[_0x1aa33a(0x192)];[_0x1aa33a(0x16a)]=null;[_0x1aa33a(0x14f)]=null;[_0x1aa33a(0x181)]=null;[_0x1aa33a(0x1d7)];[_0x1aa33a(0x176)]=null;[_0x1aa33a(0x191)]=null;[_0x1aa33a(0x1b7)]=!0x1;constructor(_0xec398c,_0x5ab587,_0x46f6d3,_0x41e98a,_0x99993b){const _0xee61d5=_0x1aa33a;this[_0xee61d5(0x162)]=_0xec398c,this[_0xee61d5(0x1b6)]=_0x5ab587,this[_0xee61d5(0x19e)]={...hn,..._0x46f6d3,'cssClasses':{'controlsButton':'','calculationContainer':_0xee61d5(0x1a4),..._0x46f6d3[_0xee61d5(0x17c)]}},this[_0xee61d5(0x192)]=new _0x1d4733(),this[_0xee61d5(0x1d7)]=_0x41e98a,this[_0xee61d5(0x176)]=_0x99993b||null;}[_0x1aa33a(0x1dc)](_0x4452db){const _0x3fa08e=_0x1aa33a;this[_0x3fa08e(0x191)]&&(this[_0x3fa08e(0x191)][_0x3fa08e(0x1e1)](),this[_0x3fa08e(0x191)]=null),this[_0x3fa08e(0x181)]=_0x4452db,this[_0x3fa08e(0x190)]();}get[_0x1aa33a(0x150)](){const _0xcbacd=_0x1aa33a;return this[_0xcbacd(0x16a)];}get[_0x1aa33a(0x1bf)](){const _0x3ee463=_0x1aa33a;return this[_0x3ee463(0x192)];}[_0x1aa33a(0x161)](){requestAnimationFrame(()=>{const _0x5d4bf5=_0x20b8;this[_0x5d4bf5(0x1a1)]();});}[_0x1aa33a(0x18a)](){const _0x20dd23=_0x1aa33a;this[_0x20dd23(0x16a)]&&this[_0x20dd23(0x14f)]&&(this[_0x20dd23(0x1a0)](),this[_0x20dd23(0x16a)][_0x20dd23(0x19d)]=!0x0,this[_0x20dd23(0x14f)][_0x20dd23(0x1e3)](),this[_0x20dd23(0x14f)][_0x20dd23(0x1a6)]({'target':this[_0x20dd23(0x16a)][_0x20dd23(0x17e)],'limiter':document[_0x20dd23(0x1b8)](_0x20dd23(0x1e0))}));}[_0x1aa33a(0x198)](){const _0x19bab6=_0x1aa33a;this[_0x19bab6(0x16a)]&&this[_0x19bab6(0x14f)]&&(this[_0x19bab6(0x16a)][_0x19bab6(0x19d)]=!0x1,this[_0x19bab6(0x14f)][_0x19bab6(0x17a)]());}[_0x1aa33a(0x16e)](){const _0x228558=_0x1aa33a;this[_0x228558(0x192)][_0x228558(0x16e)](),this[_0x228558(0x198)](),this[_0x228558(0x18d)](),this[_0x228558(0x16a)]&&(this[_0x228558(0x16a)][_0x228558(0x18b)]=''),this[_0x228558(0x14f)]&&this[_0x228558(0x14f)][_0x228558(0x1d1)][_0x228558(0x16e)]();}[_0x1aa33a(0x1c4)](){const _0x55f04b=_0x1aa33a;this[_0x55f04b(0x191)]&&(this[_0x55f04b(0x191)][_0x55f04b(0x1e1)](),this[_0x55f04b(0x191)]=null),this[_0x55f04b(0x16a)]&&(this[_0x55f04b(0x16a)][_0x55f04b(0x1c4)](),this[_0x55f04b(0x16a)]=null),this[_0x55f04b(0x14f)]&&(this[_0x55f04b(0x14f)][_0x55f04b(0x1c4)](),this[_0x55f04b(0x14f)]=null);}[_0x1aa33a(0x1a1)](){const _0x6b9398=_0x1aa33a;if(!this[_0x6b9398(0x181)])return;if(!this[_0x6b9398(0x174)]())return void(this[_0x6b9398(0x1b7)]=!0x0);this[_0x6b9398(0x1b7)]=!0x1;const _0x194dfd=[...this[_0x6b9398(0x1b6)],...this[_0x6b9398(0x192)]],_0x3b50dc=this[_0x6b9398(0x15e)](),_0x2a5b8f=this[_0x6b9398(0x18c)](_0x3b50dc,_0x194dfd),_0x33b067=_0x3b50dc[_0x6b9398(0x157)];_0x33b067&&this[_0x6b9398(0x15b)](_0x33b067),_0x3b50dc[_0x6b9398(0x1a5)](),this[_0x6b9398(0x15a)](_0x194dfd,_0x2a5b8f);}[_0x1aa33a(0x1c7)](){const _0x40bbd0=_0x1aa33a;this[_0x40bbd0(0x16a)]=this[_0x40bbd0(0x1df)](),this[_0x40bbd0(0x14f)]=this[_0x40bbd0(0x194)](),this[_0x40bbd0(0x16a)][_0x40bbd0(0x1b3)](),this[_0x40bbd0(0x181)][_0x40bbd0(0x15f)](this[_0x40bbd0(0x16a)][_0x40bbd0(0x17e)]),this[_0x40bbd0(0x16a)]['on'](_0x40bbd0(0x18e),()=>{const _0x14e65e=_0x40bbd0;this[_0x14e65e(0x168)]();}),_0x18bb58({'emitter':this[_0x40bbd0(0x14f)],'contextElements':[this[_0x40bbd0(0x14f)][_0x40bbd0(0x17e)],this[_0x40bbd0(0x16a)][_0x40bbd0(0x17e)]],'callback':()=>this[_0x40bbd0(0x198)](),'activator':()=>this[_0x40bbd0(0x16a)][_0x40bbd0(0x19d)]});}[_0x1aa33a(0x1df)](){const _0x4a4c5a=_0x1aa33a,_0x1c1071=new _0x551de0(this[_0x4a4c5a(0x162)]);_0x1c1071[_0x4a4c5a(0x193)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x36d051=[this[_0x4a4c5a(0x19e)][_0x4a4c5a(0x17c)][_0x4a4c5a(0x152)]];return this[_0x4a4c5a(0x19e)][_0x4a4c5a(0x17c)][_0x4a4c5a(0x188)]&&_0x36d051[_0x4a4c5a(0x1bc)](this[_0x4a4c5a(0x19e)][_0x4a4c5a(0x17c)][_0x4a4c5a(0x188)]),_0x1c1071[_0x4a4c5a(0x1c5)]({'attributes':{'class':_0x36d051}}),_0x1c1071;}[_0x1aa33a(0x194)](){const _0x1546e5=_0x1aa33a,_0x567ad5=new _0x5d2c75(this[_0x1546e5(0x162)]);return _0x567ad5[_0x1546e5(0x1c5)]({'attributes':{'class':this[_0x1546e5(0x19e)][_0x1546e5(0x17c)][_0x1546e5(0x1da)]}}),this[_0x1546e5(0x1d7)][_0x1546e5(0x1c1)](_0x567ad5),_0x567ad5;}[_0x1aa33a(0x1a0)](){const _0xd12a3=_0x1aa33a;if(this[_0xd12a3(0x14f)]&&(this[_0xd12a3(0x14f)][_0xd12a3(0x1d1)][_0xd12a3(0x16e)](),this[_0xd12a3(0x192)][_0xd12a3(0x1cc)]>0x0)){this[_0xd12a3(0x192)][_0xd12a3(0x177)](_0x544371=>{const _0x4275d9=_0xd12a3;_0x544371[_0x4275d9(0x1c2)]();});const _0x31515a=new _0x1a43a9(this[_0xd12a3(0x162)]);_0x31515a[_0xd12a3(0x1d0)]({'tag':_0xd12a3(0x1a8),'attributes':{'class':this[_0xd12a3(0x19e)][_0xd12a3(0x17c)][_0xd12a3(0x1c9)]},'children':this[_0xd12a3(0x192)]}),this[_0xd12a3(0x14f)][_0xd12a3(0x1d1)][_0xd12a3(0x1c1)](_0x31515a);}}[_0x1aa33a(0x168)](){const _0x181748=_0x1aa33a;this[_0x181748(0x16a)][_0x181748(0x19d)]?this[_0x181748(0x198)]():this[_0x181748(0x18a)]();}[_0x1aa33a(0x18d)](){const _0x444e42=_0x1aa33a,_0x9d2beb=this[_0x444e42(0x192)][_0x444e42(0x1cc)]>0x0;this[_0x444e42(0x16a)]?.[_0x444e42(0x17e)]&&(this[_0x444e42(0x16a)][_0x444e42(0x17e)][_0x444e42(0x1cf)][_0x444e42(0x1b0)]=_0x9d2beb?'':_0x444e42(0x1dd));}[_0x1aa33a(0x160)](){const _0x4aae51=_0x1aa33a;this[_0x4aae51(0x16a)]?.[_0x4aae51(0x19d)]&&this[_0x4aae51(0x14f)]?.[_0x4aae51(0x1af)]&&this[_0x4aae51(0x16a)][_0x4aae51(0x17e)]&&this[_0x4aae51(0x14f)][_0x4aae51(0x1a6)]({'target':this[_0x4aae51(0x16a)][_0x4aae51(0x17e)],'limiter':document[_0x4aae51(0x1b8)](_0x4aae51(0x1e0))});}[_0x1aa33a(0x164)](_0x41d0b2){const _0x563d67=_0x1aa33a,_0xac41ed=this[_0x563d67(0x181)]?.[_0x563d67(0x185)][_0x563d67(0x1ad)]()||_0x563d67(0x1a8),_0x2867b3=this[_0x563d67(0x181)]?.[_0x563d67(0x189)];if(_0x2867b3){const _0x2ae90d=_0x2867b3[0x0]||'',_0x3dce15=_0x41d0b2[_0x563d67(0x1b8)]('.'+_0x2ae90d),_0x17d6b9=_0x41d0b2[_0x563d67(0x1b8)](_0xac41ed);return _0x3dce15||_0x17d6b9||_0x41d0b2;}return _0x41d0b2[_0x563d67(0x1b8)](_0xac41ed)||_0x41d0b2;}[_0x1aa33a(0x1d9)](){const _0x2d520d=_0x1aa33a,_0x1beba0=this[_0x2d520d(0x176)]?.[_0x2d520d(0x17e)]||this[_0x2d520d(0x181)];if(!_0x1beba0)return wn;const _0x3271b1=window[_0x2d520d(0x18f)](_0x1beba0)[_0x2d520d(0x1b2)];if(_0x2d520d(0x180)===_0x3271b1||_0x2d520d(0x155)===_0x3271b1||!_0x3271b1){const _0x11c856=_0x1beba0[_0x2d520d(0x1d8)];if(_0x11c856){const _0x47f440=window[_0x2d520d(0x18f)](_0x11c856);return _0x2d520d(0x180)!==_0x47f440[_0x2d520d(0x1b2)]?_0x47f440[_0x2d520d(0x1b2)]:wn;}return wn;}return _0x3271b1;}[_0x1aa33a(0x1b9)](_0x203de5,_0x955aed){const _0xe526c6=_0x1aa33a;this[_0xe526c6(0x19e)][_0xe526c6(0x17c)][_0xe526c6(0x1b5)]&&_0x203de5[_0xe526c6(0x189)][_0xe526c6(0x1c1)](this[_0xe526c6(0x19e)][_0xe526c6(0x17c)][_0xe526c6(0x1b5)]),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1b2)]=_0x955aed,_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x19c)]=_0xe526c6(0x1a2),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1d6)]=_0xe526c6(0x1d4),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x172)]=_0xe526c6(0x1d4),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1b1)]='0',_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x169)]=_0xe526c6(0x1dd),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1de)]='-1',_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1ca)]=_0xe526c6(0x186),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1b0)]=_0xe526c6(0x17b),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x175)]=_0xe526c6(0x1d5);}[_0x1aa33a(0x15b)](_0x387c02){const _0x21c0db=_0x1aa33a;_0x387c02[_0x21c0db(0x177)](({element:_0x140af8,originalDisplay:_0x1dcc2b,originalVisibility:_0x1bca9f})=>{const _0x9e6ca2=_0x21c0db;_0x140af8[_0x9e6ca2(0x1cf)][_0x9e6ca2(0x1b0)]=_0x1dcc2b,_0x140af8[_0x9e6ca2(0x1cf)][_0x9e6ca2(0x1ca)]=_0x1bca9f;});}[_0x1aa33a(0x19f)](_0x6789ad){const _0x2d2429=_0x1aa33a,_0xb653d0=[];let _0x464db5=_0x6789ad;for(;_0x464db5&&_0x464db5!==document[_0x2d2429(0x1a9)];){const _0x20d4ba=window[_0x2d2429(0x18f)](_0x464db5);_0x2d2429(0x1dd)!==_0x20d4ba[_0x2d2429(0x1b0)]&&_0x2d2429(0x16b)!==_0x20d4ba[_0x2d2429(0x1ca)]||(_0xb653d0[_0x2d2429(0x1bc)]({'element':_0x464db5,'originalDisplay':_0x464db5[_0x2d2429(0x1cf)][_0x2d2429(0x1b0)],'originalVisibility':_0x464db5[_0x2d2429(0x1cf)][_0x2d2429(0x1ca)]}),_0x464db5[_0x2d2429(0x1cf)][_0x2d2429(0x1b0)]=_0x2d2429(0x159),_0x464db5[_0x2d2429(0x1cf)][_0x2d2429(0x1ca)]=_0x2d2429(0x165)),_0x464db5=_0x464db5[_0x2d2429(0x1d8)];}return _0xb653d0;}[_0x1aa33a(0x171)](){const _0x519c86=_0x1aa33a;let _0x21eea8,_0x262e2b;return this[_0x519c86(0x176)]?.[_0x519c86(0x17e)]?(_0x21eea8=this[_0x519c86(0x176)][_0x519c86(0x17e)][_0x519c86(0x187)](!0x0),_0x262e2b=this[_0x519c86(0x164)](_0x21eea8)):(_0x21eea8=document[_0x519c86(0x1aa)](_0x519c86(0x1a8)),_0x262e2b=_0x21eea8),{'calculationContainer':_0x21eea8,'targetContainer':_0x262e2b};}[_0x1aa33a(0x15e)](){const _0x3c1d7d=_0x1aa33a,{calculationContainer:_0x7d812b,targetContainer:_0x5e5776}=this[_0x3c1d7d(0x171)](),_0x453570=this[_0x3c1d7d(0x1d9)]();this[_0x3c1d7d(0x1b9)](_0x7d812b,_0x453570);const _0x9d84a9=this[_0x3c1d7d(0x176)]?.[_0x3c1d7d(0x17e)]||this[_0x3c1d7d(0x181)],_0x1f1b91=_0x9d84a9?.[_0x3c1d7d(0x1d8)];_0x1f1b91?_0x1f1b91[_0x3c1d7d(0x15f)](_0x7d812b):document[_0x3c1d7d(0x1a9)][_0x3c1d7d(0x15f)](_0x7d812b),_0x7d812b[_0x3c1d7d(0x167)]=_0x5e5776;const _0x496cea=this[_0x3c1d7d(0x19f)](_0x1f1b91||null);return _0x7d812b[_0x3c1d7d(0x15c)],_0x7d812b[_0x3c1d7d(0x157)]=_0x496cea,_0x7d812b;}[_0x1aa33a(0x18c)](_0x471e9f,_0x5bd5ed){const _0x137df3=_0x1aa33a,_0xb3578f=_0x471e9f[_0x137df3(0x167)]||_0x471e9f,_0x40853d=[],{rowCount:_0x47fa0b}=this[_0x137df3(0x1ae)](_0xb3578f,_0x5bd5ed);if(_0x47fa0b<=this[_0x137df3(0x19e)][_0x137df3(0x15d)])return _0x40853d;const _0x532dd6=_0x5bd5ed[_0x137df3(0x16d)]();for(;_0x532dd6[_0x137df3(0x1cc)]>0x0;){if(this[_0x137df3(0x1d3)](_0x471e9f,_0xb3578f,_0x532dd6)){const _0x321b54=_0x5bd5ed[_0x137df3(0x19a)](_0x14f644=>!_0x532dd6[_0x137df3(0x1b4)](_0x14f644));_0x40853d[_0x137df3(0x1bc)](..._0x321b54);break;}if(!_0x532dd6[_0x137df3(0x1bb)]())break;}return _0x40853d;}[_0x1aa33a(0x1ae)](_0x893b5e,_0xbeaa82){const _0x293b20=_0x1aa33a;_0x893b5e[_0x293b20(0x158)]='',_0xbeaa82[_0x293b20(0x177)](_0x5c88cb=>{const _0x1e550f=_0x293b20;if(_0x5c88cb[_0x1e550f(0x17e)]){const _0xd472fd=_0x5c88cb[_0x1e550f(0x17e)][_0x1e550f(0x187)](!0x0);_0x893b5e[_0x1e550f(0x15f)](_0xd472fd);}}),_0x893b5e[_0x293b20(0x15c)];const _0x4c81fa=_0x893b5e[_0x293b20(0x1ab)],_0x5436cc=[];return Array[_0x293b20(0x1cb)](_0x4c81fa)[_0x293b20(0x177)](_0x462f93=>{const _0x293cba=_0x293b20,_0x254e7e=_0x462f93[_0x293cba(0x1c8)]()[_0x293cba(0x1d6)];_0x5436cc[_0x293cba(0x17f)](_0x10dcdf=>Math[_0x293cba(0x1d2)](_0x10dcdf-_0x254e7e)<this[_0x293cba(0x19e)][_0x293cba(0x156)])||_0x5436cc[_0x293cba(0x1bc)](_0x254e7e);}),{'rowCount':_0x5436cc[_0x293b20(0x1cc)]};}[_0x1aa33a(0x1c0)](){const _0x406a57=_0x1aa33a,_0x9e6d8=document[_0x406a57(0x1aa)](_0x406a57(0x1c3));return _0x9e6d8[_0x406a57(0x166)]=this[_0x406a57(0x19e)][_0x406a57(0x17c)][_0x406a57(0x152)],this[_0x406a57(0x19e)][_0x406a57(0x17c)][_0x406a57(0x188)]&&_0x9e6d8[_0x406a57(0x189)][_0x406a57(0x1c1)](this[_0x406a57(0x19e)][_0x406a57(0x17c)][_0x406a57(0x188)]),_0x9e6d8[_0x406a57(0x173)]=_0x406a57(0x179),_0x9e6d8;}[_0x1aa33a(0x1d3)](_0x2bb704,_0x3aea36,_0x521614){const _0x21e70a=_0x1aa33a;this[_0x21e70a(0x1ae)](_0x3aea36,_0x521614);const _0x10d420=this[_0x21e70a(0x1c0)]();_0x2bb704[_0x21e70a(0x15f)](_0x10d420),_0x2bb704[_0x21e70a(0x15c)];const _0x49be08=[..._0x3aea36[_0x21e70a(0x1ab)],_0x10d420],_0x5f4313=[];_0x49be08[_0x21e70a(0x177)](_0x41be2f=>{const _0x32e9d3=_0x21e70a,_0x57a48f=_0x41be2f[_0x32e9d3(0x1c8)]()[_0x32e9d3(0x1d6)];_0x5f4313[_0x32e9d3(0x17f)](_0x5b93af=>Math[_0x32e9d3(0x1d2)](_0x5b93af-_0x57a48f)<this[_0x32e9d3(0x19e)][_0x32e9d3(0x156)])||_0x5f4313[_0x32e9d3(0x1bc)](_0x57a48f);});const _0x3fd037=_0x5f4313[_0x21e70a(0x1cc)];return _0x10d420[_0x21e70a(0x1a5)](),_0x3fd037<=this[_0x21e70a(0x19e)][_0x21e70a(0x15d)];}[_0x1aa33a(0x197)](_0x55092b,_0x3ef29d){const _0x3883d3=_0x1aa33a;this[_0x3883d3(0x1b6)][_0x3883d3(0x16e)](),this[_0x3883d3(0x192)][_0x3883d3(0x16e)](),_0x55092b[_0x3883d3(0x177)](_0x4445d2=>{const _0x710701=_0x3883d3;_0x3ef29d[_0x710701(0x1b4)](_0x4445d2)?this[_0x710701(0x192)][_0x710701(0x1c1)](_0x4445d2):this[_0x710701(0x1b6)][_0x710701(0x1c1)](_0x4445d2);});}[_0x1aa33a(0x182)](_0x2bc427){const _0xd9ce7c=_0x1aa33a;if(_0x2bc427>0x0&&!this[_0xd9ce7c(0x16a)]&&this[_0xd9ce7c(0x1c7)](),_0x2bc427>0x0&&this[_0xd9ce7c(0x16a)]){const _0x1d41e6=''+this[_0xd9ce7c(0x19e)][_0xd9ce7c(0x153)]+(_0x2bc427<0x63?_0x2bc427:'99');this[_0xd9ce7c(0x16a)][_0xd9ce7c(0x18b)]=_0x1d41e6;}this[_0xd9ce7c(0x1a0)](),this[_0xd9ce7c(0x18d)](),this[_0xd9ce7c(0x160)]();}[_0x1aa33a(0x15a)](_0x5e5b2e,_0x47093f){const _0x5f3882=_0x1aa33a;this[_0x5f3882(0x197)](_0x5e5b2e,_0x47093f),this[_0x5f3882(0x182)](_0x47093f[_0x5f3882(0x1cc)]);}[_0x1aa33a(0x190)](){const _0x335ce6=_0x1aa33a;this[_0x335ce6(0x181)]&&_0x335ce6(0x19b)!=typeof IntersectionObserver&&(this[_0x335ce6(0x191)]=new IntersectionObserver(_0x4f6aea=>{const _0xba789=_0x335ce6;_0x4f6aea[0x0][_0xba789(0x1be)]&&this[_0xba789(0x1b7)]&&requestAnimationFrame(()=>{const _0x4aa609=_0xba789;this[_0x4aa609(0x1a1)]();});},{'threshold':0.01,'rootMargin':_0x335ce6(0x16c)}),this[_0x335ce6(0x191)][_0x335ce6(0x184)](this[_0x335ce6(0x181)]));}[_0x1aa33a(0x174)](){const _0x106366=_0x1aa33a;if(!this[_0x106366(0x181)])return!0x1;if(!this[_0x106366(0x181)][_0x106366(0x151)])return!0x1;const _0x4b5327=this[_0x106366(0x181)][_0x106366(0x1c8)]();if(0x0===_0x4b5327[_0x106366(0x1b2)]||0x0===_0x4b5327[_0x106366(0x16f)])return!0x1;const _0x4d9ab0=window[_0x106366(0x199)]||document[_0x106366(0x1cd)][_0x106366(0x1ac)],_0x9e6de9=window[_0x106366(0x196)]||document[_0x106366(0x1cd)][_0x106366(0x1bd)],_0x1bba51=0xc8;return _0x4b5327[_0x106366(0x183)]>=-0xc8&&_0x4b5327[_0x106366(0x1d6)]<=_0x4d9ab0+_0x1bba51&&_0x4b5327[_0x106366(0x195)]>=-0xc8&&_0x4b5327[_0x106366(0x172)]<=_0x9e6de9+_0x1bba51;}}
|
|
23
|
+
const _0x512fa2=_0x39b7;function _0x5393(){const _0x6c304d=['overflowChips','observe','visible\x20!important','maxVisibleRows','clientWidth','boxSizing','hideBalloonPanel','_setupVisibilityObserver','extendTemplate','_makeAncestorsVisible','style','div','showMoreButton','_distributeChips','visibility','rowDetectionTolerance','setContainerElement','showBalloonPanel','hide','_overflowChips','children','_config','12030AjaxzS','controlsButton','_parentView','classList','createElement','875xxsDrD','300px','_restoreAncestorVisibility','none','body','reorganizeChips','documentElement','offsetWidth','_updateBalloonContent','_applyOverflowResults','_calculateContainerWidth','_createCalculationContainer','_repinBalloonPanel','innerHeight','zIndex','block','24Ogijtd','isIntersecting','parentElement','button','cloneNode','from','_bodyCollection','pin','pop','showMoreButtonView','_containerElement','visible','clear','filter','_createContainerElements','absolute','block\x20!important','forEach','_visibleChips','overflowContainer','destroy','ck-calculation-container','right','102500GOfDhw','isOn','toLowerCase','left','set','bottom','top','width','disconnect','show','_createShowMoreButton','218637QuqeiO','tagName','length','slice','cssClasses','_updateOverflowUI','abs','_calculateOverflowInContainer','position','50px','content','textContent','pointerEvents','189eynjDc','remove','.ck-ai-chat','undefined','_handleShowMoreButtonClick','180519lLSHWq','_ancestorsToRestore','_showMoreBalloonPanelView','_showMoreButtonView','_targetContainer','0px','_renderChipsAndCountRows','height','_updateShowMoreButtonVisibility','label','disableAnimationOnEnter','some','clientHeight','add','getBoundingClientRect','hidden','element','appendChild','_createShowMoreBalloonPanelView','_intersectionObserver','_locale','+\x201','_createShowMoreButtonView','className','push','_checkAndHandleOverflow','querySelector','calculationContainer','6668YlAMVG','_applyCalculationStyles','isVisible','display','_findTargetContainer','border-box','isConnected','getComputedStyle','_testButtonFit','setTemplate','innerHTML','_pendingCalculation','innerWidth','auto','execute','1389740sqJlAn','render','_isContainerVisible','33835LbfIja','showMoreLabelPrefix','showMoreBalloon','includes','-9999px','opacity','_createMockButton'];_0x5393=function(){return _0x6c304d;};return _0x5393();}(function(_0x7555ec,_0x390c7e){const _0x2005c2=_0x39b7,_0x4073f9=_0x7555ec();while(!![]){try{const _0xb9e2db=-parseInt(_0x2005c2(0x1b2))/0x1+parseInt(_0x2005c2(0x229))/0x2+-parseInt(_0x2005c2(0x1ad))/0x3*(-parseInt(_0x2005c2(0x1ce))/0x4)+-parseInt(_0x2005c2(0x1e0))/0x5+parseInt(_0x2005c2(0x1fd))/0x6*(parseInt(_0x2005c2(0x202))/0x7)+parseInt(_0x2005c2(0x212))/0x8*(parseInt(_0x2005c2(0x234))/0x9)+-parseInt(_0x2005c2(0x1dd))/0xa;if(_0xb9e2db===_0x390c7e)break;else _0x4073f9['push'](_0x4073f9['shift']());}catch(_0x4a8c33){_0x4073f9['push'](_0x4073f9['shift']());}}}(_0x5393,0x257ab));import{View as _0x77882c,BalloonPanelView as _0x1eba41,ButtonView as _0x50839f,clickOutsideHandler as _0x5f28a1}from'ckeditor5/src/ui.js';import{Collection as _0x5de2c0}from'ckeditor5/src/utils.js';function _0x39b7(_0x93bf53,_0x2ac756){const _0x539316=_0x5393();return _0x39b7=function(_0x39b712,_0x1f4f14){_0x39b712=_0x39b712-0x1ac;let _0x211344=_0x539316[_0x39b712];return _0x211344;},_0x39b7(_0x93bf53,_0x2ac756);}const bn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},Cn=_0x512fa2(0x203);export class AIChatChipsOverflowManager{[_0x512fa2(0x1c6)];[_0x512fa2(0x1fc)];[_0x512fa2(0x224)];[_0x512fa2(0x1fa)];[_0x512fa2(0x1b5)]=null;[_0x512fa2(0x1b4)]=null;[_0x512fa2(0x21c)]=null;[_0x512fa2(0x218)];[_0x512fa2(0x1ff)]=null;[_0x512fa2(0x1c5)]=null;[_0x512fa2(0x1d9)]=!0x1;constructor(_0x318d94,_0x56765f,_0x1742c6,_0x164c02,_0xfa74bc){const _0x50a7a1=_0x512fa2;this[_0x50a7a1(0x1c6)]=_0x318d94,this[_0x50a7a1(0x224)]=_0x56765f,this[_0x50a7a1(0x1fc)]={...bn,..._0x1742c6,'cssClasses':{'controlsButton':'','calculationContainer':_0x50a7a1(0x227),..._0x1742c6[_0x50a7a1(0x238)]}},this[_0x50a7a1(0x1fa)]=new _0x5de2c0(),this[_0x50a7a1(0x218)]=_0x164c02,this[_0x50a7a1(0x1ff)]=_0xfa74bc||null;}[_0x512fa2(0x1f7)](_0x2a3104){const _0x2ec592=_0x512fa2;this[_0x2ec592(0x1c5)]&&(this[_0x2ec592(0x1c5)][_0x2ec592(0x231)](),this[_0x2ec592(0x1c5)]=null),this[_0x2ec592(0x21c)]=_0x2a3104,this[_0x2ec592(0x1ee)]();}get[_0x512fa2(0x21b)](){const _0x4db5d4=_0x512fa2;return this[_0x4db5d4(0x1b5)];}get[_0x512fa2(0x1e7)](){const _0x4e5544=_0x512fa2;return this[_0x4e5544(0x1fa)];}[_0x512fa2(0x207)](){requestAnimationFrame(()=>{const _0x337173=_0x39b7;this[_0x337173(0x1cb)]();});}[_0x512fa2(0x1f8)](){const _0x14e579=_0x512fa2;this[_0x14e579(0x1b5)]&&this[_0x14e579(0x1b4)]&&(this[_0x14e579(0x20a)](),this[_0x14e579(0x1b5)][_0x14e579(0x22a)]=!0x0,this[_0x14e579(0x1b4)][_0x14e579(0x232)](),this[_0x14e579(0x1b4)][_0x14e579(0x219)]({'target':this[_0x14e579(0x1b5)][_0x14e579(0x1c2)],'limiter':document[_0x14e579(0x1cc)](_0x14e579(0x1af))}));}[_0x512fa2(0x1ed)](){const _0x50e944=_0x512fa2;this[_0x50e944(0x1b5)]&&this[_0x50e944(0x1b4)]&&(this[_0x50e944(0x1b5)][_0x50e944(0x22a)]=!0x1,this[_0x50e944(0x1b4)][_0x50e944(0x1f9)]());}[_0x512fa2(0x21e)](){const _0x293c09=_0x512fa2;this[_0x293c09(0x1fa)][_0x293c09(0x21e)](),this[_0x293c09(0x1ed)](),this[_0x293c09(0x1ba)](),this[_0x293c09(0x1b5)]&&(this[_0x293c09(0x1b5)][_0x293c09(0x1bb)]=''),this[_0x293c09(0x1b4)]&&this[_0x293c09(0x1b4)][_0x293c09(0x23e)][_0x293c09(0x21e)]();}[_0x512fa2(0x226)](){const _0x57de9f=_0x512fa2;this[_0x57de9f(0x1c5)]&&(this[_0x57de9f(0x1c5)][_0x57de9f(0x231)](),this[_0x57de9f(0x1c5)]=null),this[_0x57de9f(0x1b5)]&&(this[_0x57de9f(0x1b5)][_0x57de9f(0x226)](),this[_0x57de9f(0x1b5)]=null),this[_0x57de9f(0x1b4)]&&(this[_0x57de9f(0x1b4)][_0x57de9f(0x226)](),this[_0x57de9f(0x1b4)]=null);}[_0x512fa2(0x1cb)](){const _0x2ec1b9=_0x512fa2;if(!this[_0x2ec1b9(0x21c)])return;if(!this[_0x2ec1b9(0x1df)]())return void(this[_0x2ec1b9(0x1d9)]=!0x0);this[_0x2ec1b9(0x1d9)]=!0x1;const _0x2a1bf9=[...this[_0x2ec1b9(0x224)],...this[_0x2ec1b9(0x1fa)]],_0x2b2460=this[_0x2ec1b9(0x20d)](),_0x114317=this[_0x2ec1b9(0x23b)](_0x2b2460,_0x2a1bf9),_0x5c24ca=_0x2b2460[_0x2ec1b9(0x1b3)];_0x5c24ca&&this[_0x2ec1b9(0x204)](_0x5c24ca),_0x2b2460[_0x2ec1b9(0x1ae)](),this[_0x2ec1b9(0x20b)](_0x2a1bf9,_0x114317);}[_0x512fa2(0x233)](){const _0x45d216=_0x512fa2;this[_0x45d216(0x1b5)]=this[_0x45d216(0x1c8)](),this[_0x45d216(0x1b4)]=this[_0x45d216(0x1c4)](),this[_0x45d216(0x1b5)][_0x45d216(0x1de)](),this[_0x45d216(0x21c)][_0x45d216(0x1c3)](this[_0x45d216(0x1b5)][_0x45d216(0x1c2)]),this[_0x45d216(0x1b5)]['on'](_0x45d216(0x1dc),()=>{const _0x15ddfa=_0x45d216;this[_0x15ddfa(0x1b1)]();}),_0x5f28a1({'emitter':this[_0x45d216(0x1b4)],'contextElements':[this[_0x45d216(0x1b4)][_0x45d216(0x1c2)],this[_0x45d216(0x1b5)][_0x45d216(0x1c2)]],'callback':()=>this[_0x45d216(0x1ed)](),'activator':()=>this[_0x45d216(0x1b5)][_0x45d216(0x22a)]});}[_0x512fa2(0x1c8)](){const _0x10968c=_0x512fa2,_0x322537=new _0x50839f(this[_0x10968c(0x1c6)]);_0x322537[_0x10968c(0x22d)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x3d7382=[this[_0x10968c(0x1fc)][_0x10968c(0x238)][_0x10968c(0x1f3)]];return this[_0x10968c(0x1fc)][_0x10968c(0x238)][_0x10968c(0x1fe)]&&_0x3d7382[_0x10968c(0x1ca)](this[_0x10968c(0x1fc)][_0x10968c(0x238)][_0x10968c(0x1fe)]),_0x322537[_0x10968c(0x1ef)]({'attributes':{'class':_0x3d7382}}),_0x322537;}[_0x512fa2(0x1c4)](){const _0x1a070d=_0x512fa2,_0x4fd5d0=new _0x1eba41(this[_0x1a070d(0x1c6)]);return _0x4fd5d0[_0x1a070d(0x1ef)]({'attributes':{'class':this[_0x1a070d(0x1fc)][_0x1a070d(0x238)][_0x1a070d(0x1e2)]}}),this[_0x1a070d(0x218)][_0x1a070d(0x1bf)](_0x4fd5d0),_0x4fd5d0;}[_0x512fa2(0x20a)](){const _0x9021bc=_0x512fa2;if(this[_0x9021bc(0x1b4)]&&(this[_0x9021bc(0x1b4)][_0x9021bc(0x23e)][_0x9021bc(0x21e)](),this[_0x9021bc(0x1fa)][_0x9021bc(0x236)]>0x0)){this[_0x9021bc(0x1fa)][_0x9021bc(0x223)](_0x409c39=>{const _0x3784c8=_0x9021bc;_0x409c39[_0x3784c8(0x1bc)]();});const _0x284dd0=new _0x77882c(this[_0x9021bc(0x1c6)]);_0x284dd0[_0x9021bc(0x1d7)]({'tag':_0x9021bc(0x1f2),'attributes':{'class':this[_0x9021bc(0x1fc)][_0x9021bc(0x238)][_0x9021bc(0x225)]},'children':this[_0x9021bc(0x1fa)]}),this[_0x9021bc(0x1b4)][_0x9021bc(0x23e)][_0x9021bc(0x1bf)](_0x284dd0);}}[_0x512fa2(0x1b1)](){const _0xfb063c=_0x512fa2;this[_0xfb063c(0x1b5)][_0xfb063c(0x22a)]?this[_0xfb063c(0x1ed)]():this[_0xfb063c(0x1f8)]();}[_0x512fa2(0x1ba)](){const _0x27b2fb=_0x512fa2,_0x8665cf=this[_0x27b2fb(0x1fa)][_0x27b2fb(0x236)]>0x0;this[_0x27b2fb(0x1b5)]?.[_0x27b2fb(0x1c2)]&&(this[_0x27b2fb(0x1b5)][_0x27b2fb(0x1c2)][_0x27b2fb(0x1f1)][_0x27b2fb(0x1d1)]=_0x8665cf?'':_0x27b2fb(0x205));}[_0x512fa2(0x20e)](){const _0x3cfee1=_0x512fa2;this[_0x3cfee1(0x1b5)]?.[_0x3cfee1(0x22a)]&&this[_0x3cfee1(0x1b4)]?.[_0x3cfee1(0x1d0)]&&this[_0x3cfee1(0x1b5)][_0x3cfee1(0x1c2)]&&this[_0x3cfee1(0x1b4)][_0x3cfee1(0x219)]({'target':this[_0x3cfee1(0x1b5)][_0x3cfee1(0x1c2)],'limiter':document[_0x3cfee1(0x1cc)](_0x3cfee1(0x1af))});}[_0x512fa2(0x1d2)](_0x468a63){const _0x26936d=_0x512fa2,_0x23494b=this[_0x26936d(0x21c)]?.[_0x26936d(0x235)][_0x26936d(0x22b)]()||_0x26936d(0x1f2),_0x5702a6=this[_0x26936d(0x21c)]?.[_0x26936d(0x200)];if(_0x5702a6){const _0x53e58a=_0x5702a6[0x0]||'',_0x179b1d=_0x468a63[_0x26936d(0x1cc)]('.'+_0x53e58a),_0x4ef7f9=_0x468a63[_0x26936d(0x1cc)](_0x23494b);return _0x179b1d||_0x4ef7f9||_0x468a63;}return _0x468a63[_0x26936d(0x1cc)](_0x23494b)||_0x468a63;}[_0x512fa2(0x20c)](){const _0x48abbf=_0x512fa2,_0x3d5206=this[_0x48abbf(0x1ff)]?.[_0x48abbf(0x1c2)]||this[_0x48abbf(0x21c)];if(!_0x3d5206)return Cn;const _0x3c6df7=window[_0x48abbf(0x1d5)](_0x3d5206)[_0x48abbf(0x230)];if(_0x48abbf(0x1db)===_0x3c6df7||_0x48abbf(0x1b7)===_0x3c6df7||!_0x3c6df7){const _0x14eb85=_0x3d5206[_0x48abbf(0x214)];if(_0x14eb85){const _0x32d718=window[_0x48abbf(0x1d5)](_0x14eb85);return _0x48abbf(0x1db)!==_0x32d718[_0x48abbf(0x230)]?_0x32d718[_0x48abbf(0x230)]:Cn;}return Cn;}return _0x3c6df7;}[_0x512fa2(0x1cf)](_0x44d301,_0x1522fe){const _0x1b3384=_0x512fa2;this[_0x1b3384(0x1fc)][_0x1b3384(0x238)][_0x1b3384(0x1cd)]&&_0x44d301[_0x1b3384(0x200)][_0x1b3384(0x1bf)](this[_0x1b3384(0x1fc)][_0x1b3384(0x238)][_0x1b3384(0x1cd)]),_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x230)]=_0x1522fe,_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x23c)]=_0x1b3384(0x221),_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x22f)]=_0x1b3384(0x1e4),_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x22c)]=_0x1b3384(0x1e4),_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x1e5)]='0',_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x1ac)]=_0x1b3384(0x205),_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x210)]='-1',_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x1f5)]=_0x1b3384(0x1e9),_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x1d1)]=_0x1b3384(0x222),_0x44d301[_0x1b3384(0x1f1)][_0x1b3384(0x1ec)]=_0x1b3384(0x1d3);}[_0x512fa2(0x204)](_0x468257){const _0x1cd15b=_0x512fa2;_0x468257[_0x1cd15b(0x223)](({element:_0x211e41,originalDisplay:_0x5d41f9,originalVisibility:_0x3d02ee})=>{const _0xe8d0d0=_0x1cd15b;_0x211e41[_0xe8d0d0(0x1f1)][_0xe8d0d0(0x1d1)]=_0x5d41f9,_0x211e41[_0xe8d0d0(0x1f1)][_0xe8d0d0(0x1f5)]=_0x3d02ee;});}[_0x512fa2(0x1f0)](_0x2ab1d8){const _0x26181b=_0x512fa2,_0x14d71d=[];let _0x4637bd=_0x2ab1d8;for(;_0x4637bd&&_0x4637bd!==document[_0x26181b(0x206)];){const _0x1526a3=window[_0x26181b(0x1d5)](_0x4637bd);_0x26181b(0x205)!==_0x1526a3[_0x26181b(0x1d1)]&&_0x26181b(0x1c1)!==_0x1526a3[_0x26181b(0x1f5)]||(_0x14d71d[_0x26181b(0x1ca)]({'element':_0x4637bd,'originalDisplay':_0x4637bd[_0x26181b(0x1f1)][_0x26181b(0x1d1)],'originalVisibility':_0x4637bd[_0x26181b(0x1f1)][_0x26181b(0x1f5)]}),_0x4637bd[_0x26181b(0x1f1)][_0x26181b(0x1d1)]=_0x26181b(0x211),_0x4637bd[_0x26181b(0x1f1)][_0x26181b(0x1f5)]=_0x26181b(0x21d)),_0x4637bd=_0x4637bd[_0x26181b(0x214)];}return _0x14d71d;}[_0x512fa2(0x220)](){const _0x102a3a=_0x512fa2;let _0x561da4,_0x4be961;return this[_0x102a3a(0x1ff)]?.[_0x102a3a(0x1c2)]?(_0x561da4=this[_0x102a3a(0x1ff)][_0x102a3a(0x1c2)][_0x102a3a(0x216)](!0x0),_0x4be961=this[_0x102a3a(0x1d2)](_0x561da4)):(_0x561da4=document[_0x102a3a(0x201)](_0x102a3a(0x1f2)),_0x4be961=_0x561da4),{'calculationContainer':_0x561da4,'targetContainer':_0x4be961};}[_0x512fa2(0x20d)](){const _0x1d7758=_0x512fa2,{calculationContainer:_0x307b43,targetContainer:_0xdfafad}=this[_0x1d7758(0x220)](),_0x26dfee=this[_0x1d7758(0x20c)]();this[_0x1d7758(0x1cf)](_0x307b43,_0x26dfee);const _0x53dd10=this[_0x1d7758(0x1ff)]?.[_0x1d7758(0x1c2)]||this[_0x1d7758(0x21c)],_0x1f36ae=_0x53dd10?.[_0x1d7758(0x214)];_0x1f36ae?_0x1f36ae[_0x1d7758(0x1c3)](_0x307b43):document[_0x1d7758(0x206)][_0x1d7758(0x1c3)](_0x307b43),_0x307b43[_0x1d7758(0x1b6)]=_0xdfafad;const _0x3dc416=this[_0x1d7758(0x1f0)](_0x1f36ae||null);return _0x307b43[_0x1d7758(0x209)],_0x307b43[_0x1d7758(0x1b3)]=_0x3dc416,_0x307b43;}[_0x512fa2(0x23b)](_0x8dea84,_0x200491){const _0x1e44dc=_0x512fa2,_0x3bd459=_0x8dea84[_0x1e44dc(0x1b6)]||_0x8dea84,_0x383c2c=[],{rowCount:_0x5b5958}=this[_0x1e44dc(0x1b8)](_0x3bd459,_0x200491);if(_0x5b5958<=this[_0x1e44dc(0x1fc)][_0x1e44dc(0x1ea)])return _0x383c2c;const _0x267b01=_0x200491[_0x1e44dc(0x237)]();for(;_0x267b01[_0x1e44dc(0x236)]>0x0;){if(this[_0x1e44dc(0x1d6)](_0x8dea84,_0x3bd459,_0x267b01)){const _0x5ca4e8=_0x200491[_0x1e44dc(0x21f)](_0x5c82a3=>!_0x267b01[_0x1e44dc(0x1e3)](_0x5c82a3));_0x383c2c[_0x1e44dc(0x1ca)](..._0x5ca4e8);break;}if(!_0x267b01[_0x1e44dc(0x21a)]())break;}return _0x383c2c;}[_0x512fa2(0x1b8)](_0x4818fd,_0x34f138){const _0x2d44cb=_0x512fa2;_0x4818fd[_0x2d44cb(0x1d8)]='',_0x34f138[_0x2d44cb(0x223)](_0x2c66ee=>{const _0xc4ac1c=_0x2d44cb;if(_0x2c66ee[_0xc4ac1c(0x1c2)]){const _0x5b5625=_0x2c66ee[_0xc4ac1c(0x1c2)][_0xc4ac1c(0x216)](!0x0);_0x4818fd[_0xc4ac1c(0x1c3)](_0x5b5625);}}),_0x4818fd[_0x2d44cb(0x209)];const _0x2df3f6=_0x4818fd[_0x2d44cb(0x1fb)],_0x11554b=[];return Array[_0x2d44cb(0x217)](_0x2df3f6)[_0x2d44cb(0x223)](_0x34b1b1=>{const _0x3dd2c7=_0x2d44cb,_0x4e6fd5=_0x34b1b1[_0x3dd2c7(0x1c0)]()[_0x3dd2c7(0x22f)];_0x11554b[_0x3dd2c7(0x1bd)](_0x5abfc2=>Math[_0x3dd2c7(0x23a)](_0x5abfc2-_0x4e6fd5)<this[_0x3dd2c7(0x1fc)][_0x3dd2c7(0x1f6)])||_0x11554b[_0x3dd2c7(0x1ca)](_0x4e6fd5);}),{'rowCount':_0x11554b[_0x2d44cb(0x236)]};}[_0x512fa2(0x1e6)](){const _0x24fa57=_0x512fa2,_0x502069=document[_0x24fa57(0x201)](_0x24fa57(0x215));return _0x502069[_0x24fa57(0x1c9)]=this[_0x24fa57(0x1fc)][_0x24fa57(0x238)][_0x24fa57(0x1f3)],this[_0x24fa57(0x1fc)][_0x24fa57(0x238)][_0x24fa57(0x1fe)]&&_0x502069[_0x24fa57(0x200)][_0x24fa57(0x1bf)](this[_0x24fa57(0x1fc)][_0x24fa57(0x238)][_0x24fa57(0x1fe)]),_0x502069[_0x24fa57(0x23f)]=_0x24fa57(0x1c7),_0x502069;}[_0x512fa2(0x1d6)](_0x2fec6c,_0x1bfef6,_0x498ce4){const _0x4c8c78=_0x512fa2;this[_0x4c8c78(0x1b8)](_0x1bfef6,_0x498ce4);const _0xc59f12=this[_0x4c8c78(0x1e6)]();_0x2fec6c[_0x4c8c78(0x1c3)](_0xc59f12),_0x2fec6c[_0x4c8c78(0x209)];const _0x139ca4=[..._0x1bfef6[_0x4c8c78(0x1fb)],_0xc59f12],_0x5da894=[];_0x139ca4[_0x4c8c78(0x223)](_0x2484d0=>{const _0x16f3f9=_0x4c8c78,_0x1a9cd1=_0x2484d0[_0x16f3f9(0x1c0)]()[_0x16f3f9(0x22f)];_0x5da894[_0x16f3f9(0x1bd)](_0x5824e9=>Math[_0x16f3f9(0x23a)](_0x5824e9-_0x1a9cd1)<this[_0x16f3f9(0x1fc)][_0x16f3f9(0x1f6)])||_0x5da894[_0x16f3f9(0x1ca)](_0x1a9cd1);});const _0x5198da=_0x5da894[_0x4c8c78(0x236)];return _0xc59f12[_0x4c8c78(0x1ae)](),_0x5198da<=this[_0x4c8c78(0x1fc)][_0x4c8c78(0x1ea)];}[_0x512fa2(0x1f4)](_0x45e4df,_0xab4f73){const _0xcd28d=_0x512fa2;this[_0xcd28d(0x224)][_0xcd28d(0x21e)](),this[_0xcd28d(0x1fa)][_0xcd28d(0x21e)](),_0x45e4df[_0xcd28d(0x223)](_0x41ccee=>{const _0x5c5e87=_0xcd28d;_0xab4f73[_0x5c5e87(0x1e3)](_0x41ccee)?this[_0x5c5e87(0x1fa)][_0x5c5e87(0x1bf)](_0x41ccee):this[_0x5c5e87(0x224)][_0x5c5e87(0x1bf)](_0x41ccee);});}[_0x512fa2(0x239)](_0x3913c3){const _0x2072b1=_0x512fa2;if(_0x3913c3>0x0&&!this[_0x2072b1(0x1b5)]&&this[_0x2072b1(0x233)](),_0x3913c3>0x0&&this[_0x2072b1(0x1b5)]){const _0x32cde3=''+this[_0x2072b1(0x1fc)][_0x2072b1(0x1e1)]+(_0x3913c3<0x63?_0x3913c3:'99');this[_0x2072b1(0x1b5)][_0x2072b1(0x1bb)]=_0x32cde3;}this[_0x2072b1(0x20a)](),this[_0x2072b1(0x1ba)](),this[_0x2072b1(0x20e)]();}[_0x512fa2(0x20b)](_0x4f0714,_0x55e0d9){const _0x25bd11=_0x512fa2;this[_0x25bd11(0x1f4)](_0x4f0714,_0x55e0d9),this[_0x25bd11(0x239)](_0x55e0d9[_0x25bd11(0x236)]);}[_0x512fa2(0x1ee)](){const _0xb609ad=_0x512fa2;this[_0xb609ad(0x21c)]&&_0xb609ad(0x1b0)!=typeof IntersectionObserver&&(this[_0xb609ad(0x1c5)]=new IntersectionObserver(_0x17b883=>{const _0x3d9e5c=_0xb609ad;_0x17b883[0x0][_0x3d9e5c(0x213)]&&this[_0x3d9e5c(0x1d9)]&&requestAnimationFrame(()=>{const _0x5f44e9=_0x3d9e5c;this[_0x5f44e9(0x1cb)]();});},{'threshold':0.01,'rootMargin':_0xb609ad(0x23d)}),this[_0xb609ad(0x1c5)][_0xb609ad(0x1e8)](this[_0xb609ad(0x21c)]));}[_0x512fa2(0x1df)](){const _0x11bfc1=_0x512fa2;if(!this[_0x11bfc1(0x21c)])return!0x1;if(!this[_0x11bfc1(0x21c)][_0x11bfc1(0x1d4)])return!0x1;const _0x515ef9=this[_0x11bfc1(0x21c)][_0x11bfc1(0x1c0)]();if(0x0===_0x515ef9[_0x11bfc1(0x230)]||0x0===_0x515ef9[_0x11bfc1(0x1b9)])return!0x1;const _0x289515=window[_0x11bfc1(0x20f)]||document[_0x11bfc1(0x208)][_0x11bfc1(0x1be)],_0x240247=window[_0x11bfc1(0x1da)]||document[_0x11bfc1(0x208)][_0x11bfc1(0x1eb)],_0x4b10a4=0xc8;return _0x515ef9[_0x11bfc1(0x22e)]>=-0xc8&&_0x515ef9[_0x11bfc1(0x22f)]<=_0x289515+_0x4b10a4&&_0x515ef9[_0x11bfc1(0x228)]>=-0xc8&&_0x515ef9[_0x11bfc1(0x22c)]<=_0x240247+_0x4b10a4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x363cf5=_0x33f6;(function(_0xffecda,_0x5e0658){const _0x2ecb8d=_0x33f6,_0x579581=_0xffecda();while(!![]){try{const _0x4a979e=parseInt(_0x2ecb8d(0xcc))/0x1*(parseInt(_0x2ecb8d(0xc1))/0x2)+parseInt(_0x2ecb8d(0xdc))/0x3*(-parseInt(_0x2ecb8d(0xde))/0x4)+-parseInt(_0x2ecb8d(0xd5))/0x5+-parseInt(_0x2ecb8d(0xc3))/0x6+-parseInt(_0x2ecb8d(0xc2))/0x7+-parseInt(_0x2ecb8d(0xe7))/0x8+parseInt(_0x2ecb8d(0xd6))/0x9;if(_0x4a979e===_0x5e0658)break;else _0x579581['push'](_0x579581['shift']());}catch(_0x5c9858){_0x579581['push'](_0x579581['shift']());}}}(_0x1e4c,0x419e7));function _0x33f6(_0x30f532,_0x44a1e8){const _0x1e4cc6=_0x1e4c();return _0x33f6=function(_0x33f6c2,_0x552621){_0x33f6c2=_0x33f6c2-0xb3;let _0x266eef=_0x1e4cc6[_0x33f6c2];return _0x266eef;},_0x33f6(_0x30f532,_0x44a1e8);}import{ButtonView as _0x37faca,IconView as _0x4cd994}from'ckeditor5/src/ui.js';import{IconClose as _0x33ef76,IconDocument as _0x457b3c,IconFileUpload as _0x98d423,IconLink as _0x1b387e,IconSelection as _0x44d0e9}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x396303}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x246d12}from'../../../aicore/ui/aispinner.js';function _0x1e4c(){const _0x764d91=['document','setTemplate','ck-ai-chat-context-chip__type-icon','bind','1666544eiJLFE','length','div','removeContextItemChip','ck-ai-chat-context-chip_document','itemType','_isAnimationOnEnterEnabled','element','slice','content','_createTemplateAttributes','_handleAnimationEndOnce','readonly','fire','uiId','type','removeEventListener','ck-hidden','_initializeProperties','_createRemoveButton','selection','animationend','label','span','locale','webkitAnimationEnd','disableAnimationOnEnter','89638Onomvg','3306555SvHQcJ','1186434SeLzbp','_createTemplateChildren','_setupRemoveButtonEvent','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','ck-ai-chat-context-chip_wide','execute','bindTemplate','tooltip','small','5KEzydA','render','remove','isLoading','ck-ai-chat-context-controls__chip-tooltip','isVisible','extendTemplate','_createIconView','_createLabelElement','1722475OgwiEg','14346783Ytwuif','set','lastIndexOf','_createLoaderIcon','_setupTemplate','ck-ai-chat-context-chip','15DALGEv','classList','261192mZwxJx','addEventListener','ck-ai-chat-context-chip_new-chip','ck-ai-chat-context-chip__label','add'];_0x1e4c=function(){return _0x764d91;};return _0x1e4c();}const vn={'file':_0x98d423,'document':_0x457b3c,'web-resource':_0x1b387e,'text':_0x98d423,'selection':_0x44d0e9},yn=_0x363cf5(0xdb),Ln=_0x363cf5(0xc7),Rn=_0x363cf5(0xeb),Vn=_0x363cf5(0xe1),jn=_0x363cf5(0xe5),Bn=_0x363cf5(0xd0),Mn='n';export class AIChatContextItemButtonView extends _0x37faca{constructor(_0x1d98dd,_0x2142ff,_0x43152f,_0x393199,_0x14d0c1=!0x1){const _0x5a746f=_0x363cf5;super(_0x1d98dd),this[_0x5a746f(0xed)]=_0x393199,this[_0x5a746f(0xb8)](_0x2142ff,_0x43152f,_0x14d0c1),this[_0x5a746f(0xda)]();}[_0x363cf5(0xcd)](){const _0x35e6ff=_0x363cf5;super[_0x35e6ff(0xcd)](),this[_0x35e6ff(0xed)]&&this[_0x35e6ff(0xee)]&&(this[_0x35e6ff(0xee)][_0x35e6ff(0xdd)][_0x35e6ff(0xe2)](_0x35e6ff(0xe0)),this[_0x35e6ff(0xf2)](this[_0x35e6ff(0xee)],()=>{const _0x141958=_0x35e6ff;this[_0x141958(0xee)]&&this[_0x141958(0xee)][_0x141958(0xdd)][_0x141958(0xce)](_0x141958(0xe0));}));}[_0x363cf5(0xc0)](){const _0x3c2f9f=_0x363cf5;this[_0x3c2f9f(0xed)]=!0x1,this[_0x3c2f9f(0xee)]&&this[_0x3c2f9f(0xee)][_0x3c2f9f(0xdd)][_0x3c2f9f(0xce)](_0x3c2f9f(0xe0));}[_0x363cf5(0xb8)](_0x1a7818,_0x3bb82b,_0x3a9965){const _0x41cef6=_0x363cf5;this[_0x41cef6(0xd7)](_0x41cef6(0xbc),_0x1a7818[_0x41cef6(0xbc)]),this[_0x41cef6(0xd7)](_0x41cef6(0xca),!0x0),this[_0x41cef6(0xd7)](_0x41cef6(0xec),_0x1a7818[_0x41cef6(0xb5)]),this[_0x41cef6(0xd7)]('id',_0x1a7818[_0x41cef6(0xb4)]),this[_0x41cef6(0xd7)](_0x41cef6(0xf3),_0x3bb82b),this[_0x41cef6(0xd7)](_0x41cef6(0xcf),_0x3a9965);}[_0x363cf5(0xda)](){const _0x2e7d7b=_0x363cf5,_0x3f588f=this[_0x2e7d7b(0xd3)](),_0x452ed5=this[_0x2e7d7b(0xb9)](),_0x47d416=this[_0x2e7d7b(0xc9)];this[_0x2e7d7b(0xe4)]({'tag':_0x2e7d7b(0xe9),'attributes':this[_0x2e7d7b(0xf1)](_0x47d416),'children':this[_0x2e7d7b(0xc4)](_0x3f588f,_0x452ed5,_0x47d416)});}[_0x363cf5(0xf1)](_0x4c995e){const _0x3a2a21=_0x363cf5;return{'class':[yn,_0x4c995e['if'](_0x3a2a21(0xec),Rn,_0xad8535=>_0x3a2a21(0xe3)==_0xad8535),_0x4c995e['if'](_0x3a2a21(0xec),Ln,_0x1e2354=>_0x3a2a21(0xba)==_0x1e2354)],'data-cke-tooltip-text':_0x4c995e['to'](_0x3a2a21(0xbc),Nn),'data-cke-tooltip-position':Mn,'data-cke-tooltip-class':Bn};}[_0x363cf5(0xc4)](_0xbe1ef3,_0x1f76a4,_0x1956a7){const _0x2ae8c9=_0x363cf5,_0x57a638=this[_0x2ae8c9(0xd4)](_0x1956a7),_0x1600c7=this[_0x2ae8c9(0xd9)]();return this[_0x2ae8c9(0xf3)]?[_0xbe1ef3,_0x57a638]:[_0xbe1ef3,_0x1600c7,_0x57a638,_0x1f76a4];}[_0x363cf5(0xd4)](_0x2a13f4){const _0x4717d8=_0x363cf5;return{'tag':_0x4717d8(0xbd),'attributes':{'class':Vn},'children':[{'text':_0x2a13f4['to'](_0x4717d8(0xbc))}]};}[_0x363cf5(0xb9)](){const _0x244b42=_0x363cf5,_0x21b8dd=new _0x37faca(this[_0x244b42(0xbe)]);return _0x21b8dd[_0x244b42(0xd7)]({'label':_0x396303(this[_0x244b42(0xbe)],_0x244b42(0xc6)),'icon':_0x33ef76}),this[_0x244b42(0xc5)](_0x21b8dd),_0x21b8dd;}[_0x363cf5(0xc5)](_0x3aa98f){const _0x506462=_0x363cf5;_0x3aa98f['on'](_0x506462(0xc8),()=>{const _0x137ff9=_0x506462;this[_0x137ff9(0xb3)](_0x137ff9(0xea),this['id']);});}[_0x363cf5(0xd3)](){const _0x5d101a=_0x363cf5,_0x41878b=this[_0x5d101a(0xc9)],_0x4c5650=new _0x4cd994();return _0x4c5650[_0x5d101a(0xf0)]=vn[this[_0x5d101a(0xec)]],_0x4c5650[_0x5d101a(0xd2)]({'attributes':{'class':[jn,_0x41878b['if'](_0x5d101a(0xcf),_0x5d101a(0xb7),_0x500bef=>_0x500bef)]}}),_0x4c5650;}[_0x363cf5(0xf2)](_0xd79231,_0x3d0d52){const _0x768131=_0x363cf5;if(!_0xd79231)return;const _0x152fcd=()=>{const _0xf1da44=_0x33f6;_0x3d0d52(),_0xd79231[_0xf1da44(0xb6)](_0xf1da44(0xbb),_0x152fcd),_0xd79231[_0xf1da44(0xb6)](_0xf1da44(0xbf),_0x152fcd);};_0xd79231[_0x768131(0xdf)](_0x768131(0xbb),_0x152fcd),_0xd79231[_0x768131(0xdf)](_0x768131(0xbf),_0x152fcd);}[_0x363cf5(0xd9)](){const _0x2cfc5b=_0x363cf5,_0x83699a=new _0x246d12(_0x2cfc5b(0xcb));return _0x83699a[_0x2cfc5b(0xe6)](_0x2cfc5b(0xd1))['to'](this,_0x2cfc5b(0xcf),_0x1ee4e3=>_0x1ee4e3),_0x83699a;}}function Nn(_0x5dca3d){const _0x5ea052=_0x363cf5;if(!_0x5dca3d)return _0x5dca3d;if(_0x5dca3d[_0x5ea052(0xe8)]<=0x78)return _0x5dca3d;const _0x358f02=_0x5dca3d[_0x5ea052(0xef)](0x0,0x78),_0x3db203=_0x358f02[_0x5ea052(0xd8)]('\x20');return(_0x3db203>0x0?_0x358f02[_0x5ea052(0xef)](0x0,_0x3db203):_0x358f02)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xce0ba9=_0x5733;(function(_0x28e529,_0x1e0c4d){const _0x32123e=_0x5733,_0x572669=_0x28e529();while(!![]){try{const _0x162022=-parseInt(_0x32123e(0x1aa))/0x1+parseInt(_0x32123e(0x1bf))/0x2+-parseInt(_0x32123e(0x1c4))/0x3*(-parseInt(_0x32123e(0x1a2))/0x4)+parseInt(_0x32123e(0x19f))/0x5*(-parseInt(_0x32123e(0x1d0))/0x6)+-parseInt(_0x32123e(0x1d8))/0x7*(-parseInt(_0x32123e(0x1cb))/0x8)+-parseInt(_0x32123e(0x199))/0x9*(-parseInt(_0x32123e(0x1a4))/0xa)+-parseInt(_0x32123e(0x1c3))/0xb;if(_0x162022===_0x1e0c4d)break;else _0x572669['push'](_0x572669['shift']());}catch(_0xb459eb){_0x572669['push'](_0x572669['shift']());}}}(_0x1ce3,0xa6877));function _0x1ce3(){const _0x1e45ce=['errorText','6513230CEyUuX','createCollection','trim','esc','_createUrlInputField','_setupKeystrokes','624858xyGgZd','shift+tab','_createBackButton','focus','div','AI_CHAT_CONTEXT_URL_LABEL','set','ck-button-icon','destroy','_isValidUrl','ck-button-icon\x20ck-button-back','setError','focusCycler','clearError','add','value','tab','ck-ai-chat-context-controls__url-form','_createConfirmButton','_focusables','submit','2108922Mtqhsp','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_handleSubmit','element','12616945XRLJce','730146ojUCZE','locale','getValue','execute','ck-ai-chat-context-controls__url-input-section','forEach','children','526696OcHeqE','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','listenTo','stop','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','6SirqjU','form','ck-labeled-field-view_empty','keystrokes','focusTracker','_updateConfirmButtonState','setTemplate','AI_CHAT_CONTEXT_URL_ADD_URL','28Ryavwi','submitUrl','backButton','cancel','render','_setupTemplate','refreshBalloon','fieldView','length','_setupEventHandlers','urlInputField','9SKEmGM','input','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','isEnabled','AI_CHAT_CONTEXT_URL_PLACEHOLDER','fire','3660430dxEfhK','clear','confirmButton','20qnnJZI'];_0x1ce3=function(){return _0x1e45ce;};return _0x1ce3();}import{FocusTracker as _0x23a4e1,KeystrokeHandler as _0x3d6dff}from'ckeditor5/src/utils.js';import{ButtonView as _0x15cc8a,FocusCycler as _0x5cc979,LabeledFieldView as _0x23efd4,View as _0x50a101,FormHeaderView as _0x134745,createLabeledInputText as _0x39d38d,submitHandler as _0x417581}from'ckeditor5/src/ui.js';import{IconCheck as _0x43a823,IconPreviousArrow as _0x228e8b}from'@ckeditor/ckeditor5-icons';function _0x5733(_0x42585c,_0x52e60a){const _0x1ce379=_0x1ce3();return _0x5733=function(_0x57334c,_0x5c2b03){_0x57334c=_0x57334c-0x196;let _0x198b49=_0x1ce379[_0x57334c];return _0x198b49;},_0x5733(_0x42585c,_0x52e60a);}import{getTranslation as _0x86b0c}from'../../../aicore/utils/common-translations.js';const rh=_0xce0ba9(0x1bb),oh=_0xce0ba9(0x1c8);export class AIChatContextPanelUrlInputView extends _0x50a101{[_0xce0ba9(0x1d4)];[_0xce0ba9(0x1d3)];[_0xce0ba9(0x1bd)];[_0xce0ba9(0x1b6)];[_0xce0ba9(0x198)];[_0xce0ba9(0x1da)];[_0xce0ba9(0x1a1)];constructor(_0x2e6fb3){const _0x2efdda=_0xce0ba9;super(_0x2e6fb3),this[_0x2efdda(0x1d4)]=new _0x23a4e1(),this[_0x2efdda(0x1d3)]=new _0x3d6dff(),this[_0x2efdda(0x1da)]=this[_0x2efdda(0x1ac)](),this[_0x2efdda(0x198)]=this[_0x2efdda(0x1a8)](),this[_0x2efdda(0x1a1)]=this[_0x2efdda(0x1bc)](),this[_0x2efdda(0x1bd)]=this[_0x2efdda(0x1a5)]([this[_0x2efdda(0x1da)],this[_0x2efdda(0x198)],this[_0x2efdda(0x1a1)]]),this[_0x2efdda(0x1b6)]=new _0x5cc979({'focusables':this[_0x2efdda(0x1bd)],'focusTracker':this[_0x2efdda(0x1d4)],'keystrokeHandler':this[_0x2efdda(0x1d3)],'actions':{'focusPrevious':_0x2efdda(0x1ab),'focusNext':_0x2efdda(0x1ba)}}),this[_0x2efdda(0x1dd)](),this[_0x2efdda(0x197)](),this[_0x2efdda(0x1a9)]();}[_0xce0ba9(0x1dc)](){const _0xbfae63=_0xce0ba9;super[_0xbfae63(0x1dc)](),this[_0xbfae63(0x1bd)][_0xbfae63(0x1c9)](_0x3ef691=>{const _0x2e89bc=_0xbfae63;this[_0x2e89bc(0x1d4)][_0x2e89bc(0x1b8)](_0x3ef691[_0x2e89bc(0x1c2)]),this[_0x2e89bc(0x1d3)][_0x2e89bc(0x1cd)](_0x3ef691[_0x2e89bc(0x1c2)]);}),_0x417581({'view':this}),this[_0xbfae63(0x1ad)]();}[_0xce0ba9(0x1b2)](){const _0x385ae3=_0xce0ba9;super[_0x385ae3(0x1b2)](),this[_0x385ae3(0x1d4)][_0x385ae3(0x1b2)](),this[_0x385ae3(0x1d3)][_0x385ae3(0x1b2)]();}[_0xce0ba9(0x1ad)](){const _0x1ea1c6=_0xce0ba9;this[_0x1ea1c6(0x198)][_0x1ea1c6(0x1ad)]();}[_0xce0ba9(0x1c6)](){const _0x501f82=_0xce0ba9;return this[_0x501f82(0x198)][_0x501f82(0x1df)][_0x501f82(0x1c2)]?.[_0x501f82(0x1b9)]?.[_0x501f82(0x1a6)]()||'';}[_0xce0ba9(0x1a0)](){const _0x5bea7e=_0xce0ba9;this[_0x5bea7e(0x198)][_0x5bea7e(0x1df)][_0x5bea7e(0x1c2)][_0x5bea7e(0x1b9)]='',this[_0x5bea7e(0x198)][_0x5bea7e(0x1a3)]=null,this[_0x5bea7e(0x1a1)][_0x5bea7e(0x19c)]=!0x1;}[_0xce0ba9(0x1b5)](_0x30d183){const _0x473520=_0xce0ba9;this[_0x473520(0x198)][_0x473520(0x1a3)]=_0x30d183,this[_0x473520(0x1d5)](),this[_0x473520(0x19e)](_0x473520(0x1de));}[_0xce0ba9(0x1b7)](){const _0x58c2b3=_0xce0ba9;this[_0x58c2b3(0x198)][_0x58c2b3(0x1a3)]=null,this[_0x58c2b3(0x1d5)]();}[_0xce0ba9(0x1ac)](){const _0x7055b1=_0xce0ba9,_0x345e60=new _0x15cc8a(this[_0x7055b1(0x1c5)]);return _0x345e60[_0x7055b1(0x1b0)]({'icon':_0x228e8b,'tooltip':_0x86b0c(this[_0x7055b1(0x1c5)],_0x7055b1(0x1cf)),'tooltipPosition':'n','class':_0x7055b1(0x1b4)}),_0x345e60;}[_0xce0ba9(0x1a8)](){const _0x50b9d3=_0xce0ba9,_0x116f93=new _0x23efd4(this[_0x50b9d3(0x1c5)],_0x39d38d);return _0x116f93[_0x50b9d3(0x1b0)]({'label':_0x86b0c(this[_0x50b9d3(0x1c5)],_0x50b9d3(0x1af)),'class':_0x50b9d3(0x1d2)}),_0x116f93[_0x50b9d3(0x1df)][_0x50b9d3(0x1b0)]({'placeholder':_0x86b0c(this[_0x50b9d3(0x1c5)],_0x50b9d3(0x19d))}),_0x116f93;}[_0xce0ba9(0x1bc)](){const _0xa4f355=_0xce0ba9,_0x3b4ab4=new _0x15cc8a(this[_0xa4f355(0x1c5)]);return _0x3b4ab4[_0xa4f355(0x1b0)]({'icon':_0x43a823,'tooltip':_0x86b0c(this[_0xa4f355(0x1c5)],_0xa4f355(0x1d7)),'tooltipPosition':'n','class':_0xa4f355(0x1b1),'type':_0xa4f355(0x1be),'isEnabled':!0x1}),_0x3b4ab4;}[_0xce0ba9(0x1dd)](){const _0x8ebf42=_0xce0ba9,_0x29cb19=new _0x134745(this[_0x8ebf42(0x1c5)],{'label':_0x86b0c(this[_0x8ebf42(0x1c5)],_0x8ebf42(0x1d7)),'class':_0x8ebf42(0x19b)});_0x29cb19[_0x8ebf42(0x1ca)][_0x8ebf42(0x1b8)](this[_0x8ebf42(0x1da)],0x0),this[_0x8ebf42(0x1d6)]({'tag':_0x8ebf42(0x1d1),'attributes':{'class':rh,'tabindex':'-1'},'children':[_0x29cb19,{'tag':_0x8ebf42(0x1ae),'attributes':{'class':oh},'children':[this[_0x8ebf42(0x198)],this[_0x8ebf42(0x1a1)]]}]});}[_0xce0ba9(0x197)](){const _0x374171=_0xce0ba9;this[_0x374171(0x1da)]['on'](_0x374171(0x1c7),()=>{const _0x118984=_0x374171;this[_0x118984(0x1a0)](),this[_0x118984(0x19e)](_0x118984(0x1db));}),this[_0x374171(0x198)][_0x374171(0x1df)]['on'](_0x374171(0x19a),()=>{const _0x29ddb5=_0x374171;this[_0x29ddb5(0x1b7)](),this[_0x29ddb5(0x1d5)](),this[_0x29ddb5(0x19e)](_0x29ddb5(0x1de));}),this['on'](_0x374171(0x1be),_0x455203=>{const _0x843d9a=_0x374171;_0x455203[_0x843d9a(0x1ce)](),this[_0x843d9a(0x1c1)]();});}[_0xce0ba9(0x1a9)](){const _0x1d97ed=_0xce0ba9;this[_0x1d97ed(0x1d3)][_0x1d97ed(0x1b0)](_0x1d97ed(0x1a7),(_0x49a915,_0x5bbeaa)=>{const _0x10c18c=_0x1d97ed;this[_0x10c18c(0x1a0)](),this[_0x10c18c(0x19e)](_0x10c18c(0x1db)),_0x5bbeaa();});}[_0xce0ba9(0x1c1)](){const _0x432f35=_0xce0ba9,_0x577073=this[_0x432f35(0x1c6)]()[_0x432f35(0x1a6)]();_0x577073?this[_0x432f35(0x1b3)](_0x577073)?(this[_0x432f35(0x1b7)](),this[_0x432f35(0x19e)](_0x432f35(0x1d9),_0x577073)):this[_0x432f35(0x1b5)](_0x86b0c(this[_0x432f35(0x1c5)],_0x432f35(0x1c0))):this[_0x432f35(0x1b5)](_0x86b0c(this[_0x432f35(0x1c5)],_0x432f35(0x1cc)));}[_0xce0ba9(0x1d5)](){const _0x4df9e6=_0xce0ba9,_0x18f476=this[_0x4df9e6(0x1c6)]()[_0x4df9e6(0x1a6)](),_0x5e9dc1=!!this[_0x4df9e6(0x198)][_0x4df9e6(0x1a3)];this[_0x4df9e6(0x1a1)][_0x4df9e6(0x19c)]=_0x18f476[_0x4df9e6(0x196)]>0x0&&!_0x5e9dc1;}[_0xce0ba9(0x1b3)](_0x50247b){try{return!!new URL(_0x50247b);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4e9c08=_0x1021;(function(_0x252e14,_0x4000f5){const _0x32e602=_0x1021,_0x5a37df=_0x252e14();while(!![]){try{const _0x52377c=parseInt(_0x32e602(0xef))/0x1*(parseInt(_0x32e602(0x94))/0x2)+parseInt(_0x32e602(0xdf))/0x3+parseInt(_0x32e602(0xd7))/0x4*(-parseInt(_0x32e602(0xb5))/0x5)+parseInt(_0x32e602(0xe2))/0x6*(-parseInt(_0x32e602(0xd3))/0x7)+parseInt(_0x32e602(0xfe))/0x8+parseInt(_0x32e602(0x9f))/0x9*(parseInt(_0x32e602(0x99))/0xa)+parseInt(_0x32e602(0xbd))/0xb*(parseInt(_0x32e602(0xa6))/0xc);if(_0x52377c===_0x4000f5)break;else _0x5a37df['push'](_0x5a37df['shift']());}catch(_0x139c2a){_0x5a37df['push'](_0x5a37df['shift']());}}}(_0x28bb,0xc9ea0));function _0x28bb(){const _0x199844=['12NWyptG','addContextButtonView','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-context-controls__add-context-button','reorganizeChips','_setBalloonPanelContent','ck-ai-chat','ck-reset_all-excluded','clearConversationContextItems','removeContextItem','source','overflowChips','updateResourceState','div','sources','1985sMxwVT','northArrowSouthWest','document','isVisible','_setupTemplate','done','__arrow','southArrowNorthWest','11753786MoSVHG','isLoading','clearCurrentContextItems','_toggleAddContextBalloon','icon','setConversationContext','showSourceResourcesBalloon','northArrowSouth','addDocumentToContext','extendTemplate','createCollection','ck-ai-chat-context-controls__show-more-balloon-panel','defaultPositions','AI_CHAT_CONTEXT_FILE_LABEL','add','hideAddContextBalloonPanel','label','_showSourceResourcesBalloon','_createAddContextBalloonPanelView','render','bind','_bindEventHandlers','21wHYKYv','hideUrlBalloonPanel','populateSourceResourceBalloon','setContainerElement','16508ogXlMr','body','ck-ai-chat-controls-button','ck-ai-chat-context-controls','conversation','show','_addContextToCollection','_createAddContextButtonView','4400199nLmEIu','northArrowSouthEast','submitUrl','3015120JhASiM','isHidden','arrowView','content','tooltip','ck-ai-chat-context-chips-wrapper-balloon','set','addResourceToContext','_addContextBalloonPanelView','element','_urlInputView','_handleUrlSubmit','showAddContextBalloonPanel','1FoDpay','locale','hide','isAnyResourceBalloonVisible','urls','ck-ai-chat-controls_context_show-more-button','_createBalloonButton','ck-ai-chat-context-controls__balloon-button','focus','refreshBalloon','_setupAllBalloonClickOutsideHandlers','bodyCollection','_addUrlContent','ck-ai-chat-context-controls__pending-contexts','cancel','2646976AFquCF','addFileToContext','AI_CHAT_CONTEXT_URL_LABEL','isReadOnly','menuitem','children','closest','files','removeContextItemChip','_createUrlBalloonPanelView','closeSourceResourceBalloon','destroy','fire','enabled','addUrlToContext','type','setContextItemLoading','buttonView','_createResourcesBalloonView','_setAddContextButtonEnabled','_overflowManager','pin','isOn','loadSourceResources','_currentContextsChips','ck-ai-chat-context-controls__balloon-button-source','balloonView','setAddContextOptions','_createBaseBalloonPanel','execute','_resourcesBalloonView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_urlBalloonPanelView','_setupAddContextBalloonClickOutsideHandler','_conversationContextsChips','isEnabled','southArrowNorth','showUrlBalloonPanel','addContextItem','439996UsWnJm','_createArrowView','current','_removeContextFromCollection','_handleAddContextButtonClick','47940XgYkBo','_setupUrlBalloonClickOutsideHandler','_createContextButton','remove','clear','ck-ai-chat-context-controls__add-context-balloon-panel','1665CCYWdf','_getLimiterElement','southArrowNorthEast','AI_CHAT_CONTEXT_ADD_CONTEXT','setTemplate','find','_addContextBalloonConfig'];_0x28bb=function(){return _0x199844;};return _0x28bb();}import{BalloonPanelView as _0x1fa834,ButtonView as _0x2971f0,clickOutsideHandler as _0xf04abc,FileDialogButtonView as _0x355495,IconView as _0xd63c0e,View as _0x56bbf4}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x443d82,IconDocument as _0x68bfbc,IconDocumentOutline as _0x2f94a4,IconDropdownArrow as _0x24ec6c,IconLink as _0x878118,IconPaperClip as _0x4e10a3}from'@ckeditor/ckeditor5-icons';function _0x1021(_0x232a52,_0x1f4559){const _0x28bb80=_0x28bb();return _0x1021=function(_0x1021e7,_0x4ccb6d){_0x1021e7=_0x1021e7-0x87;let _0x72f2f9=_0x28bb80[_0x1021e7];return _0x72f2f9;},_0x1021(_0x232a52,_0x1f4559);}import{AIChatContextItemButtonView as _0x21b72b}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0xa41e7}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x29fa93}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x4374fa}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x58e0fd}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4e9c08(0xc5),_0x4e9c08(0xff),_0x4e9c08(0x10c),_0x4e9c08(0xe9),_0x4e9c08(0xaf),_0x4e9c08(0x115)];const bo=_0x4e9c08(0xda),To=_0x4e9c08(0xfc),Ao=_0x4e9c08(0x9e),ko=_0x4e9c08(0xa9),Eo=_0x4e9c08(0xa8),vo=_0x4e9c08(0xf6),go=_0x4e9c08(0x117),Vo=_0x4e9c08(0xd9),fo=_0x4e9c08(0xe7),Io=_0x4e9c08(0xf4),Po=_0x4e9c08(0xc8),Ro=_0x4e9c08(0xac),So=[_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xb6)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xc4)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xe0)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xbc)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0x91)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xa1)]];export class AIChatContextPanelView extends _0x56bbf4{[_0x4e9c08(0xa7)];[_0x4e9c08(0x116)]=this[_0x4e9c08(0xc7)]();[_0x4e9c08(0x8f)]=this[_0x4e9c08(0xc7)]();[_0x4e9c08(0x112)];[_0x4e9c08(0xea)];[_0x4e9c08(0x8d)];[_0x4e9c08(0xec)];[_0x4e9c08(0x8b)];[_0x4e9c08(0xa5)];[_0x4e9c08(0xfa)];constructor(_0x14bda0,_0x54aa46){const _0x17ab5c=_0x4e9c08;super(_0x14bda0),this[_0x17ab5c(0xfa)]=_0x54aa46,this[_0x17ab5c(0x116)]=this[_0x17ab5c(0xc7)](),this[_0x17ab5c(0x8f)]=this[_0x17ab5c(0xc7)](),this[_0x17ab5c(0xa7)]=this[_0x17ab5c(0xde)](_0x14bda0),this[_0x17ab5c(0xea)]=this[_0x17ab5c(0xcf)](_0x14bda0),this[_0x17ab5c(0x8d)]=this[_0x17ab5c(0x107)](_0x14bda0),this[_0x17ab5c(0x8b)]=this[_0x17ab5c(0x110)](_0x14bda0,_0x54aa46);const _0x7665c8={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':fo,'controlsButton':Vo}};this[_0x17ab5c(0x112)]=new _0x29fa93(_0x14bda0,this[_0x17ab5c(0x116)],_0x7665c8,this[_0x17ab5c(0xfa)],this),this[_0x17ab5c(0xa5)]={'buttonView':this[_0x17ab5c(0xa7)],'balloonView':this[_0x17ab5c(0xea)],'hideMethod':this[_0x17ab5c(0xcc)][_0x17ab5c(0xd1)](this),'showMethod':this[_0x17ab5c(0xee)][_0x17ab5c(0xd1)](this)},this[_0x17ab5c(0xb9)](),this[_0x17ab5c(0xd2)]();}[_0x4e9c08(0xd0)](){const _0x4ef260=_0x4e9c08;super[_0x4ef260(0xd0)](),this[_0x4ef260(0xf9)](),this[_0x4ef260(0x112)][_0x4ef260(0xd6)](this[_0x4ef260(0xeb)]),this[_0x4ef260(0x112)][_0x4ef260(0xaa)]();}[_0x4e9c08(0x109)](){const _0xde2c25=_0x4e9c08;super[_0xde2c25(0x109)](),this[_0xde2c25(0x112)][_0xde2c25(0x109)](),this[_0xde2c25(0x8b)][_0xde2c25(0x109)]();}[_0x4e9c08(0x93)](_0x1c2c1e,_0x4ef4e6){const _0x2ca2df=_0x4e9c08,_0x4dbdbe=this[_0x2ca2df(0x9b)](_0x1c2c1e,_0x2ca2df(0x96),!0x0,_0x4ef4e6);this[_0x2ca2df(0xdd)](_0x4dbdbe,this[_0x2ca2df(0x116)]),this[_0x2ca2df(0x112)][_0x2ca2df(0xaa)]();}[_0x4e9c08(0xaf)](_0x3839f8){const _0x2cdf49=_0x4e9c08;this[_0x2cdf49(0x97)](_0x3839f8,this[_0x2cdf49(0x116)]),this[_0x2cdf49(0x97)](_0x3839f8,this[_0x2cdf49(0x112)][_0x2cdf49(0xb1)]),this[_0x2cdf49(0x112)][_0x2cdf49(0xaa)]();}[_0x4e9c08(0x10e)](_0x27c616,_0x5c35d7){const _0x43aa34=_0x4e9c08;let _0x235678=this[_0x43aa34(0x116)][_0x43aa34(0xa4)](_0x59d48=>_0x59d48['id']===_0x27c616);_0x235678||(_0x235678=this[_0x43aa34(0x112)][_0x43aa34(0xb1)][_0x43aa34(0xa4)](_0x534787=>_0x534787['id']===_0x27c616)),_0x235678&&(_0x235678[_0x43aa34(0xbe)]=_0x5c35d7);}[_0x4e9c08(0xc2)](_0x305293){const _0x5b4bdd=_0x4e9c08;this[_0x5b4bdd(0x8f)][_0x5b4bdd(0x9d)]();for(const _0x1048e3 of _0x305293){const _0x528db3=this[_0x5b4bdd(0x9b)](_0x1048e3,_0x5b4bdd(0xdb),!0x1,!0x1);this[_0x5b4bdd(0xdd)](_0x528db3,this[_0x5b4bdd(0x8f)]);}}[_0x4e9c08(0xbf)](){const _0x31d78f=_0x4e9c08;this[_0x31d78f(0x116)][_0x31d78f(0x9d)](),this[_0x31d78f(0x112)][_0x31d78f(0x9d)]();}[_0x4e9c08(0xae)](){const _0x108fa7=_0x4e9c08;this[_0x108fa7(0x8f)][_0x108fa7(0x9d)]();}[_0x4e9c08(0xb2)](_0x2bf51e,_0x2d83f4,_0x31559e){const _0x23f364=_0x4e9c08;this[_0x23f364(0x8b)][_0x23f364(0xb2)](_0x2bf51e,_0x2d83f4,_0x31559e);}[_0x4e9c08(0xcc)](){const _0x59bd39=_0x4e9c08;this[_0x59bd39(0xc0)](!0x1);}[_0x4e9c08(0xee)](){const _0x36141f=_0x4e9c08;this[_0x36141f(0xc0)](!0x0);}[_0x4e9c08(0xd4)](){const _0x4f56a0=_0x4e9c08;this[_0x4f56a0(0x8d)][_0x4f56a0(0xf1)](),this[_0x4f56a0(0xa7)][_0x4f56a0(0x114)]=!0x1,this[_0x4f56a0(0xec)]&&this[_0x4f56a0(0xec)][_0x4f56a0(0x9d)]();}[_0x4e9c08(0x92)](){const _0x20e1f1=_0x4e9c08;this[_0x20e1f1(0x8d)][_0x20e1f1(0xdc)](),this[_0x20e1f1(0xa7)][_0x20e1f1(0x114)]=!0x0;}[_0x4e9c08(0xce)](_0x515306){const _0x226b7d=_0x4e9c08;this[_0x226b7d(0x8b)][_0x226b7d(0xc3)](_0x515306),this[_0x226b7d(0xa7)][_0x226b7d(0x114)]=!0x0;}[_0x4e9c08(0xd5)](_0x499689,_0x3e1864,_0x230d39,_0x47e238){const _0x5875b2=_0x4e9c08;this[_0x5875b2(0x8b)][_0x5875b2(0xd5)](_0x499689,_0x230d39,_0x47e238);}[_0x4e9c08(0x108)](_0x3c5687){const _0x46cce6=_0x4e9c08;this[_0x46cce6(0x8b)][_0x46cce6(0x108)](_0x3c5687),this[_0x46cce6(0xa7)][_0x46cce6(0x114)]=!0x1;}[_0x4e9c08(0x88)](_0x2844cb){const _0x854aa5=_0x4e9c08;this[_0x854aa5(0xab)](this[_0x854aa5(0xea)],this[_0x854aa5(0xf0)],_0x2844cb),this[_0x854aa5(0x111)](_0x2844cb);}[_0x4e9c08(0x111)](_0x3ac439){const _0x46290e=_0x4e9c08,_0x313bf0=!_0x3ac439[_0x46290e(0xb7)][_0x46290e(0xe3)]&&_0x3ac439[_0x46290e(0xb7)][_0x46290e(0x10b)],_0x2c97c7=_0x3ac439[_0x46290e(0xf3)][_0x46290e(0x10b)],_0x36ca7b=_0x3ac439[_0x46290e(0x105)][_0x46290e(0x10b)];this[_0x46290e(0xa7)][_0x46290e(0x90)]=_0x313bf0||_0x2c97c7||_0x36ca7b;}[_0x4e9c08(0xb9)](){const _0x2e57d8=_0x4e9c08;this[_0x2e57d8(0xa3)]({'tag':_0x2e57d8(0xb3),'attributes':{'class':[bo,_0x2e57d8(0xad)]},'children':[{'tag':_0x2e57d8(0xb3),'attributes':{'class':To},'children':this[_0x2e57d8(0x116)]}]});}[_0x4e9c08(0xd2)](){const _0x13395d=_0x4e9c08;this[_0x13395d(0xa7)]['on'](_0x13395d(0x8a),()=>{const _0x206d17=_0x13395d;this[_0x206d17(0x98)]();});}[_0x4e9c08(0xde)](_0x4a15d8){const _0x4629ff=_0x4e9c08,_0x85cac4=new _0x2971f0(_0x4a15d8);return _0x85cac4[_0x4629ff(0xe8)]({'label':_0x4374fa(_0x4a15d8,_0x4629ff(0xa2)),'class':Vo+'\x20'+ko,'icon':_0x4e10a3,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x85cac4;}[_0x4e9c08(0xcf)](_0x36f452){const _0x11d111=_0x4e9c08;return this[_0x11d111(0x89)](_0x36f452,Ao);}[_0x4e9c08(0x107)](_0x3f15b1){const _0x467b1d=_0x4e9c08,_0x423775=this[_0x467b1d(0x89)](_0x3f15b1,Eo);return this[_0x467b1d(0xfb)](_0x423775,_0x3f15b1),_0x423775;}[_0x4e9c08(0x110)](_0x446865,_0x4fc519){const _0x44d8c5=_0x4e9c08;return new _0x58e0fd(_0x446865,_0x4fc519,{'onBackToContext':()=>{const _0x534602=_0x1021;this[_0x534602(0xee)](),this[_0x534602(0xea)][_0x534602(0x113)]({'target':this[_0x534602(0xa7)][_0x534602(0xeb)],'limiter':this[_0x534602(0xa0)](),'positions':So});},'onResourceSelected':(_0x4f746e,_0x42e664)=>{const _0x392c1b=_0x1021;this[_0x392c1b(0x10a)](_0x392c1b(0xe9),{'source':_0x4f746e,'resource':_0x42e664});},'onLoadSourceResources':_0x19d638=>{const _0x4b945c=_0x1021;this[_0x4b945c(0x10a)](_0x4b945c(0x115),_0x19d638);},'onBalloonClosed':()=>{const _0x505512=_0x1021;this[_0x505512(0xa7)][_0x505512(0x114)]=!0x1;},'getLimiterElement':()=>this[_0x44d8c5(0xa0)](),'getTargetElement':()=>this[_0x44d8c5(0xa7)][_0x44d8c5(0xeb)]});}[_0x4e9c08(0xa0)](){const _0x37e790=_0x4e9c08;return this[_0x37e790(0xeb)]?.[_0x37e790(0x104)]('.'+Ro)||document[_0x37e790(0xd8)];}[_0x4e9c08(0x89)](_0x2cea4c,_0x5c7564){const _0x370fd7=_0x4e9c08,_0x9f42e8=new _0x1fa834(_0x2cea4c);return _0x9f42e8[_0x370fd7(0xc6)]({'attributes':{'class':_0x5c7564}}),this[_0x370fd7(0xfa)][_0x370fd7(0xcb)](_0x9f42e8),_0x9f42e8;}[_0x4e9c08(0xab)](_0x3f3756,_0x192164,_0x4516f0){const _0xa2e6b7=_0x4e9c08;if(_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0x9d)](),!_0x4516f0[_0xa2e6b7(0xb7)][_0xa2e6b7(0xe3)]&&_0x4516f0[_0xa2e6b7(0xb7)][_0xa2e6b7(0x10b)]){const _0x377d5e=this[_0xa2e6b7(0xf5)](_0x192164,{'label':_0x4374fa(_0x192164,_0xa2e6b7(0x8c)),'icon':_0x68bfbc});_0x377d5e['on'](_0xa2e6b7(0x8a),()=>{const _0x1b5e40=_0xa2e6b7;this[_0x1b5e40(0x10a)](_0x1b5e40(0xc5)),this[_0x1b5e40(0xcc)]();}),_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0xcb)](_0x377d5e);}if(_0x4516f0[_0xa2e6b7(0xf3)][_0xa2e6b7(0x10b)]){const _0x4b9317=this[_0xa2e6b7(0xf5)](_0x192164,{'label':_0x4374fa(_0x192164,_0xa2e6b7(0x100)),'icon':_0x878118});_0x4b9317['on'](_0xa2e6b7(0x8a),()=>{const _0x1fe7f7=_0xa2e6b7;this[_0x1fe7f7(0xcc)](),this[_0x1fe7f7(0x92)](),this[_0x1fe7f7(0x8d)][_0x1fe7f7(0x113)]({'target':this[_0x1fe7f7(0xa7)][_0x1fe7f7(0xeb)],'limiter':this[_0x1fe7f7(0xa0)](),'positions':So}),this[_0x1fe7f7(0xec)][_0x1fe7f7(0xf7)]();}),_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0xcb)](_0x4b9317);}if(_0x4516f0[_0xa2e6b7(0x105)][_0xa2e6b7(0x10b)]){const _0x51d48b=new _0x355495(_0x192164);_0x51d48b[_0xa2e6b7(0xe8)]({'label':_0x4374fa(_0x192164,_0xa2e6b7(0xca)),'icon':_0x443d82,'withText':!0x0,'tooltip':!0x0,'class':vo,'allowMultipleFiles':!0x0}),_0x51d48b['on'](_0xa2e6b7(0xba),(_0x40ff0c,_0x47b439)=>{const _0x33bdea=_0xa2e6b7;this[_0x33bdea(0x10a)](_0x33bdea(0xff),_0x47b439),this[_0x33bdea(0xcc)]();}),_0x51d48b[_0xa2e6b7(0xe6)]=!0x0,_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0xcb)](_0x51d48b);}for(const _0x1d4f5f of _0x4516f0[_0xa2e6b7(0xb4)]){const _0x531991=this[_0xa2e6b7(0xf5)](_0x192164,{'label':_0x1d4f5f[_0xa2e6b7(0xcd)],'icon':_0x1d4f5f[_0xa2e6b7(0xc1)]||_0x2f94a4,'type':_0xa2e6b7(0xb0)});_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0xcb)](_0x531991),_0x531991['on'](_0xa2e6b7(0x8a),()=>{const _0x243f88=_0xa2e6b7;this[_0x243f88(0xcc)](),this[_0x243f88(0xce)](_0x1d4f5f);});}}[_0x4e9c08(0xfb)](_0x5730b6,_0x18874a){const _0x265449=_0x4e9c08;this[_0x265449(0xec)]=new _0xa41e7(_0x18874a),this[_0x265449(0xec)]['on'](_0x265449(0xe1),(_0x12fb4c,_0x5d5a72)=>{const _0x5cdabe=_0x265449;this[_0x5cdabe(0xed)](_0x5d5a72);}),this[_0x265449(0xec)]['on'](_0x265449(0xfd),()=>{const _0xe23011=_0x265449;this[_0xe23011(0xd4)](),this[_0xe23011(0xee)](),this[_0xe23011(0xea)][_0xe23011(0x113)]({'target':this[_0xe23011(0xa7)][_0xe23011(0xeb)],'limiter':this[_0xe23011(0xa0)](),'positions':So});}),this[_0x265449(0xec)]['on'](_0x265449(0xf8),()=>{const _0x50ab1b=_0x265449;this[_0x50ab1b(0x8d)][_0x50ab1b(0xb8)]&&this[_0x50ab1b(0x8d)][_0x50ab1b(0x113)]({'target':this[_0x50ab1b(0xa7)][_0x50ab1b(0xeb)],'limiter':this[_0x50ab1b(0xa0)](),'positions':So});}),_0x5730b6[_0x265449(0xe5)][_0x265449(0xcb)](this[_0x265449(0xec)]);}[_0x4e9c08(0xf5)](_0x512bd9,_0x50990a){const _0x28d4e7=_0x4e9c08,_0x13f60d=_0x28d4e7(0xb0)===_0x50990a[_0x28d4e7(0x10d)]?new SourcesBalloonButtonView(_0x512bd9):new _0x2971f0(_0x512bd9);return _0x13f60d[_0x28d4e7(0xe8)]({'label':_0x50990a[_0x28d4e7(0xcd)],'icon':_0x50990a[_0x28d4e7(0xc1)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':vo}),_0x13f60d;}[_0x4e9c08(0xf9)](){const _0x532d2f=_0x4e9c08;this[_0x532d2f(0x8e)](),this[_0x532d2f(0x9a)]();}[_0x4e9c08(0x9a)](){const _0x24c174=_0x4e9c08;_0xf04abc({'emitter':this[_0x24c174(0x8d)],'contextElements':[this[_0x24c174(0x8d)][_0x24c174(0xeb)]],'callback':()=>{const _0x5877fb=_0x24c174;this[_0x5877fb(0xd4)]();},'activator':()=>this[_0x24c174(0x8d)][_0x24c174(0xb8)]});}[_0x4e9c08(0xc0)](_0x28c6f0){const _0x31689a=_0x4e9c08,_0x38c726=this[_0x31689a(0xa5)];_0x38c726[_0x31689a(0x10f)][_0x31689a(0x114)]=_0x28c6f0,_0x28c6f0?_0x38c726[_0x31689a(0x87)][_0x31689a(0xdc)]():_0x38c726[_0x31689a(0x87)][_0x31689a(0xf1)]();}[_0x4e9c08(0x8e)](){const _0x4d9a36=_0x4e9c08,{balloonView:_0x13ac51,buttonView:_0x48db7d,hideMethod:_0x5e897a}=this[_0x4d9a36(0xa5)];_0xf04abc({'emitter':_0x13ac51,'contextElements':[_0x13ac51[_0x4d9a36(0xeb)],_0x48db7d[_0x4d9a36(0xeb)]],'callback':()=>{_0x5e897a();},'activator':()=>_0x48db7d[_0x4d9a36(0x114)]&&!this[_0x4d9a36(0x8d)][_0x4d9a36(0xb8)]&&!this[_0x4d9a36(0x8b)][_0x4d9a36(0xf2)]()});}[_0x4e9c08(0x9b)](_0x2e2097,_0x245663,_0xeec991=!0x1,_0x2b04f8=!0x1){const _0x416035=_0x4e9c08,_0x146c3c=_0x416035(0xdb)===_0x245663||!0x0===_0x2e2097[_0x416035(0x101)],_0x1b149d=new _0x21b72b(this[_0x416035(0xf0)],_0x2e2097,_0x146c3c,_0xeec991,_0x2b04f8);return _0x146c3c||_0x1b149d['on'](_0x416035(0x106),()=>{const _0x3de272=_0x416035;this[_0x3de272(0x10a)](_0x3de272(0xaf),_0x1b149d['id']);}),_0x1b149d;}[_0x4e9c08(0xdd)](_0x354f2d,_0x570517){const _0x2423e4=_0x4e9c08;_0x570517[_0x2423e4(0xcb)](_0x354f2d,0x0);}[_0x4e9c08(0x97)](_0x208e9a,_0x396011){const _0x4351a3=_0x4e9c08,_0x40bf03=_0x396011[_0x4351a3(0xa4)](_0x151500=>_0x151500['id']===_0x208e9a);_0x40bf03&&_0x396011[_0x4351a3(0x9c)](_0x40bf03);}[_0x4e9c08(0x98)](){const _0x341ba0=_0x4e9c08;this[_0x341ba0(0xa7)][_0x341ba0(0x114)]?this[_0x341ba0(0xcc)]():(this[_0x341ba0(0xee)](),this[_0x341ba0(0xea)][_0x341ba0(0x113)]({'target':this[_0x341ba0(0xa7)][_0x341ba0(0xeb)],'limiter':this[_0x341ba0(0xa0)](),'positions':So}));}[_0x4e9c08(0xed)](_0x4dcc7c){const _0x4c3722=_0x4e9c08;this[_0x4c3722(0xec)][_0x4c3722(0x9d)](),this[_0x4c3722(0xd4)](),this[_0x4c3722(0x10a)](_0x4c3722(0x10c),_0x4dcc7c);}}export class SourcesBalloonButtonView extends _0x2971f0{[_0x4e9c08(0xe4)];constructor(_0x871a26){const _0x3b5f64=_0x4e9c08;super(_0x871a26),this[_0x3b5f64(0xe8)]({'withText':!0x0,'role':_0x3b5f64(0x102)}),this[_0x3b5f64(0xe4)]=this[_0x3b5f64(0x95)](),this[_0x3b5f64(0xc6)]({'attributes':{'class':[go]}});}[_0x4e9c08(0xd0)](){const _0x1ddc0a=_0x4e9c08;super[_0x1ddc0a(0xd0)](),this[_0x1ddc0a(0x103)][_0x1ddc0a(0xcb)](this[_0x1ddc0a(0xe4)]);}[_0x4e9c08(0x95)](){const _0x54b3cb=_0x4e9c08,_0x158986=new _0xd63c0e();return _0x158986[_0x54b3cb(0xe5)]=_0x24ec6c,_0x158986[_0x54b3cb(0xc6)]({'attributes':{'class':go+_0x54b3cb(0xbb)}}),_0x158986;}}
|
|
23
|
+
const _0x36c900=_0x1d44;(function(_0x468e21,_0x57f3af){const _0x56e174=_0x1d44,_0x467215=_0x468e21();while(!![]){try{const _0x2e1c58=-parseInt(_0x56e174(0x22c))/0x1*(-parseInt(_0x56e174(0x1ec))/0x2)+parseInt(_0x56e174(0x1d9))/0x3*(-parseInt(_0x56e174(0x216))/0x4)+-parseInt(_0x56e174(0x1dc))/0x5*(parseInt(_0x56e174(0x20e))/0x6)+-parseInt(_0x56e174(0x22e))/0x7+-parseInt(_0x56e174(0x1cb))/0x8+parseInt(_0x56e174(0x1d8))/0x9+parseInt(_0x56e174(0x239))/0xa*(parseInt(_0x56e174(0x1fc))/0xb);if(_0x2e1c58===_0x57f3af)break;else _0x467215['push'](_0x467215['shift']());}catch(_0x8c1909){_0x467215['push'](_0x467215['shift']());}}}(_0x353c,0x4b7ae));import{BalloonPanelView as _0x41d97f,ButtonView as _0x3d94e0,clickOutsideHandler as _0x45bcea,FileDialogButtonView as _0xeb0112,IconView as _0x20972b,View as _0x26500c}from'ckeditor5/src/ui.js';function _0x353c(){const _0x1af593=['ck-ai-chat-context-controls','extendTemplate','render','current','setConversationContext','ck-ai-chat-context-controls__add-context-button','_urlBalloonPanelView','northArrowSouthWest','hideAddContextBalloonPanel','4777344WScepG','7374YHlvpj','destroy','_overflowManager','4670SXsbPI','_createAddContextButtonView','setContainerElement','document','clear','closeSourceResourceBalloon','ck-ai-chat-context-controls__add-context-balloon-panel','div','createCollection','__arrow','southArrowNorthEast','setContextItemLoading','ck-ai-chat','arrowView','ck-reset_all-excluded','_setupTemplate','830658elXToB','balloonView','addFileToContext','body','children','enabled','buttonView','label','done','_setupAddContextBalloonClickOutsideHandler','type','hide','_setupAllBalloonClickOutsideHandlers','focus','addContextButtonView','showAddContextBalloonPanel','330803bvCjGf','ck-ai-chat-context-chips-wrapper-balloon','isAnyResourceBalloonVisible','ck-ai-chat-context-controls__balloon-button-source','isLoading','AI_CHAT_CONTEXT_FILE_LABEL','_handleAddContextButtonClick','clearConversationContextItems','_handleUrlSubmit','northArrowSouth','ck-ai-chat-context-controls__show-more-balloon-panel','_createResourcesBalloonView','_resourcesBalloonView','_urlInputView','_showSourceResourcesBalloon','set','refreshBalloon','northArrowSouthEast','258MYAuJy','southArrowNorthWest','menuitem','AI_CHAT_CONTEXT_URL_LABEL','urls','reorganizeChips','ck-ai-chat-context-controls__url-balloon-panel','showUrlBalloonPanel','232PVEXcY','bind','addResourceToContext','locale','populateSourceResourceBalloon','_addContextToCollection','_addContextBalloonConfig','ck-ai-chat-context-controls__pending-contexts','bodyCollection','_currentContextsChips','_addUrlContent','updateResourceState','conversation','addContextItem','show','ck-ai-chat-context-controls__balloon-button','find','addUrlToContext','defaultPositions','_createBalloonButton','removeContextItemChip','_createUrlBalloonPanelView','1YRMRsZ','execute','2605050zdhylq','_createBaseBalloonPanel','files','icon','sources','showSourceResourcesBalloon','pin','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_addContextBalloonPanelView','add','source','80AMkvQO','_toggleAddContextBalloon','isHidden','isReadOnly','overflowChips','remove','loadSourceResources','hideUrlBalloonPanel','_conversationContextsChips','_setupUrlBalloonClickOutsideHandler','_getLimiterElement','_removeContextFromCollection','isOn','ck-ai-chat-controls-button','AI_CHAT_CONTEXT_ADD_CONTEXT','removeContextItem','cancel','closest','_createArrowView','setAddContextOptions','tooltip','_createAddContextBalloonPanelView','fire','element','ck-ai-chat-controls_context_show-more-button','isVisible','_bindEventHandlers','clearCurrentContextItems','addDocumentToContext','southArrowNorth','content','isEnabled','setTemplate','submitUrl','2581496JfEkdf','_createContextButton','_setAddContextButtonEnabled','_setBalloonPanelContent'];_0x353c=function(){return _0x1af593;};return _0x353c();}import{IconBrowseFiles as _0x377068,IconDocument as _0x113d1e,IconDocumentOutline as _0x3f90d,IconDropdownArrow as _0x5d5851,IconLink as _0x566031,IconPaperClip as _0x36ff08}from'@ckeditor/ckeditor5-icons';function _0x1d44(_0x5f3978,_0x469145){const _0x353cf5=_0x353c();return _0x1d44=function(_0x1d4482,_0x1f2bc9){_0x1d4482=_0x1d4482-0x1b9;let _0x429807=_0x353cf5[_0x1d4482];return _0x429807;},_0x1d44(_0x5f3978,_0x469145);}import{AIChatContextItemButtonView as _0x592154}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x39d29c}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x1fe335}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1dabd2}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x33a431}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x36c900(0x1c5),_0x36c900(0x1ee),_0x36c900(0x227),_0x36c900(0x218),_0x36c900(0x248),_0x36c900(0x23f)];const vo=_0x36c900(0x1cf),go=_0x36c900(0x21d),Vo=_0x36c900(0x1e2),Io=_0x36c900(0x1d4),Po=_0x36c900(0x214),Ro=_0x36c900(0x225),So=_0x36c900(0x1ff),uo=_0x36c900(0x246),Uo=_0x36c900(0x1fd),xo=_0x36c900(0x1c1),fo=_0x36c900(0x206),Lo=_0x36c900(0x1e8),No=[_0x41d97f[_0x36c900(0x228)][_0x36c900(0x1d6)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x205)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x20d)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x20f)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x1c6)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x1e6)]];export class AIChatContextPanelView extends _0x26500c{[_0x36c900(0x1fa)];[_0x36c900(0x21f)]=this[_0x36c900(0x1e4)]();[_0x36c900(0x241)]=this[_0x36c900(0x1e4)]();[_0x36c900(0x1db)];[_0x36c900(0x236)];[_0x36c900(0x1d5)];[_0x36c900(0x209)];[_0x36c900(0x208)];[_0x36c900(0x21c)];[_0x36c900(0x21e)];constructor(_0x3bed45,_0x27d6f8){const _0x269bbe=_0x36c900;super(_0x3bed45),this[_0x269bbe(0x21e)]=_0x27d6f8,this[_0x269bbe(0x21f)]=this[_0x269bbe(0x1e4)](),this[_0x269bbe(0x241)]=this[_0x269bbe(0x1e4)](),this[_0x269bbe(0x1fa)]=this[_0x269bbe(0x1dd)](_0x3bed45),this[_0x269bbe(0x236)]=this[_0x269bbe(0x1be)](_0x3bed45),this[_0x269bbe(0x1d5)]=this[_0x269bbe(0x22b)](_0x3bed45),this[_0x269bbe(0x208)]=this[_0x269bbe(0x207)](_0x3bed45,_0x27d6f8);const _0x1f3d57={'cssClasses':{'showMoreButton':xo,'showMoreBalloon':fo,'overflowContainer':Uo,'controlsButton':uo}};this[_0x269bbe(0x1db)]=new _0x1fe335(_0x3bed45,this[_0x269bbe(0x21f)],_0x1f3d57,this[_0x269bbe(0x21e)],this),this[_0x269bbe(0x21c)]={'buttonView':this[_0x269bbe(0x1fa)],'balloonView':this[_0x269bbe(0x236)],'hideMethod':this[_0x269bbe(0x1d7)][_0x269bbe(0x217)](this),'showMethod':this[_0x269bbe(0x1fb)][_0x269bbe(0x217)](this)},this[_0x269bbe(0x1eb)](),this[_0x269bbe(0x1c3)]();}[_0x36c900(0x1d1)](){const _0x11b36f=_0x36c900;super[_0x11b36f(0x1d1)](),this[_0x11b36f(0x1f8)](),this[_0x11b36f(0x1db)][_0x11b36f(0x1de)](this[_0x11b36f(0x1c0)]),this[_0x11b36f(0x1db)][_0x11b36f(0x213)]();}[_0x36c900(0x1da)](){const _0x1cfa83=_0x36c900;super[_0x1cfa83(0x1da)](),this[_0x1cfa83(0x1db)][_0x1cfa83(0x1da)](),this[_0x1cfa83(0x208)][_0x1cfa83(0x1da)]();}[_0x36c900(0x223)](_0x3835bf,_0x58697c){const _0x42f54f=_0x36c900,_0x208439=this[_0x42f54f(0x1cc)](_0x3835bf,_0x42f54f(0x1d2),!0x0,_0x58697c);this[_0x42f54f(0x21b)](_0x208439,this[_0x42f54f(0x21f)]),this[_0x42f54f(0x1db)][_0x42f54f(0x213)]();}[_0x36c900(0x248)](_0x4f3a48){const _0x21e542=_0x36c900;this[_0x21e542(0x244)](_0x4f3a48,this[_0x21e542(0x21f)]),this[_0x21e542(0x244)](_0x4f3a48,this[_0x21e542(0x1db)][_0x21e542(0x23d)]),this[_0x21e542(0x1db)][_0x21e542(0x213)]();}[_0x36c900(0x1e7)](_0xcb3710,_0x5b9b19){const _0x44455=_0x36c900;let _0x36de8c=this[_0x44455(0x21f)][_0x44455(0x226)](_0x8b06da=>_0x8b06da['id']===_0xcb3710);_0x36de8c||(_0x36de8c=this[_0x44455(0x1db)][_0x44455(0x23d)][_0x44455(0x226)](_0x21c1cc=>_0x21c1cc['id']===_0xcb3710)),_0x36de8c&&(_0x36de8c[_0x44455(0x200)]=_0x5b9b19);}[_0x36c900(0x1d3)](_0x3a5836){const _0x5648bb=_0x36c900;this[_0x5648bb(0x241)][_0x5648bb(0x1e0)]();for(const _0x1f87d1 of _0x3a5836){const _0x3e40e8=this[_0x5648bb(0x1cc)](_0x1f87d1,_0x5648bb(0x222),!0x1,!0x1);this[_0x5648bb(0x21b)](_0x3e40e8,this[_0x5648bb(0x241)]);}}[_0x36c900(0x1c4)](){const _0x353628=_0x36c900;this[_0x353628(0x21f)][_0x353628(0x1e0)](),this[_0x353628(0x1db)][_0x353628(0x1e0)]();}[_0x36c900(0x203)](){const _0x40e192=_0x36c900;this[_0x40e192(0x241)][_0x40e192(0x1e0)]();}[_0x36c900(0x221)](_0x2084cc,_0xf7380f,_0x41adbe){const _0x8e663b=_0x36c900;this[_0x8e663b(0x208)][_0x8e663b(0x221)](_0x2084cc,_0xf7380f,_0x41adbe);}[_0x36c900(0x1d7)](){const _0x141624=_0x36c900;this[_0x141624(0x23a)](!0x1);}[_0x36c900(0x1fb)](){const _0x7f4bfc=_0x36c900;this[_0x7f4bfc(0x23a)](!0x0);}[_0x36c900(0x240)](){const _0x17284d=_0x36c900;this[_0x17284d(0x1d5)][_0x17284d(0x1f7)](),this[_0x17284d(0x1fa)][_0x17284d(0x245)]=!0x1,this[_0x17284d(0x209)]&&this[_0x17284d(0x209)][_0x17284d(0x1e0)]();}[_0x36c900(0x215)](){const _0x4491b0=_0x36c900;this[_0x4491b0(0x1d5)][_0x4491b0(0x224)](),this[_0x4491b0(0x1fa)][_0x4491b0(0x245)]=!0x0;}[_0x36c900(0x20a)](_0x5c7b1f){const _0x53befb=_0x36c900;this[_0x53befb(0x208)][_0x53befb(0x233)](_0x5c7b1f),this[_0x53befb(0x1fa)][_0x53befb(0x245)]=!0x0;}[_0x36c900(0x21a)](_0x520e27,_0x57db92,_0x3df67a,_0x573a76){const _0x1c0075=_0x36c900;this[_0x1c0075(0x208)][_0x1c0075(0x21a)](_0x520e27,_0x3df67a,_0x573a76);}[_0x36c900(0x1e1)](_0x6cc4ba){const _0x5255ce=_0x36c900;this[_0x5255ce(0x208)][_0x5255ce(0x1e1)](_0x6cc4ba),this[_0x5255ce(0x1fa)][_0x5255ce(0x245)]=!0x1;}[_0x36c900(0x1bc)](_0x370938){const _0x4c0e4e=_0x36c900;this[_0x4c0e4e(0x1ce)](this[_0x4c0e4e(0x236)],this[_0x4c0e4e(0x219)],_0x370938),this[_0x4c0e4e(0x1cd)](_0x370938);}[_0x36c900(0x1cd)](_0x38503d){const _0x132847=_0x36c900,_0x2dc6f4=!_0x38503d[_0x132847(0x1df)][_0x132847(0x23b)]&&_0x38503d[_0x132847(0x1df)][_0x132847(0x1f1)],_0x532051=_0x38503d[_0x132847(0x212)][_0x132847(0x1f1)],_0x209d21=_0x38503d[_0x132847(0x230)][_0x132847(0x1f1)];this[_0x132847(0x1fa)][_0x132847(0x1c8)]=_0x2dc6f4||_0x532051||_0x209d21;}[_0x36c900(0x1eb)](){const _0x3e1057=_0x36c900;this[_0x3e1057(0x1c9)]({'tag':_0x3e1057(0x1e3),'attributes':{'class':[vo,_0x3e1057(0x1ea)]},'children':[{'tag':_0x3e1057(0x1e3),'attributes':{'class':go},'children':this[_0x3e1057(0x21f)]}]});}[_0x36c900(0x1c3)](){const _0x37704d=_0x36c900;this[_0x37704d(0x1fa)]['on'](_0x37704d(0x22d),()=>{const _0x5f24fd=_0x37704d;this[_0x5f24fd(0x202)]();});}[_0x36c900(0x1dd)](_0x155cbf){const _0x1896a1=_0x36c900,_0x33075a=new _0x3d94e0(_0x155cbf);return _0x33075a[_0x1896a1(0x20b)]({'label':_0x1dabd2(_0x155cbf,_0x1896a1(0x247)),'class':uo+'\x20'+Io,'icon':_0x36ff08,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x33075a;}[_0x36c900(0x1be)](_0x993491){const _0x5cbd55=_0x36c900;return this[_0x5cbd55(0x22f)](_0x993491,Vo);}[_0x36c900(0x22b)](_0x57e9b2){const _0x246b1a=_0x36c900,_0x7e5be3=this[_0x246b1a(0x22f)](_0x57e9b2,Po);return this[_0x246b1a(0x220)](_0x7e5be3,_0x57e9b2),_0x7e5be3;}[_0x36c900(0x207)](_0xe84e5a,_0x543cf9){const _0x5c94c0=_0x36c900;return new _0x33a431(_0xe84e5a,_0x543cf9,{'onBackToContext':()=>{const _0x1b2221=_0x1d44;this[_0x1b2221(0x1fb)](),this[_0x1b2221(0x236)][_0x1b2221(0x234)]({'target':this[_0x1b2221(0x1fa)][_0x1b2221(0x1c0)],'limiter':this[_0x1b2221(0x243)](),'positions':No});},'onResourceSelected':(_0x175f6d,_0x396e4a)=>{const _0x3c5b9c=_0x1d44;this[_0x3c5b9c(0x1bf)](_0x3c5b9c(0x218),{'source':_0x175f6d,'resource':_0x396e4a});},'onLoadSourceResources':_0x307491=>{const _0x580698=_0x1d44;this[_0x580698(0x1bf)](_0x580698(0x23f),_0x307491);},'onBalloonClosed':()=>{const _0x1893cf=_0x1d44;this[_0x1893cf(0x1fa)][_0x1893cf(0x245)]=!0x1;},'getLimiterElement':()=>this[_0x5c94c0(0x243)](),'getTargetElement':()=>this[_0x5c94c0(0x1fa)][_0x5c94c0(0x1c0)]});}[_0x36c900(0x243)](){const _0x129f1e=_0x36c900;return this[_0x129f1e(0x1c0)]?.[_0x129f1e(0x1ba)]('.'+Lo)||document[_0x129f1e(0x1ef)];}[_0x36c900(0x22f)](_0x202cc0,_0x5c8b31){const _0x5276f1=_0x36c900,_0x479ad3=new _0x41d97f(_0x202cc0);return _0x479ad3[_0x5276f1(0x1d0)]({'attributes':{'class':_0x5c8b31}}),this[_0x5276f1(0x21e)][_0x5276f1(0x237)](_0x479ad3),_0x479ad3;}[_0x36c900(0x1ce)](_0x2a5b32,_0x28bb9e,_0x4894be){const _0x3ce011=_0x36c900;if(_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x1e0)](),!_0x4894be[_0x3ce011(0x1df)][_0x3ce011(0x23b)]&&_0x4894be[_0x3ce011(0x1df)][_0x3ce011(0x1f1)]){const _0x5ad025=this[_0x3ce011(0x229)](_0x28bb9e,{'label':_0x1dabd2(_0x28bb9e,_0x3ce011(0x235)),'icon':_0x113d1e});_0x5ad025['on'](_0x3ce011(0x22d),()=>{const _0x22c55b=_0x3ce011;this[_0x22c55b(0x1bf)](_0x22c55b(0x1c5)),this[_0x22c55b(0x1d7)]();}),_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x237)](_0x5ad025);}if(_0x4894be[_0x3ce011(0x212)][_0x3ce011(0x1f1)]){const _0x1eeda6=this[_0x3ce011(0x229)](_0x28bb9e,{'label':_0x1dabd2(_0x28bb9e,_0x3ce011(0x211)),'icon':_0x566031});_0x1eeda6['on'](_0x3ce011(0x22d),()=>{const _0x5cee07=_0x3ce011;this[_0x5cee07(0x1d7)](),this[_0x5cee07(0x215)](),this[_0x5cee07(0x1d5)][_0x5cee07(0x234)]({'target':this[_0x5cee07(0x1fa)][_0x5cee07(0x1c0)],'limiter':this[_0x5cee07(0x243)](),'positions':No}),this[_0x5cee07(0x209)][_0x5cee07(0x1f9)]();}),_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x237)](_0x1eeda6);}if(_0x4894be[_0x3ce011(0x230)][_0x3ce011(0x1f1)]){const _0x2caf5b=new _0xeb0112(_0x28bb9e);_0x2caf5b[_0x3ce011(0x20b)]({'label':_0x1dabd2(_0x28bb9e,_0x3ce011(0x201)),'icon':_0x377068,'withText':!0x0,'tooltip':!0x0,'class':Ro,'allowMultipleFiles':!0x0}),_0x2caf5b['on'](_0x3ce011(0x1f4),(_0x17340b,_0x516c3e)=>{const _0x3646a1=_0x3ce011;this[_0x3646a1(0x1bf)](_0x3646a1(0x1ee),_0x516c3e),this[_0x3646a1(0x1d7)]();}),_0x2caf5b[_0x3ce011(0x1bd)]=!0x0,_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x237)](_0x2caf5b);}for(const _0x4bba22 of _0x4894be[_0x3ce011(0x232)]){const _0x2d9587=this[_0x3ce011(0x229)](_0x28bb9e,{'label':_0x4bba22[_0x3ce011(0x1f3)],'icon':_0x4bba22[_0x3ce011(0x231)]||_0x3f90d,'type':_0x3ce011(0x238)});_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x237)](_0x2d9587),_0x2d9587['on'](_0x3ce011(0x22d),()=>{const _0x533835=_0x3ce011;this[_0x533835(0x1d7)](),this[_0x533835(0x20a)](_0x4bba22);});}}[_0x36c900(0x220)](_0x55106b,_0x145bfb){const _0x57f05e=_0x36c900;this[_0x57f05e(0x209)]=new _0x39d29c(_0x145bfb),this[_0x57f05e(0x209)]['on'](_0x57f05e(0x1ca),(_0x493041,_0x283d48)=>{const _0x983861=_0x57f05e;this[_0x983861(0x204)](_0x283d48);}),this[_0x57f05e(0x209)]['on'](_0x57f05e(0x1b9),()=>{const _0x35d98d=_0x57f05e;this[_0x35d98d(0x240)](),this[_0x35d98d(0x1fb)](),this[_0x35d98d(0x236)][_0x35d98d(0x234)]({'target':this[_0x35d98d(0x1fa)][_0x35d98d(0x1c0)],'limiter':this[_0x35d98d(0x243)](),'positions':No});}),this[_0x57f05e(0x209)]['on'](_0x57f05e(0x20c),()=>{const _0x4e0ba4=_0x57f05e;this[_0x4e0ba4(0x1d5)][_0x4e0ba4(0x1c2)]&&this[_0x4e0ba4(0x1d5)][_0x4e0ba4(0x234)]({'target':this[_0x4e0ba4(0x1fa)][_0x4e0ba4(0x1c0)],'limiter':this[_0x4e0ba4(0x243)](),'positions':No});}),_0x55106b[_0x57f05e(0x1c7)][_0x57f05e(0x237)](this[_0x57f05e(0x209)]);}[_0x36c900(0x229)](_0x2efc96,_0x2f56af){const _0x1cd004=_0x36c900,_0x2db6e5=_0x1cd004(0x238)===_0x2f56af[_0x1cd004(0x1f6)]?new SourcesBalloonButtonView(_0x2efc96):new _0x3d94e0(_0x2efc96);return _0x2db6e5[_0x1cd004(0x20b)]({'label':_0x2f56af[_0x1cd004(0x1f3)],'icon':_0x2f56af[_0x1cd004(0x231)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ro}),_0x2db6e5;}[_0x36c900(0x1f8)](){const _0x37218b=_0x36c900;this[_0x37218b(0x1f5)](),this[_0x37218b(0x242)]();}[_0x36c900(0x242)](){const _0x28a3fb=_0x36c900;_0x45bcea({'emitter':this[_0x28a3fb(0x1d5)],'contextElements':[this[_0x28a3fb(0x1d5)][_0x28a3fb(0x1c0)]],'callback':()=>{const _0x5c49fd=_0x28a3fb;this[_0x5c49fd(0x240)]();},'activator':()=>this[_0x28a3fb(0x1d5)][_0x28a3fb(0x1c2)]});}[_0x36c900(0x23a)](_0x4c15ca){const _0xf2e1fb=_0x36c900,_0x455e7d=this[_0xf2e1fb(0x21c)];_0x455e7d[_0xf2e1fb(0x1f2)][_0xf2e1fb(0x245)]=_0x4c15ca,_0x4c15ca?_0x455e7d[_0xf2e1fb(0x1ed)][_0xf2e1fb(0x224)]():_0x455e7d[_0xf2e1fb(0x1ed)][_0xf2e1fb(0x1f7)]();}[_0x36c900(0x1f5)](){const _0x13bd8d=_0x36c900,{balloonView:_0x438732,buttonView:_0xda3611,hideMethod:_0x15f614}=this[_0x13bd8d(0x21c)];_0x45bcea({'emitter':_0x438732,'contextElements':[_0x438732[_0x13bd8d(0x1c0)],_0xda3611[_0x13bd8d(0x1c0)]],'callback':()=>{_0x15f614();},'activator':()=>_0xda3611[_0x13bd8d(0x245)]&&!this[_0x13bd8d(0x1d5)][_0x13bd8d(0x1c2)]&&!this[_0x13bd8d(0x208)][_0x13bd8d(0x1fe)]()});}[_0x36c900(0x1cc)](_0x1481a3,_0x61e2b4,_0x59c4f3=!0x1,_0x42392b=!0x1){const _0x1c35ca=_0x36c900,_0x3cc34a=_0x1c35ca(0x222)===_0x61e2b4||!0x0===_0x1481a3[_0x1c35ca(0x23c)],_0x31e45e=new _0x592154(this[_0x1c35ca(0x219)],_0x1481a3,_0x3cc34a,_0x59c4f3,_0x42392b);return _0x3cc34a||_0x31e45e['on'](_0x1c35ca(0x22a),()=>{const _0x5b60f7=_0x1c35ca;this[_0x5b60f7(0x1bf)](_0x5b60f7(0x248),_0x31e45e['id']);}),_0x31e45e;}[_0x36c900(0x21b)](_0x2bad2b,_0x913b){const _0x34c24a=_0x36c900;_0x913b[_0x34c24a(0x237)](_0x2bad2b,0x0);}[_0x36c900(0x244)](_0x1c6984,_0x5c2004){const _0x5cb2ad=_0x36c900,_0x5ecb01=_0x5c2004[_0x5cb2ad(0x226)](_0xd7a104=>_0xd7a104['id']===_0x1c6984);_0x5ecb01&&_0x5c2004[_0x5cb2ad(0x23e)](_0x5ecb01);}[_0x36c900(0x202)](){const _0x1d16c8=_0x36c900;this[_0x1d16c8(0x1fa)][_0x1d16c8(0x245)]?this[_0x1d16c8(0x1d7)]():(this[_0x1d16c8(0x1fb)](),this[_0x1d16c8(0x236)][_0x1d16c8(0x234)]({'target':this[_0x1d16c8(0x1fa)][_0x1d16c8(0x1c0)],'limiter':this[_0x1d16c8(0x243)](),'positions':No}));}[_0x36c900(0x204)](_0x5d6956){const _0xbe5689=_0x36c900;this[_0xbe5689(0x209)][_0xbe5689(0x1e0)](),this[_0xbe5689(0x240)](),this[_0xbe5689(0x1bf)](_0xbe5689(0x227),_0x5d6956);}}export class SourcesBalloonButtonView extends _0x3d94e0{[_0x36c900(0x1e9)];constructor(_0x1fbdc0){const _0x3321fa=_0x36c900;super(_0x1fbdc0),this[_0x3321fa(0x20b)]({'withText':!0x0,'role':_0x3321fa(0x210)}),this[_0x3321fa(0x1e9)]=this[_0x3321fa(0x1bb)](),this[_0x3321fa(0x1d0)]({'attributes':{'class':[So]}});}[_0x36c900(0x1d1)](){const _0x39db46=_0x36c900;super[_0x39db46(0x1d1)](),this[_0x39db46(0x1f0)][_0x39db46(0x237)](this[_0x39db46(0x1e9)]);}[_0x36c900(0x1bb)](){const _0x4d0b64=_0x36c900,_0x2cbc3c=new _0x20972b();return _0x2cbc3c[_0x4d0b64(0x1c7)]=_0x5d5851,_0x2cbc3c[_0x4d0b64(0x1d0)]({'attributes':{'class':So+_0x4d0b64(0x1e5)}}),_0x2cbc3c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ec294=_0x2264;(function(_0x126773,_0x4e5669){const _0x44f30b=_0x2264,_0x1be251=_0x126773();while(!![]){try{const _0x397719=parseInt(_0x44f30b(0xdd))/0x1*(-parseInt(_0x44f30b(0xe0))/0x2)+parseInt(_0x44f30b(0xe5))/0x3+parseInt(_0x44f30b(0xd4))/0x4*(-parseInt(_0x44f30b(0xdc))/0x5)+-parseInt(_0x44f30b(0xeb))/0x6+parseInt(_0x44f30b(0xd8))/0x7*(parseInt(_0x44f30b(0xef))/0x8)+parseInt(_0x44f30b(0xe3))/0x9*(-parseInt(_0x44f30b(0xe2))/0xa)+parseInt(_0x44f30b(0xda))/0xb*(parseInt(_0x44f30b(0xed))/0xc);if(_0x397719===_0x4e5669)break;else _0x1be251['push'](_0x1be251['shift']());}catch(_0x257719){_0x1be251['push'](_0x1be251['shift']());}}}(_0x34cc,0xdc172));import{ButtonView as _0x3c93cf,View as _0x347fa4}from'ckeditor5/src/ui.js';import{IconStop as _0x43d6d5}from'ckeditor5/src/icons.js';function _0x2264(_0x418b28,_0x11b92a){const _0x34cca6=_0x34cc();return _0x2264=function(_0x2264f1,_0x39e0b2){_0x2264f1=_0x2264f1-0xd2;let _0x307c2b=_0x34cca6[_0x2264f1];return _0x307c2b;},_0x2264(_0x418b28,_0x11b92a);}import{getTranslation as _0xdfe5e}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x347fa4{[_0x2ec294(0xe6)];[_0x2ec294(0xe7)];constructor(_0x309f50){const _0x553612=_0x2ec294;super(_0x309f50),this[_0x553612(0xe6)]=this[_0x553612(0xd2)](),this[_0x553612(0xe7)]=this[_0x553612(0xe9)](),this[_0x553612(0xe4)]({'tag':_0x553612(0xdf),'attributes':{'class':['ck',_0x553612(0xea),_0x553612(0xd7)]},'children':[this[_0x553612(0xe7)],this[_0x553612(0xe6)]]});}[_0x2ec294(0xd2)](){const _0xa174aa=_0x2ec294,_0x5ab1bf=new _0x3c93cf(this[_0xa174aa(0xec)]);return _0x5ab1bf[_0xa174aa(0xd6)]({'label':_0xdfe5e(this[_0xa174aa(0xec)],_0xa174aa(0xd3)),'withText':!0x0,'class':_0xa174aa(0xde),'icon':_0x43d6d5}),_0x5ab1bf['on'](_0xa174aa(0xd9),()=>{const _0x1c7c85=_0xa174aa;this[_0x1c7c85(0xd5)](_0x1c7c85(0xe1));}),_0x5ab1bf;}[_0x2ec294(0xe9)](){const _0x4a1fa4=_0x2ec294,_0x3659bf=new _0x347fa4(this[_0x4a1fa4(0xec)]);return _0x3659bf[_0x4a1fa4(0xe4)]({'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xdb)]},'children':[{'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xee)]},'children':[{'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xf0)]}},{'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xf0)]}},{'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xf0)]}}]},{'text':_0xdfe5e(this[_0x4a1fa4(0xec)],_0x4a1fa4(0xe8))}]}),_0x3659bf;}}function _0x34cc(){const _0x4a757b=['1415OSVWdP','67dKcXsq','ai-chat-controls-loader__cancel-button','div','40582gdkNHU','abortPromptStream','250aKoqwc','268119RdrzwP','setTemplate','4539894pCHITD','_cancelButtonView','_loaderView','AI_CHAT_IS_WRITING','_createLoaderView','ck-ai-chat-controls-loader-wrapper','1744782UxIeJV','locale','1644mUdWJC','ck-ai-chat-controls-loader-icon','1888dgkKoQ','ck-ai-chat-controls-loader-icon-dot','_createCancelButtonView','AI_CHAT_STOP_GENERATING','9572zQNIut','fire','set','ck-reset_all','10304TRQDQb','execute','169664HziPUl','ck-ai-chat-controls-loader'];_0x34cc=function(){return _0x4a757b;};return _0x34cc();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xfbf6aa=_0x5227;(function(_0x2f7ca1,_0x47cdba){const _0x49410d=_0x5227,_0xd8f9e8=_0x2f7ca1();while(!![]){try{const _0x48b819=parseInt(_0x49410d(0x153))/0x1*(-parseInt(_0x49410d(0x13c))/0x2)+parseInt(_0x49410d(0x145))/0x3+parseInt(_0x49410d(0x163))/0x4*(-parseInt(_0x49410d(0x196))/0x5)+-parseInt(_0x49410d(0x177))/0x6*(parseInt(_0x49410d(0x18a))/0x7)+parseInt(_0x49410d(0x190))/0x8+-parseInt(_0x49410d(0x152))/0x9+parseInt(_0x49410d(0x157))/0xa;if(_0x48b819===_0x47cdba)break;else _0xd8f9e8['push'](_0xd8f9e8['shift']());}catch(_0x3492e8){_0xd8f9e8['push'](_0xd8f9e8['shift']());}}}(_0x33a0,0x988fa));import{Collection as _0x531ddd}from'ckeditor5/src/utils.js';function _0x33a0(){const _0x5e03fa=['tooltip','_webSearchButton','withText','webSearchActive','name','model','AI_CHAT_ENABLE_WEB_SEARCH','ck-ai-chat-controls__model-selection__item-capabilities','_createReasoningButton','selectModel','toggleWebSearch','_createWebSearchButton','8131179PRIRhk','setReasoning','length','activeModelId','menuitemradio','source','1121016HkYcpX','add','setWebSearch','ck-button__label','clear','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','115kQpuyE','button','agent','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-description','AI_CHAT_SEARCH_WEB','bind','setTemplate','setModelList','22RWQmxI','content','modelSelectorVisible','reasoning','_commandsButton','toLowerCase','AI_CHAT_ENABLE_REASONING','webSearch','ck-ai-chat__prompt-capabilities','1974552HSruLf','isVisible','extendTemplate','AI_CHAT_DISABLE_REASONING','_modelNameView','addMany','capabilities','_modelSelectionDropdown','toggleReasoning','AI_CHAT_DISABLE_WEB_SEARCH','ck-ai-chat-controls__model-name','_createModelSelectionDropdown','modelSelectorEnabled','9443556UWAFji','44692FepBup','style','AI_CHAT_CAPABILITIES_YES','bindTemplate','36725630msBpEM','AI_CHAT_COMMANDS','label','span','reasoningActive','log','ck-ai-chat-controls__model-selection__item-name','_modelSelectionDropdownItems','locale','createCollection','description','_createModelNameView','198868cidnGP','disableModelSelector','_createCommandsButton','listenTo','enableModelSelector','buttonView','_reasoningButton','AI_CHAT_CAPABILITIES_NO','ck-hidden','activeModelName','set','Commands\x20are\x20not\x20implemented\x20yet.','fire','ck-ai-chat-controls-button--commands','enabled','ck-ai-chat-controls__model-selection','execute','div','isEnabled','AI_CHAT_REASONING','6kmfLFT','_getCapabilityParts','setModel','startsWith','isOn','text','ck-ai-chat-controls-button'];_0x33a0=function(){return _0x5e03fa;};return _0x33a0();}import{IconAI as _0x5b1e93,IconBulb as _0x114f11,IconWeb as _0x2c8924}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x5b6a71,ButtonLabelView as _0x3a5e5f,ButtonView as _0x197670,createDropdown as _0x1382f6,IconView as _0x5bbedc,UIModel as _0x1f7318,View as _0x1fac1c}from'ckeditor5/src/ui.js';import{getTranslation as _0x369d55}from'../../../aicore/utils/common-translations.js';const Ho=_0xfbf6aa(0x144),Vo=_0xfbf6aa(0x17d),Mo=_0xfbf6aa(0x170),Lo=_0xfbf6aa(0x172),Do=_0xfbf6aa(0x15d),Wo=_0xfbf6aa(0x19a),yo=_0xfbf6aa(0x185),Go='n';export class AIChatPromptCapabilitiesView extends _0x1fac1c{[_0xfbf6aa(0x17f)];[_0xfbf6aa(0x169)];[_0xfbf6aa(0x140)];[_0xfbf6aa(0x14c)];[_0xfbf6aa(0x15e)];[_0xfbf6aa(0x149)];constructor(_0xbd2136){const _0x42b809=_0xfbf6aa;super(_0xbd2136),this[_0x42b809(0x16d)](_0x42b809(0x181),!0x1),this[_0x42b809(0x16d)](_0x42b809(0x15b),!0x1),this[_0x42b809(0x16d)](_0x42b809(0x13e),!0x0),this[_0x42b809(0x16d)](_0x42b809(0x151),!0x0),this[_0x42b809(0x16d)](_0x42b809(0x18d),''),this[_0x42b809(0x16d)](_0x42b809(0x16c),''),this[_0x42b809(0x14c)]=this[_0x42b809(0x150)](),this[_0x42b809(0x149)]=this[_0x42b809(0x162)](),this[_0x42b809(0x17f)]=this[_0x42b809(0x189)](),this[_0x42b809(0x169)]=this[_0x42b809(0x186)](),this[_0x42b809(0x140)]=this[_0x42b809(0x165)](),this[_0x42b809(0x14c)][_0x42b809(0x168)][_0x42b809(0x19c)](_0x42b809(0x146))['to'](this,_0x42b809(0x13e),_0x5cf74d=>_0x5cf74d),this[_0x42b809(0x14c)][_0x42b809(0x168)][_0x42b809(0x19c)](_0x42b809(0x17e))['to'](this,_0x42b809(0x151),_0x532312=>_0x532312?this[_0x42b809(0x14c)][_0x42b809(0x168)][_0x42b809(0x159)]:_0x369d55(this[_0x42b809(0x15f)],_0x42b809(0x199))),this[_0x42b809(0x14c)][_0x42b809(0x19c)](_0x42b809(0x175))['to'](this,_0x42b809(0x151),_0x1ede30=>_0x1ede30),this[_0x42b809(0x17f)][_0x42b809(0x19c)](_0x42b809(0x17b))['to'](this,_0x42b809(0x181),_0xc9f8c5=>_0xc9f8c5),this[_0x42b809(0x17f)][_0x42b809(0x19c)](_0x42b809(0x180))['to'](this,_0x42b809(0x13e),_0x400526=>!_0x400526),this[_0x42b809(0x17f)][_0x42b809(0x19c)](_0x42b809(0x17e))['to'](this,_0x42b809(0x181),_0x344100=>_0x369d55(this[_0x42b809(0x15f)],_0x344100?_0x42b809(0x14e):_0x42b809(0x184))),this[_0x42b809(0x169)][_0x42b809(0x19c)](_0x42b809(0x17b))['to'](this,_0x42b809(0x15b),_0x4dd906=>_0x4dd906),this[_0x42b809(0x169)][_0x42b809(0x19c)](_0x42b809(0x180))['to'](this,_0x42b809(0x13e),_0x4bda6f=>!_0x4bda6f),this[_0x42b809(0x169)][_0x42b809(0x19c)](_0x42b809(0x17e))['to'](this,_0x42b809(0x15b),_0x174c10=>_0x369d55(this[_0x42b809(0x15f)],_0x174c10?_0x42b809(0x148):_0x42b809(0x142))),this[_0x42b809(0x19d)]({'tag':_0x42b809(0x174),'attributes':{'class':[Ho]},'children':[this[_0x42b809(0x14c)],this[_0x42b809(0x149)],this[_0x42b809(0x17f)],this[_0x42b809(0x169)],this[_0x42b809(0x140)]]}),this[_0x42b809(0x15e)]=new _0x531ddd(),_0x5b6a71(this[_0x42b809(0x14c)],this[_0x42b809(0x15e)]);}[_0xfbf6aa(0x13b)](_0x1fe1d1,_0x4d9962){const _0x122984=_0xfbf6aa;if(this[_0x122984(0x16d)](_0x122984(0x13e),!(_0x4d9962&&_0x1fe1d1[_0x122984(0x18c)]<=0x1)),this[_0x122984(0x15e)][_0x122984(0x194)](),_0x1fe1d1?.[_0x122984(0x18c)])for(const _0x502d31 of _0x1fe1d1){const _0x45378a=new _0x1f7318({'label':_0x502d31[_0x122984(0x182)],'withText':!0x0,'role':_0x122984(0x18e),'id':_0x502d31['id'],'model':_0x502d31});_0x45378a[_0x122984(0x19c)](_0x122984(0x17b))['to'](this,_0x122984(0x18d),_0x36fd5a=>_0x36fd5a===_0x502d31['id']),this[_0x122984(0x15e)][_0x122984(0x191)]({'type':_0x122984(0x197),'model':_0x45378a,'labelView':new js(this[_0x122984(0x15f)],_0x502d31)});}}[_0xfbf6aa(0x192)](_0x2f862d){const _0x103bda=_0xfbf6aa;this[_0x103bda(0x16d)](_0x103bda(0x181),_0x2f862d);}[_0xfbf6aa(0x18b)](_0x1c863e){const _0x43cf42=_0xfbf6aa;this[_0x43cf42(0x16d)](_0x43cf42(0x15b),_0x1c863e);}[_0xfbf6aa(0x179)](_0x9d104c){const _0x29b6f0=_0xfbf6aa;if(!_0x9d104c)return;this[_0x29b6f0(0x18d)]=_0x9d104c['id'],this[_0x29b6f0(0x16c)]=_0x9d104c[_0x29b6f0(0x182)]||_0x9d104c['id'],this[_0x29b6f0(0x14c)][_0x29b6f0(0x168)][_0x29b6f0(0x16d)](_0x29b6f0(0x159),_0x9d104c[_0x29b6f0(0x182)]),this[_0x29b6f0(0x14c)][_0x29b6f0(0x168)][_0x29b6f0(0x16d)](_0x29b6f0(0x17e),_0x9d104c[_0x29b6f0(0x182)]);const _0x3ad2bb=_0x9d104c[_0x29b6f0(0x14b)][_0x29b6f0(0x143)]?.[_0x29b6f0(0x171)]??!0x1;this[_0x29b6f0(0x16d)](_0x29b6f0(0x181),!0x1),this[_0x29b6f0(0x17f)][_0x29b6f0(0x16d)](_0x29b6f0(0x17b),!0x1),this[_0x29b6f0(0x17f)][_0x29b6f0(0x16d)](_0x29b6f0(0x175),_0x3ad2bb),this[_0x29b6f0(0x17f)][_0x29b6f0(0x16d)](_0x29b6f0(0x146),_0x3ad2bb);const _0x55594b=_0x9d104c[_0x29b6f0(0x14b)][_0x29b6f0(0x13f)]?.[_0x29b6f0(0x171)]??!0x1;this[_0x29b6f0(0x16d)](_0x29b6f0(0x15b),!0x1),this[_0x29b6f0(0x169)][_0x29b6f0(0x16d)](_0x29b6f0(0x17b),!0x1),this[_0x29b6f0(0x169)][_0x29b6f0(0x16d)](_0x29b6f0(0x175),_0x55594b),this[_0x29b6f0(0x169)][_0x29b6f0(0x16d)](_0x29b6f0(0x146),_0x55594b);}[_0xfbf6aa(0x167)](){const _0x5dacd7=_0xfbf6aa;this[_0x5dacd7(0x16d)](_0x5dacd7(0x151),!0x0),this[_0x5dacd7(0x16d)](_0x5dacd7(0x13e),!0x0);}[_0xfbf6aa(0x164)](_0x56b4bc){const _0x14e87c=_0xfbf6aa;this[_0x14e87c(0x16d)](_0x14e87c(0x151),!0x1),_0x56b4bc&&this[_0x14e87c(0x16d)](_0x14e87c(0x13e),!0x1);}[_0xfbf6aa(0x189)](){const _0x43b794=_0xfbf6aa,_0x456bec=new _0x197670();return _0x456bec[_0x43b794(0x16d)]({'label':_0x369d55(this[_0x43b794(0x15f)],_0x43b794(0x19b)),'icon':_0x2c8924,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x456bec['on'](_0x43b794(0x173),()=>{const _0x47242a=_0x43b794;this[_0x47242a(0x16f)](_0x47242a(0x188));}),_0x456bec;}[_0xfbf6aa(0x186)](){const _0x2c0393=_0xfbf6aa,_0x5d05a1=new _0x197670();return _0x5d05a1[_0x2c0393(0x16d)]({'label':_0x369d55(this[_0x2c0393(0x15f)],_0x2c0393(0x176)),'icon':_0x114f11,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x5d05a1['on'](_0x2c0393(0x173),()=>{const _0x37646f=_0x2c0393;this[_0x37646f(0x16f)](_0x37646f(0x14d));}),_0x5d05a1;}[_0xfbf6aa(0x165)](){const _0x22d181=_0xfbf6aa,_0x526bc4=new _0x197670();return _0x526bc4[_0x22d181(0x16d)]({'label':_0x369d55(this[_0x22d181(0x15f)],_0x22d181(0x158)),'icon':_0x5b1e93,'withText':!0x0,'class':Vo,'isToggleable':!0x0,'tooltip':_0x369d55(this[_0x22d181(0x15f)],_0x22d181(0x158)),'tooltipPosition':Go}),_0x526bc4[_0x22d181(0x147)]({'attributes':{'class':[Mo]}}),_0x526bc4['on'](_0x22d181(0x173),()=>{const _0x35cce2=_0x22d181;console[_0x35cce2(0x15c)](_0x35cce2(0x16e)),alert(_0x35cce2(0x16e));}),_0x526bc4;}[_0xfbf6aa(0x150)](){const _0x432fe1=_0xfbf6aa,_0x28a096=_0x1382f6(this[_0x432fe1(0x15f)]);return _0x28a096[_0x432fe1(0x16d)]({'panelPosition':'ne','class':[Lo]}),_0x28a096[_0x432fe1(0x168)][_0x432fe1(0x16d)]({'label':_0x369d55(this[_0x432fe1(0x15f)],_0x432fe1(0x195)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Go}),this[_0x432fe1(0x166)](_0x28a096,_0x432fe1(0x173),_0x6a003d=>{const _0x1788a0=_0x432fe1;this[_0x1788a0(0x16f)](_0x1788a0(0x187),_0x6a003d[_0x1788a0(0x18f)][_0x1788a0(0x183)]);}),_0x28a096;}[_0xfbf6aa(0x162)](){const _0xa465aa=_0xfbf6aa,_0x253696=new jo(this[_0xa465aa(0x15f)]);return _0x253696[_0xa465aa(0x19c)](_0xa465aa(0x17c))['to'](this,_0xa465aa(0x16c),_0x11307b=>_0x11307b??''),_0x253696[_0xa465aa(0x19c)](_0xa465aa(0x146))['to'](this,_0xa465aa(0x13e),this,_0xa465aa(0x16c),(_0x5d60fe,_0x524240)=>!_0x5d60fe&&!_0x524240?.[_0xa465aa(0x141)]()[_0xa465aa(0x17a)](_0xa465aa(0x198))),_0x253696;}}class js extends _0x3a5e5f{constructor(_0x327a65,_0x4d2ac9){const _0x58b726=_0xfbf6aa;super();const _0x53150b=this[_0x58b726(0x156)],_0x4150e3=this[_0x58b726(0x160)]();this[_0x58b726(0x19d)]({'tag':_0x58b726(0x174),'attributes':{'class':['ck',_0x58b726(0x193)],'style':_0x53150b['to'](_0x58b726(0x154)),'id':_0x53150b['to']('id')},'children':[{'tag':_0x58b726(0x174),'attributes':{'class':[Do]},'children':[{'text':_0x53150b['to'](_0x58b726(0x17c))}]},{'tag':_0x58b726(0x174),'attributes':{'class':[Wo]},'children':[{'tag':_0x58b726(0x15a),'children':[{'text':_0x4d2ac9[_0x58b726(0x161)]}]}]},{'tag':_0x58b726(0x174),'attributes':{'class':[yo]},'children':_0x4150e3}]}),_0x4150e3[_0x58b726(0x14a)](this[_0x58b726(0x178)](_0x327a65,_0x2c8924,_0x58b726(0x19b),_0x4d2ac9[_0x58b726(0x14b)][_0x58b726(0x143)]?.[_0x58b726(0x171)]??!0x1)),_0x4150e3[_0x58b726(0x14a)](this[_0x58b726(0x178)](_0x327a65,_0x114f11,_0x58b726(0x176),_0x4d2ac9[_0x58b726(0x14b)][_0x58b726(0x13f)]?.[_0x58b726(0x171)]??!0x1));}[_0xfbf6aa(0x178)](_0x265f80,_0x3f5650,_0x2a0276,_0xeacb34){const _0x183610=_0xfbf6aa,_0x22358f=new _0x5bbedc();_0x22358f[_0x183610(0x13d)]=_0x3f5650;const _0x1c6565=new _0x1fac1c(_0x265f80);_0x1c6565[_0x183610(0x19d)]({'tag':_0x183610(0x15a),'children':[{'text':_0x369d55(_0x265f80,_0x2a0276)+':\x20'}]});const _0x4f38c5=new _0x1fac1c(_0x265f80);return _0x4f38c5[_0x183610(0x19d)]({'tag':_0x183610(0x15a),'children':[{'text':_0x369d55(_0x265f80,_0xeacb34?_0x183610(0x155):_0x183610(0x16a))}]}),[_0x22358f,_0x1c6565,_0x4f38c5];}}function _0x5227(_0x14ef7f,_0x25fe26){const _0x33a063=_0x33a0();return _0x5227=function(_0x522703,_0x130f5a){_0x522703=_0x522703-0x13b;let _0x271c87=_0x33a063[_0x522703];return _0x271c87;},_0x5227(_0x14ef7f,_0x25fe26);}class jo extends _0x1fac1c{constructor(_0x49d7a9){const _0x3cd426=_0xfbf6aa;super(_0x49d7a9),this[_0x3cd426(0x16d)](_0x3cd426(0x17c),void 0x0),this[_0x3cd426(0x16d)](_0x3cd426(0x146),!0x0);const _0x431976=this[_0x3cd426(0x156)];this[_0x3cd426(0x19d)]({'tag':_0x3cd426(0x15a),'attributes':{'class':['ck',_0x3cd426(0x14f),_0x431976['if'](_0x3cd426(0x146),_0x3cd426(0x16b),_0x5bc737=>!_0x5bc737)]},'children':[{'text':_0x431976['to'](_0x3cd426(0x17c))}]});}}
|
|
23
|
+
function _0x1df8(){const _0x5dfc3d=['bindTemplate','tooltip','setModel','ck-ai-chat-controls-button','addMany','reasoningActive','AI_CHAT_DISABLE_REASONING','_modelNameView','_reasoningButton','_modelSelectionDropdown','AI_CHAT_REASONING','modelSelectorVisible','7388300zlYIzR','setTemplate','source','1225084DtAtfP','_createModelNameView','9150768vyFInD','model','text','enabled','execute','_modelSelectionDropdownItems','enableModelSelector','ck-ai-chat-controls__model-selection__item-capabilities','setWebSearch','10856867iiroGl','content','_createCommandsButton','clear','setReasoning','disableModelSelector','3NFsOWX','isOn','2995AVGeaW','button','13naqSEd','ck-ai-chat-controls__model-name','ck-ai-chat-controls__model-selection__item-description','ck-hidden','AI_CHAT_COMMANDS','description','span','_createWebSearchButton','_getCapabilityParts','AI_CHAT_SEARCH_WEB','style','locale','AI_CHAT_ENABLE_REASONING','activeModelId','160602mzDDwz','setModelList','11cCxKio','ck-ai-chat-controls__model-selection__item-name','ck-ai-chat-controls__model-selection','set','modelSelectorEnabled','activeModelName','toggleWebSearch','isEnabled','menuitemradio','Commands\x20are\x20not\x20implemented\x20yet.','div','capabilities','webSearchActive','toggleReasoning','ck-ai-chat__prompt-capabilities','ck-ai-chat-controls-button--commands','withText','12766728NevGpz','_commandsButton','createCollection','webSearch','extendTemplate','label','length','buttonView','bind','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','agent','AI_CHAT_CAPABILITIES_NO','_createModelSelectionDropdown','add','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','fire','listenTo','AI_CHAT_ENABLE_WEB_SEARCH','name','selectModel','AI_CHAT_DISABLE_WEB_SEARCH','_webSearchButton','1518OKxFNT','log','isVisible','toLowerCase','startsWith','reasoning','AI_CHAT_CAPABILITIES_YES','_createReasoningButton','ck-button__label'];_0x1df8=function(){return _0x5dfc3d;};return _0x1df8();}const _0x49fc10=_0x2b0c;(function(_0x5388e0,_0x1d9aa5){const _0x311277=_0x2b0c,_0x925af2=_0x5388e0();while(!![]){try{const _0x87ffb1=-parseInt(_0x311277(0x127))/0x1*(-parseInt(_0x311277(0x135))/0x2)+parseInt(_0x311277(0x123))/0x3*(parseInt(_0x311277(0x112))/0x4)+-parseInt(_0x311277(0x125))/0x5*(parseInt(_0x311277(0xfa))/0x6)+parseInt(_0x311277(0x11d))/0x7+-parseInt(_0x311277(0xe4))/0x8+-parseInt(_0x311277(0x114))/0x9+-parseInt(_0x311277(0x10f))/0xa*(-parseInt(_0x311277(0x137))/0xb);if(_0x87ffb1===_0x1d9aa5)break;else _0x925af2['push'](_0x925af2['shift']());}catch(_0x5420bc){_0x925af2['push'](_0x925af2['shift']());}}}(_0x1df8,0xd5d4f));import{Collection as _0x5246c9}from'ckeditor5/src/utils.js';import{IconAI as _0xf357d7,IconBulb as _0x2b61f7,IconWeb as _0x32b44d}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x199c62,ButtonLabelView as _0x8e4a32,ButtonView as _0x5cde7b,createDropdown as _0x4fc89d,IconView as _0x54b3f1,UIModel as _0x13118f,View as _0x36154d}from'ckeditor5/src/ui.js';function _0x2b0c(_0x383b90,_0x2a23db){const _0x1df8f8=_0x1df8();return _0x2b0c=function(_0x2b0c70,_0x121772){_0x2b0c70=_0x2b0c70-0xd4;let _0x41d0e7=_0x1df8f8[_0x2b0c70];return _0x41d0e7;},_0x2b0c(_0x383b90,_0x2a23db);}import{getTranslation as _0x339bf8}from'../../../aicore/utils/common-translations.js';const Oo=_0x49fc10(0xe1),uo=_0x49fc10(0x106),Ho=_0x49fc10(0xe2),Mo=_0x49fc10(0xd5),Do=_0x49fc10(0xd4),Wo=_0x49fc10(0x129),yo=_0x49fc10(0x11b),Go='n';export class AIChatPromptCapabilitiesView extends _0x36154d{[_0x49fc10(0xf9)];[_0x49fc10(0x10b)];[_0x49fc10(0xe5)];[_0x49fc10(0x10c)];[_0x49fc10(0x119)];[_0x49fc10(0x10a)];constructor(_0x136788){const _0x6586ba=_0x49fc10;super(_0x136788),this[_0x6586ba(0xd6)](_0x6586ba(0xdf),!0x1),this[_0x6586ba(0xd6)](_0x6586ba(0x108),!0x1),this[_0x6586ba(0xd6)](_0x6586ba(0x10e),!0x0),this[_0x6586ba(0xd6)](_0x6586ba(0xd7),!0x0),this[_0x6586ba(0xd6)](_0x6586ba(0x134),''),this[_0x6586ba(0xd6)](_0x6586ba(0xd8),''),this[_0x6586ba(0x10c)]=this[_0x6586ba(0xf0)](),this[_0x6586ba(0x10a)]=this[_0x6586ba(0x113)](),this[_0x6586ba(0xf9)]=this[_0x6586ba(0x12e)](),this[_0x6586ba(0x10b)]=this[_0x6586ba(0x101)](),this[_0x6586ba(0xe5)]=this[_0x6586ba(0x11f)](),this[_0x6586ba(0x10c)][_0x6586ba(0xeb)][_0x6586ba(0xec)](_0x6586ba(0xfc))['to'](this,_0x6586ba(0x10e),_0x1adc79=>_0x1adc79),this[_0x6586ba(0x10c)][_0x6586ba(0xeb)][_0x6586ba(0xec)](_0x6586ba(0x104))['to'](this,_0x6586ba(0xd7),_0x2b6dac=>_0x2b6dac?this[_0x6586ba(0x10c)][_0x6586ba(0xeb)][_0x6586ba(0xe9)]:_0x339bf8(this[_0x6586ba(0x132)],_0x6586ba(0xed))),this[_0x6586ba(0x10c)][_0x6586ba(0xec)](_0x6586ba(0xda))['to'](this,_0x6586ba(0xd7),_0x1e50fc=>_0x1e50fc),this[_0x6586ba(0xf9)][_0x6586ba(0xec)](_0x6586ba(0x124))['to'](this,_0x6586ba(0xdf),_0x5ac9a6=>_0x5ac9a6),this[_0x6586ba(0xf9)][_0x6586ba(0xec)](_0x6586ba(0xe3))['to'](this,_0x6586ba(0x10e),_0x1f289a=>!_0x1f289a),this[_0x6586ba(0xf9)][_0x6586ba(0xec)](_0x6586ba(0x104))['to'](this,_0x6586ba(0xdf),_0x174307=>_0x339bf8(this[_0x6586ba(0x132)],_0x174307?_0x6586ba(0xf8):_0x6586ba(0xf5))),this[_0x6586ba(0x10b)][_0x6586ba(0xec)](_0x6586ba(0x124))['to'](this,_0x6586ba(0x108),_0x32b551=>_0x32b551),this[_0x6586ba(0x10b)][_0x6586ba(0xec)](_0x6586ba(0xe3))['to'](this,_0x6586ba(0x10e),_0x135cd9=>!_0x135cd9),this[_0x6586ba(0x10b)][_0x6586ba(0xec)](_0x6586ba(0x104))['to'](this,_0x6586ba(0x108),_0x54d563=>_0x339bf8(this[_0x6586ba(0x132)],_0x54d563?_0x6586ba(0x109):_0x6586ba(0x133))),this[_0x6586ba(0x110)]({'tag':_0x6586ba(0xdd),'attributes':{'class':[Oo]},'children':[this[_0x6586ba(0x10c)],this[_0x6586ba(0x10a)],this[_0x6586ba(0xf9)],this[_0x6586ba(0x10b)],this[_0x6586ba(0xe5)]]}),this[_0x6586ba(0x119)]=new _0x5246c9(),_0x199c62(this[_0x6586ba(0x10c)],this[_0x6586ba(0x119)]);}[_0x49fc10(0x136)](_0x11e2dd,_0x55c2dd){const _0xafa205=_0x49fc10;if(this[_0xafa205(0xd6)](_0xafa205(0x10e),!(_0x55c2dd&&_0x11e2dd[_0xafa205(0xea)]<=0x1)),this[_0xafa205(0x119)][_0xafa205(0x120)](),_0x11e2dd?.[_0xafa205(0xea)])for(const _0x5e6a03 of _0x11e2dd){const _0x2cee65=new _0x13118f({'label':_0x5e6a03[_0xafa205(0xf6)],'withText':!0x0,'role':_0xafa205(0xdb),'id':_0x5e6a03['id'],'model':_0x5e6a03});_0x2cee65[_0xafa205(0xec)](_0xafa205(0x124))['to'](this,_0xafa205(0x134),_0x515b96=>_0x515b96===_0x5e6a03['id']),this[_0xafa205(0x119)][_0xafa205(0xf1)]({'type':_0xafa205(0x126),'model':_0x2cee65,'labelView':new js(this[_0xafa205(0x132)],_0x5e6a03)});}}[_0x49fc10(0x11c)](_0x29ebf6){const _0x475baf=_0x49fc10;this[_0x475baf(0xd6)](_0x475baf(0xdf),_0x29ebf6);}[_0x49fc10(0x121)](_0x596146){const _0x561006=_0x49fc10;this[_0x561006(0xd6)](_0x561006(0x108),_0x596146);}[_0x49fc10(0x105)](_0x57f18c){const _0x2ffd79=_0x49fc10;if(!_0x57f18c)return;this[_0x2ffd79(0x134)]=_0x57f18c['id'],this[_0x2ffd79(0xd8)]=_0x57f18c[_0x2ffd79(0xf6)]||_0x57f18c['id'],this[_0x2ffd79(0x10c)][_0x2ffd79(0xeb)][_0x2ffd79(0xd6)](_0x2ffd79(0xe9),_0x57f18c[_0x2ffd79(0xf6)]),this[_0x2ffd79(0x10c)][_0x2ffd79(0xeb)][_0x2ffd79(0xd6)](_0x2ffd79(0x104),_0x57f18c[_0x2ffd79(0xf6)]);const _0x3f880d=_0x57f18c[_0x2ffd79(0xde)][_0x2ffd79(0xe7)]?.[_0x2ffd79(0x117)]??!0x1;this[_0x2ffd79(0xd6)](_0x2ffd79(0xdf),!0x1),this[_0x2ffd79(0xf9)][_0x2ffd79(0xd6)](_0x2ffd79(0x124),!0x1),this[_0x2ffd79(0xf9)][_0x2ffd79(0xd6)](_0x2ffd79(0xda),_0x3f880d),this[_0x2ffd79(0xf9)][_0x2ffd79(0xd6)](_0x2ffd79(0xfc),_0x3f880d);const _0x3b9173=_0x57f18c[_0x2ffd79(0xde)][_0x2ffd79(0xff)]?.[_0x2ffd79(0x117)]??!0x1;this[_0x2ffd79(0xd6)](_0x2ffd79(0x108),!0x1),this[_0x2ffd79(0x10b)][_0x2ffd79(0xd6)](_0x2ffd79(0x124),!0x1),this[_0x2ffd79(0x10b)][_0x2ffd79(0xd6)](_0x2ffd79(0xda),_0x3b9173),this[_0x2ffd79(0x10b)][_0x2ffd79(0xd6)](_0x2ffd79(0xfc),_0x3b9173);}[_0x49fc10(0x11a)](){const _0x2cd16f=_0x49fc10;this[_0x2cd16f(0xd6)](_0x2cd16f(0xd7),!0x0),this[_0x2cd16f(0xd6)](_0x2cd16f(0x10e),!0x0);}[_0x49fc10(0x122)](_0x1ae7c8){const _0x5d37df=_0x49fc10;this[_0x5d37df(0xd6)](_0x5d37df(0xd7),!0x1),_0x1ae7c8&&this[_0x5d37df(0xd6)](_0x5d37df(0x10e),!0x1);}[_0x49fc10(0x12e)](){const _0x3bc4fe=_0x49fc10,_0xceaeb1=new _0x5cde7b();return _0xceaeb1[_0x3bc4fe(0xd6)]({'label':_0x339bf8(this[_0x3bc4fe(0x132)],_0x3bc4fe(0x130)),'icon':_0x32b44d,'class':uo,'isToggleable':!0x0,'tooltipPosition':Go}),_0xceaeb1['on'](_0x3bc4fe(0x118),()=>{const _0x1079b8=_0x3bc4fe;this[_0x1079b8(0xf3)](_0x1079b8(0xd9));}),_0xceaeb1;}[_0x49fc10(0x101)](){const _0x51f2f8=_0x49fc10,_0x541259=new _0x5cde7b();return _0x541259[_0x51f2f8(0xd6)]({'label':_0x339bf8(this[_0x51f2f8(0x132)],_0x51f2f8(0x10d)),'icon':_0x2b61f7,'class':uo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x541259['on'](_0x51f2f8(0x118),()=>{const _0xf498f=_0x51f2f8;this[_0xf498f(0xf3)](_0xf498f(0xe0));}),_0x541259;}[_0x49fc10(0x11f)](){const _0x426459=_0x49fc10,_0x4466b6=new _0x5cde7b();return _0x4466b6[_0x426459(0xd6)]({'label':_0x339bf8(this[_0x426459(0x132)],_0x426459(0x12b)),'icon':_0xf357d7,'withText':!0x0,'class':uo,'isToggleable':!0x0,'tooltip':_0x339bf8(this[_0x426459(0x132)],_0x426459(0x12b)),'tooltipPosition':Go}),_0x4466b6[_0x426459(0xe8)]({'attributes':{'class':[Ho]}}),_0x4466b6['on'](_0x426459(0x118),()=>{const _0xac2550=_0x426459;console[_0xac2550(0xfb)](_0xac2550(0xdc)),alert(_0xac2550(0xdc));}),_0x4466b6;}[_0x49fc10(0xf0)](){const _0x4cb4dc=_0x49fc10,_0x16638b=_0x4fc89d(this[_0x4cb4dc(0x132)]);return _0x16638b[_0x4cb4dc(0xd6)]({'panelPosition':'ne','class':[Mo]}),_0x16638b[_0x4cb4dc(0xeb)][_0x4cb4dc(0xd6)]({'label':_0x339bf8(this[_0x4cb4dc(0x132)],_0x4cb4dc(0xf2)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Go}),this[_0x4cb4dc(0xf4)](_0x16638b,_0x4cb4dc(0x118),_0x595e5b=>{const _0x548c32=_0x4cb4dc;this[_0x548c32(0xf3)](_0x548c32(0xf7),_0x595e5b[_0x548c32(0x111)][_0x548c32(0x115)]);}),_0x16638b;}[_0x49fc10(0x113)](){const _0x185dd2=_0x49fc10,_0x156dc3=new jo(this[_0x185dd2(0x132)]);return _0x156dc3[_0x185dd2(0xec)](_0x185dd2(0x116))['to'](this,_0x185dd2(0xd8),_0x440616=>_0x440616??''),_0x156dc3[_0x185dd2(0xec)](_0x185dd2(0xfc))['to'](this,_0x185dd2(0x10e),this,_0x185dd2(0xd8),(_0x4c8f38,_0x3c9eeb)=>!_0x4c8f38&&!_0x3c9eeb?.[_0x185dd2(0xfd)]()[_0x185dd2(0xfe)](_0x185dd2(0xee))),_0x156dc3;}}class js extends _0x8e4a32{constructor(_0x133d73,_0x37e591){const _0x2e0fc3=_0x49fc10;super();const _0x4fb544=this[_0x2e0fc3(0x103)],_0x4346f7=this[_0x2e0fc3(0xe6)]();this[_0x2e0fc3(0x110)]({'tag':_0x2e0fc3(0xdd),'attributes':{'class':['ck',_0x2e0fc3(0x102)],'style':_0x4fb544['to'](_0x2e0fc3(0x131)),'id':_0x4fb544['to']('id')},'children':[{'tag':_0x2e0fc3(0xdd),'attributes':{'class':[Do]},'children':[{'text':_0x4fb544['to'](_0x2e0fc3(0x116))}]},{'tag':_0x2e0fc3(0xdd),'attributes':{'class':[Wo]},'children':[{'tag':_0x2e0fc3(0x12d),'children':[{'text':_0x37e591[_0x2e0fc3(0x12c)]}]}]},{'tag':_0x2e0fc3(0xdd),'attributes':{'class':[yo]},'children':_0x4346f7}]}),_0x4346f7[_0x2e0fc3(0x107)](this[_0x2e0fc3(0x12f)](_0x133d73,_0x32b44d,_0x2e0fc3(0x130),_0x37e591[_0x2e0fc3(0xde)][_0x2e0fc3(0xe7)]?.[_0x2e0fc3(0x117)]??!0x1)),_0x4346f7[_0x2e0fc3(0x107)](this[_0x2e0fc3(0x12f)](_0x133d73,_0x2b61f7,_0x2e0fc3(0x10d),_0x37e591[_0x2e0fc3(0xde)][_0x2e0fc3(0xff)]?.[_0x2e0fc3(0x117)]??!0x1));}[_0x49fc10(0x12f)](_0xec32,_0x16247b,_0x4d7c5c,_0x17bce6){const _0x1cf3eb=_0x49fc10,_0x587528=new _0x54b3f1();_0x587528[_0x1cf3eb(0x11e)]=_0x16247b;const _0x530b61=new _0x36154d(_0xec32);_0x530b61[_0x1cf3eb(0x110)]({'tag':_0x1cf3eb(0x12d),'children':[{'text':_0x339bf8(_0xec32,_0x4d7c5c)+':\x20'}]});const _0x574b34=new _0x36154d(_0xec32);return _0x574b34[_0x1cf3eb(0x110)]({'tag':_0x1cf3eb(0x12d),'children':[{'text':_0x339bf8(_0xec32,_0x17bce6?_0x1cf3eb(0x100):_0x1cf3eb(0xef))}]}),[_0x587528,_0x530b61,_0x574b34];}}class jo extends _0x36154d{constructor(_0xcd9885){const _0x26efb3=_0x49fc10;super(_0xcd9885),this[_0x26efb3(0xd6)](_0x26efb3(0x116),void 0x0),this[_0x26efb3(0xd6)](_0x26efb3(0xfc),!0x0);const _0x40e2fd=this[_0x26efb3(0x103)];this[_0x26efb3(0x110)]({'tag':_0x26efb3(0x12d),'attributes':{'class':['ck',_0x26efb3(0x128),_0x40e2fd['if'](_0x26efb3(0xfc),_0x26efb3(0x12a),_0x5da055=>!_0x5da055)]},'children':[{'text':_0x40e2fd['to'](_0x26efb3(0x116))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x300748=_0x5d50;function _0x32ab(){const _0x1e6f28=['fieldView','focusableChildren','window','enter','maxRows','locale','isEnabled','element','16027398Kajnvx','MIN_ROWS','submit','ck-ai-chat__prompt-input','width','target','_setUpAddContextButtonPositioning','errorText','MAX_ROWS','41547oERVRU','set','11441442PEqEyM','extendTemplate','keystrokes','update','8NTAlTG','rtl','reset','fieldWrapperChildren','render','1097659lgFhkD','setPlaceholderText','169887ammfKb','calc(','right','5EOxBof','isEmpty','10714732mxIJAj','submitButtonView','isUploadInProgress','style','_createSubmitButton','setIsUploadInProgress','minRows','_addContextButtonView','uiLanguageDirection','placeholder','bind','left','_queryViewResizeObserver','fire','excludeScrollbarsAndBorders','queryView','hasError','1179682GueOPO','value','6270tmfJoN','trim','sendUserMessage','add','execute','56ZpZrvv','destroy','AI_CHAT_LABEL_SUBMIT','AI_CHAT_PROMPT_EMPTY_ERROR','px\x20-\x20var(--ck-spacing-tiny))','ck-ai-chat__prompt-submit-button','requestAnimationFrame'];_0x32ab=function(){return _0x1e6f28;};return _0x32ab();}(function(_0x1392ee,_0xc13190){const _0x4ee4f0=_0x5d50,_0x245840=_0x1392ee();while(!![]){try{const _0x451872=-parseInt(_0x4ee4f0(0x1e7))/0x1+parseInt(_0x4ee4f0(0x1bd))/0x2+-parseInt(_0x4ee4f0(0x1a7))/0x3*(-parseInt(_0x4ee4f0(0x1c4))/0x4)+parseInt(_0x4ee4f0(0x1aa))/0x5*(-parseInt(_0x4ee4f0(0x1de))/0x6)+-parseInt(_0x4ee4f0(0x1ac))/0x7+parseInt(_0x4ee4f0(0x1e2))/0x8*(parseInt(_0x4ee4f0(0x1d3))/0x9)+-parseInt(_0x4ee4f0(0x1bf))/0xa*(-parseInt(_0x4ee4f0(0x1dc))/0xb);if(_0x451872===_0xc13190)break;else _0x245840['push'](_0x245840['shift']());}catch(_0x1fcf79){_0x245840['push'](_0x245840['shift']());}}}(_0x32ab,0xf3436));import{IconSubmit as _0x5cdbfa}from'ckeditor5/src/icons.js';import{ButtonView as _0x28f613,AutocompleteView as _0x8565b3,createLabeledTextarea as _0x44da5c}from'ckeditor5/src/ui.js';import{global as _0x13fc72,isVisible as _0x490267,Rect as _0x1ceee0,ResizeObserver as _0x13862a}from'ckeditor5/src/utils.js';import{getTranslation as _0x11bb82}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x2d5c17}from'./aichatpromptsuggestionslistview.js';function _0x5d50(_0x48e8fa,_0x3fb852){const _0x32ab16=_0x32ab();return _0x5d50=function(_0x5d507d,_0x54bdf5){_0x5d507d=_0x5d507d-0x1a6;let _0x35a17f=_0x32ab16[_0x5d507d];return _0x35a17f;},_0x5d50(_0x48e8fa,_0x3fb852);}import{escape as _0x29b212}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x8565b3{[_0x300748(0x1ad)];static [_0x300748(0x1d4)]=0x1;static [_0x300748(0x1db)]=0xc;[_0x300748(0x1b3)];[_0x300748(0x1b8)];constructor(_0x2a7c10,_0x5f33ef){const _0x6ba08d=_0x300748;super(_0x2a7c10,{'queryView':{'label':'','creator':_0x44da5c,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x2d5c17(_0x2a7c10),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x6ba08d(0x1dd)](_0x6ba08d(0x1ab),!0x0),this[_0x6ba08d(0x1dd)](_0x6ba08d(0x1ae),!0x1),this[_0x6ba08d(0x1b3)]=_0x5f33ef,this[_0x6ba08d(0x1b8)]=null,this[_0x6ba08d(0x1bb)][_0x6ba08d(0x1cb)][_0x6ba08d(0x1b2)]=AIChatPromptInputView[_0x6ba08d(0x1d4)],this[_0x6ba08d(0x1bb)][_0x6ba08d(0x1cb)][_0x6ba08d(0x1cf)]=AIChatPromptInputView[_0x6ba08d(0x1db)],this[_0x6ba08d(0x1bb)][_0x6ba08d(0x1e5)][_0x6ba08d(0x1c2)](this[_0x6ba08d(0x1b3)]),this[_0x6ba08d(0x1d9)](),this[_0x6ba08d(0x1df)]({'attributes':{'class':['ck',_0x6ba08d(0x1d6)]}}),this[_0x6ba08d(0x1ad)]=this[_0x6ba08d(0x1b0)](),this[_0x6ba08d(0x1ad)][_0x6ba08d(0x1b6)](_0x6ba08d(0x1d1))['to'](this,_0x6ba08d(0x1ab),this,_0x6ba08d(0x1ae),(_0x329a1d,_0x20550a)=>!_0x329a1d&&!_0x20550a),this[_0x6ba08d(0x1cc)][_0x6ba08d(0x1c2)](this[_0x6ba08d(0x1ad)]);}[_0x300748(0x1e6)](){const _0xd57a16=_0x300748;super[_0xd57a16(0x1e6)](),this[_0xd57a16(0x1bb)][_0xd57a16(0x1e5)][_0xd57a16(0x1c2)](this[_0xd57a16(0x1ad)]),this[_0xd57a16(0x1e0)][_0xd57a16(0x1dd)](_0xd57a16(0x1ce),(_0x9ef584,_0x1fbdd9)=>{const _0x2081b9=_0xd57a16;this[_0x2081b9(0x1ae)]||this[_0x2081b9(0x1ab)]||_0x9ef584[_0x2081b9(0x1d8)]==this[_0x2081b9(0x1bb)][_0x2081b9(0x1cb)][_0x2081b9(0x1d2)]&&(this[_0x2081b9(0x1d5)](),_0x1fbdd9());}),this[_0xd57a16(0x1bb)][_0xd57a16(0x1cb)]['on'](_0xd57a16(0x1e1),()=>{const _0x31b7d7=_0xd57a16;this[_0x31b7d7(0x1ab)]=''===this[_0x31b7d7(0x1bb)][_0x31b7d7(0x1cb)][_0x31b7d7(0x1d2)][_0x31b7d7(0x1be)]?.[_0x31b7d7(0x1c0)]();});}[_0x300748(0x1c5)](){const _0x3e19f1=_0x300748;super[_0x3e19f1(0x1c5)](),this[_0x3e19f1(0x1b8)]&&this[_0x3e19f1(0x1b8)][_0x3e19f1(0x1c5)]();}[_0x300748(0x1d5)](){const _0x1d686b=_0x300748,_0x18a6c5=this[_0x1d686b(0x1bb)][_0x1d686b(0x1cb)][_0x1d686b(0x1d2)][_0x1d686b(0x1be)]?.[_0x1d686b(0x1c0)]();if(!_0x18a6c5)return this[_0x1d686b(0x1bb)][_0x1d686b(0x1da)]=_0x11bb82(this[_0x1d686b(0x1d0)],_0x1d686b(0x1c7)),void(this[_0x1d686b(0x1bb)][_0x1d686b(0x1cb)][_0x1d686b(0x1bc)]=!0x0);this[_0x1d686b(0x1bb)][_0x1d686b(0x1cb)][_0x1d686b(0x1bc)]=!0x1;const _0x3564b1=_0x29b212(_0x18a6c5);this[_0x1d686b(0x1b9)](_0x1d686b(0x1c1),_0x3564b1),this[_0x1d686b(0x1bb)][_0x1d686b(0x1cb)][_0x1d686b(0x1e4)]();}[_0x300748(0x1a6)](_0x28c07b){const _0xa6980a=_0x300748;this[_0xa6980a(0x1bb)][_0xa6980a(0x1cb)][_0xa6980a(0x1dd)](_0xa6980a(0x1b5),_0x28c07b);}[_0x300748(0x1b0)](){const _0x35089d=_0x300748,_0xfa363c=new _0x28f613(this[_0x35089d(0x1d0)]);return _0xfa363c[_0x35089d(0x1dd)]({'icon':_0x5cdbfa,'label':_0x11bb82(this[_0x35089d(0x1d0)],_0x35089d(0x1c6)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x35089d(0x1c9),'isEnabled':!0x1}),_0xfa363c['on'](_0x35089d(0x1c3),()=>{const _0x4d3590=_0x35089d;this[_0x4d3590(0x1d5)]();}),_0xfa363c;}[_0x300748(0x1b1)](_0x28a147){const _0xb2c7c9=_0x300748;this[_0xb2c7c9(0x1ae)]=_0x28a147;}[_0x300748(0x1d9)](){const _0x33622b=_0x300748,_0x2f36dd=this[_0x33622b(0x1d0)],_0x258b6=()=>{const _0x37481c=_0x33622b;_0x13fc72[_0x37481c(0x1cd)][_0x37481c(0x1ca)](()=>{const _0x2f7db8=_0x37481c;if(_0x490267(this[_0x2f7db8(0x1d2)])){const _0x2817fe=new _0x1ceee0(this[_0x2f7db8(0x1bb)][_0x2f7db8(0x1cb)][_0x2f7db8(0x1d2)]),_0x1ff1b6=new _0x1ceee0(this[_0x2f7db8(0x1b3)][_0x2f7db8(0x1d2)]),_0x3b5877=_0x2817fe[_0x2f7db8(0x1d7)],_0x3349ae=_0x2f7db8(0x1e3)===_0x2f36dd[_0x2f7db8(0x1b4)]?_0x2f7db8(0x1a9):_0x2f7db8(0x1b7);_0x2817fe[_0x2f7db8(0x1ba)]();const _0x347c0c=_0x3b5877-_0x2817fe[_0x2f7db8(0x1d7)]+0x1;this[_0x2f7db8(0x1b3)][_0x2f7db8(0x1d2)][_0x2f7db8(0x1af)][_0x3349ae]=_0x2f7db8(0x1a8)+(_0x3b5877-_0x1ff1b6[_0x2f7db8(0x1d7)]-_0x347c0c)+_0x2f7db8(0x1c8);}});};this[_0x33622b(0x1bb)][_0x33622b(0x1cb)]['on'](_0x33622b(0x1e1),_0x258b6),this['on'](_0x33622b(0x1e6),()=>{const _0x58ca19=_0x33622b;_0x258b6(),this[_0x58ca19(0x1b8)]=new _0x13862a(this[_0x58ca19(0x1bb)][_0x58ca19(0x1cb)][_0x58ca19(0x1d2)],()=>{_0x258b6();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x386779=_0x5457;(function(_0x2fb1e2,_0x41dc5e){const _0x511f3b=_0x5457,_0x18a251=_0x2fb1e2();while(!![]){try{const _0x3319e1=parseInt(_0x511f3b(0x1b7))/0x1*(-parseInt(_0x511f3b(0x1ba))/0x2)+-parseInt(_0x511f3b(0x1bb))/0x3+-parseInt(_0x511f3b(0x1b9))/0x4+parseInt(_0x511f3b(0x1bc))/0x5+parseInt(_0x511f3b(0x1b3))/0x6*(parseInt(_0x511f3b(0x1b6))/0x7)+parseInt(_0x511f3b(0x1b1))/0x8*(-parseInt(_0x511f3b(0x1b8))/0x9)+parseInt(_0x511f3b(0x1bd))/0xa;if(_0x3319e1===_0x41dc5e)break;else _0x18a251['push'](_0x18a251['shift']());}catch(_0x5a596a){_0x18a251['push'](_0x18a251['shift']());}}}(_0x1f28,0x4d4ca));import{ListView as _0x9baaa7}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x9baaa7{[_0x386779(0x1b4)](){const _0x44da44=_0x386779;let _0x34667b=0x0;for(const _0x2fc1eb of this[_0x44da44(0x1b2)])_0x34667b+=_0x2fc1eb[_0x44da44(0x1b2)][_0x44da44(0x1b5)];return{'resultsCount':_0x34667b,'totalItemsCount':_0x34667b};}}function _0x5457(_0x564d01,_0xc4cbb){const _0x1f28c7=_0x1f28();return _0x5457=function(_0x5457a8,_0x5dbab2){_0x5457a8=_0x5457a8-0x1b1;let _0x486188=_0x1f28c7[_0x5457a8];return _0x486188;},_0x5457(_0x564d01,_0xc4cbb);}function _0x1f28(){const _0xbf0a69=['31136uDUPJD','531SMlwKl','99081Jcqeub','2416700mrhWqR','258MGlnjU','204906CgeQts','1333195oZJTnk','6399530VRYsAL','304lezgek','items','768bMqSlA','filter','length'];_0x1f28=function(){return _0xbf0a69;};return _0x1f28();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x33b4(){const _0x3f5d2b=['14019445KdDzUI','ck-ai-chat-resources__item--in-context','getResourceIcon','ck-ai-chat-resources__item-title','setTemplate','set','128346QSExep','ck-ai-chat-resources__item','ck-ai-chat-resources__item__icon','4455130syYrKB','isVisible','text','_iconView','33OiSDgp','2667933xgWqDR','2275670eYRAwx','TEXT','span','URL','label','trim','172684SOLSMX','type','resource','175PGSzUw','bindTemplate','FILE','updateResourceState','_createTitleView','render','38121zhATdp','ck-hidden','isInContext','content','_updateIcon','24ZiyypH','_setupTemplate','_createIconView','execute','_titleView','highlightText','DOCUMENT','div','10sapIfc','extendTemplate'];_0x33b4=function(){return _0x3f5d2b;};return _0x33b4();}const _0x5d4fec=_0x9fc5;(function(_0x5b37f2,_0x2e00da){const _0x495155=_0x9fc5,_0x43e2da=_0x5b37f2();while(!![]){try{const _0x4d6c73=parseInt(_0x495155(0xd2))/0x1*(parseInt(_0x495155(0xdf))/0x2)+-parseInt(_0x495155(0xee))/0x3*(parseInt(_0x495155(0xc9))/0x4)+parseInt(_0x495155(0xf0))/0x5+parseInt(_0x495155(0xe7))/0x6*(-parseInt(_0x495155(0xcc))/0x7)+-parseInt(_0x495155(0xd7))/0x8*(parseInt(_0x495155(0xef))/0x9)+parseInt(_0x495155(0xea))/0xa+parseInt(_0x495155(0xe1))/0xb;if(_0x4d6c73===_0x2e00da)break;else _0x43e2da['push'](_0x43e2da['shift']());}catch(_0x5d7171){_0x43e2da['push'](_0x43e2da['shift']());}}}(_0x33b4,0x71f5c));import{HighlightedTextView as _0x5f0fcd,IconView as _0xfa0d90,ListItemView as _0x58edda}from'ckeditor5/src/ui.js';function _0x9fc5(_0x35a5b6,_0x21018b){const _0x33b421=_0x33b4();return _0x9fc5=function(_0x9fc54b,_0x107e26){_0x9fc54b=_0x9fc54b-0xc5;let _0x116cfe=_0x33b421[_0x9fc54b];return _0x116cfe;},_0x9fc5(_0x35a5b6,_0x21018b);}import{escapeRegExp as _0x33fd79}from'es-toolkit/compat';import{AIContextItemType as _0x1362bd}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0xbce51a,IconCheck as _0x457300,IconDocument as _0x12004e,IconDocumentOutline as _0x512785,IconLink as _0x91ba4e}from'@ckeditor/ckeditor5-icons';const qr=_0x5d4fec(0xe8),zr=_0x5d4fec(0xe2),Br=_0x5d4fec(0xe4),Fr=_0x5d4fec(0xe9);export class AIChatResourceListItemView extends _0x58edda{[_0x5d4fec(0xcb)];[_0x5d4fec(0xdb)];[_0x5d4fec(0xed)];constructor(_0x58a243,_0x349ee2){const _0x4cbfb4=_0x5d4fec;super(_0x58a243),this[_0x4cbfb4(0xcb)]=_0x349ee2,this[_0x4cbfb4(0xe6)](_0x4cbfb4(0xd4),!!_0x349ee2[_0x4cbfb4(0xd4)]),this[_0x4cbfb4(0xdb)]=this[_0x4cbfb4(0xd0)](),this[_0x4cbfb4(0xed)]=this[_0x4cbfb4(0xd9)](),this[_0x4cbfb4(0xd8)]();}[_0x5d4fec(0xd1)](){const _0x57fbf3=_0x5d4fec;super[_0x57fbf3(0xd1)]();}[_0x5d4fec(0xe3)](_0x4eab68){const _0x417434=_0x5d4fec;if(_0x4eab68[_0x417434(0xd4)])return _0x457300;switch(_0x4eab68[_0x417434(0xca)]){case _0x1362bd[_0x417434(0xdd)]:return _0x12004e;case _0x1362bd[_0x417434(0xc6)]:return _0x91ba4e;case _0x1362bd[_0x417434(0xce)]:case _0x1362bd[_0x417434(0xf1)]:return _0xbce51a;default:return _0x512785;}}[_0x5d4fec(0xdc)](_0x382f24){const _0x2fc496=_0x5d4fec;if(!_0x382f24||''===_0x382f24[_0x2fc496(0xc8)]())return void this[_0x2fc496(0xdb)][_0x2fc496(0xdc)](null);const _0x3219ee=new RegExp(_0x33fd79(_0x382f24),'gi');this[_0x2fc496(0xdb)][_0x2fc496(0xdc)](_0x3219ee);}[_0x5d4fec(0xcf)](_0x24e4c6){const _0x51251b=_0x5d4fec;this[_0x51251b(0xcb)][_0x51251b(0xd4)]=_0x24e4c6,this[_0x51251b(0xd4)]=_0x24e4c6,this[_0x51251b(0xd6)]();}[_0x5d4fec(0xd0)](){const _0x1fd386=_0x5d4fec,_0x3320e6=new _0x5f0fcd();return _0x3320e6[_0x1fd386(0xec)]=this[_0x1fd386(0xcb)][_0x1fd386(0xc7)],_0x3320e6[_0x1fd386(0xe0)]({'tag':_0x1fd386(0xc5),'attributes':{'class':[Br]}}),_0x3320e6;}[_0x5d4fec(0xd9)](){const _0x149419=_0x5d4fec,_0x55b38d=new _0xfa0d90();return _0x55b38d[_0x149419(0xd5)]=this[_0x149419(0xe3)](this[_0x149419(0xcb)]),_0x55b38d;}[_0x5d4fec(0xd8)](){const _0x42cce0=_0x5d4fec,_0x403b61=this[_0x42cce0(0xcd)];this[_0x42cce0(0xe5)]({'tag':_0x42cce0(0xde),'attributes':{'class':[qr,_0x403b61['if'](_0x42cce0(0xeb),_0x42cce0(0xd3),_0x216a37=>!_0x216a37),_0x403b61['if'](_0x42cce0(0xd4),zr)]},'children':[{'tag':_0x42cce0(0xde),'attributes':{'class':[Fr]},'children':[this[_0x42cce0(0xed)]]},this[_0x42cce0(0xdb)]],'on':{'click':_0x403b61['to'](_0x42cce0(0xda))}});}[_0x5d4fec(0xd6)](){const _0x5994f4=_0x5d4fec;this[_0x5994f4(0xed)][_0x5994f4(0xd5)]=this[_0x5994f4(0xe3)](this[_0x5994f4(0xcb)]);}}
|