@ckeditor/ckeditor5-ai 47.0.0-alpha.7 → 47.0.0-alpha.8
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 +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.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-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.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/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.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/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.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/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.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/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.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 +93 -5
- package/dist/index.css +118 -5
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/translations/af.po +224 -0
- package/lang/translations/ar.po +232 -0
- package/lang/translations/ast.po +224 -0
- package/lang/translations/az.po +224 -0
- package/lang/translations/be.po +226 -0
- package/lang/translations/bg.po +224 -0
- package/lang/translations/bn.po +224 -0
- package/lang/translations/bs.po +226 -0
- package/lang/translations/ca.po +224 -0
- package/lang/translations/cs.po +226 -0
- package/lang/translations/da.po +224 -0
- package/lang/translations/de-ch.po +224 -0
- package/lang/translations/de.po +224 -0
- package/lang/translations/el.po +224 -0
- package/lang/translations/en-au.po +224 -0
- package/lang/translations/en-gb.po +224 -0
- package/lang/translations/en.po +224 -0
- package/lang/translations/eo.po +224 -0
- package/lang/translations/es-co.po +224 -0
- package/lang/translations/es.po +224 -0
- package/lang/translations/et.po +224 -0
- package/lang/translations/eu.po +224 -0
- package/lang/translations/fa.po +222 -0
- package/lang/translations/fi.po +224 -0
- package/lang/translations/fr.po +224 -0
- package/lang/translations/gl.po +224 -0
- package/lang/translations/gu.po +224 -0
- package/lang/translations/he.po +224 -0
- package/lang/translations/hi.po +224 -0
- package/lang/translations/hr.po +226 -0
- package/lang/translations/hu.po +224 -0
- package/lang/translations/hy.po +224 -0
- package/lang/translations/id.po +222 -0
- package/lang/translations/it.po +224 -0
- package/lang/translations/ja.po +222 -0
- package/lang/translations/jv.po +224 -0
- package/lang/translations/kk.po +224 -0
- package/lang/translations/km.po +222 -0
- package/lang/translations/kn.po +224 -0
- package/lang/translations/ko.po +222 -0
- package/lang/translations/ku.po +224 -0
- package/lang/translations/lt.po +226 -0
- package/lang/translations/lv.po +226 -0
- package/lang/translations/ms.po +222 -0
- package/lang/translations/nb.po +224 -0
- package/lang/translations/ne.po +224 -0
- package/lang/translations/nl.po +224 -0
- package/lang/translations/no.po +224 -0
- package/lang/translations/oc.po +224 -0
- package/lang/translations/pl.po +226 -0
- package/lang/translations/pt-br.po +224 -0
- package/lang/translations/pt.po +224 -0
- package/lang/translations/ro.po +226 -0
- package/lang/translations/ru.po +226 -0
- package/lang/translations/si.po +224 -0
- package/lang/translations/sk.po +226 -0
- package/lang/translations/sl.po +228 -0
- package/lang/translations/sq.po +224 -0
- package/lang/translations/sr-latn.po +226 -0
- package/lang/translations/sr.po +226 -0
- package/lang/translations/sv.po +224 -0
- package/lang/translations/th.po +222 -0
- package/lang/translations/ti.po +224 -0
- package/lang/translations/tk.po +224 -0
- package/lang/translations/tr.po +224 -0
- package/lang/translations/tt.po +222 -0
- package/lang/translations/ug.po +222 -0
- package/lang/translations/uk.po +226 -0
- package/lang/translations/ur.po +224 -0
- package/lang/translations/uz.po +224 -0
- package/lang/translations/vi.po +222 -0
- package/lang/translations/zh-cn.po +222 -0
- package/lang/translations/zh.po +222 -0
- 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.d.ts +12 -4
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +0 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +0 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +1 -227
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.d.ts +3 -0
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +0 -30
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.d.ts +0 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.d.ts +0 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aiconfig.d.ts +47 -9
- package/src/aicore/aiconnector.d.ts +2 -3
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.d.ts +0 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.d.ts +0 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +164 -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.d.ts +0 -49
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.d.ts +0 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.d.ts +29 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +0 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +1 -2
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +0 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +0 -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.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +0 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.d.ts +6 -16
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/index.js +1 -1
- package/theme/aichat/aichat.css +1 -0
- package/theme/aichat/aichatfeed.css +39 -0
- package/theme/aieditorintegration/aitogglebutton.css +23 -0
- package/theme/aiquickactions/aiquickactions.css +23 -4
- package/theme/aireviewmode/aireviewmode.css +23 -0
- package/theme/common/aibutton.css +1 -1
- package/theme/common/aitrackchanges.css +13 -0
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x483829=_0xde92;(function(_0x393971,_0x264d82){const _0x5c8c17=_0xde92,_0x2c488b=_0x393971();while(!![]){try{const _0x126a8d=parseInt(_0x5c8c17(0xc3))/0x1+parseInt(_0x5c8c17(0x76))/0x2+parseInt(_0x5c8c17(0x8c))/0x3+-parseInt(_0x5c8c17(0xb7))/0x4*(parseInt(_0x5c8c17(0x7e))/0x5)+-parseInt(_0x5c8c17(0xab))/0x6*(-parseInt(_0x5c8c17(0x8a))/0x7)+parseInt(_0x5c8c17(0x9f))/0x8+-parseInt(_0x5c8c17(0x8d))/0x9*(parseInt(_0x5c8c17(0xcb))/0xa);if(_0x126a8d===_0x264d82)break;else _0x2c488b['push'](_0x2c488b['shift']());}catch(_0x37c62e){_0x2c488b['push'](_0x2c488b['shift']());}}}(_0xc0f4,0xc75a9));function _0xc0f4(){const _0x2b58ad=['pop','body','length','1280810yWSvFI','set','zIndex','_restoreAncestorVisibility','block\x20!important','innerWidth','_visibleChips','from','2126640QISHPe','_createShowMoreBalloonPanelView','auto','isVisible','_parentView','children','observe','_ancestorsToRestore','hidden','width','_containerElement','_updateShowMoreButtonVisibility','render','appendChild','_applyCalculationStyles','_showMoreButtonView','abs','toLowerCase','_showMoreBalloonPanelView','none','50px','_createShowMoreButton','createElement','button','_createContainerElements','_findTargetContainer','pointerEvents','_intersectionObserver','maxVisibleRows','setTemplate','disconnect','display','slice','opacity','0px','clientHeight','clientWidth','clear','right','label','visibility','element','showMoreButtonView','position','_updateOverflowUI','_createShowMoreButtonView','filter','showBalloonPanel','_updateBalloonContent','showMoreBalloon','content','boxSizing','getBoundingClientRect','hideBalloonPanel','add','_calculateContainerWidth','calculationContainer','height','_distributeChips','remove','_handleShowMoreButtonClick','pin','isOn','2621570FDEDzm','controlsButton','_locale','_renderChipsAndCountRows','_overflowChips','style','undefined','overflowChips','25EIykxY','_createMockButton','visible','innerHeight','_applyOverflowResults','showMoreButton','border-box','block','forEach','_calculateOverflowInContainer','_testButtonFit','visible\x20!important','7QwZCoe','classList','4717653JCOebw','162KTqlIj','isConnected','bottom','setContainerElement','left','300px','.ck-ai-chat','_setupVisibilityObserver','_config','_pendingCalculation','div','offsetWidth','-9999px','_createCalculationContainer','parentElement','top','execute','isIntersecting','3078624hHllBN','absolute','documentElement','ck-calculation-container','cloneNode','reorganizeChips','className','_repinBalloonPanel','hide','overflowContainer','querySelector','push','4020396iQYQHn','tagName','_targetContainer','getComputedStyle','_isContainerVisible','rowDetectionTolerance','some','includes','extendTemplate','+\x201','disableAnimationOnEnter','_bodyCollection','459628bJNYkm','_checkAndHandleOverflow','destroy','innerHTML','show','textContent','cssClasses','showMoreLabelPrefix','_makeAncestorsVisible'];_0xc0f4=function(){return _0x2b58ad;};return _0xc0f4();}import{View as _0x2cb2c6,BalloonPanelView as _0x2eace9,ButtonView as _0x3c95e8,clickOutsideHandler as _0x4af2b1}from'ckeditor5/src/ui.js';import{Collection as _0x169b08}from'ckeditor5/src/utils.js';const dn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},bn=_0x483829(0x92);function _0xde92(_0x500072,_0x2f3014){const _0xc0f4bd=_0xc0f4();return _0xde92=function(_0xde921d,_0x34c510){_0xde921d=_0xde921d-0x68;let _0x5e3100=_0xc0f4bd[_0xde921d];return _0x5e3100;},_0xde92(_0x500072,_0x2f3014);}export class AIChatChipsOverflowManager{[_0x483829(0x78)];[_0x483829(0x95)];[_0x483829(0xc9)];[_0x483829(0x7a)];[_0x483829(0xda)]=null;[_0x483829(0xdd)]=null;[_0x483829(0xd5)]=null;[_0x483829(0xb6)];[_0x483829(0xcf)]=null;[_0x483829(0xe6)]=null;[_0x483829(0x96)]=!0x1;constructor(_0x59c991,_0x55c4d9,_0x4461d4,_0xf0f49a,_0x4b7240){const _0x388ac9=_0x483829;this[_0x388ac9(0x78)]=_0x59c991,this[_0x388ac9(0xc9)]=_0x55c4d9,this[_0x388ac9(0x95)]={...dn,..._0x4461d4,'cssClasses':{'controlsButton':'','calculationContainer':_0x388ac9(0xa2),..._0x4461d4[_0x388ac9(0xbd)]}},this[_0x388ac9(0x7a)]=new _0x169b08(),this[_0x388ac9(0xb6)]=_0xf0f49a,this[_0x388ac9(0xcf)]=_0x4b7240||null;}[_0x483829(0x90)](_0x3e2459){const _0x35e1a5=_0x483829;this[_0x35e1a5(0xe6)]&&(this[_0x35e1a5(0xe6)][_0x35e1a5(0xe9)](),this[_0x35e1a5(0xe6)]=null),this[_0x35e1a5(0xd5)]=_0x3e2459,this[_0x35e1a5(0x94)]();}get[_0x483829(0xf5)](){const _0x9388d5=_0x483829;return this[_0x9388d5(0xda)];}get[_0x483829(0x7d)](){const _0x8075da=_0x483829;return this[_0x8075da(0x7a)];}[_0x483829(0xa4)](){requestAnimationFrame(()=>{const _0xf00231=_0xde92;this[_0xf00231(0xb8)]();});}[_0x483829(0xfa)](){const _0x13e179=_0x483829;this[_0x13e179(0xda)]&&this[_0x13e179(0xdd)]&&(this[_0x13e179(0xfb)](),this[_0x13e179(0xda)][_0x13e179(0x75)]=!0x0,this[_0x13e179(0xdd)][_0x13e179(0xbb)](),this[_0x13e179(0xdd)][_0x13e179(0x74)]({'target':this[_0x13e179(0xda)][_0x13e179(0xf4)],'limiter':document[_0x13e179(0xa9)](_0x13e179(0x93))}));}[_0x483829(0x6c)](){const _0x23ecfb=_0x483829;this[_0x23ecfb(0xda)]&&this[_0x23ecfb(0xdd)]&&(this[_0x23ecfb(0xda)][_0x23ecfb(0x75)]=!0x1,this[_0x23ecfb(0xdd)][_0x23ecfb(0xa7)]());}[_0x483829(0xf0)](){const _0x1a798f=_0x483829;this[_0x1a798f(0x7a)][_0x1a798f(0xf0)](),this[_0x1a798f(0x6c)](),this[_0x1a798f(0xd6)](),this[_0x1a798f(0xda)]&&(this[_0x1a798f(0xda)][_0x1a798f(0xf2)]=''),this[_0x1a798f(0xdd)]&&this[_0x1a798f(0xdd)][_0x1a798f(0x69)][_0x1a798f(0xf0)]();}[_0x483829(0xb9)](){const _0x4abc8d=_0x483829;this[_0x4abc8d(0xe6)]&&(this[_0x4abc8d(0xe6)][_0x4abc8d(0xe9)](),this[_0x4abc8d(0xe6)]=null),this[_0x4abc8d(0xda)]&&(this[_0x4abc8d(0xda)][_0x4abc8d(0xb9)](),this[_0x4abc8d(0xda)]=null),this[_0x4abc8d(0xdd)]&&(this[_0x4abc8d(0xdd)][_0x4abc8d(0xb9)](),this[_0x4abc8d(0xdd)]=null);}[_0x483829(0xb8)](){const _0x579b6b=_0x483829;if(!this[_0x579b6b(0xd5)])return;if(!this[_0x579b6b(0xaf)]())return void(this[_0x579b6b(0x96)]=!0x0);this[_0x579b6b(0x96)]=!0x1;const _0x51956d=[...this[_0x579b6b(0xc9)],...this[_0x579b6b(0x7a)]],_0x1b0953=this[_0x579b6b(0x9a)](),_0x373643=this[_0x579b6b(0x87)](_0x1b0953,_0x51956d),_0x338c49=_0x1b0953[_0x579b6b(0xd2)];_0x338c49&&this[_0x579b6b(0xc6)](_0x338c49),_0x1b0953[_0x579b6b(0x72)](),this[_0x579b6b(0x82)](_0x51956d,_0x373643);}[_0x483829(0xe0)](){const _0x8b7211=_0x483829;this[_0x8b7211(0xda)]=this[_0x8b7211(0xf8)](),this[_0x8b7211(0xdd)]=this[_0x8b7211(0xcc)](),this[_0x8b7211(0xda)][_0x8b7211(0xd7)](),this[_0x8b7211(0xd5)][_0x8b7211(0xd8)](this[_0x8b7211(0xda)][_0x8b7211(0xf4)]),this[_0x8b7211(0xda)]['on'](_0x8b7211(0x9d),()=>{const _0x2d9426=_0x8b7211;this[_0x2d9426(0x73)]();}),_0x4af2b1({'emitter':this[_0x8b7211(0xdd)],'contextElements':[this[_0x8b7211(0xdd)][_0x8b7211(0xf4)],this[_0x8b7211(0xda)][_0x8b7211(0xf4)]],'callback':()=>this[_0x8b7211(0x6c)](),'activator':()=>this[_0x8b7211(0xda)][_0x8b7211(0x75)]});}[_0x483829(0xf8)](){const _0x3c591e=_0x483829,_0xff7504=new _0x3c95e8(this[_0x3c591e(0x78)]);_0xff7504[_0x3c591e(0xc4)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x19b581=[this[_0x3c591e(0x95)][_0x3c591e(0xbd)][_0x3c591e(0x83)]];return this[_0x3c591e(0x95)][_0x3c591e(0xbd)][_0x3c591e(0x77)]&&_0x19b581[_0x3c591e(0xaa)](this[_0x3c591e(0x95)][_0x3c591e(0xbd)][_0x3c591e(0x77)]),_0xff7504[_0x3c591e(0xb3)]({'attributes':{'class':_0x19b581}}),_0xff7504;}[_0x483829(0xcc)](){const _0x19f99a=_0x483829,_0x3fff59=new _0x2eace9(this[_0x19f99a(0x78)]);return _0x3fff59[_0x19f99a(0xb3)]({'attributes':{'class':this[_0x19f99a(0x95)][_0x19f99a(0xbd)][_0x19f99a(0x68)]}}),this[_0x19f99a(0xb6)][_0x19f99a(0x6d)](_0x3fff59),_0x3fff59;}[_0x483829(0xfb)](){const _0x466636=_0x483829;if(this[_0x466636(0xdd)]&&(this[_0x466636(0xdd)][_0x466636(0x69)][_0x466636(0xf0)](),this[_0x466636(0x7a)][_0x466636(0xc2)]>0x0)){this[_0x466636(0x7a)][_0x466636(0x86)](_0x11eef4=>{const _0x2534c0=_0x466636;_0x11eef4[_0x2534c0(0xb5)]();});const _0x4fea8e=new _0x2cb2c6(this[_0x466636(0x78)]);_0x4fea8e[_0x466636(0xe8)]({'tag':_0x466636(0x97),'attributes':{'class':this[_0x466636(0x95)][_0x466636(0xbd)][_0x466636(0xa8)]},'children':this[_0x466636(0x7a)]}),this[_0x466636(0xdd)][_0x466636(0x69)][_0x466636(0x6d)](_0x4fea8e);}}[_0x483829(0x73)](){const _0x12f6b9=_0x483829;this[_0x12f6b9(0xda)][_0x12f6b9(0x75)]?this[_0x12f6b9(0x6c)]():this[_0x12f6b9(0xfa)]();}[_0x483829(0xd6)](){const _0x577e3e=_0x483829,_0x2571a1=this[_0x577e3e(0x7a)][_0x577e3e(0xc2)]>0x0;this[_0x577e3e(0xda)]?.[_0x577e3e(0xf4)]&&(this[_0x577e3e(0xda)][_0x577e3e(0xf4)][_0x577e3e(0x7b)][_0x577e3e(0xea)]=_0x2571a1?'':_0x577e3e(0xde));}[_0x483829(0xa6)](){const _0x1ccc98=_0x483829;this[_0x1ccc98(0xda)]?.[_0x1ccc98(0x75)]&&this[_0x1ccc98(0xdd)]?.[_0x1ccc98(0xce)]&&this[_0x1ccc98(0xda)][_0x1ccc98(0xf4)]&&this[_0x1ccc98(0xdd)][_0x1ccc98(0x74)]({'target':this[_0x1ccc98(0xda)][_0x1ccc98(0xf4)],'limiter':document[_0x1ccc98(0xa9)](_0x1ccc98(0x93))});}[_0x483829(0xe4)](_0x5348a9){const _0x2c9148=_0x483829,_0x4b91d5=this[_0x2c9148(0xd5)]?.[_0x2c9148(0xac)][_0x2c9148(0xdc)]()||_0x2c9148(0x97),_0x2bf049=this[_0x2c9148(0xd5)]?.[_0x2c9148(0x8b)];if(_0x2bf049){const _0x1c3111=_0x2bf049[0x0]||'',_0x20e1c0=_0x5348a9[_0x2c9148(0xa9)]('.'+_0x1c3111),_0x40f295=_0x5348a9[_0x2c9148(0xa9)](_0x4b91d5);return _0x20e1c0||_0x40f295||_0x5348a9;}return _0x5348a9[_0x2c9148(0xa9)](_0x4b91d5)||_0x5348a9;}[_0x483829(0x6e)](){const _0x170704=_0x483829,_0x4a07b6=this[_0x170704(0xcf)]?.[_0x170704(0xf4)]||this[_0x170704(0xd5)];if(!_0x4a07b6)return bn;const _0x10fc00=window[_0x170704(0xae)](_0x4a07b6)[_0x170704(0xd4)];if(_0x170704(0xcd)===_0x10fc00||_0x170704(0xed)===_0x10fc00||!_0x10fc00){const _0x27fff8=_0x4a07b6[_0x170704(0x9b)];if(_0x27fff8){const _0x33279b=window[_0x170704(0xae)](_0x27fff8);return _0x170704(0xcd)!==_0x33279b[_0x170704(0xd4)]?_0x33279b[_0x170704(0xd4)]:bn;}return bn;}return _0x10fc00;}[_0x483829(0xd9)](_0x534f98,_0x4d9b3b){const _0x3f7479=_0x483829;this[_0x3f7479(0x95)][_0x3f7479(0xbd)][_0x3f7479(0x6f)]&&_0x534f98[_0x3f7479(0x8b)][_0x3f7479(0x6d)](this[_0x3f7479(0x95)][_0x3f7479(0xbd)][_0x3f7479(0x6f)]),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xd4)]=_0x4d9b3b,_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xf6)]=_0x3f7479(0xa0),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0x9c)]=_0x3f7479(0x99),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0x91)]=_0x3f7479(0x99),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xec)]='0',_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xe5)]=_0x3f7479(0xde),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xc5)]='-1',_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xf3)]=_0x3f7479(0x89),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xea)]=_0x3f7479(0xc7),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0x6a)]=_0x3f7479(0x84);}[_0x483829(0xc6)](_0x12b498){const _0x39c8ae=_0x483829;_0x12b498[_0x39c8ae(0x86)](({element:_0x4b254c,originalDisplay:_0x475209,originalVisibility:_0x45eab9})=>{const _0x508f8e=_0x39c8ae;_0x4b254c[_0x508f8e(0x7b)][_0x508f8e(0xea)]=_0x475209,_0x4b254c[_0x508f8e(0x7b)][_0x508f8e(0xf3)]=_0x45eab9;});}[_0x483829(0xbf)](_0x35cca0){const _0x3038f0=_0x483829,_0x48451a=[];let _0xeeed63=_0x35cca0;for(;_0xeeed63&&_0xeeed63!==document[_0x3038f0(0xc1)];){const _0x5d76f7=window[_0x3038f0(0xae)](_0xeeed63);_0x3038f0(0xde)!==_0x5d76f7[_0x3038f0(0xea)]&&_0x3038f0(0xd3)!==_0x5d76f7[_0x3038f0(0xf3)]||(_0x48451a[_0x3038f0(0xaa)]({'element':_0xeeed63,'originalDisplay':_0xeeed63[_0x3038f0(0x7b)][_0x3038f0(0xea)],'originalVisibility':_0xeeed63[_0x3038f0(0x7b)][_0x3038f0(0xf3)]}),_0xeeed63[_0x3038f0(0x7b)][_0x3038f0(0xea)]=_0x3038f0(0x85),_0xeeed63[_0x3038f0(0x7b)][_0x3038f0(0xf3)]=_0x3038f0(0x80)),_0xeeed63=_0xeeed63[_0x3038f0(0x9b)];}return _0x48451a;}[_0x483829(0xe3)](){const _0x463339=_0x483829;let _0x26af4c,_0x310e1b;return this[_0x463339(0xcf)]?.[_0x463339(0xf4)]?(_0x26af4c=this[_0x463339(0xcf)][_0x463339(0xf4)][_0x463339(0xa3)](!0x0),_0x310e1b=this[_0x463339(0xe4)](_0x26af4c)):(_0x26af4c=document[_0x463339(0xe1)](_0x463339(0x97)),_0x310e1b=_0x26af4c),{'calculationContainer':_0x26af4c,'targetContainer':_0x310e1b};}[_0x483829(0x9a)](){const _0x30f0a0=_0x483829,{calculationContainer:_0x1d9c9e,targetContainer:_0x1ca2d7}=this[_0x30f0a0(0xe3)](),_0x46257d=this[_0x30f0a0(0x6e)]();this[_0x30f0a0(0xd9)](_0x1d9c9e,_0x46257d);const _0x47051d=this[_0x30f0a0(0xcf)]?.[_0x30f0a0(0xf4)]||this[_0x30f0a0(0xd5)],_0x52956f=_0x47051d?.[_0x30f0a0(0x9b)];_0x52956f?_0x52956f[_0x30f0a0(0xd8)](_0x1d9c9e):document[_0x30f0a0(0xc1)][_0x30f0a0(0xd8)](_0x1d9c9e),_0x1d9c9e[_0x30f0a0(0xad)]=_0x1ca2d7;const _0x5e55a9=this[_0x30f0a0(0xbf)](_0x52956f||null);return _0x1d9c9e[_0x30f0a0(0x98)],_0x1d9c9e[_0x30f0a0(0xd2)]=_0x5e55a9,_0x1d9c9e;}[_0x483829(0x87)](_0x5469c1,_0x4f3da8){const _0x2ebcfe=_0x483829,_0xef181c=_0x5469c1[_0x2ebcfe(0xad)]||_0x5469c1,_0x3de835=[],{rowCount:_0x57c3ae}=this[_0x2ebcfe(0x79)](_0xef181c,_0x4f3da8);if(_0x57c3ae<=this[_0x2ebcfe(0x95)][_0x2ebcfe(0xe7)])return _0x3de835;const _0x59386d=_0x4f3da8[_0x2ebcfe(0xeb)]();for(;_0x59386d[_0x2ebcfe(0xc2)]>0x0;){if(this[_0x2ebcfe(0x88)](_0x5469c1,_0xef181c,_0x59386d)){const _0x16fdf0=_0x4f3da8[_0x2ebcfe(0xf9)](_0x28385f=>!_0x59386d[_0x2ebcfe(0xb2)](_0x28385f));_0x3de835[_0x2ebcfe(0xaa)](..._0x16fdf0);break;}if(!_0x59386d[_0x2ebcfe(0xc0)]())break;}return _0x3de835;}[_0x483829(0x79)](_0x2c7022,_0x111654){const _0x32269f=_0x483829;_0x2c7022[_0x32269f(0xba)]='',_0x111654[_0x32269f(0x86)](_0x5d3906=>{const _0x10658e=_0x32269f;if(_0x5d3906[_0x10658e(0xf4)]){const _0x7ff70a=_0x5d3906[_0x10658e(0xf4)][_0x10658e(0xa3)](!0x0);_0x2c7022[_0x10658e(0xd8)](_0x7ff70a);}}),_0x2c7022[_0x32269f(0x98)];const _0x19bc14=_0x2c7022[_0x32269f(0xd0)],_0x47fe85=[];return Array[_0x32269f(0xca)](_0x19bc14)[_0x32269f(0x86)](_0x2dc917=>{const _0x5bc6fb=_0x32269f,_0xe2260e=_0x2dc917[_0x5bc6fb(0x6b)]()[_0x5bc6fb(0x9c)];_0x47fe85[_0x5bc6fb(0xb1)](_0x1253fd=>Math[_0x5bc6fb(0xdb)](_0x1253fd-_0xe2260e)<this[_0x5bc6fb(0x95)][_0x5bc6fb(0xb0)])||_0x47fe85[_0x5bc6fb(0xaa)](_0xe2260e);}),{'rowCount':_0x47fe85[_0x32269f(0xc2)]};}[_0x483829(0x7f)](){const _0xf778fd=_0x483829,_0x40c880=document[_0xf778fd(0xe1)](_0xf778fd(0xe2));return _0x40c880[_0xf778fd(0xa5)]=this[_0xf778fd(0x95)][_0xf778fd(0xbd)][_0xf778fd(0x83)],this[_0xf778fd(0x95)][_0xf778fd(0xbd)][_0xf778fd(0x77)]&&_0x40c880[_0xf778fd(0x8b)][_0xf778fd(0x6d)](this[_0xf778fd(0x95)][_0xf778fd(0xbd)][_0xf778fd(0x77)]),_0x40c880[_0xf778fd(0xbc)]=_0xf778fd(0xb4),_0x40c880;}[_0x483829(0x88)](_0x1373c6,_0x4f84ab,_0x459e4a){const _0x3bcedb=_0x483829;this[_0x3bcedb(0x79)](_0x4f84ab,_0x459e4a);const _0x227650=this[_0x3bcedb(0x7f)]();_0x1373c6[_0x3bcedb(0xd8)](_0x227650),_0x1373c6[_0x3bcedb(0x98)];const _0x54046d=[..._0x4f84ab[_0x3bcedb(0xd0)],_0x227650],_0x2fe3c5=[];_0x54046d[_0x3bcedb(0x86)](_0xb67307=>{const _0x2cc2e3=_0x3bcedb,_0x4ca822=_0xb67307[_0x2cc2e3(0x6b)]()[_0x2cc2e3(0x9c)];_0x2fe3c5[_0x2cc2e3(0xb1)](_0x158cc7=>Math[_0x2cc2e3(0xdb)](_0x158cc7-_0x4ca822)<this[_0x2cc2e3(0x95)][_0x2cc2e3(0xb0)])||_0x2fe3c5[_0x2cc2e3(0xaa)](_0x4ca822);});const _0x186b53=_0x2fe3c5[_0x3bcedb(0xc2)];return _0x227650[_0x3bcedb(0x72)](),_0x186b53<=this[_0x3bcedb(0x95)][_0x3bcedb(0xe7)];}[_0x483829(0x71)](_0x3cf724,_0x34de50){const _0xddbe42=_0x483829;this[_0xddbe42(0xc9)][_0xddbe42(0xf0)](),this[_0xddbe42(0x7a)][_0xddbe42(0xf0)](),_0x3cf724[_0xddbe42(0x86)](_0x1088eb=>{const _0x19a192=_0xddbe42;_0x34de50[_0x19a192(0xb2)](_0x1088eb)?this[_0x19a192(0x7a)][_0x19a192(0x6d)](_0x1088eb):this[_0x19a192(0xc9)][_0x19a192(0x6d)](_0x1088eb);});}[_0x483829(0xf7)](_0x302d64){const _0x4b868b=_0x483829;if(_0x302d64>0x0&&!this[_0x4b868b(0xda)]&&this[_0x4b868b(0xe0)](),_0x302d64>0x0&&this[_0x4b868b(0xda)]){const _0xb4af5f=''+this[_0x4b868b(0x95)][_0x4b868b(0xbe)]+(_0x302d64<0x63?_0x302d64:'99');this[_0x4b868b(0xda)][_0x4b868b(0xf2)]=_0xb4af5f;}this[_0x4b868b(0xfb)](),this[_0x4b868b(0xd6)](),this[_0x4b868b(0xa6)]();}[_0x483829(0x82)](_0xee1490,_0x5bfa33){const _0x150373=_0x483829;this[_0x150373(0x71)](_0xee1490,_0x5bfa33),this[_0x150373(0xf7)](_0x5bfa33[_0x150373(0xc2)]);}[_0x483829(0x94)](){const _0x595fad=_0x483829;this[_0x595fad(0xd5)]&&_0x595fad(0x7c)!=typeof IntersectionObserver&&(this[_0x595fad(0xe6)]=new IntersectionObserver(_0x490fed=>{const _0x1733a7=_0x595fad;_0x490fed[0x0][_0x1733a7(0x9e)]&&this[_0x1733a7(0x96)]&&requestAnimationFrame(()=>{const _0xb22c84=_0x1733a7;this[_0xb22c84(0xb8)]();});},{'threshold':0.01,'rootMargin':_0x595fad(0xdf)}),this[_0x595fad(0xe6)][_0x595fad(0xd1)](this[_0x595fad(0xd5)]));}[_0x483829(0xaf)](){const _0x3d6492=_0x483829;if(!this[_0x3d6492(0xd5)])return!0x1;if(!this[_0x3d6492(0xd5)][_0x3d6492(0x8e)])return!0x1;const _0x2c201f=this[_0x3d6492(0xd5)][_0x3d6492(0x6b)]();if(0x0===_0x2c201f[_0x3d6492(0xd4)]||0x0===_0x2c201f[_0x3d6492(0x70)])return!0x1;const _0x8583f7=window[_0x3d6492(0x81)]||document[_0x3d6492(0xa1)][_0x3d6492(0xee)],_0x5e9193=window[_0x3d6492(0xc8)]||document[_0x3d6492(0xa1)][_0x3d6492(0xef)],_0x5d42a0=0xc8;return _0x2c201f[_0x3d6492(0x8f)]>=-0xc8&&_0x2c201f[_0x3d6492(0x9c)]<=_0x8583f7+_0x5d42a0&&_0x2c201f[_0x3d6492(0xf1)]>=-0xc8&&_0x2c201f[_0x3d6492(0x91)]<=_0x5e9193+_0x5d42a0;}}
|
|
23
|
+
const _0x1aa33a=_0x20b8;function _0x51ad(){const _0x1ed277=['_createShowMoreBalloonPanelView','right','innerWidth','_distributeChips','hideBalloonPanel','innerHeight','filter','undefined','position','isOn','_config','_makeAncestorsVisible','_updateBalloonContent','_checkAndHandleOverflow','absolute','300px','ck-calculation-container','remove','pin','48917270icOohp','div','body','createElement','children','clientHeight','toLowerCase','_renderChipsAndCountRows','isVisible','display','opacity','width','render','includes','calculationContainer','_visibleChips','_pendingCalculation','querySelector','_applyCalculationStyles','5176736KXgMsx','pop','push','clientWidth','isIntersecting','overflowChips','_createMockButton','add','disableAnimationOnEnter','button','destroy','extendTemplate','66VqgYRX','_createShowMoreButton','getBoundingClientRect','overflowContainer','visibility','from','length','documentElement','2759973QlXgMf','style','setTemplate','content','abs','_testButtonFit','-9999px','border-box','top','_bodyCollection','parentElement','_calculateContainerWidth','showMoreBalloon','8UwNOQR','setContainerElement','none','zIndex','_createShowMoreButtonView','.ck-ai-chat','disconnect','50906ngIYDa','show','_showMoreBalloonPanelView','showMoreButtonView','isConnected','showMoreButton','showMoreLabelPrefix','5tkBlCf','0px','rowDetectionTolerance','_ancestorsToRestore','innerHTML','block','_applyOverflowResults','_restoreAncestorVisibility','offsetWidth','maxVisibleRows','_createCalculationContainer','appendChild','_repinBalloonPanel','reorganizeChips','_locale','7891245hKIPrh','_findTargetContainer','visible','className','_targetContainer','_handleShowMoreButtonClick','pointerEvents','_showMoreButtonView','hidden','50px','slice','clear','height','11ikiOBX','_createContainerElements','left','textContent','_isContainerVisible','boxSizing','_parentView','forEach','2242632lDFlcv','+\x201','hide','block\x20!important','cssClasses','4187750eJDXzA','element','some','auto','_containerElement','_updateOverflowUI','bottom','observe','tagName','visible\x20!important','cloneNode','controlsButton','classList','showBalloonPanel','label','_calculateOverflowInContainer','_updateShowMoreButtonVisibility','execute','getComputedStyle','_setupVisibilityObserver','_intersectionObserver','_overflowChips','set'];_0x51ad=function(){return _0x1ed277;};return _0x51ad();}(function(_0x1e57c2,_0x4a7eb0){const _0x466b85=_0x20b8,_0x481cb0=_0x1e57c2();while(!![]){try{const _0xe06e19=parseInt(_0x466b85(0x1c6))/0x1*(-parseInt(_0x466b85(0x1e2))/0x2)+-parseInt(_0x466b85(0x1ce))/0x3+parseInt(_0x466b85(0x1ba))/0x4*(-parseInt(_0x466b85(0x154))/0x5)+-parseInt(_0x466b85(0x178))/0x6+-parseInt(_0x466b85(0x17d))/0x7+-parseInt(_0x466b85(0x1db))/0x8*(-parseInt(_0x466b85(0x163))/0x9)+parseInt(_0x466b85(0x1a7))/0xa*(parseInt(_0x466b85(0x170))/0xb);if(_0xe06e19===_0x4a7eb0)break;else _0x481cb0['push'](_0x481cb0['shift']());}catch(_0x5dc3a7){_0x481cb0['push'](_0x481cb0['shift']());}}}(_0x51ad,0xdc525));import{View as _0x1a43a9,BalloonPanelView as _0x5d2c75,ButtonView as _0x551de0,clickOutsideHandler as _0x18bb58}from'ckeditor5/src/ui.js';import{Collection as _0x1d4733}from'ckeditor5/src/utils.js';function _0x20b8(_0x2b7aef,_0x2a1a45){const _0x51ad2e=_0x51ad();return _0x20b8=function(_0x20b859,_0xd337b){_0x20b859=_0x20b859-0x14f;let _0x3693df=_0x51ad2e[_0x20b859];return _0x3693df;},_0x20b8(_0x2b7aef,_0x2a1a45);}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},wn=_0x1aa33a(0x1a3);export class AIChatChipsOverflowManager{[_0x1aa33a(0x162)];[_0x1aa33a(0x19e)];[_0x1aa33a(0x1b6)];[_0x1aa33a(0x192)];[_0x1aa33a(0x16a)]=null;[_0x1aa33a(0x14f)]=null;[_0x1aa33a(0x181)]=null;[_0x1aa33a(0x1d7)];[_0x1aa33a(0x176)]=null;[_0x1aa33a(0x191)]=null;[_0x1aa33a(0x1b7)]=!0x1;constructor(_0xec398c,_0x5ab587,_0x46f6d3,_0x41e98a,_0x99993b){const _0xee61d5=_0x1aa33a;this[_0xee61d5(0x162)]=_0xec398c,this[_0xee61d5(0x1b6)]=_0x5ab587,this[_0xee61d5(0x19e)]={...hn,..._0x46f6d3,'cssClasses':{'controlsButton':'','calculationContainer':_0xee61d5(0x1a4),..._0x46f6d3[_0xee61d5(0x17c)]}},this[_0xee61d5(0x192)]=new _0x1d4733(),this[_0xee61d5(0x1d7)]=_0x41e98a,this[_0xee61d5(0x176)]=_0x99993b||null;}[_0x1aa33a(0x1dc)](_0x4452db){const _0x3fa08e=_0x1aa33a;this[_0x3fa08e(0x191)]&&(this[_0x3fa08e(0x191)][_0x3fa08e(0x1e1)](),this[_0x3fa08e(0x191)]=null),this[_0x3fa08e(0x181)]=_0x4452db,this[_0x3fa08e(0x190)]();}get[_0x1aa33a(0x150)](){const _0xcbacd=_0x1aa33a;return this[_0xcbacd(0x16a)];}get[_0x1aa33a(0x1bf)](){const _0x3ee463=_0x1aa33a;return this[_0x3ee463(0x192)];}[_0x1aa33a(0x161)](){requestAnimationFrame(()=>{const _0x5d4bf5=_0x20b8;this[_0x5d4bf5(0x1a1)]();});}[_0x1aa33a(0x18a)](){const _0x20dd23=_0x1aa33a;this[_0x20dd23(0x16a)]&&this[_0x20dd23(0x14f)]&&(this[_0x20dd23(0x1a0)](),this[_0x20dd23(0x16a)][_0x20dd23(0x19d)]=!0x0,this[_0x20dd23(0x14f)][_0x20dd23(0x1e3)](),this[_0x20dd23(0x14f)][_0x20dd23(0x1a6)]({'target':this[_0x20dd23(0x16a)][_0x20dd23(0x17e)],'limiter':document[_0x20dd23(0x1b8)](_0x20dd23(0x1e0))}));}[_0x1aa33a(0x198)](){const _0x19bab6=_0x1aa33a;this[_0x19bab6(0x16a)]&&this[_0x19bab6(0x14f)]&&(this[_0x19bab6(0x16a)][_0x19bab6(0x19d)]=!0x1,this[_0x19bab6(0x14f)][_0x19bab6(0x17a)]());}[_0x1aa33a(0x16e)](){const _0x228558=_0x1aa33a;this[_0x228558(0x192)][_0x228558(0x16e)](),this[_0x228558(0x198)](),this[_0x228558(0x18d)](),this[_0x228558(0x16a)]&&(this[_0x228558(0x16a)][_0x228558(0x18b)]=''),this[_0x228558(0x14f)]&&this[_0x228558(0x14f)][_0x228558(0x1d1)][_0x228558(0x16e)]();}[_0x1aa33a(0x1c4)](){const _0x55f04b=_0x1aa33a;this[_0x55f04b(0x191)]&&(this[_0x55f04b(0x191)][_0x55f04b(0x1e1)](),this[_0x55f04b(0x191)]=null),this[_0x55f04b(0x16a)]&&(this[_0x55f04b(0x16a)][_0x55f04b(0x1c4)](),this[_0x55f04b(0x16a)]=null),this[_0x55f04b(0x14f)]&&(this[_0x55f04b(0x14f)][_0x55f04b(0x1c4)](),this[_0x55f04b(0x14f)]=null);}[_0x1aa33a(0x1a1)](){const _0x6b9398=_0x1aa33a;if(!this[_0x6b9398(0x181)])return;if(!this[_0x6b9398(0x174)]())return void(this[_0x6b9398(0x1b7)]=!0x0);this[_0x6b9398(0x1b7)]=!0x1;const _0x194dfd=[...this[_0x6b9398(0x1b6)],...this[_0x6b9398(0x192)]],_0x3b50dc=this[_0x6b9398(0x15e)](),_0x2a5b8f=this[_0x6b9398(0x18c)](_0x3b50dc,_0x194dfd),_0x33b067=_0x3b50dc[_0x6b9398(0x157)];_0x33b067&&this[_0x6b9398(0x15b)](_0x33b067),_0x3b50dc[_0x6b9398(0x1a5)](),this[_0x6b9398(0x15a)](_0x194dfd,_0x2a5b8f);}[_0x1aa33a(0x1c7)](){const _0x40bbd0=_0x1aa33a;this[_0x40bbd0(0x16a)]=this[_0x40bbd0(0x1df)](),this[_0x40bbd0(0x14f)]=this[_0x40bbd0(0x194)](),this[_0x40bbd0(0x16a)][_0x40bbd0(0x1b3)](),this[_0x40bbd0(0x181)][_0x40bbd0(0x15f)](this[_0x40bbd0(0x16a)][_0x40bbd0(0x17e)]),this[_0x40bbd0(0x16a)]['on'](_0x40bbd0(0x18e),()=>{const _0x14e65e=_0x40bbd0;this[_0x14e65e(0x168)]();}),_0x18bb58({'emitter':this[_0x40bbd0(0x14f)],'contextElements':[this[_0x40bbd0(0x14f)][_0x40bbd0(0x17e)],this[_0x40bbd0(0x16a)][_0x40bbd0(0x17e)]],'callback':()=>this[_0x40bbd0(0x198)](),'activator':()=>this[_0x40bbd0(0x16a)][_0x40bbd0(0x19d)]});}[_0x1aa33a(0x1df)](){const _0x4a4c5a=_0x1aa33a,_0x1c1071=new _0x551de0(this[_0x4a4c5a(0x162)]);_0x1c1071[_0x4a4c5a(0x193)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x36d051=[this[_0x4a4c5a(0x19e)][_0x4a4c5a(0x17c)][_0x4a4c5a(0x152)]];return this[_0x4a4c5a(0x19e)][_0x4a4c5a(0x17c)][_0x4a4c5a(0x188)]&&_0x36d051[_0x4a4c5a(0x1bc)](this[_0x4a4c5a(0x19e)][_0x4a4c5a(0x17c)][_0x4a4c5a(0x188)]),_0x1c1071[_0x4a4c5a(0x1c5)]({'attributes':{'class':_0x36d051}}),_0x1c1071;}[_0x1aa33a(0x194)](){const _0x1546e5=_0x1aa33a,_0x567ad5=new _0x5d2c75(this[_0x1546e5(0x162)]);return _0x567ad5[_0x1546e5(0x1c5)]({'attributes':{'class':this[_0x1546e5(0x19e)][_0x1546e5(0x17c)][_0x1546e5(0x1da)]}}),this[_0x1546e5(0x1d7)][_0x1546e5(0x1c1)](_0x567ad5),_0x567ad5;}[_0x1aa33a(0x1a0)](){const _0xd12a3=_0x1aa33a;if(this[_0xd12a3(0x14f)]&&(this[_0xd12a3(0x14f)][_0xd12a3(0x1d1)][_0xd12a3(0x16e)](),this[_0xd12a3(0x192)][_0xd12a3(0x1cc)]>0x0)){this[_0xd12a3(0x192)][_0xd12a3(0x177)](_0x544371=>{const _0x4275d9=_0xd12a3;_0x544371[_0x4275d9(0x1c2)]();});const _0x31515a=new _0x1a43a9(this[_0xd12a3(0x162)]);_0x31515a[_0xd12a3(0x1d0)]({'tag':_0xd12a3(0x1a8),'attributes':{'class':this[_0xd12a3(0x19e)][_0xd12a3(0x17c)][_0xd12a3(0x1c9)]},'children':this[_0xd12a3(0x192)]}),this[_0xd12a3(0x14f)][_0xd12a3(0x1d1)][_0xd12a3(0x1c1)](_0x31515a);}}[_0x1aa33a(0x168)](){const _0x181748=_0x1aa33a;this[_0x181748(0x16a)][_0x181748(0x19d)]?this[_0x181748(0x198)]():this[_0x181748(0x18a)]();}[_0x1aa33a(0x18d)](){const _0x444e42=_0x1aa33a,_0x9d2beb=this[_0x444e42(0x192)][_0x444e42(0x1cc)]>0x0;this[_0x444e42(0x16a)]?.[_0x444e42(0x17e)]&&(this[_0x444e42(0x16a)][_0x444e42(0x17e)][_0x444e42(0x1cf)][_0x444e42(0x1b0)]=_0x9d2beb?'':_0x444e42(0x1dd));}[_0x1aa33a(0x160)](){const _0x4aae51=_0x1aa33a;this[_0x4aae51(0x16a)]?.[_0x4aae51(0x19d)]&&this[_0x4aae51(0x14f)]?.[_0x4aae51(0x1af)]&&this[_0x4aae51(0x16a)][_0x4aae51(0x17e)]&&this[_0x4aae51(0x14f)][_0x4aae51(0x1a6)]({'target':this[_0x4aae51(0x16a)][_0x4aae51(0x17e)],'limiter':document[_0x4aae51(0x1b8)](_0x4aae51(0x1e0))});}[_0x1aa33a(0x164)](_0x41d0b2){const _0x563d67=_0x1aa33a,_0xac41ed=this[_0x563d67(0x181)]?.[_0x563d67(0x185)][_0x563d67(0x1ad)]()||_0x563d67(0x1a8),_0x2867b3=this[_0x563d67(0x181)]?.[_0x563d67(0x189)];if(_0x2867b3){const _0x2ae90d=_0x2867b3[0x0]||'',_0x3dce15=_0x41d0b2[_0x563d67(0x1b8)]('.'+_0x2ae90d),_0x17d6b9=_0x41d0b2[_0x563d67(0x1b8)](_0xac41ed);return _0x3dce15||_0x17d6b9||_0x41d0b2;}return _0x41d0b2[_0x563d67(0x1b8)](_0xac41ed)||_0x41d0b2;}[_0x1aa33a(0x1d9)](){const _0x2d520d=_0x1aa33a,_0x1beba0=this[_0x2d520d(0x176)]?.[_0x2d520d(0x17e)]||this[_0x2d520d(0x181)];if(!_0x1beba0)return wn;const _0x3271b1=window[_0x2d520d(0x18f)](_0x1beba0)[_0x2d520d(0x1b2)];if(_0x2d520d(0x180)===_0x3271b1||_0x2d520d(0x155)===_0x3271b1||!_0x3271b1){const _0x11c856=_0x1beba0[_0x2d520d(0x1d8)];if(_0x11c856){const _0x47f440=window[_0x2d520d(0x18f)](_0x11c856);return _0x2d520d(0x180)!==_0x47f440[_0x2d520d(0x1b2)]?_0x47f440[_0x2d520d(0x1b2)]:wn;}return wn;}return _0x3271b1;}[_0x1aa33a(0x1b9)](_0x203de5,_0x955aed){const _0xe526c6=_0x1aa33a;this[_0xe526c6(0x19e)][_0xe526c6(0x17c)][_0xe526c6(0x1b5)]&&_0x203de5[_0xe526c6(0x189)][_0xe526c6(0x1c1)](this[_0xe526c6(0x19e)][_0xe526c6(0x17c)][_0xe526c6(0x1b5)]),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1b2)]=_0x955aed,_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x19c)]=_0xe526c6(0x1a2),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1d6)]=_0xe526c6(0x1d4),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x172)]=_0xe526c6(0x1d4),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1b1)]='0',_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x169)]=_0xe526c6(0x1dd),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1de)]='-1',_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1ca)]=_0xe526c6(0x186),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1b0)]=_0xe526c6(0x17b),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x175)]=_0xe526c6(0x1d5);}[_0x1aa33a(0x15b)](_0x387c02){const _0x21c0db=_0x1aa33a;_0x387c02[_0x21c0db(0x177)](({element:_0x140af8,originalDisplay:_0x1dcc2b,originalVisibility:_0x1bca9f})=>{const _0x9e6ca2=_0x21c0db;_0x140af8[_0x9e6ca2(0x1cf)][_0x9e6ca2(0x1b0)]=_0x1dcc2b,_0x140af8[_0x9e6ca2(0x1cf)][_0x9e6ca2(0x1ca)]=_0x1bca9f;});}[_0x1aa33a(0x19f)](_0x6789ad){const _0x2d2429=_0x1aa33a,_0xb653d0=[];let _0x464db5=_0x6789ad;for(;_0x464db5&&_0x464db5!==document[_0x2d2429(0x1a9)];){const _0x20d4ba=window[_0x2d2429(0x18f)](_0x464db5);_0x2d2429(0x1dd)!==_0x20d4ba[_0x2d2429(0x1b0)]&&_0x2d2429(0x16b)!==_0x20d4ba[_0x2d2429(0x1ca)]||(_0xb653d0[_0x2d2429(0x1bc)]({'element':_0x464db5,'originalDisplay':_0x464db5[_0x2d2429(0x1cf)][_0x2d2429(0x1b0)],'originalVisibility':_0x464db5[_0x2d2429(0x1cf)][_0x2d2429(0x1ca)]}),_0x464db5[_0x2d2429(0x1cf)][_0x2d2429(0x1b0)]=_0x2d2429(0x159),_0x464db5[_0x2d2429(0x1cf)][_0x2d2429(0x1ca)]=_0x2d2429(0x165)),_0x464db5=_0x464db5[_0x2d2429(0x1d8)];}return _0xb653d0;}[_0x1aa33a(0x171)](){const _0x519c86=_0x1aa33a;let _0x21eea8,_0x262e2b;return this[_0x519c86(0x176)]?.[_0x519c86(0x17e)]?(_0x21eea8=this[_0x519c86(0x176)][_0x519c86(0x17e)][_0x519c86(0x187)](!0x0),_0x262e2b=this[_0x519c86(0x164)](_0x21eea8)):(_0x21eea8=document[_0x519c86(0x1aa)](_0x519c86(0x1a8)),_0x262e2b=_0x21eea8),{'calculationContainer':_0x21eea8,'targetContainer':_0x262e2b};}[_0x1aa33a(0x15e)](){const _0x3c1d7d=_0x1aa33a,{calculationContainer:_0x7d812b,targetContainer:_0x5e5776}=this[_0x3c1d7d(0x171)](),_0x453570=this[_0x3c1d7d(0x1d9)]();this[_0x3c1d7d(0x1b9)](_0x7d812b,_0x453570);const _0x9d84a9=this[_0x3c1d7d(0x176)]?.[_0x3c1d7d(0x17e)]||this[_0x3c1d7d(0x181)],_0x1f1b91=_0x9d84a9?.[_0x3c1d7d(0x1d8)];_0x1f1b91?_0x1f1b91[_0x3c1d7d(0x15f)](_0x7d812b):document[_0x3c1d7d(0x1a9)][_0x3c1d7d(0x15f)](_0x7d812b),_0x7d812b[_0x3c1d7d(0x167)]=_0x5e5776;const _0x496cea=this[_0x3c1d7d(0x19f)](_0x1f1b91||null);return _0x7d812b[_0x3c1d7d(0x15c)],_0x7d812b[_0x3c1d7d(0x157)]=_0x496cea,_0x7d812b;}[_0x1aa33a(0x18c)](_0x471e9f,_0x5bd5ed){const _0x137df3=_0x1aa33a,_0xb3578f=_0x471e9f[_0x137df3(0x167)]||_0x471e9f,_0x40853d=[],{rowCount:_0x47fa0b}=this[_0x137df3(0x1ae)](_0xb3578f,_0x5bd5ed);if(_0x47fa0b<=this[_0x137df3(0x19e)][_0x137df3(0x15d)])return _0x40853d;const _0x532dd6=_0x5bd5ed[_0x137df3(0x16d)]();for(;_0x532dd6[_0x137df3(0x1cc)]>0x0;){if(this[_0x137df3(0x1d3)](_0x471e9f,_0xb3578f,_0x532dd6)){const _0x321b54=_0x5bd5ed[_0x137df3(0x19a)](_0x14f644=>!_0x532dd6[_0x137df3(0x1b4)](_0x14f644));_0x40853d[_0x137df3(0x1bc)](..._0x321b54);break;}if(!_0x532dd6[_0x137df3(0x1bb)]())break;}return _0x40853d;}[_0x1aa33a(0x1ae)](_0x893b5e,_0xbeaa82){const _0x293b20=_0x1aa33a;_0x893b5e[_0x293b20(0x158)]='',_0xbeaa82[_0x293b20(0x177)](_0x5c88cb=>{const _0x1e550f=_0x293b20;if(_0x5c88cb[_0x1e550f(0x17e)]){const _0xd472fd=_0x5c88cb[_0x1e550f(0x17e)][_0x1e550f(0x187)](!0x0);_0x893b5e[_0x1e550f(0x15f)](_0xd472fd);}}),_0x893b5e[_0x293b20(0x15c)];const _0x4c81fa=_0x893b5e[_0x293b20(0x1ab)],_0x5436cc=[];return Array[_0x293b20(0x1cb)](_0x4c81fa)[_0x293b20(0x177)](_0x462f93=>{const _0x293cba=_0x293b20,_0x254e7e=_0x462f93[_0x293cba(0x1c8)]()[_0x293cba(0x1d6)];_0x5436cc[_0x293cba(0x17f)](_0x10dcdf=>Math[_0x293cba(0x1d2)](_0x10dcdf-_0x254e7e)<this[_0x293cba(0x19e)][_0x293cba(0x156)])||_0x5436cc[_0x293cba(0x1bc)](_0x254e7e);}),{'rowCount':_0x5436cc[_0x293b20(0x1cc)]};}[_0x1aa33a(0x1c0)](){const _0x406a57=_0x1aa33a,_0x9e6d8=document[_0x406a57(0x1aa)](_0x406a57(0x1c3));return _0x9e6d8[_0x406a57(0x166)]=this[_0x406a57(0x19e)][_0x406a57(0x17c)][_0x406a57(0x152)],this[_0x406a57(0x19e)][_0x406a57(0x17c)][_0x406a57(0x188)]&&_0x9e6d8[_0x406a57(0x189)][_0x406a57(0x1c1)](this[_0x406a57(0x19e)][_0x406a57(0x17c)][_0x406a57(0x188)]),_0x9e6d8[_0x406a57(0x173)]=_0x406a57(0x179),_0x9e6d8;}[_0x1aa33a(0x1d3)](_0x2bb704,_0x3aea36,_0x521614){const _0x21e70a=_0x1aa33a;this[_0x21e70a(0x1ae)](_0x3aea36,_0x521614);const _0x10d420=this[_0x21e70a(0x1c0)]();_0x2bb704[_0x21e70a(0x15f)](_0x10d420),_0x2bb704[_0x21e70a(0x15c)];const _0x49be08=[..._0x3aea36[_0x21e70a(0x1ab)],_0x10d420],_0x5f4313=[];_0x49be08[_0x21e70a(0x177)](_0x41be2f=>{const _0x32e9d3=_0x21e70a,_0x57a48f=_0x41be2f[_0x32e9d3(0x1c8)]()[_0x32e9d3(0x1d6)];_0x5f4313[_0x32e9d3(0x17f)](_0x5b93af=>Math[_0x32e9d3(0x1d2)](_0x5b93af-_0x57a48f)<this[_0x32e9d3(0x19e)][_0x32e9d3(0x156)])||_0x5f4313[_0x32e9d3(0x1bc)](_0x57a48f);});const _0x3fd037=_0x5f4313[_0x21e70a(0x1cc)];return _0x10d420[_0x21e70a(0x1a5)](),_0x3fd037<=this[_0x21e70a(0x19e)][_0x21e70a(0x15d)];}[_0x1aa33a(0x197)](_0x55092b,_0x3ef29d){const _0x3883d3=_0x1aa33a;this[_0x3883d3(0x1b6)][_0x3883d3(0x16e)](),this[_0x3883d3(0x192)][_0x3883d3(0x16e)](),_0x55092b[_0x3883d3(0x177)](_0x4445d2=>{const _0x710701=_0x3883d3;_0x3ef29d[_0x710701(0x1b4)](_0x4445d2)?this[_0x710701(0x192)][_0x710701(0x1c1)](_0x4445d2):this[_0x710701(0x1b6)][_0x710701(0x1c1)](_0x4445d2);});}[_0x1aa33a(0x182)](_0x2bc427){const _0xd9ce7c=_0x1aa33a;if(_0x2bc427>0x0&&!this[_0xd9ce7c(0x16a)]&&this[_0xd9ce7c(0x1c7)](),_0x2bc427>0x0&&this[_0xd9ce7c(0x16a)]){const _0x1d41e6=''+this[_0xd9ce7c(0x19e)][_0xd9ce7c(0x153)]+(_0x2bc427<0x63?_0x2bc427:'99');this[_0xd9ce7c(0x16a)][_0xd9ce7c(0x18b)]=_0x1d41e6;}this[_0xd9ce7c(0x1a0)](),this[_0xd9ce7c(0x18d)](),this[_0xd9ce7c(0x160)]();}[_0x1aa33a(0x15a)](_0x5e5b2e,_0x47093f){const _0x5f3882=_0x1aa33a;this[_0x5f3882(0x197)](_0x5e5b2e,_0x47093f),this[_0x5f3882(0x182)](_0x47093f[_0x5f3882(0x1cc)]);}[_0x1aa33a(0x190)](){const _0x335ce6=_0x1aa33a;this[_0x335ce6(0x181)]&&_0x335ce6(0x19b)!=typeof IntersectionObserver&&(this[_0x335ce6(0x191)]=new IntersectionObserver(_0x4f6aea=>{const _0xba789=_0x335ce6;_0x4f6aea[0x0][_0xba789(0x1be)]&&this[_0xba789(0x1b7)]&&requestAnimationFrame(()=>{const _0x4aa609=_0xba789;this[_0x4aa609(0x1a1)]();});},{'threshold':0.01,'rootMargin':_0x335ce6(0x16c)}),this[_0x335ce6(0x191)][_0x335ce6(0x184)](this[_0x335ce6(0x181)]));}[_0x1aa33a(0x174)](){const _0x106366=_0x1aa33a;if(!this[_0x106366(0x181)])return!0x1;if(!this[_0x106366(0x181)][_0x106366(0x151)])return!0x1;const _0x4b5327=this[_0x106366(0x181)][_0x106366(0x1c8)]();if(0x0===_0x4b5327[_0x106366(0x1b2)]||0x0===_0x4b5327[_0x106366(0x16f)])return!0x1;const _0x4d9ab0=window[_0x106366(0x199)]||document[_0x106366(0x1cd)][_0x106366(0x1ac)],_0x9e6de9=window[_0x106366(0x196)]||document[_0x106366(0x1cd)][_0x106366(0x1bd)],_0x1bba51=0xc8;return _0x4b5327[_0x106366(0x183)]>=-0xc8&&_0x4b5327[_0x106366(0x1d6)]<=_0x4d9ab0+_0x1bba51&&_0x4b5327[_0x106366(0x195)]>=-0xc8&&_0x4b5327[_0x106366(0x172)]<=_0x9e6de9+_0x1bba51;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e5cfd=_0x477a;(function(_0xf1a4d9,_0x23039c){const _0x419e0a=_0x477a,_0x1ecadd=_0xf1a4d9();while(!![]){try{const _0x35cc28=parseInt(_0x419e0a(0x174))/0x1+-parseInt(_0x419e0a(0x14d))/0x2*(parseInt(_0x419e0a(0x16a))/0x3)+parseInt(_0x419e0a(0x140))/0x4+-parseInt(_0x419e0a(0x157))/0x5+parseInt(_0x419e0a(0x171))/0x6*(-parseInt(_0x419e0a(0x154))/0x7)+-parseInt(_0x419e0a(0x158))/0x8+parseInt(_0x419e0a(0x173))/0x9;if(_0x35cc28===_0x23039c)break;else _0x1ecadd['push'](_0x1ecadd['shift']());}catch(_0xc67716){_0x1ecadd['push'](_0x1ecadd['shift']());}}}(_0x55c7,0xd85f2));function _0x477a(_0x419ae8,_0x6c08ef){const _0x55c7b6=_0x55c7();return _0x477a=function(_0x477a0e,_0x2b4852){_0x477a0e=_0x477a0e-0x13a;let _0x978bed=_0x55c7b6[_0x477a0e];return _0x978bed;},_0x477a(_0x419ae8,_0x6c08ef);}import{ButtonView as _0x3217b9,IconView as _0x287cf8}from'ckeditor5/src/ui.js';import{IconClose as _0x155ccf,IconDocument as _0x323bd2,IconFileUpload as _0x4aede2,IconLink as _0xe9c2e0,IconSelection as _0x5ae350}from'@ckeditor/ckeditor5-icons';function _0x55c7(){const _0x272493=['ck-ai-chat-context-chip__type-icon','animationend','itemType','ck-ai-chat-context-chip_document','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','selection','isLoading','removeContextItemChip','lastIndexOf','isVisible','664611YIwvbs','slice','add','document','ck-ai-chat-context-chip','render','length','9496782QtfdCI','_createLoaderIcon','42182604BZPFWG','91438ivXsqN','tooltip','_createIconView','setTemplate','locale','_setupRemoveButtonEvent','fire','webkitAnimationEnd','type','label','ck-ai-chat-context-chip_wide','set','_createTemplateChildren','2283808KFTuyU','readonly','ck-ai-chat-context-controls__chip-tooltip','disableAnimationOnEnter','div','_isAnimationOnEnterEnabled','content','ck-ai-chat-context-chip__label','small','remove','removeEventListener','_createTemplateAttributes','_initializeProperties','2CHYilz','uiId','_setupTemplate','element','bind','_createLabelElement','ck-ai-chat-context-chip_new-chip','7QKnoHB','span','bindTemplate','6105660nwLnwy','11500976dUPzyt','execute','_handleAnimationEndOnce','classList','_createRemoveButton','ck-hidden','extendTemplate','addEventListener'];_0x55c7=function(){return _0x272493;};return _0x55c7();}import{getTranslation as _0x340952}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x47d1aa}from'../../../aicore/ui/aispinner.js';const bn={'file':_0x4aede2,'document':_0x323bd2,'web-resource':_0xe9c2e0,'text':_0x4aede2,'selection':_0x5ae350},Tn=_0x1e5cfd(0x16e),En=_0x1e5cfd(0x13d),An=_0x1e5cfd(0x163),Cn=_0x1e5cfd(0x147),In=_0x1e5cfd(0x160),On=_0x1e5cfd(0x142),gn='n';export class AIChatContextItemButtonView extends _0x3217b9{constructor(_0x4514d7,_0x404498,_0x1b8016,_0x384688,_0x8ac7f3=!0x1){const _0x1c7860=_0x1e5cfd;super(_0x4514d7),this[_0x1c7860(0x145)]=_0x384688,this[_0x1c7860(0x14c)](_0x404498,_0x1b8016,_0x8ac7f3),this[_0x1c7860(0x14f)]();}[_0x1e5cfd(0x16f)](){const _0x2884bb=_0x1e5cfd;super[_0x2884bb(0x16f)](),this[_0x2884bb(0x145)]&&this[_0x2884bb(0x150)]&&(this[_0x2884bb(0x150)][_0x2884bb(0x15b)][_0x2884bb(0x16c)](_0x2884bb(0x153)),this[_0x2884bb(0x15a)](this[_0x2884bb(0x150)],()=>{const _0x5662b2=_0x2884bb;this[_0x5662b2(0x150)]&&this[_0x5662b2(0x150)][_0x5662b2(0x15b)][_0x5662b2(0x149)](_0x5662b2(0x153));}));}[_0x1e5cfd(0x143)](){const _0x26d371=_0x1e5cfd;this[_0x26d371(0x145)]=!0x1,this[_0x26d371(0x150)]&&this[_0x26d371(0x150)][_0x26d371(0x15b)][_0x26d371(0x149)](_0x26d371(0x153));}[_0x1e5cfd(0x14c)](_0x4d16b4,_0x23a9c9,_0x26dfdb){const _0x164f07=_0x1e5cfd;this[_0x164f07(0x13e)](_0x164f07(0x13c),_0x4d16b4[_0x164f07(0x13c)]),this[_0x164f07(0x13e)](_0x164f07(0x175),!0x0),this[_0x164f07(0x13e)](_0x164f07(0x162),_0x4d16b4[_0x164f07(0x13b)]),this[_0x164f07(0x13e)]('id',_0x4d16b4[_0x164f07(0x14e)]),this[_0x164f07(0x13e)](_0x164f07(0x141),_0x23a9c9),this[_0x164f07(0x13e)](_0x164f07(0x166),_0x26dfdb);}[_0x1e5cfd(0x14f)](){const _0x1770dd=_0x1e5cfd,_0x2b72b9=this[_0x1770dd(0x176)](),_0x4466c7=this[_0x1770dd(0x15c)](),_0x250d58=this[_0x1770dd(0x156)];this[_0x1770dd(0x177)]({'tag':_0x1770dd(0x144),'attributes':this[_0x1770dd(0x14b)](_0x250d58),'children':this[_0x1770dd(0x13f)](_0x2b72b9,_0x4466c7,_0x250d58)});}[_0x1e5cfd(0x14b)](_0x2cfd74){const _0x28f18d=_0x1e5cfd;return{'class':[Tn,_0x2cfd74['if'](_0x28f18d(0x162),An,_0x25c8b7=>_0x28f18d(0x16d)==_0x25c8b7),_0x2cfd74['if'](_0x28f18d(0x162),En,_0x308d52=>_0x28f18d(0x165)==_0x308d52)],'data-cke-tooltip-text':_0x2cfd74['to'](_0x28f18d(0x13c),vn),'data-cke-tooltip-position':gn,'data-cke-tooltip-class':On};}[_0x1e5cfd(0x13f)](_0x38dc17,_0x2d276b,_0x333eb7){const _0x3f9c1f=_0x1e5cfd,_0x10c216=this[_0x3f9c1f(0x152)](_0x333eb7),_0x160607=this[_0x3f9c1f(0x172)]();return this[_0x3f9c1f(0x141)]?[_0x38dc17,_0x10c216]:[_0x38dc17,_0x160607,_0x10c216,_0x2d276b];}[_0x1e5cfd(0x152)](_0x28f911){const _0x1dcecb=_0x1e5cfd;return{'tag':_0x1dcecb(0x155),'attributes':{'class':Cn},'children':[{'text':_0x28f911['to'](_0x1dcecb(0x13c))}]};}[_0x1e5cfd(0x15c)](){const _0x425e9c=_0x1e5cfd,_0x4c8d5a=new _0x3217b9(this[_0x425e9c(0x178)]);return _0x4c8d5a[_0x425e9c(0x13e)]({'label':_0x340952(this[_0x425e9c(0x178)],_0x425e9c(0x164)),'icon':_0x155ccf}),this[_0x425e9c(0x179)](_0x4c8d5a),_0x4c8d5a;}[_0x1e5cfd(0x179)](_0x2589b7){const _0x20d054=_0x1e5cfd;_0x2589b7['on'](_0x20d054(0x159),()=>{const _0x18c9b9=_0x20d054;this[_0x18c9b9(0x17a)](_0x18c9b9(0x167),this['id']);});}[_0x1e5cfd(0x176)](){const _0x1beaaa=_0x1e5cfd,_0x26c032=this[_0x1beaaa(0x156)],_0x2860e2=new _0x287cf8();return _0x2860e2[_0x1beaaa(0x146)]=bn[this[_0x1beaaa(0x162)]],_0x2860e2[_0x1beaaa(0x15e)]({'attributes':{'class':[In,_0x26c032['if'](_0x1beaaa(0x166),_0x1beaaa(0x15d),_0x170952=>_0x170952)]}}),_0x2860e2;}[_0x1e5cfd(0x15a)](_0x456291,_0x198b23){const _0x3f819c=_0x1e5cfd;if(!_0x456291)return;const _0x501912=()=>{const _0x229c66=_0x477a;_0x198b23(),_0x456291[_0x229c66(0x14a)](_0x229c66(0x161),_0x501912),_0x456291[_0x229c66(0x14a)](_0x229c66(0x13a),_0x501912);};_0x456291[_0x3f819c(0x15f)](_0x3f819c(0x161),_0x501912),_0x456291[_0x3f819c(0x15f)](_0x3f819c(0x13a),_0x501912);}[_0x1e5cfd(0x172)](){const _0x43d153=_0x1e5cfd,_0x341d8c=new _0x47d1aa(_0x43d153(0x148));return _0x341d8c[_0x43d153(0x151)](_0x43d153(0x169))['to'](this,_0x43d153(0x166),_0x463226=>_0x463226),_0x341d8c;}}function vn(_0x1a910d){const _0x4be3aa=_0x1e5cfd;if(!_0x1a910d)return _0x1a910d;if(_0x1a910d[_0x4be3aa(0x170)]<=0x78)return _0x1a910d;const _0x4c5830=_0x1a910d[_0x4be3aa(0x16b)](0x0,0x78),_0x1a7e77=_0x4c5830[_0x4be3aa(0x168)]('\x20');return(_0x1a7e77>0x0?_0x4c5830[_0x4be3aa(0x16b)](0x0,_0x1a7e77):_0x4c5830)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x181995=_0x3919;(function(_0x15c58a,_0x54e3bf){const _0x274fb1=_0x3919,_0x40ad6b=_0x15c58a();while(!![]){try{const _0x110e35=-parseInt(_0x274fb1(0x184))/0x1*(parseInt(_0x274fb1(0x1a6))/0x2)+-parseInt(_0x274fb1(0x1a5))/0x3+parseInt(_0x274fb1(0x1a0))/0x4+parseInt(_0x274fb1(0x179))/0x5*(parseInt(_0x274fb1(0x174))/0x6)+-parseInt(_0x274fb1(0x1a8))/0x7*(parseInt(_0x274fb1(0x17d))/0x8)+parseInt(_0x274fb1(0x18d))/0x9+parseInt(_0x274fb1(0x172))/0xa;if(_0x110e35===_0x54e3bf)break;else _0x40ad6b['push'](_0x40ad6b['shift']());}catch(_0x3797ab){_0x40ad6b['push'](_0x40ad6b['shift']());}}}(_0xf0cb,0x92b80));function _0x3919(_0x1297f8,_0x18de7d){const _0xf0cb6c=_0xf0cb();return _0x3919=function(_0x391989,_0x28ad13){_0x391989=_0x391989-0x160;let _0x56f250=_0xf0cb6c[_0x391989];return _0x56f250;},_0x3919(_0x1297f8,_0x18de7d);}import{FocusTracker as _0x32d5c0,KeystrokeHandler as _0x102746}from'ckeditor5/src/utils.js';import{ButtonView as _0x2dbff7,FocusCycler as _0x2805ab,LabeledFieldView as _0xd605b7,View as _0x3371c2,FormHeaderView as _0x213855,createLabeledInputText as _0x6b1af5,submitHandler as _0x56d19d}from'ckeditor5/src/ui.js';import{IconCheck as _0x6e6fc2,IconPreviousArrow as _0x4a194e}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0xfc4ccc}from'../../../aicore/utils/common-translations.js';const eh=_0x181995(0x18a),hh=_0x181995(0x18b);export class AIChatContextPanelUrlInputView extends _0x3371c2{[_0x181995(0x19f)];[_0x181995(0x1a3)];[_0x181995(0x16d)];[_0x181995(0x194)];[_0x181995(0x192)];[_0x181995(0x16f)];[_0x181995(0x178)];constructor(_0x316916){const _0x5345de=_0x181995;super(_0x316916),this[_0x5345de(0x19f)]=new _0x32d5c0(),this[_0x5345de(0x1a3)]=new _0x102746(),this[_0x5345de(0x16f)]=this[_0x5345de(0x1a1)](),this[_0x5345de(0x192)]=this[_0x5345de(0x1a7)](),this[_0x5345de(0x178)]=this[_0x5345de(0x189)](),this[_0x5345de(0x16d)]=this[_0x5345de(0x181)]([this[_0x5345de(0x16f)],this[_0x5345de(0x192)],this[_0x5345de(0x178)]]),this[_0x5345de(0x194)]=new _0x2805ab({'focusables':this[_0x5345de(0x16d)],'focusTracker':this[_0x5345de(0x19f)],'keystrokeHandler':this[_0x5345de(0x1a3)],'actions':{'focusPrevious':_0x5345de(0x17e),'focusNext':_0x5345de(0x199)}}),this[_0x5345de(0x16b)](),this[_0x5345de(0x160)](),this[_0x5345de(0x197)]();}[_0x181995(0x176)](){const _0x3ddc91=_0x181995;super[_0x3ddc91(0x176)](),this[_0x3ddc91(0x16d)][_0x3ddc91(0x168)](_0x258a3a=>{const _0x2cc088=_0x3ddc91;this[_0x2cc088(0x19f)][_0x2cc088(0x196)](_0x258a3a[_0x2cc088(0x16c)]),this[_0x2cc088(0x1a3)][_0x2cc088(0x193)](_0x258a3a[_0x2cc088(0x16c)]);}),_0x56d19d({'view':this}),this[_0x3ddc91(0x166)]();}[_0x181995(0x164)](){const _0x2c0435=_0x181995;super[_0x2c0435(0x164)](),this[_0x2c0435(0x19f)][_0x2c0435(0x164)](),this[_0x2c0435(0x1a3)][_0x2c0435(0x164)]();}[_0x181995(0x166)](){const _0x5d817f=_0x181995;this[_0x5d817f(0x192)][_0x5d817f(0x166)]();}[_0x181995(0x18e)](){const _0x4d217d=_0x181995;return this[_0x4d217d(0x192)][_0x4d217d(0x182)][_0x4d217d(0x16c)]?.[_0x4d217d(0x198)]?.[_0x4d217d(0x195)]()||'';}[_0x181995(0x18f)](){const _0x9b7a14=_0x181995;this[_0x9b7a14(0x192)][_0x9b7a14(0x182)][_0x9b7a14(0x16c)][_0x9b7a14(0x198)]='',this[_0x9b7a14(0x192)][_0x9b7a14(0x187)]=null,this[_0x9b7a14(0x178)][_0x9b7a14(0x167)]=!0x1;}[_0x181995(0x161)](_0x4bcd0e){const _0x59ae88=_0x181995;this[_0x59ae88(0x192)][_0x59ae88(0x187)]=_0x4bcd0e,this[_0x59ae88(0x183)](),this[_0x59ae88(0x171)](_0x59ae88(0x180));}[_0x181995(0x18c)](){const _0x15ae47=_0x181995;this[_0x15ae47(0x192)][_0x15ae47(0x187)]=null,this[_0x15ae47(0x183)]();}[_0x181995(0x1a1)](){const _0x471aaa=_0x181995,_0x31897f=new _0x2dbff7(this[_0x471aaa(0x19a)]);return _0x31897f[_0x471aaa(0x169)]({'icon':_0x4a194e,'tooltip':_0xfc4ccc(this[_0x471aaa(0x19a)],_0x471aaa(0x19b)),'tooltipPosition':'n','class':_0x471aaa(0x19c)}),_0x31897f;}[_0x181995(0x1a7)](){const _0x55805f=_0x181995,_0x4880b0=new _0xd605b7(this[_0x55805f(0x19a)],_0x6b1af5);return _0x4880b0[_0x55805f(0x169)]({'label':_0xfc4ccc(this[_0x55805f(0x19a)],_0x55805f(0x16a)),'class':_0x55805f(0x177)}),_0x4880b0[_0x55805f(0x182)][_0x55805f(0x169)]({'placeholder':_0xfc4ccc(this[_0x55805f(0x19a)],_0x55805f(0x185))}),_0x4880b0;}[_0x181995(0x189)](){const _0x5b6e4e=_0x181995,_0x413ae5=new _0x2dbff7(this[_0x5b6e4e(0x19a)]);return _0x413ae5[_0x5b6e4e(0x169)]({'icon':_0x6e6fc2,'tooltip':_0xfc4ccc(this[_0x5b6e4e(0x19a)],_0x5b6e4e(0x17f)),'tooltipPosition':'n','class':_0x5b6e4e(0x17c),'type':_0x5b6e4e(0x1a4),'isEnabled':!0x1}),_0x413ae5;}[_0x181995(0x16b)](){const _0x432c91=_0x181995,_0x1aacb5=new _0x213855(this[_0x432c91(0x19a)],{'label':_0xfc4ccc(this[_0x432c91(0x19a)],_0x432c91(0x17f)),'class':_0x432c91(0x17a)});_0x1aacb5[_0x432c91(0x191)][_0x432c91(0x196)](this[_0x432c91(0x16f)],0x0),this[_0x432c91(0x1a2)]({'tag':_0x432c91(0x170),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x1aacb5,{'tag':_0x432c91(0x16e),'attributes':{'class':hh},'children':[this[_0x432c91(0x192)],this[_0x432c91(0x178)]]}]});}[_0x181995(0x160)](){const _0x2a96f8=_0x181995;this[_0x2a96f8(0x16f)]['on'](_0x2a96f8(0x162),()=>{const _0x1da80a=_0x2a96f8;this[_0x1da80a(0x18f)](),this[_0x1da80a(0x171)](_0x1da80a(0x19d));}),this[_0x2a96f8(0x192)][_0x2a96f8(0x182)]['on'](_0x2a96f8(0x188),()=>{const _0x19e869=_0x2a96f8;this[_0x19e869(0x18c)](),this[_0x19e869(0x183)](),this[_0x19e869(0x171)](_0x19e869(0x180));}),this['on'](_0x2a96f8(0x1a4),_0x254eb6=>{const _0x5d94d5=_0x2a96f8;_0x254eb6[_0x5d94d5(0x186)](),this[_0x5d94d5(0x190)]();});}[_0x181995(0x197)](){const _0x49d732=_0x181995;this[_0x49d732(0x1a3)][_0x49d732(0x169)](_0x49d732(0x165),(_0xe7abc1,_0x4f94e6)=>{const _0x19f0e9=_0x49d732;this[_0x19f0e9(0x18f)](),this[_0x19f0e9(0x171)](_0x19f0e9(0x19d)),_0x4f94e6();});}[_0x181995(0x190)](){const _0xc0a7c0=_0x181995,_0x33701f=this[_0xc0a7c0(0x18e)]()[_0xc0a7c0(0x195)]();_0x33701f?this[_0xc0a7c0(0x163)](_0x33701f)?(this[_0xc0a7c0(0x18c)](),this[_0xc0a7c0(0x171)](_0xc0a7c0(0x175),_0x33701f)):this[_0xc0a7c0(0x161)](_0xfc4ccc(this[_0xc0a7c0(0x19a)],_0xc0a7c0(0x17b))):this[_0xc0a7c0(0x161)](_0xfc4ccc(this[_0xc0a7c0(0x19a)],_0xc0a7c0(0x173)));}[_0x181995(0x183)](){const _0x1eb991=_0x181995,_0x5b2532=this[_0x1eb991(0x18e)]()[_0x1eb991(0x195)](),_0x48b858=!!this[_0x1eb991(0x192)][_0x1eb991(0x187)];this[_0x1eb991(0x178)][_0x1eb991(0x167)]=_0x5b2532[_0x1eb991(0x19e)]>0x0&&!_0x48b858;}[_0x181995(0x163)](_0x118386){try{return!!new URL(_0x118386);}catch{return!0x1;}}}function _0xf0cb(){const _0x3537cf=['_handleSubmit','children','urlInputField','listenTo','focusCycler','trim','add','_setupKeystrokes','value','tab','locale','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-button-icon\x20ck-button-back','cancel','length','focusTracker','4357284oHEPrx','_createBackButton','setTemplate','keystrokes','submit','1632144rDsPvr','2321978ISiWNP','_createUrlInputField','8743XilEVi','_setupEventHandlers','setError','execute','_isValidUrl','destroy','esc','focus','isEnabled','forEach','set','AI_CHAT_CONTEXT_URL_LABEL','_setupTemplate','element','_focusables','div','backButton','form','fire','6222640PwiPJi','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','456RhTyDK','submitUrl','render','ck-labeled-field-view_empty','confirmButton','17615EjDxeT','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_INVALID_ERROR','ck-button-icon','2696PgKcMT','shift+tab','AI_CHAT_CONTEXT_URL_ADD_URL','refreshBalloon','createCollection','fieldView','_updateConfirmButtonState','1vxzaGU','AI_CHAT_CONTEXT_URL_PLACEHOLDER','stop','errorText','input','_createConfirmButton','ck-ai-chat-context-controls__url-form','ck-ai-chat-context-controls__url-input-section','clearError','6728193YSlLhU','getValue','clear'];_0xf0cb=function(){return _0x3537cf;};return _0xf0cb();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x15f2a2=_0x148d;(function(_0x264ac4,_0x5eb158){const _0x4ae073=_0x148d,_0x3e049e=_0x264ac4();while(!![]){try{const _0x55e29f=parseInt(_0x4ae073(0x103))/0x1*(-parseInt(_0x4ae073(0x7e))/0x2)+-parseInt(_0x4ae073(0xc1))/0x3*(parseInt(_0x4ae073(0xbd))/0x4)+-parseInt(_0x4ae073(0x94))/0x5+-parseInt(_0x4ae073(0xb8))/0x6*(parseInt(_0x4ae073(0x91))/0x7)+-parseInt(_0x4ae073(0xf7))/0x8+-parseInt(_0x4ae073(0xa8))/0x9+-parseInt(_0x4ae073(0xdf))/0xa*(-parseInt(_0x4ae073(0x8c))/0xb);if(_0x55e29f===_0x5eb158)break;else _0x3e049e['push'](_0x3e049e['shift']());}catch(_0x1ac0ba){_0x3e049e['push'](_0x3e049e['shift']());}}}(_0x50ce,0xeff07));import{BalloonPanelView as _0x59c6a5,ButtonView as _0x5af781,clickOutsideHandler as _0x245e77,FileDialogButtonView as _0x342ac6,IconView as _0x17fc9a,View as _0x32674c}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x5a5878,IconDocument as _0x410a4e,IconDocumentOutline as _0x1c3ead,IconDropdownArrow as _0x297e58,IconLink as _0x317191,IconPaperClip as _0x2ebee7}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x23c1a8}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x33610c}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xb28182}from'./aichatchipsoverflowmanager.js';function _0x50ce(){const _0x4960eb=['AI_CHAT_CONTEXT_ADD_CONTEXT','urls','children','tooltip','content','10OyUQxG','ck-ai-chat-controls_context_show-more-button','_resourcesBalloonView','_removeContextFromCollection','clearConversationContextItems','ck-ai-chat-context-controls__balloon-button','execute','showUrlBalloonPanel','southArrowNorth','element','buttonView','overflowChips','_showSourceResourcesBalloon','find','9167246XttdZV','isReadOnly','showAddContextBalloonPanel','current','ck-ai-chat-context-controls__add-context-button','13986hiRRay','_urlInputView','arrowView','2054680VthCjK','northArrowSouthEast','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-chips-wrapper-balloon','_createArrowView','destroy','_setAddContextButtonEnabled','enabled','balloonView','removeContextItem','populateSourceResourceBalloon','northArrowSouth','label','_createAddContextBalloonPanelView','_handleAddContextButtonClick','document','removeContextItemChip','_createBalloonButton','_handleUrlSubmit','updateResourceState','4941396iCkBAr','createCollection','files','setContextItemLoading','closest','closeSourceResourceBalloon','ck-ai-chat-context-controls__url-balloon-panel','set','__arrow','_urlBalloonPanelView','defaultPositions','icon','show','ck-ai-chat','_overflowManager','refreshBalloon','4494RtIGGO','isHidden','sources','ck-ai-chat-context-controls','_setupTemplate','348KNUndr','loadSourceResources','northArrowSouthWest','isAnyResourceBalloonVisible','5571JLnduF','_conversationContextsChips','setAddContextOptions','render','type','isEnabled','body','_addUrlContent','addContextButtonView','ck-ai-chat-context-controls__add-context-balloon-panel','_bindEventHandlers','addDocumentToContext','_createContextButton','_setupUrlBalloonClickOutsideHandler','_createResourcesBalloonView','_addContextBalloonPanelView','pin','focus','fire','hide','addUrlToContext','_createUrlBalloonPanelView','submitUrl','_toggleAddContextBalloon','ck-reset_all-excluded','southArrowNorthWest','setTemplate','menuitem','reorganizeChips','hideAddContextBalloonPanel','70AHEzmF','locale','bind','extendTemplate','addFileToContext','div','_addContextToCollection','ck-ai-chat-controls-button','ck-ai-chat-context-controls__balloon-button-source','cancel','ck-ai-chat-context-controls__pending-contexts','setConversationContext','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_createBaseBalloonPanel','clearCurrentContextItems','done','ck-ai-chat-context-controls__show-more-balloon-panel','remove','AI_CHAT_CONTEXT_FILE_LABEL','source','isOn','add','_addContextBalloonConfig','addContextItem','10497720ZujhaU','_currentContextsChips','_setupAllBalloonClickOutsideHandlers','isLoading','conversation','_getLimiterElement','_createAddContextButtonView','hideUrlBalloonPanel','bodyCollection','isVisible','addResourceToContext','AI_CHAT_CONTEXT_URL_LABEL','184131FXlYcM','showSourceResourcesBalloon','setContainerElement','clear','_setBalloonPanelContent','southArrowNorthEast'];_0x50ce=function(){return _0x4960eb;};return _0x50ce();}import{getTranslation as _0x1ad7b8}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x28db72}from'./resources/aichatresourcesballoonview.js';function _0x148d(_0x4092be,_0x399563){const _0x50cec=_0x50ce();return _0x148d=function(_0x148d95,_0x2ca270){_0x148d95=_0x148d95-0x76;let _0x4c29bf=_0x50cec[_0x148d95];return _0x4c29bf;},_0x148d(_0x4092be,_0x399563);}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x15f2a2(0xcc),_0x15f2a2(0xe3),_0x15f2a2(0xd5),_0x15f2a2(0x101),_0x15f2a2(0x9d),_0x15f2a2(0xbe)];const vo=_0x15f2a2(0xbb),go=_0x15f2a2(0xe9),Vo=_0x15f2a2(0xca),fo=_0x15f2a2(0x90),Io=_0x15f2a2(0xae),Po=_0x15f2a2(0x83),Ro=_0x15f2a2(0xe7),uo=_0x15f2a2(0xe6),So=_0x15f2a2(0x97),xo=_0x15f2a2(0x7f),mo=_0x15f2a2(0xef),Uo=_0x15f2a2(0xb5),Lo=[_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0xbf)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0x9f)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0x95)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0xda)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0x86)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0x78)]];export class AIChatContextPanelView extends _0x32674c{[_0x15f2a2(0xc9)];[_0x15f2a2(0xf8)]=this[_0x15f2a2(0xa9)]();[_0x15f2a2(0xc2)]=this[_0x15f2a2(0xa9)]();[_0x15f2a2(0xb6)];[_0x15f2a2(0xd0)];[_0x15f2a2(0xb1)];[_0x15f2a2(0x92)];[_0x15f2a2(0x80)];[_0x15f2a2(0xf5)];[_0x15f2a2(0xff)];constructor(_0x4ad397,_0x42e16b){const _0x5518f2=_0x15f2a2;super(_0x4ad397),this[_0x5518f2(0xff)]=_0x42e16b,this[_0x5518f2(0xf8)]=this[_0x5518f2(0xa9)](),this[_0x5518f2(0xc2)]=this[_0x5518f2(0xa9)](),this[_0x5518f2(0xc9)]=this[_0x5518f2(0xfd)](_0x4ad397),this[_0x5518f2(0xd0)]=this[_0x5518f2(0xa1)](_0x4ad397),this[_0x5518f2(0xb1)]=this[_0x5518f2(0xd6)](_0x4ad397),this[_0x5518f2(0x80)]=this[_0x5518f2(0xcf)](_0x4ad397,_0x42e16b);const _0x32602d={'cssClasses':{'showMoreButton':xo,'showMoreBalloon':mo,'overflowContainer':So,'controlsButton':uo}};this[_0x5518f2(0xb6)]=new _0xb28182(_0x4ad397,this[_0x5518f2(0xf8)],_0x32602d,this[_0x5518f2(0xff)],this),this[_0x5518f2(0xf5)]={'buttonView':this[_0x5518f2(0xc9)],'balloonView':this[_0x5518f2(0xd0)],'hideMethod':this[_0x5518f2(0xde)][_0x5518f2(0xe1)](this),'showMethod':this[_0x5518f2(0x8e)][_0x5518f2(0xe1)](this)},this[_0x5518f2(0xbc)](),this[_0x5518f2(0xcb)]();}[_0x15f2a2(0xc4)](){const _0x3c7191=_0x15f2a2;super[_0x3c7191(0xc4)](),this[_0x3c7191(0xf9)](),this[_0x3c7191(0xb6)][_0x3c7191(0x105)](this[_0x3c7191(0x87)]),this[_0x3c7191(0xb6)][_0x3c7191(0xdd)]();}[_0x15f2a2(0x99)](){const _0x32c9fa=_0x15f2a2;super[_0x32c9fa(0x99)](),this[_0x32c9fa(0xb6)][_0x32c9fa(0x99)](),this[_0x32c9fa(0x80)][_0x32c9fa(0x99)]();}[_0x15f2a2(0xf6)](_0x3ddb8c,_0x53054f){const _0x24a1d6=_0x15f2a2,_0x264e21=this[_0x24a1d6(0xcd)](_0x3ddb8c,_0x24a1d6(0x8f),!0x0,_0x53054f);this[_0x24a1d6(0xe5)](_0x264e21,this[_0x24a1d6(0xf8)]),this[_0x24a1d6(0xb6)][_0x24a1d6(0xdd)]();}[_0x15f2a2(0x9d)](_0x4e1d8){const _0x39e213=_0x15f2a2;this[_0x39e213(0x81)](_0x4e1d8,this[_0x39e213(0xf8)]),this[_0x39e213(0x81)](_0x4e1d8,this[_0x39e213(0xb6)][_0x39e213(0x89)]),this[_0x39e213(0xb6)][_0x39e213(0xdd)]();}[_0x15f2a2(0xab)](_0x2bb628,_0x29024d){const _0x186e06=_0x15f2a2;let _0x335ff5=this[_0x186e06(0xf8)][_0x186e06(0x8b)](_0x17d124=>_0x17d124['id']===_0x2bb628);_0x335ff5||(_0x335ff5=this[_0x186e06(0xb6)][_0x186e06(0x89)][_0x186e06(0x8b)](_0x64db18=>_0x64db18['id']===_0x2bb628)),_0x335ff5&&(_0x335ff5[_0x186e06(0xfa)]=_0x29024d);}[_0x15f2a2(0xea)](_0x2aadf5){const _0x3554f8=_0x15f2a2;this[_0x3554f8(0xc2)][_0x3554f8(0x76)]();for(const _0x33d24f of _0x2aadf5){const _0x32e79b=this[_0x3554f8(0xcd)](_0x33d24f,_0x3554f8(0xfb),!0x1,!0x1);this[_0x3554f8(0xe5)](_0x32e79b,this[_0x3554f8(0xc2)]);}}[_0x15f2a2(0xed)](){const _0x3d4649=_0x15f2a2;this[_0x3d4649(0xf8)][_0x3d4649(0x76)](),this[_0x3d4649(0xb6)][_0x3d4649(0x76)]();}[_0x15f2a2(0x82)](){const _0x2c299f=_0x15f2a2;this[_0x2c299f(0xc2)][_0x2c299f(0x76)]();}[_0x15f2a2(0xa7)](_0x5c8d5d,_0x3f5bdd,_0x40d52c){const _0x5ea233=_0x15f2a2;this[_0x5ea233(0x80)][_0x5ea233(0xa7)](_0x5c8d5d,_0x3f5bdd,_0x40d52c);}[_0x15f2a2(0xde)](){const _0x5644cc=_0x15f2a2;this[_0x5644cc(0xd8)](!0x1);}[_0x15f2a2(0x8e)](){const _0x4c1c6a=_0x15f2a2;this[_0x4c1c6a(0xd8)](!0x0);}[_0x15f2a2(0xfe)](){const _0x191970=_0x15f2a2;this[_0x191970(0xb1)][_0x191970(0xd4)](),this[_0x191970(0xc9)][_0x191970(0xf3)]=!0x1,this[_0x191970(0x92)]&&this[_0x191970(0x92)][_0x191970(0x76)]();}[_0x15f2a2(0x85)](){const _0x3289be=_0x15f2a2;this[_0x3289be(0xb1)][_0x3289be(0xb4)](),this[_0x3289be(0xc9)][_0x3289be(0xf3)]=!0x0;}[_0x15f2a2(0x8a)](_0x47e135){const _0x2a1ce3=_0x15f2a2;this[_0x2a1ce3(0x80)][_0x2a1ce3(0x104)](_0x47e135),this[_0x2a1ce3(0xc9)][_0x2a1ce3(0xf3)]=!0x0;}[_0x15f2a2(0x9e)](_0x596287,_0x13ad08,_0x1793aa,_0x4348db){const _0x393334=_0x15f2a2;this[_0x393334(0x80)][_0x393334(0x9e)](_0x596287,_0x1793aa,_0x4348db);}[_0x15f2a2(0xad)](_0x548664){const _0x538732=_0x15f2a2;this[_0x538732(0x80)][_0x538732(0xad)](_0x548664),this[_0x538732(0xc9)][_0x538732(0xf3)]=!0x1;}[_0x15f2a2(0xc3)](_0x3c9652){const _0x74aaca=_0x15f2a2;this[_0x74aaca(0x77)](this[_0x74aaca(0xd0)],this[_0x74aaca(0xe0)],_0x3c9652),this[_0x74aaca(0x9a)](_0x3c9652);}[_0x15f2a2(0x9a)](_0x2a87f3){const _0xd0ff46=_0x15f2a2,_0x413598=!_0x2a87f3[_0xd0ff46(0xa3)][_0xd0ff46(0xb9)]&&_0x2a87f3[_0xd0ff46(0xa3)][_0xd0ff46(0x9b)],_0x3ad2c3=_0x2a87f3[_0xd0ff46(0x7a)][_0xd0ff46(0x9b)],_0x3cc9f0=_0x2a87f3[_0xd0ff46(0xaa)][_0xd0ff46(0x9b)];this[_0xd0ff46(0xc9)][_0xd0ff46(0xc6)]=_0x413598||_0x3ad2c3||_0x3cc9f0;}[_0x15f2a2(0xbc)](){const _0x17a02e=_0x15f2a2;this[_0x17a02e(0xdb)]({'tag':_0x17a02e(0xe4),'attributes':{'class':[vo,_0x17a02e(0xd9)]},'children':[{'tag':_0x17a02e(0xe4),'attributes':{'class':go},'children':this[_0x17a02e(0xf8)]}]});}[_0x15f2a2(0xcb)](){const _0xcd7779=_0x15f2a2;this[_0xcd7779(0xc9)]['on'](_0xcd7779(0x84),()=>{const _0x16995a=_0xcd7779;this[_0x16995a(0xa2)]();});}[_0x15f2a2(0xfd)](_0x4348fc){const _0x4c066a=_0x15f2a2,_0x19e354=new _0x5af781(_0x4348fc);return _0x19e354[_0x4c066a(0xaf)]({'label':_0x1ad7b8(_0x4348fc,_0x4c066a(0x79)),'class':uo+'\x20'+fo,'icon':_0x2ebee7,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x19e354;}[_0x15f2a2(0xa1)](_0xcabd25){const _0x5161aa=_0x15f2a2;return this[_0x5161aa(0xec)](_0xcabd25,Vo);}[_0x15f2a2(0xd6)](_0x26f613){const _0x272e53=_0x15f2a2,_0x137279=this[_0x272e53(0xec)](_0x26f613,Io);return this[_0x272e53(0xc8)](_0x137279,_0x26f613),_0x137279;}[_0x15f2a2(0xcf)](_0x7bd77b,_0x151f35){const _0x5bba66=_0x15f2a2;return new _0x28db72(_0x7bd77b,_0x151f35,{'onBackToContext':()=>{const _0x278e74=_0x148d;this[_0x278e74(0x8e)](),this[_0x278e74(0xd0)][_0x278e74(0xd1)]({'target':this[_0x278e74(0xc9)][_0x278e74(0x87)],'limiter':this[_0x278e74(0xfc)](),'positions':Lo});},'onResourceSelected':(_0x41edc8,_0x53d61c)=>{const _0x36fe8d=_0x148d;this[_0x36fe8d(0xd3)](_0x36fe8d(0x101),{'source':_0x41edc8,'resource':_0x53d61c});},'onLoadSourceResources':_0x372a9a=>{const _0x48b876=_0x148d;this[_0x48b876(0xd3)](_0x48b876(0xbe),_0x372a9a);},'onBalloonClosed':()=>{const _0x39076a=_0x148d;this[_0x39076a(0xc9)][_0x39076a(0xf3)]=!0x1;},'getLimiterElement':()=>this[_0x5bba66(0xfc)](),'getTargetElement':()=>this[_0x5bba66(0xc9)][_0x5bba66(0x87)]});}[_0x15f2a2(0xfc)](){const _0x200f91=_0x15f2a2;return this[_0x200f91(0x87)]?.[_0x200f91(0xac)]('.'+Uo)||document[_0x200f91(0xc7)];}[_0x15f2a2(0xec)](_0x40aedb,_0x4413b3){const _0xa4d77=_0x15f2a2,_0xefce88=new _0x59c6a5(_0x40aedb);return _0xefce88[_0xa4d77(0xe2)]({'attributes':{'class':_0x4413b3}}),this[_0xa4d77(0xff)][_0xa4d77(0xf4)](_0xefce88),_0xefce88;}[_0x15f2a2(0x77)](_0x539e8b,_0x556f7a,_0x170938){const _0x9ea024=_0x15f2a2;if(_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0x76)](),!_0x170938[_0x9ea024(0xa3)][_0x9ea024(0xb9)]&&_0x170938[_0x9ea024(0xa3)][_0x9ea024(0x9b)]){const _0x2e23f8=this[_0x9ea024(0xa5)](_0x556f7a,{'label':_0x1ad7b8(_0x556f7a,_0x9ea024(0xeb)),'icon':_0x410a4e});_0x2e23f8['on'](_0x9ea024(0x84),()=>{const _0xc73a47=_0x9ea024;this[_0xc73a47(0xd3)](_0xc73a47(0xcc)),this[_0xc73a47(0xde)]();}),_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0xf4)](_0x2e23f8);}if(_0x170938[_0x9ea024(0x7a)][_0x9ea024(0x9b)]){const _0x2002b5=this[_0x9ea024(0xa5)](_0x556f7a,{'label':_0x1ad7b8(_0x556f7a,_0x9ea024(0x102)),'icon':_0x317191});_0x2002b5['on'](_0x9ea024(0x84),()=>{const _0x125413=_0x9ea024;this[_0x125413(0xde)](),this[_0x125413(0x85)](),this[_0x125413(0xb1)][_0x125413(0xd1)]({'target':this[_0x125413(0xc9)][_0x125413(0x87)],'limiter':this[_0x125413(0xfc)](),'positions':Lo}),this[_0x125413(0x92)][_0x125413(0xd2)]();}),_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0xf4)](_0x2002b5);}if(_0x170938[_0x9ea024(0xaa)][_0x9ea024(0x9b)]){const _0x46d366=new _0x342ac6(_0x556f7a);_0x46d366[_0x9ea024(0xaf)]({'label':_0x1ad7b8(_0x556f7a,_0x9ea024(0xf1)),'icon':_0x5a5878,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x46d366['on'](_0x9ea024(0xee),(_0x2146d6,_0x229038)=>{const _0x50659a=_0x9ea024;this[_0x50659a(0xd3)](_0x50659a(0xe3),_0x229038),this[_0x50659a(0xde)]();}),_0x46d366[_0x9ea024(0x7c)]=!0x0,_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0xf4)](_0x46d366);}for(const _0xe9ec1 of _0x170938[_0x9ea024(0xba)]){const _0x229793=this[_0x9ea024(0xa5)](_0x556f7a,{'label':_0xe9ec1[_0x9ea024(0xa0)],'icon':_0xe9ec1[_0x9ea024(0xb3)]||_0x1c3ead,'type':_0x9ea024(0xf2)});_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0xf4)](_0x229793),_0x229793['on'](_0x9ea024(0x84),()=>{const _0x5768d8=_0x9ea024;this[_0x5768d8(0xde)](),this[_0x5768d8(0x8a)](_0xe9ec1);});}}[_0x15f2a2(0xc8)](_0x3b169c,_0x34019e){const _0x9283b1=_0x15f2a2;this[_0x9283b1(0x92)]=new _0x33610c(_0x34019e),this[_0x9283b1(0x92)]['on'](_0x9283b1(0xd7),(_0x4e4be0,_0x38453c)=>{const _0x266ee1=_0x9283b1;this[_0x266ee1(0xa6)](_0x38453c);}),this[_0x9283b1(0x92)]['on'](_0x9283b1(0xe8),()=>{const _0x401706=_0x9283b1;this[_0x401706(0xfe)](),this[_0x401706(0x8e)](),this[_0x401706(0xd0)][_0x401706(0xd1)]({'target':this[_0x401706(0xc9)][_0x401706(0x87)],'limiter':this[_0x401706(0xfc)](),'positions':Lo});}),this[_0x9283b1(0x92)]['on'](_0x9283b1(0xb7),()=>{const _0x3e8773=_0x9283b1;this[_0x3e8773(0xb1)][_0x3e8773(0x100)]&&this[_0x3e8773(0xb1)][_0x3e8773(0xd1)]({'target':this[_0x3e8773(0xc9)][_0x3e8773(0x87)],'limiter':this[_0x3e8773(0xfc)](),'positions':Lo});}),_0x3b169c[_0x9283b1(0x7d)][_0x9283b1(0xf4)](this[_0x9283b1(0x92)]);}[_0x15f2a2(0xa5)](_0x229fa1,_0x5c1957){const _0x48d752=_0x15f2a2,_0x4511ca=_0x48d752(0xf2)===_0x5c1957[_0x48d752(0xc5)]?new SourcesBalloonButtonView(_0x229fa1):new _0x5af781(_0x229fa1);return _0x4511ca[_0x48d752(0xaf)]({'label':_0x5c1957[_0x48d752(0xa0)],'icon':_0x5c1957[_0x48d752(0xb3)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x4511ca;}[_0x15f2a2(0xf9)](){const _0x6eeaf=_0x15f2a2;this[_0x6eeaf(0x96)](),this[_0x6eeaf(0xce)]();}[_0x15f2a2(0xce)](){const _0x143289=_0x15f2a2;_0x245e77({'emitter':this[_0x143289(0xb1)],'contextElements':[this[_0x143289(0xb1)][_0x143289(0x87)]],'callback':()=>{const _0x33b1a3=_0x143289;this[_0x33b1a3(0xfe)]();},'activator':()=>this[_0x143289(0xb1)][_0x143289(0x100)]});}[_0x15f2a2(0xd8)](_0x224dc6){const _0x3fc971=_0x15f2a2,_0x5a1b12=this[_0x3fc971(0xf5)];_0x5a1b12[_0x3fc971(0x88)][_0x3fc971(0xf3)]=_0x224dc6,_0x224dc6?_0x5a1b12[_0x3fc971(0x9c)][_0x3fc971(0xb4)]():_0x5a1b12[_0x3fc971(0x9c)][_0x3fc971(0xd4)]();}[_0x15f2a2(0x96)](){const _0x441631=_0x15f2a2,{balloonView:_0x33825b,buttonView:_0x391658,hideMethod:_0x192882}=this[_0x441631(0xf5)];_0x245e77({'emitter':_0x33825b,'contextElements':[_0x33825b[_0x441631(0x87)],_0x391658[_0x441631(0x87)]],'callback':()=>{_0x192882();},'activator':()=>_0x391658[_0x441631(0xf3)]&&!this[_0x441631(0xb1)][_0x441631(0x100)]&&!this[_0x441631(0x80)][_0x441631(0xc0)]()});}[_0x15f2a2(0xcd)](_0x3cff13,_0x24b6ec,_0xea3699=!0x1,_0x2a42c4=!0x1){const _0x3975b1=_0x15f2a2,_0x3cc04d=_0x3975b1(0xfb)===_0x24b6ec||!0x0===_0x3cff13[_0x3975b1(0x8d)],_0x4848ba=new _0x23c1a8(this[_0x3975b1(0xe0)],_0x3cff13,_0x3cc04d,_0xea3699,_0x2a42c4);return _0x3cc04d||_0x4848ba['on'](_0x3975b1(0xa4),()=>{const _0x5a9555=_0x3975b1;this[_0x5a9555(0xd3)](_0x5a9555(0x9d),_0x4848ba['id']);}),_0x4848ba;}[_0x15f2a2(0xe5)](_0xe6b779,_0x3261c7){const _0x221c67=_0x15f2a2;_0x3261c7[_0x221c67(0xf4)](_0xe6b779,0x0);}[_0x15f2a2(0x81)](_0xc0b9a4,_0x299d8d){const _0xf2d37b=_0x15f2a2,_0x2561f3=_0x299d8d[_0xf2d37b(0x8b)](_0xb54317=>_0xb54317['id']===_0xc0b9a4);_0x2561f3&&_0x299d8d[_0xf2d37b(0xf0)](_0x2561f3);}[_0x15f2a2(0xa2)](){const _0x5b0f36=_0x15f2a2;this[_0x5b0f36(0xc9)][_0x5b0f36(0xf3)]?this[_0x5b0f36(0xde)]():(this[_0x5b0f36(0x8e)](),this[_0x5b0f36(0xd0)][_0x5b0f36(0xd1)]({'target':this[_0x5b0f36(0xc9)][_0x5b0f36(0x87)],'limiter':this[_0x5b0f36(0xfc)](),'positions':Lo}));}[_0x15f2a2(0xa6)](_0x1b2c4e){const _0x288d95=_0x15f2a2;this[_0x288d95(0x92)][_0x288d95(0x76)](),this[_0x288d95(0xfe)](),this[_0x288d95(0xd3)](_0x288d95(0xd5),_0x1b2c4e);}}export class SourcesBalloonButtonView extends _0x5af781{[_0x15f2a2(0x93)];constructor(_0x1482d3){const _0x302137=_0x15f2a2;super(_0x1482d3),this[_0x302137(0xaf)]({'withText':!0x0,'role':_0x302137(0xdc)}),this[_0x302137(0x93)]=this[_0x302137(0x98)](),this[_0x302137(0xe2)]({'attributes':{'class':[Ro]}});}[_0x15f2a2(0xc4)](){const _0x9e396f=_0x15f2a2;super[_0x9e396f(0xc4)](),this[_0x9e396f(0x7b)][_0x9e396f(0xf4)](this[_0x9e396f(0x93)]);}[_0x15f2a2(0x98)](){const _0x504e00=_0x15f2a2,_0x599528=new _0x17fc9a();return _0x599528[_0x504e00(0x7d)]=_0x297e58,_0x599528[_0x504e00(0xe2)]({'attributes':{'class':Ro+_0x504e00(0xb0)}}),_0x599528;}}
|
|
23
|
+
const _0x4e9c08=_0x1021;(function(_0x252e14,_0x4000f5){const _0x32e602=_0x1021,_0x5a37df=_0x252e14();while(!![]){try{const _0x52377c=parseInt(_0x32e602(0xef))/0x1*(parseInt(_0x32e602(0x94))/0x2)+parseInt(_0x32e602(0xdf))/0x3+parseInt(_0x32e602(0xd7))/0x4*(-parseInt(_0x32e602(0xb5))/0x5)+parseInt(_0x32e602(0xe2))/0x6*(-parseInt(_0x32e602(0xd3))/0x7)+parseInt(_0x32e602(0xfe))/0x8+parseInt(_0x32e602(0x9f))/0x9*(parseInt(_0x32e602(0x99))/0xa)+parseInt(_0x32e602(0xbd))/0xb*(parseInt(_0x32e602(0xa6))/0xc);if(_0x52377c===_0x4000f5)break;else _0x5a37df['push'](_0x5a37df['shift']());}catch(_0x139c2a){_0x5a37df['push'](_0x5a37df['shift']());}}}(_0x28bb,0xc9ea0));function _0x28bb(){const _0x199844=['12NWyptG','addContextButtonView','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-context-controls__add-context-button','reorganizeChips','_setBalloonPanelContent','ck-ai-chat','ck-reset_all-excluded','clearConversationContextItems','removeContextItem','source','overflowChips','updateResourceState','div','sources','1985sMxwVT','northArrowSouthWest','document','isVisible','_setupTemplate','done','__arrow','southArrowNorthWest','11753786MoSVHG','isLoading','clearCurrentContextItems','_toggleAddContextBalloon','icon','setConversationContext','showSourceResourcesBalloon','northArrowSouth','addDocumentToContext','extendTemplate','createCollection','ck-ai-chat-context-controls__show-more-balloon-panel','defaultPositions','AI_CHAT_CONTEXT_FILE_LABEL','add','hideAddContextBalloonPanel','label','_showSourceResourcesBalloon','_createAddContextBalloonPanelView','render','bind','_bindEventHandlers','21wHYKYv','hideUrlBalloonPanel','populateSourceResourceBalloon','setContainerElement','16508ogXlMr','body','ck-ai-chat-controls-button','ck-ai-chat-context-controls','conversation','show','_addContextToCollection','_createAddContextButtonView','4400199nLmEIu','northArrowSouthEast','submitUrl','3015120JhASiM','isHidden','arrowView','content','tooltip','ck-ai-chat-context-chips-wrapper-balloon','set','addResourceToContext','_addContextBalloonPanelView','element','_urlInputView','_handleUrlSubmit','showAddContextBalloonPanel','1FoDpay','locale','hide','isAnyResourceBalloonVisible','urls','ck-ai-chat-controls_context_show-more-button','_createBalloonButton','ck-ai-chat-context-controls__balloon-button','focus','refreshBalloon','_setupAllBalloonClickOutsideHandlers','bodyCollection','_addUrlContent','ck-ai-chat-context-controls__pending-contexts','cancel','2646976AFquCF','addFileToContext','AI_CHAT_CONTEXT_URL_LABEL','isReadOnly','menuitem','children','closest','files','removeContextItemChip','_createUrlBalloonPanelView','closeSourceResourceBalloon','destroy','fire','enabled','addUrlToContext','type','setContextItemLoading','buttonView','_createResourcesBalloonView','_setAddContextButtonEnabled','_overflowManager','pin','isOn','loadSourceResources','_currentContextsChips','ck-ai-chat-context-controls__balloon-button-source','balloonView','setAddContextOptions','_createBaseBalloonPanel','execute','_resourcesBalloonView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_urlBalloonPanelView','_setupAddContextBalloonClickOutsideHandler','_conversationContextsChips','isEnabled','southArrowNorth','showUrlBalloonPanel','addContextItem','439996UsWnJm','_createArrowView','current','_removeContextFromCollection','_handleAddContextButtonClick','47940XgYkBo','_setupUrlBalloonClickOutsideHandler','_createContextButton','remove','clear','ck-ai-chat-context-controls__add-context-balloon-panel','1665CCYWdf','_getLimiterElement','southArrowNorthEast','AI_CHAT_CONTEXT_ADD_CONTEXT','setTemplate','find','_addContextBalloonConfig'];_0x28bb=function(){return _0x199844;};return _0x28bb();}import{BalloonPanelView as _0x1fa834,ButtonView as _0x2971f0,clickOutsideHandler as _0xf04abc,FileDialogButtonView as _0x355495,IconView as _0xd63c0e,View as _0x56bbf4}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x443d82,IconDocument as _0x68bfbc,IconDocumentOutline as _0x2f94a4,IconDropdownArrow as _0x24ec6c,IconLink as _0x878118,IconPaperClip as _0x4e10a3}from'@ckeditor/ckeditor5-icons';function _0x1021(_0x232a52,_0x1f4559){const _0x28bb80=_0x28bb();return _0x1021=function(_0x1021e7,_0x4ccb6d){_0x1021e7=_0x1021e7-0x87;let _0x72f2f9=_0x28bb80[_0x1021e7];return _0x72f2f9;},_0x1021(_0x232a52,_0x1f4559);}import{AIChatContextItemButtonView as _0x21b72b}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0xa41e7}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x29fa93}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x4374fa}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x58e0fd}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4e9c08(0xc5),_0x4e9c08(0xff),_0x4e9c08(0x10c),_0x4e9c08(0xe9),_0x4e9c08(0xaf),_0x4e9c08(0x115)];const bo=_0x4e9c08(0xda),To=_0x4e9c08(0xfc),Ao=_0x4e9c08(0x9e),ko=_0x4e9c08(0xa9),Eo=_0x4e9c08(0xa8),vo=_0x4e9c08(0xf6),go=_0x4e9c08(0x117),Vo=_0x4e9c08(0xd9),fo=_0x4e9c08(0xe7),Io=_0x4e9c08(0xf4),Po=_0x4e9c08(0xc8),Ro=_0x4e9c08(0xac),So=[_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xb6)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xc4)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xe0)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xbc)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0x91)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xa1)]];export class AIChatContextPanelView extends _0x56bbf4{[_0x4e9c08(0xa7)];[_0x4e9c08(0x116)]=this[_0x4e9c08(0xc7)]();[_0x4e9c08(0x8f)]=this[_0x4e9c08(0xc7)]();[_0x4e9c08(0x112)];[_0x4e9c08(0xea)];[_0x4e9c08(0x8d)];[_0x4e9c08(0xec)];[_0x4e9c08(0x8b)];[_0x4e9c08(0xa5)];[_0x4e9c08(0xfa)];constructor(_0x14bda0,_0x54aa46){const _0x17ab5c=_0x4e9c08;super(_0x14bda0),this[_0x17ab5c(0xfa)]=_0x54aa46,this[_0x17ab5c(0x116)]=this[_0x17ab5c(0xc7)](),this[_0x17ab5c(0x8f)]=this[_0x17ab5c(0xc7)](),this[_0x17ab5c(0xa7)]=this[_0x17ab5c(0xde)](_0x14bda0),this[_0x17ab5c(0xea)]=this[_0x17ab5c(0xcf)](_0x14bda0),this[_0x17ab5c(0x8d)]=this[_0x17ab5c(0x107)](_0x14bda0),this[_0x17ab5c(0x8b)]=this[_0x17ab5c(0x110)](_0x14bda0,_0x54aa46);const _0x7665c8={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':fo,'controlsButton':Vo}};this[_0x17ab5c(0x112)]=new _0x29fa93(_0x14bda0,this[_0x17ab5c(0x116)],_0x7665c8,this[_0x17ab5c(0xfa)],this),this[_0x17ab5c(0xa5)]={'buttonView':this[_0x17ab5c(0xa7)],'balloonView':this[_0x17ab5c(0xea)],'hideMethod':this[_0x17ab5c(0xcc)][_0x17ab5c(0xd1)](this),'showMethod':this[_0x17ab5c(0xee)][_0x17ab5c(0xd1)](this)},this[_0x17ab5c(0xb9)](),this[_0x17ab5c(0xd2)]();}[_0x4e9c08(0xd0)](){const _0x4ef260=_0x4e9c08;super[_0x4ef260(0xd0)](),this[_0x4ef260(0xf9)](),this[_0x4ef260(0x112)][_0x4ef260(0xd6)](this[_0x4ef260(0xeb)]),this[_0x4ef260(0x112)][_0x4ef260(0xaa)]();}[_0x4e9c08(0x109)](){const _0xde2c25=_0x4e9c08;super[_0xde2c25(0x109)](),this[_0xde2c25(0x112)][_0xde2c25(0x109)](),this[_0xde2c25(0x8b)][_0xde2c25(0x109)]();}[_0x4e9c08(0x93)](_0x1c2c1e,_0x4ef4e6){const _0x2ca2df=_0x4e9c08,_0x4dbdbe=this[_0x2ca2df(0x9b)](_0x1c2c1e,_0x2ca2df(0x96),!0x0,_0x4ef4e6);this[_0x2ca2df(0xdd)](_0x4dbdbe,this[_0x2ca2df(0x116)]),this[_0x2ca2df(0x112)][_0x2ca2df(0xaa)]();}[_0x4e9c08(0xaf)](_0x3839f8){const _0x2cdf49=_0x4e9c08;this[_0x2cdf49(0x97)](_0x3839f8,this[_0x2cdf49(0x116)]),this[_0x2cdf49(0x97)](_0x3839f8,this[_0x2cdf49(0x112)][_0x2cdf49(0xb1)]),this[_0x2cdf49(0x112)][_0x2cdf49(0xaa)]();}[_0x4e9c08(0x10e)](_0x27c616,_0x5c35d7){const _0x43aa34=_0x4e9c08;let _0x235678=this[_0x43aa34(0x116)][_0x43aa34(0xa4)](_0x59d48=>_0x59d48['id']===_0x27c616);_0x235678||(_0x235678=this[_0x43aa34(0x112)][_0x43aa34(0xb1)][_0x43aa34(0xa4)](_0x534787=>_0x534787['id']===_0x27c616)),_0x235678&&(_0x235678[_0x43aa34(0xbe)]=_0x5c35d7);}[_0x4e9c08(0xc2)](_0x305293){const _0x5b4bdd=_0x4e9c08;this[_0x5b4bdd(0x8f)][_0x5b4bdd(0x9d)]();for(const _0x1048e3 of _0x305293){const _0x528db3=this[_0x5b4bdd(0x9b)](_0x1048e3,_0x5b4bdd(0xdb),!0x1,!0x1);this[_0x5b4bdd(0xdd)](_0x528db3,this[_0x5b4bdd(0x8f)]);}}[_0x4e9c08(0xbf)](){const _0x31d78f=_0x4e9c08;this[_0x31d78f(0x116)][_0x31d78f(0x9d)](),this[_0x31d78f(0x112)][_0x31d78f(0x9d)]();}[_0x4e9c08(0xae)](){const _0x108fa7=_0x4e9c08;this[_0x108fa7(0x8f)][_0x108fa7(0x9d)]();}[_0x4e9c08(0xb2)](_0x2bf51e,_0x2d83f4,_0x31559e){const _0x23f364=_0x4e9c08;this[_0x23f364(0x8b)][_0x23f364(0xb2)](_0x2bf51e,_0x2d83f4,_0x31559e);}[_0x4e9c08(0xcc)](){const _0x59bd39=_0x4e9c08;this[_0x59bd39(0xc0)](!0x1);}[_0x4e9c08(0xee)](){const _0x36141f=_0x4e9c08;this[_0x36141f(0xc0)](!0x0);}[_0x4e9c08(0xd4)](){const _0x4f56a0=_0x4e9c08;this[_0x4f56a0(0x8d)][_0x4f56a0(0xf1)](),this[_0x4f56a0(0xa7)][_0x4f56a0(0x114)]=!0x1,this[_0x4f56a0(0xec)]&&this[_0x4f56a0(0xec)][_0x4f56a0(0x9d)]();}[_0x4e9c08(0x92)](){const _0x20e1f1=_0x4e9c08;this[_0x20e1f1(0x8d)][_0x20e1f1(0xdc)](),this[_0x20e1f1(0xa7)][_0x20e1f1(0x114)]=!0x0;}[_0x4e9c08(0xce)](_0x515306){const _0x226b7d=_0x4e9c08;this[_0x226b7d(0x8b)][_0x226b7d(0xc3)](_0x515306),this[_0x226b7d(0xa7)][_0x226b7d(0x114)]=!0x0;}[_0x4e9c08(0xd5)](_0x499689,_0x3e1864,_0x230d39,_0x47e238){const _0x5875b2=_0x4e9c08;this[_0x5875b2(0x8b)][_0x5875b2(0xd5)](_0x499689,_0x230d39,_0x47e238);}[_0x4e9c08(0x108)](_0x3c5687){const _0x46cce6=_0x4e9c08;this[_0x46cce6(0x8b)][_0x46cce6(0x108)](_0x3c5687),this[_0x46cce6(0xa7)][_0x46cce6(0x114)]=!0x1;}[_0x4e9c08(0x88)](_0x2844cb){const _0x854aa5=_0x4e9c08;this[_0x854aa5(0xab)](this[_0x854aa5(0xea)],this[_0x854aa5(0xf0)],_0x2844cb),this[_0x854aa5(0x111)](_0x2844cb);}[_0x4e9c08(0x111)](_0x3ac439){const _0x46290e=_0x4e9c08,_0x313bf0=!_0x3ac439[_0x46290e(0xb7)][_0x46290e(0xe3)]&&_0x3ac439[_0x46290e(0xb7)][_0x46290e(0x10b)],_0x2c97c7=_0x3ac439[_0x46290e(0xf3)][_0x46290e(0x10b)],_0x36ca7b=_0x3ac439[_0x46290e(0x105)][_0x46290e(0x10b)];this[_0x46290e(0xa7)][_0x46290e(0x90)]=_0x313bf0||_0x2c97c7||_0x36ca7b;}[_0x4e9c08(0xb9)](){const _0x2e57d8=_0x4e9c08;this[_0x2e57d8(0xa3)]({'tag':_0x2e57d8(0xb3),'attributes':{'class':[bo,_0x2e57d8(0xad)]},'children':[{'tag':_0x2e57d8(0xb3),'attributes':{'class':To},'children':this[_0x2e57d8(0x116)]}]});}[_0x4e9c08(0xd2)](){const _0x13395d=_0x4e9c08;this[_0x13395d(0xa7)]['on'](_0x13395d(0x8a),()=>{const _0x206d17=_0x13395d;this[_0x206d17(0x98)]();});}[_0x4e9c08(0xde)](_0x4a15d8){const _0x4629ff=_0x4e9c08,_0x85cac4=new _0x2971f0(_0x4a15d8);return _0x85cac4[_0x4629ff(0xe8)]({'label':_0x4374fa(_0x4a15d8,_0x4629ff(0xa2)),'class':Vo+'\x20'+ko,'icon':_0x4e10a3,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x85cac4;}[_0x4e9c08(0xcf)](_0x36f452){const _0x11d111=_0x4e9c08;return this[_0x11d111(0x89)](_0x36f452,Ao);}[_0x4e9c08(0x107)](_0x3f15b1){const _0x467b1d=_0x4e9c08,_0x423775=this[_0x467b1d(0x89)](_0x3f15b1,Eo);return this[_0x467b1d(0xfb)](_0x423775,_0x3f15b1),_0x423775;}[_0x4e9c08(0x110)](_0x446865,_0x4fc519){const _0x44d8c5=_0x4e9c08;return new _0x58e0fd(_0x446865,_0x4fc519,{'onBackToContext':()=>{const _0x534602=_0x1021;this[_0x534602(0xee)](),this[_0x534602(0xea)][_0x534602(0x113)]({'target':this[_0x534602(0xa7)][_0x534602(0xeb)],'limiter':this[_0x534602(0xa0)](),'positions':So});},'onResourceSelected':(_0x4f746e,_0x42e664)=>{const _0x392c1b=_0x1021;this[_0x392c1b(0x10a)](_0x392c1b(0xe9),{'source':_0x4f746e,'resource':_0x42e664});},'onLoadSourceResources':_0x19d638=>{const _0x4b945c=_0x1021;this[_0x4b945c(0x10a)](_0x4b945c(0x115),_0x19d638);},'onBalloonClosed':()=>{const _0x505512=_0x1021;this[_0x505512(0xa7)][_0x505512(0x114)]=!0x1;},'getLimiterElement':()=>this[_0x44d8c5(0xa0)](),'getTargetElement':()=>this[_0x44d8c5(0xa7)][_0x44d8c5(0xeb)]});}[_0x4e9c08(0xa0)](){const _0x37e790=_0x4e9c08;return this[_0x37e790(0xeb)]?.[_0x37e790(0x104)]('.'+Ro)||document[_0x37e790(0xd8)];}[_0x4e9c08(0x89)](_0x2cea4c,_0x5c7564){const _0x370fd7=_0x4e9c08,_0x9f42e8=new _0x1fa834(_0x2cea4c);return _0x9f42e8[_0x370fd7(0xc6)]({'attributes':{'class':_0x5c7564}}),this[_0x370fd7(0xfa)][_0x370fd7(0xcb)](_0x9f42e8),_0x9f42e8;}[_0x4e9c08(0xab)](_0x3f3756,_0x192164,_0x4516f0){const _0xa2e6b7=_0x4e9c08;if(_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0x9d)](),!_0x4516f0[_0xa2e6b7(0xb7)][_0xa2e6b7(0xe3)]&&_0x4516f0[_0xa2e6b7(0xb7)][_0xa2e6b7(0x10b)]){const _0x377d5e=this[_0xa2e6b7(0xf5)](_0x192164,{'label':_0x4374fa(_0x192164,_0xa2e6b7(0x8c)),'icon':_0x68bfbc});_0x377d5e['on'](_0xa2e6b7(0x8a),()=>{const _0x1b5e40=_0xa2e6b7;this[_0x1b5e40(0x10a)](_0x1b5e40(0xc5)),this[_0x1b5e40(0xcc)]();}),_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0xcb)](_0x377d5e);}if(_0x4516f0[_0xa2e6b7(0xf3)][_0xa2e6b7(0x10b)]){const _0x4b9317=this[_0xa2e6b7(0xf5)](_0x192164,{'label':_0x4374fa(_0x192164,_0xa2e6b7(0x100)),'icon':_0x878118});_0x4b9317['on'](_0xa2e6b7(0x8a),()=>{const _0x1fe7f7=_0xa2e6b7;this[_0x1fe7f7(0xcc)](),this[_0x1fe7f7(0x92)](),this[_0x1fe7f7(0x8d)][_0x1fe7f7(0x113)]({'target':this[_0x1fe7f7(0xa7)][_0x1fe7f7(0xeb)],'limiter':this[_0x1fe7f7(0xa0)](),'positions':So}),this[_0x1fe7f7(0xec)][_0x1fe7f7(0xf7)]();}),_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0xcb)](_0x4b9317);}if(_0x4516f0[_0xa2e6b7(0x105)][_0xa2e6b7(0x10b)]){const _0x51d48b=new _0x355495(_0x192164);_0x51d48b[_0xa2e6b7(0xe8)]({'label':_0x4374fa(_0x192164,_0xa2e6b7(0xca)),'icon':_0x443d82,'withText':!0x0,'tooltip':!0x0,'class':vo,'allowMultipleFiles':!0x0}),_0x51d48b['on'](_0xa2e6b7(0xba),(_0x40ff0c,_0x47b439)=>{const _0x33bdea=_0xa2e6b7;this[_0x33bdea(0x10a)](_0x33bdea(0xff),_0x47b439),this[_0x33bdea(0xcc)]();}),_0x51d48b[_0xa2e6b7(0xe6)]=!0x0,_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0xcb)](_0x51d48b);}for(const _0x1d4f5f of _0x4516f0[_0xa2e6b7(0xb4)]){const _0x531991=this[_0xa2e6b7(0xf5)](_0x192164,{'label':_0x1d4f5f[_0xa2e6b7(0xcd)],'icon':_0x1d4f5f[_0xa2e6b7(0xc1)]||_0x2f94a4,'type':_0xa2e6b7(0xb0)});_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0xcb)](_0x531991),_0x531991['on'](_0xa2e6b7(0x8a),()=>{const _0x243f88=_0xa2e6b7;this[_0x243f88(0xcc)](),this[_0x243f88(0xce)](_0x1d4f5f);});}}[_0x4e9c08(0xfb)](_0x5730b6,_0x18874a){const _0x265449=_0x4e9c08;this[_0x265449(0xec)]=new _0xa41e7(_0x18874a),this[_0x265449(0xec)]['on'](_0x265449(0xe1),(_0x12fb4c,_0x5d5a72)=>{const _0x5cdabe=_0x265449;this[_0x5cdabe(0xed)](_0x5d5a72);}),this[_0x265449(0xec)]['on'](_0x265449(0xfd),()=>{const _0xe23011=_0x265449;this[_0xe23011(0xd4)](),this[_0xe23011(0xee)](),this[_0xe23011(0xea)][_0xe23011(0x113)]({'target':this[_0xe23011(0xa7)][_0xe23011(0xeb)],'limiter':this[_0xe23011(0xa0)](),'positions':So});}),this[_0x265449(0xec)]['on'](_0x265449(0xf8),()=>{const _0x50ab1b=_0x265449;this[_0x50ab1b(0x8d)][_0x50ab1b(0xb8)]&&this[_0x50ab1b(0x8d)][_0x50ab1b(0x113)]({'target':this[_0x50ab1b(0xa7)][_0x50ab1b(0xeb)],'limiter':this[_0x50ab1b(0xa0)](),'positions':So});}),_0x5730b6[_0x265449(0xe5)][_0x265449(0xcb)](this[_0x265449(0xec)]);}[_0x4e9c08(0xf5)](_0x512bd9,_0x50990a){const _0x28d4e7=_0x4e9c08,_0x13f60d=_0x28d4e7(0xb0)===_0x50990a[_0x28d4e7(0x10d)]?new SourcesBalloonButtonView(_0x512bd9):new _0x2971f0(_0x512bd9);return _0x13f60d[_0x28d4e7(0xe8)]({'label':_0x50990a[_0x28d4e7(0xcd)],'icon':_0x50990a[_0x28d4e7(0xc1)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':vo}),_0x13f60d;}[_0x4e9c08(0xf9)](){const _0x532d2f=_0x4e9c08;this[_0x532d2f(0x8e)](),this[_0x532d2f(0x9a)]();}[_0x4e9c08(0x9a)](){const _0x24c174=_0x4e9c08;_0xf04abc({'emitter':this[_0x24c174(0x8d)],'contextElements':[this[_0x24c174(0x8d)][_0x24c174(0xeb)]],'callback':()=>{const _0x5877fb=_0x24c174;this[_0x5877fb(0xd4)]();},'activator':()=>this[_0x24c174(0x8d)][_0x24c174(0xb8)]});}[_0x4e9c08(0xc0)](_0x28c6f0){const _0x31689a=_0x4e9c08,_0x38c726=this[_0x31689a(0xa5)];_0x38c726[_0x31689a(0x10f)][_0x31689a(0x114)]=_0x28c6f0,_0x28c6f0?_0x38c726[_0x31689a(0x87)][_0x31689a(0xdc)]():_0x38c726[_0x31689a(0x87)][_0x31689a(0xf1)]();}[_0x4e9c08(0x8e)](){const _0x4d9a36=_0x4e9c08,{balloonView:_0x13ac51,buttonView:_0x48db7d,hideMethod:_0x5e897a}=this[_0x4d9a36(0xa5)];_0xf04abc({'emitter':_0x13ac51,'contextElements':[_0x13ac51[_0x4d9a36(0xeb)],_0x48db7d[_0x4d9a36(0xeb)]],'callback':()=>{_0x5e897a();},'activator':()=>_0x48db7d[_0x4d9a36(0x114)]&&!this[_0x4d9a36(0x8d)][_0x4d9a36(0xb8)]&&!this[_0x4d9a36(0x8b)][_0x4d9a36(0xf2)]()});}[_0x4e9c08(0x9b)](_0x2e2097,_0x245663,_0xeec991=!0x1,_0x2b04f8=!0x1){const _0x416035=_0x4e9c08,_0x146c3c=_0x416035(0xdb)===_0x245663||!0x0===_0x2e2097[_0x416035(0x101)],_0x1b149d=new _0x21b72b(this[_0x416035(0xf0)],_0x2e2097,_0x146c3c,_0xeec991,_0x2b04f8);return _0x146c3c||_0x1b149d['on'](_0x416035(0x106),()=>{const _0x3de272=_0x416035;this[_0x3de272(0x10a)](_0x3de272(0xaf),_0x1b149d['id']);}),_0x1b149d;}[_0x4e9c08(0xdd)](_0x354f2d,_0x570517){const _0x2423e4=_0x4e9c08;_0x570517[_0x2423e4(0xcb)](_0x354f2d,0x0);}[_0x4e9c08(0x97)](_0x208e9a,_0x396011){const _0x4351a3=_0x4e9c08,_0x40bf03=_0x396011[_0x4351a3(0xa4)](_0x151500=>_0x151500['id']===_0x208e9a);_0x40bf03&&_0x396011[_0x4351a3(0x9c)](_0x40bf03);}[_0x4e9c08(0x98)](){const _0x341ba0=_0x4e9c08;this[_0x341ba0(0xa7)][_0x341ba0(0x114)]?this[_0x341ba0(0xcc)]():(this[_0x341ba0(0xee)](),this[_0x341ba0(0xea)][_0x341ba0(0x113)]({'target':this[_0x341ba0(0xa7)][_0x341ba0(0xeb)],'limiter':this[_0x341ba0(0xa0)](),'positions':So}));}[_0x4e9c08(0xed)](_0x4dcc7c){const _0x4c3722=_0x4e9c08;this[_0x4c3722(0xec)][_0x4c3722(0x9d)](),this[_0x4c3722(0xd4)](),this[_0x4c3722(0x10a)](_0x4c3722(0x10c),_0x4dcc7c);}}export class SourcesBalloonButtonView extends _0x2971f0{[_0x4e9c08(0xe4)];constructor(_0x871a26){const _0x3b5f64=_0x4e9c08;super(_0x871a26),this[_0x3b5f64(0xe8)]({'withText':!0x0,'role':_0x3b5f64(0x102)}),this[_0x3b5f64(0xe4)]=this[_0x3b5f64(0x95)](),this[_0x3b5f64(0xc6)]({'attributes':{'class':[go]}});}[_0x4e9c08(0xd0)](){const _0x1ddc0a=_0x4e9c08;super[_0x1ddc0a(0xd0)](),this[_0x1ddc0a(0x103)][_0x1ddc0a(0xcb)](this[_0x1ddc0a(0xe4)]);}[_0x4e9c08(0x95)](){const _0x54b3cb=_0x4e9c08,_0x158986=new _0xd63c0e();return _0x158986[_0x54b3cb(0xe5)]=_0x24ec6c,_0x158986[_0x54b3cb(0xc6)]({'attributes':{'class':go+_0x54b3cb(0xbb)}}),_0x158986;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c4574=_0x3783;(function(_0x4240ac,_0x377419){const _0x133ef5=_0x3783,_0x54962d=_0x4240ac();while(!![]){try{const _0x5142db=parseInt(_0x133ef5(0xbd))/0x1*(parseInt(_0x133ef5(0xbb))/0x2)+parseInt(_0x133ef5(0xcc))/0x3+parseInt(_0x133ef5(0xc5))/0x4*(parseInt(_0x133ef5(0xc7))/0x5)+parseInt(_0x133ef5(0xb9))/0x6*(parseInt(_0x133ef5(0xca))/0x7)+-parseInt(_0x133ef5(0xbc))/0x8*(parseInt(_0x133ef5(0xc9))/0x9)+-parseInt(_0x133ef5(0xc1))/0xa+parseInt(_0x133ef5(0xd0))/0xb*(-parseInt(_0x133ef5(0xd3))/0xc);if(_0x5142db===_0x377419)break;else _0x54962d['push'](_0x54962d['shift']());}catch(_0x4fce28){_0x54962d['push'](_0x54962d['shift']());}}}(_0x32b3,0x1b652));import{ButtonView as _0x35867c,View as _0x5e2836}from'ckeditor5/src/ui.js';import{IconStop as _0x2074d3}from'ckeditor5/src/icons.js';function _0x3783(_0x56bfaa,_0x5ef9d7){const _0x32b325=_0x32b3();return _0x3783=function(_0x378321,_0x553666){_0x378321=_0x378321-0xb8;let _0x8aaaf8=_0x32b325[_0x378321];return _0x8aaaf8;},_0x3783(_0x56bfaa,_0x5ef9d7);}function _0x32b3(){const _0x33e181=['ck-ai-chat-controls-loader-wrapper','665799WsxsPm','locale','_cancelButtonView','ck-ai-chat-controls-loader-icon-dot','2227654cIbXYQ','div','ck-ai-chat-controls-loader-icon','12bkiUoD','ai-chat-controls-loader__cancel-button','abortPromptStream','set','fire','4116cmGavA','_createLoaderView','2pvZkgM','257768KjJkiv','79479rmQYdd','AI_CHAT_IS_WRITING','ck-reset_all','_createCancelButtonView','832870PocAFx','AI_CHAT_STOP_GENERATING','setTemplate','execute','364108KdeWeI','_loaderView','5BKDJWL','ck-ai-chat-controls-loader','36ZQFIBT','1372BtmUlW'];_0x32b3=function(){return _0x33e181;};return _0x32b3();}import{getTranslation as _0x444d97}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x5e2836{[_0x1c4574(0xce)];[_0x1c4574(0xc6)];constructor(_0x24d5ef){const _0x115f8e=_0x1c4574;super(_0x24d5ef),this[_0x115f8e(0xce)]=this[_0x115f8e(0xc0)](),this[_0x115f8e(0xc6)]=this[_0x115f8e(0xba)](),this[_0x115f8e(0xc3)]({'tag':_0x115f8e(0xd1),'attributes':{'class':['ck',_0x115f8e(0xcb),_0x115f8e(0xbf)]},'children':[this[_0x115f8e(0xc6)],this[_0x115f8e(0xce)]]});}[_0x1c4574(0xc0)](){const _0x3c1265=_0x1c4574,_0x3cfd6e=new _0x35867c(this[_0x3c1265(0xcd)]);return _0x3cfd6e[_0x3c1265(0xd6)]({'label':_0x444d97(this[_0x3c1265(0xcd)],_0x3c1265(0xc2)),'withText':!0x0,'class':_0x3c1265(0xd4),'icon':_0x2074d3}),_0x3cfd6e['on'](_0x3c1265(0xc4),()=>{const _0x4e1a14=_0x3c1265;this[_0x4e1a14(0xb8)](_0x4e1a14(0xd5));}),_0x3cfd6e;}[_0x1c4574(0xba)](){const _0x350e93=_0x1c4574,_0x91c58e=new _0x5e2836(this[_0x350e93(0xcd)]);return _0x91c58e[_0x350e93(0xc3)]({'tag':_0x350e93(0xd1),'attributes':{'class':[_0x350e93(0xc8)]},'children':[{'tag':_0x350e93(0xd1),'attributes':{'class':[_0x350e93(0xd2)]},'children':[{'tag':_0x350e93(0xd1),'attributes':{'class':[_0x350e93(0xcf)]}},{'tag':_0x350e93(0xd1),'attributes':{'class':[_0x350e93(0xcf)]}},{'tag':_0x350e93(0xd1),'attributes':{'class':[_0x350e93(0xcf)]}}]},{'text':_0x444d97(this[_0x350e93(0xcd)],_0x350e93(0xbe))}]}),_0x91c58e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1fe7e6=_0x1b02;(function(_0x25fa7d,_0x297d6c){const _0x1df810=_0x1b02,_0x19eff4=_0x25fa7d();while(!![]){try{const _0xc9c0aa=-parseInt(_0x1df810(0x82))/0x1*(parseInt(_0x1df810(0xb8))/0x2)+parseInt(_0x1df810(0x7d))/0x3+-parseInt(_0x1df810(0x83))/0x4*(-parseInt(_0x1df810(0xd0))/0x5)+parseInt(_0x1df810(0x81))/0x6+-parseInt(_0x1df810(0x9a))/0x7+-parseInt(_0x1df810(0xbc))/0x8+parseInt(_0x1df810(0xd7))/0x9*(parseInt(_0x1df810(0xa3))/0xa);if(_0xc9c0aa===_0x297d6c)break;else _0x19eff4['push'](_0x19eff4['shift']());}catch(_0x34063c){_0x19eff4['push'](_0x19eff4['shift']());}}}(_0xa7b1,0x34521));import{Collection as _0x39200a}from'ckeditor5/src/utils.js';function _0x1b02(_0x55d376,_0x3eb874){const _0xa7b1e9=_0xa7b1();return _0x1b02=function(_0x1b02b6,_0x176528){_0x1b02b6=_0x1b02b6-0x7d;let _0xc8095=_0xa7b1e9[_0x1b02b6];return _0xc8095;},_0x1b02(_0x55d376,_0x3eb874);}import{IconAI as _0x414731,IconBulb as _0x377355,IconWeb as _0x10403c}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x3828b8,ButtonLabelView as _0x2346e7,ButtonView as _0x545412,createDropdown as _0x49dc79,IconView as _0x2c5a69,UIModel as _0x5dbdd5,View as _0xc952b3}from'ckeditor5/src/ui.js';import{getTranslation as _0x43bdd8}from'../../../aicore/utils/common-translations.js';const Oo=_0x1fe7e6(0xcb),uo=_0x1fe7e6(0xa4),No=_0x1fe7e6(0xc4),Ho=_0x1fe7e6(0x7f),Mo=_0x1fe7e6(0xd2),Do=_0x1fe7e6(0x95),Wo=_0x1fe7e6(0xc0),yo='n';export class AIChatPromptCapabilitiesView extends _0xc952b3{[_0x1fe7e6(0xae)];[_0x1fe7e6(0x9b)];[_0x1fe7e6(0xc6)];[_0x1fe7e6(0x90)];[_0x1fe7e6(0xa8)];[_0x1fe7e6(0xb9)];constructor(_0x394ed3){const _0x8e9002=_0x1fe7e6;super(_0x394ed3),this[_0x8e9002(0x9d)](_0x8e9002(0xb0),!0x1),this[_0x8e9002(0x9d)](_0x8e9002(0x93),!0x1),this[_0x8e9002(0x9d)](_0x8e9002(0xcc),!0x0),this[_0x8e9002(0x9d)](_0x8e9002(0xa2),!0x0),this[_0x8e9002(0x9d)](_0x8e9002(0xb5),''),this[_0x8e9002(0x9d)](_0x8e9002(0x9c),''),this[_0x8e9002(0x90)]=this[_0x8e9002(0xc8)](),this[_0x8e9002(0xb9)]=this[_0x8e9002(0x89)](),this[_0x8e9002(0xae)]=this[_0x8e9002(0xac)](),this[_0x8e9002(0x9b)]=this[_0x8e9002(0xdb)](),this[_0x8e9002(0xc6)]=this[_0x8e9002(0x9f)](),this[_0x8e9002(0x90)][_0x8e9002(0xdf)][_0x8e9002(0xb6)](_0x8e9002(0xb4))['to'](this,_0x8e9002(0xcc),_0x47724e=>_0x47724e),this[_0x8e9002(0x90)][_0x8e9002(0xdf)][_0x8e9002(0xb6)](_0x8e9002(0xc3))['to'](this,_0x8e9002(0xa2),_0x156e45=>_0x156e45?this[_0x8e9002(0x90)][_0x8e9002(0xdf)][_0x8e9002(0x97)]:_0x43bdd8(this[_0x8e9002(0xaa)],_0x8e9002(0x87))),this[_0x8e9002(0x90)][_0x8e9002(0xb6)](_0x8e9002(0xc1))['to'](this,_0x8e9002(0xa2),_0x50d562=>_0x50d562),this[_0x8e9002(0xae)][_0x8e9002(0xb6)](_0x8e9002(0xa7))['to'](this,_0x8e9002(0xb0),_0x3efccf=>_0x3efccf),this[_0x8e9002(0xae)][_0x8e9002(0xb6)](_0x8e9002(0xc7))['to'](this,_0x8e9002(0xcc),_0x6e91d8=>!_0x6e91d8),this[_0x8e9002(0xae)][_0x8e9002(0xb6)](_0x8e9002(0xc3))['to'](this,_0x8e9002(0xb0),_0x3a31d4=>_0x43bdd8(this[_0x8e9002(0xaa)],_0x3a31d4?_0x8e9002(0x8e):_0x8e9002(0xc5))),this[_0x8e9002(0x9b)][_0x8e9002(0xb6)](_0x8e9002(0xa7))['to'](this,_0x8e9002(0x93),_0x563e5f=>_0x563e5f),this[_0x8e9002(0x9b)][_0x8e9002(0xb6)](_0x8e9002(0xc7))['to'](this,_0x8e9002(0xcc),_0x487512=>!_0x487512),this[_0x8e9002(0x9b)][_0x8e9002(0xb6)](_0x8e9002(0xc3))['to'](this,_0x8e9002(0x93),_0x40948f=>_0x43bdd8(this[_0x8e9002(0xaa)],_0x40948f?_0x8e9002(0xab):_0x8e9002(0x84))),this[_0x8e9002(0xde)]({'tag':_0x8e9002(0x86),'attributes':{'class':[Oo]},'children':[this[_0x8e9002(0x90)],this[_0x8e9002(0xb9)],this[_0x8e9002(0xae)],this[_0x8e9002(0x9b)],this[_0x8e9002(0xc6)]]}),this[_0x8e9002(0xa8)]=new _0x39200a(),_0x3828b8(this[_0x8e9002(0x90)],this[_0x8e9002(0xa8)]);}[_0x1fe7e6(0x85)](_0x204187,_0x21cb47){const _0x402820=_0x1fe7e6;if(this[_0x402820(0x9d)](_0x402820(0xcc),!(_0x21cb47&&_0x204187[_0x402820(0x94)]<=0x1)),this[_0x402820(0xa8)][_0x402820(0xb3)](),_0x204187?.[_0x402820(0x94)])for(const _0x3cee85 of _0x204187){const _0x496a51=new _0x5dbdd5({'label':_0x3cee85[_0x402820(0x8b)],'withText':!0x0,'role':_0x402820(0xc2),'id':_0x3cee85['id'],'model':_0x3cee85});_0x496a51[_0x402820(0xb6)](_0x402820(0xa7))['to'](this,_0x402820(0xb5),_0x594423=>_0x594423===_0x3cee85['id']),this[_0x402820(0xa8)][_0x402820(0xd9)]({'type':_0x402820(0xda),'model':_0x496a51,'labelView':new Bs(this[_0x402820(0xaa)],_0x3cee85)});}}[_0x1fe7e6(0xa1)](_0xdb2ff1){const _0x2c2870=_0x1fe7e6;this[_0x2c2870(0x9d)](_0x2c2870(0xb0),_0xdb2ff1);}[_0x1fe7e6(0xcf)](_0x3d821b){const _0x1e2140=_0x1fe7e6;this[_0x1e2140(0x9d)](_0x1e2140(0x93),_0x3d821b);}[_0x1fe7e6(0x9e)](_0x36b4bf){const _0x30e938=_0x1fe7e6;if(!_0x36b4bf)return;this[_0x30e938(0xb5)]=_0x36b4bf['id'],this[_0x30e938(0x9c)]=_0x36b4bf[_0x30e938(0x8b)]||_0x36b4bf['id'],this[_0x30e938(0x90)][_0x30e938(0xdf)][_0x30e938(0x9d)](_0x30e938(0x97),_0x36b4bf[_0x30e938(0x8b)]),this[_0x30e938(0x90)][_0x30e938(0xdf)][_0x30e938(0x9d)](_0x30e938(0xc3),_0x36b4bf[_0x30e938(0x8b)]);const _0x41b165=_0x36b4bf[_0x30e938(0xad)][_0x30e938(0xd5)]?.[_0x30e938(0x91)]??!0x1;this[_0x30e938(0x9d)](_0x30e938(0xb0),!0x1),this[_0x30e938(0xae)][_0x30e938(0x9d)](_0x30e938(0xa7),!0x1),this[_0x30e938(0xae)][_0x30e938(0x9d)](_0x30e938(0xc1),_0x41b165),this[_0x30e938(0xae)][_0x30e938(0x9d)](_0x30e938(0xb4),_0x41b165);const _0x276daf=_0x36b4bf[_0x30e938(0xad)][_0x30e938(0x8a)]?.[_0x30e938(0x91)]??!0x1;this[_0x30e938(0x9d)](_0x30e938(0x93),!0x1),this[_0x30e938(0x9b)][_0x30e938(0x9d)](_0x30e938(0xa7),!0x1),this[_0x30e938(0x9b)][_0x30e938(0x9d)](_0x30e938(0xc1),_0x276daf),this[_0x30e938(0x9b)][_0x30e938(0x9d)](_0x30e938(0xb4),_0x276daf);}[_0x1fe7e6(0xd1)](){const _0x5d3b6d=_0x1fe7e6;this[_0x5d3b6d(0x9d)](_0x5d3b6d(0xa2),!0x0),this[_0x5d3b6d(0x9d)](_0x5d3b6d(0xcc),!0x0);}[_0x1fe7e6(0xdd)](_0x58f6ae){const _0x534eaf=_0x1fe7e6;this[_0x534eaf(0x9d)](_0x534eaf(0xa2),!0x1),_0x58f6ae&&this[_0x534eaf(0x9d)](_0x534eaf(0xcc),!0x1);}[_0x1fe7e6(0xac)](){const _0x45ba1e=_0x1fe7e6,_0x70f5d7=new _0x545412();return _0x70f5d7[_0x45ba1e(0x9d)]({'label':_0x43bdd8(this[_0x45ba1e(0xaa)],_0x45ba1e(0x8c)),'icon':_0x10403c,'class':uo,'isToggleable':!0x0,'tooltipPosition':yo}),_0x70f5d7['on'](_0x45ba1e(0xd6),()=>{const _0x26bfb3=_0x45ba1e;this[_0x26bfb3(0xce)](_0x26bfb3(0x8f));}),_0x70f5d7;}[_0x1fe7e6(0xdb)](){const _0x2f3168=_0x1fe7e6,_0x49a830=new _0x545412();return _0x49a830[_0x2f3168(0x9d)]({'label':_0x43bdd8(this[_0x2f3168(0xaa)],_0x2f3168(0xb2)),'icon':_0x377355,'class':uo,'isToggleable':!0x0,'tooltipPosition':yo}),_0x49a830['on'](_0x2f3168(0xd6),()=>{const _0x5882b4=_0x2f3168;this[_0x5882b4(0xce)](_0x5882b4(0xd4));}),_0x49a830;}[_0x1fe7e6(0x9f)](){const _0x1ebb17=_0x1fe7e6,_0x5f48cb=new _0x545412();return _0x5f48cb[_0x1ebb17(0x9d)]({'label':_0x43bdd8(this[_0x1ebb17(0xaa)],_0x1ebb17(0x99)),'icon':_0x414731,'withText':!0x0,'class':uo,'isToggleable':!0x0,'tooltip':_0x43bdd8(this[_0x1ebb17(0xaa)],_0x1ebb17(0x99)),'tooltipPosition':yo}),_0x5f48cb[_0x1ebb17(0xdc)]({'attributes':{'class':[No]}}),_0x5f48cb['on'](_0x1ebb17(0xd6),()=>{const _0x3c6650=_0x1ebb17;console[_0x3c6650(0xbf)](_0x3c6650(0xa0)),alert(_0x3c6650(0xa0));}),_0x5f48cb;}[_0x1fe7e6(0xc8)](){const _0x3d6dba=_0x1fe7e6,_0xf81452=_0x49dc79(this[_0x3d6dba(0xaa)]);return _0xf81452[_0x3d6dba(0x9d)]({'panelPosition':'ne','class':[Ho]}),_0xf81452[_0x3d6dba(0xdf)][_0x3d6dba(0x9d)]({'label':_0x43bdd8(this[_0x3d6dba(0xaa)],_0x3d6dba(0xc9)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':yo}),this[_0x3d6dba(0xbe)](_0xf81452,_0x3d6dba(0xd6),_0x5bd199=>{const _0x462369=_0x3d6dba;this[_0x462369(0xce)](_0x462369(0xbb),_0x5bd199[_0x462369(0xaf)][_0x462369(0xb1)]);}),_0xf81452;}[_0x1fe7e6(0x89)](){const _0x2ecb87=_0x1fe7e6,_0x10be36=new Go(this[_0x2ecb87(0xaa)]);return _0x10be36[_0x2ecb87(0xb6)](_0x2ecb87(0xbd))['to'](this,_0x2ecb87(0x9c),_0x4fb0d0=>_0x4fb0d0??''),_0x10be36[_0x2ecb87(0xb6)](_0x2ecb87(0xb4))['to'](this,_0x2ecb87(0xcc),this,_0x2ecb87(0x9c),(_0x1a2d53,_0x22727b)=>!_0x1a2d53&&!_0x22727b?.[_0x2ecb87(0x7e)]()[_0x2ecb87(0xcd)](_0x2ecb87(0x98))),_0x10be36;}}class Bs extends _0x2346e7{constructor(_0x301d97,_0x450aec){const _0x378839=_0x1fe7e6;super();const _0x54ffbc=this[_0x378839(0xca)],_0x15f396=this[_0x378839(0xd8)]();this[_0x378839(0xde)]({'tag':_0x378839(0x86),'attributes':{'class':['ck',_0x378839(0x80)],'style':_0x54ffbc['to'](_0x378839(0xba)),'id':_0x54ffbc['to']('id')},'children':[{'tag':_0x378839(0x86),'attributes':{'class':[Mo]},'children':[{'text':_0x54ffbc['to'](_0x378839(0xbd))}]},{'tag':_0x378839(0x86),'attributes':{'class':[Do]},'children':[{'tag':_0x378839(0x96),'children':[{'text':_0x450aec[_0x378839(0xa9)]}]}]},{'tag':_0x378839(0x86),'attributes':{'class':[Wo]},'children':_0x15f396}]}),_0x15f396[_0x378839(0xa5)](this[_0x378839(0x8d)](_0x301d97,_0x10403c,_0x378839(0x8c),_0x450aec[_0x378839(0xad)][_0x378839(0xd5)]?.[_0x378839(0x91)]??!0x1)),_0x15f396[_0x378839(0xa5)](this[_0x378839(0x8d)](_0x301d97,_0x377355,_0x378839(0xb2),_0x450aec[_0x378839(0xad)][_0x378839(0x8a)]?.[_0x378839(0x91)]??!0x1));}[_0x1fe7e6(0x8d)](_0x5aa2bb,_0x2c87b8,_0x490d09,_0x372f12){const _0x26607f=_0x1fe7e6,_0x427bd8=new _0x2c5a69();_0x427bd8[_0x26607f(0x88)]=_0x2c87b8;const _0x179372=new _0xc952b3(_0x5aa2bb);_0x179372[_0x26607f(0xde)]({'tag':_0x26607f(0x96),'children':[{'text':_0x43bdd8(_0x5aa2bb,_0x490d09)+':\x20'}]});const _0x56f622=new _0xc952b3(_0x5aa2bb);return _0x56f622[_0x26607f(0xde)]({'tag':_0x26607f(0x96),'children':[{'text':_0x43bdd8(_0x5aa2bb,_0x372f12?_0x26607f(0xb7):_0x26607f(0xa6))}]}),[_0x427bd8,_0x179372,_0x56f622];}}class Go extends _0xc952b3{constructor(_0x14454d){const _0x13d847=_0x1fe7e6;super(_0x14454d),this[_0x13d847(0x9d)](_0x13d847(0xbd),void 0x0),this[_0x13d847(0x9d)](_0x13d847(0xb4),!0x0);const _0xb70222=this[_0x13d847(0xca)];this[_0x13d847(0xde)]({'tag':_0x13d847(0x96),'attributes':{'class':['ck',_0x13d847(0xd3),_0xb70222['if'](_0x13d847(0xb4),_0x13d847(0x92),_0x1b27f8=>!_0x1b27f8)]},'children':[{'text':_0xb70222['to'](_0x13d847(0xbd))}]});}}function _0xa7b1(){const _0x42b66c=['18BXdGQT','createCollection','add','button','_createReasoningButton','extendTemplate','disableModelSelector','setTemplate','buttonView','661938ccdBhj','toLowerCase','ck-ai-chat-controls__model-selection','ck-button__label','703626OQXvkt','69NqyAvJ','4wwiDWN','AI_CHAT_ENABLE_REASONING','setModelList','div','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','content','_createModelNameView','reasoning','name','AI_CHAT_SEARCH_WEB','_getCapabilityParts','AI_CHAT_DISABLE_WEB_SEARCH','toggleWebSearch','_modelSelectionDropdown','enabled','ck-hidden','reasoningActive','length','ck-ai-chat-controls__model-selection__item-description','span','label','agent','AI_CHAT_COMMANDS','2466366bintkN','_reasoningButton','activeModelName','set','setModel','_createCommandsButton','Commands\x20are\x20not\x20implemented\x20yet.','setWebSearch','modelSelectorEnabled','3455770OVVyPj','ck-ai-chat-controls-button','addMany','AI_CHAT_CAPABILITIES_NO','isOn','_modelSelectionDropdownItems','description','locale','AI_CHAT_DISABLE_REASONING','_createWebSearchButton','capabilities','_webSearchButton','source','webSearchActive','model','AI_CHAT_REASONING','clear','isVisible','activeModelId','bind','AI_CHAT_CAPABILITIES_YES','12386EyNRIf','_modelNameView','style','selectModel','2496064SmlgXQ','text','listenTo','log','ck-ai-chat-controls__model-selection__item-capabilities','isEnabled','menuitemradio','tooltip','ck-ai-chat-controls-button--commands','AI_CHAT_ENABLE_WEB_SEARCH','_commandsButton','withText','_createModelSelectionDropdown','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','bindTemplate','ck-ai-chat__prompt-capabilities','modelSelectorVisible','startsWith','fire','setReasoning','1384485uAlmdy','enableModelSelector','ck-ai-chat-controls__model-selection__item-name','ck-ai-chat-controls__model-name','toggleReasoning','webSearch','execute'];_0xa7b1=function(){return _0x42b66c;};return _0xa7b1();}
|
|
23
|
+
const _0xfbf6aa=_0x5227;(function(_0x2f7ca1,_0x47cdba){const _0x49410d=_0x5227,_0xd8f9e8=_0x2f7ca1();while(!![]){try{const _0x48b819=parseInt(_0x49410d(0x153))/0x1*(-parseInt(_0x49410d(0x13c))/0x2)+parseInt(_0x49410d(0x145))/0x3+parseInt(_0x49410d(0x163))/0x4*(-parseInt(_0x49410d(0x196))/0x5)+-parseInt(_0x49410d(0x177))/0x6*(parseInt(_0x49410d(0x18a))/0x7)+parseInt(_0x49410d(0x190))/0x8+-parseInt(_0x49410d(0x152))/0x9+parseInt(_0x49410d(0x157))/0xa;if(_0x48b819===_0x47cdba)break;else _0xd8f9e8['push'](_0xd8f9e8['shift']());}catch(_0x3492e8){_0xd8f9e8['push'](_0xd8f9e8['shift']());}}}(_0x33a0,0x988fa));import{Collection as _0x531ddd}from'ckeditor5/src/utils.js';function _0x33a0(){const _0x5e03fa=['tooltip','_webSearchButton','withText','webSearchActive','name','model','AI_CHAT_ENABLE_WEB_SEARCH','ck-ai-chat-controls__model-selection__item-capabilities','_createReasoningButton','selectModel','toggleWebSearch','_createWebSearchButton','8131179PRIRhk','setReasoning','length','activeModelId','menuitemradio','source','1121016HkYcpX','add','setWebSearch','ck-button__label','clear','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','115kQpuyE','button','agent','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-description','AI_CHAT_SEARCH_WEB','bind','setTemplate','setModelList','22RWQmxI','content','modelSelectorVisible','reasoning','_commandsButton','toLowerCase','AI_CHAT_ENABLE_REASONING','webSearch','ck-ai-chat__prompt-capabilities','1974552HSruLf','isVisible','extendTemplate','AI_CHAT_DISABLE_REASONING','_modelNameView','addMany','capabilities','_modelSelectionDropdown','toggleReasoning','AI_CHAT_DISABLE_WEB_SEARCH','ck-ai-chat-controls__model-name','_createModelSelectionDropdown','modelSelectorEnabled','9443556UWAFji','44692FepBup','style','AI_CHAT_CAPABILITIES_YES','bindTemplate','36725630msBpEM','AI_CHAT_COMMANDS','label','span','reasoningActive','log','ck-ai-chat-controls__model-selection__item-name','_modelSelectionDropdownItems','locale','createCollection','description','_createModelNameView','198868cidnGP','disableModelSelector','_createCommandsButton','listenTo','enableModelSelector','buttonView','_reasoningButton','AI_CHAT_CAPABILITIES_NO','ck-hidden','activeModelName','set','Commands\x20are\x20not\x20implemented\x20yet.','fire','ck-ai-chat-controls-button--commands','enabled','ck-ai-chat-controls__model-selection','execute','div','isEnabled','AI_CHAT_REASONING','6kmfLFT','_getCapabilityParts','setModel','startsWith','isOn','text','ck-ai-chat-controls-button'];_0x33a0=function(){return _0x5e03fa;};return _0x33a0();}import{IconAI as _0x5b1e93,IconBulb as _0x114f11,IconWeb as _0x2c8924}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x5b6a71,ButtonLabelView as _0x3a5e5f,ButtonView as _0x197670,createDropdown as _0x1382f6,IconView as _0x5bbedc,UIModel as _0x1f7318,View as _0x1fac1c}from'ckeditor5/src/ui.js';import{getTranslation as _0x369d55}from'../../../aicore/utils/common-translations.js';const Ho=_0xfbf6aa(0x144),Vo=_0xfbf6aa(0x17d),Mo=_0xfbf6aa(0x170),Lo=_0xfbf6aa(0x172),Do=_0xfbf6aa(0x15d),Wo=_0xfbf6aa(0x19a),yo=_0xfbf6aa(0x185),Go='n';export class AIChatPromptCapabilitiesView extends _0x1fac1c{[_0xfbf6aa(0x17f)];[_0xfbf6aa(0x169)];[_0xfbf6aa(0x140)];[_0xfbf6aa(0x14c)];[_0xfbf6aa(0x15e)];[_0xfbf6aa(0x149)];constructor(_0xbd2136){const _0x42b809=_0xfbf6aa;super(_0xbd2136),this[_0x42b809(0x16d)](_0x42b809(0x181),!0x1),this[_0x42b809(0x16d)](_0x42b809(0x15b),!0x1),this[_0x42b809(0x16d)](_0x42b809(0x13e),!0x0),this[_0x42b809(0x16d)](_0x42b809(0x151),!0x0),this[_0x42b809(0x16d)](_0x42b809(0x18d),''),this[_0x42b809(0x16d)](_0x42b809(0x16c),''),this[_0x42b809(0x14c)]=this[_0x42b809(0x150)](),this[_0x42b809(0x149)]=this[_0x42b809(0x162)](),this[_0x42b809(0x17f)]=this[_0x42b809(0x189)](),this[_0x42b809(0x169)]=this[_0x42b809(0x186)](),this[_0x42b809(0x140)]=this[_0x42b809(0x165)](),this[_0x42b809(0x14c)][_0x42b809(0x168)][_0x42b809(0x19c)](_0x42b809(0x146))['to'](this,_0x42b809(0x13e),_0x5cf74d=>_0x5cf74d),this[_0x42b809(0x14c)][_0x42b809(0x168)][_0x42b809(0x19c)](_0x42b809(0x17e))['to'](this,_0x42b809(0x151),_0x532312=>_0x532312?this[_0x42b809(0x14c)][_0x42b809(0x168)][_0x42b809(0x159)]:_0x369d55(this[_0x42b809(0x15f)],_0x42b809(0x199))),this[_0x42b809(0x14c)][_0x42b809(0x19c)](_0x42b809(0x175))['to'](this,_0x42b809(0x151),_0x1ede30=>_0x1ede30),this[_0x42b809(0x17f)][_0x42b809(0x19c)](_0x42b809(0x17b))['to'](this,_0x42b809(0x181),_0xc9f8c5=>_0xc9f8c5),this[_0x42b809(0x17f)][_0x42b809(0x19c)](_0x42b809(0x180))['to'](this,_0x42b809(0x13e),_0x400526=>!_0x400526),this[_0x42b809(0x17f)][_0x42b809(0x19c)](_0x42b809(0x17e))['to'](this,_0x42b809(0x181),_0x344100=>_0x369d55(this[_0x42b809(0x15f)],_0x344100?_0x42b809(0x14e):_0x42b809(0x184))),this[_0x42b809(0x169)][_0x42b809(0x19c)](_0x42b809(0x17b))['to'](this,_0x42b809(0x15b),_0x4dd906=>_0x4dd906),this[_0x42b809(0x169)][_0x42b809(0x19c)](_0x42b809(0x180))['to'](this,_0x42b809(0x13e),_0x4bda6f=>!_0x4bda6f),this[_0x42b809(0x169)][_0x42b809(0x19c)](_0x42b809(0x17e))['to'](this,_0x42b809(0x15b),_0x174c10=>_0x369d55(this[_0x42b809(0x15f)],_0x174c10?_0x42b809(0x148):_0x42b809(0x142))),this[_0x42b809(0x19d)]({'tag':_0x42b809(0x174),'attributes':{'class':[Ho]},'children':[this[_0x42b809(0x14c)],this[_0x42b809(0x149)],this[_0x42b809(0x17f)],this[_0x42b809(0x169)],this[_0x42b809(0x140)]]}),this[_0x42b809(0x15e)]=new _0x531ddd(),_0x5b6a71(this[_0x42b809(0x14c)],this[_0x42b809(0x15e)]);}[_0xfbf6aa(0x13b)](_0x1fe1d1,_0x4d9962){const _0x122984=_0xfbf6aa;if(this[_0x122984(0x16d)](_0x122984(0x13e),!(_0x4d9962&&_0x1fe1d1[_0x122984(0x18c)]<=0x1)),this[_0x122984(0x15e)][_0x122984(0x194)](),_0x1fe1d1?.[_0x122984(0x18c)])for(const _0x502d31 of _0x1fe1d1){const _0x45378a=new _0x1f7318({'label':_0x502d31[_0x122984(0x182)],'withText':!0x0,'role':_0x122984(0x18e),'id':_0x502d31['id'],'model':_0x502d31});_0x45378a[_0x122984(0x19c)](_0x122984(0x17b))['to'](this,_0x122984(0x18d),_0x36fd5a=>_0x36fd5a===_0x502d31['id']),this[_0x122984(0x15e)][_0x122984(0x191)]({'type':_0x122984(0x197),'model':_0x45378a,'labelView':new js(this[_0x122984(0x15f)],_0x502d31)});}}[_0xfbf6aa(0x192)](_0x2f862d){const _0x103bda=_0xfbf6aa;this[_0x103bda(0x16d)](_0x103bda(0x181),_0x2f862d);}[_0xfbf6aa(0x18b)](_0x1c863e){const _0x43cf42=_0xfbf6aa;this[_0x43cf42(0x16d)](_0x43cf42(0x15b),_0x1c863e);}[_0xfbf6aa(0x179)](_0x9d104c){const _0x29b6f0=_0xfbf6aa;if(!_0x9d104c)return;this[_0x29b6f0(0x18d)]=_0x9d104c['id'],this[_0x29b6f0(0x16c)]=_0x9d104c[_0x29b6f0(0x182)]||_0x9d104c['id'],this[_0x29b6f0(0x14c)][_0x29b6f0(0x168)][_0x29b6f0(0x16d)](_0x29b6f0(0x159),_0x9d104c[_0x29b6f0(0x182)]),this[_0x29b6f0(0x14c)][_0x29b6f0(0x168)][_0x29b6f0(0x16d)](_0x29b6f0(0x17e),_0x9d104c[_0x29b6f0(0x182)]);const _0x3ad2bb=_0x9d104c[_0x29b6f0(0x14b)][_0x29b6f0(0x143)]?.[_0x29b6f0(0x171)]??!0x1;this[_0x29b6f0(0x16d)](_0x29b6f0(0x181),!0x1),this[_0x29b6f0(0x17f)][_0x29b6f0(0x16d)](_0x29b6f0(0x17b),!0x1),this[_0x29b6f0(0x17f)][_0x29b6f0(0x16d)](_0x29b6f0(0x175),_0x3ad2bb),this[_0x29b6f0(0x17f)][_0x29b6f0(0x16d)](_0x29b6f0(0x146),_0x3ad2bb);const _0x55594b=_0x9d104c[_0x29b6f0(0x14b)][_0x29b6f0(0x13f)]?.[_0x29b6f0(0x171)]??!0x1;this[_0x29b6f0(0x16d)](_0x29b6f0(0x15b),!0x1),this[_0x29b6f0(0x169)][_0x29b6f0(0x16d)](_0x29b6f0(0x17b),!0x1),this[_0x29b6f0(0x169)][_0x29b6f0(0x16d)](_0x29b6f0(0x175),_0x55594b),this[_0x29b6f0(0x169)][_0x29b6f0(0x16d)](_0x29b6f0(0x146),_0x55594b);}[_0xfbf6aa(0x167)](){const _0x5dacd7=_0xfbf6aa;this[_0x5dacd7(0x16d)](_0x5dacd7(0x151),!0x0),this[_0x5dacd7(0x16d)](_0x5dacd7(0x13e),!0x0);}[_0xfbf6aa(0x164)](_0x56b4bc){const _0x14e87c=_0xfbf6aa;this[_0x14e87c(0x16d)](_0x14e87c(0x151),!0x1),_0x56b4bc&&this[_0x14e87c(0x16d)](_0x14e87c(0x13e),!0x1);}[_0xfbf6aa(0x189)](){const _0x43b794=_0xfbf6aa,_0x456bec=new _0x197670();return _0x456bec[_0x43b794(0x16d)]({'label':_0x369d55(this[_0x43b794(0x15f)],_0x43b794(0x19b)),'icon':_0x2c8924,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x456bec['on'](_0x43b794(0x173),()=>{const _0x47242a=_0x43b794;this[_0x47242a(0x16f)](_0x47242a(0x188));}),_0x456bec;}[_0xfbf6aa(0x186)](){const _0x2c0393=_0xfbf6aa,_0x5d05a1=new _0x197670();return _0x5d05a1[_0x2c0393(0x16d)]({'label':_0x369d55(this[_0x2c0393(0x15f)],_0x2c0393(0x176)),'icon':_0x114f11,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x5d05a1['on'](_0x2c0393(0x173),()=>{const _0x37646f=_0x2c0393;this[_0x37646f(0x16f)](_0x37646f(0x14d));}),_0x5d05a1;}[_0xfbf6aa(0x165)](){const _0x22d181=_0xfbf6aa,_0x526bc4=new _0x197670();return _0x526bc4[_0x22d181(0x16d)]({'label':_0x369d55(this[_0x22d181(0x15f)],_0x22d181(0x158)),'icon':_0x5b1e93,'withText':!0x0,'class':Vo,'isToggleable':!0x0,'tooltip':_0x369d55(this[_0x22d181(0x15f)],_0x22d181(0x158)),'tooltipPosition':Go}),_0x526bc4[_0x22d181(0x147)]({'attributes':{'class':[Mo]}}),_0x526bc4['on'](_0x22d181(0x173),()=>{const _0x35cce2=_0x22d181;console[_0x35cce2(0x15c)](_0x35cce2(0x16e)),alert(_0x35cce2(0x16e));}),_0x526bc4;}[_0xfbf6aa(0x150)](){const _0x432fe1=_0xfbf6aa,_0x28a096=_0x1382f6(this[_0x432fe1(0x15f)]);return _0x28a096[_0x432fe1(0x16d)]({'panelPosition':'ne','class':[Lo]}),_0x28a096[_0x432fe1(0x168)][_0x432fe1(0x16d)]({'label':_0x369d55(this[_0x432fe1(0x15f)],_0x432fe1(0x195)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Go}),this[_0x432fe1(0x166)](_0x28a096,_0x432fe1(0x173),_0x6a003d=>{const _0x1788a0=_0x432fe1;this[_0x1788a0(0x16f)](_0x1788a0(0x187),_0x6a003d[_0x1788a0(0x18f)][_0x1788a0(0x183)]);}),_0x28a096;}[_0xfbf6aa(0x162)](){const _0xa465aa=_0xfbf6aa,_0x253696=new jo(this[_0xa465aa(0x15f)]);return _0x253696[_0xa465aa(0x19c)](_0xa465aa(0x17c))['to'](this,_0xa465aa(0x16c),_0x11307b=>_0x11307b??''),_0x253696[_0xa465aa(0x19c)](_0xa465aa(0x146))['to'](this,_0xa465aa(0x13e),this,_0xa465aa(0x16c),(_0x5d60fe,_0x524240)=>!_0x5d60fe&&!_0x524240?.[_0xa465aa(0x141)]()[_0xa465aa(0x17a)](_0xa465aa(0x198))),_0x253696;}}class js extends _0x3a5e5f{constructor(_0x327a65,_0x4d2ac9){const _0x58b726=_0xfbf6aa;super();const _0x53150b=this[_0x58b726(0x156)],_0x4150e3=this[_0x58b726(0x160)]();this[_0x58b726(0x19d)]({'tag':_0x58b726(0x174),'attributes':{'class':['ck',_0x58b726(0x193)],'style':_0x53150b['to'](_0x58b726(0x154)),'id':_0x53150b['to']('id')},'children':[{'tag':_0x58b726(0x174),'attributes':{'class':[Do]},'children':[{'text':_0x53150b['to'](_0x58b726(0x17c))}]},{'tag':_0x58b726(0x174),'attributes':{'class':[Wo]},'children':[{'tag':_0x58b726(0x15a),'children':[{'text':_0x4d2ac9[_0x58b726(0x161)]}]}]},{'tag':_0x58b726(0x174),'attributes':{'class':[yo]},'children':_0x4150e3}]}),_0x4150e3[_0x58b726(0x14a)](this[_0x58b726(0x178)](_0x327a65,_0x2c8924,_0x58b726(0x19b),_0x4d2ac9[_0x58b726(0x14b)][_0x58b726(0x143)]?.[_0x58b726(0x171)]??!0x1)),_0x4150e3[_0x58b726(0x14a)](this[_0x58b726(0x178)](_0x327a65,_0x114f11,_0x58b726(0x176),_0x4d2ac9[_0x58b726(0x14b)][_0x58b726(0x13f)]?.[_0x58b726(0x171)]??!0x1));}[_0xfbf6aa(0x178)](_0x265f80,_0x3f5650,_0x2a0276,_0xeacb34){const _0x183610=_0xfbf6aa,_0x22358f=new _0x5bbedc();_0x22358f[_0x183610(0x13d)]=_0x3f5650;const _0x1c6565=new _0x1fac1c(_0x265f80);_0x1c6565[_0x183610(0x19d)]({'tag':_0x183610(0x15a),'children':[{'text':_0x369d55(_0x265f80,_0x2a0276)+':\x20'}]});const _0x4f38c5=new _0x1fac1c(_0x265f80);return _0x4f38c5[_0x183610(0x19d)]({'tag':_0x183610(0x15a),'children':[{'text':_0x369d55(_0x265f80,_0xeacb34?_0x183610(0x155):_0x183610(0x16a))}]}),[_0x22358f,_0x1c6565,_0x4f38c5];}}function _0x5227(_0x14ef7f,_0x25fe26){const _0x33a063=_0x33a0();return _0x5227=function(_0x522703,_0x130f5a){_0x522703=_0x522703-0x13b;let _0x271c87=_0x33a063[_0x522703];return _0x271c87;},_0x5227(_0x14ef7f,_0x25fe26);}class jo extends _0x1fac1c{constructor(_0x49d7a9){const _0x3cd426=_0xfbf6aa;super(_0x49d7a9),this[_0x3cd426(0x16d)](_0x3cd426(0x17c),void 0x0),this[_0x3cd426(0x16d)](_0x3cd426(0x146),!0x0);const _0x431976=this[_0x3cd426(0x156)];this[_0x3cd426(0x19d)]({'tag':_0x3cd426(0x15a),'attributes':{'class':['ck',_0x3cd426(0x14f),_0x431976['if'](_0x3cd426(0x146),_0x3cd426(0x16b),_0x5bc737=>!_0x5bc737)]},'children':[{'text':_0x431976['to'](_0x3cd426(0x17c))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d2db1=_0x26ec;(function(_0x29dee2,_0x57fa1b){const _0x243edb=_0x26ec,_0x5bda30=_0x29dee2();while(!![]){try{const _0x25a063=parseInt(_0x243edb(0xc2))/0x1*(parseInt(_0x243edb(0xd2))/0x2)+-parseInt(_0x243edb(0xaa))/0x3+-parseInt(_0x243edb(0xb5))/0x4+parseInt(_0x243edb(0xdd))/0x5*(parseInt(_0x243edb(0xba))/0x6)+parseInt(_0x243edb(0xc5))/0x7+-parseInt(_0x243edb(0xe5))/0x8+parseInt(_0x243edb(0xb4))/0x9*(-parseInt(_0x243edb(0xdf))/0xa);if(_0x25a063===_0x57fa1b)break;else _0x5bda30['push'](_0x5bda30['shift']());}catch(_0x43d665){_0x5bda30['push'](_0x5bda30['shift']());}}}(_0x1640,0x6605f));import{IconSubmit as _0xfa816d}from'ckeditor5/src/icons.js';import{ButtonView as _0xd3d38d,AutocompleteView as _0x883e64,createLabeledTextarea as _0x3e2022}from'ckeditor5/src/ui.js';import{global as _0x1c66f5,isVisible as _0x1d9223,Rect as _0x501948,ResizeObserver as _0x4c0eec}from'ckeditor5/src/utils.js';import{getTranslation as _0x15a219}from'../../../aicore/utils/common-translations.js';function _0x26ec(_0x564d2c,_0x2e42cf){const _0x164047=_0x1640();return _0x26ec=function(_0x26eca8,_0x1e5432){_0x26eca8=_0x26eca8-0xa8;let _0x1070ae=_0x164047[_0x26eca8];return _0x1070ae;},_0x26ec(_0x564d2c,_0x2e42cf);}function _0x1640(){const _0x5c89bb=['_createSubmitButton','set','uiLanguageDirection','MIN_ROWS','329576osrEKf','rtl','isEmpty','reset','ck-ai-chat__prompt-input','add','px\x20-\x20var(--ck-spacing-tiny))','render','focusableChildren','placeholder','right','205piOjWN','width','90TlWBLg','target','submitButtonView','AI_CHAT_LABEL_SUBMIT','_addContextButtonView','submit','6446096PHCdbl','element','MAX_ROWS','value','enter','isEnabled','1905138WeVUBt','left','keystrokes','setIsUploadInProgress','destroy','requestAnimationFrame','isUploadInProgress','bind','hasError','locale','423477ADKNIz','739612ShipZT','execute','window','ck-ai-chat__prompt-submit-button','fire','122106PNrCbq','AI_CHAT_PROMPT_EMPTY_ERROR','minRows','trim','fieldWrapperChildren','maxRows','queryView','extendTemplate','5QLnoWg','_queryViewResizeObserver','calc(','5661208NVxXiJ','errorText','excludeScrollbarsAndBorders','setPlaceholderText','_setUpAddContextButtonPositioning','style','update','fieldView','sendUserMessage'];_0x1640=function(){return _0x5c89bb;};return _0x1640();}import{AIChatPromptSuggestionsListView as _0x500fc7}from'./aichatpromptsuggestionslistview.js';import{escape as _0x57a065}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x883e64{[_0x3d2db1(0xe1)];static [_0x3d2db1(0xd1)]=0x1;static [_0x3d2db1(0xe7)]=0xc;[_0x3d2db1(0xe3)];[_0x3d2db1(0xc3)];constructor(_0x4dc125,_0x29af5f){const _0x4af32a=_0x3d2db1;super(_0x4dc125,{'queryView':{'label':'','creator':_0x3e2022,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x500fc7(_0x4dc125),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x4af32a(0xcf)](_0x4af32a(0xd4),!0x0),this[_0x4af32a(0xcf)](_0x4af32a(0xb0),!0x1),this[_0x4af32a(0xe3)]=_0x29af5f,this[_0x4af32a(0xc3)]=null,this[_0x4af32a(0xc0)][_0x4af32a(0xcc)][_0x4af32a(0xbc)]=AIChatPromptInputView[_0x4af32a(0xd1)],this[_0x4af32a(0xc0)][_0x4af32a(0xcc)][_0x4af32a(0xbf)]=AIChatPromptInputView[_0x4af32a(0xe7)],this[_0x4af32a(0xc0)][_0x4af32a(0xbe)][_0x4af32a(0xd7)](this[_0x4af32a(0xe3)]),this[_0x4af32a(0xc9)](),this[_0x4af32a(0xc1)]({'attributes':{'class':['ck',_0x4af32a(0xd6)]}}),this[_0x4af32a(0xe1)]=this[_0x4af32a(0xce)](),this[_0x4af32a(0xe1)][_0x4af32a(0xb1)](_0x4af32a(0xa9))['to'](this,_0x4af32a(0xd4),this,_0x4af32a(0xb0),(_0x482121,_0x37320a)=>!_0x482121&&!_0x37320a),this[_0x4af32a(0xda)][_0x4af32a(0xd7)](this[_0x4af32a(0xe1)]);}[_0x3d2db1(0xd9)](){const _0x16dc26=_0x3d2db1;super[_0x16dc26(0xd9)](),this[_0x16dc26(0xc0)][_0x16dc26(0xbe)][_0x16dc26(0xd7)](this[_0x16dc26(0xe1)]),this[_0x16dc26(0xac)][_0x16dc26(0xcf)](_0x16dc26(0xa8),(_0x518df8,_0x16eb8e)=>{const _0x1075e0=_0x16dc26;this[_0x1075e0(0xb0)]||this[_0x1075e0(0xd4)]||_0x518df8[_0x1075e0(0xe0)]==this[_0x1075e0(0xc0)][_0x1075e0(0xcc)][_0x1075e0(0xe6)]&&(this[_0x1075e0(0xe4)](),_0x16eb8e());}),this[_0x16dc26(0xc0)][_0x16dc26(0xcc)]['on'](_0x16dc26(0xcb),()=>{const _0x5ba0f8=_0x16dc26;this[_0x5ba0f8(0xd4)]=''===this[_0x5ba0f8(0xc0)][_0x5ba0f8(0xcc)][_0x5ba0f8(0xe6)][_0x5ba0f8(0xe8)]?.[_0x5ba0f8(0xbd)]();});}[_0x3d2db1(0xae)](){const _0x476286=_0x3d2db1;super[_0x476286(0xae)](),this[_0x476286(0xc3)]&&this[_0x476286(0xc3)][_0x476286(0xae)]();}[_0x3d2db1(0xe4)](){const _0x34cfbb=_0x3d2db1,_0x47d06d=this[_0x34cfbb(0xc0)][_0x34cfbb(0xcc)][_0x34cfbb(0xe6)][_0x34cfbb(0xe8)]?.[_0x34cfbb(0xbd)]();if(!_0x47d06d)return this[_0x34cfbb(0xc0)][_0x34cfbb(0xc6)]=_0x15a219(this[_0x34cfbb(0xb3)],_0x34cfbb(0xbb)),void(this[_0x34cfbb(0xc0)][_0x34cfbb(0xcc)][_0x34cfbb(0xb2)]=!0x0);this[_0x34cfbb(0xc0)][_0x34cfbb(0xcc)][_0x34cfbb(0xb2)]=!0x1;const _0x13bf97=_0x57a065(_0x47d06d);this[_0x34cfbb(0xb9)](_0x34cfbb(0xcd),_0x13bf97),this[_0x34cfbb(0xc0)][_0x34cfbb(0xcc)][_0x34cfbb(0xd5)]();}[_0x3d2db1(0xc8)](_0x2e1675){const _0x46d4b9=_0x3d2db1;this[_0x46d4b9(0xc0)][_0x46d4b9(0xcc)][_0x46d4b9(0xcf)](_0x46d4b9(0xdb),_0x2e1675);}[_0x3d2db1(0xce)](){const _0x530b5b=_0x3d2db1,_0x44581f=new _0xd3d38d(this[_0x530b5b(0xb3)]);return _0x44581f[_0x530b5b(0xcf)]({'icon':_0xfa816d,'label':_0x15a219(this[_0x530b5b(0xb3)],_0x530b5b(0xe2)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x530b5b(0xb8),'isEnabled':!0x1}),_0x44581f['on'](_0x530b5b(0xb6),()=>{const _0x5c46b4=_0x530b5b;this[_0x5c46b4(0xe4)]();}),_0x44581f;}[_0x3d2db1(0xad)](_0xcd31bf){const _0x4228fd=_0x3d2db1;this[_0x4228fd(0xb0)]=_0xcd31bf;}[_0x3d2db1(0xc9)](){const _0x5c9215=_0x3d2db1,_0x11997c=this[_0x5c9215(0xb3)],_0x25043f=()=>{const _0x1e54d2=_0x5c9215;_0x1c66f5[_0x1e54d2(0xb7)][_0x1e54d2(0xaf)](()=>{const _0x516fe0=_0x1e54d2;if(_0x1d9223(this[_0x516fe0(0xe6)])){const _0x55a5f9=new _0x501948(this[_0x516fe0(0xc0)][_0x516fe0(0xcc)][_0x516fe0(0xe6)]),_0x4f0219=new _0x501948(this[_0x516fe0(0xe3)][_0x516fe0(0xe6)]),_0x4c695e=_0x55a5f9[_0x516fe0(0xde)],_0x359b5b=_0x516fe0(0xd3)===_0x11997c[_0x516fe0(0xd0)]?_0x516fe0(0xdc):_0x516fe0(0xab);_0x55a5f9[_0x516fe0(0xc7)]();const _0x36d9b6=_0x4c695e-_0x55a5f9[_0x516fe0(0xde)]+0x1;this[_0x516fe0(0xe3)][_0x516fe0(0xe6)][_0x516fe0(0xca)][_0x359b5b]=_0x516fe0(0xc4)+(_0x4c695e-_0x4f0219[_0x516fe0(0xde)]-_0x36d9b6)+_0x516fe0(0xd8);}});};this[_0x5c9215(0xc0)][_0x5c9215(0xcc)]['on'](_0x5c9215(0xcb),_0x25043f),this['on'](_0x5c9215(0xd9),()=>{const _0x541e35=_0x5c9215;_0x25043f(),this[_0x541e35(0xc3)]=new _0x4c0eec(this[_0x541e35(0xc0)][_0x541e35(0xcc)][_0x541e35(0xe6)],()=>{_0x25043f();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x692f89=_0xbd76;(function(_0x581c37,_0x3afe3c){const _0x33afeb=_0xbd76,_0x24b468=_0x581c37();while(!![]){try{const _0xcbc3ad=-parseInt(_0x33afeb(0x176))/0x1*(-parseInt(_0x33afeb(0x174))/0x2)+-parseInt(_0x33afeb(0x177))/0x3+parseInt(_0x33afeb(0x175))/0x4*(parseInt(_0x33afeb(0x178))/0x5)+-parseInt(_0x33afeb(0x179))/0x6+-parseInt(_0x33afeb(0x17e))/0x7*(parseInt(_0x33afeb(0x172))/0x8)+-parseInt(_0x33afeb(0x17b))/0x9*(-parseInt(_0x33afeb(0x17a))/0xa)+parseInt(_0x33afeb(0x17d))/0xb;if(_0xcbc3ad===_0x3afe3c)break;else _0x24b468['push'](_0x24b468['shift']());}catch(_0x44cb80){_0x24b468['push'](_0x24b468['shift']());}}}(_0x3dea,0xbee9b));function _0xbd76(_0x1c0821,_0x3f3c80){const _0x3dea79=_0x3dea();return _0xbd76=function(_0xbd76e1,_0x312497){_0xbd76e1=_0xbd76e1-0x172;let _0x587a21=_0x3dea79[_0xbd76e1];return _0x587a21;},_0xbd76(_0x1c0821,_0x3f3c80);}import{ListView as _0x3a778c}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x3a778c{[_0x692f89(0x17c)](){const _0x469417=_0x692f89;let _0x4a3512=0x0;for(const _0xbfb89c of this[_0x469417(0x173)])_0x4a3512+=_0xbfb89c[_0x469417(0x173)][_0x469417(0x17f)];return{'resultsCount':_0x4a3512,'totalItemsCount':_0x4a3512};}}function _0x3dea(){const _0x62717d=['1582uRTlQv','269370msGZgi','646110UQyYTx','2017488gYNrFy','3341070kEhRln','9dFRSPe','filter','8444590FxWUfJ','2638601GjwfZP','length','16mLmlrn','items','924LQKpfJ','4DGRgMD'];_0x3dea=function(){return _0x62717d;};return _0x3dea();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4819b0=_0x2ba8;(function(_0x211964,_0x3328dd){const _0xa9bb55=_0x2ba8,_0x17952a=_0x211964();while(!![]){try{const _0x378eb7=parseInt(_0xa9bb55(0x116))/0x1*(parseInt(_0xa9bb55(0x134))/0x2)+-parseInt(_0xa9bb55(0x117))/0x3+parseInt(_0xa9bb55(0x11f))/0x4+-parseInt(_0xa9bb55(0x130))/0x5+parseInt(_0xa9bb55(0x135))/0x6*(-parseInt(_0xa9bb55(0x122))/0x7)+parseInt(_0xa9bb55(0x114))/0x8*(-parseInt(_0xa9bb55(0x12f))/0x9)+parseInt(_0xa9bb55(0x12e))/0xa;if(_0x378eb7===_0x3328dd)break;else _0x17952a['push'](_0x17952a['shift']());}catch(_0x489da2){_0x17952a['push'](_0x17952a['shift']());}}}(_0x1277,0x92c4e));function _0x2ba8(_0xbf365b,_0x1ed038){const _0x1277ae=_0x1277();return _0x2ba8=function(_0x2ba88a,_0x3dde9b){_0x2ba88a=_0x2ba88a-0x112;let _0x1ceeb7=_0x1277ae[_0x2ba88a];return _0x1ceeb7;},_0x2ba8(_0xbf365b,_0x1ed038);}import{HighlightedTextView as _0x25b3db,IconView as _0x29d36d,ListItemView as _0x1da376}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x439470}from'es-toolkit/compat';import{AIContextItemType as _0x2686af}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x28dfe0,IconCheck as _0x13ed92,IconDocument as _0x262f2d,IconDocumentOutline as _0x3309d7,IconLink as _0x308fe5}from'@ckeditor/ckeditor5-icons';function _0x1277(){const _0x156b10=['3854088nZDEJY','URL','content','5007597eCjmiy','updateResourceState','text','FILE','ck-ai-chat-resources__item__icon','setTemplate','getResourceIcon','execute','DOCUMENT','render','bindTemplate','extendTemplate','12086060XIzUnU','9PrVgly','4500150xNuGUu','_createTitleView','label','isInContext','913358JngeDr','6AmjsjT','trim','ck-hidden','_createIconView','type','set','_setupTemplate','ck-ai-chat-resources__item--in-context','ck-ai-chat-resources__item-title','_iconView','_updateIcon','5593048NrRFpz','span','2zbiKhR','509364kHcyYb','resource','highlightText','div','isVisible','ck-ai-chat-resources__item','TEXT','_titleView'];_0x1277=function(){return _0x156b10;};return _0x1277();}const Tr=_0x4819b0(0x11c),qr=_0x4819b0(0x13c),zr=_0x4819b0(0x13d),Br=_0x4819b0(0x126);export class AIChatResourceListItemView extends _0x1da376{[_0x4819b0(0x118)];[_0x4819b0(0x11e)];[_0x4819b0(0x112)];constructor(_0x3415a5,_0x198826){const _0x3d1000=_0x4819b0;super(_0x3415a5),this[_0x3d1000(0x118)]=_0x198826,this[_0x3d1000(0x13a)](_0x3d1000(0x133),!!_0x198826[_0x3d1000(0x133)]),this[_0x3d1000(0x11e)]=this[_0x3d1000(0x131)](),this[_0x3d1000(0x112)]=this[_0x3d1000(0x138)](),this[_0x3d1000(0x13b)]();}[_0x4819b0(0x12b)](){const _0x3c2d3b=_0x4819b0;super[_0x3c2d3b(0x12b)]();}[_0x4819b0(0x128)](_0x3b29ef){const _0x207f2c=_0x4819b0;if(_0x3b29ef[_0x207f2c(0x133)])return _0x13ed92;switch(_0x3b29ef[_0x207f2c(0x139)]){case _0x2686af[_0x207f2c(0x12a)]:return _0x262f2d;case _0x2686af[_0x207f2c(0x120)]:return _0x308fe5;case _0x2686af[_0x207f2c(0x125)]:case _0x2686af[_0x207f2c(0x11d)]:return _0x28dfe0;default:return _0x3309d7;}}[_0x4819b0(0x119)](_0x476dc3){const _0x2b34cb=_0x4819b0;if(!_0x476dc3||''===_0x476dc3[_0x2b34cb(0x136)]())return void this[_0x2b34cb(0x11e)][_0x2b34cb(0x119)](null);const _0x1c50a4=new RegExp(_0x439470(_0x476dc3),'gi');this[_0x2b34cb(0x11e)][_0x2b34cb(0x119)](_0x1c50a4);}[_0x4819b0(0x123)](_0x2452f5){const _0x3f9ca5=_0x4819b0;this[_0x3f9ca5(0x118)][_0x3f9ca5(0x133)]=_0x2452f5,this[_0x3f9ca5(0x133)]=_0x2452f5,this[_0x3f9ca5(0x113)]();}[_0x4819b0(0x131)](){const _0x5e58d4=_0x4819b0,_0x2dc7eb=new _0x25b3db();return _0x2dc7eb[_0x5e58d4(0x124)]=this[_0x5e58d4(0x118)][_0x5e58d4(0x132)],_0x2dc7eb[_0x5e58d4(0x12d)]({'tag':_0x5e58d4(0x115),'attributes':{'class':[zr]}}),_0x2dc7eb;}[_0x4819b0(0x138)](){const _0xf567e6=_0x4819b0,_0x2135fd=new _0x29d36d();return _0x2135fd[_0xf567e6(0x121)]=this[_0xf567e6(0x128)](this[_0xf567e6(0x118)]),_0x2135fd;}[_0x4819b0(0x13b)](){const _0x48afd7=_0x4819b0,_0x1fd220=this[_0x48afd7(0x12c)];this[_0x48afd7(0x127)]({'tag':_0x48afd7(0x11a),'attributes':{'class':[Tr,_0x1fd220['if'](_0x48afd7(0x11b),_0x48afd7(0x137),_0x5de4e0=>!_0x5de4e0),_0x1fd220['if'](_0x48afd7(0x133),qr)]},'children':[{'tag':_0x48afd7(0x11a),'attributes':{'class':[Br]},'children':[this[_0x48afd7(0x112)]]},this[_0x48afd7(0x11e)]],'on':{'click':_0x1fd220['to'](_0x48afd7(0x129))}});}[_0x4819b0(0x113)](){const _0x6e2c26=_0x4819b0;this[_0x6e2c26(0x112)][_0x6e2c26(0x121)]=this[_0x6e2c26(0x128)](this[_0x6e2c26(0x118)]);}}
|