@ckeditor/ckeditor5-ai 47.6.0-alpha.8 → 47.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/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/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x9a63e2=_0x5ca4;(function(_0x417d81,_0x54f91c){const _0x229aaf=_0x5ca4,_0x2e34eb=_0x417d81();while(!![]){try{const _0x1f9e35=parseInt(_0x229aaf(0x1bb))/0x1+parseInt(_0x229aaf(0x1f9))/0x2*(parseInt(_0x229aaf(0x202))/0x3)+-parseInt(_0x229aaf(0x19f))/0x4*(parseInt(_0x229aaf(0x1c5))/0x5)+parseInt(_0x229aaf(0x1eb))/0x6+parseInt(_0x229aaf(0x200))/0x7+-parseInt(_0x229aaf(0x1ba))/0x8+parseInt(_0x229aaf(0x1ca))/0x9*(-parseInt(_0x229aaf(0x1c8))/0xa);if(_0x1f9e35===_0x54f91c)break;else _0x2e34eb['push'](_0x2e34eb['shift']());}catch(_0x143c68){_0x2e34eb['push'](_0x2e34eb['shift']());}}}(_0x3fd8,0xbb822));function _0x5ca4(_0x5d64e5,_0x4a5e10){const _0x3fd8c2=_0x3fd8();return _0x5ca4=function(_0x5ca412,_0x4de037){_0x5ca412=_0x5ca412-0x184;let _0x3eb900=_0x3fd8c2[_0x5ca412];return _0x3eb900;},_0x5ca4(_0x5d64e5,_0x4a5e10);}import{View as _0x17fd47,BalloonPanelView as _0x52533a,ButtonView as _0x30c05c,clickOutsideHandler as _0x1a4e37}from'ckeditor5/src/ui.js';import{Collection as _0x2c5bca}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x9a63e2(0x18d);function _0x3fd8(){const _0x1a2657=['300px','destroy','overflowContainer','className','length','_testButtonFit','isConnected','controlsButton','_isContainerVisible','observe','pin','display','_repinBalloonPanel','opacity','parentElement','_applyCalculationStyles','remove','clientWidth','4MMMitq','createElement','reorganizeChips','visible','_handleShowMoreButtonClick','_updateBalloonContent','showMoreButtonView','showMoreButton','from','tagName','abs','_createCalculationContainer','getBoundingClientRect','_intersectionObserver','_parentView','_config','add','filter','render','_updateShowMoreButtonVisibility','_createShowMoreBalloonPanelView','forEach','isOn','_renderChipsAndCountRows','_findTargetContainer','element','extendTemplate','7381888hcWQjC','1070090pbbMbs','style','_applyOverflowResults','pointerEvents','+\x201','appendChild','_distributeChips','_calculateContainerWidth','toLowerCase','maxVisibleRows','6029995mwtpoM','children','slice','10DSLvoS','none','6972786fLqvdO','div','right','50px','visible\x20!important','boxSizing','top','0px','textContent','hide','_createContainerElements','clear','_containerElement','classList','body','_createMockButton','block','_showMoreButtonView','.ck-ai-chat','block\x20!important','width','visibility','innerWidth','_ancestorsToRestore','auto','isIntersecting','_makeAncestorsVisible','_createShowMoreButtonView','absolute','push','show','isVisible','_bodyCollection','3869154jYkXyW','pop','clientHeight','some','rowDetectionTolerance','label','button','zIndex','disconnect','_locale','_updateOverflowUI','_overflowChips','disableAnimationOnEnter','_restoreAncestorVisibility','8212xNGVGG','_calculateOverflowInContainer','content','calculationContainer','showMoreLabelPrefix','_createShowMoreButton','setTemplate','5705742DDPQcr','cloneNode','834TtBPVe','height','position','left','set','_setupVisibilityObserver','hideBalloonPanel','-9999px','showMoreBalloon','showBalloonPanel','_pendingCalculation','_checkAndHandleOverflow','hidden','offsetWidth','includes','getComputedStyle','border-box','innerHeight','querySelector','execute','_targetContainer','cssClasses','setContainerElement','overflowChips','undefined','documentElement','innerHTML','_visibleChips','ck-calculation-container','_showMoreBalloonPanelView','bottom'];_0x3fd8=function(){return _0x1a2657;};return _0x3fd8();}export class AIChatChipsOverflowManager{[_0x9a63e2(0x1f4)];[_0x9a63e2(0x1ae)];[_0x9a63e2(0x189)];[_0x9a63e2(0x1f6)];[_0x9a63e2(0x1db)]=null;[_0x9a63e2(0x18b)]=null;[_0x9a63e2(0x1d6)]=null;[_0x9a63e2(0x1ea)];[_0x9a63e2(0x1ad)]=null;[_0x9a63e2(0x1ac)]=null;[_0x9a63e2(0x20c)]=!0x1;constructor(_0x20737c,_0x3a8ae5,_0x455e0d,_0x2f2cab,_0x363f36){const _0x103bb3=_0x9a63e2;this[_0x103bb3(0x1f4)]=_0x20737c,this[_0x103bb3(0x189)]=_0x3a8ae5,this[_0x103bb3(0x1ae)]={...hn,..._0x455e0d,'cssClasses':{'controlsButton':'','calculationContainer':_0x103bb3(0x18a),..._0x455e0d[_0x103bb3(0x217)]}},this[_0x103bb3(0x1f6)]=new _0x2c5bca(),this[_0x103bb3(0x1ea)]=_0x2f2cab,this[_0x103bb3(0x1ad)]=_0x363f36||null;}[_0x9a63e2(0x184)](_0x40fe80){const _0x3e66cf=_0x9a63e2;this[_0x3e66cf(0x1ac)]&&(this[_0x3e66cf(0x1ac)][_0x3e66cf(0x1f3)](),this[_0x3e66cf(0x1ac)]=null),this[_0x3e66cf(0x1d6)]=_0x40fe80,this[_0x3e66cf(0x207)]();}get[_0x9a63e2(0x1a5)](){const _0x5c54dc=_0x9a63e2;return this[_0x5c54dc(0x1db)];}get[_0x9a63e2(0x185)](){const _0x1adb74=_0x9a63e2;return this[_0x1adb74(0x1f6)];}[_0x9a63e2(0x1a1)](){requestAnimationFrame(()=>{const _0x787d5c=_0x5ca4;this[_0x787d5c(0x20d)]();});}[_0x9a63e2(0x20b)](){const _0x4125fc=_0x9a63e2;this[_0x4125fc(0x1db)]&&this[_0x4125fc(0x18b)]&&(this[_0x4125fc(0x1a4)](),this[_0x4125fc(0x1db)][_0x4125fc(0x1b5)]=!0x0,this[_0x4125fc(0x18b)][_0x4125fc(0x1e8)](),this[_0x4125fc(0x18b)][_0x4125fc(0x197)]({'target':this[_0x4125fc(0x1db)][_0x4125fc(0x1b8)],'limiter':document[_0x4125fc(0x214)](_0x4125fc(0x1dc))}));}[_0x9a63e2(0x208)](){const _0x56d174=_0x9a63e2;this[_0x56d174(0x1db)]&&this[_0x56d174(0x18b)]&&(this[_0x56d174(0x1db)][_0x56d174(0x1b5)]=!0x1,this[_0x56d174(0x18b)][_0x56d174(0x1d3)]());}[_0x9a63e2(0x1d5)](){const _0x3e12ad=_0x9a63e2;this[_0x3e12ad(0x1f6)][_0x3e12ad(0x1d5)](),this[_0x3e12ad(0x208)](),this[_0x3e12ad(0x1b2)](),this[_0x3e12ad(0x1db)]&&(this[_0x3e12ad(0x1db)][_0x3e12ad(0x1f0)]=''),this[_0x3e12ad(0x18b)]&&this[_0x3e12ad(0x18b)][_0x3e12ad(0x1fb)][_0x3e12ad(0x1d5)]();}[_0x9a63e2(0x18e)](){const _0x1c7789=_0x9a63e2;this[_0x1c7789(0x1ac)]&&(this[_0x1c7789(0x1ac)][_0x1c7789(0x1f3)](),this[_0x1c7789(0x1ac)]=null),this[_0x1c7789(0x1db)]&&(this[_0x1c7789(0x1db)][_0x1c7789(0x18e)](),this[_0x1c7789(0x1db)]=null),this[_0x1c7789(0x18b)]&&(this[_0x1c7789(0x18b)][_0x1c7789(0x18e)](),this[_0x1c7789(0x18b)]=null);}[_0x9a63e2(0x20d)](){const _0x52c800=_0x9a63e2;if(!this[_0x52c800(0x1d6)])return;if(!this[_0x52c800(0x195)]())return void(this[_0x52c800(0x20c)]=!0x0);this[_0x52c800(0x20c)]=!0x1;const _0x3af0d3=[...this[_0x52c800(0x189)],...this[_0x52c800(0x1f6)]],_0x347db0=this[_0x52c800(0x1aa)](),_0x321085=this[_0x52c800(0x1fa)](_0x347db0,_0x3af0d3),_0x32c198=_0x347db0[_0x52c800(0x1e1)];_0x32c198&&this[_0x52c800(0x1f8)](_0x32c198),_0x347db0[_0x52c800(0x19d)](),this[_0x52c800(0x1bd)](_0x3af0d3,_0x321085);}[_0x9a63e2(0x1fe)](){const _0x3f1f49=_0x9a63e2;this[_0x3f1f49(0x1db)]=this[_0x3f1f49(0x1e5)](),this[_0x3f1f49(0x18b)]=this[_0x3f1f49(0x1b3)](),this[_0x3f1f49(0x1db)][_0x3f1f49(0x1b1)](),this[_0x3f1f49(0x1d6)][_0x3f1f49(0x1c0)](this[_0x3f1f49(0x1db)][_0x3f1f49(0x1b8)]),this[_0x3f1f49(0x1db)]['on'](_0x3f1f49(0x215),()=>{const _0x368caf=_0x3f1f49;this[_0x368caf(0x1a3)]();}),_0x1a4e37({'emitter':this[_0x3f1f49(0x18b)],'contextElements':[this[_0x3f1f49(0x18b)][_0x3f1f49(0x1b8)],this[_0x3f1f49(0x1db)][_0x3f1f49(0x1b8)]],'callback':()=>this[_0x3f1f49(0x208)](),'activator':()=>this[_0x3f1f49(0x1db)][_0x3f1f49(0x1b5)]});}[_0x9a63e2(0x1e5)](){const _0x1ebeee=_0x9a63e2,_0x4301b6=new _0x30c05c(this[_0x1ebeee(0x1f4)]);_0x4301b6[_0x1ebeee(0x206)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1f5110=[this[_0x1ebeee(0x1ae)][_0x1ebeee(0x217)][_0x1ebeee(0x1a6)]];return this[_0x1ebeee(0x1ae)][_0x1ebeee(0x217)][_0x1ebeee(0x194)]&&_0x1f5110[_0x1ebeee(0x1e7)](this[_0x1ebeee(0x1ae)][_0x1ebeee(0x217)][_0x1ebeee(0x194)]),_0x4301b6[_0x1ebeee(0x1b9)]({'attributes':{'class':_0x1f5110}}),_0x4301b6;}[_0x9a63e2(0x1b3)](){const _0x3177a6=_0x9a63e2,_0xb7e0ee=new _0x52533a(this[_0x3177a6(0x1f4)]);return _0xb7e0ee[_0x3177a6(0x1b9)]({'attributes':{'class':this[_0x3177a6(0x1ae)][_0x3177a6(0x217)][_0x3177a6(0x20a)]}}),this[_0x3177a6(0x1ea)][_0x3177a6(0x1af)](_0xb7e0ee),_0xb7e0ee;}[_0x9a63e2(0x1a4)](){const _0x40487e=_0x9a63e2;if(this[_0x40487e(0x18b)]&&(this[_0x40487e(0x18b)][_0x40487e(0x1fb)][_0x40487e(0x1d5)](),this[_0x40487e(0x1f6)][_0x40487e(0x191)]>0x0)){this[_0x40487e(0x1f6)][_0x40487e(0x1b4)](_0x4123b1=>{const _0x26a255=_0x40487e;_0x4123b1[_0x26a255(0x1f7)]();});const _0xcee82=new _0x17fd47(this[_0x40487e(0x1f4)]);_0xcee82[_0x40487e(0x1ff)]({'tag':_0x40487e(0x1cb),'attributes':{'class':this[_0x40487e(0x1ae)][_0x40487e(0x217)][_0x40487e(0x18f)]},'children':this[_0x40487e(0x1f6)]}),this[_0x40487e(0x18b)][_0x40487e(0x1fb)][_0x40487e(0x1af)](_0xcee82);}}[_0x9a63e2(0x1a3)](){const _0x11092d=_0x9a63e2;this[_0x11092d(0x1db)][_0x11092d(0x1b5)]?this[_0x11092d(0x208)]():this[_0x11092d(0x20b)]();}[_0x9a63e2(0x1b2)](){const _0x29c674=_0x9a63e2,_0x584e52=this[_0x29c674(0x1f6)][_0x29c674(0x191)]>0x0;this[_0x29c674(0x1db)]?.[_0x29c674(0x1b8)]&&(this[_0x29c674(0x1db)][_0x29c674(0x1b8)][_0x29c674(0x1bc)][_0x29c674(0x198)]=_0x584e52?'':_0x29c674(0x1c9));}[_0x9a63e2(0x199)](){const _0x3808b5=_0x9a63e2;this[_0x3808b5(0x1db)]?.[_0x3808b5(0x1b5)]&&this[_0x3808b5(0x18b)]?.[_0x3808b5(0x1e9)]&&this[_0x3808b5(0x1db)][_0x3808b5(0x1b8)]&&this[_0x3808b5(0x18b)][_0x3808b5(0x197)]({'target':this[_0x3808b5(0x1db)][_0x3808b5(0x1b8)],'limiter':document[_0x3808b5(0x214)](_0x3808b5(0x1dc))});}[_0x9a63e2(0x1b7)](_0x35ba95){const _0x5bfdef=_0x9a63e2,_0x57b7db=this[_0x5bfdef(0x1d6)]?.[_0x5bfdef(0x1a8)][_0x5bfdef(0x1c3)]()||_0x5bfdef(0x1cb),_0x1b2a65=this[_0x5bfdef(0x1d6)]?.[_0x5bfdef(0x1d7)];if(_0x1b2a65){const _0x1e76aa=_0x1b2a65[0x0]||'',_0x35eeff=_0x35ba95[_0x5bfdef(0x214)]('.'+_0x1e76aa),_0x12ba87=_0x35ba95[_0x5bfdef(0x214)](_0x57b7db);return _0x35eeff||_0x12ba87||_0x35ba95;}return _0x35ba95[_0x5bfdef(0x214)](_0x57b7db)||_0x35ba95;}[_0x9a63e2(0x1c2)](){const _0x18a50a=_0x9a63e2,_0x14d405=this[_0x18a50a(0x1ad)]?.[_0x18a50a(0x1b8)]||this[_0x18a50a(0x1d6)];if(!_0x14d405)return an;const _0x4d7519=window[_0x18a50a(0x211)](_0x14d405)[_0x18a50a(0x1de)];if(_0x18a50a(0x1e2)===_0x4d7519||_0x18a50a(0x1d1)===_0x4d7519||!_0x4d7519){const _0x1e8e14=_0x14d405[_0x18a50a(0x19b)];if(_0x1e8e14){const _0x13ab3e=window[_0x18a50a(0x211)](_0x1e8e14);return _0x18a50a(0x1e2)!==_0x13ab3e[_0x18a50a(0x1de)]?_0x13ab3e[_0x18a50a(0x1de)]:an;}return an;}return _0x4d7519;}[_0x9a63e2(0x19c)](_0x241d2e,_0x10657e){const _0x5e7ee0=_0x9a63e2;this[_0x5e7ee0(0x1ae)][_0x5e7ee0(0x217)][_0x5e7ee0(0x1fc)]&&_0x241d2e[_0x5e7ee0(0x1d7)][_0x5e7ee0(0x1af)](this[_0x5e7ee0(0x1ae)][_0x5e7ee0(0x217)][_0x5e7ee0(0x1fc)]),_0x241d2e[_0x5e7ee0(0x1bc)][_0x5e7ee0(0x1de)]=_0x10657e,_0x241d2e[_0x5e7ee0(0x1bc)][_0x5e7ee0(0x204)]=_0x5e7ee0(0x1e6),_0x241d2e[_0x5e7ee0(0x1bc)][_0x5e7ee0(0x1d0)]=_0x5e7ee0(0x209),_0x241d2e[_0x5e7ee0(0x1bc)][_0x5e7ee0(0x205)]=_0x5e7ee0(0x209),_0x241d2e[_0x5e7ee0(0x1bc)][_0x5e7ee0(0x19a)]='0',_0x241d2e[_0x5e7ee0(0x1bc)][_0x5e7ee0(0x1be)]=_0x5e7ee0(0x1c9),_0x241d2e[_0x5e7ee0(0x1bc)][_0x5e7ee0(0x1f2)]='-1',_0x241d2e[_0x5e7ee0(0x1bc)][_0x5e7ee0(0x1df)]=_0x5e7ee0(0x1ce),_0x241d2e[_0x5e7ee0(0x1bc)][_0x5e7ee0(0x198)]=_0x5e7ee0(0x1dd),_0x241d2e[_0x5e7ee0(0x1bc)][_0x5e7ee0(0x1cf)]=_0x5e7ee0(0x212);}[_0x9a63e2(0x1f8)](_0x28c598){const _0x59b752=_0x9a63e2;_0x28c598[_0x59b752(0x1b4)](({element:_0x55f4f6,originalDisplay:_0x504dc1,originalVisibility:_0x3fdff7})=>{const _0x257d81=_0x59b752;_0x55f4f6[_0x257d81(0x1bc)][_0x257d81(0x198)]=_0x504dc1,_0x55f4f6[_0x257d81(0x1bc)][_0x257d81(0x1df)]=_0x3fdff7;});}[_0x9a63e2(0x1e4)](_0x41bd6b){const _0x138f62=_0x9a63e2,_0x3248e8=[];let _0x1eddd4=_0x41bd6b;for(;_0x1eddd4&&_0x1eddd4!==document[_0x138f62(0x1d8)];){const _0x5bcbf2=window[_0x138f62(0x211)](_0x1eddd4);_0x138f62(0x1c9)!==_0x5bcbf2[_0x138f62(0x198)]&&_0x138f62(0x20e)!==_0x5bcbf2[_0x138f62(0x1df)]||(_0x3248e8[_0x138f62(0x1e7)]({'element':_0x1eddd4,'originalDisplay':_0x1eddd4[_0x138f62(0x1bc)][_0x138f62(0x198)],'originalVisibility':_0x1eddd4[_0x138f62(0x1bc)][_0x138f62(0x1df)]}),_0x1eddd4[_0x138f62(0x1bc)][_0x138f62(0x198)]=_0x138f62(0x1da),_0x1eddd4[_0x138f62(0x1bc)][_0x138f62(0x1df)]=_0x138f62(0x1a2)),_0x1eddd4=_0x1eddd4[_0x138f62(0x19b)];}return _0x3248e8;}[_0x9a63e2(0x1d4)](){const _0x32b21a=_0x9a63e2;let _0x13af1c,_0x23ffd4;return this[_0x32b21a(0x1ad)]?.[_0x32b21a(0x1b8)]?(_0x13af1c=this[_0x32b21a(0x1ad)][_0x32b21a(0x1b8)][_0x32b21a(0x201)](!0x0),_0x23ffd4=this[_0x32b21a(0x1b7)](_0x13af1c)):(_0x13af1c=document[_0x32b21a(0x1a0)](_0x32b21a(0x1cb)),_0x23ffd4=_0x13af1c),{'calculationContainer':_0x13af1c,'targetContainer':_0x23ffd4};}[_0x9a63e2(0x1aa)](){const _0x37fc28=_0x9a63e2,{calculationContainer:_0x306fa6,targetContainer:_0x3ea552}=this[_0x37fc28(0x1d4)](),_0x41d94d=this[_0x37fc28(0x1c2)]();this[_0x37fc28(0x19c)](_0x306fa6,_0x41d94d);const _0x4012b1=this[_0x37fc28(0x1ad)]?.[_0x37fc28(0x1b8)]||this[_0x37fc28(0x1d6)],_0x6dfd64=_0x4012b1?.[_0x37fc28(0x19b)];_0x6dfd64?_0x6dfd64[_0x37fc28(0x1c0)](_0x306fa6):document[_0x37fc28(0x1d8)][_0x37fc28(0x1c0)](_0x306fa6),_0x306fa6[_0x37fc28(0x216)]=_0x3ea552;const _0x565a81=this[_0x37fc28(0x1e4)](_0x6dfd64||null);return _0x306fa6[_0x37fc28(0x20f)],_0x306fa6[_0x37fc28(0x1e1)]=_0x565a81,_0x306fa6;}[_0x9a63e2(0x1fa)](_0x57f4a5,_0x328a65){const _0x348812=_0x9a63e2,_0x190bb6=_0x57f4a5[_0x348812(0x216)]||_0x57f4a5,_0x49021c=[],{rowCount:_0x254d29}=this[_0x348812(0x1b6)](_0x190bb6,_0x328a65);if(_0x254d29<=this[_0x348812(0x1ae)][_0x348812(0x1c4)])return _0x49021c;const _0x53ae32=_0x328a65[_0x348812(0x1c7)]();for(;_0x53ae32[_0x348812(0x191)]>0x0;){if(this[_0x348812(0x192)](_0x57f4a5,_0x190bb6,_0x53ae32)){const _0x39769c=_0x328a65[_0x348812(0x1b0)](_0x113e5a=>!_0x53ae32[_0x348812(0x210)](_0x113e5a));_0x49021c[_0x348812(0x1e7)](..._0x39769c);break;}if(!_0x53ae32[_0x348812(0x1ec)]())break;}return _0x49021c;}[_0x9a63e2(0x1b6)](_0x561511,_0x43c25c){const _0x915535=_0x9a63e2;_0x561511[_0x915535(0x188)]='',_0x43c25c[_0x915535(0x1b4)](_0x1c120c=>{const _0x5bf2ce=_0x915535;if(_0x1c120c[_0x5bf2ce(0x1b8)]){const _0x1fe94e=_0x1c120c[_0x5bf2ce(0x1b8)][_0x5bf2ce(0x201)](!0x0);_0x561511[_0x5bf2ce(0x1c0)](_0x1fe94e);}}),_0x561511[_0x915535(0x20f)];const _0x25ffc9=_0x561511[_0x915535(0x1c6)],_0x1fab6c=[];return Array[_0x915535(0x1a7)](_0x25ffc9)[_0x915535(0x1b4)](_0x5a5566=>{const _0x57c62d=_0x915535,_0x81511a=_0x5a5566[_0x57c62d(0x1ab)]()[_0x57c62d(0x1d0)];_0x1fab6c[_0x57c62d(0x1ee)](_0xf4ff7f=>Math[_0x57c62d(0x1a9)](_0xf4ff7f-_0x81511a)<this[_0x57c62d(0x1ae)][_0x57c62d(0x1ef)])||_0x1fab6c[_0x57c62d(0x1e7)](_0x81511a);}),{'rowCount':_0x1fab6c[_0x915535(0x191)]};}[_0x9a63e2(0x1d9)](){const _0x279749=_0x9a63e2,_0x4b1d1b=document[_0x279749(0x1a0)](_0x279749(0x1f1));return _0x4b1d1b[_0x279749(0x190)]=this[_0x279749(0x1ae)][_0x279749(0x217)][_0x279749(0x1a6)],this[_0x279749(0x1ae)][_0x279749(0x217)][_0x279749(0x194)]&&_0x4b1d1b[_0x279749(0x1d7)][_0x279749(0x1af)](this[_0x279749(0x1ae)][_0x279749(0x217)][_0x279749(0x194)]),_0x4b1d1b[_0x279749(0x1d2)]=_0x279749(0x1bf),_0x4b1d1b;}[_0x9a63e2(0x192)](_0x553761,_0x10fa6f,_0x536b2c){const _0x2bfb8b=_0x9a63e2;this[_0x2bfb8b(0x1b6)](_0x10fa6f,_0x536b2c);const _0x195eb8=this[_0x2bfb8b(0x1d9)]();_0x553761[_0x2bfb8b(0x1c0)](_0x195eb8),_0x553761[_0x2bfb8b(0x20f)];const _0x185044=[..._0x10fa6f[_0x2bfb8b(0x1c6)],_0x195eb8],_0x2e1d2f=[];_0x185044[_0x2bfb8b(0x1b4)](_0x1887c3=>{const _0xff5695=_0x2bfb8b,_0x592da2=_0x1887c3[_0xff5695(0x1ab)]()[_0xff5695(0x1d0)];_0x2e1d2f[_0xff5695(0x1ee)](_0x547167=>Math[_0xff5695(0x1a9)](_0x547167-_0x592da2)<this[_0xff5695(0x1ae)][_0xff5695(0x1ef)])||_0x2e1d2f[_0xff5695(0x1e7)](_0x592da2);});const _0x160085=_0x2e1d2f[_0x2bfb8b(0x191)];return _0x195eb8[_0x2bfb8b(0x19d)](),_0x160085<=this[_0x2bfb8b(0x1ae)][_0x2bfb8b(0x1c4)];}[_0x9a63e2(0x1c1)](_0x21011c,_0x2622e8){const _0x4a38ca=_0x9a63e2;this[_0x4a38ca(0x189)][_0x4a38ca(0x1d5)](),this[_0x4a38ca(0x1f6)][_0x4a38ca(0x1d5)](),_0x21011c[_0x4a38ca(0x1b4)](_0x132143=>{const _0x17c9de=_0x4a38ca;_0x2622e8[_0x17c9de(0x210)](_0x132143)?this[_0x17c9de(0x1f6)][_0x17c9de(0x1af)](_0x132143):this[_0x17c9de(0x189)][_0x17c9de(0x1af)](_0x132143);});}[_0x9a63e2(0x1f5)](_0x369709){const _0x76ffa3=_0x9a63e2;if(_0x369709>0x0&&!this[_0x76ffa3(0x1db)]&&this[_0x76ffa3(0x1fe)](),_0x369709>0x0&&this[_0x76ffa3(0x1db)]){const _0x40c764=''+this[_0x76ffa3(0x1ae)][_0x76ffa3(0x1fd)]+(_0x369709<0x63?_0x369709:'99');this[_0x76ffa3(0x1db)][_0x76ffa3(0x1f0)]=_0x40c764;}this[_0x76ffa3(0x1a4)](),this[_0x76ffa3(0x1b2)](),this[_0x76ffa3(0x199)]();}[_0x9a63e2(0x1bd)](_0x292b4e,_0x3f304a){const _0x24e04f=_0x9a63e2;this[_0x24e04f(0x1c1)](_0x292b4e,_0x3f304a),this[_0x24e04f(0x1f5)](_0x3f304a[_0x24e04f(0x191)]);}[_0x9a63e2(0x207)](){const _0x245525=_0x9a63e2;this[_0x245525(0x1d6)]&&_0x245525(0x186)!=typeof IntersectionObserver&&(this[_0x245525(0x1ac)]=new IntersectionObserver(_0x1ceec4=>{const _0x300885=_0x245525;_0x1ceec4[0x0][_0x300885(0x1e3)]&&this[_0x300885(0x20c)]&&requestAnimationFrame(()=>{const _0x13091f=_0x300885;this[_0x13091f(0x20d)]();});},{'threshold':0.01,'rootMargin':_0x245525(0x1cd)}),this[_0x245525(0x1ac)][_0x245525(0x196)](this[_0x245525(0x1d6)]));}[_0x9a63e2(0x195)](){const _0x2b27ec=_0x9a63e2;if(!this[_0x2b27ec(0x1d6)])return!0x1;if(!this[_0x2b27ec(0x1d6)][_0x2b27ec(0x193)])return!0x1;const _0x47b31a=this[_0x2b27ec(0x1d6)][_0x2b27ec(0x1ab)]();if(0x0===_0x47b31a[_0x2b27ec(0x1de)]||0x0===_0x47b31a[_0x2b27ec(0x203)])return!0x1;const _0x5daa81=window[_0x2b27ec(0x213)]||document[_0x2b27ec(0x187)][_0x2b27ec(0x1ed)],_0x27de6b=window[_0x2b27ec(0x1e0)]||document[_0x2b27ec(0x187)][_0x2b27ec(0x19e)],_0x2009bf=0xc8;return _0x47b31a[_0x2b27ec(0x18c)]>=-0xc8&&_0x47b31a[_0x2b27ec(0x1d0)]<=_0x5daa81+_0x2009bf&&_0x47b31a[_0x2b27ec(0x1cc)]>=-0xc8&&_0x47b31a[_0x2b27ec(0x205)]<=_0x27de6b+_0x2009bf;}}
|
|
23
|
+
function _0x52d7(_0x1bcf7d,_0xb2d681){const _0x1062a0=_0x1062();return _0x52d7=function(_0x52d7de,_0x489ac3){_0x52d7de=_0x52d7de-0x1be;let _0x5b7046=_0x1062a0[_0x52d7de];return _0x5b7046;},_0x52d7(_0x1bcf7d,_0xb2d681);}function _0x1062(){const _0x566a95=['visible\x20!important','innerHeight','_isContainerVisible','className','_showMoreBalloonPanelView','_targetContainer','_createCalculationContainer','position','21118545wEqwQV','isOn','_repinBalloonPanel','set','innerWidth','body','execute','-9999px','5McfGKf','overflowChips','_makeAncestorsVisible','reorganizeChips','visible','_calculateContainerWidth','includes','bottom','some','element','isConnected','cssClasses','render','hidden','innerHTML','appendChild','left','slice','right','isIntersecting','_checkAndHandleOverflow','_ancestorsToRestore','_overflowChips','undefined','calculationContainer','_setupVisibilityObserver','_testButtonFit','offsetWidth','length','createElement','none','classList','4106501mtnTTQ','boxSizing','textContent','_calculateOverflowInContainer','_createContainerElements','753187EniGoM','controlsButton','getComputedStyle','maxVisibleRows','_config','_createShowMoreButton','+\x201','_handleShowMoreButtonClick','_intersectionObserver','hideBalloonPanel','_restoreAncestorVisibility','block\x20!important','display','hide','showMoreButton','auto','querySelector','setContainerElement','width','from','1039080gxdmZw','_updateBalloonContent','opacity','filter','_visibleChips','showMoreBalloon','_updateOverflowUI','.ck-ai-chat','destroy','pop','ck-calculation-container','documentElement','disableAnimationOnEnter','setTemplate','remove','_showMoreButtonView','children','_findTargetContainer','height','content','_containerElement','overflowContainer','parentElement','getBoundingClientRect','add','pointerEvents','_bodyCollection','pin','show','abs','_createShowMoreButtonView','clientHeight','forEach','isVisible','disconnect','showMoreButtonView','1427752jJsBkz','8280872zvcMRG','0px','label','zIndex','tagName','_updateShowMoreButtonVisibility','button','observe','showBalloonPanel','border-box','_locale','_createShowMoreBalloonPanelView','_renderChipsAndCountRows','showMoreLabelPrefix','300px','cloneNode','_pendingCalculation','_distributeChips','clear','push','extendTemplate','rowDetectionTolerance','style','clientWidth','_createMockButton','div','191746kdOoQx','top','_applyCalculationStyles','_applyOverflowResults','24RVuTfx','_parentView','50px','toLowerCase','visibility','absolute','block'];_0x1062=function(){return _0x566a95;};return _0x1062();}const _0x85efd4=_0x52d7;(function(_0x9543c5,_0x2f4f7d){const _0x1779d1=_0x52d7,_0x24233b=_0x9543c5();while(!![]){try{const _0x465012=parseInt(_0x1779d1(0x1d8))/0x1+parseInt(_0x1779d1(0x22b))/0x2*(parseInt(_0x1779d1(0x22f))/0x3)+parseInt(_0x1779d1(0x210))/0x4*(parseInt(_0x1779d1(0x246))/0x5)+-parseInt(_0x1779d1(0x1ec))/0x6+parseInt(_0x1779d1(0x1d3))/0x7+parseInt(_0x1779d1(0x211))/0x8+-parseInt(_0x1779d1(0x23e))/0x9;if(_0x465012===_0x2f4f7d)break;else _0x24233b['push'](_0x24233b['shift']());}catch(_0x3f8434){_0x24233b['push'](_0x24233b['shift']());}}}(_0x1062,0xef0e8));import{View as _0x5e947e,BalloonPanelView as _0x5a8d6d,ButtonView as _0x4d7f3a,clickOutsideHandler as _0x59730a}from'ckeditor5/src/ui.js';import{Collection as _0x1c5822}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x85efd4(0x21f);export class AIChatChipsOverflowManager{[_0x85efd4(0x21b)];[_0x85efd4(0x1dc)];[_0x85efd4(0x1f0)];[_0x85efd4(0x1c9)];[_0x85efd4(0x1fb)]=null;[_0x85efd4(0x23a)]=null;[_0x85efd4(0x200)]=null;[_0x85efd4(0x206)];[_0x85efd4(0x230)]=null;[_0x85efd4(0x1e0)]=null;[_0x85efd4(0x221)]=!0x1;constructor(_0x1c10ba,_0x3d9120,_0x4def68,_0x19ca67,_0xc0f2ac){const _0x27cb4f=_0x85efd4;this[_0x27cb4f(0x21b)]=_0x1c10ba,this[_0x27cb4f(0x1f0)]=_0x3d9120,this[_0x27cb4f(0x1dc)]={...hn,..._0x4def68,'cssClasses':{'controlsButton':'','calculationContainer':_0x27cb4f(0x1f6),..._0x4def68[_0x27cb4f(0x1be)]}},this[_0x27cb4f(0x1c9)]=new _0x1c5822(),this[_0x27cb4f(0x206)]=_0x19ca67,this[_0x27cb4f(0x230)]=_0xc0f2ac||null;}[_0x85efd4(0x1e9)](_0x1e933f){const _0x424d23=_0x85efd4;this[_0x424d23(0x1e0)]&&(this[_0x424d23(0x1e0)][_0x424d23(0x20e)](),this[_0x424d23(0x1e0)]=null),this[_0x424d23(0x200)]=_0x1e933f,this[_0x424d23(0x1cc)]();}get[_0x85efd4(0x20f)](){const _0x299533=_0x85efd4;return this[_0x299533(0x1fb)];}get[_0x85efd4(0x247)](){const _0x2917e2=_0x85efd4;return this[_0x2917e2(0x1c9)];}[_0x85efd4(0x249)](){requestAnimationFrame(()=>{const _0x23be72=_0x52d7;this[_0x23be72(0x1c7)]();});}[_0x85efd4(0x219)](){const _0x163076=_0x85efd4;this[_0x163076(0x1fb)]&&this[_0x163076(0x23a)]&&(this[_0x163076(0x1ed)](),this[_0x163076(0x1fb)][_0x163076(0x23f)]=!0x0,this[_0x163076(0x23a)][_0x163076(0x208)](),this[_0x163076(0x23a)][_0x163076(0x207)]({'target':this[_0x163076(0x1fb)][_0x163076(0x24f)],'limiter':document[_0x163076(0x1e8)](_0x163076(0x1f3))}));}[_0x85efd4(0x1e1)](){const _0x15d0c1=_0x85efd4;this[_0x15d0c1(0x1fb)]&&this[_0x15d0c1(0x23a)]&&(this[_0x15d0c1(0x1fb)][_0x15d0c1(0x23f)]=!0x1,this[_0x15d0c1(0x23a)][_0x15d0c1(0x1e5)]());}[_0x85efd4(0x223)](){const _0x282284=_0x85efd4;this[_0x282284(0x1c9)][_0x282284(0x223)](),this[_0x282284(0x1e1)](),this[_0x282284(0x216)](),this[_0x282284(0x1fb)]&&(this[_0x282284(0x1fb)][_0x282284(0x213)]=''),this[_0x282284(0x23a)]&&this[_0x282284(0x23a)][_0x282284(0x1ff)][_0x282284(0x223)]();}[_0x85efd4(0x1f4)](){const _0x2f1cc6=_0x85efd4;this[_0x2f1cc6(0x1e0)]&&(this[_0x2f1cc6(0x1e0)][_0x2f1cc6(0x20e)](),this[_0x2f1cc6(0x1e0)]=null),this[_0x2f1cc6(0x1fb)]&&(this[_0x2f1cc6(0x1fb)][_0x2f1cc6(0x1f4)](),this[_0x2f1cc6(0x1fb)]=null),this[_0x2f1cc6(0x23a)]&&(this[_0x2f1cc6(0x23a)][_0x2f1cc6(0x1f4)](),this[_0x2f1cc6(0x23a)]=null);}[_0x85efd4(0x1c7)](){const _0x48434a=_0x85efd4;if(!this[_0x48434a(0x200)])return;if(!this[_0x48434a(0x238)]())return void(this[_0x48434a(0x221)]=!0x0);this[_0x48434a(0x221)]=!0x1;const _0x1f6b38=[...this[_0x48434a(0x1f0)],...this[_0x48434a(0x1c9)]],_0x2823bf=this[_0x48434a(0x23c)](),_0xdc5298=this[_0x48434a(0x1d6)](_0x2823bf,_0x1f6b38),_0x4497f5=_0x2823bf[_0x48434a(0x1c8)];_0x4497f5&&this[_0x48434a(0x1e2)](_0x4497f5),_0x2823bf[_0x48434a(0x1fa)](),this[_0x48434a(0x22e)](_0x1f6b38,_0xdc5298);}[_0x85efd4(0x1dd)](){const _0x45a9bb=_0x85efd4;this[_0x45a9bb(0x1fb)]=this[_0x45a9bb(0x20a)](),this[_0x45a9bb(0x23a)]=this[_0x45a9bb(0x21c)](),this[_0x45a9bb(0x1fb)][_0x45a9bb(0x1bf)](),this[_0x45a9bb(0x200)][_0x45a9bb(0x1c2)](this[_0x45a9bb(0x1fb)][_0x45a9bb(0x24f)]),this[_0x45a9bb(0x1fb)]['on'](_0x45a9bb(0x244),()=>{const _0x4f13e3=_0x45a9bb;this[_0x4f13e3(0x1df)]();}),_0x59730a({'emitter':this[_0x45a9bb(0x23a)],'contextElements':[this[_0x45a9bb(0x23a)][_0x45a9bb(0x24f)],this[_0x45a9bb(0x1fb)][_0x45a9bb(0x24f)]],'callback':()=>this[_0x45a9bb(0x1e1)](),'activator':()=>this[_0x45a9bb(0x1fb)][_0x45a9bb(0x23f)]});}[_0x85efd4(0x20a)](){const _0x36c264=_0x85efd4,_0x29e811=new _0x4d7f3a(this[_0x36c264(0x21b)]);_0x29e811[_0x36c264(0x241)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x4080ba=[this[_0x36c264(0x1dc)][_0x36c264(0x1be)][_0x36c264(0x1e6)]];return this[_0x36c264(0x1dc)][_0x36c264(0x1be)][_0x36c264(0x1d9)]&&_0x4080ba[_0x36c264(0x224)](this[_0x36c264(0x1dc)][_0x36c264(0x1be)][_0x36c264(0x1d9)]),_0x29e811[_0x36c264(0x225)]({'attributes':{'class':_0x4080ba}}),_0x29e811;}[_0x85efd4(0x21c)](){const _0x125366=_0x85efd4,_0x27b8ff=new _0x5a8d6d(this[_0x125366(0x21b)]);return _0x27b8ff[_0x125366(0x225)]({'attributes':{'class':this[_0x125366(0x1dc)][_0x125366(0x1be)][_0x125366(0x1f1)]}}),this[_0x125366(0x206)][_0x125366(0x204)](_0x27b8ff),_0x27b8ff;}[_0x85efd4(0x1ed)](){const _0x3590a5=_0x85efd4;if(this[_0x3590a5(0x23a)]&&(this[_0x3590a5(0x23a)][_0x3590a5(0x1ff)][_0x3590a5(0x223)](),this[_0x3590a5(0x1c9)][_0x3590a5(0x1cf)]>0x0)){this[_0x3590a5(0x1c9)][_0x3590a5(0x20c)](_0xbe6c2a=>{const _0x32b2c5=_0x3590a5;_0xbe6c2a[_0x32b2c5(0x1f8)]();});const _0x1465bb=new _0x5e947e(this[_0x3590a5(0x21b)]);_0x1465bb[_0x3590a5(0x1f9)]({'tag':_0x3590a5(0x22a),'attributes':{'class':this[_0x3590a5(0x1dc)][_0x3590a5(0x1be)][_0x3590a5(0x201)]},'children':this[_0x3590a5(0x1c9)]}),this[_0x3590a5(0x23a)][_0x3590a5(0x1ff)][_0x3590a5(0x204)](_0x1465bb);}}[_0x85efd4(0x1df)](){const _0x49e024=_0x85efd4;this[_0x49e024(0x1fb)][_0x49e024(0x23f)]?this[_0x49e024(0x1e1)]():this[_0x49e024(0x219)]();}[_0x85efd4(0x216)](){const _0x4531a5=_0x85efd4,_0x2a80b6=this[_0x4531a5(0x1c9)][_0x4531a5(0x1cf)]>0x0;this[_0x4531a5(0x1fb)]?.[_0x4531a5(0x24f)]&&(this[_0x4531a5(0x1fb)][_0x4531a5(0x24f)][_0x4531a5(0x227)][_0x4531a5(0x1e4)]=_0x2a80b6?'':_0x4531a5(0x1d1));}[_0x85efd4(0x240)](){const _0x3bc5a6=_0x85efd4;this[_0x3bc5a6(0x1fb)]?.[_0x3bc5a6(0x23f)]&&this[_0x3bc5a6(0x23a)]?.[_0x3bc5a6(0x20d)]&&this[_0x3bc5a6(0x1fb)][_0x3bc5a6(0x24f)]&&this[_0x3bc5a6(0x23a)][_0x3bc5a6(0x207)]({'target':this[_0x3bc5a6(0x1fb)][_0x3bc5a6(0x24f)],'limiter':document[_0x3bc5a6(0x1e8)](_0x3bc5a6(0x1f3))});}[_0x85efd4(0x1fd)](_0x477f22){const _0x57064c=_0x85efd4,_0x146bbe=this[_0x57064c(0x200)]?.[_0x57064c(0x215)][_0x57064c(0x232)]()||_0x57064c(0x22a),_0x10f482=this[_0x57064c(0x200)]?.[_0x57064c(0x1d2)];if(_0x10f482){const _0x5bb869=_0x10f482[0x0]||'',_0x463e6f=_0x477f22[_0x57064c(0x1e8)]('.'+_0x5bb869),_0x26b52f=_0x477f22[_0x57064c(0x1e8)](_0x146bbe);return _0x463e6f||_0x26b52f||_0x477f22;}return _0x477f22[_0x57064c(0x1e8)](_0x146bbe)||_0x477f22;}[_0x85efd4(0x24b)](){const _0x3de608=_0x85efd4,_0x3a4895=this[_0x3de608(0x230)]?.[_0x3de608(0x24f)]||this[_0x3de608(0x200)];if(!_0x3a4895)return an;const _0x408261=window[_0x3de608(0x1da)](_0x3a4895)[_0x3de608(0x1ea)];if(_0x3de608(0x1e7)===_0x408261||_0x3de608(0x212)===_0x408261||!_0x408261){const _0x36a193=_0x3a4895[_0x3de608(0x202)];if(_0x36a193){const _0x5984eb=window[_0x3de608(0x1da)](_0x36a193);return _0x3de608(0x1e7)!==_0x5984eb[_0x3de608(0x1ea)]?_0x5984eb[_0x3de608(0x1ea)]:an;}return an;}return _0x408261;}[_0x85efd4(0x22d)](_0x1fd7f5,_0xeaa277){const _0x14f3bb=_0x85efd4;this[_0x14f3bb(0x1dc)][_0x14f3bb(0x1be)][_0x14f3bb(0x1cb)]&&_0x1fd7f5[_0x14f3bb(0x1d2)][_0x14f3bb(0x204)](this[_0x14f3bb(0x1dc)][_0x14f3bb(0x1be)][_0x14f3bb(0x1cb)]),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x1ea)]=_0xeaa277,_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x23d)]=_0x14f3bb(0x234),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x22c)]=_0x14f3bb(0x245),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x1c3)]=_0x14f3bb(0x245),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x1ee)]='0',_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x205)]=_0x14f3bb(0x1d1),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x214)]='-1',_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x233)]=_0x14f3bb(0x236),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x1e4)]=_0x14f3bb(0x1e3),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x1d4)]=_0x14f3bb(0x21a);}[_0x85efd4(0x1e2)](_0x795ecf){const _0x3e70bf=_0x85efd4;_0x795ecf[_0x3e70bf(0x20c)](({element:_0x4e54b9,originalDisplay:_0x372871,originalVisibility:_0x1d5d64})=>{const _0x3c6874=_0x3e70bf;_0x4e54b9[_0x3c6874(0x227)][_0x3c6874(0x1e4)]=_0x372871,_0x4e54b9[_0x3c6874(0x227)][_0x3c6874(0x233)]=_0x1d5d64;});}[_0x85efd4(0x248)](_0x1e1cc0){const _0x4aa3a8=_0x85efd4,_0x6bfc8c=[];let _0x423db5=_0x1e1cc0;for(;_0x423db5&&_0x423db5!==document[_0x4aa3a8(0x243)];){const _0x2476a8=window[_0x4aa3a8(0x1da)](_0x423db5);_0x4aa3a8(0x1d1)!==_0x2476a8[_0x4aa3a8(0x1e4)]&&_0x4aa3a8(0x1c0)!==_0x2476a8[_0x4aa3a8(0x233)]||(_0x6bfc8c[_0x4aa3a8(0x224)]({'element':_0x423db5,'originalDisplay':_0x423db5[_0x4aa3a8(0x227)][_0x4aa3a8(0x1e4)],'originalVisibility':_0x423db5[_0x4aa3a8(0x227)][_0x4aa3a8(0x233)]}),_0x423db5[_0x4aa3a8(0x227)][_0x4aa3a8(0x1e4)]=_0x4aa3a8(0x235),_0x423db5[_0x4aa3a8(0x227)][_0x4aa3a8(0x233)]=_0x4aa3a8(0x24a)),_0x423db5=_0x423db5[_0x4aa3a8(0x202)];}return _0x6bfc8c;}[_0x85efd4(0x1d7)](){const _0x192714=_0x85efd4;let _0x26d1bf,_0x362b70;return this[_0x192714(0x230)]?.[_0x192714(0x24f)]?(_0x26d1bf=this[_0x192714(0x230)][_0x192714(0x24f)][_0x192714(0x220)](!0x0),_0x362b70=this[_0x192714(0x1fd)](_0x26d1bf)):(_0x26d1bf=document[_0x192714(0x1d0)](_0x192714(0x22a)),_0x362b70=_0x26d1bf),{'calculationContainer':_0x26d1bf,'targetContainer':_0x362b70};}[_0x85efd4(0x23c)](){const _0x5659bd=_0x85efd4,{calculationContainer:_0x1bd723,targetContainer:_0x372e2e}=this[_0x5659bd(0x1d7)](),_0x2c0cd6=this[_0x5659bd(0x24b)]();this[_0x5659bd(0x22d)](_0x1bd723,_0x2c0cd6);const _0x4985ae=this[_0x5659bd(0x230)]?.[_0x5659bd(0x24f)]||this[_0x5659bd(0x200)],_0x55d8a5=_0x4985ae?.[_0x5659bd(0x202)];_0x55d8a5?_0x55d8a5[_0x5659bd(0x1c2)](_0x1bd723):document[_0x5659bd(0x243)][_0x5659bd(0x1c2)](_0x1bd723),_0x1bd723[_0x5659bd(0x23b)]=_0x372e2e;const _0x3e74fd=this[_0x5659bd(0x248)](_0x55d8a5||null);return _0x1bd723[_0x5659bd(0x1ce)],_0x1bd723[_0x5659bd(0x1c8)]=_0x3e74fd,_0x1bd723;}[_0x85efd4(0x1d6)](_0x4daa21,_0x192dc1){const _0x5a1642=_0x85efd4,_0x113d2e=_0x4daa21[_0x5a1642(0x23b)]||_0x4daa21,_0x1df555=[],{rowCount:_0x243fcc}=this[_0x5a1642(0x21d)](_0x113d2e,_0x192dc1);if(_0x243fcc<=this[_0x5a1642(0x1dc)][_0x5a1642(0x1db)])return _0x1df555;const _0x130e0a=_0x192dc1[_0x5a1642(0x1c4)]();for(;_0x130e0a[_0x5a1642(0x1cf)]>0x0;){if(this[_0x5a1642(0x1cd)](_0x4daa21,_0x113d2e,_0x130e0a)){const _0x4b2442=_0x192dc1[_0x5a1642(0x1ef)](_0x4859fd=>!_0x130e0a[_0x5a1642(0x24c)](_0x4859fd));_0x1df555[_0x5a1642(0x224)](..._0x4b2442);break;}if(!_0x130e0a[_0x5a1642(0x1f5)]())break;}return _0x1df555;}[_0x85efd4(0x21d)](_0xef0fa4,_0x2e058a){const _0xbf2f86=_0x85efd4;_0xef0fa4[_0xbf2f86(0x1c1)]='',_0x2e058a[_0xbf2f86(0x20c)](_0x4366cb=>{const _0x194c73=_0xbf2f86;if(_0x4366cb[_0x194c73(0x24f)]){const _0x46cee6=_0x4366cb[_0x194c73(0x24f)][_0x194c73(0x220)](!0x0);_0xef0fa4[_0x194c73(0x1c2)](_0x46cee6);}}),_0xef0fa4[_0xbf2f86(0x1ce)];const _0x5c26c8=_0xef0fa4[_0xbf2f86(0x1fc)],_0x5aaa36=[];return Array[_0xbf2f86(0x1eb)](_0x5c26c8)[_0xbf2f86(0x20c)](_0x98598d=>{const _0x256c5c=_0xbf2f86,_0x1601fe=_0x98598d[_0x256c5c(0x203)]()[_0x256c5c(0x22c)];_0x5aaa36[_0x256c5c(0x24e)](_0x5b01cf=>Math[_0x256c5c(0x209)](_0x5b01cf-_0x1601fe)<this[_0x256c5c(0x1dc)][_0x256c5c(0x226)])||_0x5aaa36[_0x256c5c(0x224)](_0x1601fe);}),{'rowCount':_0x5aaa36[_0xbf2f86(0x1cf)]};}[_0x85efd4(0x229)](){const _0x1efabb=_0x85efd4,_0x314159=document[_0x1efabb(0x1d0)](_0x1efabb(0x217));return _0x314159[_0x1efabb(0x239)]=this[_0x1efabb(0x1dc)][_0x1efabb(0x1be)][_0x1efabb(0x1e6)],this[_0x1efabb(0x1dc)][_0x1efabb(0x1be)][_0x1efabb(0x1d9)]&&_0x314159[_0x1efabb(0x1d2)][_0x1efabb(0x204)](this[_0x1efabb(0x1dc)][_0x1efabb(0x1be)][_0x1efabb(0x1d9)]),_0x314159[_0x1efabb(0x1d5)]=_0x1efabb(0x1de),_0x314159;}[_0x85efd4(0x1cd)](_0x127b01,_0x58c6b9,_0x1aab91){const _0x3bc795=_0x85efd4;this[_0x3bc795(0x21d)](_0x58c6b9,_0x1aab91);const _0x3be308=this[_0x3bc795(0x229)]();_0x127b01[_0x3bc795(0x1c2)](_0x3be308),_0x127b01[_0x3bc795(0x1ce)];const _0x262b9f=[..._0x58c6b9[_0x3bc795(0x1fc)],_0x3be308],_0x92d32b=[];_0x262b9f[_0x3bc795(0x20c)](_0x48f101=>{const _0xb16bf9=_0x3bc795,_0x23cb5c=_0x48f101[_0xb16bf9(0x203)]()[_0xb16bf9(0x22c)];_0x92d32b[_0xb16bf9(0x24e)](_0x2d8c37=>Math[_0xb16bf9(0x209)](_0x2d8c37-_0x23cb5c)<this[_0xb16bf9(0x1dc)][_0xb16bf9(0x226)])||_0x92d32b[_0xb16bf9(0x224)](_0x23cb5c);});const _0x565351=_0x92d32b[_0x3bc795(0x1cf)];return _0x3be308[_0x3bc795(0x1fa)](),_0x565351<=this[_0x3bc795(0x1dc)][_0x3bc795(0x1db)];}[_0x85efd4(0x222)](_0xca3e4f,_0x489918){const _0x26b4a3=_0x85efd4;this[_0x26b4a3(0x1f0)][_0x26b4a3(0x223)](),this[_0x26b4a3(0x1c9)][_0x26b4a3(0x223)](),_0xca3e4f[_0x26b4a3(0x20c)](_0x49d131=>{const _0x4515b4=_0x26b4a3;_0x489918[_0x4515b4(0x24c)](_0x49d131)?this[_0x4515b4(0x1c9)][_0x4515b4(0x204)](_0x49d131):this[_0x4515b4(0x1f0)][_0x4515b4(0x204)](_0x49d131);});}[_0x85efd4(0x1f2)](_0x2bad59){const _0x4469a7=_0x85efd4;if(_0x2bad59>0x0&&!this[_0x4469a7(0x1fb)]&&this[_0x4469a7(0x1dd)](),_0x2bad59>0x0&&this[_0x4469a7(0x1fb)]){const _0x16e46d=''+this[_0x4469a7(0x1dc)][_0x4469a7(0x21e)]+(_0x2bad59<0x63?_0x2bad59:'99');this[_0x4469a7(0x1fb)][_0x4469a7(0x213)]=_0x16e46d;}this[_0x4469a7(0x1ed)](),this[_0x4469a7(0x216)](),this[_0x4469a7(0x240)]();}[_0x85efd4(0x22e)](_0x12ddc7,_0x17fb69){const _0x10b625=_0x85efd4;this[_0x10b625(0x222)](_0x12ddc7,_0x17fb69),this[_0x10b625(0x1f2)](_0x17fb69[_0x10b625(0x1cf)]);}[_0x85efd4(0x1cc)](){const _0x3b222e=_0x85efd4;this[_0x3b222e(0x200)]&&_0x3b222e(0x1ca)!=typeof IntersectionObserver&&(this[_0x3b222e(0x1e0)]=new IntersectionObserver(_0x1ef1d5=>{const _0x340591=_0x3b222e;_0x1ef1d5[0x0][_0x340591(0x1c6)]&&this[_0x340591(0x221)]&&requestAnimationFrame(()=>{const _0x1c42c0=_0x340591;this[_0x1c42c0(0x1c7)]();});},{'threshold':0.01,'rootMargin':_0x3b222e(0x231)}),this[_0x3b222e(0x1e0)][_0x3b222e(0x218)](this[_0x3b222e(0x200)]));}[_0x85efd4(0x238)](){const _0x23be12=_0x85efd4;if(!this[_0x23be12(0x200)])return!0x1;if(!this[_0x23be12(0x200)][_0x23be12(0x250)])return!0x1;const _0x104248=this[_0x23be12(0x200)][_0x23be12(0x203)]();if(0x0===_0x104248[_0x23be12(0x1ea)]||0x0===_0x104248[_0x23be12(0x1fe)])return!0x1;const _0x3fe796=window[_0x23be12(0x237)]||document[_0x23be12(0x1f7)][_0x23be12(0x20b)],_0x2944e8=window[_0x23be12(0x242)]||document[_0x23be12(0x1f7)][_0x23be12(0x228)],_0x4e2277=0xc8;return _0x104248[_0x23be12(0x24d)]>=-0xc8&&_0x104248[_0x23be12(0x22c)]<=_0x3fe796+_0x4e2277&&_0x104248[_0x23be12(0x1c5)]>=-0xc8&&_0x104248[_0x23be12(0x1c3)]<=_0x2944e8+_0x4e2277;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x595de5=_0x3f04;(function(_0x5d93a1,_0x2739ef){const _0x5ed931=_0x3f04,_0x28d142=_0x5d93a1();while(!![]){try{const _0x5cd98b=-parseInt(_0x5ed931(0x10d))/0x1*(parseInt(_0x5ed931(0x105))/0x2)+-parseInt(_0x5ed931(0x102))/0x3+-parseInt(_0x5ed931(0xf7))/0x4*(-parseInt(_0x5ed931(0x122))/0x5)+-parseInt(_0x5ed931(0x112))/0x6+-parseInt(_0x5ed931(0x12f))/0x7*(-parseInt(_0x5ed931(0x132))/0x8)+-parseInt(_0x5ed931(0x12a))/0x9+parseInt(_0x5ed931(0x104))/0xa*(parseInt(_0x5ed931(0x100))/0xb);if(_0x5cd98b===_0x2739ef)break;else _0x28d142['push'](_0x28d142['shift']());}catch(_0x3d94ee){_0x28d142['push'](_0x28d142['shift']());}}}(_0x28f9,0xacaa4));function _0x28f9(){const _0x5e654f=['5BljfFu','element','document','extendTemplate','length','ck-ai-chat-context-controls__chip-tooltip','webkitAnimationEnd','_handleAnimationEndOnce','12108474iaciVW','ck-ai-chat-context-chip_wide','_createLoaderIcon','bind','selection','28vjVxpg','ck-ai-chat-context-chip','_setupRemoveButtonEvent','2665576zEwnJT','render','div','bindTemplate','removeContextItemChip','setTemplate','readonly','_createTemplateChildren','550988HDdGVV','ck-ai-chat-context-chip__label','tooltip','ck-ai-chat-context-chip_new-chip','_setupTemplate','_createIconView','addEventListener','remove','removeEventListener','11ahvHCH','set','2913477QPrdzL','itemType','19731110biFCCs','8SLWwLd','classList','_createRemoveButton','isVisible','_initializeProperties','isLoading','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_isAnimationOnEnterEnabled','38051CnAMJX','_createLabelElement','ck-ai-chat-context-chip_document','add','label','1605966llFpeV','slice','lastIndexOf','type','fire','locale','disableAnimationOnEnter','span','animationend','ck-hidden','small','ck-ai-chat-context-chip__type-icon','execute','content','uiId','_createTemplateAttributes'];_0x28f9=function(){return _0x5e654f;};return _0x28f9();}import{ButtonView as _0xdcbaed,IconView as _0x37d210}from'ckeditor5/src/ui.js';function _0x3f04(_0x2ab2be,_0x4b11a9){const _0x28f9bf=_0x28f9();return _0x3f04=function(_0x3f041b,_0x554232){_0x3f041b=_0x3f041b-0xf4;let _0x2376c9=_0x28f9bf[_0x3f041b];return _0x2376c9;},_0x3f04(_0x2ab2be,_0x4b11a9);}import{IconClose as _0x3e0c50,IconDocument as _0x342427,IconFileUpload as _0x4a8bd1,IconLink as _0x474e1f,IconSelection as _0x43daef}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1ad054}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x26e2e4}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x4a8bd1,'document':_0x342427,'web-resource':_0x474e1f,'text':_0x4a8bd1,'selection':_0x43daef,'mcp-tool-context':_0x342427},bn=_0x595de5(0x130),wn=_0x595de5(0x12b),Tn=_0x595de5(0x10f),En=_0x595de5(0xf8),fn=_0x595de5(0x11d),An=_0x595de5(0x127),Cn='n';export class AIChatContextItemButtonView extends _0xdcbaed{constructor(_0x3cebfb,_0x2001a2,_0x1624e1,_0x2466a0,_0x170b3c=!0x1){const _0xb0be61=_0x595de5;super(_0x3cebfb),this[_0xb0be61(0x10c)]=_0x2466a0,this[_0xb0be61(0x109)](_0x2001a2,_0x1624e1,_0x170b3c),this[_0xb0be61(0xfb)]();}[_0x595de5(0x133)](){const _0x147d88=_0x595de5;super[_0x147d88(0x133)](),this[_0x147d88(0x10c)]&&this[_0x147d88(0x123)]&&(this[_0x147d88(0x123)][_0x147d88(0x106)][_0x147d88(0x110)](_0x147d88(0xfa)),this[_0x147d88(0x129)](this[_0x147d88(0x123)],()=>{const _0x332a63=_0x147d88;this[_0x332a63(0x123)]&&this[_0x332a63(0x123)][_0x332a63(0x106)][_0x332a63(0xfe)](_0x332a63(0xfa));}));}[_0x595de5(0x118)](){const _0x4629c4=_0x595de5;this[_0x4629c4(0x10c)]=!0x1,this[_0x4629c4(0x123)]&&this[_0x4629c4(0x123)][_0x4629c4(0x106)][_0x4629c4(0xfe)](_0x4629c4(0xfa));}[_0x595de5(0x109)](_0x5add1a,_0x34b9a9,_0x51ab4a){const _0x4b8e5c=_0x595de5;this[_0x4b8e5c(0x101)](_0x4b8e5c(0x111),_0x5add1a[_0x4b8e5c(0x111)]),this[_0x4b8e5c(0x101)](_0x4b8e5c(0xf9),!0x0),this[_0x4b8e5c(0x101)](_0x4b8e5c(0x103),_0x5add1a[_0x4b8e5c(0x115)]),this[_0x4b8e5c(0x101)]('id',_0x5add1a[_0x4b8e5c(0x120)]),this[_0x4b8e5c(0x101)](_0x4b8e5c(0xf5),_0x34b9a9),this[_0x4b8e5c(0x101)](_0x4b8e5c(0x10a),_0x51ab4a);}[_0x595de5(0xfb)](){const _0x3e33d7=_0x595de5,_0xf9dfe1=this[_0x3e33d7(0xfc)](),_0x472a04=this[_0x3e33d7(0x107)](),_0x5829ca=this[_0x3e33d7(0x135)];this[_0x3e33d7(0xf4)]({'tag':_0x3e33d7(0x134),'attributes':this[_0x3e33d7(0x121)](_0x5829ca),'children':this[_0x3e33d7(0xf6)](_0xf9dfe1,_0x472a04,_0x5829ca)});}[_0x595de5(0x121)](_0x3ea2f4){const _0xd19464=_0x595de5;return{'class':[bn,_0x3ea2f4['if'](_0xd19464(0x103),Tn,_0x3b5c8c=>_0xd19464(0x124)==_0x3b5c8c),_0x3ea2f4['if'](_0xd19464(0x103),wn,_0x37b9b2=>_0xd19464(0x12e)==_0x37b9b2)],'data-cke-tooltip-text':_0x3ea2f4['to'](_0xd19464(0x111),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x595de5(0xf6)](_0x32bef8,_0x25438d,_0x2e88e7){const _0x38ac0b=_0x595de5,_0x2448d1=this[_0x38ac0b(0x10e)](_0x2e88e7),_0x23e25b=this[_0x38ac0b(0x12c)]();return this[_0x38ac0b(0xf5)]?[_0x32bef8,_0x2448d1]:[_0x32bef8,_0x23e25b,_0x2448d1,_0x25438d];}[_0x595de5(0x10e)](_0x21bb9a){const _0x14d37a=_0x595de5;return{'tag':_0x14d37a(0x119),'attributes':{'class':En},'children':[{'text':_0x21bb9a['to'](_0x14d37a(0x111))}]};}[_0x595de5(0x107)](){const _0xb79832=_0x595de5,_0x521400=new _0xdcbaed(this[_0xb79832(0x117)]);return _0x521400[_0xb79832(0x101)]({'label':_0x1ad054(this[_0xb79832(0x117)],_0xb79832(0x10b)),'icon':_0x3e0c50}),this[_0xb79832(0x131)](_0x521400),_0x521400;}[_0x595de5(0x131)](_0x2ac002){const _0x52c090=_0x595de5;_0x2ac002['on'](_0x52c090(0x11e),()=>{const _0x2ca325=_0x52c090;this[_0x2ca325(0x116)](_0x2ca325(0x136),this['id']);});}[_0x595de5(0xfc)](){const _0x37e730=_0x595de5,_0x45526b=this[_0x37e730(0x135)],_0x4f9f57=new _0x37d210();return _0x4f9f57[_0x37e730(0x11f)]=xn[this[_0x37e730(0x103)]],_0x4f9f57[_0x37e730(0x125)]({'attributes':{'class':[fn,_0x45526b['if'](_0x37e730(0x10a),_0x37e730(0x11b),_0x5f5b4b=>_0x5f5b4b)]}}),_0x4f9f57;}[_0x595de5(0x129)](_0x1ce7b9,_0x5f14ba){const _0x5e87ec=_0x595de5;if(!_0x1ce7b9)return;const _0x8d9d70=()=>{const _0x1ed013=_0x3f04;_0x5f14ba(),_0x1ce7b9[_0x1ed013(0xff)](_0x1ed013(0x11a),_0x8d9d70),_0x1ce7b9[_0x1ed013(0xff)](_0x1ed013(0x128),_0x8d9d70);};_0x1ce7b9[_0x5e87ec(0xfd)](_0x5e87ec(0x11a),_0x8d9d70),_0x1ce7b9[_0x5e87ec(0xfd)](_0x5e87ec(0x128),_0x8d9d70);}[_0x595de5(0x12c)](){const _0x1959c7=_0x595de5,_0x2b7cda=new _0x26e2e4(_0x1959c7(0x11c));return _0x2b7cda[_0x1959c7(0x12d)](_0x1959c7(0x108))['to'](this,_0x1959c7(0x10a),_0xa598e1=>_0xa598e1),_0x2b7cda;}}function In(_0x3bc4f6){const _0x4ee7ec=_0x595de5;if(!_0x3bc4f6)return _0x3bc4f6;if(_0x3bc4f6[_0x4ee7ec(0x126)]<=0x78)return _0x3bc4f6;const _0x2e1c7c=_0x3bc4f6[_0x4ee7ec(0x113)](0x0,0x78),_0xd37032=_0x2e1c7c[_0x4ee7ec(0x114)]('\x20');return(_0xd37032>0x0?_0x2e1c7c[_0x4ee7ec(0x113)](0x0,_0xd37032):_0x2e1c7c)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4d91cf=_0x24e8;(function(_0x343d31,_0x221d74){const _0x39ff94=_0x24e8,_0x1bee38=_0x343d31();while(!![]){try{const _0x3f8be6=-parseInt(_0x39ff94(0x126))/0x1+parseInt(_0x39ff94(0x133))/0x2*(parseInt(_0x39ff94(0x156))/0x3)+-parseInt(_0x39ff94(0x125))/0x4*(parseInt(_0x39ff94(0x168))/0x5)+-parseInt(_0x39ff94(0x165))/0x6*(parseInt(_0x39ff94(0x13a))/0x7)+parseInt(_0x39ff94(0x127))/0x8*(parseInt(_0x39ff94(0x150))/0x9)+-parseInt(_0x39ff94(0x14e))/0xa+-parseInt(_0x39ff94(0x155))/0xb*(-parseInt(_0x39ff94(0x146))/0xc);if(_0x3f8be6===_0x221d74)break;else _0x1bee38['push'](_0x1bee38['shift']());}catch(_0x4fd149){_0x1bee38['push'](_0x1bee38['shift']());}}}(_0x11c7,0xdb598));import{FocusTracker as _0x5added,KeystrokeHandler as _0x32ebce}from'ckeditor5/src/utils.js';function _0x11c7(){const _0x540d08=['forEach','shift+tab','11155809LZCEin','_createConfirmButton','_setupTemplate','set','_handleSubmit','input','fire','submitUrl','tab','execute','render','destroy','156tYzvwC','_createBackButton','setError','listenTo','_updateConfirmButtonState','stop','_focusables','locale','11841120vXVnRr','urlInputField','10306728vWlNbQ','AI_CHAT_CONTEXT_URL_INVALID_ERROR','getValue','cancel','focusTracker','2993639gskQfB','3IfYihG','change:withBackButton','_isValidUrl','isEnabled','add','form','ck-ai-chat-context-controls__url-input-section','ck-ai-chat-context-controls__url-form','_setupKeystrokes','fieldView','errorText','ck-button-icon','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','AI_CHAT_CONTEXT_URL_PLACEHOLDER','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','6iRdbKS','clear','\x20ck-hidden','15055vDSPzD','refreshBalloon','element','trim','AI_CHAT_CONTEXT_URL_LABEL','keystrokes','withBackButton','createCollection','focus','esc','ck-button-icon\x20ck-button-back','1100aElNwT','1646213amtxnk','8uvRNna','focusCycler','value','submit','children','div','clearError','setTemplate','_createUrlInputField','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_ADD_URL','length','2934728OzNOBb','confirmButton','_setupEventHandlers','backButton','ck-labeled-field-view_empty'];_0x11c7=function(){return _0x540d08;};return _0x11c7();}import{ButtonView as _0x4f1053,FocusCycler as _0x3bac58,LabeledFieldView as _0x58a339,View as _0x27eea4,FormHeaderView as _0x59e0b8,createLabeledInputText as _0x160e2c,submitHandler as _0xda032c}from'ckeditor5/src/ui.js';import{IconCheck as _0x2536cd,IconPreviousArrow as _0x17d6d2}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x37bcad}from'../../../aicore/utils/common-translations.js';const rh=_0x4d91cf(0x15d),nh=_0x4d91cf(0x15c);function _0x24e8(_0xee3618,_0x32e4e0){const _0x11c794=_0x11c7();return _0x24e8=function(_0x24e86f,_0x2cb85f){_0x24e86f=_0x24e86f-0x125;let _0x282da0=_0x11c794[_0x24e86f];return _0x282da0;},_0x24e8(_0xee3618,_0x32e4e0);}export class AIChatContextPanelUrlInputView extends _0x27eea4{[_0x4d91cf(0x154)];[_0x4d91cf(0x16d)];[_0x4d91cf(0x14c)];[_0x4d91cf(0x128)];[_0x4d91cf(0x14f)];[_0x4d91cf(0x136)];[_0x4d91cf(0x134)];constructor(_0x9c0512){const _0x3fd3fd=_0x4d91cf;super(_0x9c0512),this[_0x3fd3fd(0x154)]=new _0x5added(),this[_0x3fd3fd(0x16d)]=new _0x32ebce(),this[_0x3fd3fd(0x136)]=this[_0x3fd3fd(0x147)](),this[_0x3fd3fd(0x14f)]=this[_0x3fd3fd(0x12f)](),this[_0x3fd3fd(0x134)]=this[_0x3fd3fd(0x13b)](),this[_0x3fd3fd(0x14c)]=this[_0x3fd3fd(0x16f)]([this[_0x3fd3fd(0x136)],this[_0x3fd3fd(0x14f)],this[_0x3fd3fd(0x134)]]),this[_0x3fd3fd(0x128)]=new _0x3bac58({'focusables':this[_0x3fd3fd(0x14c)],'focusTracker':this[_0x3fd3fd(0x154)],'keystrokeHandler':this[_0x3fd3fd(0x16d)],'actions':{'focusPrevious':_0x3fd3fd(0x139),'focusNext':_0x3fd3fd(0x142)}}),this[_0x3fd3fd(0x13d)](_0x3fd3fd(0x16e),!0x0),this[_0x3fd3fd(0x13c)](),this[_0x3fd3fd(0x135)](),this[_0x3fd3fd(0x15e)]();}[_0x4d91cf(0x144)](){const _0x301cc1=_0x4d91cf;super[_0x301cc1(0x144)](),this[_0x301cc1(0x14c)][_0x301cc1(0x138)](_0x19f6c4=>{const _0x4b1a43=_0x301cc1;this[_0x4b1a43(0x154)][_0x4b1a43(0x15a)](_0x19f6c4[_0x4b1a43(0x16a)]),this[_0x4b1a43(0x16d)][_0x4b1a43(0x149)](_0x19f6c4[_0x4b1a43(0x16a)]);}),_0xda032c({'view':this}),this[_0x301cc1(0x170)]();}[_0x4d91cf(0x145)](){const _0x36ff76=_0x4d91cf;super[_0x36ff76(0x145)](),this[_0x36ff76(0x154)][_0x36ff76(0x145)](),this[_0x36ff76(0x16d)][_0x36ff76(0x145)]();}[_0x4d91cf(0x170)](){const _0x1e61d6=_0x4d91cf;this[_0x1e61d6(0x14f)][_0x1e61d6(0x170)]();}[_0x4d91cf(0x152)](){const _0x5ce8a4=_0x4d91cf;return this[_0x5ce8a4(0x14f)][_0x5ce8a4(0x15f)][_0x5ce8a4(0x16a)]?.[_0x5ce8a4(0x129)]?.[_0x5ce8a4(0x16b)]()||'';}[_0x4d91cf(0x166)](){const _0x4a4b29=_0x4d91cf;this[_0x4a4b29(0x14f)][_0x4a4b29(0x15f)][_0x4a4b29(0x16a)][_0x4a4b29(0x129)]='',this[_0x4a4b29(0x14f)][_0x4a4b29(0x160)]=null,this[_0x4a4b29(0x134)][_0x4a4b29(0x159)]=!0x1;}[_0x4d91cf(0x148)](_0x3c5b9b){const _0x33769e=_0x4d91cf;this[_0x33769e(0x14f)][_0x33769e(0x160)]=_0x3c5b9b,this[_0x33769e(0x14a)](),this[_0x33769e(0x140)](_0x33769e(0x169));}[_0x4d91cf(0x12d)](){const _0x2fd4e3=_0x4d91cf;this[_0x2fd4e3(0x14f)][_0x2fd4e3(0x160)]=null,this[_0x2fd4e3(0x14a)]();}[_0x4d91cf(0x147)](){const _0x16fa30=_0x4d91cf,_0xbedfc9=new _0x4f1053(this[_0x16fa30(0x14d)]);return _0xbedfc9[_0x16fa30(0x13d)]({'icon':_0x17d6d2,'tooltip':_0x37bcad(this[_0x16fa30(0x14d)],_0x16fa30(0x162)),'tooltipPosition':'n','class':[_0x16fa30(0x172)]}),this['on'](_0x16fa30(0x157),(_0x490a3a,_0x33f1d3,_0x32e5e5)=>{const _0x5e1c92=_0x16fa30;_0xbedfc9[_0x5e1c92(0x13d)]({'class':[_0x5e1c92(0x172)+(_0x32e5e5?'':_0x5e1c92(0x167))]});}),_0xbedfc9;}[_0x4d91cf(0x12f)](){const _0x4292de=_0x4d91cf,_0x3486e2=new _0x58a339(this[_0x4292de(0x14d)],_0x160e2c);return _0x3486e2[_0x4292de(0x13d)]({'label':_0x37bcad(this[_0x4292de(0x14d)],_0x4292de(0x16c)),'class':_0x4292de(0x137)}),_0x3486e2[_0x4292de(0x15f)][_0x4292de(0x13d)]({'placeholder':_0x37bcad(this[_0x4292de(0x14d)],_0x4292de(0x163))}),_0x3486e2;}[_0x4d91cf(0x13b)](){const _0x3ffe21=_0x4d91cf,_0x1aef49=new _0x4f1053(this[_0x3ffe21(0x14d)]);return _0x1aef49[_0x3ffe21(0x13d)]({'icon':_0x2536cd,'tooltip':_0x37bcad(this[_0x3ffe21(0x14d)],_0x3ffe21(0x131)),'tooltipPosition':'n','class':_0x3ffe21(0x161),'type':_0x3ffe21(0x12a),'isEnabled':!0x1}),_0x1aef49;}[_0x4d91cf(0x13c)](){const _0x16bec1=_0x4d91cf,_0xf3feb8=new _0x59e0b8(this[_0x16bec1(0x14d)],{'label':_0x37bcad(this[_0x16bec1(0x14d)],_0x16bec1(0x131)),'class':_0x16bec1(0x130)});_0xf3feb8[_0x16bec1(0x12b)][_0x16bec1(0x15a)](this[_0x16bec1(0x136)],0x0),this[_0x16bec1(0x12e)]({'tag':_0x16bec1(0x15b),'attributes':{'class':rh,'tabindex':'-1'},'children':[_0xf3feb8,{'tag':_0x16bec1(0x12c),'attributes':{'class':nh},'children':[this[_0x16bec1(0x14f)],this[_0x16bec1(0x134)]]}]});}[_0x4d91cf(0x135)](){const _0x1e8194=_0x4d91cf;this[_0x1e8194(0x136)]['on'](_0x1e8194(0x143),()=>{const _0x36574a=_0x1e8194;this[_0x36574a(0x166)](),this[_0x36574a(0x140)](_0x36574a(0x153));}),this[_0x1e8194(0x14f)][_0x1e8194(0x15f)]['on'](_0x1e8194(0x13f),()=>{const _0x4857ee=_0x1e8194;this[_0x4857ee(0x12d)](),this[_0x4857ee(0x14a)](),this[_0x4857ee(0x140)](_0x4857ee(0x169));}),this['on'](_0x1e8194(0x12a),_0x3235c2=>{const _0x1d66a6=_0x1e8194;_0x3235c2[_0x1d66a6(0x14b)](),this[_0x1d66a6(0x13e)]();});}[_0x4d91cf(0x15e)](){const _0x17e985=_0x4d91cf;this[_0x17e985(0x16d)][_0x17e985(0x13d)](_0x17e985(0x171),(_0x3de100,_0x575b93)=>{const _0x13ee96=_0x17e985;this[_0x13ee96(0x166)](),this[_0x13ee96(0x140)](_0x13ee96(0x153)),_0x575b93();});}[_0x4d91cf(0x13e)](){const _0x588086=_0x4d91cf,_0x4cfb2a=this[_0x588086(0x152)]()[_0x588086(0x16b)]();_0x4cfb2a?this[_0x588086(0x158)](_0x4cfb2a)?(this[_0x588086(0x12d)](),this[_0x588086(0x140)](_0x588086(0x141),_0x4cfb2a)):this[_0x588086(0x148)](_0x37bcad(this[_0x588086(0x14d)],_0x588086(0x151))):this[_0x588086(0x148)](_0x37bcad(this[_0x588086(0x14d)],_0x588086(0x164)));}[_0x4d91cf(0x14a)](){const _0x4d85dc=_0x4d91cf,_0x1182e3=this[_0x4d85dc(0x152)]()[_0x4d85dc(0x16b)](),_0x1b0308=!!this[_0x4d85dc(0x14f)][_0x4d85dc(0x160)];this[_0x4d85dc(0x134)][_0x4d85dc(0x159)]=_0x1182e3[_0x4d85dc(0x132)]>0x0&&!_0x1b0308;}[_0x4d91cf(0x158)](_0x355fd9){try{return!!new URL(_0x355fd9);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xb3ee65=_0x3f0c;(function(_0xe14cbf,_0x1b4415){const _0x1707eb=_0x3f0c,_0x1680ce=_0xe14cbf();while(!![]){try{const _0x5414fe=-parseInt(_0x1707eb(0x1ee))/0x1*(-parseInt(_0x1707eb(0x1ed))/0x2)+-parseInt(_0x1707eb(0x1e0))/0x3+-parseInt(_0x1707eb(0x238))/0x4+parseInt(_0x1707eb(0x22e))/0x5+-parseInt(_0x1707eb(0x1ea))/0x6*(-parseInt(_0x1707eb(0x21b))/0x7)+-parseInt(_0x1707eb(0x1c6))/0x8*(parseInt(_0x1707eb(0x226))/0x9)+-parseInt(_0x1707eb(0x1ae))/0xa*(-parseInt(_0x1707eb(0x1cc))/0xb);if(_0x5414fe===_0x1b4415)break;else _0x1680ce['push'](_0x1680ce['shift']());}catch(_0x12a815){_0x1680ce['push'](_0x1680ce['shift']());}}}(_0x5d52,0xd6ca4));import{BalloonPanelView as _0x201e32,ButtonView as _0x27fbef,clickOutsideHandler as _0x1d3c12,FileDialogButtonView as _0x4ebdfb,IconView as _0x5e5dc9,View as _0x40c4f6}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x494b41,IconDocument as _0x3980e1,IconDocumentOutline as _0x23e29a,IconDropdownArrow as _0x42aa6d,IconLink as _0x3445a7,IconPaperClip as _0x47ba64}from'@ckeditor/ckeditor5-icons';function _0x3f0c(_0x1ad5e3,_0x29489d){const _0x5d5219=_0x5d52();return _0x3f0c=function(_0x3f0cc6,_0x19e1d2){_0x3f0cc6=_0x3f0cc6-0x1ad;let _0x3b9215=_0x5d5219[_0x3f0cc6];return _0x3b9215;},_0x3f0c(_0x1ad5e3,_0x29489d);}import{AIChatContextItemButtonView as _0x5b8389}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x408473}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x254ab7}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x10776c}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2ec640}from'./resources/aichatresourcesballoonview.js';function _0x5d52(){const _0x14fa5e=['isHidden','isVisible','cancel','ck-ai-chat-controls-button','isOn','southArrowNorthWest','length','_showSourceResourcesBalloon','fire','withBackButton','add','_createAddContextBalloonPanelView','addResourceToContext','_setupAllBalloonClickOutsideHandlers','showSourceResourcesBalloon','conversation','content','element','_overflowManager','executeCustomItemCallback','_hasExactlyOneSource','5420527awpZbK','_createResourcesBalloonView','_addUrlContent','remove','defaultPositions','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat','showAddContextBalloonPanel','ck-ai-chat-context-controls__add-context-button','AI_CHAT_CONTEXT_FILE_LABEL','setAddContextOptions','18IhEeBN','searchInputVisibleFrom','_urlBalloonPanelView','ck-ai-chat-context-controls__url-balloon-panel','_addContextBalloonConfig','submitUrl','__arrow','execute','6340845zAOLkx','render','removeContextItem','hideAddContextBalloonPanel','ck-ai-chat-context-controls','_urlInputView','AI_CHAT_CONTEXT_ADD_CONTEXT','_handleAddContextButtonClick','hideUrlBalloonPanel','hide','6173876ULcQEc','reorganizeChips','isEnabled','setContainerElement','isReadOnly','set','document','destroy','ck-ai-chat-context-controls__add-context-balloon-panel','icon','removeContextItemChip','files','ck-ai-chat-context-controls__show-more-balloon-panel','ck-reset_all-excluded','10oysNzc','body','northArrowSouthWest','ck-ai-chat-context-chips-wrapper-balloon','_resourcesBalloonView','southArrowNorth','isLoading','loadSourceResources','ck-ai-chat-controls_context_show-more-button','createCollection','_setBalloonPanelContent','_removeContextFromCollection','_createBaseBalloonPanel','_createAddContextButtonView','populateSourceResourceBalloon','pin','southArrowNorthEast','label','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_currentContextsChips','customItems','show','_handleUrlSubmit','addUrlToContext','1788464RpFSNn','tooltip','setTemplate','_setupAddContextBalloonClickOutsideHandler','source','_setAddContextButtonEnabled','11041481UBNGmg','div','closeSourceResourceBalloon','bodyCollection','focus','type','addContextButtonView','find','current','customItem','balloonView','bind','extendTemplate','closest','refreshBalloon','clear','get','northArrowSouth','updateResourceState','locale','2726082iHpbRd','done','_createContextButton','_conversationContextsChips','menuitem','addDocumentToContext','overflowChips','_setupTemplate','buttonView','enabled','6tdImaJ','sources','ck-ai-chat-context-controls__balloon-button-source','26KQLfOX','56366eYjaGt','_addContextBalloonPanelView','_createUrlBalloonPanelView','ck-ai-chat-context-controls__balloon-button','urls','_bindEventHandlers','addFileToContext','clearConversationContextItems','_createArrowView','isAnyResourceBalloonVisible','_toggleAddContextBalloon','_getLimiterElement','showUrlBalloonPanel','_createBalloonButton','addContextItem','children','arrowView','setConversationContext','setContextItemLoading','_addContextToCollection','northArrowSouthEast','clearCurrentContextItems','_setupUrlBalloonClickOutsideHandler','AI_CHAT_CONTEXT_URL_LABEL'];_0x5d52=function(){return _0x14fa5e;};return _0x5d52();}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0xb3ee65(0x1e5),_0xb3ee65(0x1f4),_0xb3ee65(0x1c5),_0xb3ee65(0x212),_0xb3ee65(0x230),_0xb3ee65(0x1b5),_0xb3ee65(0x219)];const Uo=_0xb3ee65(0x232),Lo=_0xb3ee65(0x220),No=_0xb3ee65(0x240),Mo=_0xb3ee65(0x223),Ho=_0xb3ee65(0x229),jo=_0xb3ee65(0x1f1),Fo=_0xb3ee65(0x1ec),Xo=_0xb3ee65(0x209),Do=_0xb3ee65(0x1b1),$o=_0xb3ee65(0x1b6),Wo=_0xb3ee65(0x244),qo=_0xb3ee65(0x221),zo=[_0x201e32[_0xb3ee65(0x21f)][_0xb3ee65(0x1b0)],_0x201e32[_0xb3ee65(0x21f)][_0xb3ee65(0x1dd)],_0x201e32[_0xb3ee65(0x21f)][_0xb3ee65(0x202)],_0x201e32[_0xb3ee65(0x21f)][_0xb3ee65(0x20b)],_0x201e32[_0xb3ee65(0x21f)][_0xb3ee65(0x1b3)],_0x201e32[_0xb3ee65(0x21f)][_0xb3ee65(0x1be)]];export class AIChatContextPanelView extends _0x40c4f6{[_0xb3ee65(0x1d2)];[_0xb3ee65(0x1c1)]=this[_0xb3ee65(0x1b7)]();[_0xb3ee65(0x1e3)]=this[_0xb3ee65(0x1b7)]();[_0xb3ee65(0x218)];[_0xb3ee65(0x1ef)];[_0xb3ee65(0x228)];[_0xb3ee65(0x233)];[_0xb3ee65(0x1b2)];[_0xb3ee65(0x22a)];[_0xb3ee65(0x21a)]=!0x1;[_0xb3ee65(0x1cf)];constructor(_0x42e87a,_0x29cb10){const _0x37a2c9=_0xb3ee65;super(_0x42e87a),this[_0x37a2c9(0x1cf)]=_0x29cb10[_0x37a2c9(0x1cf)],this[_0x37a2c9(0x1c1)]=this[_0x37a2c9(0x1b7)](),this[_0x37a2c9(0x1e3)]=this[_0x37a2c9(0x1b7)](),this[_0x37a2c9(0x1d2)]=this[_0x37a2c9(0x1bb)](_0x42e87a),this[_0x37a2c9(0x1ef)]=this[_0x37a2c9(0x211)](_0x42e87a),this[_0x37a2c9(0x228)]=this[_0x37a2c9(0x1f0)](_0x42e87a),this[_0x37a2c9(0x1b2)]=this[_0x37a2c9(0x21c)](_0x42e87a,_0x29cb10);const _0x56cb86={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x37a2c9(0x218)]=new _0x254ab7(_0x42e87a,this[_0x37a2c9(0x1c1)],_0x56cb86,this[_0x37a2c9(0x1cf)],this),this[_0x37a2c9(0x22a)]={'buttonView':this[_0x37a2c9(0x1d2)],'balloonView':this[_0x37a2c9(0x1ef)],'hideMethod':this[_0x37a2c9(0x231)][_0x37a2c9(0x1d7)](this),'showMethod':this[_0x37a2c9(0x222)][_0x37a2c9(0x1d7)](this)},this[_0x37a2c9(0x1e7)](),this[_0x37a2c9(0x1f3)]();}[_0xb3ee65(0x22f)](){const _0x4e8a2d=_0xb3ee65;super[_0x4e8a2d(0x22f)](),this[_0x4e8a2d(0x213)](),this[_0x4e8a2d(0x218)][_0x4e8a2d(0x23b)](this[_0x4e8a2d(0x217)]),this[_0x4e8a2d(0x218)][_0x4e8a2d(0x239)]();}[_0xb3ee65(0x23f)](){const _0xaedaff=_0xb3ee65;super[_0xaedaff(0x23f)](),this[_0xaedaff(0x218)][_0xaedaff(0x23f)](),this[_0xaedaff(0x1b2)][_0xaedaff(0x23f)]();}[_0xb3ee65(0x1fc)](_0x3a0f5c,_0x4e7b0a){const _0x3e7aa4=_0xb3ee65,_0x2163dc=this[_0x3e7aa4(0x1e2)](_0x3a0f5c,_0x3e7aa4(0x1d4),!0x0,_0x4e7b0a);this[_0x3e7aa4(0x201)](_0x2163dc,this[_0x3e7aa4(0x1c1)]),this[_0x3e7aa4(0x218)][_0x3e7aa4(0x239)]();}[_0xb3ee65(0x230)](_0x233fde){const _0xa7b925=_0xb3ee65;this[_0xa7b925(0x1b9)](_0x233fde,this[_0xa7b925(0x1c1)]),this[_0xa7b925(0x1b9)](_0x233fde,this[_0xa7b925(0x218)][_0xa7b925(0x1e6)]),this[_0xa7b925(0x218)][_0xa7b925(0x239)]();}[_0xb3ee65(0x200)](_0x594753,_0x5c647d){const _0x3f1ccb=_0xb3ee65;let _0x5ae9c4=this[_0x3f1ccb(0x1c1)][_0x3f1ccb(0x1d3)](_0x272fd2=>_0x272fd2['id']===_0x594753);_0x5ae9c4||(_0x5ae9c4=this[_0x3f1ccb(0x218)][_0x3f1ccb(0x1e6)][_0x3f1ccb(0x1d3)](_0xad773=>_0xad773['id']===_0x594753)),_0x5ae9c4&&(_0x5ae9c4[_0x3f1ccb(0x1b4)]=_0x5c647d);}[_0xb3ee65(0x1ff)](_0x16f965){const _0x12a3ef=_0xb3ee65;this[_0x12a3ef(0x1e3)][_0x12a3ef(0x1db)]();for(const _0x5ea606 of _0x16f965){const _0x407003=this[_0x12a3ef(0x1e2)](_0x5ea606,_0x12a3ef(0x215),!0x1,!0x1);this[_0x12a3ef(0x201)](_0x407003,this[_0x12a3ef(0x1e3)]);}}[_0xb3ee65(0x203)](){const _0x128774=_0xb3ee65;this[_0x128774(0x1c1)][_0x128774(0x1db)](),this[_0x128774(0x218)][_0x128774(0x1db)]();}[_0xb3ee65(0x1f5)](){const _0x2d50fc=_0xb3ee65;this[_0x2d50fc(0x1e3)][_0x2d50fc(0x1db)]();}[_0xb3ee65(0x1de)](_0x2d937d,_0x423f9d,_0x4ed48a){const _0x46a739=_0xb3ee65;this[_0x46a739(0x1b2)][_0x46a739(0x1de)](_0x2d937d,_0x423f9d,_0x4ed48a);}[_0xb3ee65(0x231)](){const _0x3a4053=_0xb3ee65;this[_0x3a4053(0x1f8)](!0x1);}[_0xb3ee65(0x222)](){const _0x190466=_0xb3ee65;this[_0x190466(0x1f8)](!0x0);}[_0xb3ee65(0x236)](){const _0xc5445e=_0xb3ee65;this[_0xc5445e(0x228)][_0xc5445e(0x237)](),this[_0xc5445e(0x1d2)][_0xc5445e(0x20a)]=!0x1,this[_0xc5445e(0x233)]&&this[_0xc5445e(0x233)][_0xc5445e(0x1db)]();}[_0xb3ee65(0x1fa)](){const _0x2d80a8=_0xb3ee65;this[_0x2d80a8(0x228)][_0x2d80a8(0x1c3)](),this[_0x2d80a8(0x1d2)][_0x2d80a8(0x20a)]=!0x0;}[_0xb3ee65(0x20d)]({source:_0x273116,withBackButton:_0xed1399}){const _0x33dac5=_0xb3ee65;this[_0x33dac5(0x1b2)][_0x33dac5(0x214)]({'source':_0x273116,'withBackButton':_0xed1399}),this[_0x33dac5(0x1d2)][_0x33dac5(0x20a)]=!0x0;}[_0xb3ee65(0x1bc)](_0xd06cd3,_0x2361d2,_0x109f75,_0x59f76e){const _0x21c337=_0xb3ee65;this[_0x21c337(0x1b2)][_0x21c337(0x1bc)](_0xd06cd3,_0x109f75,_0x59f76e);}[_0xb3ee65(0x1ce)](_0x3f5c7e){const _0x5867dc=_0xb3ee65;this[_0x5867dc(0x1b2)][_0x5867dc(0x1ce)](_0x3f5c7e),this[_0x5867dc(0x1d2)][_0x5867dc(0x20a)]=!0x1;}[_0xb3ee65(0x225)](_0x5ad366){const _0x4ab56b=_0xb3ee65;this[_0x4ab56b(0x1b8)](this[_0x4ab56b(0x1ef)],this[_0x4ab56b(0x1df)],_0x5ad366),this[_0x4ab56b(0x1cb)](_0x5ad366);}[_0xb3ee65(0x1cb)](_0x2679fa){const _0x4683ce=_0xb3ee65,_0x145019=!_0x2679fa[_0x4683ce(0x23e)][_0x4683ce(0x206)]&&_0x2679fa[_0x4683ce(0x23e)][_0x4683ce(0x1e9)],_0x4ef5b9=_0x2679fa[_0x4683ce(0x1f2)][_0x4683ce(0x1e9)],_0x2cfa2d=_0x2679fa[_0x4683ce(0x243)][_0x4683ce(0x1e9)],_0x333805=_0x2679fa[_0x4683ce(0x1eb)][_0x4683ce(0x20c)]>0x0,_0x42cffd=_0x2679fa[_0x4683ce(0x1c2)]&&_0x2679fa[_0x4683ce(0x1c2)][_0x4683ce(0x20c)]>0x0;this[_0x4683ce(0x1d2)][_0x4683ce(0x23a)]=_0x145019||_0x4ef5b9||_0x2cfa2d||_0x333805||_0x42cffd;}[_0xb3ee65(0x1e7)](){const _0x55ba41=_0xb3ee65;this[_0x55ba41(0x1c8)]({'tag':_0x55ba41(0x1cd),'attributes':{'class':[Uo,_0x55ba41(0x1ad)]},'children':[{'tag':_0x55ba41(0x1cd),'attributes':{'class':Lo},'children':this[_0x55ba41(0x1c1)]}]});}[_0xb3ee65(0x1f3)](){const _0xa4b996=_0xb3ee65;this[_0xa4b996(0x1d2)]['on'](_0xa4b996(0x22d),()=>{const _0x556fce=_0xa4b996;this[_0x556fce(0x235)]();});}[_0xb3ee65(0x1bb)](_0x1bcdd8){const _0x1e7e6e=_0xb3ee65,_0x2f3a33=new _0x27fbef(_0x1bcdd8);return _0x2f3a33[_0x1e7e6e(0x23d)]({'label':_0x10776c(_0x1bcdd8,_0x1e7e6e(0x234)),'class':Xo+'\x20'+Mo,'icon':_0x47ba64,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x2f3a33;}[_0xb3ee65(0x211)](_0x2bde1d){const _0x19bee9=_0xb3ee65;return this[_0x19bee9(0x1ba)](_0x2bde1d,No);}[_0xb3ee65(0x1f0)](_0x4b8568){const _0x5a8668=_0xb3ee65,_0x2f19e0=this[_0x5a8668(0x1ba)](_0x4b8568,Ho);return this[_0x5a8668(0x21d)](_0x2f19e0,_0x4b8568),_0x2f19e0;}[_0xb3ee65(0x21c)](_0x272963,_0x3629f6){const _0x37006c=_0xb3ee65,_0x1529d0={'searchInputVisibleFrom':_0x3629f6[_0x37006c(0x227)],'onBackToContext':()=>{const _0x47e14f=_0x37006c;this[_0x47e14f(0x222)](),this[_0x47e14f(0x1ef)][_0x47e14f(0x1bd)]({'target':this[_0x47e14f(0x1d2)][_0x47e14f(0x217)],'limiter':this[_0x47e14f(0x1f9)](),'positions':zo});},'onResourceSelected':(_0x20e948,_0x41198d)=>{const _0x201684=_0x37006c;this[_0x201684(0x20e)](_0x201684(0x212),{'source':_0x20e948,'resource':_0x41198d});},'onLoadSourceResources':_0x288a02=>{const _0x4c0e22=_0x37006c;this[_0x4c0e22(0x20e)](_0x4c0e22(0x1b5),_0x288a02);},'onBalloonClosed':()=>{const _0x31ce22=_0x37006c;this[_0x31ce22(0x1d2)][_0x31ce22(0x20a)]=!0x1;},'getLimiterElement':()=>this[_0x37006c(0x1f9)](),'getTargetElement':()=>this[_0x37006c(0x1d2)][_0x37006c(0x217)]};return new _0x2ec640(_0x272963,_0x3629f6[_0x37006c(0x1cf)],_0x1529d0);}[_0xb3ee65(0x1f9)](){const _0x5089ae=_0xb3ee65;return this[_0x5089ae(0x217)]?.[_0x5089ae(0x1d9)]('.'+qo)||document[_0x5089ae(0x1af)];}[_0xb3ee65(0x1ba)](_0x5a840a,_0x5993f5){const _0x5357d4=_0xb3ee65,_0x4090df=new _0x201e32(_0x5a840a);return _0x4090df[_0x5357d4(0x1d8)]({'attributes':{'class':_0x5993f5}}),this[_0x5357d4(0x1cf)][_0x5357d4(0x210)](_0x4090df),_0x4090df;}[_0xb3ee65(0x1b8)](_0x4d5f30,_0x20430e,_0x313e5e){const _0x4cc0ab=_0xb3ee65;if(_0x4d5f30[_0x4cc0ab(0x216)][_0x4cc0ab(0x1db)](),!_0x313e5e[_0x4cc0ab(0x23e)][_0x4cc0ab(0x206)]&&_0x313e5e[_0x4cc0ab(0x23e)][_0x4cc0ab(0x1e9)]){const _0xe7cbf4=this[_0x4cc0ab(0x1fb)](_0x20430e,{'label':_0x10776c(_0x20430e,_0x4cc0ab(0x1c0)),'icon':_0x3980e1});_0xe7cbf4['on'](_0x4cc0ab(0x22d),()=>{const _0x245ce4=_0x4cc0ab;this[_0x245ce4(0x20e)](_0x245ce4(0x1e5)),this[_0x245ce4(0x231)]();}),_0x4d5f30[_0x4cc0ab(0x216)][_0x4cc0ab(0x210)](_0xe7cbf4);}if(_0x313e5e[_0x4cc0ab(0x1f2)][_0x4cc0ab(0x1e9)]){const _0x13f377=this[_0x4cc0ab(0x1fb)](_0x20430e,{'label':_0x10776c(_0x20430e,_0x4cc0ab(0x205)),'icon':_0x3445a7});_0x13f377['on'](_0x4cc0ab(0x22d),()=>{const _0x3bafad=_0x4cc0ab;this[_0x3bafad(0x231)](),this[_0x3bafad(0x1fa)](),this[_0x3bafad(0x228)][_0x3bafad(0x1bd)]({'target':this[_0x3bafad(0x1d2)][_0x3bafad(0x217)],'limiter':this[_0x3bafad(0x1f9)](),'positions':zo}),this[_0x3bafad(0x233)][_0x3bafad(0x1d0)]();}),_0x4d5f30[_0x4cc0ab(0x216)][_0x4cc0ab(0x210)](_0x13f377);}if(_0x313e5e[_0x4cc0ab(0x243)][_0x4cc0ab(0x1e9)]){const _0x3e6e11=new _0x4ebdfb(_0x20430e);_0x3e6e11[_0x4cc0ab(0x23d)]({'label':_0x10776c(_0x20430e,_0x4cc0ab(0x224)),'icon':_0x494b41,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x3e6e11['on'](_0x4cc0ab(0x22d),()=>{const _0x135a0b=_0x4cc0ab;this[_0x135a0b(0x231)]();}),_0x3e6e11['on'](_0x4cc0ab(0x1e1),(_0x415bfb,_0x1ce054)=>{const _0x4864bb=_0x4cc0ab;this[_0x4864bb(0x20e)](_0x4864bb(0x1f4),_0x1ce054);}),_0x3e6e11[_0x4cc0ab(0x1c7)]=!0x0,_0x4d5f30[_0x4cc0ab(0x216)][_0x4cc0ab(0x210)](_0x3e6e11);}for(const _0x41b6b6 of _0x313e5e[_0x4cc0ab(0x1eb)]){const _0x4b4111=this[_0x4cc0ab(0x1fb)](_0x20430e,{'label':_0x41b6b6[_0x4cc0ab(0x1bf)],'icon':_0x41b6b6[_0x4cc0ab(0x241)]||_0x23e29a,'type':_0x4cc0ab(0x1ca)});_0x4d5f30[_0x4cc0ab(0x216)][_0x4cc0ab(0x210)](_0x4b4111),_0x4b4111['on'](_0x4cc0ab(0x22d),()=>{const _0x3edcf8=_0x4cc0ab;this[_0x3edcf8(0x231)](),this[_0x3edcf8(0x20d)]({'source':_0x41b6b6,'withBackButton':!this[_0x3edcf8(0x21a)]});});}for(const _0x18424 of _0x313e5e[_0x4cc0ab(0x1c2)]||[]){const _0x2b386e=this[_0x4cc0ab(0x1fb)](_0x20430e,{'label':_0x18424[_0x4cc0ab(0x1bf)],'icon':_0x18424[_0x4cc0ab(0x241)]||_0x23e29a,'type':_0x4cc0ab(0x1d5)});_0x4d5f30[_0x4cc0ab(0x216)][_0x4cc0ab(0x210)](_0x2b386e),_0x2b386e['on'](_0x4cc0ab(0x22d),()=>{const _0x3db7eb=_0x4cc0ab;this[_0x3db7eb(0x231)](),this[_0x3db7eb(0x20e)](_0x3db7eb(0x219),_0x18424);});}this[_0x4cc0ab(0x21a)]=0x1===_0x4d5f30[_0x4cc0ab(0x216)][_0x4cc0ab(0x20c)],this[_0x4cc0ab(0x233)][_0x4cc0ab(0x20f)]=!this[_0x4cc0ab(0x21a)];}[_0xb3ee65(0x21d)](_0x20aa21,_0x160b51){const _0x36f374=_0xb3ee65;this[_0x36f374(0x233)]=new _0x408473(_0x160b51),this[_0x36f374(0x233)]['on'](_0x36f374(0x22b),(_0x18f7df,_0x10cb45)=>{const _0x2cbaba=_0x36f374;this[_0x2cbaba(0x1c4)](_0x10cb45);}),this[_0x36f374(0x233)]['on'](_0x36f374(0x208),()=>{const _0x460b73=_0x36f374;this[_0x460b73(0x236)](),this[_0x460b73(0x21a)]||(this[_0x460b73(0x222)](),this[_0x460b73(0x1ef)][_0x460b73(0x1bd)]({'target':this[_0x460b73(0x1d2)][_0x460b73(0x217)],'limiter':this[_0x460b73(0x1f9)](),'positions':zo}));}),this[_0x36f374(0x233)]['on'](_0x36f374(0x1da),()=>{const _0x22de6b=_0x36f374;this[_0x22de6b(0x228)][_0x22de6b(0x207)]&&this[_0x22de6b(0x228)][_0x22de6b(0x1bd)]({'target':this[_0x22de6b(0x1d2)][_0x22de6b(0x217)],'limiter':this[_0x22de6b(0x1f9)](),'positions':zo});}),_0x20aa21[_0x36f374(0x216)][_0x36f374(0x210)](this[_0x36f374(0x233)]);}[_0xb3ee65(0x1fb)](_0x26e6cc,_0x3d00c4){const _0x270aae=_0xb3ee65,_0x52e528=_0x270aae(0x1ca)===_0x3d00c4[_0x270aae(0x1d1)]?new SourcesBalloonButtonView(_0x26e6cc):new _0x27fbef(_0x26e6cc);return _0x52e528[_0x270aae(0x23d)]({'label':_0x3d00c4[_0x270aae(0x1bf)],'icon':_0x3d00c4[_0x270aae(0x241)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x52e528;}[_0xb3ee65(0x213)](){const _0x12fdb4=_0xb3ee65;this[_0x12fdb4(0x1c9)](),this[_0x12fdb4(0x204)]();}[_0xb3ee65(0x204)](){const _0x3c5f2a=_0xb3ee65;_0x1d3c12({'emitter':this[_0x3c5f2a(0x228)],'contextElements':[this[_0x3c5f2a(0x228)][_0x3c5f2a(0x217)]],'callback':()=>{const _0x2f7175=_0x3c5f2a;this[_0x2f7175(0x236)]();},'activator':()=>this[_0x3c5f2a(0x228)][_0x3c5f2a(0x207)]});}[_0xb3ee65(0x1f8)](_0x2a0864){const _0x22a3b4=_0xb3ee65,_0x189c44=this[_0x22a3b4(0x22a)];_0x189c44[_0x22a3b4(0x1e8)][_0x22a3b4(0x20a)]=_0x2a0864,_0x2a0864?_0x189c44[_0x22a3b4(0x1d6)][_0x22a3b4(0x1c3)]():_0x189c44[_0x22a3b4(0x1d6)][_0x22a3b4(0x237)]();}[_0xb3ee65(0x1c9)](){const _0x53cdef=_0xb3ee65,{balloonView:_0x23045c,buttonView:_0x2e501b,hideMethod:_0x2dbcfb}=this[_0x53cdef(0x22a)];_0x1d3c12({'emitter':_0x23045c,'contextElements':[_0x23045c[_0x53cdef(0x217)],_0x2e501b[_0x53cdef(0x217)]],'callback':()=>{_0x2dbcfb();},'activator':()=>_0x2e501b[_0x53cdef(0x20a)]&&!this[_0x53cdef(0x228)][_0x53cdef(0x207)]&&!this[_0x53cdef(0x1b2)][_0x53cdef(0x1f7)]()});}[_0xb3ee65(0x1e2)](_0x4eb78e,_0xb51cb1,_0x1a8e4d=!0x1,_0x277529=!0x1){const _0x267f6b=_0xb3ee65,_0x4062a4=_0x267f6b(0x215)===_0xb51cb1||!0x0===_0x4eb78e[_0x267f6b(0x23c)],_0x212e1c=new _0x5b8389(this[_0x267f6b(0x1df)],_0x4eb78e,_0x4062a4,_0x1a8e4d,_0x277529);return _0x4062a4||_0x212e1c['on'](_0x267f6b(0x242),()=>{const _0x354052=_0x267f6b;this[_0x354052(0x20e)](_0x354052(0x230),_0x212e1c['id']);}),_0x212e1c;}[_0xb3ee65(0x201)](_0x27b831,_0x2c7280){const _0x51f774=_0xb3ee65;_0x2c7280[_0x51f774(0x210)](_0x27b831,0x0);}[_0xb3ee65(0x1b9)](_0x1622d5,_0x2546d4){const _0x2a24e3=_0xb3ee65,_0x3a43c8=_0x2546d4[_0x2a24e3(0x1d3)](_0x1b41d2=>_0x1b41d2['id']===_0x1622d5);_0x3a43c8&&_0x2546d4[_0x2a24e3(0x21e)](_0x3a43c8);}[_0xb3ee65(0x235)](){const _0x1d658f=_0xb3ee65;this[_0x1d658f(0x1d2)][_0x1d658f(0x20a)]?this[_0x1d658f(0x231)]():(this[_0x1d658f(0x222)](),this[_0x1d658f(0x1ef)][_0x1d658f(0x1bd)]({'target':this[_0x1d658f(0x1d2)][_0x1d658f(0x217)],'limiter':this[_0x1d658f(0x1f9)](),'positions':zo}),this[_0x1d658f(0x21a)]&&this[_0x1d658f(0x1ef)][_0x1d658f(0x216)][_0x1d658f(0x1dc)](0x0)?.[_0x1d658f(0x20e)](_0x1d658f(0x22d)));}[_0xb3ee65(0x1c4)](_0x287a50){const _0x1018f3=_0xb3ee65;this[_0x1018f3(0x233)][_0x1018f3(0x1db)](),this[_0x1018f3(0x236)](),this[_0x1018f3(0x20e)](_0x1018f3(0x1c5),_0x287a50);}}export class SourcesBalloonButtonView extends _0x27fbef{[_0xb3ee65(0x1fe)];constructor(_0x552e98){const _0x1cbcf8=_0xb3ee65;super(_0x552e98),this[_0x1cbcf8(0x23d)]({'withText':!0x0,'role':_0x1cbcf8(0x1e4)}),this[_0x1cbcf8(0x1fe)]=this[_0x1cbcf8(0x1f6)](),this[_0x1cbcf8(0x1d8)]({'attributes':{'class':[Fo]}});}[_0xb3ee65(0x22f)](){const _0x5a8ed3=_0xb3ee65;super[_0x5a8ed3(0x22f)](),this[_0x5a8ed3(0x1fd)][_0x5a8ed3(0x210)](this[_0x5a8ed3(0x1fe)]);}[_0xb3ee65(0x1f6)](){const _0x57d161=_0xb3ee65,_0x6c048f=new _0x5e5dc9();return _0x6c048f[_0x57d161(0x216)]=_0x42aa6d,_0x6c048f[_0x57d161(0x1d8)]({'attributes':{'class':Fo+_0x57d161(0x22c)}}),_0x6c048f;}}
|
|
23
|
+
const _0x4b0ad8=_0x3c06;function _0x3c06(_0x51782e,_0x8c60b2){const _0x50a448=_0x50a4();return _0x3c06=function(_0x3c068a,_0x455e74){_0x3c068a=_0x3c068a-0xe2;let _0x40611a=_0x50a448[_0x3c068a];return _0x40611a;},_0x3c06(_0x51782e,_0x8c60b2);}(function(_0x339fea,_0x40898a){const _0x5a403c=_0x3c06,_0x20856d=_0x339fea();while(!![]){try{const _0x11368d=parseInt(_0x5a403c(0x170))/0x1*(parseInt(_0x5a403c(0x106))/0x2)+parseInt(_0x5a403c(0xf1))/0x3+parseInt(_0x5a403c(0xee))/0x4*(parseInt(_0x5a403c(0x16b))/0x5)+parseInt(_0x5a403c(0x10b))/0x6+-parseInt(_0x5a403c(0x15c))/0x7+-parseInt(_0x5a403c(0xf2))/0x8*(-parseInt(_0x5a403c(0x121))/0x9)+-parseInt(_0x5a403c(0x116))/0xa;if(_0x11368d===_0x40898a)break;else _0x20856d['push'](_0x20856d['shift']());}catch(_0x207f4d){_0x20856d['push'](_0x20856d['shift']());}}}(_0x50a4,0x483b4));import{BalloonPanelView as _0x41d54b,ButtonView as _0x4a900c,clickOutsideHandler as _0x89e7d6,FileDialogButtonView as _0x9d2f34,IconView as _0x398130,View as _0x2692ea}from'ckeditor5/src/ui.js';function _0x50a4(){const _0x392199=['_resourcesBalloonView','_createAddContextButtonView','addFileToContext','clearConversationContextItems','isVisible','showAddContextBalloonPanel','_overflowManager','setAddContextOptions','isOn','_setAddContextButtonEnabled','get','ck-ai-chat','showUrlBalloonPanel','ck-ai-chat-context-controls__balloon-button','_showSourceResourcesBalloon','ck-ai-chat-context-chips-wrapper-balloon','searchInputVisibleFrom','_createArrowView','_setBalloonPanelContent','_createAddContextBalloonPanelView','_handleUrlSubmit','populateSourceResourceBalloon','closest','menuitem','__arrow','ck-ai-chat-context-controls__add-context-button','showSourceResourcesBalloon','southArrowNorthWest','find','urls','render','_addContextBalloonPanelView','northArrowSouth','_setupUrlBalloonClickOutsideHandler','setTemplate','_currentContextsChips','_addContextBalloonConfig','ck-ai-chat-controls-button','addDocumentToContext','_createUrlBalloonPanelView','_removeContextFromCollection','focus','AI_CHAT_CONTEXT_FILE_LABEL','ck-reset_all-excluded','div','isAnyResourceBalloonVisible','ck-ai-chat-context-controls','hideUrlBalloonPanel','3443902iYbkxq','ck-ai-chat-controls_context_show-more-button','reorganizeChips','add','_addContextToCollection','_urlBalloonPanelView','_urlInputView','_createBalloonButton','southArrowNorth','ck-ai-chat-context-controls__add-context-balloon-panel','loadSourceResources','closeSourceResourceBalloon','current','removeContextItemChip','execute','920VbPqnm','updateResourceState','refreshBalloon','createCollection','AI_CHAT_CONTEXT_ADD_CONTEXT','10cqbTdz','executeCustomItemCallback','tooltip','children','submitUrl','buttonView','length','defaultPositions','customItem','addResourceToContext','arrowView','_toggleAddContextBalloon','ck-ai-chat-context-controls__balloon-button-source','fire','AI_CHAT_CONTEXT_URL_LABEL','_hasExactlyOneSource','bodyCollection','body','isReadOnly','icon','customItems','6788zxdiRR','pin','addContextButtonView','1202520rulHjJ','3220984WganAe','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','isEnabled','locale','content','element','withBackButton','_handleAddContextButtonClick','_setupAllBalloonClickOutsideHandlers','cancel','destroy','clearCurrentContextItems','_bindEventHandlers','show','northArrowSouthWest','_createContextButton','southArrowNorthEast','bind','balloonView','setConversationContext','26066SxbdMf','isHidden','_conversationContextsChips','extendTemplate','type','10098SLUFjS','overflowChips','removeContextItem','hide','_addUrlContent','setContainerElement','_createResourcesBalloonView','remove','sources','ck-ai-chat-context-controls__pending-contexts','conversation','4598780xqvEde','ck-ai-chat-context-controls__show-more-balloon-panel','document','_setupTemplate','_createBaseBalloonPanel','_getLimiterElement','setContextItemLoading','isLoading','_setupAddContextBalloonClickOutsideHandler','set','enabled','9EJDSDu','hideAddContextBalloonPanel','label','northArrowSouthEast','clear','files','addContextItem','done','ck-ai-chat-context-controls__url-balloon-panel','source','addUrlToContext'];_0x50a4=function(){return _0x392199;};return _0x50a4();}import{IconBrowseFiles as _0x910cbb,IconDocument as _0x3150ef,IconDocumentOutline as _0x1daadd,IconDropdownArrow as _0x5525c4,IconLink as _0x5d88b2,IconPaperClip as _0x38366d}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x39703c}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x4fb14e}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x2417ef}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x770acc}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x22cb4f}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4b0ad8(0x152),_0x4b0ad8(0x12e),_0x4b0ad8(0x12b),_0x4b0ad8(0xe2),_0x4b0ad8(0x10d),_0x4b0ad8(0x166),_0x4b0ad8(0x171)];const Uo=_0x4b0ad8(0x15a),Lo=_0x4b0ad8(0x114),No=_0x4b0ad8(0x165),Mo=_0x4b0ad8(0x145),Ho=_0x4b0ad8(0x129),jo=_0x4b0ad8(0x139),Fo=_0x4b0ad8(0xe5),Xo=_0x4b0ad8(0x151),Do=_0x4b0ad8(0x13b),$o=_0x4b0ad8(0x15d),Wo=_0x4b0ad8(0x117),qo=_0x4b0ad8(0x137),zo=[_0x41d54b[_0x4b0ad8(0x177)][_0x4b0ad8(0x100)],_0x41d54b[_0x4b0ad8(0x177)][_0x4b0ad8(0x14c)],_0x41d54b[_0x4b0ad8(0x177)][_0x4b0ad8(0x124)],_0x41d54b[_0x4b0ad8(0x177)][_0x4b0ad8(0x147)],_0x41d54b[_0x4b0ad8(0x177)][_0x4b0ad8(0x164)],_0x41d54b[_0x4b0ad8(0x177)][_0x4b0ad8(0x102)]];export class AIChatContextPanelView extends _0x2692ea{[_0x4b0ad8(0xf0)];[_0x4b0ad8(0x14f)]=this[_0x4b0ad8(0x16e)]();[_0x4b0ad8(0x108)]=this[_0x4b0ad8(0x16e)]();[_0x4b0ad8(0x132)];[_0x4b0ad8(0x14b)];[_0x4b0ad8(0x161)];[_0x4b0ad8(0x162)];[_0x4b0ad8(0x12c)];[_0x4b0ad8(0x150)];[_0x4b0ad8(0xe8)]=!0x1;[_0x4b0ad8(0xe9)];constructor(_0x2840dd,_0x13ee10){const _0x52c372=_0x4b0ad8;super(_0x2840dd),this[_0x52c372(0xe9)]=_0x13ee10[_0x52c372(0xe9)],this[_0x52c372(0x14f)]=this[_0x52c372(0x16e)](),this[_0x52c372(0x108)]=this[_0x52c372(0x16e)](),this[_0x52c372(0xf0)]=this[_0x52c372(0x12d)](_0x2840dd),this[_0x52c372(0x14b)]=this[_0x52c372(0x13f)](_0x2840dd),this[_0x52c372(0x161)]=this[_0x52c372(0x153)](_0x2840dd),this[_0x52c372(0x12c)]=this[_0x52c372(0x111)](_0x2840dd,_0x13ee10);const _0x5938ba={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0x52c372(0x132)]=new _0x2417ef(_0x2840dd,this[_0x52c372(0x14f)],_0x5938ba,this[_0x52c372(0xe9)],this),this[_0x52c372(0x150)]={'buttonView':this[_0x52c372(0xf0)],'balloonView':this[_0x52c372(0x14b)],'hideMethod':this[_0x52c372(0x122)][_0x52c372(0x103)](this),'showMethod':this[_0x52c372(0x131)][_0x52c372(0x103)](this)},this[_0x52c372(0x119)](),this[_0x52c372(0xfe)]();}[_0x4b0ad8(0x14a)](){const _0x57bece=_0x4b0ad8;super[_0x57bece(0x14a)](),this[_0x57bece(0xfa)](),this[_0x57bece(0x132)][_0x57bece(0x110)](this[_0x57bece(0xf7)]),this[_0x57bece(0x132)][_0x57bece(0x15e)]();}[_0x4b0ad8(0xfc)](){const _0x595d2b=_0x4b0ad8;super[_0x595d2b(0xfc)](),this[_0x595d2b(0x132)][_0x595d2b(0xfc)](),this[_0x595d2b(0x12c)][_0x595d2b(0xfc)]();}[_0x4b0ad8(0x127)](_0x53c1b1,_0xa6d55d){const _0x51482f=_0x4b0ad8,_0x46d471=this[_0x51482f(0x101)](_0x53c1b1,_0x51482f(0x168),!0x0,_0xa6d55d);this[_0x51482f(0x160)](_0x46d471,this[_0x51482f(0x14f)]),this[_0x51482f(0x132)][_0x51482f(0x15e)]();}[_0x4b0ad8(0x10d)](_0x551215){const _0x24fdb0=_0x4b0ad8;this[_0x24fdb0(0x154)](_0x551215,this[_0x24fdb0(0x14f)]),this[_0x24fdb0(0x154)](_0x551215,this[_0x24fdb0(0x132)][_0x24fdb0(0x10c)]),this[_0x24fdb0(0x132)][_0x24fdb0(0x15e)]();}[_0x4b0ad8(0x11c)](_0x402c35,_0x3cb943){const _0x26a0c0=_0x4b0ad8;let _0x3536e5=this[_0x26a0c0(0x14f)][_0x26a0c0(0x148)](_0x4c1dca=>_0x4c1dca['id']===_0x402c35);_0x3536e5||(_0x3536e5=this[_0x26a0c0(0x132)][_0x26a0c0(0x10c)][_0x26a0c0(0x148)](_0x1793f3=>_0x1793f3['id']===_0x402c35)),_0x3536e5&&(_0x3536e5[_0x26a0c0(0x11d)]=_0x3cb943);}[_0x4b0ad8(0x105)](_0x5a717a){const _0x51af21=_0x4b0ad8;this[_0x51af21(0x108)][_0x51af21(0x125)]();for(const _0x1d189b of _0x5a717a){const _0x23a883=this[_0x51af21(0x101)](_0x1d189b,_0x51af21(0x115),!0x1,!0x1);this[_0x51af21(0x160)](_0x23a883,this[_0x51af21(0x108)]);}}[_0x4b0ad8(0xfd)](){const _0x7498d4=_0x4b0ad8;this[_0x7498d4(0x14f)][_0x7498d4(0x125)](),this[_0x7498d4(0x132)][_0x7498d4(0x125)]();}[_0x4b0ad8(0x12f)](){const _0x37aa04=_0x4b0ad8;this[_0x37aa04(0x108)][_0x37aa04(0x125)]();}[_0x4b0ad8(0x16c)](_0x21cfd2,_0x421ab6,_0x362f70){const _0x1b9e9d=_0x4b0ad8;this[_0x1b9e9d(0x12c)][_0x1b9e9d(0x16c)](_0x21cfd2,_0x421ab6,_0x362f70);}[_0x4b0ad8(0x122)](){const _0x355b0e=_0x4b0ad8;this[_0x355b0e(0xe4)](!0x1);}[_0x4b0ad8(0x131)](){const _0x165584=_0x4b0ad8;this[_0x165584(0xe4)](!0x0);}[_0x4b0ad8(0x15b)](){const _0x2f9a28=_0x4b0ad8;this[_0x2f9a28(0x161)][_0x2f9a28(0x10e)](),this[_0x2f9a28(0xf0)][_0x2f9a28(0x134)]=!0x1,this[_0x2f9a28(0x162)]&&this[_0x2f9a28(0x162)][_0x2f9a28(0x125)]();}[_0x4b0ad8(0x138)](){const _0xa97ec8=_0x4b0ad8;this[_0xa97ec8(0x161)][_0xa97ec8(0xff)](),this[_0xa97ec8(0xf0)][_0xa97ec8(0x134)]=!0x0;}[_0x4b0ad8(0x13a)]({source:_0x1791ab,withBackButton:_0x55cc49}){const _0xd27b71=_0x4b0ad8;this[_0xd27b71(0x12c)][_0xd27b71(0x146)]({'source':_0x1791ab,'withBackButton':_0x55cc49}),this[_0xd27b71(0xf0)][_0xd27b71(0x134)]=!0x0;}[_0x4b0ad8(0x141)](_0x545127,_0x48ca8f,_0x2e3038,_0x1bd6f6){const _0xefcc1c=_0x4b0ad8;this[_0xefcc1c(0x12c)][_0xefcc1c(0x141)](_0x545127,_0x2e3038,_0x1bd6f6);}[_0x4b0ad8(0x167)](_0x5a41a4){const _0xd139e1=_0x4b0ad8;this[_0xd139e1(0x12c)][_0xd139e1(0x167)](_0x5a41a4),this[_0xd139e1(0xf0)][_0xd139e1(0x134)]=!0x1;}[_0x4b0ad8(0x133)](_0x50d962){const _0x285934=_0x4b0ad8;this[_0x285934(0x13e)](this[_0x285934(0x14b)],this[_0x285934(0xf5)],_0x50d962),this[_0x285934(0x135)](_0x50d962);}[_0x4b0ad8(0x135)](_0x4cdd25){const _0x9a444a=_0x4b0ad8,_0x21a6ec=!_0x4cdd25[_0x9a444a(0x118)][_0x9a444a(0x107)]&&_0x4cdd25[_0x9a444a(0x118)][_0x9a444a(0x120)],_0x266020=_0x4cdd25[_0x9a444a(0x149)][_0x9a444a(0x120)],_0x2487b8=_0x4cdd25[_0x9a444a(0x126)][_0x9a444a(0x120)],_0x19b808=_0x4cdd25[_0x9a444a(0x113)][_0x9a444a(0x176)]>0x0,_0x466efb=_0x4cdd25[_0x9a444a(0xed)]&&_0x4cdd25[_0x9a444a(0xed)][_0x9a444a(0x176)]>0x0;this[_0x9a444a(0xf0)][_0x9a444a(0xf4)]=_0x21a6ec||_0x266020||_0x2487b8||_0x19b808||_0x466efb;}[_0x4b0ad8(0x119)](){const _0x1d4ff2=_0x4b0ad8;this[_0x1d4ff2(0x14e)]({'tag':_0x1d4ff2(0x158),'attributes':{'class':[Uo,_0x1d4ff2(0x157)]},'children':[{'tag':_0x1d4ff2(0x158),'attributes':{'class':Lo},'children':this[_0x1d4ff2(0x14f)]}]});}[_0x4b0ad8(0xfe)](){const _0x4f0349=_0x4b0ad8;this[_0x4f0349(0xf0)]['on'](_0x4f0349(0x16a),()=>{const _0x2f2ade=_0x4f0349;this[_0x2f2ade(0xf9)]();});}[_0x4b0ad8(0x12d)](_0x25272e){const _0x3ebcfe=_0x4b0ad8,_0xceda3=new _0x4a900c(_0x25272e);return _0xceda3[_0x3ebcfe(0x11f)]({'label':_0x770acc(_0x25272e,_0x3ebcfe(0x16f)),'class':Xo+'\x20'+Mo,'icon':_0x38366d,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0xceda3;}[_0x4b0ad8(0x13f)](_0x19e09d){const _0x3a788d=_0x4b0ad8;return this[_0x3a788d(0x11a)](_0x19e09d,No);}[_0x4b0ad8(0x153)](_0x48ef3d){const _0x1ccccc=_0x4b0ad8,_0x44a886=this[_0x1ccccc(0x11a)](_0x48ef3d,Ho);return this[_0x1ccccc(0x10f)](_0x44a886,_0x48ef3d),_0x44a886;}[_0x4b0ad8(0x111)](_0x4a71db,_0x860684){const _0x2f4fc1=_0x4b0ad8,_0x34a86a={'searchInputVisibleFrom':_0x860684[_0x2f4fc1(0x13c)],'onBackToContext':()=>{const _0x238cf4=_0x2f4fc1;this[_0x238cf4(0x131)](),this[_0x238cf4(0x14b)][_0x238cf4(0xef)]({'target':this[_0x238cf4(0xf0)][_0x238cf4(0xf7)],'limiter':this[_0x238cf4(0x11b)](),'positions':zo});},'onResourceSelected':(_0x296dff,_0x28907a)=>{const _0x31971e=_0x2f4fc1;this[_0x31971e(0xe6)](_0x31971e(0xe2),{'source':_0x296dff,'resource':_0x28907a});},'onLoadSourceResources':_0x2614dc=>{const _0x5e1afe=_0x2f4fc1;this[_0x5e1afe(0xe6)](_0x5e1afe(0x166),_0x2614dc);},'onBalloonClosed':()=>{const _0x3fe6f8=_0x2f4fc1;this[_0x3fe6f8(0xf0)][_0x3fe6f8(0x134)]=!0x1;},'getLimiterElement':()=>this[_0x2f4fc1(0x11b)](),'getTargetElement':()=>this[_0x2f4fc1(0xf0)][_0x2f4fc1(0xf7)]};return new _0x22cb4f(_0x4a71db,_0x860684[_0x2f4fc1(0xe9)],_0x34a86a);}[_0x4b0ad8(0x11b)](){const _0x1dfe83=_0x4b0ad8;return this[_0x1dfe83(0xf7)]?.[_0x1dfe83(0x142)]('.'+qo)||document[_0x1dfe83(0xea)];}[_0x4b0ad8(0x11a)](_0x3766fe,_0x2254d5){const _0xfbc26b=_0x4b0ad8,_0x3cde9f=new _0x41d54b(_0x3766fe);return _0x3cde9f[_0xfbc26b(0x109)]({'attributes':{'class':_0x2254d5}}),this[_0xfbc26b(0xe9)][_0xfbc26b(0x15f)](_0x3cde9f),_0x3cde9f;}[_0x4b0ad8(0x13e)](_0x1d0ad5,_0x1584b2,_0x493258){const _0x510ced=_0x4b0ad8;if(_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x125)](),!_0x493258[_0x510ced(0x118)][_0x510ced(0x107)]&&_0x493258[_0x510ced(0x118)][_0x510ced(0x120)]){const _0x1233ea=this[_0x510ced(0x163)](_0x1584b2,{'label':_0x770acc(_0x1584b2,_0x510ced(0xf3)),'icon':_0x3150ef});_0x1233ea['on'](_0x510ced(0x16a),()=>{const _0x292ec4=_0x510ced;this[_0x292ec4(0xe6)](_0x292ec4(0x152)),this[_0x292ec4(0x122)]();}),_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x15f)](_0x1233ea);}if(_0x493258[_0x510ced(0x149)][_0x510ced(0x120)]){const _0x2541f6=this[_0x510ced(0x163)](_0x1584b2,{'label':_0x770acc(_0x1584b2,_0x510ced(0xe7)),'icon':_0x5d88b2});_0x2541f6['on'](_0x510ced(0x16a),()=>{const _0xf466d8=_0x510ced;this[_0xf466d8(0x122)](),this[_0xf466d8(0x138)](),this[_0xf466d8(0x161)][_0xf466d8(0xef)]({'target':this[_0xf466d8(0xf0)][_0xf466d8(0xf7)],'limiter':this[_0xf466d8(0x11b)](),'positions':zo}),this[_0xf466d8(0x162)][_0xf466d8(0x155)]();}),_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x15f)](_0x2541f6);}if(_0x493258[_0x510ced(0x126)][_0x510ced(0x120)]){const _0x40dac1=new _0x9d2f34(_0x1584b2);_0x40dac1[_0x510ced(0x11f)]({'label':_0x770acc(_0x1584b2,_0x510ced(0x156)),'icon':_0x910cbb,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x40dac1['on'](_0x510ced(0x16a),()=>{const _0x1822c9=_0x510ced;this[_0x1822c9(0x122)]();}),_0x40dac1['on'](_0x510ced(0x128),(_0x37a816,_0x4b4a2e)=>{const _0x10fd5d=_0x510ced;this[_0x10fd5d(0xe6)](_0x10fd5d(0x12e),_0x4b4a2e);}),_0x40dac1[_0x510ced(0x172)]=!0x0,_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x15f)](_0x40dac1);}for(const _0x427fd8 of _0x493258[_0x510ced(0x113)]){const _0xda7e02=this[_0x510ced(0x163)](_0x1584b2,{'label':_0x427fd8[_0x510ced(0x123)],'icon':_0x427fd8[_0x510ced(0xec)]||_0x1daadd,'type':_0x510ced(0x12a)});_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x15f)](_0xda7e02),_0xda7e02['on'](_0x510ced(0x16a),()=>{const _0x37313e=_0x510ced;this[_0x37313e(0x122)](),this[_0x37313e(0x13a)]({'source':_0x427fd8,'withBackButton':!this[_0x37313e(0xe8)]});});}for(const _0x42286f of _0x493258[_0x510ced(0xed)]||[]){const _0x4e6811=this[_0x510ced(0x163)](_0x1584b2,{'label':_0x42286f[_0x510ced(0x123)],'icon':_0x42286f[_0x510ced(0xec)]||_0x1daadd,'type':_0x510ced(0x178)});_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x15f)](_0x4e6811),_0x4e6811['on'](_0x510ced(0x16a),()=>{const _0x1f3505=_0x510ced;this[_0x1f3505(0x122)](),this[_0x1f3505(0xe6)](_0x1f3505(0x171),_0x42286f);});}this[_0x510ced(0xe8)]=0x1===_0x1d0ad5[_0x510ced(0xf6)][_0x510ced(0x176)],this[_0x510ced(0x162)][_0x510ced(0xf8)]=!this[_0x510ced(0xe8)];}[_0x4b0ad8(0x10f)](_0x55f8cf,_0x19ca17){const _0x3a6398=_0x4b0ad8;this[_0x3a6398(0x162)]=new _0x4fb14e(_0x19ca17),this[_0x3a6398(0x162)]['on'](_0x3a6398(0x174),(_0x4b0cf0,_0x3718a6)=>{const _0x4d0c95=_0x3a6398;this[_0x4d0c95(0x140)](_0x3718a6);}),this[_0x3a6398(0x162)]['on'](_0x3a6398(0xfb),()=>{const _0x12336e=_0x3a6398;this[_0x12336e(0x15b)](),this[_0x12336e(0xe8)]||(this[_0x12336e(0x131)](),this[_0x12336e(0x14b)][_0x12336e(0xef)]({'target':this[_0x12336e(0xf0)][_0x12336e(0xf7)],'limiter':this[_0x12336e(0x11b)](),'positions':zo}));}),this[_0x3a6398(0x162)]['on'](_0x3a6398(0x16d),()=>{const _0x457c41=_0x3a6398;this[_0x457c41(0x161)][_0x457c41(0x130)]&&this[_0x457c41(0x161)][_0x457c41(0xef)]({'target':this[_0x457c41(0xf0)][_0x457c41(0xf7)],'limiter':this[_0x457c41(0x11b)](),'positions':zo});}),_0x55f8cf[_0x3a6398(0xf6)][_0x3a6398(0x15f)](this[_0x3a6398(0x162)]);}[_0x4b0ad8(0x163)](_0x5437a8,_0x2ffb1d){const _0x3ea300=_0x4b0ad8,_0x173122=_0x3ea300(0x12a)===_0x2ffb1d[_0x3ea300(0x10a)]?new SourcesBalloonButtonView(_0x5437a8):new _0x4a900c(_0x5437a8);return _0x173122[_0x3ea300(0x11f)]({'label':_0x2ffb1d[_0x3ea300(0x123)],'icon':_0x2ffb1d[_0x3ea300(0xec)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x173122;}[_0x4b0ad8(0xfa)](){const _0x19c367=_0x4b0ad8;this[_0x19c367(0x11e)](),this[_0x19c367(0x14d)]();}[_0x4b0ad8(0x14d)](){const _0x5dfc6a=_0x4b0ad8;_0x89e7d6({'emitter':this[_0x5dfc6a(0x161)],'contextElements':[this[_0x5dfc6a(0x161)][_0x5dfc6a(0xf7)]],'callback':()=>{const _0xf85533=_0x5dfc6a;this[_0xf85533(0x15b)]();},'activator':()=>this[_0x5dfc6a(0x161)][_0x5dfc6a(0x130)]});}[_0x4b0ad8(0xe4)](_0x348b1b){const _0x5d3f83=_0x4b0ad8,_0x32c8e6=this[_0x5d3f83(0x150)];_0x32c8e6[_0x5d3f83(0x175)][_0x5d3f83(0x134)]=_0x348b1b,_0x348b1b?_0x32c8e6[_0x5d3f83(0x104)][_0x5d3f83(0xff)]():_0x32c8e6[_0x5d3f83(0x104)][_0x5d3f83(0x10e)]();}[_0x4b0ad8(0x11e)](){const _0x2d276e=_0x4b0ad8,{balloonView:_0x1df6d2,buttonView:_0x578ea9,hideMethod:_0x20e6ad}=this[_0x2d276e(0x150)];_0x89e7d6({'emitter':_0x1df6d2,'contextElements':[_0x1df6d2[_0x2d276e(0xf7)],_0x578ea9[_0x2d276e(0xf7)]],'callback':()=>{_0x20e6ad();},'activator':()=>_0x578ea9[_0x2d276e(0x134)]&&!this[_0x2d276e(0x161)][_0x2d276e(0x130)]&&!this[_0x2d276e(0x12c)][_0x2d276e(0x159)]()});}[_0x4b0ad8(0x101)](_0x2baec8,_0x552294,_0x137e8c=!0x1,_0x17e1c5=!0x1){const _0x3d237f=_0x4b0ad8,_0x19040e=_0x3d237f(0x115)===_0x552294||!0x0===_0x2baec8[_0x3d237f(0xeb)],_0x10ab21=new _0x39703c(this[_0x3d237f(0xf5)],_0x2baec8,_0x19040e,_0x137e8c,_0x17e1c5);return _0x19040e||_0x10ab21['on'](_0x3d237f(0x169),()=>{const _0x548828=_0x3d237f;this[_0x548828(0xe6)](_0x548828(0x10d),_0x10ab21['id']);}),_0x10ab21;}[_0x4b0ad8(0x160)](_0x10ba01,_0x4a5c51){const _0x395b44=_0x4b0ad8;_0x4a5c51[_0x395b44(0x15f)](_0x10ba01,0x0);}[_0x4b0ad8(0x154)](_0x3214f4,_0x230e97){const _0x2c19de=_0x4b0ad8,_0x24b0f9=_0x230e97[_0x2c19de(0x148)](_0x488b17=>_0x488b17['id']===_0x3214f4);_0x24b0f9&&_0x230e97[_0x2c19de(0x112)](_0x24b0f9);}[_0x4b0ad8(0xf9)](){const _0x521170=_0x4b0ad8;this[_0x521170(0xf0)][_0x521170(0x134)]?this[_0x521170(0x122)]():(this[_0x521170(0x131)](),this[_0x521170(0x14b)][_0x521170(0xef)]({'target':this[_0x521170(0xf0)][_0x521170(0xf7)],'limiter':this[_0x521170(0x11b)](),'positions':zo}),this[_0x521170(0xe8)]&&this[_0x521170(0x14b)][_0x521170(0xf6)][_0x521170(0x136)](0x0)?.[_0x521170(0xe6)](_0x521170(0x16a)));}[_0x4b0ad8(0x140)](_0x17a0af){const _0x5ac5d6=_0x4b0ad8;this[_0x5ac5d6(0x162)][_0x5ac5d6(0x125)](),this[_0x5ac5d6(0x15b)](),this[_0x5ac5d6(0xe6)](_0x5ac5d6(0x12b),_0x17a0af);}}export class SourcesBalloonButtonView extends _0x4a900c{[_0x4b0ad8(0xe3)];constructor(_0x26c9df){const _0x5ab184=_0x4b0ad8;super(_0x26c9df),this[_0x5ab184(0x11f)]({'withText':!0x0,'role':_0x5ab184(0x143)}),this[_0x5ab184(0xe3)]=this[_0x5ab184(0x13d)](),this[_0x5ab184(0x109)]({'attributes':{'class':[Fo]}});}[_0x4b0ad8(0x14a)](){const _0x5a6e45=_0x4b0ad8;super[_0x5a6e45(0x14a)](),this[_0x5a6e45(0x173)][_0x5a6e45(0x15f)](this[_0x5a6e45(0xe3)]);}[_0x4b0ad8(0x13d)](){const _0x47a470=_0x4b0ad8,_0x628ecf=new _0x398130();return _0x628ecf[_0x47a470(0xf6)]=_0x5525c4,_0x628ecf[_0x47a470(0x109)]({'attributes':{'class':Fo+_0x47a470(0x144)}}),_0x628ecf;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3499(_0x5ede14,_0x5838c1){const _0x40a6f4=_0x40a6();return _0x3499=function(_0x3499bc,_0x30a96e){_0x3499bc=_0x3499bc-0xc7;let _0x28e57d=_0x40a6f4[_0x3499bc];return _0x28e57d;},_0x3499(_0x5ede14,_0x5838c1);}const _0x5e687e=_0x3499;(function(_0x46c3e6,_0x5afbb7){const _0x594bca=_0x3499,_0xd3fc0d=_0x46c3e6();while(!![]){try{const _0x47df53=-parseInt(_0x594bca(0xc7))/0x1+-parseInt(_0x594bca(0xd1))/0x2+-parseInt(_0x594bca(0xd5))/0x3*(-parseInt(_0x594bca(0xce))/0x4)+parseInt(_0x594bca(0xcf))/0x5+-parseInt(_0x594bca(0xe2))/0x6*(-parseInt(_0x594bca(0xc9))/0x7)+-parseInt(_0x594bca(0xcc))/0x8+-parseInt(_0x594bca(0xdb))/0x9*(parseInt(_0x594bca(0xd3))/0xa);if(_0x47df53===_0x5afbb7)break;else _0xd3fc0d['push'](_0xd3fc0d['shift']());}catch(_0x5e09b7){_0xd3fc0d['push'](_0xd3fc0d['shift']());}}}(_0x40a6,0x35b75));import{ButtonView as _0x13309d,View as _0x5844ab}from'ckeditor5/src/ui.js';import{IconStop as _0x10bfb6}from'ckeditor5/src/icons.js';function _0x40a6(){const _0x2899d8=['AI_CHAT_STOP_GENERATING','ck-ai-button-secondary\x20ck-ai-button-stop-generating','2031093hEBsdv','execute','_loaderView','_createCancelButtonView','abortPromptStream','div','ck-ai-chat-controls-loader-wrapper','107922whfIsK','locale','137630HKEpVN','ck-ai-chat-controls-loader','154XQPIGn','set','ck-ai-chat-controls-loader-icon-dot','2733000DdaJlI','setTemplate','1668804mKeeME','785770hsyUvf','fire','90232bARErz','_createLoaderView','10lCgVjs','ck-reset_all','3NnhTON','AI_CHAT_IS_WRITING','_cancelButtonView','ck-ai-chat-controls-loader-icon'];_0x40a6=function(){return _0x2899d8;};return _0x40a6();}import{getTranslation as _0x212dcc}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x5844ab{[_0x5e687e(0xd7)];[_0x5e687e(0xdd)];constructor(_0x58d692){const _0x5670f4=_0x5e687e;super(_0x58d692),this[_0x5670f4(0xd7)]=this[_0x5670f4(0xde)](),this[_0x5670f4(0xdd)]=this[_0x5670f4(0xd2)](),this[_0x5670f4(0xcd)]({'tag':_0x5670f4(0xe0),'attributes':{'class':['ck',_0x5670f4(0xe1),_0x5670f4(0xd4)]},'children':[this[_0x5670f4(0xdd)],this[_0x5670f4(0xd7)]]});}[_0x5e687e(0xde)](){const _0xd453b4=_0x5e687e,_0x4eb44e=new _0x13309d(this[_0xd453b4(0xe3)]);return _0x4eb44e[_0xd453b4(0xca)]({'label':_0x212dcc(this[_0xd453b4(0xe3)],_0xd453b4(0xd9)),'withText':!0x0,'class':_0xd453b4(0xda),'icon':_0x10bfb6}),_0x4eb44e['on'](_0xd453b4(0xdc),()=>{const _0x2ebd2e=_0xd453b4;this[_0x2ebd2e(0xd0)](_0x2ebd2e(0xdf));}),_0x4eb44e;}[_0x5e687e(0xd2)](){const _0x2789ec=_0x5e687e,_0x3e0ee4=new _0x5844ab(this[_0x2789ec(0xe3)]);return _0x3e0ee4[_0x2789ec(0xcd)]({'tag':_0x2789ec(0xe0),'attributes':{'class':[_0x2789ec(0xc8)]},'children':[{'tag':_0x2789ec(0xe0),'attributes':{'class':[_0x2789ec(0xd8)]},'children':[{'tag':_0x2789ec(0xe0),'attributes':{'class':[_0x2789ec(0xcb)]}},{'tag':_0x2789ec(0xe0),'attributes':{'class':[_0x2789ec(0xcb)]}},{'tag':_0x2789ec(0xe0),'attributes':{'class':[_0x2789ec(0xcb)]}}]},{'text':_0x212dcc(this[_0x2789ec(0xe3)],_0x2789ec(0xd6))}]}),_0x3e0ee4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x349809=_0x436a;function _0x5a08(){const _0x470206=['AI_CHAT_REASONING','execute','fire','ck-ai-chat__prompt-capabilities','AI_CHAT_ENABLE_REASONING','add','4475088aLPKGZ','modelDisplayMode','isVisible','_modelSelectionDropdownItems','bindTemplate','button','_createModelSelectionDropdown','_createModelNameView','Commands\x20are\x20not\x20implemented\x20yet.','6363JESXIq','div','buttonView','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-ai-chat-controls-button','toggleWebSearch','AI_CHAT_COMMANDS','142JdqVmR','set','15aVudWH','locale','createCollection','3220672blTkbE','source','model','AI_CHAT_CAPABILITIES_NO','AI_CHAT_DISABLE_WEB_SEARCH','ck-hidden','content','setReasoning','webSearchActive','clear','_commandsButton','enableModelSelector','_createReasoningButton','tooltip','modelSelectorEnabled','setModel','14476935SQdjMi','ck-ai-chat-controls__model-selection__item-name','span','capabilities','log','AI_CHAT_CAPABILITIES_YES','ck-ai-chat-controls-button--commands','toggleReasoning','reasoningActive','ck-ai-chat-controls__model-name','enabled','_modelNameView','_createCommandsButton','ck-ai-button-tertiary','activeModelId','name','1720452wEzmsV','hidden','_reasoningButton','reasoning','ck-ai-chat-controls__model-selection__item-description','AI_CHAT_ENABLE_WEB_SEARCH','description','_createWebSearchButton','extendTemplate','selectModel','3092fpGero','disableModelSelector','setModelList','listenTo','AI_CHAT_SEARCH_WEB','webSearch','length','menuitemradio','AI_CHAT_DISABLE_REASONING','style','isOn','selector','14yfRuYZ','bind','isEnabled','setWebSearch','addMany','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','12800VEwFLg','text','setTemplate','2157924iosPen','ck-ai-chat-controls__model-selection__item-capabilities','_webSearchButton','ck-button__label','ck-ai-chat-controls__model-selection','_modelSelectionDropdown','label','activeModelName','_getCapabilityParts'];_0x5a08=function(){return _0x470206;};return _0x5a08();}(function(_0x402faa,_0x1589ef){const _0x20947d=_0x436a,_0x4a35a1=_0x402faa();while(!![]){try{const _0x4608af=-parseInt(_0x20947d(0xae))/0x1*(parseInt(_0x20947d(0x7a))/0x2)+parseInt(_0x20947d(0x9e))/0x3+parseInt(_0x20947d(0x8f))/0x4*(parseInt(_0x20947d(0xb0))/0x5)+parseInt(_0x20947d(0xd3))/0x6*(parseInt(_0x20947d(0x86))/0x7)+-parseInt(_0x20947d(0xb3))/0x8+parseInt(_0x20947d(0xa7))/0x9*(-parseInt(_0x20947d(0x8c))/0xa)+-parseInt(_0x20947d(0xc3))/0xb;if(_0x4608af===_0x1589ef)break;else _0x4a35a1['push'](_0x4a35a1['shift']());}catch(_0x4dd279){_0x4a35a1['push'](_0x4a35a1['shift']());}}}(_0x5a08,0xcd30e));import{Collection as _0x4dcca5}from'ckeditor5/src/utils.js';import{IconAI as _0x1dd195,IconBulb as _0x3ab09f,IconWeb as _0x5100f9}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0xe3fe4c,ButtonLabelView as _0x22fece,ButtonView as _0x521325,createDropdown as _0x265075,IconView as _0xe47886,UIModel as _0x138dcf,View as _0x416871}from'ckeditor5/src/ui.js';import{getTranslation as _0x47394c}from'../../../aicore/utils/common-translations.js';function _0x436a(_0x30d6fe,_0x15882a){const _0x5a084a=_0x5a08();return _0x436a=function(_0x436adf,_0x1ebd66){_0x436adf=_0x436adf-0x72;let _0x3aa143=_0x5a084a[_0x436adf];return _0x3aa143;},_0x436a(_0x30d6fe,_0x15882a);}const Ko=_0x349809(0x9b),Xo=_0x349809(0xab),Qo=_0x349809(0xc9),Zo=_0x349809(0xd0),tl=_0x349809(0x93),el=_0x349809(0xc4),il=_0x349809(0x74),sl=_0x349809(0x90),ol='n';export class AIChatPromptCapabilitiesView extends _0x416871{[_0x349809(0x91)];[_0x349809(0x72)];[_0x349809(0xbd)];[_0x349809(0x94)];[_0x349809(0xa1)];[_0x349809(0xce)];constructor(_0x1561ef){const _0x188acb=_0x349809;super(_0x1561ef),this[_0x188acb(0xaf)](_0x188acb(0xbb),!0x1),this[_0x188acb(0xaf)](_0x188acb(0xcb),!0x1),this[_0x188acb(0xaf)](_0x188acb(0x9f),_0x188acb(0x85)),this[_0x188acb(0xaf)](_0x188acb(0xc1),!0x0),this[_0x188acb(0xaf)](_0x188acb(0xd1),null),this[_0x188acb(0xaf)](_0x188acb(0x96),null),this[_0x188acb(0x94)]=this[_0x188acb(0xa4)](),this[_0x188acb(0xce)]=this[_0x188acb(0xa5)](),this[_0x188acb(0x91)]=this[_0x188acb(0x77)](),this[_0x188acb(0x72)]=this[_0x188acb(0xbf)](),this[_0x188acb(0xbd)]=this[_0x188acb(0xcf)](),this[_0x188acb(0x94)][_0x188acb(0xa9)][_0x188acb(0x87)](_0x188acb(0xa0))['to'](this,_0x188acb(0x9f),_0x1477a3=>_0x188acb(0x85)===_0x1477a3),this[_0x188acb(0x94)][_0x188acb(0xa9)][_0x188acb(0x87)](_0x188acb(0xc0))['to'](this,_0x188acb(0xc1),_0x127d0f=>_0x127d0f?this[_0x188acb(0x94)][_0x188acb(0xa9)][_0x188acb(0x95)]:_0x47394c(this[_0x188acb(0xb1)],_0x188acb(0xaa))),this[_0x188acb(0x94)][_0x188acb(0x87)](_0x188acb(0x88))['to'](this,_0x188acb(0xc1),_0x27065a=>_0x27065a),this[_0x188acb(0x91)][_0x188acb(0x87)](_0x188acb(0x84))['to'](this,_0x188acb(0xbb),_0x483c83=>_0x483c83),this[_0x188acb(0x91)][_0x188acb(0x87)](_0x188acb(0xc0))['to'](this,_0x188acb(0xbb),_0x3895f5=>_0x47394c(this[_0x188acb(0xb1)],_0x3895f5?_0x188acb(0xb7):_0x188acb(0x75))),this[_0x188acb(0x72)][_0x188acb(0x87)](_0x188acb(0x84))['to'](this,_0x188acb(0xcb),_0x4ec6fe=>_0x4ec6fe),this[_0x188acb(0x72)][_0x188acb(0x87)](_0x188acb(0xc0))['to'](this,_0x188acb(0xcb),_0x42b5a4=>_0x47394c(this[_0x188acb(0xb1)],_0x42b5a4?_0x188acb(0x82):_0x188acb(0x9c))),this[_0x188acb(0x8e)]({'tag':_0x188acb(0xa8),'attributes':{'class':[Ko]},'children':[this[_0x188acb(0x94)],this[_0x188acb(0xce)],this[_0x188acb(0x91)],this[_0x188acb(0x72)],this[_0x188acb(0xbd)]]}),this[_0x188acb(0xa1)]=new _0x4dcca5(),_0xe3fe4c(this[_0x188acb(0x94)],this[_0x188acb(0xa1)]);}[_0x349809(0x7c)](_0xceca6,_0x378d23){const _0x4c6806=_0x349809;if(_0x378d23)this[_0x4c6806(0xaf)](_0x4c6806(0x9f),_0x4c6806(0xd4));else{const _0x248aad=0x1===_0xceca6[_0x4c6806(0x80)];this[_0x4c6806(0xaf)](_0x4c6806(0x9f),_0x248aad?_0x4c6806(0xd2):_0x4c6806(0x85));}if(this[_0x4c6806(0xa1)][_0x4c6806(0xbc)](),_0xceca6?.[_0x4c6806(0x80)])for(const _0x445268 of _0xceca6){const _0x117020=new _0x138dcf({'label':_0x445268[_0x4c6806(0xd2)],'withText':!0x0,'role':_0x4c6806(0x81),'id':_0x445268['id'],'model':_0x445268});_0x117020[_0x4c6806(0x87)](_0x4c6806(0x84))['to'](this,_0x4c6806(0xd1),_0x4bb354=>_0x4bb354===_0x445268['id']),this[_0x4c6806(0xa1)][_0x4c6806(0x9d)]({'type':_0x4c6806(0xa3),'model':_0x117020,'labelView':new ko(this[_0x4c6806(0xb1)],_0x445268)});}}[_0x349809(0x89)](_0x574de4){const _0x4b7170=_0x349809;this[_0x4b7170(0xaf)](_0x4b7170(0xbb),_0x574de4);}[_0x349809(0xba)](_0x102c4f){const _0x4fac38=_0x349809;this[_0x4fac38(0xaf)](_0x4fac38(0xcb),_0x102c4f);}[_0x349809(0xc2)](_0x2c339b){const _0x4df258=_0x349809;if(!_0x2c339b)return;this[_0x4df258(0xd1)]=_0x2c339b['id'],this[_0x4df258(0x96)]=_0x2c339b[_0x4df258(0xd2)]||_0x2c339b['id'],this[_0x4df258(0x94)][_0x4df258(0xa9)][_0x4df258(0xaf)](_0x4df258(0x95),_0x2c339b[_0x4df258(0xd2)]),this[_0x4df258(0x94)][_0x4df258(0xa9)][_0x4df258(0xaf)](_0x4df258(0xc0),_0x2c339b[_0x4df258(0xd2)]);const _0x3cd96a=_0x2c339b[_0x4df258(0xc6)][_0x4df258(0x7f)]?.[_0x4df258(0xcd)]??!0x1;this[_0x4df258(0xaf)](_0x4df258(0xbb),!0x1),this[_0x4df258(0x91)][_0x4df258(0xaf)](_0x4df258(0x84),!0x1),this[_0x4df258(0x91)][_0x4df258(0xaf)](_0x4df258(0x88),_0x3cd96a),this[_0x4df258(0x91)][_0x4df258(0xaf)](_0x4df258(0xa0),_0x3cd96a);const _0x56d185=_0x2c339b[_0x4df258(0xc6)][_0x4df258(0x73)]?.[_0x4df258(0xcd)]??!0x1;this[_0x4df258(0xaf)](_0x4df258(0xcb),!0x1),this[_0x4df258(0x72)][_0x4df258(0xaf)](_0x4df258(0x84),!0x1),this[_0x4df258(0x72)][_0x4df258(0xaf)](_0x4df258(0x88),_0x56d185),this[_0x4df258(0x72)][_0x4df258(0xaf)](_0x4df258(0xa0),_0x56d185);}[_0x349809(0xbe)](){const _0x29fef3=_0x349809;this[_0x29fef3(0xaf)](_0x29fef3(0xc1),!0x0);}[_0x349809(0x7b)](_0x11f191){const _0x31b4b4=_0x349809;this[_0x31b4b4(0xaf)](_0x31b4b4(0xc1),!0x1),_0x11f191&&this[_0x31b4b4(0xaf)](_0x31b4b4(0x9f),_0x31b4b4(0xd4));}[_0x349809(0x77)](){const _0x2c6b8d=_0x349809,_0x107e62=new _0x521325();return _0x107e62[_0x2c6b8d(0xaf)]({'label':_0x47394c(this[_0x2c6b8d(0xb1)],_0x2c6b8d(0x7e)),'icon':_0x5100f9,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x107e62['on'](_0x2c6b8d(0x99),()=>{const _0x9980cd=_0x2c6b8d;this[_0x9980cd(0x9a)](_0x9980cd(0xac));}),_0x107e62;}[_0x349809(0xbf)](){const _0x4a92ad=_0x349809,_0x4df4ef=new _0x521325();return _0x4df4ef[_0x4a92ad(0xaf)]({'label':_0x47394c(this[_0x4a92ad(0xb1)],_0x4a92ad(0x98)),'icon':_0x3ab09f,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x4df4ef['on'](_0x4a92ad(0x99),()=>{const _0x26c574=_0x4a92ad;this[_0x26c574(0x9a)](_0x26c574(0xca));}),_0x4df4ef;}[_0x349809(0xcf)](){const _0x8c4ad8=_0x349809,_0x5a1d19=new _0x521325();return _0x5a1d19[_0x8c4ad8(0xaf)]({'label':_0x47394c(this[_0x8c4ad8(0xb1)],_0x8c4ad8(0xad)),'icon':_0x1dd195,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x47394c(this[_0x8c4ad8(0xb1)],_0x8c4ad8(0xad)),'tooltipPosition':ol}),_0x5a1d19[_0x8c4ad8(0x78)]({'attributes':{'class':[Qo]}}),_0x5a1d19['on'](_0x8c4ad8(0x99),()=>{const _0x46eaa4=_0x8c4ad8;console[_0x46eaa4(0xc7)](_0x46eaa4(0xa6)),alert(_0x46eaa4(0xa6));}),_0x5a1d19;}[_0x349809(0xa4)](){const _0x59f03d=_0x349809,_0x3f2e9b=_0x265075(this[_0x59f03d(0xb1)]);return _0x3f2e9b[_0x59f03d(0xaf)]({'panelPosition':'ne','class':[tl]}),_0x3f2e9b[_0x59f03d(0xa9)][_0x59f03d(0xaf)]({'label':_0x47394c(this[_0x59f03d(0xb1)],_0x59f03d(0x8b)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x59f03d(0x7d)](_0x3f2e9b,_0x59f03d(0x99),_0x4c1d75=>{const _0x5131d8=_0x59f03d;this[_0x5131d8(0x9a)](_0x5131d8(0x79),_0x4c1d75[_0x5131d8(0xb4)][_0x5131d8(0xb5)]);}),_0x3f2e9b;}[_0x349809(0xa5)](){const _0x2e3426=_0x349809,_0x181ec7=new _o(this[_0x2e3426(0xb1)]);return _0x181ec7[_0x2e3426(0x87)](_0x2e3426(0x8d))['to'](this,_0x2e3426(0x96),_0xd8ec71=>_0xd8ec71??''),_0x181ec7[_0x2e3426(0x87)](_0x2e3426(0xa0))['to'](this,_0x2e3426(0x9f),_0x4d713a=>_0x2e3426(0xd2)===_0x4d713a),_0x181ec7;}}class ko extends _0x22fece{constructor(_0x55eafb,_0x5640a6){const _0x37b508=_0x349809;super();const _0x4f9887=this[_0x37b508(0xa2)],_0x1f1744=this[_0x37b508(0xb2)]();this[_0x37b508(0x8e)]({'tag':_0x37b508(0xa8),'attributes':{'class':['ck',_0x37b508(0x92)],'style':_0x4f9887['to'](_0x37b508(0x83)),'id':_0x4f9887['to']('id')},'children':[{'tag':_0x37b508(0xa8),'attributes':{'class':[el]},'children':[{'text':_0x4f9887['to'](_0x37b508(0x8d))}]},{'tag':_0x37b508(0xa8),'attributes':{'class':[il]},'children':[{'tag':_0x37b508(0xc5),'children':[{'text':_0x5640a6[_0x37b508(0x76)]}]}]},{'tag':_0x37b508(0xa8),'attributes':{'class':[sl]},'children':_0x1f1744}]}),_0x1f1744[_0x37b508(0x8a)](this[_0x37b508(0x97)](_0x55eafb,_0x5100f9,_0x37b508(0x7e),_0x5640a6[_0x37b508(0xc6)][_0x37b508(0x7f)]?.[_0x37b508(0xcd)]??!0x1)),_0x1f1744[_0x37b508(0x8a)](this[_0x37b508(0x97)](_0x55eafb,_0x3ab09f,_0x37b508(0x98),_0x5640a6[_0x37b508(0xc6)][_0x37b508(0x73)]?.[_0x37b508(0xcd)]??!0x1));}[_0x349809(0x97)](_0xc70180,_0x29c5fc,_0x207c24,_0x43c681){const _0x12ac9a=_0x349809,_0x434c76=new _0xe47886();_0x434c76[_0x12ac9a(0xb9)]=_0x29c5fc;const _0x3f3c16=new _0x416871(_0xc70180);_0x3f3c16[_0x12ac9a(0x8e)]({'tag':_0x12ac9a(0xc5),'children':[{'text':_0x47394c(_0xc70180,_0x207c24)+':\x20'}]});const _0x490d28=new _0x416871(_0xc70180);return _0x490d28[_0x12ac9a(0x8e)]({'tag':_0x12ac9a(0xc5),'children':[{'text':_0x47394c(_0xc70180,_0x43c681?_0x12ac9a(0xc8):_0x12ac9a(0xb6))}]}),[_0x434c76,_0x3f3c16,_0x490d28];}}class _o extends _0x416871{constructor(_0x5a505f){const _0x386756=_0x349809;super(_0x5a505f),this[_0x386756(0xaf)](_0x386756(0x8d),void 0x0),this[_0x386756(0xaf)](_0x386756(0xa0),!0x0);const _0x27518b=this[_0x386756(0xa2)];this[_0x386756(0x8e)]({'tag':_0x386756(0xc5),'attributes':{'class':['ck',_0x386756(0xcc),_0x27518b['if'](_0x386756(0xa0),_0x386756(0xb8),_0x5856e6=>!_0x5856e6)]},'children':[{'text':_0x27518b['to'](_0x386756(0x8d))}]});}}
|
|
23
|
+
const _0x4464bd=_0x1dcf;(function(_0x5138af,_0x424833){const _0x257ac6=_0x1dcf,_0x584a55=_0x5138af();while(!![]){try{const _0xf25cd=parseInt(_0x257ac6(0xff))/0x1+parseInt(_0x257ac6(0x107))/0x2*(parseInt(_0x257ac6(0xe0))/0x3)+-parseInt(_0x257ac6(0x115))/0x4+-parseInt(_0x257ac6(0xe2))/0x5+-parseInt(_0x257ac6(0x11d))/0x6*(-parseInt(_0x257ac6(0xf0))/0x7)+-parseInt(_0x257ac6(0x124))/0x8*(-parseInt(_0x257ac6(0xfd))/0x9)+parseInt(_0x257ac6(0x126))/0xa;if(_0xf25cd===_0x424833)break;else _0x584a55['push'](_0x584a55['shift']());}catch(_0x4b4133){_0x584a55['push'](_0x584a55['shift']());}}}(_0x4656,0x4d378));import{Collection as _0x4dab53}from'ckeditor5/src/utils.js';import{IconAI as _0x588186,IconBulb as _0x51537a,IconWeb as _0x5c0f8e}from'@ckeditor/ckeditor5-icons';function _0x1dcf(_0x56d27d,_0x4ab966){const _0x4656c6=_0x4656();return _0x1dcf=function(_0x1dcf85,_0x50aa4a){_0x1dcf85=_0x1dcf85-0xcc;let _0x502667=_0x4656c6[_0x1dcf85];return _0x502667;},_0x1dcf(_0x56d27d,_0x4ab966);}import{addListToDropdown as _0x694c25,ButtonLabelView as _0x47b3f4,ButtonView as _0x5309cf,createDropdown as _0x87c76a,IconView as _0x2fe1d5,UIModel as _0x220e91,View as _0x567add}from'ckeditor5/src/ui.js';import{getTranslation as _0x5660a0}from'../../../aicore/utils/common-translations.js';const Ko=_0x4464bd(0xe3),Xo=_0x4464bd(0x113),Qo=_0x4464bd(0x105),Zo=_0x4464bd(0xeb),tl=_0x4464bd(0x118),el=_0x4464bd(0x12c),il=_0x4464bd(0x121),sl=_0x4464bd(0xf5),ol='n';export class AIChatPromptCapabilitiesView extends _0x567add{[_0x4464bd(0x11f)];[_0x4464bd(0x12b)];[_0x4464bd(0x122)];[_0x4464bd(0xf2)];[_0x4464bd(0x114)];[_0x4464bd(0xdb)];constructor(_0x44eb04){const _0x1dde01=_0x4464bd;super(_0x44eb04),this[_0x1dde01(0xd0)](_0x1dde01(0xf1),!0x1),this[_0x1dde01(0xd0)](_0x1dde01(0x10c),!0x1),this[_0x1dde01(0xd0)](_0x1dde01(0x108),_0x1dde01(0x119)),this[_0x1dde01(0xd0)](_0x1dde01(0x12d),!0x0),this[_0x1dde01(0xd0)](_0x1dde01(0xd5),null),this[_0x1dde01(0xd0)](_0x1dde01(0xdc),null),this[_0x1dde01(0xf2)]=this[_0x1dde01(0x11e)](),this[_0x1dde01(0xdb)]=this[_0x1dde01(0xe8)](),this[_0x1dde01(0x11f)]=this[_0x1dde01(0x120)](),this[_0x1dde01(0x12b)]=this[_0x1dde01(0xd2)](),this[_0x1dde01(0x122)]=this[_0x1dde01(0xee)](),this[_0x1dde01(0xf2)][_0x1dde01(0xd4)][_0x1dde01(0xce)](_0x1dde01(0xd8))['to'](this,_0x1dde01(0x108),_0x43c609=>_0x1dde01(0x119)===_0x43c609),this[_0x1dde01(0xf2)][_0x1dde01(0xd4)][_0x1dde01(0xce)](_0x1dde01(0x111))['to'](this,_0x1dde01(0x12d),_0x1861d4=>_0x1861d4?this[_0x1dde01(0xf2)][_0x1dde01(0xd4)][_0x1dde01(0xe7)]:_0x5660a0(this[_0x1dde01(0x125)],_0x1dde01(0x112))),this[_0x1dde01(0xf2)][_0x1dde01(0xce)](_0x1dde01(0x11b))['to'](this,_0x1dde01(0x12d),_0x500048=>_0x500048),this[_0x1dde01(0x11f)][_0x1dde01(0xce)](_0x1dde01(0xfc))['to'](this,_0x1dde01(0xf1),_0x41b870=>_0x41b870),this[_0x1dde01(0x11f)][_0x1dde01(0xce)](_0x1dde01(0x111))['to'](this,_0x1dde01(0xf1),_0x2504b1=>_0x5660a0(this[_0x1dde01(0x125)],_0x2504b1?_0x1dde01(0x123):_0x1dde01(0x12a))),this[_0x1dde01(0x12b)][_0x1dde01(0xce)](_0x1dde01(0xfc))['to'](this,_0x1dde01(0x10c),_0xc9b639=>_0xc9b639),this[_0x1dde01(0x12b)][_0x1dde01(0xce)](_0x1dde01(0x111))['to'](this,_0x1dde01(0x10c),_0x315b0e=>_0x5660a0(this[_0x1dde01(0x125)],_0x315b0e?_0x1dde01(0x10d):_0x1dde01(0xea))),this[_0x1dde01(0xe6)]({'tag':_0x1dde01(0xf9),'attributes':{'class':[Ko]},'children':[this[_0x1dde01(0xf2)],this[_0x1dde01(0xdb)],this[_0x1dde01(0x11f)],this[_0x1dde01(0x12b)],this[_0x1dde01(0x122)]]}),this[_0x1dde01(0x114)]=new _0x4dab53(),_0x694c25(this[_0x1dde01(0xf2)],this[_0x1dde01(0x114)]);}[_0x4464bd(0x11a)](_0x119be0,_0x50c7e7){const _0x2e338a=_0x4464bd;if(_0x50c7e7)this[_0x2e338a(0xd0)](_0x2e338a(0x108),_0x2e338a(0x128));else{const _0x1e132d=0x1===_0x119be0[_0x2e338a(0xfa)];this[_0x2e338a(0xd0)](_0x2e338a(0x108),_0x1e132d?_0x2e338a(0xe4):_0x2e338a(0x119));}if(this[_0x2e338a(0x114)][_0x2e338a(0xcf)](),_0x119be0?.[_0x2e338a(0xfa)])for(const _0x6baef9 of _0x119be0){const _0x4f0fea=new _0x220e91({'label':_0x6baef9[_0x2e338a(0xe4)],'withText':!0x0,'role':_0x2e338a(0x10e),'id':_0x6baef9['id'],'model':_0x6baef9});_0x4f0fea[_0x2e338a(0xce)](_0x2e338a(0xfc))['to'](this,_0x2e338a(0xd5),_0x2a94cd=>_0x2a94cd===_0x6baef9['id']),this[_0x2e338a(0x114)][_0x2e338a(0xec)]({'type':_0x2e338a(0x103),'model':_0x4f0fea,'labelView':new ko(this[_0x2e338a(0x125)],_0x6baef9)});}}[_0x4464bd(0xfb)](_0x46fc25){const _0x5b7253=_0x4464bd;this[_0x5b7253(0xd0)](_0x5b7253(0xf1),_0x46fc25);}[_0x4464bd(0x10a)](_0x5b6608){const _0x7fda16=_0x4464bd;this[_0x7fda16(0xd0)](_0x7fda16(0x10c),_0x5b6608);}[_0x4464bd(0x101)](_0x489811){const _0x22771e=_0x4464bd;if(!_0x489811)return;this[_0x22771e(0xd5)]=_0x489811['id'],this[_0x22771e(0xdc)]=_0x489811[_0x22771e(0xe4)]||_0x489811['id'],this[_0x22771e(0xf2)][_0x22771e(0xd4)][_0x22771e(0xd0)](_0x22771e(0xe7),_0x489811[_0x22771e(0xe4)]),this[_0x22771e(0xf2)][_0x22771e(0xd4)][_0x22771e(0xd0)](_0x22771e(0x111),_0x489811[_0x22771e(0xe4)]);const _0x19e462=_0x489811[_0x22771e(0x10b)][_0x22771e(0xd3)]?.[_0x22771e(0xed)]??!0x1;this[_0x22771e(0xd0)](_0x22771e(0xf1),!0x1),this[_0x22771e(0x11f)][_0x22771e(0xd0)](_0x22771e(0xfc),!0x1),this[_0x22771e(0x11f)][_0x22771e(0xd0)](_0x22771e(0x11b),_0x19e462),this[_0x22771e(0x11f)][_0x22771e(0xd0)](_0x22771e(0xd8),_0x19e462);const _0x29592c=_0x489811[_0x22771e(0x10b)][_0x22771e(0xd7)]?.[_0x22771e(0xed)]??!0x1;this[_0x22771e(0xd0)](_0x22771e(0x10c),!0x1),this[_0x22771e(0x12b)][_0x22771e(0xd0)](_0x22771e(0xfc),!0x1),this[_0x22771e(0x12b)][_0x22771e(0xd0)](_0x22771e(0x11b),_0x29592c),this[_0x22771e(0x12b)][_0x22771e(0xd0)](_0x22771e(0xd8),_0x29592c);}[_0x4464bd(0xf8)](){const _0x1670d7=_0x4464bd;this[_0x1670d7(0xd0)](_0x1670d7(0x12d),!0x0);}[_0x4464bd(0xf6)](_0x8e67a6){const _0x1219ba=_0x4464bd;this[_0x1219ba(0xd0)](_0x1219ba(0x12d),!0x1),_0x8e67a6&&this[_0x1219ba(0xd0)](_0x1219ba(0x108),_0x1219ba(0x128));}[_0x4464bd(0x120)](){const _0x26cf80=_0x4464bd,_0x1aaa44=new _0x5309cf();return _0x1aaa44[_0x26cf80(0xd0)]({'label':_0x5660a0(this[_0x26cf80(0x125)],_0x26cf80(0xf7)),'icon':_0x5c0f8e,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x1aaa44['on'](_0x26cf80(0xdd),()=>{const _0x4dfa52=_0x26cf80;this[_0x4dfa52(0x104)](_0x4dfa52(0xe1));}),_0x1aaa44;}[_0x4464bd(0xd2)](){const _0x565736=_0x4464bd,_0x3adfeb=new _0x5309cf();return _0x3adfeb[_0x565736(0xd0)]({'label':_0x5660a0(this[_0x565736(0x125)],_0x565736(0x100)),'icon':_0x51537a,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x3adfeb['on'](_0x565736(0xdd),()=>{const _0x27f5d0=_0x565736;this[_0x27f5d0(0x104)](_0x27f5d0(0x109));}),_0x3adfeb;}[_0x4464bd(0xee)](){const _0x2560c7=_0x4464bd,_0x138ab6=new _0x5309cf();return _0x138ab6[_0x2560c7(0xd0)]({'label':_0x5660a0(this[_0x2560c7(0x125)],_0x2560c7(0xda)),'icon':_0x588186,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x5660a0(this[_0x2560c7(0x125)],_0x2560c7(0xda)),'tooltipPosition':ol}),_0x138ab6[_0x2560c7(0xf4)]({'attributes':{'class':[Qo]}}),_0x138ab6['on'](_0x2560c7(0xdd),()=>{const _0x177087=_0x2560c7;console[_0x177087(0x102)](_0x177087(0x110)),alert(_0x177087(0x110));}),_0x138ab6;}[_0x4464bd(0x11e)](){const _0x3b2754=_0x4464bd,_0x4f9ce3=_0x87c76a(this[_0x3b2754(0x125)]);return _0x4f9ce3[_0x3b2754(0xd0)]({'panelPosition':'ne','class':[tl]}),_0x4f9ce3[_0x3b2754(0xd4)][_0x3b2754(0xd0)]({'label':_0x5660a0(this[_0x3b2754(0x125)],_0x3b2754(0x10f)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x3b2754(0xde)](_0x4f9ce3,_0x3b2754(0xdd),_0x204650=>{const _0x5cead2=_0x3b2754;this[_0x5cead2(0x104)](_0x5cead2(0xd6),_0x204650[_0x5cead2(0x116)][_0x5cead2(0x106)]);}),_0x4f9ce3;}[_0x4464bd(0xe8)](){const _0x57c75=_0x4464bd,_0x2f13e4=new _o(this[_0x57c75(0x125)]);return _0x2f13e4[_0x57c75(0xce)](_0x57c75(0xcc))['to'](this,_0x57c75(0xdc),_0x3da4fd=>_0x3da4fd??''),_0x2f13e4[_0x57c75(0xce)](_0x57c75(0xd8))['to'](this,_0x57c75(0x108),_0x330b68=>_0x57c75(0xe4)===_0x330b68),_0x2f13e4;}}class ko extends _0x47b3f4{constructor(_0x388817,_0x568cf6){const _0x1d8408=_0x4464bd;super();const _0x341535=this[_0x1d8408(0xe5)],_0x1c6528=this[_0x1d8408(0xef)]();this[_0x1d8408(0xe6)]({'tag':_0x1d8408(0xf9),'attributes':{'class':['ck',_0x1d8408(0xcd)],'style':_0x341535['to'](_0x1d8408(0xfe)),'id':_0x341535['to']('id')},'children':[{'tag':_0x1d8408(0xf9),'attributes':{'class':[el]},'children':[{'text':_0x341535['to'](_0x1d8408(0xcc))}]},{'tag':_0x1d8408(0xf9),'attributes':{'class':[il]},'children':[{'tag':_0x1d8408(0xd1),'children':[{'text':_0x568cf6[_0x1d8408(0xf3)]}]}]},{'tag':_0x1d8408(0xf9),'attributes':{'class':[sl]},'children':_0x1c6528}]}),_0x1c6528[_0x1d8408(0x129)](this[_0x1d8408(0xe9)](_0x388817,_0x5c0f8e,_0x1d8408(0xf7),_0x568cf6[_0x1d8408(0x10b)][_0x1d8408(0xd3)]?.[_0x1d8408(0xed)]??!0x1)),_0x1c6528[_0x1d8408(0x129)](this[_0x1d8408(0xe9)](_0x388817,_0x51537a,_0x1d8408(0x100),_0x568cf6[_0x1d8408(0x10b)][_0x1d8408(0xd7)]?.[_0x1d8408(0xed)]??!0x1));}[_0x4464bd(0xe9)](_0x1b48fe,_0x80f105,_0x38b556,_0x2b0a5d){const _0x15c9b0=_0x4464bd,_0x249f1b=new _0x2fe1d5();_0x249f1b[_0x15c9b0(0xdf)]=_0x80f105;const _0x4111c6=new _0x567add(_0x1b48fe);_0x4111c6[_0x15c9b0(0xe6)]({'tag':_0x15c9b0(0xd1),'children':[{'text':_0x5660a0(_0x1b48fe,_0x38b556)+':\x20'}]});const _0x1914ab=new _0x567add(_0x1b48fe);return _0x1914ab[_0x15c9b0(0xe6)]({'tag':_0x15c9b0(0xd1),'children':[{'text':_0x5660a0(_0x1b48fe,_0x2b0a5d?_0x15c9b0(0x11c):_0x15c9b0(0x117))}]}),[_0x249f1b,_0x4111c6,_0x1914ab];}}class _o extends _0x567add{constructor(_0x11e438){const _0x2e7b45=_0x4464bd;super(_0x11e438),this[_0x2e7b45(0xd0)](_0x2e7b45(0xcc),void 0x0),this[_0x2e7b45(0xd0)](_0x2e7b45(0xd8),!0x0);const _0x42330b=this[_0x2e7b45(0xe5)];this[_0x2e7b45(0xe6)]({'tag':_0x2e7b45(0xd1),'attributes':{'class':['ck',_0x2e7b45(0x127),_0x42330b['if'](_0x2e7b45(0xd8),_0x2e7b45(0xd9),_0x1425a6=>!_0x1425a6)]},'children':[{'text':_0x42330b['to'](_0x2e7b45(0xcc))}]});}}function _0x4656(){const _0x17dd8c=['setModel','log','button','fire','ck-ai-chat-controls-button--commands','model','254SPUgDF','modelDisplayMode','toggleReasoning','setReasoning','capabilities','reasoningActive','AI_CHAT_DISABLE_REASONING','menuitemradio','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','Commands\x20are\x20not\x20implemented\x20yet.','tooltip','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-ai-chat-controls-button','_modelSelectionDropdownItems','939748tcwQUc','source','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls__model-selection','selector','setModelList','isEnabled','AI_CHAT_CAPABILITIES_YES','60dooNxk','_createModelSelectionDropdown','_webSearchButton','_createWebSearchButton','ck-ai-chat-controls__model-selection__item-description','_commandsButton','AI_CHAT_DISABLE_WEB_SEARCH','32hSSrSG','locale','420570iJaSGb','ck-ai-chat-controls__model-name','hidden','addMany','AI_CHAT_ENABLE_WEB_SEARCH','_reasoningButton','ck-ai-chat-controls__model-selection__item-name','modelSelectorEnabled','text','ck-button__label','bind','clear','set','span','_createReasoningButton','webSearch','buttonView','activeModelId','selectModel','reasoning','isVisible','ck-hidden','AI_CHAT_COMMANDS','_modelNameView','activeModelName','execute','listenTo','content','8331cfUreU','toggleWebSearch','2639465VEQdmr','ck-ai-chat__prompt-capabilities','name','bindTemplate','setTemplate','label','_createModelNameView','_getCapabilityParts','AI_CHAT_ENABLE_REASONING','ck-ai-button-tertiary','add','enabled','_createCommandsButton','createCollection','137627DbkoNk','webSearchActive','_modelSelectionDropdown','description','extendTemplate','ck-ai-chat-controls__model-selection__item-capabilities','disableModelSelector','AI_CHAT_SEARCH_WEB','enableModelSelector','div','length','setWebSearch','isOn','119106qMMfsQ','style','434828snLDuc','AI_CHAT_REASONING'];_0x4656=function(){return _0x17dd8c;};return _0x4656();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x3fd96a=_0x2482;function _0x2482(_0x278092,_0xbd6fc9){const _0x3c465f=_0x3c46();return _0x2482=function(_0x2482a9,_0x1f41e8){_0x2482a9=_0x2482a9-0x8b;let _0xad4ab1=_0x3c465f[_0x2482a9];return _0xad4ab1;},_0x2482(_0x278092,_0xbd6fc9);}(function(_0x2c0799,_0x506909){const _0x167428=_0x2482,_0x1a39f0=_0x2c0799();while(!![]){try{const _0xff6f3e=parseInt(_0x167428(0x97))/0x1+-parseInt(_0x167428(0x8b))/0x2*(parseInt(_0x167428(0xb6))/0x3)+-parseInt(_0x167428(0x96))/0x4*(parseInt(_0x167428(0x91))/0x5)+parseInt(_0x167428(0xad))/0x6+parseInt(_0x167428(0xc8))/0x7+parseInt(_0x167428(0xb5))/0x8*(-parseInt(_0x167428(0xcb))/0x9)+parseInt(_0x167428(0xc5))/0xa*(-parseInt(_0x167428(0x8c))/0xb);if(_0xff6f3e===_0x506909)break;else _0x1a39f0['push'](_0x1a39f0['shift']());}catch(_0x49a581){_0x1a39f0['push'](_0x1a39f0['shift']());}}}(_0x3c46,0xdf32f));import{IconSubmit as _0x6f0778}from'ckeditor5/src/icons.js';import{ButtonView as _0x1a99ab,AutocompleteView as _0x15cb2a,createLabeledTextarea as _0x2b5e9c}from'ckeditor5/src/ui.js';import{global as _0x50d0a4,isVisible as _0x39ceb0,Rect as _0x1e53b,ResizeObserver as _0x259296}from'ckeditor5/src/utils.js';import{getTranslation as _0xf5a833}from'../../../aicore/utils/common-translations.js';function _0x3c46(){const _0x67deef=['ck-ai-chat__prompt-input_highlighted','_queryViewResizeObserver','reset','locale','queryView','classList','uiLanguageDirection','calc(','fire','keystrokes','submit','bind','isEnabled','fieldWrapperChildren','minRows','style','5273844VSZRHx','render','isUploadInProgress','execute','hasError','focusableChildren','placeholder','_addContextButtonView','48saUevf','39XEcPPE','element','width','maxRows','value','set','sendUserMessage','enter','setPlaceholderText','target','window','AI_CHAT_PROMPT_EMPTY_ERROR','rtl','submitButtonView','ck-ai-chat__prompt-input','90CYMVKd','extendTemplate','update','9094981NJtjCB','_setUpAddContextButtonPositioning','focus','214767XrQiAX','requestAnimationFrame','trim','MAX_ROWS','contains','_createSubmitButton','errorText','65218WYJxdB','702053uIxaPm','destroy','remove','left','right','34675EkEYxL','isEmpty','excludeScrollbarsAndBorders','setIsUploadInProgress','add','648HyqvKX','1000938IBHwXJ','MIN_ROWS','fieldView','ck-ai-chat__prompt-submit-button','px\x20-\x20var(--ck-spacing-tiny))','AI_CHAT_LABEL_SUBMIT'];_0x3c46=function(){return _0x67deef;};return _0x3c46();}import{AIChatPromptSuggestionsListView as _0x3d380c}from'./aichatpromptsuggestionslistview.js';import{escape as _0x111349}from'es-toolkit/compat';const uh=_0x3fd96a(0x9d);export class AIChatPromptInputView extends _0x15cb2a{[_0x3fd96a(0xc3)];static [_0x3fd96a(0x98)]=0x1;static [_0x3fd96a(0xce)]=0xc;[_0x3fd96a(0xb4)];[_0x3fd96a(0x9e)];constructor(_0x46f89c,_0xebfd07){const _0x2b8159=_0x3fd96a;super(_0x46f89c,{'queryView':{'label':'','creator':_0x2b5e9c,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x3d380c(_0x46f89c),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x2b8159(0xbb)](_0x2b8159(0x92),!0x0),this[_0x2b8159(0xbb)](_0x2b8159(0xaf),!0x1),this[_0x2b8159(0xb4)]=_0xebfd07,this[_0x2b8159(0x9e)]=null,this[_0x2b8159(0xa1)][_0x2b8159(0x99)][_0x2b8159(0xab)]=AIChatPromptInputView[_0x2b8159(0x98)],this[_0x2b8159(0xa1)][_0x2b8159(0x99)][_0x2b8159(0xb9)]=AIChatPromptInputView[_0x2b8159(0xce)],this[_0x2b8159(0xa1)][_0x2b8159(0xaa)][_0x2b8159(0x95)](this[_0x2b8159(0xb4)]),this[_0x2b8159(0xc9)](),this[_0x2b8159(0xc6)]({'attributes':{'class':['ck',_0x2b8159(0xc4)]}}),this[_0x2b8159(0xc3)]=this[_0x2b8159(0xd0)](),this[_0x2b8159(0xc3)][_0x2b8159(0xa8)](_0x2b8159(0xa9))['to'](this,_0x2b8159(0x92),this,_0x2b8159(0xaf),(_0xc6d123,_0x36ec11)=>!_0xc6d123&&!_0x36ec11),this[_0x2b8159(0xb2)][_0x2b8159(0x95)](this[_0x2b8159(0xc3)]);}[_0x3fd96a(0xae)](){const _0xeb4de7=_0x3fd96a;super[_0xeb4de7(0xae)](),this[_0xeb4de7(0xa1)][_0xeb4de7(0xaa)][_0xeb4de7(0x95)](this[_0xeb4de7(0xc3)]),this[_0xeb4de7(0xa6)][_0xeb4de7(0xbb)](_0xeb4de7(0xbd),(_0x4fee6f,_0x64a60f)=>{const _0x4bbb6a=_0xeb4de7;this[_0x4bbb6a(0xaf)]||this[_0x4bbb6a(0x92)]||_0x4fee6f[_0x4bbb6a(0xbf)]==this[_0x4bbb6a(0xa1)][_0x4bbb6a(0x99)][_0x4bbb6a(0xb7)]&&(this[_0x4bbb6a(0xa7)](),_0x64a60f());}),this[_0xeb4de7(0xa1)][_0xeb4de7(0x99)]['on'](_0xeb4de7(0xc7),()=>{const _0x501949=_0xeb4de7;this[_0x501949(0x92)]=''===this[_0x501949(0xa1)][_0x501949(0x99)][_0x501949(0xb7)][_0x501949(0xba)]?.[_0x501949(0xcd)]();});}[_0x3fd96a(0x8d)](){const _0x1c856a=_0x3fd96a;super[_0x1c856a(0x8d)](),this[_0x1c856a(0x9e)]&&this[_0x1c856a(0x9e)][_0x1c856a(0x8d)]();}[_0x3fd96a(0xa7)](){const _0x2c07fe=_0x3fd96a,_0x3c1b0d=this[_0x2c07fe(0xa1)][_0x2c07fe(0x99)][_0x2c07fe(0xb7)][_0x2c07fe(0xba)]?.[_0x2c07fe(0xcd)]();if(!_0x3c1b0d)return this[_0x2c07fe(0xa1)][_0x2c07fe(0xd1)]=_0xf5a833(this[_0x2c07fe(0xa0)],_0x2c07fe(0xc1)),void(this[_0x2c07fe(0xa1)][_0x2c07fe(0x99)][_0x2c07fe(0xb1)]=!0x0);this[_0x2c07fe(0xa1)][_0x2c07fe(0x99)][_0x2c07fe(0xb1)]=!0x1;const _0x1ee4ca=_0x111349(_0x3c1b0d);this[_0x2c07fe(0xa5)](_0x2c07fe(0xbc),_0x1ee4ca),this[_0x2c07fe(0xa1)][_0x2c07fe(0x99)][_0x2c07fe(0x9f)]();}[_0x3fd96a(0xbe)](_0x57829f){const _0x514885=_0x3fd96a;this[_0x514885(0xa1)][_0x514885(0x99)][_0x514885(0xbb)](_0x514885(0xb3),_0x57829f);}[_0x3fd96a(0xca)](_0x21973b=!0x1){const _0x15de2d=_0x3fd96a;super[_0x15de2d(0xca)](),_0x21973b&&(this[_0x15de2d(0xb7)][_0x15de2d(0xa2)][_0x15de2d(0xcf)](uh)||(this[_0x15de2d(0xb7)][_0x15de2d(0xa2)][_0x15de2d(0x95)](uh),setTimeout(()=>{const _0x1b67e9=_0x15de2d;this[_0x1b67e9(0xb7)][_0x1b67e9(0xa2)][_0x1b67e9(0x8e)](uh);},0x320)));}[_0x3fd96a(0xd0)](){const _0x3d2e9a=_0x3fd96a,_0x281d3b=new _0x1a99ab(this[_0x3d2e9a(0xa0)]);return _0x281d3b[_0x3d2e9a(0xbb)]({'icon':_0x6f0778,'label':_0xf5a833(this[_0x3d2e9a(0xa0)],_0x3d2e9a(0x9c)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x3d2e9a(0x9a),'isEnabled':!0x1}),_0x281d3b['on'](_0x3d2e9a(0xb0),()=>{const _0x56c093=_0x3d2e9a;this[_0x56c093(0xa7)]();}),_0x281d3b;}[_0x3fd96a(0x94)](_0x50bc51){const _0x4ad1a2=_0x3fd96a;this[_0x4ad1a2(0xaf)]=_0x50bc51;}[_0x3fd96a(0xc9)](){const _0x4eecd9=_0x3fd96a,_0x52a4a0=this[_0x4eecd9(0xa0)],_0x10e1a0=()=>{const _0x2436cf=_0x4eecd9;_0x50d0a4[_0x2436cf(0xc0)][_0x2436cf(0xcc)](()=>{const _0x175094=_0x2436cf;if(_0x39ceb0(this[_0x175094(0xb7)])){const _0x2e908f=new _0x1e53b(this[_0x175094(0xa1)][_0x175094(0x99)][_0x175094(0xb7)]),_0x5418af=new _0x1e53b(this[_0x175094(0xb4)][_0x175094(0xb7)]),_0x592289=_0x2e908f[_0x175094(0xb8)],_0x294960=_0x175094(0xc2)===_0x52a4a0[_0x175094(0xa3)]?_0x175094(0x90):_0x175094(0x8f);_0x2e908f[_0x175094(0x93)]();const _0x598f09=_0x592289-_0x2e908f[_0x175094(0xb8)]+0x1;this[_0x175094(0xb4)][_0x175094(0xb7)][_0x175094(0xac)][_0x294960]=_0x175094(0xa4)+(_0x592289-_0x5418af[_0x175094(0xb8)]-_0x598f09)+_0x175094(0x9b);}});};this[_0x4eecd9(0xa1)][_0x4eecd9(0x99)]['on'](_0x4eecd9(0xc7),_0x10e1a0),this['on'](_0x4eecd9(0xae),()=>{const _0x4e0c94=_0x4eecd9;_0x10e1a0(),this[_0x4e0c94(0x9e)]=new _0x259296(this[_0x4e0c94(0xa1)][_0x4e0c94(0x99)][_0x4e0c94(0xb7)],()=>{_0x10e1a0();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1e9b9c=_0x3894;(function(_0x36115f,_0x5e3f35){const _0x10544f=_0x3894,_0x4239fd=_0x36115f();while(!![]){try{const _0x361d87=-parseInt(_0x10544f(0x7b))/0x1+-parseInt(_0x10544f(0x82))/0x2+parseInt(_0x10544f(0x7a))/0x3*(-parseInt(_0x10544f(0x77))/0x4)+-parseInt(_0x10544f(0x7d))/0x5*(-parseInt(_0x10544f(0x76))/0x6)+-parseInt(_0x10544f(0x7c))/0x7*(parseInt(_0x10544f(0x7f))/0x8)+-parseInt(_0x10544f(0x78))/0x9+parseInt(_0x10544f(0x80))/0xa;if(_0x361d87===_0x5e3f35)break;else _0x4239fd['push'](_0x4239fd['shift']());}catch(_0x5b86fa){_0x4239fd['push'](_0x4239fd['shift']());}}}(_0x2256,0x91efd));import{ListView as _0x13b3ae}from'ckeditor5/src/ui.js';function _0x2256(){const _0x2248db=['366359wKMBVT','45350KEKBaP','length','88lvPtnX','32067610DtirFn','filter','2198146iObsZY','354mjAYIh','1740nTKENy','1563831vgjVrD','items','2820myyETL','886695JacpDv'];_0x2256=function(){return _0x2248db;};return _0x2256();}function _0x3894(_0x2b75a8,_0xd02a6c){const _0x225696=_0x2256();return _0x3894=function(_0x389456,_0x4476c2){_0x389456=_0x389456-0x76;let _0x1d969f=_0x225696[_0x389456];return _0x1d969f;},_0x3894(_0x2b75a8,_0xd02a6c);}export class AIChatPromptSuggestionsListView extends _0x13b3ae{[_0x1e9b9c(0x81)](){const _0x2b0e3d=_0x1e9b9c;let _0x115b3e=0x0;for(const _0x152b78 of this[_0x2b0e3d(0x79)])_0x115b3e+=_0x152b78[_0x2b0e3d(0x79)][_0x2b0e3d(0x7e)];return{'resultsCount':_0x115b3e,'totalItemsCount':_0x115b3e};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x49117e=_0x26bb;(function(_0x51aad7,_0x3bd40b){const _0x191e2f=_0x26bb,_0x2742af=_0x51aad7();while(!![]){try{const _0x247c3a=-parseInt(_0x191e2f(0x1f9))/0x1*(-parseInt(_0x191e2f(0x1de))/0x2)+-parseInt(_0x191e2f(0x1f2))/0x3*(-parseInt(_0x191e2f(0x1fa))/0x4)+-parseInt(_0x191e2f(0x1ea))/0x5+-parseInt(_0x191e2f(0x1e1))/0x6+parseInt(_0x191e2f(0x1f0))/0x7*(parseInt(_0x191e2f(0x1e3))/0x8)+-parseInt(_0x191e2f(0x1e8))/0x9+parseInt(_0x191e2f(0x1f7))/0xa*(parseInt(_0x191e2f(0x1ef))/0xb);if(_0x247c3a===_0x3bd40b)break;else _0x2742af['push'](_0x2742af['shift']());}catch(_0x561d83){_0x2742af['push'](_0x2742af['shift']());}}}(_0x5bcb,0x2f029));import{ListView as _0x5e5973}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x46dfe6}from'./aichatresourcelistitemview.js';const uc=_0x49117e(0x1df);function _0x5bcb(){const _0x55f6e2=['ck-ai-chat-resources__list','forEach','1484196wQYxlt','label','651544gOeyKi','resource','filter','replace','add','2305656lKkCEf','setResources','462700TzPtTf','execute','\x5c$&','_source','locale','11MRRnvg','14rSRZZM','updateResourceState','159603gmtvDy','clear','extendTemplate','_handleResourceSelection','test','1683230FiaQvE','fire','203dokhIt','20EzSbVe','trim','useDefaultFiltering','items','addResourceToContext','highlightText','1886FmupqU'];_0x5bcb=function(){return _0x55f6e2;};return _0x5bcb();}function _0x26bb(_0xf88509,_0x54c440){const _0x5bcb1e=_0x5bcb();return _0x26bb=function(_0x26bb96,_0x1cb237){_0x26bb96=_0x26bb96-0x1dc;let _0x167d23=_0x5bcb1e[_0x26bb96];return _0x167d23;},_0x26bb(_0xf88509,_0x54c440);}export class AIChatContextResourcesListView extends _0x5e5973{[_0x49117e(0x1ed)];constructor(_0x279595,_0x409c5c){const _0x208e2d=_0x49117e;super(_0x279595),this[_0x208e2d(0x1ed)]=_0x409c5c,this[_0x208e2d(0x1f4)]({'attributes':{'class':[uc]}});}[_0x49117e(0x1e9)](_0x5a4686,_0x17ae37){const _0x592410=_0x49117e;this[_0x592410(0x1fd)][_0x592410(0x1f3)]();let _0x2fa660=_0x5a4686;if(this[_0x592410(0x1ed)][_0x592410(0x1fc)]&&_0x17ae37&&''!==_0x17ae37[_0x592410(0x1fb)]()){const _0x7c5a03=new RegExp(_0x17ae37[_0x592410(0x1e6)](/[.*+?^${}()|[\]\\]/g,_0x592410(0x1ec)),'gi');_0x2fa660=_0x5a4686[_0x592410(0x1e5)](_0x34b570=>_0x7c5a03[_0x592410(0x1f6)](_0x34b570[_0x592410(0x1e2)]));}for(const _0x27940d of _0x2fa660){const _0x1fd785=new _0x46dfe6(this[_0x592410(0x1ee)],_0x27940d);_0x1fd785['on'](_0x592410(0x1eb),()=>{const _0x42780d=_0x592410;this[_0x42780d(0x1f5)](this[_0x42780d(0x1ed)],_0x27940d);}),this[_0x592410(0x1fd)][_0x592410(0x1e7)](_0x1fd785);}this[_0x592410(0x1ed)][_0x592410(0x1fc)]&&this[_0x592410(0x1dd)](_0x17ae37);}[_0x49117e(0x1dd)](_0x3d5d93){const _0x16f8df=_0x49117e;this[_0x16f8df(0x1ed)][_0x16f8df(0x1fc)]&&this[_0x16f8df(0x1fd)][_0x16f8df(0x1e0)](_0x1905fd=>{const _0x216a6f=_0x16f8df;_0x1905fd[_0x216a6f(0x1dd)](_0x3d5d93);});}[_0x49117e(0x1f1)](_0x10acac,_0x35d42d){const _0x3e5c15=_0x49117e;for(const _0x196269 of this[_0x3e5c15(0x1fd)]){const _0x11ac4d=_0x196269;_0x11ac4d[_0x3e5c15(0x1e4)]['id']===_0x10acac&&_0x11ac4d[_0x3e5c15(0x1f1)](_0x35d42d);}}[_0x49117e(0x1f5)](_0x1efa5c,_0x1ec5b2){const _0x3b3991=_0x49117e;this[_0x3b3991(0x1f8)](_0x3b3991(0x1dc),{'source':_0x1efa5c,'resource':_0x1ec5b2});}}
|