@ckeditor/ckeditor5-ai 47.3.0-alpha.0 → 47.3.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-editor.css +0 -4
- package/dist/index.css +0 -4
- 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/lang/translations/ar.po +9 -9
- package/lang/translations/bg.po +9 -9
- package/lang/translations/bn.po +9 -9
- package/lang/translations/ca.po +9 -9
- package/lang/translations/cs.po +9 -9
- package/lang/translations/da.po +9 -9
- package/lang/translations/de.po +9 -9
- package/lang/translations/el.po +9 -9
- package/lang/translations/es.po +9 -9
- package/lang/translations/et.po +9 -9
- package/lang/translations/fi.po +9 -9
- package/lang/translations/fr.po +9 -9
- package/lang/translations/he.po +9 -9
- package/lang/translations/hi.po +9 -9
- package/lang/translations/hu.po +9 -9
- package/lang/translations/id.po +9 -9
- package/lang/translations/it.po +9 -9
- package/lang/translations/ja.po +9 -9
- package/lang/translations/ko.po +9 -9
- package/lang/translations/lt.po +9 -9
- package/lang/translations/lv.po +9 -9
- package/lang/translations/ms.po +9 -9
- package/lang/translations/nl.po +9 -9
- package/lang/translations/no.po +9 -9
- package/lang/translations/pl.po +9 -9
- package/lang/translations/pt-br.po +9 -9
- package/lang/translations/pt.po +9 -9
- package/lang/translations/ro.po +9 -9
- package/lang/translations/ru.po +9 -9
- package/lang/translations/sk.po +9 -9
- package/lang/translations/sr.po +9 -9
- package/lang/translations/sv.po +9 -9
- package/lang/translations/th.po +9 -9
- package/lang/translations/tr.po +9 -9
- package/lang/translations/uk.po +9 -9
- package/lang/translations/vi.po +9 -9
- package/lang/translations/zh-cn.po +9 -9
- package/lang/translations/zh.po +9 -9
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/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/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/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/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/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/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.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/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
- package/theme/aiquickactions/aiquickactions.css +0 -4
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x165ddf=_0x155d;(function(_0x23c46e,_0x3d9238){const _0x4628b2=_0x155d,_0x3b2b43=_0x23c46e();while(!![]){try{const _0x2cf778=parseInt(_0x4628b2(0x1a0))/0x1*(parseInt(_0x4628b2(0x198))/0x2)+parseInt(_0x4628b2(0x197))/0x3*(-parseInt(_0x4628b2(0x182))/0x4)+parseInt(_0x4628b2(0x18a))/0x5+parseInt(_0x4628b2(0x1a2))/0x6+parseInt(_0x4628b2(0x176))/0x7+parseInt(_0x4628b2(0x166))/0x8+-parseInt(_0x4628b2(0x178))/0x9;if(_0x2cf778===_0x3d9238)break;else _0x3b2b43['push'](_0x3b2b43['shift']());}catch(_0x178f77){_0x3b2b43['push'](_0x3b2b43['shift']());}}}(_0x3eb9,0xb5ee5));function _0x3eb9(){const _0x450448=['isLoading','ck-hidden','div','isModelAvailable','42OFSpAg','387558puNHHL','clearConversationContextItems','ck-ai-chat-controls-model-unavailable-message','_contextPanelView','_createLoaderView','isDisabled','delegate','ck-ai-chat-controls','2Tbiaei','enableModelSelector','4294026yNvZrY','_shouldRestorePromptInputFocus','contextResourcesSearchInputVisibleFrom','disableModelSelector','toggleReasoning','ck-ai-chat-controls-disabled','ck-ai-chat-controls__start-new-chat-button','_createPromptCapabilitiesView','_createPromptInputView','clearConversationContextUI','locale','setPlaceholderText','setModelList','low','setContextItemLoading','selectModel','setIsUploadInProgress','closeSourceResourceBalloon','agent','_createContextPanelView','3126496uiuEqf','startsWith','clearPendingContextUI','bodyCollection','updateResourceState','setConversationContext','removeContextItem','addContextButtonView','reset','execute','set','bindTemplate','addContextItem','setReasoning','_modelUnavailableMessageView','sendUserMessage','5172923RaDGIi','_handlePromptInputFocus','12629484BrEyDR','_createModelUnavailableMessageView','setTemplate','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','form','_loaderView','_promptCapabilitiesView','element','populateSourceResourceBalloon','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','29140pvSCUj','change:isLoading','setWebSearch','clearCurrentContextItems','_displayedModels','setAddContextOptions','abortPromptStream','startConversation','87125ttsREd','toggleWebSearch','setInputPlaceholder','resetMessageInput','focus','find','_promptInputView','setModel','focusPromptInput'];_0x3eb9=function(){return _0x450448;};return _0x3eb9();}import{ButtonView as _0x4dca23,clickOutsideHandler as _0x2bdc73,View as _0x5b0940}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x591a02}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0xd77eea}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x1f29d6,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x267c6a}from'./controls/aichatcontextpanelview.js';function _0x155d(_0x36da8a,_0x545313){const _0x3eb9c4=_0x3eb9();return _0x155d=function(_0x155d2a,_0x262493){_0x155d2a=_0x155d2a-0x162;let _0x17022c=_0x3eb9c4[_0x155d2a];return _0x17022c;},_0x155d(_0x36da8a,_0x545313);}import{AIChatControlsLoaderView as _0x55c98a}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x54f457}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x5b0940{[_0x165ddf(0x186)]=[];[_0x165ddf(0x19b)];[_0x165ddf(0x190)];[_0x165ddf(0x17e)];[_0x165ddf(0x17d)];[_0x165ddf(0x174)];[_0x165ddf(0x1a3)];constructor(_0x4884d0,_0x4b0625){const _0x2c4f45=_0x165ddf;super(_0x4884d0),this[_0x2c4f45(0x19b)]=this[_0x2c4f45(0x165)](_0x4884d0,{'bodyCollection':_0x4b0625[_0x2c4f45(0x169)],'searchInputVisibleFrom':_0x4b0625[_0x2c4f45(0x1a4)]}),this[_0x2c4f45(0x190)]=this[_0x2c4f45(0x1aa)](_0x4884d0),this[_0x2c4f45(0x17e)]=this[_0x2c4f45(0x1a9)](_0x4884d0),this[_0x2c4f45(0x17d)]=this[_0x2c4f45(0x19c)](_0x4884d0),this[_0x2c4f45(0x174)]=this[_0x2c4f45(0x179)](_0x4884d0),this[_0x2c4f45(0x1a3)]=!0x1,this[_0x2c4f45(0x190)][_0x2c4f45(0x19e)](_0x2c4f45(0x175))['to'](this),this[_0x2c4f45(0x17d)][_0x2c4f45(0x19e)](_0x2c4f45(0x188))['to'](this),this[_0x2c4f45(0x17e)][_0x2c4f45(0x19e)](_0x2c4f45(0x18b))['to'](this),this[_0x2c4f45(0x17e)][_0x2c4f45(0x19e)](_0x2c4f45(0x1a6))['to'](this),this[_0x2c4f45(0x17e)][_0x2c4f45(0x19e)](_0x2c4f45(0x1b1))['to'](this),this[_0x2c4f45(0x19b)][_0x2c4f45(0x19e)](..._0x267c6a)['to'](this),this[_0x2c4f45(0x170)](_0x2c4f45(0x196),!0x0),this[_0x2c4f45(0x170)](_0x2c4f45(0x19d),!0x1);const _0x474400=this[_0x2c4f45(0x171)];this[_0x2c4f45(0x17a)]({'tag':_0x2c4f45(0x17c),'attributes':{'class':['ck',_0x2c4f45(0x19f),_0x474400['if'](_0x2c4f45(0x19d),_0x2c4f45(0x1a7))]},'children':[{'tag':_0x2c4f45(0x195),'attributes':{'class':[_0x474400['if'](_0x2c4f45(0x193),_0x2c4f45(0x194),_0x4d1030=>_0x4d1030||!this[_0x2c4f45(0x196)]),_0x474400['if'](_0x2c4f45(0x196),_0x2c4f45(0x194),_0x322cc1=>!_0x322cc1||this[_0x2c4f45(0x193)])]},'children':[this[_0x2c4f45(0x19b)],this[_0x2c4f45(0x190)],this[_0x2c4f45(0x17e)]]},{'tag':_0x2c4f45(0x195),'attributes':{'class':[_0x474400['if'](_0x2c4f45(0x193),_0x2c4f45(0x194),_0x454bfb=>!_0x454bfb)]},'children':[this[_0x2c4f45(0x17d)]]},{'tag':_0x2c4f45(0x195),'attributes':{'class':[_0x474400['if'](_0x2c4f45(0x196),_0x2c4f45(0x194),_0x3afc43=>_0x3afc43)]},'children':[this[_0x2c4f45(0x174)]]}]}),_0x2bdc73({'emitter':this[_0x2c4f45(0x190)],'activator':()=>this[_0x2c4f45(0x193)],'contextElements':()=>[this[_0x2c4f45(0x17f)]],'callback':()=>{const _0x4ed065=_0x2c4f45;this[_0x4ed065(0x1a3)]=!0x1;}}),this['on'](_0x2c4f45(0x183),this[_0x2c4f45(0x177)],{'priority':_0x2c4f45(0x1af)});}[_0x165ddf(0x165)](_0x276c10,_0x14dd48){return new _0x1f29d6(_0x276c10,_0x14dd48);}[_0x165ddf(0x1aa)](_0xb31e34){const _0x41cba4=_0x165ddf;return new _0x591a02(_0xb31e34,this[_0x41cba4(0x19b)][_0x41cba4(0x16d)]);}[_0x165ddf(0x1a9)](_0x50961c){return new _0xd77eea(_0x50961c);}[_0x165ddf(0x19c)](_0x3bfbfc){return new _0x55c98a(_0x3bfbfc);}[_0x165ddf(0x179)](_0x1af10d){const _0x4ef611=_0x165ddf,_0xdb94ca=new hs(_0x1af10d);return _0xdb94ca[_0x4ef611(0x19e)](_0x4ef611(0x189))['to'](this),_0xdb94ca;}[_0x165ddf(0x177)](_0x39a8c8,_0x94a8ea,_0x59b57e){const _0x934dfa=_0x165ddf;_0x59b57e?this[_0x934dfa(0x1a3)]=!0x0:this[_0x934dfa(0x1a3)]&&this[_0x934dfa(0x190)][_0x934dfa(0x18e)]();}[_0x165ddf(0x172)](_0x578324,_0x2eeb12){const _0x52e015=_0x165ddf;this[_0x52e015(0x19b)][_0x52e015(0x172)](_0x578324,_0x2eeb12);}[_0x165ddf(0x16c)](_0x5d4bf8){const _0x26c294=_0x165ddf;this[_0x26c294(0x19b)][_0x26c294(0x16c)](_0x5d4bf8);}[_0x165ddf(0x1b0)](_0x53ef85,_0x59a5a3){const _0x1dc6cf=_0x165ddf;this[_0x1dc6cf(0x19b)][_0x1dc6cf(0x1b0)](_0x53ef85,_0x59a5a3);}[_0x165ddf(0x162)](_0xed90a){const _0x2973a9=_0x165ddf;this[_0x2973a9(0x190)][_0x2973a9(0x162)](_0xed90a);}[_0x165ddf(0x16b)](_0x4d9844){const _0x23c340=_0x165ddf;this[_0x23c340(0x19b)][_0x23c340(0x16b)](_0x4d9844);}[_0x165ddf(0x168)](){const _0x1da049=_0x165ddf;this[_0x1da049(0x19b)][_0x1da049(0x185)]();}[_0x165ddf(0x1ab)](){const _0x5c8ed2=_0x165ddf;this[_0x5c8ed2(0x19b)][_0x5c8ed2(0x199)]();}[_0x165ddf(0x16a)](_0x35651a,_0xdf8417,_0x4bb00c){const _0xabf629=_0x165ddf;this[_0xabf629(0x19b)][_0xabf629(0x16a)](_0x35651a,_0xdf8417,_0x4bb00c);}[_0x165ddf(0x184)](_0x2e4f1f){const _0x1c049e=_0x165ddf;this[_0x1c049e(0x17e)][_0x1c049e(0x184)](_0x2e4f1f);}[_0x165ddf(0x173)](_0x32c2cf){const _0x35906e=_0x165ddf;this[_0x35906e(0x17e)][_0x35906e(0x173)](_0x32c2cf);}[_0x165ddf(0x18d)](){const _0x54e944=_0x165ddf;this[_0x54e944(0x190)][_0x54e944(0x16e)]();}[_0x165ddf(0x187)](_0x1292cc){const _0x9c832c=_0x165ddf;this[_0x9c832c(0x19b)][_0x9c832c(0x187)](_0x1292cc);}[_0x165ddf(0x18c)](_0x16617b){const _0x429de8=_0x165ddf;this[_0x429de8(0x190)][_0x429de8(0x1ad)](_0x16617b);}[_0x165ddf(0x1ae)](_0x59662f,_0x3c85a9){const _0x2f905f=_0x165ddf;this[_0x2f905f(0x186)]=_0x59662f,this[_0x2f905f(0x17e)][_0x2f905f(0x1ae)](_0x59662f,_0x3c85a9);}[_0x165ddf(0x191)](_0x364922){const _0x3565fa=_0x165ddf;(_0x364922?this[_0x3565fa(0x186)][_0x3565fa(0x18f)](_0xd1721=>_0xd1721['id']===_0x364922['id']):null)?(this[_0x3565fa(0x196)]=!0x0,this[_0x3565fa(0x17e)][_0x3565fa(0x191)](_0x364922)):_0x364922?.['id'][_0x3565fa(0x167)](_0x3565fa(0x164))?(this[_0x3565fa(0x196)]=!0x0,this[_0x3565fa(0x17e)][_0x3565fa(0x191)](this[_0x3565fa(0x186)][0x0])):this[_0x3565fa(0x196)]=!0x1;}[_0x165ddf(0x1a1)](){const _0x396b00=_0x165ddf;this[_0x396b00(0x17e)][_0x396b00(0x1a1)]();}[_0x165ddf(0x1a5)](_0x57784f){const _0x45e69a=_0x165ddf;this[_0x45e69a(0x17e)][_0x45e69a(0x1a5)](_0x57784f);}[_0x165ddf(0x180)](_0x36067d,_0x12dab0,_0x3c5239,_0x557656){const _0x4d8472=_0x165ddf;this[_0x4d8472(0x19b)][_0x4d8472(0x180)](_0x36067d,_0x12dab0,_0x3c5239,_0x557656);}[_0x165ddf(0x163)](_0x53aa46){const _0x6245ea=_0x165ddf;this[_0x6245ea(0x19b)][_0x6245ea(0x163)](_0x53aa46);}[_0x165ddf(0x192)](){const _0x36d948=_0x165ddf;this[_0x36d948(0x190)][_0x36d948(0x18e)]();}}class hs extends _0x5b0940{constructor(_0x185130){const _0x5c8043=_0x165ddf;super(_0x185130);const _0x49036b=new _0x4dca23(_0x185130);_0x49036b[_0x5c8043(0x170)]({'label':_0x54f457(this[_0x5c8043(0x1ac)],_0x5c8043(0x181)),'withText':!0x0,'class':[_0x5c8043(0x1a8)],'tooltip':''}),_0x49036b[_0x5c8043(0x19e)](_0x5c8043(0x16f))['to'](this,_0x5c8043(0x189)),this[_0x5c8043(0x17a)]({'tag':_0x5c8043(0x195),'attributes':{'class':['ck',_0x5c8043(0x19a)]},'children':[{'tag':'p','children':[{'text':_0x54f457(this[_0x5c8043(0x1ac)],_0x5c8043(0x17b))+'\x20'},_0x49036b]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x94562f=_0x87a7;(function(_0x19fa60,_0x5231d9){const _0xbe0cf4=_0x87a7,_0xb34322=_0x19fa60();while(!![]){try{const _0x12b27c=-parseInt(_0xbe0cf4(0x1a8))/0x1*(-parseInt(_0xbe0cf4(0x1c2))/0x2)+parseInt(_0xbe0cf4(0x1d3))/0x3*(-parseInt(_0xbe0cf4(0x1bb))/0x4)+-parseInt(_0xbe0cf4(0x1ed))/0x5*(-parseInt(_0xbe0cf4(0x1cb))/0x6)+parseInt(_0xbe0cf4(0x19e))/0x7*(parseInt(_0xbe0cf4(0x1df))/0x8)+parseInt(_0xbe0cf4(0x1cd))/0x9+-parseInt(_0xbe0cf4(0x1be))/0xa+parseInt(_0xbe0cf4(0x1a1))/0xb*(-parseInt(_0xbe0cf4(0x1a0))/0xc);if(_0x12b27c===_0x5231d9)break;else _0xb34322['push'](_0xb34322['shift']());}catch(_0x368a8b){_0xb34322['push'](_0xb34322['shift']());}}}(_0x27f8,0x53011));import{CKEditorError as _0x99fb1,logWarning as _0x37935c,scrollViewportToShowTarget as _0x12d8dc}from'ckeditor5/src/utils.js';function _0x27f8(){const _0x42edf4=['scrollToSuggestion','delegate','clear','updatePartState','ck-ai-chat__loader','addItem','getPartView','ck-ai-chat__feed__items','168184gBnvWg','markAsDone','isPending','_createSkeletonLoader','destroy','_bodyCollection','children','ai-chat-feed-view-item-not-a-reply-item','_createFeedItems','removeItem','ai-chat-feed-view-item-not-found','stop','ck-ai-chat__feed','stopAutoScroll','123655qrvNEC','updateSuggestionItem','loadingMessage','ai-reply','224XDaWAm','_createLoaderChildren','12212340TgkBrW','11VrvivF','bindTemplate','start','extendTemplate','updateSources','find','element','9rctEmK','getItemById','_createFeedLoader','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ai-suggestion-reply','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','locale','setLoadingMessage','setTemplate','isVisible','options','aiFeed','_createTemplateChildren','scrollManager','interaction-header','ck-ai-chat__loader-text','user-message','updateSuggestionPartState','includes','336UxYeij','ck-hidden','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','494160anqsbs','_setupTemplate','createCollection','updateContent','3446cCpFdG','isLoadingSkeletonVisible','isTrackChangesOn','bind','set','map','span','updateReplyItem','div','144DZMrBb','markItemAsDone','2446245PbOCWl','getItemIds','add','toggleLoadingSkeleton','render','ai-chat-feed-view-item-not-a-suggestion-item','5232PDGlIc','remove','startAutoScroll','updateWebSources'];_0x27f8=function(){return _0x42edf4;};return _0x27f8();}import{View as _0x7f999f}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x24893b}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x4353ec}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x26096e}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0xce6e6e}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0xd21227}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0xf13650}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x2f18dc}from'../../aicore/utils/scrollmanager.js';function _0x87a7(_0x4fb2ef,_0x331e9f){const _0x27f8d8=_0x27f8();return _0x87a7=function(_0x87a734,_0x224ae1){_0x87a734=_0x87a734-0x19e;let _0x11338b=_0x27f8d8[_0x87a734];return _0x11338b;},_0x87a7(_0x4fb2ef,_0x331e9f);}import{AISkeletonView as _0x3f9799,SKELETON_DEFINITIONS as _0x3b0ecb}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x107d28}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x7f999f{[_0x94562f(0x1e5)];[_0x94562f(0x1b5)];[_0x94562f(0x1e4)];constructor(_0x5e334e,_0x375072){const _0x512e74=_0x94562f;super(_0x5e334e),this[_0x512e74(0x1e4)]=_0x375072,this[_0x512e74(0x1c6)](_0x512e74(0x1e1),!0x1),this[_0x512e74(0x1c6)](_0x512e74(0x1ef),''),this[_0x512e74(0x1c6)](_0x512e74(0x1c3),!0x1),this[_0x512e74(0x1c6)](_0x512e74(0x1c4),!0x1),this[_0x512e74(0x1e5)]=this[_0x512e74(0x1c0)](),this[_0x512e74(0x1e5)][_0x512e74(0x1d8)](..._0x24893b)['to'](this),this[_0x512e74(0x1bf)]();}[_0x94562f(0x1d1)](){const _0x4f4c93=_0x94562f;super[_0x4f4c93(0x1d1)](),this[_0x4f4c93(0x1b5)]=new _0x2f18dc(this[_0x4f4c93(0x1a7)]);}[_0x94562f(0x1e3)](){const _0x33129f=_0x94562f;super[_0x33129f(0x1e3)](),this[_0x33129f(0x1b5)][_0x33129f(0x1e3)]();}[_0x94562f(0x1d9)](){const _0x3d50ae=_0x94562f;this[_0x3d50ae(0x1e5)][_0x3d50ae(0x1d9)]();}[_0x94562f(0x1dc)](_0x22fa09,_0x170bba){const _0x5733ce=_0x94562f;let _0x56ef3e;_0x5733ce(0x1f0)===_0x22fa09?_0x56ef3e=new _0x26096e(this[_0x5733ce(0x1ae)],_0x170bba):_0x5733ce(0x1ac)===_0x22fa09?(_0x56ef3e=new _0x4353ec(this[_0x5733ce(0x1ae)],_0x170bba),_0x56ef3e[_0x5733ce(0x1c5)](_0x5733ce(0x1c4))['to'](this,_0x5733ce(0x1c4))):_0x56ef3e=_0x5733ce(0x1b8)===_0x22fa09?new _0xce6e6e(this[_0x5733ce(0x1ae)],_0x170bba,this[_0x5733ce(0x1e4)]):_0x5733ce(0x1b6)===_0x22fa09?new _0xf13650(this[_0x5733ce(0x1ae)],_0x170bba):new _0xd21227(_0x170bba),this[_0x5733ce(0x1e5)][_0x5733ce(0x1cf)](_0x56ef3e);}async[_0x94562f(0x1c9)]({id:_0x5d3675,parsedContent:_0x13c9e5,renderingStrategy:_0x28c1d0,abortSignal:_0x5afb47}){const _0x4f7538=_0x94562f,_0x386d12=this[_0x4f7538(0x1a9)](_0x5d3675);if(!(_0x386d12 instanceof _0x26096e))throw new _0x99fb1(_0x4f7538(0x1e6),null,{'itemView':_0x386d12,'id':_0x5d3675,'parsedContent':_0x13c9e5});await _0x386d12[_0x4f7538(0x1c1)]({'parsedContent':_0x13c9e5,'renderingStrategy':_0x28c1d0,'abortSignal':_0x5afb47});}async[_0x94562f(0x1d6)](_0x1b25a7,_0x2f83f7){const _0x110d0f=_0x94562f,_0x5931df=this[_0x110d0f(0x1a9)](_0x1b25a7);if(_0x5931df instanceof _0x4353ec)_0x5931df[_0x110d0f(0x1a5)](_0x2f83f7);else{if(!(_0x5931df instanceof _0x26096e))throw new _0x99fb1(_0x110d0f(0x1bd),null,{'itemView':_0x5931df,'id':_0x1b25a7,'sources':_0x2f83f7});_0x5931df[_0x110d0f(0x1a5)](_0x2f83f7);}}async[_0x94562f(0x1ee)]({id:_0x5ddc3b,parts:_0x2e8122,renderingStrategy:_0x21e082,abortSignal:_0x563079}){const _0x25a039=_0x94562f,_0x50f6a1=this[_0x25a039(0x1a9)](_0x5ddc3b);if(!(_0x50f6a1 instanceof _0x4353ec))throw new _0x99fb1(_0x25a039(0x1d2),null,{'itemView':_0x50f6a1,'id':_0x5ddc3b,'parts':_0x2e8122});await _0x50f6a1[_0x25a039(0x1c1)]({'parts':_0x2e8122,'renderingStrategy':_0x21e082,'abortSignal':_0x563079});}[_0x94562f(0x1b9)]({id:_0x3ac2de,index:_0x3b840a,state:_0xb5793e}){const _0x2286a9=_0x94562f,_0x1ec2d2=this[_0x2286a9(0x1a9)](_0x3ac2de);if(!(_0x1ec2d2 instanceof _0x4353ec))throw new _0x99fb1(_0x2286a9(0x1d2),this,{'id':_0x3ac2de});_0x1ec2d2[_0x2286a9(0x1da)](_0x3b840a,_0xb5793e);}[_0x94562f(0x1cc)](_0x3ede90){const _0x10bae7=_0x94562f;this[_0x10bae7(0x1a9)](_0x3ede90)[_0x10bae7(0x1e0)]();}[_0x94562f(0x1ce)](){const _0x4d32d9=_0x94562f;return this[_0x4d32d9(0x1e5)][_0x4d32d9(0x1c7)](_0x3d49fd=>_0x3d49fd[_0x4d32d9(0x1b2)]['id']);}[_0x94562f(0x1e8)](_0x2e20ae){const _0x302016=_0x94562f;this[_0x302016(0x1e5)][_0x302016(0x1d4)](this[_0x302016(0x1a9)](_0x2e20ae));}[_0x94562f(0x1d7)](_0x264727,_0x2b8aa6){const _0x54b82d=_0x94562f,_0x3136c4=this[_0x54b82d(0x1a9)](_0x264727);if(!(_0x3136c4 instanceof _0x4353ec))return void _0x37935c(_0x54b82d(0x1ad),{'replyId':_0x264727,'partIndex':_0x2b8aa6});const _0x37fdc3=_0x3136c4[_0x54b82d(0x1dd)](_0x2b8aa6);_0x37fdc3?_0x12d8dc({'target':_0x37fdc3[_0x54b82d(0x1a7)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x37935c(_0x54b82d(0x1ab),{'replyId':_0x264727,'partIndex':_0x2b8aa6});}[_0x94562f(0x1bf)](){const _0x120b84=_0x94562f;this[_0x120b84(0x1b0)]({'tag':_0x120b84(0x1ca),'attributes':{'class':['ck',_0x120b84(0x1eb)]},'children':this[_0x120b84(0x1b4)]()});}[_0x94562f(0x1b4)](){const _0x134cf8=_0x94562f,_0x79bbd0=this[_0x134cf8(0x1e2)]();return[this[_0x134cf8(0x1e7)](),_0x79bbd0,this[_0x134cf8(0x1aa)]()];}[_0x94562f(0x1e2)](){const _0x1b2ff1=_0x94562f,_0x1bf3b0=new _0x3f9799(this[_0x1b2ff1(0x1ae)],_0x3b0ecb[_0x1b2ff1(0x1b3)]);return _0x1bf3b0[_0x1b2ff1(0x1a4)]({'attributes':{'class':[this[_0x1b2ff1(0x1a2)]['if'](_0x1b2ff1(0x1c3),_0x1b2ff1(0x1bc),_0x2046af=>!_0x2046af)]}}),_0x1bf3b0;}[_0x94562f(0x1e7)](){const _0x2e1512=_0x94562f,_0x35256d=new _0x7f999f(this[_0x2e1512(0x1ae)]);return _0x35256d[_0x2e1512(0x1b0)]({'tag':_0x2e1512(0x1ca),'attributes':{'class':['ck',_0x2e1512(0x1de),this[_0x2e1512(0x1a2)]['if'](_0x2e1512(0x1c3),_0x2e1512(0x1bc))]},'children':this[_0x2e1512(0x1e5)]}),_0x35256d;}[_0x94562f(0x1aa)](){const _0x1475d4=_0x94562f,_0x1c8021=new _0x7f999f(this[_0x1475d4(0x1ae)]);return _0x1c8021[_0x1475d4(0x1b0)]({'tag':_0x1475d4(0x1ca),'attributes':{'class':['ck',_0x1475d4(0x1db),this[_0x1475d4(0x1a2)]['if'](_0x1475d4(0x1e1),_0x1475d4(0x1bc),_0x594f1a=>!_0x594f1a)]},'children':this[_0x1475d4(0x19f)]()}),_0x1c8021;}[_0x94562f(0x19f)](){const _0x26e4a2=_0x94562f,_0x3a2436=new _0x107d28();return _0x3a2436[_0x26e4a2(0x1b1)]=!0x0,[_0x3a2436,{'tag':_0x26e4a2(0x1c8),'attributes':{'class':['ck',_0x26e4a2(0x1b7)]},'children':[{'text':this[_0x26e4a2(0x1a2)]['to'](_0x26e4a2(0x1ef))}]}];}[_0x94562f(0x1a9)](_0x251211){const _0x1d03a8=_0x94562f,_0x384d07=this[_0x1d03a8(0x1e5)][_0x1d03a8(0x1a6)](_0x2f262c=>_0x2f262c[_0x1d03a8(0x1b2)]['id'][_0x1d03a8(0x1ba)](_0x251211));if(!_0x384d07)throw new _0x99fb1(_0x1d03a8(0x1e9),this,{'id':_0x251211});return _0x384d07;}[_0x94562f(0x1af)](_0x3c4033){const _0x54da1d=_0x94562f;this[_0x54da1d(0x1c6)](_0x54da1d(0x1ef),_0x3c4033);}[_0x94562f(0x1d0)](_0x5bc3af){const _0x21ed4d=_0x94562f;this[_0x21ed4d(0x1c6)](_0x21ed4d(0x1c3),_0x5bc3af);}[_0x94562f(0x1d5)](){const _0x33a7c7=_0x94562f;this[_0x33a7c7(0x1b5)][_0x33a7c7(0x1a3)]();}[_0x94562f(0x1ec)](){const _0x2588f1=_0x94562f;this[_0x2588f1(0x1b5)][_0x2588f1(0x1ea)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2cbcc4=_0x458b;(function(_0x5caa4c,_0x2976a9){const _0x26d43e=_0x458b,_0x2c2ebc=_0x5caa4c();while(!![]){try{const _0x16d686=parseInt(_0x26d43e(0x1af))/0x1*(-parseInt(_0x26d43e(0x1b0))/0x2)+-parseInt(_0x26d43e(0x1c3))/0x3+parseInt(_0x26d43e(0x1ad))/0x4*(-parseInt(_0x26d43e(0x1ba))/0x5)+parseInt(_0x26d43e(0x1bc))/0x6+parseInt(_0x26d43e(0x1b5))/0x7*(parseInt(_0x26d43e(0x1bd))/0x8)+-parseInt(_0x26d43e(0x1c1))/0x9*(-parseInt(_0x26d43e(0x1be))/0xa)+parseInt(_0x26d43e(0x1bf))/0xb;if(_0x16d686===_0x2976a9)break;else _0x2c2ebc['push'](_0x2c2ebc['shift']());}catch(_0x4a5dc4){_0x2c2ebc['push'](_0x2c2ebc['shift']());}}}(_0x15c5,0x86e7b));import{ButtonView as _0x24e89d,FormHeaderView as _0x515900}from'ckeditor5/src/ui.js';function _0x15c5(){const _0x2935ad=['3043998mpiNFY','AI_CHAT_HEADING','2433504JPjuWC','AI_CHAT_LABEL_NEW_CHAT','ck-ai-chat__start-conversation','resizeButton','8nlLdzT','execute','1611HZnGEc','546HuQIwj','startConversation','ck-ai-header\x20ck-ai-header_chat','fire','set','445459evkcYA','locale','_createStartConversationButton','children','isMaximized','2312510xzRgSP','add','3327126fYQceh','8ugMVXK','20ikrgzA','15773384tpEoJH','conversationStartButton'];_0x15c5=function(){return _0x2935ad;};return _0x15c5();}import{IconPlus as _0x17547a,IconAIChat as _0x11d481}from'ckeditor5/src/icons.js';import{getTranslation as _0x5ae85e}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x245ff3}from'../../aicore/utils/createresizebutton.js';function _0x458b(_0x3ff0ae,_0x306517){const _0x15c580=_0x15c5();return _0x458b=function(_0x458b55,_0x4c0ad9){_0x458b55=_0x458b55-0x1ad;let _0x385d45=_0x15c580[_0x458b55];return _0x385d45;},_0x458b(_0x3ff0ae,_0x306517);}export class AIChatHeaderView extends _0x515900{[_0x2cbcc4(0x1c0)];[_0x2cbcc4(0x1c6)];constructor(_0x2615aa,_0x5a0b05){const _0x16d77a=_0x2cbcc4;super(_0x2615aa,{'label':_0x5ae85e(_0x2615aa,_0x16d77a(0x1c2)),'class':_0x16d77a(0x1b2),'icon':_0x11d481}),this[_0x16d77a(0x1b4)](_0x16d77a(0x1b9),!0x1),this[_0x16d77a(0x1c0)]=this[_0x16d77a(0x1b7)](_0x2615aa),this[_0x16d77a(0x1b8)][_0x16d77a(0x1bb)](this[_0x16d77a(0x1c0)]),_0x5a0b05&&(this[_0x16d77a(0x1c6)]=_0x245ff3(_0x2615aa,this),this[_0x16d77a(0x1b8)][_0x16d77a(0x1bb)](this[_0x16d77a(0x1c6)]));}[_0x2cbcc4(0x1b7)](_0x46646b){const _0x5a7060=_0x2cbcc4,_0x120ead=new _0x24e89d(_0x46646b);return _0x120ead[_0x5a7060(0x1b4)]({'label':_0x5ae85e(this[_0x5a7060(0x1b6)],_0x5a7060(0x1c4)),'withText':!0x0,'icon':_0x17547a,'class':_0x5a7060(0x1c5)}),_0x120ead['on'](_0x5a7060(0x1ae),()=>{const _0x18bdfd=_0x5a7060;this[_0x18bdfd(0x1b3)](_0x18bdfd(0x1b1));}),_0x120ead;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x41b99c=_0x4f4f;(function(_0x5cb245,_0x4c3061){var _0x5ea186=_0x4f4f,_0x2d85d6=_0x5cb245();while(!![]){try{var _0x291b68=-parseInt(_0x5ea186(0xec))/0x1+-parseInt(_0x5ea186(0xd8))/0x2+-parseInt(_0x5ea186(0xe4))/0x3+parseInt(_0x5ea186(0xda))/0x4+-parseInt(_0x5ea186(0xe6))/0x5*(parseInt(_0x5ea186(0xd6))/0x6)+parseInt(_0x5ea186(0xee))/0x7+parseInt(_0x5ea186(0xf0))/0x8;if(_0x291b68===_0x4c3061)break;else _0x2d85d6['push'](_0x2d85d6['shift']());}catch(_0x2e44d1){_0x2d85d6['push'](_0x2d85d6['shift']());}}}(_0x14fd,0x20fb7));import{View as _0x4d580f,BodyCollection as _0x318d0b}from'ckeditor5/src/ui.js';function _0x4f4f(_0x4505d2,_0x913079){var _0x14fd69=_0x14fd();return _0x4f4f=function(_0x4f4f3a,_0x3b0c55){_0x4f4f3a=_0x4f4f3a-0xd6;var _0x31c241=_0x14fd69[_0x4f4f3a];return _0x31c241;},_0x4f4f(_0x4505d2,_0x913079);}import{AI_CHAT_UI_EVENT_NAMES as _0x5ad365}from'../utils/eventnames.js';function _0x14fd(){var _0x5d55ba=['attachToDom','23941wQivEE','div','7777dBbHwg','detachFromDom','4032888YyhtXs','204VxlHDo','ck-ai-chat','453760qPxxCL','uiLanguageDirection','660656LDNLhb','chatHeader','contextResourcesSearchInputVisibleFrom','closeSourceResourceBalloon','chatDisclaimer','ck-rounded-corners','_bodyCollection','destroy','showResizeButton','setTemplate','748962tXaFsz','chatFeed','5120adYrQb','chatControls','populateSourceResourceBalloon','ck-reset_all','delegate'];_0x14fd=function(){return _0x5d55ba;};return _0x14fd();}import{AIChatFeedView as _0x182dcf}from'./aichatfeedview.js';import{AIChatControlsView as _0x21e9b5}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x32b3a4}from'./aichatheaderview.js';import{AIDisclaimerView as _0x2899c5}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x4d580f{[_0x41b99c(0xdb)];[_0x41b99c(0xe5)];[_0x41b99c(0xe7)];[_0x41b99c(0xde)];[_0x41b99c(0xe0)];constructor(_0x43aa41,_0x481d7c){var _0x3fddc5=_0x41b99c;super(_0x43aa41),this[_0x3fddc5(0xe0)]=new _0x318d0b(_0x43aa41),this[_0x3fddc5(0xe0)][_0x3fddc5(0xeb)](),this[_0x3fddc5(0xdb)]=new _0x32b3a4(_0x43aa41,_0x481d7c[_0x3fddc5(0xe2)]),this[_0x3fddc5(0xdb)][_0x3fddc5(0xea)](..._0x5ad365)['to'](this),this[_0x3fddc5(0xe5)]=new _0x182dcf(_0x43aa41,this[_0x3fddc5(0xe0)]),this[_0x3fddc5(0xe5)][_0x3fddc5(0xea)](..._0x5ad365)['to'](this),this[_0x3fddc5(0xe7)]=new _0x21e9b5(_0x43aa41,{'bodyCollection':this[_0x3fddc5(0xe0)],'contextResourcesSearchInputVisibleFrom':_0x481d7c[_0x3fddc5(0xdc)]}),this[_0x3fddc5(0xe7)][_0x3fddc5(0xea)](..._0x5ad365)['to'](this),this[_0x3fddc5(0xde)]=new _0x2899c5(_0x43aa41),this[_0x3fddc5(0xe3)]({'tag':_0x3fddc5(0xed),'attributes':{'class':['ck',_0x3fddc5(0xe9),_0x3fddc5(0xd7),_0x3fddc5(0xdf)],'dir':_0x43aa41[_0x3fddc5(0xd9)]},'children':[this[_0x3fddc5(0xdb)],this[_0x3fddc5(0xe5)],this[_0x3fddc5(0xe7)],this[_0x3fddc5(0xde)]]});}[_0x41b99c(0xe8)](_0x2afe07,_0xb970b0,_0x58630e,_0x29ddd5){var _0x4fef85=_0x41b99c;this[_0x4fef85(0xe7)][_0x4fef85(0xe8)](_0x2afe07,_0xb970b0,_0x58630e,_0x29ddd5);}[_0x41b99c(0xdd)](_0x55742f){var _0x544fec=_0x41b99c;this[_0x544fec(0xe7)][_0x544fec(0xdd)](_0x55742f);}[_0x41b99c(0xe1)](){var _0xffbad2=_0x41b99c;this[_0xffbad2(0xe0)][_0xffbad2(0xef)](),super[_0xffbad2(0xe1)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x39e31f=_0x3a07;(function(_0x1b983c,_0x423f7f){const _0x33883b=_0x3a07,_0x1578b9=_0x1b983c();while(!![]){try{const _0x32dade=parseInt(_0x33883b(0x146))/0x1+parseInt(_0x33883b(0x125))/0x2+parseInt(_0x33883b(0x133))/0x3+-parseInt(_0x33883b(0xdb))/0x4+-parseInt(_0x33883b(0x155))/0x5*(-parseInt(_0x33883b(0x11f))/0x6)+parseInt(_0x33883b(0x14c))/0x7*(parseInt(_0x33883b(0x117))/0x8)+-parseInt(_0x33883b(0x109))/0x9*(parseInt(_0x33883b(0x134))/0xa);if(_0x32dade===_0x423f7f)break;else _0x1578b9['push'](_0x1578b9['shift']());}catch(_0xf67ff3){_0x1578b9['push'](_0x1578b9['shift']());}}}(_0x3b7a,0xd1da0));function _0x3a07(_0xfab72a,_0x5ccb13){const _0x3b7a34=_0x3b7a();return _0x3a07=function(_0x3a071d,_0x3276a6){_0x3a071d=_0x3a071d-0xcb;let _0x4ab239=_0x3b7a34[_0x3a071d];return _0x4ab239;},_0x3a07(_0xfab72a,_0x5ccb13);}function _0x3b7a(){const _0x6f059a=['_findTargetContainer','211113hCegXS','_calculateContainerWidth','showMoreButton','add','offsetWidth','set','some','none','0px','517305whAzXZ','getComputedStyle','hideBalloonPanel','-9999px','absolute','_createContainerElements','setTemplate','innerWidth','className','_ancestorsToRestore','_intersectionObserver','innerHTML','isOn','border-box','hidden','remove','documentElement','position','length','forEach','width','_checkAndHandleOverflow','abs','visible','showMoreButtonView','toLowerCase','6401636DvPMSM','_applyCalculationStyles','extendTemplate','opacity','cloneNode','calculationContainer','_applyOverflowResults','zIndex','overflowChips','_parentView','_restoreAncestorVisibility','_renderChipsAndCountRows','createElement','cssClasses','reorganizeChips','_makeAncestorsVisible','overflowContainer','boxSizing','_targetContainer','block\x20!important','_visibleChips','isConnected','tagName','filter','isVisible','_handleShowMoreButtonClick','display','_containerElement','300px','left','body','appendChild','controlsButton','_isContainerVisible','div','_overflowChips','rowDetectionTolerance','_updateBalloonContent','_createCalculationContainer','_createShowMoreButtonView','auto','observe','disableAnimationOnEnter','push','showMoreLabelPrefix','_calculateOverflowInContainer','1297323akiMFz','_createMockButton','top','_showMoreBalloonPanelView','show','getBoundingClientRect','pointerEvents','style','_bodyCollection','.ck-ai-chat','_repinBalloonPanel','innerHeight','visible\x20!important','_updateOverflowUI','360piyZec','includes','maxVisibleRows','element','children','content','clear','_pendingCalculation','30uvjvDh','disconnect','_createShowMoreButton','pop','classList','clientWidth','3008982uoHGvQ','button','_locale','from','undefined','showMoreBalloon','showBalloonPanel','50px','visibility','pin','height','_config','slice','right','2362209AhrKhX','150XLIaZc','bottom','render','execute','parentElement','_showMoreButtonView','_testButtonFit','_setupVisibilityObserver','+\x201','_createShowMoreBalloonPanelView','label','_updateShowMoreButtonVisibility','destroy','isIntersecting','_distributeChips','clientHeight','hide','querySelector','455812yYnKZt','textContent','block','ck-calculation-container','setContainerElement'];_0x3b7a=function(){return _0x6f059a;};return _0x3b7a();}import{View as _0x440ea1,BalloonPanelView as _0x3c96a0,ButtonView as _0x17f2dd,clickOutsideHandler as _0x5d6ec0}from'ckeditor5/src/ui.js';import{Collection as _0x262bbc}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x39e31f(0xf7);export class AIChatChipsOverflowManager{[_0x39e31f(0x127)];[_0x39e31f(0x130)];[_0x39e31f(0xef)];[_0x39e31f(0xfe)];[_0x39e31f(0x139)]=null;[_0x39e31f(0x10c)]=null;[_0x39e31f(0xf6)]=null;[_0x39e31f(0x111)];[_0x39e31f(0xe4)]=null;[_0x39e31f(0xcb)]=null;[_0x39e31f(0x11e)]=!0x1;constructor(_0x1974a8,_0x1c9715,_0x4a52c5,_0x3cd3b0,_0x5b6bd1){const _0x33753a=_0x39e31f;this[_0x33753a(0x127)]=_0x1974a8,this[_0x33753a(0xef)]=_0x1c9715,this[_0x33753a(0x130)]={...hn,..._0x4a52c5,'cssClasses':{'controlsButton':'','calculationContainer':_0x33753a(0x149),..._0x4a52c5[_0x33753a(0xe8)]}},this[_0x33753a(0xfe)]=new _0x262bbc(),this[_0x33753a(0x111)]=_0x3cd3b0,this[_0x33753a(0xe4)]=_0x5b6bd1||null;}[_0x39e31f(0x14a)](_0x2daba0){const _0x4660f5=_0x39e31f;this[_0x4660f5(0xcb)]&&(this[_0x4660f5(0xcb)][_0x4660f5(0x120)](),this[_0x4660f5(0xcb)]=null),this[_0x4660f5(0xf6)]=_0x2daba0,this[_0x4660f5(0x13b)]();}get[_0x39e31f(0xd9)](){const _0x1dd563=_0x39e31f;return this[_0x1dd563(0x139)];}get[_0x39e31f(0xe3)](){const _0x396b73=_0x39e31f;return this[_0x396b73(0xfe)];}[_0x39e31f(0xe9)](){requestAnimationFrame(()=>{const _0x24f3cf=_0x3a07;this[_0x24f3cf(0xd6)]();});}[_0x39e31f(0x12b)](){const _0x5ba62d=_0x39e31f;this[_0x5ba62d(0x139)]&&this[_0x5ba62d(0x10c)]&&(this[_0x5ba62d(0x100)](),this[_0x5ba62d(0x139)][_0x5ba62d(0xcd)]=!0x0,this[_0x5ba62d(0x10c)][_0x5ba62d(0x10d)](),this[_0x5ba62d(0x10c)][_0x5ba62d(0x12e)]({'target':this[_0x5ba62d(0x139)][_0x5ba62d(0x11a)],'limiter':document[_0x5ba62d(0x145)](_0x5ba62d(0x112))}));}[_0x39e31f(0x157)](){const _0x4aee46=_0x39e31f;this[_0x4aee46(0x139)]&&this[_0x4aee46(0x10c)]&&(this[_0x4aee46(0x139)][_0x4aee46(0xcd)]=!0x1,this[_0x4aee46(0x10c)][_0x4aee46(0x144)]());}[_0x39e31f(0x11d)](){const _0x5b5557=_0x39e31f;this[_0x5b5557(0xfe)][_0x5b5557(0x11d)](),this[_0x5b5557(0x157)](),this[_0x5b5557(0x13f)](),this[_0x5b5557(0x139)]&&(this[_0x5b5557(0x139)][_0x5b5557(0x13e)]=''),this[_0x5b5557(0x10c)]&&this[_0x5b5557(0x10c)][_0x5b5557(0x11c)][_0x5b5557(0x11d)]();}[_0x39e31f(0x140)](){const _0x5c2255=_0x39e31f;this[_0x5c2255(0xcb)]&&(this[_0x5c2255(0xcb)][_0x5c2255(0x120)](),this[_0x5c2255(0xcb)]=null),this[_0x5c2255(0x139)]&&(this[_0x5c2255(0x139)][_0x5c2255(0x140)](),this[_0x5c2255(0x139)]=null),this[_0x5c2255(0x10c)]&&(this[_0x5c2255(0x10c)][_0x5c2255(0x140)](),this[_0x5c2255(0x10c)]=null);}[_0x39e31f(0xd6)](){const _0x15b37d=_0x39e31f;if(!this[_0x15b37d(0xf6)])return;if(!this[_0x15b37d(0xfc)]())return void(this[_0x15b37d(0x11e)]=!0x0);this[_0x15b37d(0x11e)]=!0x1;const _0x2c1e00=[...this[_0x15b37d(0xef)],...this[_0x15b37d(0xfe)]],_0x184412=this[_0x15b37d(0x101)](),_0x90425a=this[_0x15b37d(0x108)](_0x184412,_0x2c1e00),_0x14eadb=_0x184412[_0x15b37d(0x15e)];_0x14eadb&&this[_0x15b37d(0xe5)](_0x14eadb),_0x184412[_0x15b37d(0xd0)](),this[_0x15b37d(0xe1)](_0x2c1e00,_0x90425a);}[_0x39e31f(0x121)](){const _0x21f613=_0x39e31f;this[_0x21f613(0x139)]=this[_0x21f613(0x102)](),this[_0x21f613(0x10c)]=this[_0x21f613(0x13d)](),this[_0x21f613(0x139)][_0x21f613(0x136)](),this[_0x21f613(0xf6)][_0x21f613(0xfa)](this[_0x21f613(0x139)][_0x21f613(0x11a)]),this[_0x21f613(0x139)]['on'](_0x21f613(0x137),()=>{const _0x4ce022=_0x21f613;this[_0x4ce022(0xf4)]();}),_0x5d6ec0({'emitter':this[_0x21f613(0x10c)],'contextElements':[this[_0x21f613(0x10c)][_0x21f613(0x11a)],this[_0x21f613(0x139)][_0x21f613(0x11a)]],'callback':()=>this[_0x21f613(0x157)](),'activator':()=>this[_0x21f613(0x139)][_0x21f613(0xcd)]});}[_0x39e31f(0x102)](){const _0x4d20d0=_0x39e31f,_0x105730=new _0x17f2dd(this[_0x4d20d0(0x127)]);_0x105730[_0x4d20d0(0x151)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x12e03b=[this[_0x4d20d0(0x130)][_0x4d20d0(0xe8)][_0x4d20d0(0x14e)]];return this[_0x4d20d0(0x130)][_0x4d20d0(0xe8)][_0x4d20d0(0xfb)]&&_0x12e03b[_0x4d20d0(0x106)](this[_0x4d20d0(0x130)][_0x4d20d0(0xe8)][_0x4d20d0(0xfb)]),_0x105730[_0x4d20d0(0xdd)]({'attributes':{'class':_0x12e03b}}),_0x105730;}[_0x39e31f(0x13d)](){const _0x20f17d=_0x39e31f,_0x265b89=new _0x3c96a0(this[_0x20f17d(0x127)]);return _0x265b89[_0x20f17d(0xdd)]({'attributes':{'class':this[_0x20f17d(0x130)][_0x20f17d(0xe8)][_0x20f17d(0x12a)]}}),this[_0x20f17d(0x111)][_0x20f17d(0x14f)](_0x265b89),_0x265b89;}[_0x39e31f(0x100)](){const _0x31aa3a=_0x39e31f;if(this[_0x31aa3a(0x10c)]&&(this[_0x31aa3a(0x10c)][_0x31aa3a(0x11c)][_0x31aa3a(0x11d)](),this[_0x31aa3a(0xfe)][_0x31aa3a(0xd3)]>0x0)){this[_0x31aa3a(0xfe)][_0x31aa3a(0xd4)](_0x5be7a8=>{const _0x494dd5=_0x31aa3a;_0x5be7a8[_0x494dd5(0x105)]();});const _0x23d2cf=new _0x440ea1(this[_0x31aa3a(0x127)]);_0x23d2cf[_0x31aa3a(0x15b)]({'tag':_0x31aa3a(0xfd),'attributes':{'class':this[_0x31aa3a(0x130)][_0x31aa3a(0xe8)][_0x31aa3a(0xeb)]},'children':this[_0x31aa3a(0xfe)]}),this[_0x31aa3a(0x10c)][_0x31aa3a(0x11c)][_0x31aa3a(0x14f)](_0x23d2cf);}}[_0x39e31f(0xf4)](){const _0x339f1c=_0x39e31f;this[_0x339f1c(0x139)][_0x339f1c(0xcd)]?this[_0x339f1c(0x157)]():this[_0x339f1c(0x12b)]();}[_0x39e31f(0x13f)](){const _0x1fc947=_0x39e31f,_0x49548b=this[_0x1fc947(0xfe)][_0x1fc947(0xd3)]>0x0;this[_0x1fc947(0x139)]?.[_0x1fc947(0x11a)]&&(this[_0x1fc947(0x139)][_0x1fc947(0x11a)][_0x1fc947(0x110)][_0x1fc947(0xf5)]=_0x49548b?'':_0x1fc947(0x153));}[_0x39e31f(0x113)](){const _0xcc0844=_0x39e31f;this[_0xcc0844(0x139)]?.[_0xcc0844(0xcd)]&&this[_0xcc0844(0x10c)]?.[_0xcc0844(0xf3)]&&this[_0xcc0844(0x139)][_0xcc0844(0x11a)]&&this[_0xcc0844(0x10c)][_0xcc0844(0x12e)]({'target':this[_0xcc0844(0x139)][_0xcc0844(0x11a)],'limiter':document[_0xcc0844(0x145)](_0xcc0844(0x112))});}[_0x39e31f(0x14b)](_0x2f6822){const _0x312025=_0x39e31f,_0x548676=this[_0x312025(0xf6)]?.[_0x312025(0xf1)][_0x312025(0xda)]()||_0x312025(0xfd),_0x3d5f4f=this[_0x312025(0xf6)]?.[_0x312025(0x123)];if(_0x3d5f4f){const _0x2fa498=_0x3d5f4f[0x0]||'',_0x55fe58=_0x2f6822[_0x312025(0x145)]('.'+_0x2fa498),_0x849f3d=_0x2f6822[_0x312025(0x145)](_0x548676);return _0x55fe58||_0x849f3d||_0x2f6822;}return _0x2f6822[_0x312025(0x145)](_0x548676)||_0x2f6822;}[_0x39e31f(0x14d)](){const _0x5650ac=_0x39e31f,_0x1b7f64=this[_0x5650ac(0xe4)]?.[_0x5650ac(0x11a)]||this[_0x5650ac(0xf6)];if(!_0x1b7f64)return an;const _0x1094c0=window[_0x5650ac(0x156)](_0x1b7f64)[_0x5650ac(0xd5)];if(_0x5650ac(0x103)===_0x1094c0||_0x5650ac(0x154)===_0x1094c0||!_0x1094c0){const _0x1e8568=_0x1b7f64[_0x5650ac(0x138)];if(_0x1e8568){const _0x44659c=window[_0x5650ac(0x156)](_0x1e8568);return _0x5650ac(0x103)!==_0x44659c[_0x5650ac(0xd5)]?_0x44659c[_0x5650ac(0xd5)]:an;}return an;}return _0x1094c0;}[_0x39e31f(0xdc)](_0x3a0777,_0x227ab3){const _0x3b6c8e=_0x39e31f;this[_0x3b6c8e(0x130)][_0x3b6c8e(0xe8)][_0x3b6c8e(0xe0)]&&_0x3a0777[_0x3b6c8e(0x123)][_0x3b6c8e(0x14f)](this[_0x3b6c8e(0x130)][_0x3b6c8e(0xe8)][_0x3b6c8e(0xe0)]),_0x3a0777[_0x3b6c8e(0x110)][_0x3b6c8e(0xd5)]=_0x227ab3,_0x3a0777[_0x3b6c8e(0x110)][_0x3b6c8e(0xd2)]=_0x3b6c8e(0x159),_0x3a0777[_0x3b6c8e(0x110)][_0x3b6c8e(0x10b)]=_0x3b6c8e(0x158),_0x3a0777[_0x3b6c8e(0x110)][_0x3b6c8e(0xf8)]=_0x3b6c8e(0x158),_0x3a0777[_0x3b6c8e(0x110)][_0x3b6c8e(0xde)]='0',_0x3a0777[_0x3b6c8e(0x110)][_0x3b6c8e(0x10f)]=_0x3b6c8e(0x153),_0x3a0777[_0x3b6c8e(0x110)][_0x3b6c8e(0xe2)]='-1',_0x3a0777[_0x3b6c8e(0x110)][_0x3b6c8e(0x12d)]=_0x3b6c8e(0x115),_0x3a0777[_0x3b6c8e(0x110)][_0x3b6c8e(0xf5)]=_0x3b6c8e(0xee),_0x3a0777[_0x3b6c8e(0x110)][_0x3b6c8e(0xec)]=_0x3b6c8e(0xce);}[_0x39e31f(0xe5)](_0x4fd08f){const _0x34780e=_0x39e31f;_0x4fd08f[_0x34780e(0xd4)](({element:_0x1461e1,originalDisplay:_0x394851,originalVisibility:_0xbaac1b})=>{const _0x5bac5d=_0x34780e;_0x1461e1[_0x5bac5d(0x110)][_0x5bac5d(0xf5)]=_0x394851,_0x1461e1[_0x5bac5d(0x110)][_0x5bac5d(0x12d)]=_0xbaac1b;});}[_0x39e31f(0xea)](_0x50fb88){const _0x5b6d34=_0x39e31f,_0x45c7cc=[];let _0x11f452=_0x50fb88;for(;_0x11f452&&_0x11f452!==document[_0x5b6d34(0xf9)];){const _0x49f45c=window[_0x5b6d34(0x156)](_0x11f452);_0x5b6d34(0x153)!==_0x49f45c[_0x5b6d34(0xf5)]&&_0x5b6d34(0xcf)!==_0x49f45c[_0x5b6d34(0x12d)]||(_0x45c7cc[_0x5b6d34(0x106)]({'element':_0x11f452,'originalDisplay':_0x11f452[_0x5b6d34(0x110)][_0x5b6d34(0xf5)],'originalVisibility':_0x11f452[_0x5b6d34(0x110)][_0x5b6d34(0x12d)]}),_0x11f452[_0x5b6d34(0x110)][_0x5b6d34(0xf5)]=_0x5b6d34(0x148),_0x11f452[_0x5b6d34(0x110)][_0x5b6d34(0x12d)]=_0x5b6d34(0xd8)),_0x11f452=_0x11f452[_0x5b6d34(0x138)];}return _0x45c7cc;}[_0x39e31f(0x15a)](){const _0x385093=_0x39e31f;let _0x34ce76,_0x2f91bc;return this[_0x385093(0xe4)]?.[_0x385093(0x11a)]?(_0x34ce76=this[_0x385093(0xe4)][_0x385093(0x11a)][_0x385093(0xdf)](!0x0),_0x2f91bc=this[_0x385093(0x14b)](_0x34ce76)):(_0x34ce76=document[_0x385093(0xe7)](_0x385093(0xfd)),_0x2f91bc=_0x34ce76),{'calculationContainer':_0x34ce76,'targetContainer':_0x2f91bc};}[_0x39e31f(0x101)](){const _0x346350=_0x39e31f,{calculationContainer:_0x432b2e,targetContainer:_0x52b8f6}=this[_0x346350(0x15a)](),_0x36cacb=this[_0x346350(0x14d)]();this[_0x346350(0xdc)](_0x432b2e,_0x36cacb);const _0x300906=this[_0x346350(0xe4)]?.[_0x346350(0x11a)]||this[_0x346350(0xf6)],_0x566093=_0x300906?.[_0x346350(0x138)];_0x566093?_0x566093[_0x346350(0xfa)](_0x432b2e):document[_0x346350(0xf9)][_0x346350(0xfa)](_0x432b2e),_0x432b2e[_0x346350(0xed)]=_0x52b8f6;const _0x297d60=this[_0x346350(0xea)](_0x566093||null);return _0x432b2e[_0x346350(0x150)],_0x432b2e[_0x346350(0x15e)]=_0x297d60,_0x432b2e;}[_0x39e31f(0x108)](_0x486c8f,_0x4667d7){const _0x5a76c4=_0x39e31f,_0x4c8497=_0x486c8f[_0x5a76c4(0xed)]||_0x486c8f,_0x32fbff=[],{rowCount:_0x1c1b63}=this[_0x5a76c4(0xe6)](_0x4c8497,_0x4667d7);if(_0x1c1b63<=this[_0x5a76c4(0x130)][_0x5a76c4(0x119)])return _0x32fbff;const _0x543099=_0x4667d7[_0x5a76c4(0x131)]();for(;_0x543099[_0x5a76c4(0xd3)]>0x0;){if(this[_0x5a76c4(0x13a)](_0x486c8f,_0x4c8497,_0x543099)){const _0x339114=_0x4667d7[_0x5a76c4(0xf2)](_0x5b39db=>!_0x543099[_0x5a76c4(0x118)](_0x5b39db));_0x32fbff[_0x5a76c4(0x106)](..._0x339114);break;}if(!_0x543099[_0x5a76c4(0x122)]())break;}return _0x32fbff;}[_0x39e31f(0xe6)](_0x34bf59,_0x7e5485){const _0x349907=_0x39e31f;_0x34bf59[_0x349907(0xcc)]='',_0x7e5485[_0x349907(0xd4)](_0x2baffe=>{const _0x2e7fb6=_0x349907;if(_0x2baffe[_0x2e7fb6(0x11a)]){const _0x53b559=_0x2baffe[_0x2e7fb6(0x11a)][_0x2e7fb6(0xdf)](!0x0);_0x34bf59[_0x2e7fb6(0xfa)](_0x53b559);}}),_0x34bf59[_0x349907(0x150)];const _0x1896d0=_0x34bf59[_0x349907(0x11b)],_0x38c086=[];return Array[_0x349907(0x128)](_0x1896d0)[_0x349907(0xd4)](_0x3dae0c=>{const _0x547a3e=_0x349907,_0x2583d3=_0x3dae0c[_0x547a3e(0x10e)]()[_0x547a3e(0x10b)];_0x38c086[_0x547a3e(0x152)](_0x3e8374=>Math[_0x547a3e(0xd7)](_0x3e8374-_0x2583d3)<this[_0x547a3e(0x130)][_0x547a3e(0xff)])||_0x38c086[_0x547a3e(0x106)](_0x2583d3);}),{'rowCount':_0x38c086[_0x349907(0xd3)]};}[_0x39e31f(0x10a)](){const _0x5497fe=_0x39e31f,_0x5e56f1=document[_0x5497fe(0xe7)](_0x5497fe(0x126));return _0x5e56f1[_0x5497fe(0x15d)]=this[_0x5497fe(0x130)][_0x5497fe(0xe8)][_0x5497fe(0x14e)],this[_0x5497fe(0x130)][_0x5497fe(0xe8)][_0x5497fe(0xfb)]&&_0x5e56f1[_0x5497fe(0x123)][_0x5497fe(0x14f)](this[_0x5497fe(0x130)][_0x5497fe(0xe8)][_0x5497fe(0xfb)]),_0x5e56f1[_0x5497fe(0x147)]=_0x5497fe(0x13c),_0x5e56f1;}[_0x39e31f(0x13a)](_0x2fddb4,_0x467d74,_0x4068c8){const _0x5a851a=_0x39e31f;this[_0x5a851a(0xe6)](_0x467d74,_0x4068c8);const _0x1fa676=this[_0x5a851a(0x10a)]();_0x2fddb4[_0x5a851a(0xfa)](_0x1fa676),_0x2fddb4[_0x5a851a(0x150)];const _0x1b0bca=[..._0x467d74[_0x5a851a(0x11b)],_0x1fa676],_0x5bd444=[];_0x1b0bca[_0x5a851a(0xd4)](_0x194d06=>{const _0x3b9303=_0x5a851a,_0x302bd7=_0x194d06[_0x3b9303(0x10e)]()[_0x3b9303(0x10b)];_0x5bd444[_0x3b9303(0x152)](_0x57b7a=>Math[_0x3b9303(0xd7)](_0x57b7a-_0x302bd7)<this[_0x3b9303(0x130)][_0x3b9303(0xff)])||_0x5bd444[_0x3b9303(0x106)](_0x302bd7);});const _0xab4ffd=_0x5bd444[_0x5a851a(0xd3)];return _0x1fa676[_0x5a851a(0xd0)](),_0xab4ffd<=this[_0x5a851a(0x130)][_0x5a851a(0x119)];}[_0x39e31f(0x142)](_0x3d5446,_0x281564){const _0xcb7409=_0x39e31f;this[_0xcb7409(0xef)][_0xcb7409(0x11d)](),this[_0xcb7409(0xfe)][_0xcb7409(0x11d)](),_0x3d5446[_0xcb7409(0xd4)](_0x389957=>{const _0x535410=_0xcb7409;_0x281564[_0x535410(0x118)](_0x389957)?this[_0x535410(0xfe)][_0x535410(0x14f)](_0x389957):this[_0x535410(0xef)][_0x535410(0x14f)](_0x389957);});}[_0x39e31f(0x116)](_0x18632d){const _0x252568=_0x39e31f;if(_0x18632d>0x0&&!this[_0x252568(0x139)]&&this[_0x252568(0x121)](),_0x18632d>0x0&&this[_0x252568(0x139)]){const _0x5a1996=''+this[_0x252568(0x130)][_0x252568(0x107)]+(_0x18632d<0x63?_0x18632d:'99');this[_0x252568(0x139)][_0x252568(0x13e)]=_0x5a1996;}this[_0x252568(0x100)](),this[_0x252568(0x13f)](),this[_0x252568(0x113)]();}[_0x39e31f(0xe1)](_0x5583a3,_0x426a36){const _0xb35143=_0x39e31f;this[_0xb35143(0x142)](_0x5583a3,_0x426a36),this[_0xb35143(0x116)](_0x426a36[_0xb35143(0xd3)]);}[_0x39e31f(0x13b)](){const _0xf46f7=_0x39e31f;this[_0xf46f7(0xf6)]&&_0xf46f7(0x129)!=typeof IntersectionObserver&&(this[_0xf46f7(0xcb)]=new IntersectionObserver(_0x1b1a21=>{const _0x21cd9e=_0xf46f7;_0x1b1a21[0x0][_0x21cd9e(0x141)]&&this[_0x21cd9e(0x11e)]&&requestAnimationFrame(()=>{const _0x34676f=_0x21cd9e;this[_0x34676f(0xd6)]();});},{'threshold':0.01,'rootMargin':_0xf46f7(0x12c)}),this[_0xf46f7(0xcb)][_0xf46f7(0x104)](this[_0xf46f7(0xf6)]));}[_0x39e31f(0xfc)](){const _0x447cfd=_0x39e31f;if(!this[_0x447cfd(0xf6)])return!0x1;if(!this[_0x447cfd(0xf6)][_0x447cfd(0xf0)])return!0x1;const _0x5aebd6=this[_0x447cfd(0xf6)][_0x447cfd(0x10e)]();if(0x0===_0x5aebd6[_0x447cfd(0xd5)]||0x0===_0x5aebd6[_0x447cfd(0x12f)])return!0x1;const _0x2557fd=window[_0x447cfd(0x114)]||document[_0x447cfd(0xd1)][_0x447cfd(0x143)],_0x30d77b=window[_0x447cfd(0x15c)]||document[_0x447cfd(0xd1)][_0x447cfd(0x124)],_0x3d2540=0xc8;return _0x5aebd6[_0x447cfd(0x135)]>=-0xc8&&_0x5aebd6[_0x447cfd(0x10b)]<=_0x2557fd+_0x3d2540&&_0x5aebd6[_0x447cfd(0x132)]>=-0xc8&&_0x5aebd6[_0x447cfd(0xf8)]<=_0x30d77b+_0x3d2540;}}
|
|
23
|
+
function _0x1200(){const _0x4d8ad3=['destroy','auto','_applyOverflowResults','_containerElement','_targetContainer','show','253841oDxqkY','innerWidth','_createShowMoreButtonView','284644PmAHXF','children','50px','push','_pendingCalculation','_showMoreButtonView','_calculateContainerWidth','300px','9vauWsV','setTemplate','execute','cssClasses','disableAnimationOnEnter','height','_updateOverflowUI','cloneNode','_createContainerElements','parentElement','body','from','_createMockButton','className','rowDetectionTolerance','button','offsetWidth','block','showMoreBalloon','appendChild','5551VHevou','classList','_testButtonFit','_updateShowMoreButtonVisibility','div','96AynuGt','render','innerHTML','isVisible','0px','forEach','4003893UiBrlt','_parentView','showMoreButtonView','isConnected','_restoreAncestorVisibility','_renderChipsAndCountRows','disconnect','-9999px','position','20pQhRJR','border-box','showMoreLabelPrefix','element','hide','showMoreButton','label','visibility','getComputedStyle','none','_repinBalloonPanel','querySelector','style','set','_intersectionObserver','zIndex','getBoundingClientRect','+\x201','opacity','.ck-ai-chat','clientWidth','_calculateOverflowInContainer','24wjXcBJ','toLowerCase','filter','tagName','right','pin','_setupVisibilityObserver','overflowContainer','_createCalculationContainer','_makeAncestorsVisible','ck-calculation-container','width','_overflowChips','some','visible','setContainerElement','extendTemplate','_createShowMoreBalloonPanelView','clear','_findTargetContainer','_showMoreBalloonPanelView','undefined','reorganizeChips','content','5905559alAHtw','top','bottom','_applyCalculationStyles','add','absolute','36760NuxoPv','clientHeight','isOn','length','hidden','hideBalloonPanel','_distributeChips','showBalloonPanel','calculationContainer','_updateBalloonContent','visible\x20!important','includes','_createShowMoreButton','observe','57JvEJTV','display','37974RoPJLR','_isContainerVisible','textContent','_checkAndHandleOverflow','controlsButton','createElement','overflowChips','_locale','_config','pointerEvents','remove','485vjjwHk','abs','_bodyCollection','documentElement','maxVisibleRows','pop','innerHeight','left','_ancestorsToRestore','isIntersecting','slice','_visibleChips','block\x20!important','120442oMnJmw','_handleShowMoreButtonClick','boxSizing'];_0x1200=function(){return _0x4d8ad3;};return _0x1200();}const _0x36457b=_0x1fb5;function _0x1fb5(_0x2ec76b,_0x1864c0){const _0x1200b9=_0x1200();return _0x1fb5=function(_0x1fb556,_0xfcaba){_0x1fb556=_0x1fb556-0x7a;let _0x3816e7=_0x1200b9[_0x1fb556];return _0x3816e7;},_0x1fb5(_0x2ec76b,_0x1864c0);}(function(_0x18e6c0,_0x475130){const _0x1ba9a5=_0x1fb5,_0x63d519=_0x18e6c0();while(!![]){try{const _0xcd6d3e=-parseInt(_0x1ba9a5(0x7c))/0x1*(parseInt(_0x1ba9a5(0x106))/0x2)+parseInt(_0x1ba9a5(0xaa))/0x3*(-parseInt(_0x1ba9a5(0xa2))/0x4)+-parseInt(_0x1ba9a5(0x89))/0x5*(-parseInt(_0x1ba9a5(0x7e))/0x6)+-parseInt(_0x1ba9a5(0x9f))/0x7*(parseInt(_0x1ba9a5(0xc3))/0x8)+parseInt(_0x1ba9a5(0xc9))/0x9*(-parseInt(_0x1ba9a5(0xd2))/0xa)+-parseInt(_0x1ba9a5(0x100))/0xb*(parseInt(_0x1ba9a5(0xe8))/0xc)+-parseInt(_0x1ba9a5(0xbe))/0xd*(-parseInt(_0x1ba9a5(0x96))/0xe);if(_0xcd6d3e===_0x475130)break;else _0x63d519['push'](_0x63d519['shift']());}catch(_0x369bcd){_0x63d519['push'](_0x63d519['shift']());}}}(_0x1200,0x99393));import{View as _0x3402cd,BalloonPanelView as _0x41059f,ButtonView as _0xe7ba15,clickOutsideHandler as _0x1f9741}from'ckeditor5/src/ui.js';import{Collection as _0x54815a}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x36457b(0xa9);export class AIChatChipsOverflowManager{[_0x36457b(0x85)];[_0x36457b(0x86)];[_0x36457b(0x94)];[_0x36457b(0xf4)];[_0x36457b(0xa7)]=null;[_0x36457b(0xfc)]=null;[_0x36457b(0x9c)]=null;[_0x36457b(0x8b)];[_0x36457b(0xca)]=null;[_0x36457b(0xe0)]=null;[_0x36457b(0xa6)]=!0x1;constructor(_0x89916f,_0x9ef9e9,_0x3d1034,_0x2ff3ac,_0x139c0a){const _0x69fe9c=_0x36457b;this[_0x69fe9c(0x85)]=_0x89916f,this[_0x69fe9c(0x94)]=_0x9ef9e9,this[_0x69fe9c(0x86)]={...hn,..._0x3d1034,'cssClasses':{'controlsButton':'','calculationContainer':_0x69fe9c(0xf2),..._0x3d1034[_0x69fe9c(0xad)]}},this[_0x69fe9c(0xf4)]=new _0x54815a(),this[_0x69fe9c(0x8b)]=_0x2ff3ac,this[_0x69fe9c(0xca)]=_0x139c0a||null;}[_0x36457b(0xf7)](_0x37c3c8){const _0x3e4bfc=_0x36457b;this[_0x3e4bfc(0xe0)]&&(this[_0x3e4bfc(0xe0)][_0x3e4bfc(0xcf)](),this[_0x3e4bfc(0xe0)]=null),this[_0x3e4bfc(0x9c)]=_0x37c3c8,this[_0x3e4bfc(0xee)]();}get[_0x36457b(0xcb)](){const _0x377822=_0x36457b;return this[_0x377822(0xa7)];}get[_0x36457b(0x84)](){const _0x2119e0=_0x36457b;return this[_0x2119e0(0xf4)];}[_0x36457b(0xfe)](){requestAnimationFrame(()=>{const _0x3ed0fd=_0x1fb5;this[_0x3ed0fd(0x81)]();});}[_0x36457b(0x10d)](){const _0x56e0bb=_0x36457b;this[_0x56e0bb(0xa7)]&&this[_0x56e0bb(0xfc)]&&(this[_0x56e0bb(0x10f)](),this[_0x56e0bb(0xa7)][_0x56e0bb(0x108)]=!0x0,this[_0x56e0bb(0xfc)][_0x56e0bb(0x9e)](),this[_0x56e0bb(0xfc)][_0x56e0bb(0xed)]({'target':this[_0x56e0bb(0xa7)][_0x56e0bb(0xd5)],'limiter':document[_0x56e0bb(0xdd)](_0x56e0bb(0xe5))}));}[_0x36457b(0x10b)](){const _0x2bff12=_0x36457b;this[_0x2bff12(0xa7)]&&this[_0x2bff12(0xfc)]&&(this[_0x2bff12(0xa7)][_0x2bff12(0x108)]=!0x1,this[_0x2bff12(0xfc)][_0x2bff12(0xd6)]());}[_0x36457b(0xfa)](){const _0x4fb1ce=_0x36457b;this[_0x4fb1ce(0xf4)][_0x4fb1ce(0xfa)](),this[_0x4fb1ce(0x10b)](),this[_0x4fb1ce(0xc1)](),this[_0x4fb1ce(0xa7)]&&(this[_0x4fb1ce(0xa7)][_0x4fb1ce(0xd8)]=''),this[_0x4fb1ce(0xfc)]&&this[_0x4fb1ce(0xfc)][_0x4fb1ce(0xff)][_0x4fb1ce(0xfa)]();}[_0x36457b(0x99)](){const _0x38d35e=_0x36457b;this[_0x38d35e(0xe0)]&&(this[_0x38d35e(0xe0)][_0x38d35e(0xcf)](),this[_0x38d35e(0xe0)]=null),this[_0x38d35e(0xa7)]&&(this[_0x38d35e(0xa7)][_0x38d35e(0x99)](),this[_0x38d35e(0xa7)]=null),this[_0x38d35e(0xfc)]&&(this[_0x38d35e(0xfc)][_0x38d35e(0x99)](),this[_0x38d35e(0xfc)]=null);}[_0x36457b(0x81)](){const _0x322c2a=_0x36457b;if(!this[_0x322c2a(0x9c)])return;if(!this[_0x322c2a(0x7f)]())return void(this[_0x322c2a(0xa6)]=!0x0);this[_0x322c2a(0xa6)]=!0x1;const _0x323a22=[...this[_0x322c2a(0x94)],...this[_0x322c2a(0xf4)]],_0x39efce=this[_0x322c2a(0xf0)](),_0x2c4e7e=this[_0x322c2a(0xe7)](_0x39efce,_0x323a22),_0x53072c=_0x39efce[_0x322c2a(0x91)];_0x53072c&&this[_0x322c2a(0xcd)](_0x53072c),_0x39efce[_0x322c2a(0x88)](),this[_0x322c2a(0x9b)](_0x323a22,_0x2c4e7e);}[_0x36457b(0x7a)](){const _0x3ba590=_0x36457b;this[_0x3ba590(0xa7)]=this[_0x3ba590(0xa1)](),this[_0x3ba590(0xfc)]=this[_0x3ba590(0xf9)](),this[_0x3ba590(0xa7)][_0x3ba590(0xc4)](),this[_0x3ba590(0x9c)][_0x3ba590(0xbd)](this[_0x3ba590(0xa7)][_0x3ba590(0xd5)]),this[_0x3ba590(0xa7)]['on'](_0x3ba590(0xac),()=>{const _0x35f27d=_0x3ba590;this[_0x35f27d(0x97)]();}),_0x1f9741({'emitter':this[_0x3ba590(0xfc)],'contextElements':[this[_0x3ba590(0xfc)][_0x3ba590(0xd5)],this[_0x3ba590(0xa7)][_0x3ba590(0xd5)]],'callback':()=>this[_0x3ba590(0x10b)](),'activator':()=>this[_0x3ba590(0xa7)][_0x3ba590(0x108)]});}[_0x36457b(0xa1)](){const _0x44a49a=_0x36457b,_0x744c64=new _0xe7ba15(this[_0x44a49a(0x85)]);_0x744c64[_0x44a49a(0xdf)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x23ffcf=[this[_0x44a49a(0x86)][_0x44a49a(0xad)][_0x44a49a(0xd7)]];return this[_0x44a49a(0x86)][_0x44a49a(0xad)][_0x44a49a(0x82)]&&_0x23ffcf[_0x44a49a(0xa5)](this[_0x44a49a(0x86)][_0x44a49a(0xad)][_0x44a49a(0x82)]),_0x744c64[_0x44a49a(0xf8)]({'attributes':{'class':_0x23ffcf}}),_0x744c64;}[_0x36457b(0xf9)](){const _0x175289=_0x36457b,_0x413cf3=new _0x41059f(this[_0x175289(0x85)]);return _0x413cf3[_0x175289(0xf8)]({'attributes':{'class':this[_0x175289(0x86)][_0x175289(0xad)][_0x175289(0xbc)]}}),this[_0x175289(0x8b)][_0x175289(0x104)](_0x413cf3),_0x413cf3;}[_0x36457b(0x10f)](){const _0x2a9732=_0x36457b;if(this[_0x2a9732(0xfc)]&&(this[_0x2a9732(0xfc)][_0x2a9732(0xff)][_0x2a9732(0xfa)](),this[_0x2a9732(0xf4)][_0x2a9732(0x109)]>0x0)){this[_0x2a9732(0xf4)][_0x2a9732(0xc8)](_0x29ce72=>{const _0x2fc59d=_0x2a9732;_0x29ce72[_0x2fc59d(0xae)]();});const _0x3598f=new _0x3402cd(this[_0x2a9732(0x85)]);_0x3598f[_0x2a9732(0xab)]({'tag':_0x2a9732(0xc2),'attributes':{'class':this[_0x2a9732(0x86)][_0x2a9732(0xad)][_0x2a9732(0xef)]},'children':this[_0x2a9732(0xf4)]}),this[_0x2a9732(0xfc)][_0x2a9732(0xff)][_0x2a9732(0x104)](_0x3598f);}}[_0x36457b(0x97)](){const _0x2ac94a=_0x36457b;this[_0x2ac94a(0xa7)][_0x2ac94a(0x108)]?this[_0x2ac94a(0x10b)]():this[_0x2ac94a(0x10d)]();}[_0x36457b(0xc1)](){const _0x23f81c=_0x36457b,_0x61e59=this[_0x23f81c(0xf4)][_0x23f81c(0x109)]>0x0;this[_0x23f81c(0xa7)]?.[_0x23f81c(0xd5)]&&(this[_0x23f81c(0xa7)][_0x23f81c(0xd5)][_0x23f81c(0xde)][_0x23f81c(0x7d)]=_0x61e59?'':_0x23f81c(0xdb));}[_0x36457b(0xdc)](){const _0x223ec5=_0x36457b;this[_0x223ec5(0xa7)]?.[_0x223ec5(0x108)]&&this[_0x223ec5(0xfc)]?.[_0x223ec5(0xc6)]&&this[_0x223ec5(0xa7)][_0x223ec5(0xd5)]&&this[_0x223ec5(0xfc)][_0x223ec5(0xed)]({'target':this[_0x223ec5(0xa7)][_0x223ec5(0xd5)],'limiter':document[_0x223ec5(0xdd)](_0x223ec5(0xe5))});}[_0x36457b(0xfb)](_0x2a2631){const _0x145604=_0x36457b,_0x1b3a18=this[_0x145604(0x9c)]?.[_0x145604(0xeb)][_0x145604(0xe9)]()||_0x145604(0xc2),_0x42d5c6=this[_0x145604(0x9c)]?.[_0x145604(0xbf)];if(_0x42d5c6){const _0x37f1e4=_0x42d5c6[0x0]||'',_0x124630=_0x2a2631[_0x145604(0xdd)]('.'+_0x37f1e4),_0x28afce=_0x2a2631[_0x145604(0xdd)](_0x1b3a18);return _0x124630||_0x28afce||_0x2a2631;}return _0x2a2631[_0x145604(0xdd)](_0x1b3a18)||_0x2a2631;}[_0x36457b(0xa8)](){const _0x58bc4a=_0x36457b,_0x4eaa35=this[_0x58bc4a(0xca)]?.[_0x58bc4a(0xd5)]||this[_0x58bc4a(0x9c)];if(!_0x4eaa35)return an;const _0x2583dc=window[_0x58bc4a(0xda)](_0x4eaa35)[_0x58bc4a(0xf3)];if(_0x58bc4a(0x9a)===_0x2583dc||_0x58bc4a(0xc7)===_0x2583dc||!_0x2583dc){const _0x588361=_0x4eaa35[_0x58bc4a(0xb3)];if(_0x588361){const _0x3e7463=window[_0x58bc4a(0xda)](_0x588361);return _0x58bc4a(0x9a)!==_0x3e7463[_0x58bc4a(0xf3)]?_0x3e7463[_0x58bc4a(0xf3)]:an;}return an;}return _0x2583dc;}[_0x36457b(0x103)](_0x12068e,_0x3fd49a){const _0x3f423c=_0x36457b;this[_0x3f423c(0x86)][_0x3f423c(0xad)][_0x3f423c(0x10e)]&&_0x12068e[_0x3f423c(0xbf)][_0x3f423c(0x104)](this[_0x3f423c(0x86)][_0x3f423c(0xad)][_0x3f423c(0x10e)]),_0x12068e[_0x3f423c(0xde)][_0x3f423c(0xf3)]=_0x3fd49a,_0x12068e[_0x3f423c(0xde)][_0x3f423c(0xd1)]=_0x3f423c(0x105),_0x12068e[_0x3f423c(0xde)][_0x3f423c(0x101)]=_0x3f423c(0xd0),_0x12068e[_0x3f423c(0xde)][_0x3f423c(0x90)]=_0x3f423c(0xd0),_0x12068e[_0x3f423c(0xde)][_0x3f423c(0xe4)]='0',_0x12068e[_0x3f423c(0xde)][_0x3f423c(0x87)]=_0x3f423c(0xdb),_0x12068e[_0x3f423c(0xde)][_0x3f423c(0xe1)]='-1',_0x12068e[_0x3f423c(0xde)][_0x3f423c(0xd9)]=_0x3f423c(0x110),_0x12068e[_0x3f423c(0xde)][_0x3f423c(0x7d)]=_0x3f423c(0x95),_0x12068e[_0x3f423c(0xde)][_0x3f423c(0x98)]=_0x3f423c(0xd3);}[_0x36457b(0xcd)](_0x4212c0){const _0x1129d9=_0x36457b;_0x4212c0[_0x1129d9(0xc8)](({element:_0x3d0d08,originalDisplay:_0xe9f9ba,originalVisibility:_0xdcc5f4})=>{const _0x4590ed=_0x1129d9;_0x3d0d08[_0x4590ed(0xde)][_0x4590ed(0x7d)]=_0xe9f9ba,_0x3d0d08[_0x4590ed(0xde)][_0x4590ed(0xd9)]=_0xdcc5f4;});}[_0x36457b(0xf1)](_0x56a03e){const _0xec6c7d=_0x36457b,_0x8b48d2=[];let _0x4f1678=_0x56a03e;for(;_0x4f1678&&_0x4f1678!==document[_0xec6c7d(0xb4)];){const _0x3fb566=window[_0xec6c7d(0xda)](_0x4f1678);_0xec6c7d(0xdb)!==_0x3fb566[_0xec6c7d(0x7d)]&&_0xec6c7d(0x10a)!==_0x3fb566[_0xec6c7d(0xd9)]||(_0x8b48d2[_0xec6c7d(0xa5)]({'element':_0x4f1678,'originalDisplay':_0x4f1678[_0xec6c7d(0xde)][_0xec6c7d(0x7d)],'originalVisibility':_0x4f1678[_0xec6c7d(0xde)][_0xec6c7d(0xd9)]}),_0x4f1678[_0xec6c7d(0xde)][_0xec6c7d(0x7d)]=_0xec6c7d(0xbb),_0x4f1678[_0xec6c7d(0xde)][_0xec6c7d(0xd9)]=_0xec6c7d(0xf6)),_0x4f1678=_0x4f1678[_0xec6c7d(0xb3)];}return _0x8b48d2;}[_0x36457b(0xb2)](){const _0x21313c=_0x36457b;let _0x1dc1d5,_0xf42c15;return this[_0x21313c(0xca)]?.[_0x21313c(0xd5)]?(_0x1dc1d5=this[_0x21313c(0xca)][_0x21313c(0xd5)][_0x21313c(0xb1)](!0x0),_0xf42c15=this[_0x21313c(0xfb)](_0x1dc1d5)):(_0x1dc1d5=document[_0x21313c(0x83)](_0x21313c(0xc2)),_0xf42c15=_0x1dc1d5),{'calculationContainer':_0x1dc1d5,'targetContainer':_0xf42c15};}[_0x36457b(0xf0)](){const _0x17321a=_0x36457b,{calculationContainer:_0x1263e9,targetContainer:_0x67b018}=this[_0x17321a(0xb2)](),_0x2f3adb=this[_0x17321a(0xa8)]();this[_0x17321a(0x103)](_0x1263e9,_0x2f3adb);const _0x3661f5=this[_0x17321a(0xca)]?.[_0x17321a(0xd5)]||this[_0x17321a(0x9c)],_0x19fe90=_0x3661f5?.[_0x17321a(0xb3)];_0x19fe90?_0x19fe90[_0x17321a(0xbd)](_0x1263e9):document[_0x17321a(0xb4)][_0x17321a(0xbd)](_0x1263e9),_0x1263e9[_0x17321a(0x9d)]=_0x67b018;const _0x5281e6=this[_0x17321a(0xf1)](_0x19fe90||null);return _0x1263e9[_0x17321a(0xba)],_0x1263e9[_0x17321a(0x91)]=_0x5281e6,_0x1263e9;}[_0x36457b(0xe7)](_0x2f4709,_0xb5401a){const _0x2d83fd=_0x36457b,_0x3e6873=_0x2f4709[_0x2d83fd(0x9d)]||_0x2f4709,_0x5fbb81=[],{rowCount:_0x36a30d}=this[_0x2d83fd(0xce)](_0x3e6873,_0xb5401a);if(_0x36a30d<=this[_0x2d83fd(0x86)][_0x2d83fd(0x8d)])return _0x5fbb81;const _0x3dd329=_0xb5401a[_0x2d83fd(0x93)]();for(;_0x3dd329[_0x2d83fd(0x109)]>0x0;){if(this[_0x2d83fd(0xc0)](_0x2f4709,_0x3e6873,_0x3dd329)){const _0x4bdba3=_0xb5401a[_0x2d83fd(0xea)](_0x10c5eb=>!_0x3dd329[_0x2d83fd(0x111)](_0x10c5eb));_0x5fbb81[_0x2d83fd(0xa5)](..._0x4bdba3);break;}if(!_0x3dd329[_0x2d83fd(0x8e)]())break;}return _0x5fbb81;}[_0x36457b(0xce)](_0x4399a0,_0x850871){const _0xa472f2=_0x36457b;_0x4399a0[_0xa472f2(0xc5)]='',_0x850871[_0xa472f2(0xc8)](_0x3ec8f8=>{const _0x2cb190=_0xa472f2;if(_0x3ec8f8[_0x2cb190(0xd5)]){const _0x5f01b2=_0x3ec8f8[_0x2cb190(0xd5)][_0x2cb190(0xb1)](!0x0);_0x4399a0[_0x2cb190(0xbd)](_0x5f01b2);}}),_0x4399a0[_0xa472f2(0xba)];const _0x5b3361=_0x4399a0[_0xa472f2(0xa3)],_0x2e287d=[];return Array[_0xa472f2(0xb5)](_0x5b3361)[_0xa472f2(0xc8)](_0x33f1ca=>{const _0x371ede=_0xa472f2,_0x46b1c9=_0x33f1ca[_0x371ede(0xe2)]()[_0x371ede(0x101)];_0x2e287d[_0x371ede(0xf5)](_0x3c167f=>Math[_0x371ede(0x8a)](_0x3c167f-_0x46b1c9)<this[_0x371ede(0x86)][_0x371ede(0xb8)])||_0x2e287d[_0x371ede(0xa5)](_0x46b1c9);}),{'rowCount':_0x2e287d[_0xa472f2(0x109)]};}[_0x36457b(0xb6)](){const _0x10633b=_0x36457b,_0x47f25d=document[_0x10633b(0x83)](_0x10633b(0xb9));return _0x47f25d[_0x10633b(0xb7)]=this[_0x10633b(0x86)][_0x10633b(0xad)][_0x10633b(0xd7)],this[_0x10633b(0x86)][_0x10633b(0xad)][_0x10633b(0x82)]&&_0x47f25d[_0x10633b(0xbf)][_0x10633b(0x104)](this[_0x10633b(0x86)][_0x10633b(0xad)][_0x10633b(0x82)]),_0x47f25d[_0x10633b(0x80)]=_0x10633b(0xe3),_0x47f25d;}[_0x36457b(0xc0)](_0x2d0249,_0x1ca43d,_0x524211){const _0x3768ed=_0x36457b;this[_0x3768ed(0xce)](_0x1ca43d,_0x524211);const _0x524559=this[_0x3768ed(0xb6)]();_0x2d0249[_0x3768ed(0xbd)](_0x524559),_0x2d0249[_0x3768ed(0xba)];const _0x165324=[..._0x1ca43d[_0x3768ed(0xa3)],_0x524559],_0x19fb2b=[];_0x165324[_0x3768ed(0xc8)](_0x183e46=>{const _0x3811ab=_0x3768ed,_0x4072a0=_0x183e46[_0x3811ab(0xe2)]()[_0x3811ab(0x101)];_0x19fb2b[_0x3811ab(0xf5)](_0x3d342f=>Math[_0x3811ab(0x8a)](_0x3d342f-_0x4072a0)<this[_0x3811ab(0x86)][_0x3811ab(0xb8)])||_0x19fb2b[_0x3811ab(0xa5)](_0x4072a0);});const _0x5c2f01=_0x19fb2b[_0x3768ed(0x109)];return _0x524559[_0x3768ed(0x88)](),_0x5c2f01<=this[_0x3768ed(0x86)][_0x3768ed(0x8d)];}[_0x36457b(0x10c)](_0x209867,_0x344209){const _0x12c707=_0x36457b;this[_0x12c707(0x94)][_0x12c707(0xfa)](),this[_0x12c707(0xf4)][_0x12c707(0xfa)](),_0x209867[_0x12c707(0xc8)](_0x1c654d=>{const _0x583380=_0x12c707;_0x344209[_0x583380(0x111)](_0x1c654d)?this[_0x583380(0xf4)][_0x583380(0x104)](_0x1c654d):this[_0x583380(0x94)][_0x583380(0x104)](_0x1c654d);});}[_0x36457b(0xb0)](_0x38880c){const _0x4fecc2=_0x36457b;if(_0x38880c>0x0&&!this[_0x4fecc2(0xa7)]&&this[_0x4fecc2(0x7a)](),_0x38880c>0x0&&this[_0x4fecc2(0xa7)]){const _0x3266b5=''+this[_0x4fecc2(0x86)][_0x4fecc2(0xd4)]+(_0x38880c<0x63?_0x38880c:'99');this[_0x4fecc2(0xa7)][_0x4fecc2(0xd8)]=_0x3266b5;}this[_0x4fecc2(0x10f)](),this[_0x4fecc2(0xc1)](),this[_0x4fecc2(0xdc)]();}[_0x36457b(0x9b)](_0xbd60d8,_0x22c739){const _0x463238=_0x36457b;this[_0x463238(0x10c)](_0xbd60d8,_0x22c739),this[_0x463238(0xb0)](_0x22c739[_0x463238(0x109)]);}[_0x36457b(0xee)](){const _0x245247=_0x36457b;this[_0x245247(0x9c)]&&_0x245247(0xfd)!=typeof IntersectionObserver&&(this[_0x245247(0xe0)]=new IntersectionObserver(_0x2a026e=>{const _0x4615c5=_0x245247;_0x2a026e[0x0][_0x4615c5(0x92)]&&this[_0x4615c5(0xa6)]&&requestAnimationFrame(()=>{const _0x52a541=_0x4615c5;this[_0x52a541(0x81)]();});},{'threshold':0.01,'rootMargin':_0x245247(0xa4)}),this[_0x245247(0xe0)][_0x245247(0x7b)](this[_0x245247(0x9c)]));}[_0x36457b(0x7f)](){const _0x433cf1=_0x36457b;if(!this[_0x433cf1(0x9c)])return!0x1;if(!this[_0x433cf1(0x9c)][_0x433cf1(0xcc)])return!0x1;const _0xa35901=this[_0x433cf1(0x9c)][_0x433cf1(0xe2)]();if(0x0===_0xa35901[_0x433cf1(0xf3)]||0x0===_0xa35901[_0x433cf1(0xaf)])return!0x1;const _0x400f38=window[_0x433cf1(0x8f)]||document[_0x433cf1(0x8c)][_0x433cf1(0x107)],_0x280abb=window[_0x433cf1(0xa0)]||document[_0x433cf1(0x8c)][_0x433cf1(0xe6)],_0x13e808=0xc8;return _0xa35901[_0x433cf1(0x102)]>=-0xc8&&_0xa35901[_0x433cf1(0x101)]<=_0x400f38+_0x13e808&&_0xa35901[_0x433cf1(0xec)]>=-0xc8&&_0xa35901[_0x433cf1(0x90)]<=_0x280abb+_0x13e808;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4196b7=_0x2fe3;(function(_0x5697d0,_0x3e434a){const _0x3ddcec=_0x2fe3,_0x5f5da2=_0x5697d0();while(!![]){try{const _0x35efd2=parseInt(_0x3ddcec(0xc7))/0x1+-parseInt(_0x3ddcec(0xd2))/0x2*(parseInt(_0x3ddcec(0xd1))/0x3)+parseInt(_0x3ddcec(0xe7))/0x4*(-parseInt(_0x3ddcec(0xcf))/0x5)+-parseInt(_0x3ddcec(0xc9))/0x6+parseInt(_0x3ddcec(0xdd))/0x7+parseInt(_0x3ddcec(0xd5))/0x8*(parseInt(_0x3ddcec(0xeb))/0x9)+-parseInt(_0x3ddcec(0xdf))/0xa;if(_0x35efd2===_0x3e434a)break;else _0x5f5da2['push'](_0x5f5da2['shift']());}catch(_0x399995){_0x5f5da2['push'](_0x5f5da2['shift']());}}}(_0x59fc,0x6f036));import{ButtonView as _0x564454,IconView as _0x447ee1}from'ckeditor5/src/ui.js';import{IconClose as _0x157972,IconDocument as _0x36ce5a,IconFileUpload as _0x5c4a47,IconLink as _0x36c3d2,IconSelection as _0x28aab5}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1f0a7f}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x3ab0a3}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x5c4a47,'document':_0x36ce5a,'web-resource':_0x36c3d2,'text':_0x5c4a47,'selection':_0x28aab5},bn=_0x4196b7(0xdb),wn=_0x4196b7(0xc2),Tn=_0x4196b7(0xba),En=_0x4196b7(0xce),fn=_0x4196b7(0xbc),An=_0x4196b7(0xd8),Cn='n';function _0x2fe3(_0x321baa,_0x1905b3){const _0x59fc6d=_0x59fc();return _0x2fe3=function(_0x2fe3fe,_0x2a79ba){_0x2fe3fe=_0x2fe3fe-0xac;let _0x52e817=_0x59fc6d[_0x2fe3fe];return _0x52e817;},_0x2fe3(_0x321baa,_0x1905b3);}function _0x59fc(){const _0x353977=['webkitAnimationEnd','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','ck-hidden','set','element','uiId','readonly','41624tTzgzn','_handleAnimationEndOnce','_initializeProperties','length','27IMRGnq','span','_createLabelElement','_createTemplateChildren','render','_setupTemplate','bind','classList','locale','remove','selection','removeEventListener','fire','tooltip','_createLoaderIcon','slice','bindTemplate','ck-ai-chat-context-chip_document','isLoading','ck-ai-chat-context-chip__type-icon','_createRemoveButton','document','label','setTemplate','_isAnimationOnEnterEnabled','ck-ai-chat-context-chip_wide','animationend','extendTemplate','add','addEventListener','86665TJTwEb','_setupRemoveButtonEvent','2536764ZjQAaW','_createIconView','_createTemplateAttributes','itemType','disableAnimationOnEnter','ck-ai-chat-context-chip__label','40IaVhqc','removeContextItemChip','26001JszKVU','68LrjgaL','isVisible','execute','2063352MmwecK','content','div','ck-ai-chat-context-controls__chip-tooltip','type','lastIndexOf','ck-ai-chat-context-chip','ck-ai-chat-context-chip_new-chip','3219867QsXZqf','small','649730IflSQg'];_0x59fc=function(){return _0x353977;};return _0x59fc();}export class AIChatContextItemButtonView extends _0x564454{constructor(_0x36ac9a,_0x3495fb,_0x1cd62d,_0x11598b,_0x1ff796=!0x1){const _0xbc3dc4=_0x4196b7;super(_0x36ac9a),this[_0xbc3dc4(0xc1)]=_0x11598b,this[_0xbc3dc4(0xe9)](_0x3495fb,_0x1cd62d,_0x1ff796),this[_0xbc3dc4(0xae)]();}[_0x4196b7(0xad)](){const _0x526f2b=_0x4196b7;super[_0x526f2b(0xad)](),this[_0x526f2b(0xc1)]&&this[_0x526f2b(0xe4)]&&(this[_0x526f2b(0xe4)][_0x526f2b(0xb0)][_0x526f2b(0xc5)](_0x526f2b(0xdc)),this[_0x526f2b(0xe8)](this[_0x526f2b(0xe4)],()=>{const _0x5bb074=_0x526f2b;this[_0x5bb074(0xe4)]&&this[_0x5bb074(0xe4)][_0x5bb074(0xb0)][_0x5bb074(0xb2)](_0x5bb074(0xdc));}));}[_0x4196b7(0xcd)](){const _0x5dee71=_0x4196b7;this[_0x5dee71(0xc1)]=!0x1,this[_0x5dee71(0xe4)]&&this[_0x5dee71(0xe4)][_0x5dee71(0xb0)][_0x5dee71(0xb2)](_0x5dee71(0xdc));}[_0x4196b7(0xe9)](_0x5ba040,_0x2bb502,_0x460430){const _0x4c3ea5=_0x4196b7;this[_0x4c3ea5(0xe3)](_0x4c3ea5(0xbf),_0x5ba040[_0x4c3ea5(0xbf)]),this[_0x4c3ea5(0xe3)](_0x4c3ea5(0xb6),!0x0),this[_0x4c3ea5(0xe3)](_0x4c3ea5(0xcc),_0x5ba040[_0x4c3ea5(0xd9)]),this[_0x4c3ea5(0xe3)]('id',_0x5ba040[_0x4c3ea5(0xe5)]),this[_0x4c3ea5(0xe3)](_0x4c3ea5(0xe6),_0x2bb502),this[_0x4c3ea5(0xe3)](_0x4c3ea5(0xbb),_0x460430);}[_0x4196b7(0xae)](){const _0x2a72b9=_0x4196b7,_0x4b4898=this[_0x2a72b9(0xca)](),_0x15341e=this[_0x2a72b9(0xbd)](),_0x3849d3=this[_0x2a72b9(0xb9)];this[_0x2a72b9(0xc0)]({'tag':_0x2a72b9(0xd7),'attributes':this[_0x2a72b9(0xcb)](_0x3849d3),'children':this[_0x2a72b9(0xac)](_0x4b4898,_0x15341e,_0x3849d3)});}[_0x4196b7(0xcb)](_0x5b8940){const _0x52c380=_0x4196b7;return{'class':[bn,_0x5b8940['if'](_0x52c380(0xcc),Tn,_0x1ef28c=>_0x52c380(0xbe)==_0x1ef28c),_0x5b8940['if'](_0x52c380(0xcc),wn,_0xc65717=>_0x52c380(0xb3)==_0xc65717)],'data-cke-tooltip-text':_0x5b8940['to'](_0x52c380(0xbf),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x4196b7(0xac)](_0x51d6a9,_0x5be9d2,_0x3260a3){const _0x2bb95a=_0x4196b7,_0x3f0e3a=this[_0x2bb95a(0xed)](_0x3260a3),_0x5cb1b7=this[_0x2bb95a(0xb7)]();return this[_0x2bb95a(0xe6)]?[_0x51d6a9,_0x3f0e3a]:[_0x51d6a9,_0x5cb1b7,_0x3f0e3a,_0x5be9d2];}[_0x4196b7(0xed)](_0x44fe06){const _0x23233f=_0x4196b7;return{'tag':_0x23233f(0xec),'attributes':{'class':En},'children':[{'text':_0x44fe06['to'](_0x23233f(0xbf))}]};}[_0x4196b7(0xbd)](){const _0x42501c=_0x4196b7,_0x2e2e76=new _0x564454(this[_0x42501c(0xb1)]);return _0x2e2e76[_0x42501c(0xe3)]({'label':_0x1f0a7f(this[_0x42501c(0xb1)],_0x42501c(0xe1)),'icon':_0x157972}),this[_0x42501c(0xc8)](_0x2e2e76),_0x2e2e76;}[_0x4196b7(0xc8)](_0x419ea7){const _0x1ce342=_0x4196b7;_0x419ea7['on'](_0x1ce342(0xd4),()=>{const _0x4641ea=_0x1ce342;this[_0x4641ea(0xb5)](_0x4641ea(0xd0),this['id']);});}[_0x4196b7(0xca)](){const _0x226bcc=_0x4196b7,_0xcf130=this[_0x226bcc(0xb9)],_0x1aa2b2=new _0x447ee1();return _0x1aa2b2[_0x226bcc(0xd6)]=xn[this[_0x226bcc(0xcc)]],_0x1aa2b2[_0x226bcc(0xc4)]({'attributes':{'class':[fn,_0xcf130['if'](_0x226bcc(0xbb),_0x226bcc(0xe2),_0x24f612=>_0x24f612)]}}),_0x1aa2b2;}[_0x4196b7(0xe8)](_0x285be1,_0x4565cd){const _0x3d2f4c=_0x4196b7;if(!_0x285be1)return;const _0x1442dc=()=>{const _0xb5cdc8=_0x2fe3;_0x4565cd(),_0x285be1[_0xb5cdc8(0xb4)](_0xb5cdc8(0xc3),_0x1442dc),_0x285be1[_0xb5cdc8(0xb4)](_0xb5cdc8(0xe0),_0x1442dc);};_0x285be1[_0x3d2f4c(0xc6)](_0x3d2f4c(0xc3),_0x1442dc),_0x285be1[_0x3d2f4c(0xc6)](_0x3d2f4c(0xe0),_0x1442dc);}[_0x4196b7(0xb7)](){const _0x3dfa79=_0x4196b7,_0x45131a=new _0x3ab0a3(_0x3dfa79(0xde));return _0x45131a[_0x3dfa79(0xaf)](_0x3dfa79(0xd3))['to'](this,_0x3dfa79(0xbb),_0x3a171d=>_0x3a171d),_0x45131a;}}function In(_0x203c78){const _0x214f37=_0x4196b7;if(!_0x203c78)return _0x203c78;if(_0x203c78[_0x214f37(0xea)]<=0x78)return _0x203c78;const _0x1fc086=_0x203c78[_0x214f37(0xb8)](0x0,0x78),_0x15d493=_0x1fc086[_0x214f37(0xda)]('\x20');return(_0x15d493>0x0?_0x1fc086[_0x214f37(0xb8)](0x0,_0x15d493):_0x1fc086)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x164e0f=_0x35b6;function _0x2978(){const _0x11e034=['fire','errorText','getValue','2037816IyhhXy','children','trim','ck-button-icon','stop','element','backButton','cancel','render','esc','_createUrlInputField','_setupEventHandlers','AI_CHAT_CONTEXT_URL_INVALID_ERROR','length','destroy','AI_CHAT_CONTEXT_URL_LABEL','urlInputField','_handleSubmit','forEach','_setupKeystrokes','24730hQxlfG','listenTo','add','tab','isEnabled','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','2040955JyjLbO','ck-labeled-field-view_empty','_setupTemplate','focusCycler','808786oCDsdV','_focusables','input','setError','setTemplate','1088596TWCVFJ','_createBackButton','confirmButton','focus','focusTracker','createCollection','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','438ijvSlD','clear','AI_CHAT_CONTEXT_URL_ADD_URL','_isValidUrl','value','ck-ai-chat-context-controls__url-input-section','refreshBalloon','5395440cNFXhi','clearError','_createConfirmButton','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_updateConfirmButtonState','ck-ai-chat-context-controls__url-form','fieldView','form','submit','4zcQbkO','2817fYUqxt','execute','locale','keystrokes','ck-button-icon\x20ck-button-back','47131YtOGkm','div','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','shift+tab','submitUrl','set'];_0x2978=function(){return _0x11e034;};return _0x2978();}(function(_0x45e732,_0x2c4a87){const _0x2a93ea=_0x35b6,_0x4aea46=_0x45e732();while(!![]){try{const _0x36e21e=-parseInt(_0x2a93ea(0x11a))/0x1+parseInt(_0x2a93ea(0x11f))/0x2+parseInt(_0x2a93ea(0xfc))/0x3+parseInt(_0x2a93ea(0xed))/0x4*(parseInt(_0x2a93ea(0x116))/0x5)+-parseInt(_0x2a93ea(0x126))/0x6*(parseInt(_0x2a93ea(0xf3))/0x7)+-parseInt(_0x2a93ea(0x12d))/0x8+-parseInt(_0x2a93ea(0xee))/0x9*(-parseInt(_0x2a93ea(0x110))/0xa);if(_0x36e21e===_0x2c4a87)break;else _0x4aea46['push'](_0x4aea46['shift']());}catch(_0x2777af){_0x4aea46['push'](_0x4aea46['shift']());}}}(_0x2978,0x693ed));import{FocusTracker as _0x86d4d,KeystrokeHandler as _0xf205bf}from'ckeditor5/src/utils.js';import{ButtonView as _0x4252b6,FocusCycler as _0x4a1ada,LabeledFieldView as _0x25e890,View as _0x1fb299,FormHeaderView as _0x4c74db,createLabeledInputText as _0x27022d,submitHandler as _0x32e458}from'ckeditor5/src/ui.js';import{IconCheck as _0x244ae8,IconPreviousArrow as _0x4982f7}from'@ckeditor/ckeditor5-icons';function _0x35b6(_0x43260b,_0x2f55d8){const _0x297807=_0x2978();return _0x35b6=function(_0x35b6d8,_0x1e680d){_0x35b6d8=_0x35b6d8-0xe9;let _0x2b997d=_0x297807[_0x35b6d8];return _0x2b997d;},_0x35b6(_0x43260b,_0x2f55d8);}import{getTranslation as _0x27845b}from'../../../aicore/utils/common-translations.js';const ch=_0x164e0f(0xe9),nh=_0x164e0f(0x12b);export class AIChatContextPanelUrlInputView extends _0x1fb299{[_0x164e0f(0x123)];[_0x164e0f(0xf1)];[_0x164e0f(0x11b)];[_0x164e0f(0x119)];[_0x164e0f(0x10c)];[_0x164e0f(0x102)];[_0x164e0f(0x121)];constructor(_0x4c9893){const _0x2a2426=_0x164e0f;super(_0x4c9893),this[_0x2a2426(0x123)]=new _0x86d4d(),this[_0x2a2426(0xf1)]=new _0xf205bf(),this[_0x2a2426(0x102)]=this[_0x2a2426(0x120)](),this[_0x2a2426(0x10c)]=this[_0x2a2426(0x106)](),this[_0x2a2426(0x121)]=this[_0x2a2426(0x12f)](),this[_0x2a2426(0x11b)]=this[_0x2a2426(0x124)]([this[_0x2a2426(0x102)],this[_0x2a2426(0x10c)],this[_0x2a2426(0x121)]]),this[_0x2a2426(0x119)]=new _0x4a1ada({'focusables':this[_0x2a2426(0x11b)],'focusTracker':this[_0x2a2426(0x123)],'keystrokeHandler':this[_0x2a2426(0xf1)],'actions':{'focusPrevious':_0x2a2426(0xf6),'focusNext':_0x2a2426(0x113)}}),this[_0x2a2426(0x118)](),this[_0x2a2426(0x107)](),this[_0x2a2426(0x10f)]();}[_0x164e0f(0x104)](){const _0x57f5a1=_0x164e0f;super[_0x57f5a1(0x104)](),this[_0x57f5a1(0x11b)][_0x57f5a1(0x10e)](_0x92c302=>{const _0x16e74f=_0x57f5a1;this[_0x16e74f(0x123)][_0x16e74f(0x112)](_0x92c302[_0x16e74f(0x101)]),this[_0x16e74f(0xf1)][_0x16e74f(0x111)](_0x92c302[_0x16e74f(0x101)]);}),_0x32e458({'view':this}),this[_0x57f5a1(0x122)]();}[_0x164e0f(0x10a)](){const _0x10ccd2=_0x164e0f;super[_0x10ccd2(0x10a)](),this[_0x10ccd2(0x123)][_0x10ccd2(0x10a)](),this[_0x10ccd2(0xf1)][_0x10ccd2(0x10a)]();}[_0x164e0f(0x122)](){const _0x3a3b85=_0x164e0f;this[_0x3a3b85(0x10c)][_0x3a3b85(0x122)]();}[_0x164e0f(0xfb)](){const _0x8e189a=_0x164e0f;return this[_0x8e189a(0x10c)][_0x8e189a(0xea)][_0x8e189a(0x101)]?.[_0x8e189a(0x12a)]?.[_0x8e189a(0xfe)]()||'';}[_0x164e0f(0x127)](){const _0x26f3e8=_0x164e0f;this[_0x26f3e8(0x10c)][_0x26f3e8(0xea)][_0x26f3e8(0x101)][_0x26f3e8(0x12a)]='',this[_0x26f3e8(0x10c)][_0x26f3e8(0xfa)]=null,this[_0x26f3e8(0x121)][_0x26f3e8(0x114)]=!0x1;}[_0x164e0f(0x11d)](_0x34fa64){const _0x477675=_0x164e0f;this[_0x477675(0x10c)][_0x477675(0xfa)]=_0x34fa64,this[_0x477675(0x131)](),this[_0x477675(0xf9)](_0x477675(0x12c));}[_0x164e0f(0x12e)](){const _0x51273b=_0x164e0f;this[_0x51273b(0x10c)][_0x51273b(0xfa)]=null,this[_0x51273b(0x131)]();}[_0x164e0f(0x120)](){const _0x46344f=_0x164e0f,_0x27a574=new _0x4252b6(this[_0x46344f(0xf0)]);return _0x27a574[_0x46344f(0xf8)]({'icon':_0x4982f7,'tooltip':_0x27845b(this[_0x46344f(0xf0)],_0x46344f(0x125)),'tooltipPosition':'n','class':_0x46344f(0xf2)}),_0x27a574;}[_0x164e0f(0x106)](){const _0x2db91c=_0x164e0f,_0x2a7a53=new _0x25e890(this[_0x2db91c(0xf0)],_0x27022d);return _0x2a7a53[_0x2db91c(0xf8)]({'label':_0x27845b(this[_0x2db91c(0xf0)],_0x2db91c(0x10b)),'class':_0x2db91c(0x117)}),_0x2a7a53[_0x2db91c(0xea)][_0x2db91c(0xf8)]({'placeholder':_0x27845b(this[_0x2db91c(0xf0)],_0x2db91c(0x130))}),_0x2a7a53;}[_0x164e0f(0x12f)](){const _0x4560a5=_0x164e0f,_0x3f0e5a=new _0x4252b6(this[_0x4560a5(0xf0)]);return _0x3f0e5a[_0x4560a5(0xf8)]({'icon':_0x244ae8,'tooltip':_0x27845b(this[_0x4560a5(0xf0)],_0x4560a5(0x128)),'tooltipPosition':'n','class':_0x4560a5(0xff),'type':_0x4560a5(0xec),'isEnabled':!0x1}),_0x3f0e5a;}[_0x164e0f(0x118)](){const _0x4e66f6=_0x164e0f,_0x492e99=new _0x4c74db(this[_0x4e66f6(0xf0)],{'label':_0x27845b(this[_0x4e66f6(0xf0)],_0x4e66f6(0x128)),'class':_0x4e66f6(0x115)});_0x492e99[_0x4e66f6(0xfd)][_0x4e66f6(0x112)](this[_0x4e66f6(0x102)],0x0),this[_0x4e66f6(0x11e)]({'tag':_0x4e66f6(0xeb),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x492e99,{'tag':_0x4e66f6(0xf4),'attributes':{'class':nh},'children':[this[_0x4e66f6(0x10c)],this[_0x4e66f6(0x121)]]}]});}[_0x164e0f(0x107)](){const _0x3d4b5a=_0x164e0f;this[_0x3d4b5a(0x102)]['on'](_0x3d4b5a(0xef),()=>{const _0x5ae742=_0x3d4b5a;this[_0x5ae742(0x127)](),this[_0x5ae742(0xf9)](_0x5ae742(0x103));}),this[_0x3d4b5a(0x10c)][_0x3d4b5a(0xea)]['on'](_0x3d4b5a(0x11c),()=>{const _0x33153b=_0x3d4b5a;this[_0x33153b(0x12e)](),this[_0x33153b(0x131)](),this[_0x33153b(0xf9)](_0x33153b(0x12c));}),this['on'](_0x3d4b5a(0xec),_0x5d9462=>{const _0x1ec811=_0x3d4b5a;_0x5d9462[_0x1ec811(0x100)](),this[_0x1ec811(0x10d)]();});}[_0x164e0f(0x10f)](){const _0x2f9c45=_0x164e0f;this[_0x2f9c45(0xf1)][_0x2f9c45(0xf8)](_0x2f9c45(0x105),(_0x37f07d,_0x1f07eb)=>{const _0x4f5a94=_0x2f9c45;this[_0x4f5a94(0x127)](),this[_0x4f5a94(0xf9)](_0x4f5a94(0x103)),_0x1f07eb();});}[_0x164e0f(0x10d)](){const _0x3bf5b0=_0x164e0f,_0x36ac19=this[_0x3bf5b0(0xfb)]()[_0x3bf5b0(0xfe)]();_0x36ac19?this[_0x3bf5b0(0x129)](_0x36ac19)?(this[_0x3bf5b0(0x12e)](),this[_0x3bf5b0(0xf9)](_0x3bf5b0(0xf7),_0x36ac19)):this[_0x3bf5b0(0x11d)](_0x27845b(this[_0x3bf5b0(0xf0)],_0x3bf5b0(0x108))):this[_0x3bf5b0(0x11d)](_0x27845b(this[_0x3bf5b0(0xf0)],_0x3bf5b0(0xf5)));}[_0x164e0f(0x131)](){const _0x331505=_0x164e0f,_0x1f46bc=this[_0x331505(0xfb)]()[_0x331505(0xfe)](),_0x5a9206=!!this[_0x331505(0x10c)][_0x331505(0xfa)];this[_0x331505(0x121)][_0x331505(0x114)]=_0x1f46bc[_0x331505(0x109)]>0x0&&!_0x5a9206;}[_0x164e0f(0x129)](_0x2d81e9){try{return!!new URL(_0x2d81e9);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x54da88=_0x54f2;function _0x27de(){const _0x43eca8=['_currentContextsChips','removeContextItemChip','setTemplate','files','hideUrlBalloonPanel','ck-ai-chat-context-controls__show-more-balloon-panel','15dnRYfw','_createBalloonButton','_setBalloonPanelContent','removeContextItem','clearConversationContextItems','1715934TAshoU','_showSourceResourcesBalloon','refreshBalloon','southArrowNorth','_overflowManager','_toggleAddContextBalloon','_addContextBalloonConfig','overflowChips','316oYfzRf','7879gkNzna','48733751RAeAXT','locale','_createAddContextBalloonPanelView','_addContextBalloonPanelView','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-controls_context_show-more-button','_setupAllBalloonClickOutsideHandlers','southArrowNorthEast','tooltip','element','showUrlBalloonPanel','_setupAddContextBalloonClickOutsideHandler','_setAddContextButtonEnabled','AI_CHAT_CONTEXT_FILE_LABEL','find','enabled','buttonView','clear','6312288zYgAtt','addContextItem','isVisible','closest','cancel','bodyCollection','_setupTemplate','299016LlTHqg','execute','addFileToContext','source','children','addResourceToContext','bind','hide','ck-ai-chat-context-chips-wrapper-balloon','destroy','urls','current','_createArrowView','ck-reset_all-excluded','show','_getLimiterElement','pin','_urlInputView','ck-ai-chat-context-controls__balloon-button-source','_removeContextFromCollection','setConversationContext','_createUrlBalloonPanelView','reorganizeChips','focus','setAddContextOptions','ck-ai-chat-controls-button','balloonView','_bindEventHandlers','_createBaseBalloonPanel','add','type','setContextItemLoading','setContainerElement','searchInputVisibleFrom','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','showAddContextBalloonPanel','content','5613846AfMVel','body','AI_CHAT_CONTEXT_ADD_CONTEXT','sources','_addContextToCollection','conversation','document','icon','_handleAddContextButtonClick','_createContextButton','menuitem','_handleUrlSubmit','ck-ai-chat-context-controls__add-context-balloon-panel','_conversationContextsChips','populateSourceResourceBalloon','northArrowSouthEast','fire','AI_CHAT_CONTEXT_URL_LABEL','addUrlToContext','ck-ai-chat-context-controls__url-balloon-panel','isEnabled','1135254pAsPaf','279lkQmVe','isReadOnly','closeSourceResourceBalloon','ck-ai-chat-context-controls__add-context-button','isHidden','set','updateResourceState','addDocumentToContext','ck-ai-chat-context-controls','createCollection','ck-ai-chat-context-controls__balloon-button','hideAddContextBalloonPanel','northArrowSouth','southArrowNorthWest','_createResourcesBalloonView','label','northArrowSouthWest','done','_createAddContextButtonView','remove','div','_urlBalloonPanelView','_resourcesBalloonView','addContextButtonView','clearCurrentContextItems','defaultPositions','extendTemplate','arrowView','submitUrl','_setupUrlBalloonClickOutsideHandler','isOn','showSourceResourcesBalloon','ck-ai-chat','10cKIVtR','_addUrlContent','__arrow','loadSourceResources','render','isLoading','isAnyResourceBalloonVisible'];_0x27de=function(){return _0x43eca8;};return _0x27de();}(function(_0x570556,_0x4ade05){const _0x398af6=_0x54f2,_0x35b173=_0x570556();while(!![]){try{const _0x293036=-parseInt(_0x398af6(0xb7))/0x1*(parseInt(_0x398af6(0xb6))/0x2)+parseInt(_0x398af6(0x10b))/0x3+-parseInt(_0x398af6(0xca))/0x4+parseInt(_0x398af6(0xa9))/0x5*(parseInt(_0x398af6(0xae))/0x6)+-parseInt(_0x398af6(0xf6))/0x7+parseInt(_0x398af6(0xd1))/0x8*(-parseInt(_0x398af6(0x10c))/0x9)+-parseInt(_0x398af6(0x12d))/0xa*(-parseInt(_0x398af6(0xb8))/0xb);if(_0x293036===_0x4ade05)break;else _0x35b173['push'](_0x35b173['shift']());}catch(_0x300200){_0x35b173['push'](_0x35b173['shift']());}}}(_0x27de,0xd79a3));import{BalloonPanelView as _0x2c0338,ButtonView as _0x5079e0,clickOutsideHandler as _0x256c00,FileDialogButtonView as _0x5edaf4,IconView as _0x29f9d7,View as _0x453e75}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x45aff0,IconDocument as _0x5010e3,IconDocumentOutline as _0x5be1c8,IconDropdownArrow as _0x503a78,IconLink as _0x5dbea7,IconPaperClip as _0x141b72}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x53386f}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x52e590}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x413745}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x5b9c86}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0xa6d65}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x54da88(0x113),_0x54da88(0xd3),_0x54da88(0x108),_0x54da88(0xd6),_0x54da88(0xac),_0x54da88(0x130)];const po=_0x54da88(0x114),Bo=_0x54da88(0xbc),bo=_0x54da88(0x102),To=_0x54da88(0x10f),Ao=_0x54da88(0x109),ko=_0x54da88(0x116),Eo=_0x54da88(0xe3),vo=_0x54da88(0xea),Vo=_0x54da88(0xd9),fo=_0x54da88(0xbd),Io=_0x54da88(0x139),Po=_0x54da88(0x12c),Ro=[_0x2c0338[_0x54da88(0x125)][_0x54da88(0x11c)],_0x2c0338[_0x54da88(0x125)][_0x54da88(0x118)],_0x2c0338[_0x54da88(0x125)][_0x54da88(0x105)],_0x2c0338[_0x54da88(0x125)][_0x54da88(0x119)],_0x2c0338[_0x54da88(0x125)][_0x54da88(0xb1)],_0x2c0338[_0x54da88(0x125)][_0x54da88(0xbf)]];function _0x54f2(_0x30263d,_0x139b84){const _0x27de2d=_0x27de();return _0x54f2=function(_0x54f2f7,_0x4f7373){_0x54f2f7=_0x54f2f7-0xa9;let _0x3bac48=_0x27de2d[_0x54f2f7];return _0x3bac48;},_0x54f2(_0x30263d,_0x139b84);}export class AIChatContextPanelView extends _0x453e75{[_0x54da88(0x123)];[_0x54da88(0x134)]=this[_0x54da88(0x115)]();[_0x54da88(0x103)]=this[_0x54da88(0x115)]();[_0x54da88(0xb2)];[_0x54da88(0xbb)];[_0x54da88(0x121)];[_0x54da88(0xe2)];[_0x54da88(0x122)];[_0x54da88(0xb4)];[_0x54da88(0xcf)];constructor(_0x20b663,_0x33a120){const _0x153fa7=_0x54da88;super(_0x20b663),this[_0x153fa7(0xcf)]=_0x33a120[_0x153fa7(0xcf)],this[_0x153fa7(0x134)]=this[_0x153fa7(0x115)](),this[_0x153fa7(0x103)]=this[_0x153fa7(0x115)](),this[_0x153fa7(0x123)]=this[_0x153fa7(0x11e)](_0x20b663),this[_0x153fa7(0xbb)]=this[_0x153fa7(0xba)](_0x20b663),this[_0x153fa7(0x121)]=this[_0x153fa7(0xe6)](_0x20b663),this[_0x153fa7(0x122)]=this[_0x153fa7(0x11a)](_0x20b663,_0x33a120);const _0x42906a={'cssClasses':{'showMoreButton':fo,'showMoreBalloon':Io,'overflowContainer':Vo,'controlsButton':vo}};this[_0x153fa7(0xb2)]=new _0x413745(_0x20b663,this[_0x153fa7(0x134)],_0x42906a,this[_0x153fa7(0xcf)],this),this[_0x153fa7(0xb4)]={'buttonView':this[_0x153fa7(0x123)],'balloonView':this[_0x153fa7(0xbb)],'hideMethod':this[_0x153fa7(0x117)][_0x153fa7(0xd7)](this),'showMethod':this[_0x153fa7(0xf4)][_0x153fa7(0xd7)](this)},this[_0x153fa7(0xd0)](),this[_0x153fa7(0xec)]();}[_0x54da88(0x131)](){const _0x351b4f=_0x54da88;super[_0x351b4f(0x131)](),this[_0x351b4f(0xbe)](),this[_0x351b4f(0xb2)][_0x351b4f(0xf1)](this[_0x351b4f(0xc1)]),this[_0x351b4f(0xb2)][_0x351b4f(0xe7)]();}[_0x54da88(0xda)](){const _0x1a19f8=_0x54da88;super[_0x1a19f8(0xda)](),this[_0x1a19f8(0xb2)][_0x1a19f8(0xda)](),this[_0x1a19f8(0x122)][_0x1a19f8(0xda)]();}[_0x54da88(0xcb)](_0x27f0bf,_0x4b40c9){const _0x247381=_0x54da88,_0x9a77d0=this[_0x247381(0xff)](_0x27f0bf,_0x247381(0xdc),!0x0,_0x4b40c9);this[_0x247381(0xfa)](_0x9a77d0,this[_0x247381(0x134)]),this[_0x247381(0xb2)][_0x247381(0xe7)]();}[_0x54da88(0xac)](_0x39920c){const _0x4f91e2=_0x54da88;this[_0x4f91e2(0xe4)](_0x39920c,this[_0x4f91e2(0x134)]),this[_0x4f91e2(0xe4)](_0x39920c,this[_0x4f91e2(0xb2)][_0x4f91e2(0xb5)]),this[_0x4f91e2(0xb2)][_0x4f91e2(0xe7)]();}[_0x54da88(0xf0)](_0xea8732,_0xd0184b){const _0x1b5e9d=_0x54da88;let _0x29fdc5=this[_0x1b5e9d(0x134)][_0x1b5e9d(0xc6)](_0x16f003=>_0x16f003['id']===_0xea8732);_0x29fdc5||(_0x29fdc5=this[_0x1b5e9d(0xb2)][_0x1b5e9d(0xb5)][_0x1b5e9d(0xc6)](_0x51a07f=>_0x51a07f['id']===_0xea8732)),_0x29fdc5&&(_0x29fdc5[_0x1b5e9d(0x132)]=_0xd0184b);}[_0x54da88(0xe5)](_0x30fe78){const _0x5c0e1f=_0x54da88;this[_0x5c0e1f(0x103)][_0x5c0e1f(0xc9)]();for(const _0x314bf7 of _0x30fe78){const _0x48a5aa=this[_0x5c0e1f(0xff)](_0x314bf7,_0x5c0e1f(0xfb),!0x1,!0x1);this[_0x5c0e1f(0xfa)](_0x48a5aa,this[_0x5c0e1f(0x103)]);}}[_0x54da88(0x124)](){const _0x52bc51=_0x54da88;this[_0x52bc51(0x134)][_0x52bc51(0xc9)](),this[_0x52bc51(0xb2)][_0x52bc51(0xc9)]();}[_0x54da88(0xad)](){const _0x1dafed=_0x54da88;this[_0x1dafed(0x103)][_0x1dafed(0xc9)]();}[_0x54da88(0x112)](_0x57e419,_0x14420a,_0x3bd2e0){const _0x479ad5=_0x54da88;this[_0x479ad5(0x122)][_0x479ad5(0x112)](_0x57e419,_0x14420a,_0x3bd2e0);}[_0x54da88(0x117)](){const _0x2b5b7b=_0x54da88;this[_0x2b5b7b(0xb3)](!0x1);}[_0x54da88(0xf4)](){const _0x225294=_0x54da88;this[_0x225294(0xb3)](!0x0);}[_0x54da88(0x138)](){const _0x54a1da=_0x54da88;this[_0x54a1da(0x121)][_0x54a1da(0xd8)](),this[_0x54a1da(0x123)][_0x54a1da(0x12a)]=!0x1,this[_0x54a1da(0xe2)]&&this[_0x54a1da(0xe2)][_0x54a1da(0xc9)]();}[_0x54da88(0xc2)](){const _0x37563a=_0x54da88;this[_0x37563a(0x121)][_0x37563a(0xdf)](),this[_0x37563a(0x123)][_0x37563a(0x12a)]=!0x0;}[_0x54da88(0xaf)](_0x5750a3){const _0x65f1e3=_0x54da88;this[_0x65f1e3(0x122)][_0x65f1e3(0x12b)](_0x5750a3),this[_0x65f1e3(0x123)][_0x65f1e3(0x12a)]=!0x0;}[_0x54da88(0x104)](_0x3727c0,_0x4ebf3a,_0x2564aa,_0x57b2ee){const _0x47bfcc=_0x54da88;this[_0x47bfcc(0x122)][_0x47bfcc(0x104)](_0x3727c0,_0x2564aa,_0x57b2ee);}[_0x54da88(0x10e)](_0x1ce515){const _0x29f26d=_0x54da88;this[_0x29f26d(0x122)][_0x29f26d(0x10e)](_0x1ce515),this[_0x29f26d(0x123)][_0x29f26d(0x12a)]=!0x1;}[_0x54da88(0xe9)](_0x54fe89){const _0x26160c=_0x54da88;this[_0x26160c(0xab)](this[_0x26160c(0xbb)],this[_0x26160c(0xb9)],_0x54fe89),this[_0x26160c(0xc4)](_0x54fe89);}[_0x54da88(0xc4)](_0x3da435){const _0x4fb02d=_0x54da88,_0x45d604=!_0x3da435[_0x4fb02d(0xfc)][_0x4fb02d(0x110)]&&_0x3da435[_0x4fb02d(0xfc)][_0x4fb02d(0xc7)],_0x3b6408=_0x3da435[_0x4fb02d(0xdb)][_0x4fb02d(0xc7)],_0x4b35d4=_0x3da435[_0x4fb02d(0x137)][_0x4fb02d(0xc7)];this[_0x4fb02d(0x123)][_0x4fb02d(0x10a)]=_0x45d604||_0x3b6408||_0x4b35d4;}[_0x54da88(0xd0)](){const _0x3c7c8b=_0x54da88;this[_0x3c7c8b(0x136)]({'tag':_0x3c7c8b(0x120),'attributes':{'class':[po,_0x3c7c8b(0xde)]},'children':[{'tag':_0x3c7c8b(0x120),'attributes':{'class':Bo},'children':this[_0x3c7c8b(0x134)]}]});}[_0x54da88(0xec)](){const _0x210c00=_0x54da88;this[_0x210c00(0x123)]['on'](_0x210c00(0xd2),()=>{const _0x5553d2=_0x210c00;this[_0x5553d2(0xfe)]();});}[_0x54da88(0x11e)](_0x4590cb){const _0x54fa48=_0x54da88,_0xb6d6df=new _0x5079e0(_0x4590cb);return _0xb6d6df[_0x54fa48(0x111)]({'label':_0x5b9c86(_0x4590cb,_0x54fa48(0xf8)),'class':vo+'\x20'+To,'icon':_0x141b72,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0xb6d6df;}[_0x54da88(0xba)](_0x271d5c){const _0x13cc47=_0x54da88;return this[_0x13cc47(0xed)](_0x271d5c,bo);}[_0x54da88(0xe6)](_0x32d9d6){const _0x169006=_0x54da88,_0x40d0f5=this[_0x169006(0xed)](_0x32d9d6,Ao);return this[_0x169006(0x12e)](_0x40d0f5,_0x32d9d6),_0x40d0f5;}[_0x54da88(0x11a)](_0x697926,_0x56af94){const _0x34d7b3=_0x54da88,_0x24a536={'searchInputVisibleFrom':_0x56af94[_0x34d7b3(0xf2)],'onBackToContext':()=>{const _0x3f7cfe=_0x34d7b3;this[_0x3f7cfe(0xf4)](),this[_0x3f7cfe(0xbb)][_0x3f7cfe(0xe1)]({'target':this[_0x3f7cfe(0x123)][_0x3f7cfe(0xc1)],'limiter':this[_0x3f7cfe(0xe0)](),'positions':Ro});},'onResourceSelected':(_0xca607e,_0xd995e7)=>{const _0x54afd8=_0x34d7b3;this[_0x54afd8(0x106)](_0x54afd8(0xd6),{'source':_0xca607e,'resource':_0xd995e7});},'onLoadSourceResources':_0x4c93f2=>{const _0x190573=_0x34d7b3;this[_0x190573(0x106)](_0x190573(0x130),_0x4c93f2);},'onBalloonClosed':()=>{const _0x2daa97=_0x34d7b3;this[_0x2daa97(0x123)][_0x2daa97(0x12a)]=!0x1;},'getLimiterElement':()=>this[_0x34d7b3(0xe0)](),'getTargetElement':()=>this[_0x34d7b3(0x123)][_0x34d7b3(0xc1)]};return new _0xa6d65(_0x697926,_0x56af94[_0x34d7b3(0xcf)],_0x24a536);}[_0x54da88(0xe0)](){const _0x1b92a1=_0x54da88;return this[_0x1b92a1(0xc1)]?.[_0x1b92a1(0xcd)]('.'+Po)||document[_0x1b92a1(0xf7)];}[_0x54da88(0xed)](_0x26a898,_0x34bed2){const _0x3123df=_0x54da88,_0x258780=new _0x2c0338(_0x26a898);return _0x258780[_0x3123df(0x126)]({'attributes':{'class':_0x34bed2}}),this[_0x3123df(0xcf)][_0x3123df(0xee)](_0x258780),_0x258780;}[_0x54da88(0xab)](_0x20bfff,_0x26932f,_0x58fd92){const _0x24fda4=_0x54da88;if(_0x20bfff[_0x24fda4(0xf5)][_0x24fda4(0xc9)](),!_0x58fd92[_0x24fda4(0xfc)][_0x24fda4(0x110)]&&_0x58fd92[_0x24fda4(0xfc)][_0x24fda4(0xc7)]){const _0x1bad0d=this[_0x24fda4(0xaa)](_0x26932f,{'label':_0x5b9c86(_0x26932f,_0x24fda4(0xf3)),'icon':_0x5010e3});_0x1bad0d['on'](_0x24fda4(0xd2),()=>{const _0x43fcf5=_0x24fda4;this[_0x43fcf5(0x106)](_0x43fcf5(0x113)),this[_0x43fcf5(0x117)]();}),_0x20bfff[_0x24fda4(0xf5)][_0x24fda4(0xee)](_0x1bad0d);}if(_0x58fd92[_0x24fda4(0xdb)][_0x24fda4(0xc7)]){const _0x1dc1f1=this[_0x24fda4(0xaa)](_0x26932f,{'label':_0x5b9c86(_0x26932f,_0x24fda4(0x107)),'icon':_0x5dbea7});_0x1dc1f1['on'](_0x24fda4(0xd2),()=>{const _0x2e2256=_0x24fda4;this[_0x2e2256(0x117)](),this[_0x2e2256(0xc2)](),this[_0x2e2256(0x121)][_0x2e2256(0xe1)]({'target':this[_0x2e2256(0x123)][_0x2e2256(0xc1)],'limiter':this[_0x2e2256(0xe0)](),'positions':Ro}),this[_0x2e2256(0xe2)][_0x2e2256(0xe8)]();}),_0x20bfff[_0x24fda4(0xf5)][_0x24fda4(0xee)](_0x1dc1f1);}if(_0x58fd92[_0x24fda4(0x137)][_0x24fda4(0xc7)]){const _0xca46bc=new _0x5edaf4(_0x26932f);_0xca46bc[_0x24fda4(0x111)]({'label':_0x5b9c86(_0x26932f,_0x24fda4(0xc5)),'icon':_0x45aff0,'withText':!0x0,'tooltip':!0x0,'class':ko,'allowMultipleFiles':!0x0}),_0xca46bc['on'](_0x24fda4(0x11d),(_0x5de25e,_0x18ed0a)=>{const _0xcaf3c4=_0x24fda4;this[_0xcaf3c4(0x106)](_0xcaf3c4(0xd3),_0x18ed0a),this[_0xcaf3c4(0x117)]();}),_0xca46bc[_0x24fda4(0xc0)]=!0x0,_0x20bfff[_0x24fda4(0xf5)][_0x24fda4(0xee)](_0xca46bc);}for(const _0x466f1b of _0x58fd92[_0x24fda4(0xf9)]){const _0x1ee888=this[_0x24fda4(0xaa)](_0x26932f,{'label':_0x466f1b[_0x24fda4(0x11b)],'icon':_0x466f1b[_0x24fda4(0xfd)]||_0x5be1c8,'type':_0x24fda4(0xd4)});_0x20bfff[_0x24fda4(0xf5)][_0x24fda4(0xee)](_0x1ee888),_0x1ee888['on'](_0x24fda4(0xd2),()=>{const _0x5bcec3=_0x24fda4;this[_0x5bcec3(0x117)](),this[_0x5bcec3(0xaf)](_0x466f1b);});}}[_0x54da88(0x12e)](_0x320216,_0xd99e60){const _0x447e78=_0x54da88;this[_0x447e78(0xe2)]=new _0x52e590(_0xd99e60),this[_0x447e78(0xe2)]['on'](_0x447e78(0x128),(_0x5ce6bb,_0x406166)=>{const _0x4f5cdb=_0x447e78;this[_0x4f5cdb(0x101)](_0x406166);}),this[_0x447e78(0xe2)]['on'](_0x447e78(0xce),()=>{const _0x5112e6=_0x447e78;this[_0x5112e6(0x138)](),this[_0x5112e6(0xf4)](),this[_0x5112e6(0xbb)][_0x5112e6(0xe1)]({'target':this[_0x5112e6(0x123)][_0x5112e6(0xc1)],'limiter':this[_0x5112e6(0xe0)](),'positions':Ro});}),this[_0x447e78(0xe2)]['on'](_0x447e78(0xb0),()=>{const _0x149197=_0x447e78;this[_0x149197(0x121)][_0x149197(0xcc)]&&this[_0x149197(0x121)][_0x149197(0xe1)]({'target':this[_0x149197(0x123)][_0x149197(0xc1)],'limiter':this[_0x149197(0xe0)](),'positions':Ro});}),_0x320216[_0x447e78(0xf5)][_0x447e78(0xee)](this[_0x447e78(0xe2)]);}[_0x54da88(0xaa)](_0x50e3f0,_0x134bf1){const _0x24238c=_0x54da88,_0x290e32=_0x24238c(0xd4)===_0x134bf1[_0x24238c(0xef)]?new SourcesBalloonButtonView(_0x50e3f0):new _0x5079e0(_0x50e3f0);return _0x290e32[_0x24238c(0x111)]({'label':_0x134bf1[_0x24238c(0x11b)],'icon':_0x134bf1[_0x24238c(0xfd)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':ko}),_0x290e32;}[_0x54da88(0xbe)](){const _0x4e7d8c=_0x54da88;this[_0x4e7d8c(0xc3)](),this[_0x4e7d8c(0x129)]();}[_0x54da88(0x129)](){const _0x4a04ae=_0x54da88;_0x256c00({'emitter':this[_0x4a04ae(0x121)],'contextElements':[this[_0x4a04ae(0x121)][_0x4a04ae(0xc1)]],'callback':()=>{const _0x5883ba=_0x4a04ae;this[_0x5883ba(0x138)]();},'activator':()=>this[_0x4a04ae(0x121)][_0x4a04ae(0xcc)]});}[_0x54da88(0xb3)](_0x56a21c){const _0xd352e1=_0x54da88,_0x442c8c=this[_0xd352e1(0xb4)];_0x442c8c[_0xd352e1(0xc8)][_0xd352e1(0x12a)]=_0x56a21c,_0x56a21c?_0x442c8c[_0xd352e1(0xeb)][_0xd352e1(0xdf)]():_0x442c8c[_0xd352e1(0xeb)][_0xd352e1(0xd8)]();}[_0x54da88(0xc3)](){const _0x1234b5=_0x54da88,{balloonView:_0x4eda10,buttonView:_0x4a44ce,hideMethod:_0x278bf4}=this[_0x1234b5(0xb4)];_0x256c00({'emitter':_0x4eda10,'contextElements':[_0x4eda10[_0x1234b5(0xc1)],_0x4a44ce[_0x1234b5(0xc1)]],'callback':()=>{_0x278bf4();},'activator':()=>_0x4a44ce[_0x1234b5(0x12a)]&&!this[_0x1234b5(0x121)][_0x1234b5(0xcc)]&&!this[_0x1234b5(0x122)][_0x1234b5(0x133)]()});}[_0x54da88(0xff)](_0x2451fa,_0x5d82be,_0xa24ce9=!0x1,_0xb5069b=!0x1){const _0x4534ed=_0x54da88,_0x915fce=_0x4534ed(0xfb)===_0x5d82be||!0x0===_0x2451fa[_0x4534ed(0x10d)],_0x2c935f=new _0x53386f(this[_0x4534ed(0xb9)],_0x2451fa,_0x915fce,_0xa24ce9,_0xb5069b);return _0x915fce||_0x2c935f['on'](_0x4534ed(0x135),()=>{const _0x262e78=_0x4534ed;this[_0x262e78(0x106)](_0x262e78(0xac),_0x2c935f['id']);}),_0x2c935f;}[_0x54da88(0xfa)](_0x5d8aba,_0x307173){const _0x1dc0b6=_0x54da88;_0x307173[_0x1dc0b6(0xee)](_0x5d8aba,0x0);}[_0x54da88(0xe4)](_0x1914f5,_0xe1003c){const _0xbe9225=_0x54da88,_0x11b740=_0xe1003c[_0xbe9225(0xc6)](_0x339c5b=>_0x339c5b['id']===_0x1914f5);_0x11b740&&_0xe1003c[_0xbe9225(0x11f)](_0x11b740);}[_0x54da88(0xfe)](){const _0x161926=_0x54da88;this[_0x161926(0x123)][_0x161926(0x12a)]?this[_0x161926(0x117)]():(this[_0x161926(0xf4)](),this[_0x161926(0xbb)][_0x161926(0xe1)]({'target':this[_0x161926(0x123)][_0x161926(0xc1)],'limiter':this[_0x161926(0xe0)](),'positions':Ro}));}[_0x54da88(0x101)](_0x58d4ca){const _0x2877ba=_0x54da88;this[_0x2877ba(0xe2)][_0x2877ba(0xc9)](),this[_0x2877ba(0x138)](),this[_0x2877ba(0x106)](_0x2877ba(0x108),_0x58d4ca);}}export class SourcesBalloonButtonView extends _0x5079e0{[_0x54da88(0x127)];constructor(_0x3b5b05){const _0x2dad07=_0x54da88;super(_0x3b5b05),this[_0x2dad07(0x111)]({'withText':!0x0,'role':_0x2dad07(0x100)}),this[_0x2dad07(0x127)]=this[_0x2dad07(0xdd)](),this[_0x2dad07(0x126)]({'attributes':{'class':[Eo]}});}[_0x54da88(0x131)](){const _0x2d577e=_0x54da88;super[_0x2d577e(0x131)](),this[_0x2d577e(0xd5)][_0x2d577e(0xee)](this[_0x2d577e(0x127)]);}[_0x54da88(0xdd)](){const _0x175f8d=_0x54da88,_0x5bfcc9=new _0x29f9d7();return _0x5bfcc9[_0x175f8d(0xf5)]=_0x503a78,_0x5bfcc9[_0x175f8d(0x126)]({'attributes':{'class':Eo+_0x175f8d(0x12f)}}),_0x5bfcc9;}}
|
|
23
|
+
const _0x4ec16c=_0x3085;(function(_0x5cca15,_0x1b76c9){const _0x1e5711=_0x3085,_0x32cc8a=_0x5cca15();while(!![]){try{const _0x5a92c0=-parseInt(_0x1e5711(0x267))/0x1+parseInt(_0x1e5711(0x23d))/0x2*(-parseInt(_0x1e5711(0x23a))/0x3)+parseInt(_0x1e5711(0x22d))/0x4+parseInt(_0x1e5711(0x24a))/0x5*(parseInt(_0x1e5711(0x21d))/0x6)+parseInt(_0x1e5711(0x207))/0x7+-parseInt(_0x1e5711(0x23b))/0x8+parseInt(_0x1e5711(0x205))/0x9*(parseInt(_0x1e5711(0x21e))/0xa);if(_0x5a92c0===_0x1b76c9)break;else _0x32cc8a['push'](_0x32cc8a['shift']());}catch(_0x34dc8b){_0x32cc8a['push'](_0x32cc8a['shift']());}}}(_0x5768,0xba762));import{BalloonPanelView as _0x1f2f8d,ButtonView as _0x21c283,clickOutsideHandler as _0x4edc5f,FileDialogButtonView as _0x357881,IconView as _0x538dbc,View as _0x24f0f1}from'ckeditor5/src/ui.js';function _0x3085(_0x12b753,_0x2eb89c){const _0x5768e0=_0x5768();return _0x3085=function(_0x308598,_0x1062ba){_0x308598=_0x308598-0x1ea;let _0x25d310=_0x5768e0[_0x308598];return _0x25d310;},_0x3085(_0x12b753,_0x2eb89c);}import{IconBrowseFiles as _0x40af6b,IconDocument as _0x44575e,IconDocumentOutline as _0x22d455,IconDropdownArrow as _0x55ee0d,IconLink as _0x453cdb,IconPaperClip as _0x55e66a}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x213c6e}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x2b7c93}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x1e8afb}from'./aichatchipsoverflowmanager.js';function _0x5768(){const _0x4f84ad=['isLoading','removeContextItemChip','_setAddContextButtonEnabled','_addContextBalloonConfig','sources','_urlBalloonPanelView','1039694IYpXie','tooltip','overflowChips','submitUrl','menuitem','_createContextButton','ck-ai-chat-context-controls','bodyCollection','showUrlBalloonPanel','_urlInputView','removeContextItem','_setupAllBalloonClickOutsideHandlers','defaultPositions','set','_currentContextsChips','populateSourceResourceBalloon','_createUrlBalloonPanelView','document','ck-ai-chat-controls_context_show-more-button','AI_CHAT_CONTEXT_FILE_LABEL','_createAddContextBalloonPanelView','closest','addUrlToContext','clearCurrentContextItems','_setBalloonPanelContent','div','remove','isHidden','setTemplate','_createAddContextButtonView','balloonView','_conversationContextsChips','pin','ck-ai-chat-context-controls__balloon-button','conversation','ck-reset_all-excluded','source','ck-ai-chat-context-chips-wrapper-balloon','type','current','northArrowSouthWest','locale','body','_bindEventHandlers','files','fire','94491ThGMHv','AI_CHAT_CONTEXT_URL_LABEL','786849VQhbrB','add','urls','setConversationContext','isOn','enabled','_createResourcesBalloonView','addContextButtonView','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__url-balloon-panel','bind','AI_CHAT_CONTEXT_ADD_CONTEXT','element','isVisible','_addContextBalloonPanelView','ck-ai-chat','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','northArrowSouth','ck-ai-chat-context-controls__add-context-button','execute','showSourceResourcesBalloon','searchInputVisibleFrom','114mQWDkk','1310dTSYcq','reorganizeChips','clearConversationContextItems','_removeContextFromCollection','closeSourceResourceBalloon','_createBaseBalloonPanel','icon','isReadOnly','_getLimiterElement','show','hideUrlBalloonPanel','_setupAddContextBalloonClickOutsideHandler','extendTemplate','_showSourceResourcesBalloon','addDocumentToContext','4897972UJGqWW','setContainerElement','__arrow','addResourceToContext','ck-ai-chat-context-controls__show-more-balloon-panel','addFileToContext','arrowView','southArrowNorthEast','northArrowSouthEast','_handleUrlSubmit','hideAddContextBalloonPanel','_toggleAddContextBalloon','find','6suTzsj','8168144HglEtD','content','677356sDVmzp','loadSourceResources','done','_addUrlContent','_handleAddContextButtonClick','render','ck-ai-chat-context-controls__balloon-button-source','ck-ai-chat-context-controls__pending-contexts','setAddContextOptions','_createArrowView','southArrowNorth','destroy','ck-ai-chat-controls-button','207775iavBUE','_resourcesBalloonView','_overflowManager','addContextItem','isAnyResourceBalloonVisible','southArrowNorthWest','setContextItemLoading','isEnabled','clear','children','_setupTemplate','buttonView','updateResourceState','focus','hide','createCollection','showAddContextBalloonPanel','_createBalloonButton','_addContextToCollection','cancel','refreshBalloon','ck-ai-chat-context-controls__add-context-balloon-panel','label'];_0x5768=function(){return _0x4f84ad;};return _0x5768();}import{getTranslation as _0x1760be}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x92382c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4ec16c(0x22c),_0x4ec16c(0x232),_0x4ec16c(0x1ed),_0x4ec16c(0x230),_0x4ec16c(0x271),_0x4ec16c(0x23e)];const po=_0x4ec16c(0x26d),Bo=_0x4ec16c(0x244),bo=_0x4ec16c(0x25f),To=_0x4ec16c(0x219),Ao=_0x4ec16c(0x210),ko=_0x4ec16c(0x1f8),Eo=_0x4ec16c(0x243),vo=_0x4ec16c(0x249),Vo=_0x4ec16c(0x1fc),fo=_0x4ec16c(0x279),Io=_0x4ec16c(0x231),Po=_0x4ec16c(0x216),Ro=[_0x1f2f8d[_0x4ec16c(0x273)][_0x4ec16c(0x1ff)],_0x1f2f8d[_0x4ec16c(0x273)][_0x4ec16c(0x218)],_0x1f2f8d[_0x4ec16c(0x273)][_0x4ec16c(0x235)],_0x1f2f8d[_0x4ec16c(0x273)][_0x4ec16c(0x24f)],_0x1f2f8d[_0x4ec16c(0x273)][_0x4ec16c(0x247)],_0x1f2f8d[_0x4ec16c(0x273)][_0x4ec16c(0x234)]];export class AIChatContextPanelView extends _0x24f0f1{[_0x4ec16c(0x20e)];[_0x4ec16c(0x275)]=this[_0x4ec16c(0x259)]();[_0x4ec16c(0x1f6)]=this[_0x4ec16c(0x259)]();[_0x4ec16c(0x24c)];[_0x4ec16c(0x215)];[_0x4ec16c(0x266)];[_0x4ec16c(0x270)];[_0x4ec16c(0x24b)];[_0x4ec16c(0x264)];[_0x4ec16c(0x26e)];constructor(_0x1e4d07,_0x1151e7){const _0x21bf82=_0x4ec16c;super(_0x1e4d07),this[_0x21bf82(0x26e)]=_0x1151e7[_0x21bf82(0x26e)],this[_0x21bf82(0x275)]=this[_0x21bf82(0x259)](),this[_0x21bf82(0x1f6)]=this[_0x21bf82(0x259)](),this[_0x21bf82(0x20e)]=this[_0x21bf82(0x1f4)](_0x1e4d07),this[_0x21bf82(0x215)]=this[_0x21bf82(0x1eb)](_0x1e4d07),this[_0x21bf82(0x266)]=this[_0x21bf82(0x277)](_0x1e4d07),this[_0x21bf82(0x24b)]=this[_0x21bf82(0x20d)](_0x1e4d07,_0x1151e7);const _0x513c51={'cssClasses':{'showMoreButton':fo,'showMoreBalloon':Io,'overflowContainer':Vo,'controlsButton':vo}};this[_0x21bf82(0x24c)]=new _0x1e8afb(_0x1e4d07,this[_0x21bf82(0x275)],_0x513c51,this[_0x21bf82(0x26e)],this),this[_0x21bf82(0x264)]={'buttonView':this[_0x21bf82(0x20e)],'balloonView':this[_0x21bf82(0x215)],'hideMethod':this[_0x21bf82(0x237)][_0x21bf82(0x211)](this),'showMethod':this[_0x21bf82(0x25a)][_0x21bf82(0x211)](this)},this[_0x21bf82(0x254)](),this[_0x21bf82(0x202)]();}[_0x4ec16c(0x242)](){const _0x3dfabd=_0x4ec16c;super[_0x3dfabd(0x242)](),this[_0x3dfabd(0x272)](),this[_0x3dfabd(0x24c)][_0x3dfabd(0x22e)](this[_0x3dfabd(0x213)]),this[_0x3dfabd(0x24c)][_0x3dfabd(0x21f)]();}[_0x4ec16c(0x248)](){const _0x1a4ae0=_0x4ec16c;super[_0x1a4ae0(0x248)](),this[_0x1a4ae0(0x24c)][_0x1a4ae0(0x248)](),this[_0x1a4ae0(0x24b)][_0x1a4ae0(0x248)]();}[_0x4ec16c(0x24d)](_0x1eeefc,_0x3dcabe){const _0x10d08e=_0x4ec16c,_0x3fd8ec=this[_0x10d08e(0x26c)](_0x1eeefc,_0x10d08e(0x1fe),!0x0,_0x3dcabe);this[_0x10d08e(0x25c)](_0x3fd8ec,this[_0x10d08e(0x275)]),this[_0x10d08e(0x24c)][_0x10d08e(0x21f)]();}[_0x4ec16c(0x271)](_0xd528f4){const _0x13a247=_0x4ec16c;this[_0x13a247(0x221)](_0xd528f4,this[_0x13a247(0x275)]),this[_0x13a247(0x221)](_0xd528f4,this[_0x13a247(0x24c)][_0x13a247(0x269)]),this[_0x13a247(0x24c)][_0x13a247(0x21f)]();}[_0x4ec16c(0x250)](_0x2c9ced,_0x557d4e){const _0x548e6d=_0x4ec16c;let _0x5332ee=this[_0x548e6d(0x275)][_0x548e6d(0x239)](_0x480c1e=>_0x480c1e['id']===_0x2c9ced);_0x5332ee||(_0x5332ee=this[_0x548e6d(0x24c)][_0x548e6d(0x269)][_0x548e6d(0x239)](_0x704c98=>_0x704c98['id']===_0x2c9ced)),_0x5332ee&&(_0x5332ee[_0x548e6d(0x261)]=_0x557d4e);}[_0x4ec16c(0x20a)](_0xe2f3cd){const _0x2ac05f=_0x4ec16c;this[_0x2ac05f(0x1f6)][_0x2ac05f(0x252)]();for(const _0x5ae5f1 of _0xe2f3cd){const _0x593157=this[_0x2ac05f(0x26c)](_0x5ae5f1,_0x2ac05f(0x1f9),!0x1,!0x1);this[_0x2ac05f(0x25c)](_0x593157,this[_0x2ac05f(0x1f6)]);}}[_0x4ec16c(0x1ee)](){const _0x937c0d=_0x4ec16c;this[_0x937c0d(0x275)][_0x937c0d(0x252)](),this[_0x937c0d(0x24c)][_0x937c0d(0x252)]();}[_0x4ec16c(0x220)](){const _0x54284d=_0x4ec16c;this[_0x54284d(0x1f6)][_0x54284d(0x252)]();}[_0x4ec16c(0x256)](_0x49abd5,_0x312b2a,_0x36a5d8){const _0x4b1a41=_0x4ec16c;this[_0x4b1a41(0x24b)][_0x4b1a41(0x256)](_0x49abd5,_0x312b2a,_0x36a5d8);}[_0x4ec16c(0x237)](){const _0xc22956=_0x4ec16c;this[_0xc22956(0x238)](!0x1);}[_0x4ec16c(0x25a)](){const _0x2cc675=_0x4ec16c;this[_0x2cc675(0x238)](!0x0);}[_0x4ec16c(0x228)](){const _0x2070bd=_0x4ec16c;this[_0x2070bd(0x266)][_0x2070bd(0x258)](),this[_0x2070bd(0x20e)][_0x2070bd(0x20b)]=!0x1,this[_0x2070bd(0x270)]&&this[_0x2070bd(0x270)][_0x2070bd(0x252)]();}[_0x4ec16c(0x26f)](){const _0x25892b=_0x4ec16c;this[_0x25892b(0x266)][_0x25892b(0x227)](),this[_0x25892b(0x20e)][_0x25892b(0x20b)]=!0x0;}[_0x4ec16c(0x22b)](_0x384953){const _0x2d0f2d=_0x4ec16c;this[_0x2d0f2d(0x24b)][_0x2d0f2d(0x21b)](_0x384953),this[_0x2d0f2d(0x20e)][_0x2d0f2d(0x20b)]=!0x0;}[_0x4ec16c(0x276)](_0x247669,_0x1e647e,_0x37ae99,_0x3f72d0){const _0x442514=_0x4ec16c;this[_0x442514(0x24b)][_0x442514(0x276)](_0x247669,_0x37ae99,_0x3f72d0);}[_0x4ec16c(0x222)](_0x589cf7){const _0x315a37=_0x4ec16c;this[_0x315a37(0x24b)][_0x315a37(0x222)](_0x589cf7),this[_0x315a37(0x20e)][_0x315a37(0x20b)]=!0x1;}[_0x4ec16c(0x245)](_0x2f4eea){const _0xf17249=_0x4ec16c;this[_0xf17249(0x1ef)](this[_0xf17249(0x215)],this[_0xf17249(0x200)],_0x2f4eea),this[_0xf17249(0x263)](_0x2f4eea);}[_0x4ec16c(0x263)](_0x1c88c7){const _0x4fe61b=_0x4ec16c,_0x41694b=!_0x1c88c7[_0x4fe61b(0x278)][_0x4fe61b(0x1f2)]&&_0x1c88c7[_0x4fe61b(0x278)][_0x4fe61b(0x20c)],_0x2d4d35=_0x1c88c7[_0x4fe61b(0x209)][_0x4fe61b(0x20c)],_0x1088f4=_0x1c88c7[_0x4fe61b(0x203)][_0x4fe61b(0x20c)];this[_0x4fe61b(0x20e)][_0x4fe61b(0x251)]=_0x41694b||_0x2d4d35||_0x1088f4;}[_0x4ec16c(0x254)](){const _0x274f1e=_0x4ec16c;this[_0x274f1e(0x1f3)]({'tag':_0x274f1e(0x1f0),'attributes':{'class':[po,_0x274f1e(0x1fa)]},'children':[{'tag':_0x274f1e(0x1f0),'attributes':{'class':Bo},'children':this[_0x274f1e(0x275)]}]});}[_0x4ec16c(0x202)](){const _0xccecd3=_0x4ec16c;this[_0xccecd3(0x20e)]['on'](_0xccecd3(0x21a),()=>{const _0x4ebe18=_0xccecd3;this[_0x4ebe18(0x241)]();});}[_0x4ec16c(0x1f4)](_0x3a1e44){const _0x5d6ab5=_0x4ec16c,_0x4e3851=new _0x21c283(_0x3a1e44);return _0x4e3851[_0x5d6ab5(0x274)]({'label':_0x1760be(_0x3a1e44,_0x5d6ab5(0x212)),'class':vo+'\x20'+To,'icon':_0x55e66a,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x4e3851;}[_0x4ec16c(0x1eb)](_0x5071a0){const _0x5906ae=_0x4ec16c;return this[_0x5906ae(0x223)](_0x5071a0,bo);}[_0x4ec16c(0x277)](_0x40974d){const _0x471cc3=_0x4ec16c,_0x21f9a8=this[_0x471cc3(0x223)](_0x40974d,Ao);return this[_0x471cc3(0x240)](_0x21f9a8,_0x40974d),_0x21f9a8;}[_0x4ec16c(0x20d)](_0x3dbdf1,_0x2edd5f){const _0x225fc5=_0x4ec16c,_0xf3793a={'searchInputVisibleFrom':_0x2edd5f[_0x225fc5(0x21c)],'onBackToContext':()=>{const _0x10aafa=_0x225fc5;this[_0x10aafa(0x25a)](),this[_0x10aafa(0x215)][_0x10aafa(0x1f7)]({'target':this[_0x10aafa(0x20e)][_0x10aafa(0x213)],'limiter':this[_0x10aafa(0x226)](),'positions':Ro});},'onResourceSelected':(_0x3e7228,_0x24c55b)=>{const _0x3b73a4=_0x225fc5;this[_0x3b73a4(0x204)](_0x3b73a4(0x230),{'source':_0x3e7228,'resource':_0x24c55b});},'onLoadSourceResources':_0x13e787=>{const _0x1646c0=_0x225fc5;this[_0x1646c0(0x204)](_0x1646c0(0x23e),_0x13e787);},'onBalloonClosed':()=>{const _0x2cf0d0=_0x225fc5;this[_0x2cf0d0(0x20e)][_0x2cf0d0(0x20b)]=!0x1;},'getLimiterElement':()=>this[_0x225fc5(0x226)](),'getTargetElement':()=>this[_0x225fc5(0x20e)][_0x225fc5(0x213)]};return new _0x92382c(_0x3dbdf1,_0x2edd5f[_0x225fc5(0x26e)],_0xf3793a);}[_0x4ec16c(0x226)](){const _0x1fefb6=_0x4ec16c;return this[_0x1fefb6(0x213)]?.[_0x1fefb6(0x1ec)]('.'+Po)||document[_0x1fefb6(0x201)];}[_0x4ec16c(0x223)](_0xf5d201,_0x1fce20){const _0x52493d=_0x4ec16c,_0x1ca44b=new _0x1f2f8d(_0xf5d201);return _0x1ca44b[_0x52493d(0x22a)]({'attributes':{'class':_0x1fce20}}),this[_0x52493d(0x26e)][_0x52493d(0x208)](_0x1ca44b),_0x1ca44b;}[_0x4ec16c(0x1ef)](_0x3b2353,_0x5346e9,_0x9b0cf2){const _0x2aa47d=_0x4ec16c;if(_0x3b2353[_0x2aa47d(0x23c)][_0x2aa47d(0x252)](),!_0x9b0cf2[_0x2aa47d(0x278)][_0x2aa47d(0x1f2)]&&_0x9b0cf2[_0x2aa47d(0x278)][_0x2aa47d(0x20c)]){const _0x48bd99=this[_0x2aa47d(0x25b)](_0x5346e9,{'label':_0x1760be(_0x5346e9,_0x2aa47d(0x217)),'icon':_0x44575e});_0x48bd99['on'](_0x2aa47d(0x21a),()=>{const _0xf5818e=_0x2aa47d;this[_0xf5818e(0x204)](_0xf5818e(0x22c)),this[_0xf5818e(0x237)]();}),_0x3b2353[_0x2aa47d(0x23c)][_0x2aa47d(0x208)](_0x48bd99);}if(_0x9b0cf2[_0x2aa47d(0x209)][_0x2aa47d(0x20c)]){const _0x4233d4=this[_0x2aa47d(0x25b)](_0x5346e9,{'label':_0x1760be(_0x5346e9,_0x2aa47d(0x206)),'icon':_0x453cdb});_0x4233d4['on'](_0x2aa47d(0x21a),()=>{const _0x459790=_0x2aa47d;this[_0x459790(0x237)](),this[_0x459790(0x26f)](),this[_0x459790(0x266)][_0x459790(0x1f7)]({'target':this[_0x459790(0x20e)][_0x459790(0x213)],'limiter':this[_0x459790(0x226)](),'positions':Ro}),this[_0x459790(0x270)][_0x459790(0x257)]();}),_0x3b2353[_0x2aa47d(0x23c)][_0x2aa47d(0x208)](_0x4233d4);}if(_0x9b0cf2[_0x2aa47d(0x203)][_0x2aa47d(0x20c)]){const _0x147d51=new _0x357881(_0x5346e9);_0x147d51[_0x2aa47d(0x274)]({'label':_0x1760be(_0x5346e9,_0x2aa47d(0x1ea)),'icon':_0x40af6b,'withText':!0x0,'tooltip':!0x0,'class':ko,'allowMultipleFiles':!0x0}),_0x147d51['on'](_0x2aa47d(0x23f),(_0x5e174f,_0x1a5c24)=>{const _0x5c694e=_0x2aa47d;this[_0x5c694e(0x204)](_0x5c694e(0x232),_0x1a5c24),this[_0x5c694e(0x237)]();}),_0x147d51[_0x2aa47d(0x268)]=!0x0,_0x3b2353[_0x2aa47d(0x23c)][_0x2aa47d(0x208)](_0x147d51);}for(const _0x176f3a of _0x9b0cf2[_0x2aa47d(0x265)]){const _0x45f488=this[_0x2aa47d(0x25b)](_0x5346e9,{'label':_0x176f3a[_0x2aa47d(0x260)],'icon':_0x176f3a[_0x2aa47d(0x224)]||_0x22d455,'type':_0x2aa47d(0x1fb)});_0x3b2353[_0x2aa47d(0x23c)][_0x2aa47d(0x208)](_0x45f488),_0x45f488['on'](_0x2aa47d(0x21a),()=>{const _0x4a0c26=_0x2aa47d;this[_0x4a0c26(0x237)](),this[_0x4a0c26(0x22b)](_0x176f3a);});}}[_0x4ec16c(0x240)](_0x716684,_0x14be97){const _0x52811b=_0x4ec16c;this[_0x52811b(0x270)]=new _0x2b7c93(_0x14be97),this[_0x52811b(0x270)]['on'](_0x52811b(0x26a),(_0x5a74af,_0x54d6b1)=>{const _0x42a13b=_0x52811b;this[_0x42a13b(0x236)](_0x54d6b1);}),this[_0x52811b(0x270)]['on'](_0x52811b(0x25d),()=>{const _0x4210d3=_0x52811b;this[_0x4210d3(0x228)](),this[_0x4210d3(0x25a)](),this[_0x4210d3(0x215)][_0x4210d3(0x1f7)]({'target':this[_0x4210d3(0x20e)][_0x4210d3(0x213)],'limiter':this[_0x4210d3(0x226)](),'positions':Ro});}),this[_0x52811b(0x270)]['on'](_0x52811b(0x25e),()=>{const _0x4f5f9a=_0x52811b;this[_0x4f5f9a(0x266)][_0x4f5f9a(0x214)]&&this[_0x4f5f9a(0x266)][_0x4f5f9a(0x1f7)]({'target':this[_0x4f5f9a(0x20e)][_0x4f5f9a(0x213)],'limiter':this[_0x4f5f9a(0x226)](),'positions':Ro});}),_0x716684[_0x52811b(0x23c)][_0x52811b(0x208)](this[_0x52811b(0x270)]);}[_0x4ec16c(0x25b)](_0x770a37,_0x21aeeb){const _0x48d200=_0x4ec16c,_0x1515e2=_0x48d200(0x1fb)===_0x21aeeb[_0x48d200(0x1fd)]?new SourcesBalloonButtonView(_0x770a37):new _0x21c283(_0x770a37);return _0x1515e2[_0x48d200(0x274)]({'label':_0x21aeeb[_0x48d200(0x260)],'icon':_0x21aeeb[_0x48d200(0x224)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':ko}),_0x1515e2;}[_0x4ec16c(0x272)](){const _0x162366=_0x4ec16c;this[_0x162366(0x229)](),this[_0x162366(0x20f)]();}[_0x4ec16c(0x20f)](){const _0x23198c=_0x4ec16c;_0x4edc5f({'emitter':this[_0x23198c(0x266)],'contextElements':[this[_0x23198c(0x266)][_0x23198c(0x213)]],'callback':()=>{const _0x44fcfc=_0x23198c;this[_0x44fcfc(0x228)]();},'activator':()=>this[_0x23198c(0x266)][_0x23198c(0x214)]});}[_0x4ec16c(0x238)](_0x1d2bfe){const _0x2e0bc5=_0x4ec16c,_0x3b850a=this[_0x2e0bc5(0x264)];_0x3b850a[_0x2e0bc5(0x255)][_0x2e0bc5(0x20b)]=_0x1d2bfe,_0x1d2bfe?_0x3b850a[_0x2e0bc5(0x1f5)][_0x2e0bc5(0x227)]():_0x3b850a[_0x2e0bc5(0x1f5)][_0x2e0bc5(0x258)]();}[_0x4ec16c(0x229)](){const _0x1089fe=_0x4ec16c,{balloonView:_0x552941,buttonView:_0x95bb06,hideMethod:_0x1b57a8}=this[_0x1089fe(0x264)];_0x4edc5f({'emitter':_0x552941,'contextElements':[_0x552941[_0x1089fe(0x213)],_0x95bb06[_0x1089fe(0x213)]],'callback':()=>{_0x1b57a8();},'activator':()=>_0x95bb06[_0x1089fe(0x20b)]&&!this[_0x1089fe(0x266)][_0x1089fe(0x214)]&&!this[_0x1089fe(0x24b)][_0x1089fe(0x24e)]()});}[_0x4ec16c(0x26c)](_0xbce479,_0x4c8582,_0x5ef06b=!0x1,_0x55799f=!0x1){const _0x5f1dc7=_0x4ec16c,_0x497b48=_0x5f1dc7(0x1f9)===_0x4c8582||!0x0===_0xbce479[_0x5f1dc7(0x225)],_0x46d613=new _0x213c6e(this[_0x5f1dc7(0x200)],_0xbce479,_0x497b48,_0x5ef06b,_0x55799f);return _0x497b48||_0x46d613['on'](_0x5f1dc7(0x262),()=>{const _0x2a7fc7=_0x5f1dc7;this[_0x2a7fc7(0x204)](_0x2a7fc7(0x271),_0x46d613['id']);}),_0x46d613;}[_0x4ec16c(0x25c)](_0x69007b,_0x4dff2e){const _0x8cd651=_0x4ec16c;_0x4dff2e[_0x8cd651(0x208)](_0x69007b,0x0);}[_0x4ec16c(0x221)](_0x1baf71,_0x10b423){const _0x1ecd63=_0x4ec16c,_0x437c60=_0x10b423[_0x1ecd63(0x239)](_0x4e4732=>_0x4e4732['id']===_0x1baf71);_0x437c60&&_0x10b423[_0x1ecd63(0x1f1)](_0x437c60);}[_0x4ec16c(0x241)](){const _0x2f8aa6=_0x4ec16c;this[_0x2f8aa6(0x20e)][_0x2f8aa6(0x20b)]?this[_0x2f8aa6(0x237)]():(this[_0x2f8aa6(0x25a)](),this[_0x2f8aa6(0x215)][_0x2f8aa6(0x1f7)]({'target':this[_0x2f8aa6(0x20e)][_0x2f8aa6(0x213)],'limiter':this[_0x2f8aa6(0x226)](),'positions':Ro}));}[_0x4ec16c(0x236)](_0xfa32aa){const _0x4cb39c=_0x4ec16c;this[_0x4cb39c(0x270)][_0x4cb39c(0x252)](),this[_0x4cb39c(0x228)](),this[_0x4cb39c(0x204)](_0x4cb39c(0x1ed),_0xfa32aa);}}export class SourcesBalloonButtonView extends _0x21c283{[_0x4ec16c(0x233)];constructor(_0x3c4f6e){const _0x3de829=_0x4ec16c;super(_0x3c4f6e),this[_0x3de829(0x274)]({'withText':!0x0,'role':_0x3de829(0x26b)}),this[_0x3de829(0x233)]=this[_0x3de829(0x246)](),this[_0x3de829(0x22a)]({'attributes':{'class':[Eo]}});}[_0x4ec16c(0x242)](){const _0x2057c0=_0x4ec16c;super[_0x2057c0(0x242)](),this[_0x2057c0(0x253)][_0x2057c0(0x208)](this[_0x2057c0(0x233)]);}[_0x4ec16c(0x246)](){const _0x2e0ad9=_0x4ec16c,_0x10fc76=new _0x538dbc();return _0x10fc76[_0x2e0ad9(0x23c)]=_0x55ee0d,_0x10fc76[_0x2e0ad9(0x22a)]({'attributes':{'class':Eo+_0x2e0ad9(0x22f)}}),_0x10fc76;}}
|