@ckeditor/ckeditor5-ai 47.3.0-alpha.7 → 47.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/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/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/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/createresizebutton.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x51878a=_0x5767;(function(_0x5bbc84,_0x3c74dc){const _0x208b72=_0x5767,_0x2e8f41=_0x5bbc84();while(!![]){try{const _0x35b87d=-parseInt(_0x208b72(0x147))/0x1+parseInt(_0x208b72(0x112))/0x2*(parseInt(_0x208b72(0x10d))/0x3)+parseInt(_0x208b72(0x185))/0x4+parseInt(_0x208b72(0x188))/0x5*(-parseInt(_0x208b72(0x114))/0x6)+parseInt(_0x208b72(0x12a))/0x7+-parseInt(_0x208b72(0x158))/0x8+parseInt(_0x208b72(0x17c))/0x9*(parseInt(_0x208b72(0x10c))/0xa);if(_0x35b87d===_0x3c74dc)break;else _0x2e8f41['push'](_0x2e8f41['shift']());}catch(_0x2ef82c){_0x2e8f41['push'](_0x2e8f41['shift']());}}}(_0xcfa5,0xb5d97));function _0xcfa5(){const _0x3448c2=['AIChat','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','make-tone-direct','isOfficialPlugin','11835405IekwUn','length','find','make-shorter','model','type','menuBarView','forEach','AI_QUICK_ACTIONS_SUMMARIZE','3228688fyLybB','language','french','5eiBVpk','translate-to-german','japanese','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','make-tone-friendly','locale','panelView','has','AI_QUICK_ACTIONS_ASK_AI','plugins','includes','icon','AI_QUICK_ACTIONS_MORE_CASUAL','CHAT','AI_QUICK_ACTIONS_EXPLAIN','ai.quickActions.extraCommands','AIReviewMode','korean','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','spanish','values','attachToDom','summarize','AI_QUICK_ACTIONS_ADJUST_LENGTH','focus','ai.quickActions.isSearchEnabled','make-tone-confident','items','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','set','continue','componentFactory','AI_QUICK_ACTIONS_CHANGE_TONE','ai-quick-actions-unavailable-model','translate-to-french','AI_QUICK_ACTIONS_HEADING','AI_QUICK_ACTIONS_CHAT_COMMANDS','20DGVVvB','1311891cwhmqO','editing','pluginName','AI_QUICK_ACTIONS_MAKE_LONGER','adjust-length','2RuTJli','config','7732086voQOHR','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','view','message','children','isEnabled','improve-writing','translate-to-russian','other','_shouldIncludeAction','chat-commands','add','requires','translate-to-korean','change-tone','make-tone-casual','_getDefaultAndCustomActions','AI_QUICK_ACTIONS_MORE_CONFIDENT','fix-grammar','ai-quick-actions-models-unable-to-retrieve','_quickActionsDefinition','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','806085nSHYoL','buttonView','english','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','explain','translate','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','<task>For\x20given\x20selected\x20part\x20of\x20HTML\x20document\x20you\x20must\x20explain\x20the\x20meaning\x20of\x20it\x27s\x20content\x20clearly\x20and\x20in\x20plain\x20language.</task><rules>1.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is:-\x20If\x20it\x20looks\x20like\x20a\x20definition\x20explain\x20the\x20concept\x20in\x20simple\x20terms.-\x20If\x20it\x20looks\x20like\x20a\x20description\x20clarify\x20what\x20it\x20is\x20describing\x20and\x20why\x20it\x20matters.-\x20If\x20it\x20contains\x20technical\x20terms\x20or\x20jargon\x20break\x20them\x20down\x20into\x20everyday\x20language.-\x20If\x20it\x20looks\x20instructional\x20restate\x20as\x20clear\x20steps\x20someone\x20can\x20follow.-\x20If\x20it\x20provides\x20examples\x20explain\x20what\x20the\x20example\x20shows\x20and\x20why\x20it\x27s\x20relevant.-\x20If\x20it\x20presents\x20an\x20argument\x20or\x20claim\x20restate\x20the\x20claim\x20neutrally\x20and\x20explain\x20its\x20purpose.-\x20If\x20it\x20is\x20narrative/story-like\x20explain\x20what\x20event\x20or\x20situation\x20is\x20being\x20described.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20explain\x20what\x20the\x20data\x20indicates.-\x20If\x20it\x20is\x20a\x20quotation\x20explain\x20the\x20meaning\x20of\x20the\x20quote\x20in\x20context.-\x20If\x20it\x20compares/contrasts\x20things\x20explain\x20the\x20key\x20differences\x20or\x20similarities\x20simply.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20give\x20a\x20clear,\x20plain-language\x20explanation\x20of\x20its\x20meaning,\x20focusing\x20on\x20usefulness.2.\x20Provide\x20context\x20if\x20the\x20meaning\x20could\x20be\x20unclear\x20without\x20it.\x20(e.g.,\x20explain\x20where\x20such\x20a\x20term\x20might\x20be\x20used,\x20or\x20why\x20it\x20is\x20important).3.\x20Keep\x20the\x20explanation\x20short\x20but\x20complete\x20(2–5\x20sentences).Avoid\x20overly\x20technical\x20detail\x20unless\x20it\x20is\x20necessary\x20for\x20understanding.4.\x20Do\x20not\x20simply\x20repeat\x20the\x20original\x20text\x20—\x20restate\x20and\x20expand\x20it\x20in\x20plain\x20words.5.\x20If\x20possible,\x20add\x20a\x20short\x20example\x20or\x20analogy\x20to\x20make\x20it\x20easier\x20to\x20understand.6.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20explanation.7.\x20Your\x20explanation\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20explanation.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','AI_QUICK_ACTIONS_MORE_DIRECT','AI_QUICK_ACTIONS_TRANSLATE_GERMAN','AIQuickActionsUI','ACTION','highlight-key-points','aiQuickAction','make-tone-professional','italian','translate-to-spanish','AI_QUICK_ACTIONS_CONTINUE_WRITING','delegate','REVIEW','_initializeQuickActionsDropdown','displayedPrompt','uiLanguage','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','replace','AI_QUICK_ACTIONS_OTHER','ai.chat.models.displayedModels','get','make-longer','1007827RlWeRL','execute','_initializeQuickActionsMenuBar','translate-to-italian','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','AI_QUICK_ACTIONS_MORE_FRIENDLY','_initializeQuickActionsComponents','_executeQuickAction','menuitem','german','AI_QUICK_ACTIONS_MAKE_SHORTER','ai.quickActions.removeCommands','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','AIActions','menu','commands','translate-to-english','7586808UpOuin','AI_QUICK_ACTIONS_IMPROVE_WRITING','aiQuickActions','translate-to-japanese','getDefaultQuickActions','label','AI_QUICK_ACTIONS_TRANSLATE','getAvailableModels','editor','translate-to-portuguese','push','_initializeQuickActionsComponentsAndCommands','menuBar:aiQuickActions','ask-ai','portuguese','actions','translate-to-chinese','some','_prepareQuickActionsDefinition','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','isPremiumPlugin','map','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20extract\x20and\x20present\x20the\x20key\x20points\x20from\x20its\x20content.</task><rules>1.\x20Present\x20the\x20output\x20as\x20a\x20clear,\x20structured\x20list\x20(bullets\x20or\x20numbered).-\x20Each\x20point\x20should\x20be\x20concise\x20(one\x20sentence\x20or\x20less).-\x20Do\x20not\x20merge\x20distinct\x20ideas\x20into\x20one\x20bullet.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20extraction\x20style:-\x20If\x20it\x20is\x20descriptive\x20capture\x20the\x20main\x20attributes\x20or\x20features.-\x20If\x20it\x20is\x20argumentative\x20extract\x20the\x20main\x20claim\x20and\x20supporting\x20reasons\x20separately.-\x20If\x20it\x20is\x20narrative/story-like\x20extract\x20the\x20main\x20events\x20in\x20chronological\x20order.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20highlight\x20the\x20most\x20important\x20facts\x20or\x20numbers.-\x20If\x20it\x20is\x20instructional\x20list\x20the\x20steps\x20or\x20main\x20actions\x20in\x20simplified\x20form.-\x20If\x20it\x20provides\x20comparisons\x20extract\x20the\x20contrasted\x20items\x20and\x20their\x20differences/similarities.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20category\x20above\x20extract\x20the\x20main\x20ideas\x20in\x20plain,\x20short\x20statements.3.\x20Keep\x20the\x20list\x20between\x203–7\x20items\x20where\x20possible.-\x20If\x20the\x20text\x20is\x20very\x20short,\x20fewer\x20items\x20are\x20fine.-\x20If\x20it\x20is\x20very\x20long,\x20focus\x20on\x20the\x20most\x20important\x20ideas\x20only.4.\x20Do\x20not\x20copy\x20long\x20text\x20fragments\x20—\x20restate\x20in\x20simple\x20words.5.\x20Do\x20not\x20add\x20interpretation,\x20evaluation,\x20or\x20commentary\x20beyond\x20the\x20text.6.\x20Ensure\x20the\x20list\x20can\x20stand\x20alone\x20without\x20requiring\x20the\x20reader\x20to\x20see\x20the\x20original\x20document.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20key\x20points.8.\x20Your\x20key\x20points\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20extracted\x20key\x20points.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','chinese','AIConnector','DisplayNames','close','init','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','filter','English','russian'];_0xcfa5=function(){return _0x3448c2;};return _0xcfa5();}import{IconAIAdjustLength as _0x3f2134,IconAIChangeTone as _0x7a0b1e,IconAIChatCommands as _0x53eed0,IconAIContinueWriting as _0x37717f,IconAIGrammarCheck as _0xe9081,IconAIImproveWriting as _0x2f2ef3,IconAIOther as _0x313c56,IconAIQuickActions as _0xccffc5,IconAITranslate as _0x41261e}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x1373f0}from'ckeditor5/src/core.js';import{CKEditorError as _0x1355c0,logError as _0x22e57e}from'ckeditor5/src/utils.js';import{getTranslation as _0x85cae3}from'../aicore/utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x22e3b3}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0xd2fdb}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x5d4f5a,BalloonToolbar as _0x2535f2,MenuBarMenuView as _0x2a79a5,MenuBarMenuListView as _0x31ee78,MenuBarMenuListItemView as _0x1f2ef7,MenuBarMenuListItemButtonView as _0x493ee2}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';import{AIModels as _0x38bc83}from'../aicore/model/aimodels.js';const Wt=_0x51878a(0x131),Bt=_0x51878a(0x19a),Jt=_0x51878a(0x16e);export var AIQuickActionType;!function(_0xa764a0){const _0xd26754=_0x51878a;_0xa764a0[_0xd26754(0x195)]=_0xd26754(0x195),_0xa764a0[_0xd26754(0x135)]=_0xd26754(0x135),_0xa764a0[_0xd26754(0x13d)]=_0xd26754(0x13d);}(AIQuickActionType||(AIQuickActionType={}));function _0x5767(_0x106c6a,_0x551602){const _0xcfa565=_0xcfa5();return _0x5767=function(_0x576759,_0x58ac9d){_0x576759=_0x576759-0xff;let _0x2e5fb2=_0xcfa565[_0x576759];return _0x2e5fb2;},_0x5767(_0x106c6a,_0x551602);}export var AIQuickActionTypeToPluginName;!function(_0x5cdc78){const _0x540025=_0x51878a;_0x5cdc78[_0x540025(0x195)]=_0x540025(0x178),_0x5cdc78[_0x540025(0x135)]=_0x540025(0x154),_0x5cdc78[_0x540025(0x13d)]=_0x540025(0x198);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x1373f0{static get[_0x51878a(0x120)](){return[_0x2535f2];}static get[_0x51878a(0x10f)](){const _0x9e51b8=_0x51878a;return _0x9e51b8(0x134);}static get[_0x51878a(0x17b)](){return!0x0;}static get[_0x51878a(0x16c)](){return!0x0;}async[_0x51878a(0x173)](){const _0x18ef12=_0x51878a,_0x4f65e4=await this[_0x18ef12(0x124)]();this[_0x18ef12(0x16a)](_0x4f65e4),this[_0x18ef12(0x163)]();}static[_0x51878a(0x15c)](_0x43bb13){return function(_0x35b695){const _0x135ee7=_0x5767,_0x47fc13=new Intl[(_0x135ee7(0x171))](['en'],{'type':_0x135ee7(0x186)})['of'](_0x35b695[_0x135ee7(0x140)]),_0x2f0d71=_0x47fc13||_0x135ee7(0x176),_0x3bedf1=[{'id':_0x135ee7(0x165),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x190)),'type':AIQuickActionType[_0x135ee7(0x195)],'icon':_0x53eed0},{'id':_0x135ee7(0x11e),'label':_0x85cae3(_0x35b695,_0x135ee7(0x10b)),'icon':_0x53eed0,'actions':[{'id':_0x135ee7(0x12e),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x196)),'prompt':Wt[_0x135ee7(0x142)]('%0',_0x2f0d71),'type':AIQuickActionType[_0x135ee7(0x195)]},{'id':_0x135ee7(0x19e),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x184)),'prompt':Bt[_0x135ee7(0x142)]('%0',_0x2f0d71),'type':AIQuickActionType[_0x135ee7(0x195)]},{'id':_0x135ee7(0x136),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x12d)),'prompt':Jt[_0x135ee7(0x142)]('%0',_0x2f0d71),'type':AIQuickActionType[_0x135ee7(0x195)]}]},{'id':_0x135ee7(0x11a),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x159)),'type':AIQuickActionType[_0x135ee7(0x135)],'icon':_0x2f2ef3},{'id':_0x135ee7(0x105),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x13b)),'type':AIQuickActionType[_0x135ee7(0x135)],'icon':_0x37717f},{'id':_0x135ee7(0x126),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x129)),'type':AIQuickActionType[_0x135ee7(0x135)],'icon':_0xe9081},{'id':_0x135ee7(0x111),'label':_0x85cae3(_0x35b695,_0x135ee7(0x19f)),'icon':_0x3f2134,'actions':[{'id':_0x135ee7(0x17f),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x151)),'type':AIQuickActionType[_0x135ee7(0x135)]},{'id':_0x135ee7(0x146),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x110)),'type':AIQuickActionType[_0x135ee7(0x135)]}]},{'id':_0x135ee7(0x122),'label':_0x85cae3(_0x35b695,_0x135ee7(0x107)),'icon':_0x7a0b1e,'actions':[{'id':_0x135ee7(0x123),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x194)),'type':AIQuickActionType[_0x135ee7(0x135)]},{'id':_0x135ee7(0x17a),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x132)),'type':AIQuickActionType[_0x135ee7(0x135)]},{'id':_0x135ee7(0x18c),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x14c)),'type':AIQuickActionType[_0x135ee7(0x135)]},{'id':_0x135ee7(0x101),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x125)),'type':AIQuickActionType[_0x135ee7(0x135)]},{'id':_0x135ee7(0x138),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x141)),'type':AIQuickActionType[_0x135ee7(0x135)]}]},{'id':_0x135ee7(0x12f),'label':_0x85cae3(_0x35b695,_0x135ee7(0x15e)),'icon':_0x41261e,'actions':[{'id':_0x135ee7(0x157),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x130)),'type':AIQuickActionType[_0x135ee7(0x135)],'actionName':_0x135ee7(0x12f),'args':{'language':_0x135ee7(0x12c)}},{'id':_0x135ee7(0x168),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x179)),'type':AIQuickActionType[_0x135ee7(0x135)],'actionName':_0x135ee7(0x12f),'args':{'language':_0x135ee7(0x16f)}},{'id':_0x135ee7(0x13a),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x18b)),'type':AIQuickActionType[_0x135ee7(0x135)],'actionName':_0x135ee7(0x12f),'args':{'language':_0x135ee7(0x19b)}},{'id':_0x135ee7(0x189),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x133)),'type':AIQuickActionType[_0x135ee7(0x135)],'actionName':_0x135ee7(0x12f),'args':{'language':_0x135ee7(0x150)}},{'id':_0x135ee7(0x109),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x103)),'type':AIQuickActionType[_0x135ee7(0x135)],'actionName':_0x135ee7(0x12f),'args':{'language':_0x135ee7(0x187)}},{'id':_0x135ee7(0x15b),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x16b)),'type':AIQuickActionType[_0x135ee7(0x135)],'actionName':_0x135ee7(0x12f),'args':{'language':_0x135ee7(0x18a)}},{'id':_0x135ee7(0x161),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x115)),'type':AIQuickActionType[_0x135ee7(0x135)],'actionName':_0x135ee7(0x12f),'args':{'language':_0x135ee7(0x166)}},{'id':_0x135ee7(0x121),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x174)),'type':AIQuickActionType[_0x135ee7(0x135)],'actionName':_0x135ee7(0x12f),'args':{'language':_0x135ee7(0x199)}},{'id':_0x135ee7(0x14a),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x153)),'type':AIQuickActionType[_0x135ee7(0x135)],'actionName':_0x135ee7(0x12f),'args':{'language':_0x135ee7(0x139)}},{'id':_0x135ee7(0x11b),'displayedPrompt':_0x85cae3(_0x35b695,_0x135ee7(0x14b)),'type':AIQuickActionType[_0x135ee7(0x135)],'actionName':_0x135ee7(0x12f),'args':{'language':_0x135ee7(0x177)}}]},{'id':_0x135ee7(0x11c),'label':_0x85cae3(_0x35b695,_0x135ee7(0x143)),'icon':_0x313c56,'actions':[]}];return _0x3bedf1;}(_0x43bb13);}async[_0x51878a(0x124)](){const _0x1e5e9f=_0x51878a,_0x6dacd5=AIQuickActionsUI[_0x1e5e9f(0x15c)](this[_0x1e5e9f(0x160)][_0x1e5e9f(0x18d)]),_0x54f75a=this[_0x1e5e9f(0x160)][_0x1e5e9f(0x113)][_0x1e5e9f(0x145)](_0x1e5e9f(0x197))||[];let _0x304997=[];try{_0x304997=await new _0x38bc83({'connector':this[_0x1e5e9f(0x160)][_0x1e5e9f(0x191)][_0x1e5e9f(0x145)](_0x1e5e9f(0x170)),'availableModels':this[_0x1e5e9f(0x160)][_0x1e5e9f(0x113)][_0x1e5e9f(0x145)](_0x1e5e9f(0x144))})[_0x1e5e9f(0x15f)]();}catch(_0x10e9f9){const _0x25d81f=new _0x1355c0(_0x1e5e9f(0x127),this,{'error':_0x10e9f9});_0x22e57e(_0x25d81f[_0x1e5e9f(0x117)]);}finally{const _0x1e3dcf=_0x54f75a[_0x1e5e9f(0x16d)](_0x5002a3=>({..._0x5002a3,'icon':void 0x0}));_0x6dacd5[_0x1e5e9f(0x17e)](_0x6bb2bf=>_0x1e5e9f(0x11c)===_0x6bb2bf['id'])[_0x1e5e9f(0x167)][_0x1e5e9f(0x162)](..._0x1e3dcf),_0x6dacd5[_0x1e5e9f(0x183)](_0x53e448=>{const _0x3b4191=_0x1e5e9f;if(_0x3b4191(0x167)in _0x53e448)_0x53e448[_0x3b4191(0x167)][_0x3b4191(0x183)](_0x3c0b14=>{const _0x307601=_0x3b4191;if(_0x3c0b14[_0x307601(0x119)]=!!_0x304997[_0x307601(0x17e)](_0x1700b0=>_0x1700b0['id']===_0x3c0b14[_0x307601(0x180)])||void 0x0===_0x3c0b14[_0x307601(0x180)],!_0x3c0b14[_0x307601(0x119)]){const _0x20349e=new _0x1355c0(_0x307601(0x108),this,{'actionId':_0x3c0b14['id'],'modelId':_0x3c0b14[_0x307601(0x180)]});_0x22e57e(_0x20349e[_0x307601(0x117)]);}});else{if(_0x53e448[_0x3b4191(0x119)]=!!_0x304997[_0x3b4191(0x17e)](_0x40900e=>_0x40900e['id']===_0x53e448[_0x3b4191(0x180)])||void 0x0===_0x53e448[_0x3b4191(0x180)],!_0x53e448[_0x3b4191(0x119)]){const _0x107740=new _0x1355c0(_0x3b4191(0x108),this,{'actionId':_0x53e448['id'],'modelId':_0x53e448[_0x3b4191(0x180)]});_0x22e57e(_0x107740[_0x3b4191(0x117)]);}}});}return _0x6dacd5;}[_0x51878a(0x163)](){const _0x47fd36=_0x51878a,_0x11150b=new _0x5d4f5a(this[_0x47fd36(0x160)][_0x47fd36(0x18d)]);_0x11150b[_0x47fd36(0x19d)](),this[_0x47fd36(0x13e)](_0x11150b),this[_0x47fd36(0x149)](),this[_0x47fd36(0x14d)](_0x11150b);}[_0x51878a(0x13e)](_0x5bc930){const _0x4154f9=_0x51878a,_0x131bd2=this[_0x4154f9(0x160)][_0x4154f9(0x113)][_0x4154f9(0x145)](_0x4154f9(0x100))??!0x0;this[_0x4154f9(0x160)]['ui'][_0x4154f9(0x106)][_0x4154f9(0x11f)](_0x4154f9(0x15a),_0x22e3b3({'editor':this[_0x4154f9(0x160)],'content':this[_0x4154f9(0x128)],'buttonDefinition':{'icon':_0xccffc5,'label':_0x85cae3(this[_0x4154f9(0x160)][_0x4154f9(0x18d)],_0x4154f9(0x10a))},'bodyCollection':_0x5bc930,'hasSearch':_0x131bd2}));}[_0x51878a(0x16a)](_0x37d6ce){const _0x7dff5d=_0x51878a;this[_0x7dff5d(0x128)]=_0x37d6ce[_0x7dff5d(0x16d)](_0x1cd48c=>{const _0x2bff7a=_0x7dff5d;if(_0x2bff7a(0x167)in _0x1cd48c){const _0x2b1dda=_0x1cd48c;return{..._0x2b1dda,'actions':_0x2b1dda[_0x2bff7a(0x167)][_0x2bff7a(0x16d)](_0x7f10e0=>{const {actions:_0x53da9a,..._0x53c18c}=_0x2b1dda;return{..._0x7f10e0,'parent':_0x53c18c};})[_0x2bff7a(0x175)](_0x3ab0d3=>this[_0x2bff7a(0x11d)](_0x3ab0d3))};}return _0x1cd48c;})[_0x7dff5d(0x175)](_0xd3e71=>_0x7dff5d(0x167)in _0xd3e71?_0xd3e71[_0x7dff5d(0x167)][_0x7dff5d(0x17d)]>0x0:this[_0x7dff5d(0x11d)](_0xd3e71));}[_0x51878a(0x11d)](_0x4fbb46){const _0x11a0f=_0x51878a,_0x3d7bf4=this[_0x11a0f(0x160)][_0x11a0f(0x113)][_0x11a0f(0x145)](_0x11a0f(0x152))||[];return this[_0x11a0f(0x160)][_0x11a0f(0x191)][_0x11a0f(0x18f)](AIQuickActionTypeToPluginName[_0x4fbb46[_0x11a0f(0x181)]])&&!_0x3d7bf4[_0x11a0f(0x192)](_0x4fbb46['id']);}[_0x51878a(0x14d)](_0x37d98b){const _0x52859f=_0x51878a;this[_0x52859f(0x128)][_0x52859f(0x183)](_0x2ddc4f=>{const _0x867977=_0x52859f;if(_0x867977(0x167)in _0x2ddc4f){const _0xbd5117=_0x22e3b3({'editor':this[_0x867977(0x160)],'content':_0x2ddc4f[_0x867977(0x167)],'buttonDefinition':_0x2ddc4f,'bodyCollection':_0x37d98b});this[_0x867977(0x160)]['ui'][_0x867977(0x106)][_0x867977(0x11f)](_0x2ddc4f['id'],_0xbd5117),_0x2ddc4f[_0x867977(0x167)][_0x867977(0x183)](_0x354db8=>{const _0x12091b=_0x867977,_0x2dc8ec=_0xd2fdb({'editor':this[_0x12091b(0x160)],'action':_0x354db8});this[_0x12091b(0x160)]['ui'][_0x12091b(0x106)][_0x12091b(0x11f)](_0x354db8['id'],_0x2dc8ec);});}else{const _0x5a94d8=_0xd2fdb({'editor':this[_0x867977(0x160)],'action':_0x2ddc4f,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this[_0x867977(0x160)]['ui'][_0x867977(0x106)][_0x867977(0x11f)](_0x2ddc4f['id'],_0x5a94d8);}});}[_0x51878a(0x149)](){const _0x5db3c3=_0x51878a;this[_0x5db3c3(0x160)]['ui'][_0x5db3c3(0x106)][_0x5db3c3(0x11f)](_0x5db3c3(0x164),_0x2b0b70=>{const _0x2ce6c3=_0x5db3c3,_0x47d71f=new _0x2a79a5(_0x2b0b70),_0x520910=_0x85cae3(_0x2b0b70,_0x2ce6c3(0x10a));_0x47d71f[_0x2ce6c3(0x12b)][_0x2ce6c3(0x104)]({'label':_0x520910,'icon':_0xccffc5});const _0x463e11=new _0x31ee78(_0x2b0b70);_0x463e11[_0x2ce6c3(0x104)]({'ariaLabel':_0x520910,'role':_0x2ce6c3(0x155)}),this[_0x2ce6c3(0x128)][_0x2ce6c3(0x183)](_0x4d658b=>{const _0x29b808=_0x2ce6c3;if(_0x29b808(0x167)in _0x4d658b){const _0x2c33a8=_0x4d658b,_0x1c1b14=new _0x1f2ef7(_0x2b0b70,_0x47d71f),_0x12b95d=new _0x2a79a5(_0x2b0b70),_0x266567=new _0x31ee78(_0x2b0b70);_0x12b95d[_0x29b808(0x12b)][_0x29b808(0x104)]({'label':_0x2c33a8[_0x29b808(0x15d)],'icon':_0x2c33a8[_0x29b808(0x193)]}),_0x2c33a8[_0x29b808(0x167)][_0x29b808(0x183)](_0x3ca333=>{const _0x4e36e2=_0x29b808,_0x3ee7a6=new _0x1f2ef7(_0x2b0b70,_0x12b95d),_0xefef15=new _0x493ee2(_0x2b0b70);_0xefef15[_0x4e36e2(0x104)]({'label':_0x3ca333[_0x4e36e2(0x13f)],'icon':_0x3ca333[_0x4e36e2(0x193)],'role':_0x4e36e2(0x14f),'isEnabled':_0x3ca333[_0x4e36e2(0x119)]}),_0xefef15['on'](_0x4e36e2(0x148),()=>{const _0x2dc4a3=_0x4e36e2;this[_0x2dc4a3(0x14e)](_0x3ca333);}),_0xefef15[_0x4e36e2(0x13c)](_0x4e36e2(0x148))['to'](_0x12b95d),_0x3ee7a6[_0x4e36e2(0x118)][_0x4e36e2(0x11f)](_0xefef15),_0x266567[_0x4e36e2(0x102)][_0x4e36e2(0x11f)](_0x3ee7a6);}),_0x12b95d[_0x29b808(0x18e)][_0x29b808(0x118)][_0x29b808(0x11f)](_0x266567),_0x1c1b14[_0x29b808(0x118)][_0x29b808(0x11f)](_0x12b95d),_0x463e11[_0x29b808(0x102)][_0x29b808(0x11f)](_0x1c1b14);}else{const _0x504118=_0x4d658b,_0x57607c=new _0x1f2ef7(_0x2b0b70,_0x47d71f),_0x53267a=new _0x493ee2(_0x2b0b70);_0x53267a[_0x29b808(0x104)]({'label':_0x504118[_0x29b808(0x13f)],'icon':_0x504118[_0x29b808(0x193)],'role':_0x29b808(0x14f),'isEnabled':_0x504118[_0x29b808(0x119)]}),_0x53267a['on'](_0x29b808(0x148),()=>{const _0x13bae3=_0x29b808;this[_0x13bae3(0x14e)](_0x504118);}),_0x53267a[_0x29b808(0x13c)](_0x29b808(0x148))['to'](_0x47d71f),_0x57607c[_0x29b808(0x118)][_0x29b808(0x11f)](_0x53267a),_0x463e11[_0x29b808(0x102)][_0x29b808(0x11f)](_0x57607c);}});const _0x2e3d50=Object[_0x2ce6c3(0x19c)](AIQuickActionTypeToPluginName)[_0x2ce6c3(0x169)](_0x2baf5d=>this[_0x2ce6c3(0x160)][_0x2ce6c3(0x191)][_0x2ce6c3(0x18f)](_0x2baf5d));return _0x47d71f[_0x2ce6c3(0x104)]({'isEnabled':_0x2e3d50}),_0x47d71f[_0x2ce6c3(0x18e)][_0x2ce6c3(0x118)][_0x2ce6c3(0x11f)](_0x463e11),_0x47d71f;});}[_0x51878a(0x14e)](_0x4005c3){const _0x1f91c7=_0x51878a,_0x2d89c1=this[_0x1f91c7(0x160)];_0x2d89c1[_0x1f91c7(0x10e)][_0x1f91c7(0x116)][_0x1f91c7(0xff)](),_0x2d89c1[_0x1f91c7(0x156)][_0x1f91c7(0x148)](_0x1f91c7(0x137),_0x4005c3);const _0x8bde6d=_0x2d89c1['ui'][_0x1f91c7(0x116)][_0x1f91c7(0x182)];_0x8bde6d&&_0x8bde6d[_0x1f91c7(0x172)]&&_0x8bde6d[_0x1f91c7(0x172)]();}}
|
|
23
|
+
const _0x4ac7db=_0x25ad;(function(_0x12c7dd,_0x1297fe){const _0x4fe1c4=_0x25ad,_0x33b598=_0x12c7dd();while(!![]){try{const _0x11b729=parseInt(_0x4fe1c4(0x157))/0x1*(parseInt(_0x4fe1c4(0x1a2))/0x2)+parseInt(_0x4fe1c4(0x1b4))/0x3+parseInt(_0x4fe1c4(0x163))/0x4+parseInt(_0x4fe1c4(0x14d))/0x5*(-parseInt(_0x4fe1c4(0x17a))/0x6)+parseInt(_0x4fe1c4(0x145))/0x7*(-parseInt(_0x4fe1c4(0x1aa))/0x8)+parseInt(_0x4fe1c4(0x180))/0x9*(-parseInt(_0x4fe1c4(0x198))/0xa)+parseInt(_0x4fe1c4(0x1cb))/0xb*(parseInt(_0x4fe1c4(0x159))/0xc);if(_0x11b729===_0x1297fe)break;else _0x33b598['push'](_0x33b598['shift']());}catch(_0x37626a){_0x33b598['push'](_0x33b598['shift']());}}}(_0xf328,0x74a85));import{IconAIAdjustLength as _0x1443fb,IconAIChangeTone as _0x1cae9c,IconAIChatCommands as _0x436057,IconAIContinueWriting as _0x1bc866,IconAIGrammarCheck as _0x342f01,IconAIImproveWriting as _0x2200e0,IconAIOther as _0x5a582e,IconAIQuickActions as _0x1cc797,IconAITranslate as _0x554e87}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x2fd18e}from'ckeditor5/src/core.js';import{CKEditorError as _0x3ded9a,logError as _0xa6f9b9}from'ckeditor5/src/utils.js';import{getTranslation as _0x2765b4}from'../aicore/utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x12f573}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x29af85}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x3cee9b,BalloonToolbar as _0x1037b1,MenuBarMenuView as _0x20a762,MenuBarMenuListView as _0x810034,MenuBarMenuListItemView as _0x4e8a46,MenuBarMenuListItemButtonView as _0x24d86b}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';function _0x25ad(_0x549f51,_0x3b4053){const _0xf3289b=_0xf328();return _0x25ad=function(_0x25ad0e,_0x496bcb){_0x25ad0e=_0x25ad0e-0x131;let _0x3cbee4=_0xf3289b[_0x25ad0e];return _0x3cbee4;},_0x25ad(_0x549f51,_0x3b4053);}import{AIModels as _0x14352c}from'../aicore/model/aimodels.js';const ae=_0x4ac7db(0x1d1),se=_0x4ac7db(0x158),re=_0x4ac7db(0x195);export var AIQuickActionType;!function(_0x2d4990){const _0x4b6853=_0x4ac7db;_0x2d4990[_0x4b6853(0x131)]=_0x4b6853(0x131),_0x2d4990[_0x4b6853(0x1b9)]=_0x4b6853(0x1b9),_0x2d4990[_0x4b6853(0x133)]=_0x4b6853(0x133);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;function _0xf328(){const _0x4c4dff=['highlight-key-points','replace','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','AI_QUICK_ACTIONS_ADJUST_LENGTH','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20extract\x20and\x20present\x20the\x20key\x20points\x20from\x20its\x20content.</task><rules>1.\x20Present\x20the\x20output\x20as\x20a\x20clear,\x20structured\x20list\x20(bullets\x20or\x20numbered).-\x20Each\x20point\x20should\x20be\x20concise\x20(one\x20sentence\x20or\x20less).-\x20Do\x20not\x20merge\x20distinct\x20ideas\x20into\x20one\x20bullet.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20extraction\x20style:-\x20If\x20it\x20is\x20descriptive\x20capture\x20the\x20main\x20attributes\x20or\x20features.-\x20If\x20it\x20is\x20argumentative\x20extract\x20the\x20main\x20claim\x20and\x20supporting\x20reasons\x20separately.-\x20If\x20it\x20is\x20narrative/story-like\x20extract\x20the\x20main\x20events\x20in\x20chronological\x20order.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20highlight\x20the\x20most\x20important\x20facts\x20or\x20numbers.-\x20If\x20it\x20is\x20instructional\x20list\x20the\x20steps\x20or\x20main\x20actions\x20in\x20simplified\x20form.-\x20If\x20it\x20provides\x20comparisons\x20extract\x20the\x20contrasted\x20items\x20and\x20their\x20differences/similarities.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20category\x20above\x20extract\x20the\x20main\x20ideas\x20in\x20plain,\x20short\x20statements.3.\x20Keep\x20the\x20list\x20between\x203–7\x20items\x20where\x20possible.-\x20If\x20the\x20text\x20is\x20very\x20short,\x20fewer\x20items\x20are\x20fine.-\x20If\x20it\x20is\x20very\x20long,\x20focus\x20on\x20the\x20most\x20important\x20ideas\x20only.4.\x20Do\x20not\x20copy\x20long\x20text\x20fragments\x20—\x20restate\x20in\x20simple\x20words.5.\x20Do\x20not\x20add\x20interpretation,\x20evaluation,\x20or\x20commentary\x20beyond\x20the\x20text.6.\x20Ensure\x20the\x20list\x20can\x20stand\x20alone\x20without\x20requiring\x20the\x20reader\x20to\x20see\x20the\x20original\x20document.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20key\x20points.8.\x20Your\x20key\x20points\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20extracted\x20key\x20points.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','AI_QUICK_ACTIONS_MORE_CONFIDENT','990VosFCq','translate-to-french','editing','chinese','view','icon','make-tone-confident','translate-to-korean','translate-to-japanese','make-tone-friendly','12658HrDLeh','german','make-tone-direct','translate-to-chinese','translate-to-italian','_initializeQuickActionsComponentsAndCommands','AI_QUICK_ACTIONS_CHAT_COMMANDS','AI_QUICK_ACTIONS_TRANSLATE','88vvmZSd','init','continue','values','find','buttonView','improve-writing','fix-grammar','delegate','AIQuickActionsUI','1014807NVFPKU','make-shorter','adjust-length','AIChat','_initializeQuickActionsMenuBar','ACTION','ai-quick-actions-unavailable-model','commands','portuguese','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','AI_QUICK_ACTIONS_EXPLAIN','getDefaultQuickActions','length','items','forEach','make-tone-professional','change-tone','includes','AIConnector','getAvailableModels','some','AI_QUICK_ACTIONS_MORE_CASUAL','English','8691782ATTXqH','_getDefaultAndCustomActions','AI_QUICK_ACTIONS_CHANGE_TONE','displayedPrompt','actions','AI_QUICK_ACTIONS_HEADING','<task>For\x20given\x20selected\x20part\x20of\x20HTML\x20document\x20you\x20must\x20explain\x20the\x20meaning\x20of\x20it\x27s\x20content\x20clearly\x20and\x20in\x20plain\x20language.</task><rules>1.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is:-\x20If\x20it\x20looks\x20like\x20a\x20definition\x20explain\x20the\x20concept\x20in\x20simple\x20terms.-\x20If\x20it\x20looks\x20like\x20a\x20description\x20clarify\x20what\x20it\x20is\x20describing\x20and\x20why\x20it\x20matters.-\x20If\x20it\x20contains\x20technical\x20terms\x20or\x20jargon\x20break\x20them\x20down\x20into\x20everyday\x20language.-\x20If\x20it\x20looks\x20instructional\x20restate\x20as\x20clear\x20steps\x20someone\x20can\x20follow.-\x20If\x20it\x20provides\x20examples\x20explain\x20what\x20the\x20example\x20shows\x20and\x20why\x20it\x27s\x20relevant.-\x20If\x20it\x20presents\x20an\x20argument\x20or\x20claim\x20restate\x20the\x20claim\x20neutrally\x20and\x20explain\x20its\x20purpose.-\x20If\x20it\x20is\x20narrative/story-like\x20explain\x20what\x20event\x20or\x20situation\x20is\x20being\x20described.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20explain\x20what\x20the\x20data\x20indicates.-\x20If\x20it\x20is\x20a\x20quotation\x20explain\x20the\x20meaning\x20of\x20the\x20quote\x20in\x20context.-\x20If\x20it\x20compares/contrasts\x20things\x20explain\x20the\x20key\x20differences\x20or\x20similarities\x20simply.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20give\x20a\x20clear,\x20plain-language\x20explanation\x20of\x20its\x20meaning,\x20focusing\x20on\x20usefulness.2.\x20Provide\x20context\x20if\x20the\x20meaning\x20could\x20be\x20unclear\x20without\x20it.\x20(e.g.,\x20explain\x20where\x20such\x20a\x20term\x20might\x20be\x20used,\x20or\x20why\x20it\x20is\x20important).3.\x20Keep\x20the\x20explanation\x20short\x20but\x20complete\x20(2–5\x20sentences).Avoid\x20overly\x20technical\x20detail\x20unless\x20it\x20is\x20necessary\x20for\x20understanding.4.\x20Do\x20not\x20simply\x20repeat\x20the\x20original\x20text\x20—\x20restate\x20and\x20expand\x20it\x20in\x20plain\x20words.5.\x20If\x20possible,\x20add\x20a\x20short\x20example\x20or\x20analogy\x20to\x20make\x20it\x20easier\x20to\x20understand.6.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20explanation.7.\x20Your\x20explanation\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20explanation.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','message','ai.quickActions.isSearchEnabled','CHAT','AIReviewMode','REVIEW','_initializeQuickActionsDropdown','other','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','AI_QUICK_ACTIONS_MAKE_LONGER','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','translate','menuBar:aiQuickActions','plugins','_shouldIncludeAction','AI_QUICK_ACTIONS_MORE_DIRECT','chat-commands','map','config','focus','AI_QUICK_ACTIONS_ASK_AI','spanish','requires','347011ZfTvZt','russian','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','japanese','aiQuickAction','uiLanguage','pluginName','summarize','10eIXOZC','explain','translate-to-german','language','menuitem','ai.quickActions.extraCommands','locale','korean','_initializeQuickActionsComponents','add','118spubsT','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','12JcDwTH','_executeQuickAction','aiQuickActions','AI_QUICK_ACTIONS_OTHER','set','ask-ai','AI_QUICK_ACTIONS_SUMMARIZE','get','AI_QUICK_ACTIONS_IMPROVE_WRITING','model','856296nDGbTh','isPremiumPlugin','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','french','filter','menu','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','ai-quick-actions-models-unable-to-retrieve','attachToDom','translate-to-russian','AI_QUICK_ACTIONS_CONTINUE_WRITING','AI_QUICK_ACTIONS_MORE_FRIENDLY','translate-to-spanish','_quickActionsDefinition','has','translate-to-english','ai.chat.models.displayedModels','isEnabled','panelView','AI_QUICK_ACTIONS_MAKE_SHORTER','editor','componentFactory','english','2703486drnQYJ','make-tone-casual','execute','close','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','make-longer','15003zvPTOQ','DisplayNames','menuBarView','ai.quickActions.removeCommands','_prepareQuickActionsDefinition','label','AIActions','type','children','push','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','italian','isOfficialPlugin','translate-to-portuguese','AI_QUICK_ACTIONS_TRANSLATE_GERMAN'];_0xf328=function(){return _0x4c4dff;};return _0xf328();}!function(_0x19703a){const _0x275dda=_0x4ac7db;_0x19703a[_0x275dda(0x131)]=_0x275dda(0x1b7),_0x19703a[_0x275dda(0x1b9)]=_0x275dda(0x186),_0x19703a[_0x275dda(0x133)]=_0x275dda(0x132);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x2fd18e{static get[_0x4ac7db(0x144)](){return[_0x1037b1];}static get[_0x4ac7db(0x14b)](){const _0x54d824=_0x4ac7db;return _0x54d824(0x1b3);}static get[_0x4ac7db(0x18d)](){return!0x0;}static get[_0x4ac7db(0x164)](){return!0x0;}async[_0x4ac7db(0x1ab)](){const _0x19a0d2=_0x4ac7db,_0x443e9e=await this[_0x19a0d2(0x1cc)]();this[_0x19a0d2(0x184)](_0x443e9e),this[_0x19a0d2(0x1a7)]();}static[_0x4ac7db(0x1bf)](_0x293acf){return function(_0x9746fa){const _0x3e6673=_0x25ad,_0x5aeeb0=new Intl[(_0x3e6673(0x181))](['en'],{'type':_0x3e6673(0x150)})['of'](_0x9746fa[_0x3e6673(0x14a)]),_0x539ed2=_0x5aeeb0||_0x3e6673(0x1ca),_0x4f68eb=[{'id':_0x3e6673(0x15e),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x142)),'type':AIQuickActionType[_0x3e6673(0x131)],'icon':_0x436057},{'id':_0x3e6673(0x13e),'label':_0x2765b4(_0x9746fa,_0x3e6673(0x1a8)),'icon':_0x436057,'actions':[{'id':_0x3e6673(0x14e),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x1be)),'prompt':ae[_0x3e6673(0x191)]('%0',_0x539ed2),'type':AIQuickActionType[_0x3e6673(0x131)]},{'id':_0x3e6673(0x14c),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x15f)),'prompt':se[_0x3e6673(0x191)]('%0',_0x539ed2),'type':AIQuickActionType[_0x3e6673(0x131)]},{'id':_0x3e6673(0x190),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x138)),'prompt':re[_0x3e6673(0x191)]('%0',_0x539ed2),'type':AIQuickActionType[_0x3e6673(0x131)]}]},{'id':_0x3e6673(0x1b0),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x161)),'type':AIQuickActionType[_0x3e6673(0x1b9)],'icon':_0x2200e0},{'id':_0x3e6673(0x1ac),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x16d)),'type':AIQuickActionType[_0x3e6673(0x1b9)],'icon':_0x1bc866},{'id':_0x3e6673(0x1b1),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x165)),'type':AIQuickActionType[_0x3e6673(0x1b9)],'icon':_0x342f01},{'id':_0x3e6673(0x1b6),'label':_0x2765b4(_0x9746fa,_0x3e6673(0x193)),'icon':_0x1443fb,'actions':[{'id':_0x3e6673(0x1b5),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x176)),'type':AIQuickActionType[_0x3e6673(0x1b9)]},{'id':_0x3e6673(0x17f),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x137)),'type':AIQuickActionType[_0x3e6673(0x1b9)]}]},{'id':_0x3e6673(0x1c4),'label':_0x2765b4(_0x9746fa,_0x3e6673(0x1cd)),'icon':_0x1cae9c,'actions':[{'id':_0x3e6673(0x17b),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x1c9)),'type':AIQuickActionType[_0x3e6673(0x1b9)]},{'id':_0x3e6673(0x1a4),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x13d)),'type':AIQuickActionType[_0x3e6673(0x1b9)]},{'id':_0x3e6673(0x1a1),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x16e)),'type':AIQuickActionType[_0x3e6673(0x1b9)]},{'id':_0x3e6673(0x19e),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x197)),'type':AIQuickActionType[_0x3e6673(0x1b9)]},{'id':_0x3e6673(0x1c3),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x147)),'type':AIQuickActionType[_0x3e6673(0x1b9)]}]},{'id':_0x3e6673(0x139),'label':_0x2765b4(_0x9746fa,_0x3e6673(0x1a9)),'icon':_0x554e87,'actions':[{'id':_0x3e6673(0x172),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x169)),'type':AIQuickActionType[_0x3e6673(0x1b9)],'actionName':_0x3e6673(0x139),'args':{'language':_0x3e6673(0x179)}},{'id':_0x3e6673(0x1a5),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x17e)),'type':AIQuickActionType[_0x3e6673(0x1b9)],'actionName':_0x3e6673(0x139),'args':{'language':_0x3e6673(0x19b)}},{'id':_0x3e6673(0x16f),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x18b)),'type':AIQuickActionType[_0x3e6673(0x1b9)],'actionName':_0x3e6673(0x139),'args':{'language':_0x3e6673(0x143)}},{'id':_0x3e6673(0x14f),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x18f)),'type':AIQuickActionType[_0x3e6673(0x1b9)],'actionName':_0x3e6673(0x139),'args':{'language':_0x3e6673(0x1a3)}},{'id':_0x3e6673(0x199),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x1bd)),'type':AIQuickActionType[_0x3e6673(0x1b9)],'actionName':_0x3e6673(0x139),'args':{'language':_0x3e6673(0x166)}},{'id':_0x3e6673(0x1a0),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x192)),'type':AIQuickActionType[_0x3e6673(0x1b9)],'actionName':_0x3e6673(0x139),'args':{'language':_0x3e6673(0x148)}},{'id':_0x3e6673(0x18e),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x136)),'type':AIQuickActionType[_0x3e6673(0x1b9)],'actionName':_0x3e6673(0x139),'args':{'language':_0x3e6673(0x1bc)}},{'id':_0x3e6673(0x19f),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x194)),'type':AIQuickActionType[_0x3e6673(0x1b9)],'actionName':_0x3e6673(0x139),'args':{'language':_0x3e6673(0x154)}},{'id':_0x3e6673(0x1a6),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x196)),'type':AIQuickActionType[_0x3e6673(0x1b9)],'actionName':_0x3e6673(0x139),'args':{'language':_0x3e6673(0x18c)}},{'id':_0x3e6673(0x16c),'displayedPrompt':_0x2765b4(_0x9746fa,_0x3e6673(0x18a)),'type':AIQuickActionType[_0x3e6673(0x1b9)],'actionName':_0x3e6673(0x139),'args':{'language':_0x3e6673(0x146)}}]},{'id':_0x3e6673(0x135),'label':_0x2765b4(_0x9746fa,_0x3e6673(0x15c)),'icon':_0x5a582e,'actions':[]}];return _0x4f68eb;}(_0x293acf);}async[_0x4ac7db(0x1cc)](){const _0x31feb7=_0x4ac7db,_0x41e4a8=AIQuickActionsUI[_0x31feb7(0x1bf)](this[_0x31feb7(0x177)][_0x31feb7(0x153)]),_0x2fe9c6=this[_0x31feb7(0x177)][_0x31feb7(0x140)][_0x31feb7(0x160)](_0x31feb7(0x152))||[];let _0x3288f1=[];try{_0x3288f1=await new _0x14352c({'connector':this[_0x31feb7(0x177)][_0x31feb7(0x13b)][_0x31feb7(0x160)](_0x31feb7(0x1c6)),'availableModels':this[_0x31feb7(0x177)][_0x31feb7(0x140)][_0x31feb7(0x160)](_0x31feb7(0x173))})[_0x31feb7(0x1c7)]();}catch(_0x4bb75b){const _0x206e1a=new _0x3ded9a(_0x31feb7(0x16a),this,{'error':_0x4bb75b});_0xa6f9b9(_0x206e1a[_0x31feb7(0x1d2)]);}finally{const _0x20acce=_0x2fe9c6[_0x31feb7(0x13f)](_0x44131b=>({..._0x44131b,'icon':void 0x0}));_0x41e4a8[_0x31feb7(0x1ae)](_0x332b54=>_0x31feb7(0x135)===_0x332b54['id'])[_0x31feb7(0x1cf)][_0x31feb7(0x189)](..._0x20acce),_0x41e4a8[_0x31feb7(0x1c2)](_0x4f3a30=>{const _0x292be5=_0x31feb7;if(_0x292be5(0x1cf)in _0x4f3a30)_0x4f3a30[_0x292be5(0x1cf)][_0x292be5(0x1c2)](_0x5a2aa8=>{const _0x278113=_0x292be5;if(_0x5a2aa8[_0x278113(0x174)]=!!_0x3288f1[_0x278113(0x1ae)](_0x834891=>_0x834891['id']===_0x5a2aa8[_0x278113(0x162)])||void 0x0===_0x5a2aa8[_0x278113(0x162)],!_0x5a2aa8[_0x278113(0x174)]){const _0xc6a310=new _0x3ded9a(_0x278113(0x1ba),this,{'actionId':_0x5a2aa8['id'],'modelId':_0x5a2aa8[_0x278113(0x162)]});_0xa6f9b9(_0xc6a310[_0x278113(0x1d2)]);}});else{if(_0x4f3a30[_0x292be5(0x174)]=!!_0x3288f1[_0x292be5(0x1ae)](_0x29d92c=>_0x29d92c['id']===_0x4f3a30[_0x292be5(0x162)])||void 0x0===_0x4f3a30[_0x292be5(0x162)],!_0x4f3a30[_0x292be5(0x174)]){const _0x4b70a3=new _0x3ded9a(_0x292be5(0x1ba),this,{'actionId':_0x4f3a30['id'],'modelId':_0x4f3a30[_0x292be5(0x162)]});_0xa6f9b9(_0x4b70a3[_0x292be5(0x1d2)]);}}});}return _0x41e4a8;}[_0x4ac7db(0x1a7)](){const _0x1ebcb8=_0x4ac7db,_0x22eec3=new _0x3cee9b(this[_0x1ebcb8(0x177)][_0x1ebcb8(0x153)]);_0x22eec3[_0x1ebcb8(0x16b)](),this[_0x1ebcb8(0x134)](_0x22eec3),this[_0x1ebcb8(0x1b8)](),this[_0x1ebcb8(0x155)](_0x22eec3);}[_0x4ac7db(0x134)](_0xfa7a27){const _0x532df0=_0x4ac7db,_0x300288=this[_0x532df0(0x177)][_0x532df0(0x140)][_0x532df0(0x160)](_0x532df0(0x1d3))??!0x0;this[_0x532df0(0x177)]['ui'][_0x532df0(0x178)][_0x532df0(0x156)](_0x532df0(0x15b),_0x12f573({'editor':this[_0x532df0(0x177)],'content':this[_0x532df0(0x170)],'buttonDefinition':{'icon':_0x1cc797,'label':_0x2765b4(this[_0x532df0(0x177)][_0x532df0(0x153)],_0x532df0(0x1d0))},'bodyCollection':_0xfa7a27,'hasSearch':_0x300288}));}[_0x4ac7db(0x184)](_0x8854d4){const _0x5c1300=_0x4ac7db;this[_0x5c1300(0x170)]=_0x8854d4[_0x5c1300(0x13f)](_0x3fc990=>{const _0x3f4138=_0x5c1300;if(_0x3f4138(0x1cf)in _0x3fc990){const _0x3bd288=_0x3fc990;return{..._0x3bd288,'actions':_0x3bd288[_0x3f4138(0x1cf)][_0x3f4138(0x13f)](_0x1a8f8e=>{const {actions:_0x1b1f68,..._0x30ee96}=_0x3bd288;return{..._0x1a8f8e,'parent':_0x30ee96};})[_0x3f4138(0x167)](_0x30bf19=>this[_0x3f4138(0x13c)](_0x30bf19))};}return _0x3fc990;})[_0x5c1300(0x167)](_0x1d5067=>_0x5c1300(0x1cf)in _0x1d5067?_0x1d5067[_0x5c1300(0x1cf)][_0x5c1300(0x1c0)]>0x0:this[_0x5c1300(0x13c)](_0x1d5067));}[_0x4ac7db(0x13c)](_0x18593b){const _0x27f061=_0x4ac7db,_0xb194ac=this[_0x27f061(0x177)][_0x27f061(0x140)][_0x27f061(0x160)](_0x27f061(0x183))||[];return this[_0x27f061(0x177)][_0x27f061(0x13b)][_0x27f061(0x171)](AIQuickActionTypeToPluginName[_0x18593b[_0x27f061(0x187)]])&&!_0xb194ac[_0x27f061(0x1c5)](_0x18593b['id']);}[_0x4ac7db(0x155)](_0x8f6796){const _0x47a8c2=_0x4ac7db;this[_0x47a8c2(0x170)][_0x47a8c2(0x1c2)](_0x58510d=>{const _0x115456=_0x47a8c2;if(_0x115456(0x1cf)in _0x58510d){const _0x358bf0=_0x12f573({'editor':this[_0x115456(0x177)],'content':_0x58510d[_0x115456(0x1cf)],'buttonDefinition':_0x58510d,'bodyCollection':_0x8f6796});this[_0x115456(0x177)]['ui'][_0x115456(0x178)][_0x115456(0x156)](_0x58510d['id'],_0x358bf0),_0x58510d[_0x115456(0x1cf)][_0x115456(0x1c2)](_0x5c1a65=>{const _0x1fd8a5=_0x115456,_0x1f5906=_0x29af85({'editor':this[_0x1fd8a5(0x177)],'action':_0x5c1a65});this[_0x1fd8a5(0x177)]['ui'][_0x1fd8a5(0x178)][_0x1fd8a5(0x156)](_0x5c1a65['id'],_0x1f5906);});}else{const _0x877fea=_0x29af85({'editor':this[_0x115456(0x177)],'action':_0x58510d,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this[_0x115456(0x177)]['ui'][_0x115456(0x178)][_0x115456(0x156)](_0x58510d['id'],_0x877fea);}});}[_0x4ac7db(0x1b8)](){const _0x1972c4=_0x4ac7db;this[_0x1972c4(0x177)]['ui'][_0x1972c4(0x178)][_0x1972c4(0x156)](_0x1972c4(0x13a),_0x3fdb80=>{const _0x2e577d=_0x1972c4,_0x20e7f1=new _0x20a762(_0x3fdb80),_0x104a60=_0x2765b4(_0x3fdb80,_0x2e577d(0x1d0));_0x20e7f1[_0x2e577d(0x1af)][_0x2e577d(0x15d)]({'label':_0x104a60,'icon':_0x1cc797});const _0x127cef=new _0x810034(_0x3fdb80);_0x127cef[_0x2e577d(0x15d)]({'ariaLabel':_0x104a60,'role':_0x2e577d(0x168)}),this[_0x2e577d(0x170)][_0x2e577d(0x1c2)](_0x48770d=>{const _0x266eba=_0x2e577d;if(_0x266eba(0x1cf)in _0x48770d){const _0x3d4135=_0x48770d,_0x2084e3=new _0x4e8a46(_0x3fdb80,_0x20e7f1),_0x35c0cb=new _0x20a762(_0x3fdb80),_0x4ffd15=new _0x810034(_0x3fdb80);_0x35c0cb[_0x266eba(0x1af)][_0x266eba(0x15d)]({'label':_0x3d4135[_0x266eba(0x185)],'icon':_0x3d4135[_0x266eba(0x19d)]}),_0x3d4135[_0x266eba(0x1cf)][_0x266eba(0x1c2)](_0x252387=>{const _0x44a6da=_0x266eba,_0x12d0f5=new _0x4e8a46(_0x3fdb80,_0x35c0cb),_0x43d370=new _0x24d86b(_0x3fdb80);_0x43d370[_0x44a6da(0x15d)]({'label':_0x252387[_0x44a6da(0x1ce)],'icon':_0x252387[_0x44a6da(0x19d)],'role':_0x44a6da(0x151),'isEnabled':_0x252387[_0x44a6da(0x174)]}),_0x43d370['on'](_0x44a6da(0x17c),()=>{const _0x530444=_0x44a6da;this[_0x530444(0x15a)](_0x252387);}),_0x43d370[_0x44a6da(0x1b2)](_0x44a6da(0x17c))['to'](_0x35c0cb),_0x12d0f5[_0x44a6da(0x188)][_0x44a6da(0x156)](_0x43d370),_0x4ffd15[_0x44a6da(0x1c1)][_0x44a6da(0x156)](_0x12d0f5);}),_0x35c0cb[_0x266eba(0x175)][_0x266eba(0x188)][_0x266eba(0x156)](_0x4ffd15),_0x2084e3[_0x266eba(0x188)][_0x266eba(0x156)](_0x35c0cb),_0x127cef[_0x266eba(0x1c1)][_0x266eba(0x156)](_0x2084e3);}else{const _0x4c1638=_0x48770d,_0x41ae00=new _0x4e8a46(_0x3fdb80,_0x20e7f1),_0x4d03ce=new _0x24d86b(_0x3fdb80);_0x4d03ce[_0x266eba(0x15d)]({'label':_0x4c1638[_0x266eba(0x1ce)],'icon':_0x4c1638[_0x266eba(0x19d)],'role':_0x266eba(0x151),'isEnabled':_0x4c1638[_0x266eba(0x174)]}),_0x4d03ce['on'](_0x266eba(0x17c),()=>{const _0x2d5e7c=_0x266eba;this[_0x2d5e7c(0x15a)](_0x4c1638);}),_0x4d03ce[_0x266eba(0x1b2)](_0x266eba(0x17c))['to'](_0x20e7f1),_0x41ae00[_0x266eba(0x188)][_0x266eba(0x156)](_0x4d03ce),_0x127cef[_0x266eba(0x1c1)][_0x266eba(0x156)](_0x41ae00);}});const _0x5a8950=Object[_0x2e577d(0x1ad)](AIQuickActionTypeToPluginName)[_0x2e577d(0x1c8)](_0x201229=>this[_0x2e577d(0x177)][_0x2e577d(0x13b)][_0x2e577d(0x171)](_0x201229));return _0x20e7f1[_0x2e577d(0x15d)]({'isEnabled':_0x5a8950}),_0x20e7f1[_0x2e577d(0x175)][_0x2e577d(0x188)][_0x2e577d(0x156)](_0x127cef),_0x20e7f1;});}[_0x4ac7db(0x15a)](_0x3c95a1){const _0x5a351b=_0x4ac7db,_0x3316b8=this[_0x5a351b(0x177)];_0x3316b8[_0x5a351b(0x19a)][_0x5a351b(0x19c)][_0x5a351b(0x141)](),_0x3316b8[_0x5a351b(0x1bb)][_0x5a351b(0x17c)](_0x5a351b(0x149),_0x3c95a1);const _0x406742=_0x3316b8['ui'][_0x5a351b(0x19c)][_0x5a351b(0x182)];_0x406742&&_0x406742[_0x5a351b(0x17d)]&&_0x406742[_0x5a351b(0x17d)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0xea29(_0x4e6c56,_0x258837){const _0x1a0ebf=_0x1a0e();return _0xea29=function(_0xea29b9,_0x1bb398){_0xea29b9=_0xea29b9-0x175;let _0x1669fe=_0x1a0ebf[_0xea29b9];return _0x1669fe;},_0xea29(_0x4e6c56,_0x258837);}function _0x1a0e(){const _0x31b9fe=['focus','isEnabled','editing','commands','1258620NypgsM','displayedPrompt','7xcOWWe','icon','ck-ai-quick-actions-button','set','bindTemplate','extendTemplate','723756btzqev','menuitem','7927272ULHbKi','locale','810200ojUJft','execute','parent','2074854SLkpPB','1451184QKZxEE','view','411806Snymkm','aiQuickAction'];_0x1a0e=function(){return _0x31b9fe;};return _0x1a0e();}(function(_0x9d261a,_0x3a9aae){const _0x516b5a=_0xea29,_0x5c98fa=_0x9d261a();while(!![]){try{const _0x11d52d=parseInt(_0x516b5a(0x180))/0x1+-parseInt(_0x516b5a(0x17a))/0x2+parseInt(_0x516b5a(0x176))/0x3+-parseInt(_0x516b5a(0x17e))/0x4+-parseInt(_0x516b5a(0x186))/0x5+-parseInt(_0x516b5a(0x17d))/0x6*(parseInt(_0x516b5a(0x188))/0x7)+parseInt(_0x516b5a(0x178))/0x8;if(_0x11d52d===_0x3a9aae)break;else _0x5c98fa['push'](_0x5c98fa['shift']());}catch(_0x2e90f8){_0x5c98fa['push'](_0x5c98fa['shift']());}}}(_0x1a0e,0x4400a));import{ButtonView as _0x12e533}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x209dd2}from'@ckeditor/ckeditor5-icons';export function aiQuickActionsButtonCreator(_0x1a431e){const {editor:_0x13e27b,action:_0x14b22f,withText:_0xf01849=!0x1,withIcon:_0x3b74e1=!0x0,isInDropdown:_0x3c27b1=!0x0,shouldPreventFocus:_0x5761f9=!0x1}=_0x1a431e;return()=>{const _0x448998=_0xea29,_0x4fd74f=_0x13e27b[_0x448998(0x179)],_0x3889b2=new _0x12e533(_0x4fd74f),_0x3093c1=_0x3889b2[_0x448998(0x18c)];_0x3c27b1&&_0x3889b2[_0x448998(0x175)]({'on':{'mouseenter':_0x3093c1['to'](()=>{const _0x15b7f9=_0x448998;_0x5761f9&&_0x5761f9()||_0x3889b2[_0x15b7f9(0x182)]();})}});const _0x4e5f86=_0x14b22f[_0x448998(0x189)]??_0x14b22f[_0x448998(0x17c)]?.[_0x448998(0x189)];return _0x3889b2[_0x448998(0x18b)]({'label':_0x14b22f[_0x448998(0x187)],'withText':_0xf01849,'role':_0x448998(0x177),'icon':_0x3b74e1?_0x4e5f86??_0x209dd2:void 0x0,'tooltip':!_0xf01849,'class':_0x448998(0x18a),'isEnabled':_0x14b22f[_0x448998(0x183)]}),_0x3889b2['on'](_0x448998(0x17b),()=>{const _0x364560=_0x448998;_0x13e27b[_0x364560(0x184)][_0x364560(0x17f)][_0x364560(0x182)](),_0x13e27b[_0x364560(0x185)][_0x364560(0x17b)](_0x364560(0x181),_0x14b22f);}),_0x3889b2;};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x6c500c=_0x56f5;(function(_0x2b27fb,_0x855457){const _0x39323c=_0x56f5,_0x297e46=_0x2b27fb();while(!![]){try{const _0x2ebbfd=parseInt(_0x39323c(0xb7))/0x1*(-parseInt(_0x39323c(0xcd))/0x2)+-parseInt(_0x39323c(0xb8))/0x3+-parseInt(_0x39323c(0x11a))/0x4*(parseInt(_0x39323c(0xc4))/0x5)+parseInt(_0x39323c(0xc8))/0x6+parseInt(_0x39323c(0xeb))/0x7+parseInt(_0x39323c(0x107))/0x8*(-parseInt(_0x39323c(0x12f))/0x9)+parseInt(_0x39323c(0x10f))/0xa*(parseInt(_0x39323c(0xf9))/0xb);if(_0x2ebbfd===_0x855457)break;else _0x297e46['push'](_0x297e46['shift']());}catch(_0x45d105){_0x297e46['push'](_0x297e46['shift']());}}}(_0x2cd8,0xdc1d9));import{View as _0x447a2e,ListItemView as _0x380b6b,ListView as _0x3feba1,BalloonPanelView as _0x4ed007,DropdownMenuPanelPositioningFunctions as _0x2df1a9,ViewCollection as _0x193c07,FocusCycler as _0x1b06d2,ButtonView as _0x31eac1,IconView as _0x5ecb93,HighlightedTextView as _0x1072ac,ButtonLabelWithHighlightView as _0x13f353,SearchTextView as _0x4f144f}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x429a7c}from'@ckeditor/ckeditor5-icons';import{FocusTracker as _0x106e59,KeystrokeHandler as _0x373c45}from'ckeditor5/src/utils.js';import{aiQuickActionsButtonCreator as _0xbf5bf8}from'./aiquickactionsbuttoncreator.js';import{DropdownMenuButtonWithHighlightView as _0x1e10ca}from'./dropdownmenubuttonwithhighlightview.js';import{getTranslation as _0x2db9ee}from'../../aicore/utils/common-translations.js';function _0x56f5(_0x48781a,_0x506c4c){const _0x2cd839=_0x2cd8();return _0x56f5=function(_0x56f5b0,_0x22a20a){_0x56f5b0=_0x56f5b0-0xa8;let _0x2a8d5f=_0x2cd839[_0x56f5b0];return _0x2a8d5f;},_0x56f5(_0x48781a,_0x506c4c);}import{AIQuickActionsFilteredListView as _0x56dc69}from'./aiquickactionsfilteredlistview.js';const Ts=_0x6c500c(0xee),Rs=_0x6c500c(0x108);function _0x2cd8(){const _0x33609b=['_hasSearch','_createSearchResultGroupRow','13643060ZLsuKt','_createSearchResultGroupedActionButton','_allSearchableItems','_isMovingToNestedMenu','addMany','element','extendTemplate','_handlePanelKeydown','some','_createSearchResultActionButton','displayedPrompt','3243364WAuQWJ','mouseleave','ck-ai-quick-actions-button_with-group__close-paren','first','_handleSearchResultButtonClick','ck-ai-quick-actions-group-list','_focusables','optionsListView','ck-ai-quick-actions-button_with-group','detachFromDom','ck-dropdown-menu__nested-menu__panel','_searchTextView','parent','destroy','editing','get','_getPanelKeystroke','_createSearchResultIndividualActionButton','text','_openNestedPanels','focusCycler','747zDfntC','_createGroupActionsList','ArrowRight','closest','_createListItems','addEventListener','_setupGroupMenuBehavior','relatedTarget','ck-ai-quick-actions-search-result-button','reset','_createActionGroupButton','focus','delete','set','ck-dropdown-menu-list','eastSouth','ck-ai-quick-actions-search-result__content','41nIoOhG','1363323CJDmTS','add','.ck-ai-quick-actions-group-button','ck-button_with-text','span','ck-ai-quick-actions-button_with-group__open-paren','focusTracker','ck-ai-quick-actions-search-result-button_with-group','ck-ai-quick-actions-button__group-icon','isVisible','activeElement','isOn','5kdOzqE','label','push','items','7394736AMHsUv','hide','ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button','chain','ck-ai-quick-actions-group-panel','17846mLjtIT','ck-ai-quick-actions-search-result__action-row','keystrokes','_createSearchTextView','AI_QUICK_ACTIONS_SEARCH','ck-button','ck-ai-quick-actions','resetSearch','ck-ai-quick-actions-button\x20ck-ai-quick-actions-button_with-group','_createSearchResultContentView','fieldView','ck-reset_all','content','button','_setupActionButtonExecution','view','_createSearchResultActionRow','ck-ai-quick-actions-search','uiLanguageDirection','_isSearchFocused','forEach','_hideNestedPanel','_hideAllNestedPanels','locale','contains','role','div','_getButtonKeystroke','key','isEnabled','766318uygmfD','bindTemplate','setTemplate','menu','clear','bind','_bodyCollection','aiQuickAction','_createActionButton','show','icon','actions','execute','.ck-ai-quick-actions-group-list','22LxMtDS','queryView','ownerDocument','children','.ck-ai-quick-actions-group-panel','pin','ck-rounded-corners','ck-ai-quick-actions-search-result__group-row','AI_QUICK_ACTIONS_SEARCH_NOT_FOUND','ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button\x20ck-ai-quick-actions-search-result-button_with-group','render','ck-ai-quick-actions-button','_showNestedPanel','ck-ai-quick-actions-group-button','148224jGhvvD','menuitem','fire','rtl','ArrowLeft','commands'];_0x2cd8=function(){return _0x33609b;};return _0x2cd8();}export class AIQuickActionsDropdownContentView extends _0x447a2e{[_0x6c500c(0xf1)];[_0x6c500c(0x121)];[_0x6c500c(0x125)]=null;[_0x6c500c(0x111)]=[];[_0x6c500c(0xfc)];[_0x6c500c(0xbe)];[_0x6c500c(0xcf)];[_0x6c500c(0x120)];[_0x6c500c(0x12e)];[_0x6c500c(0x12d)]=new Set();[_0x6c500c(0x10d)];constructor(_0x840913,_0x26cd9e,_0x4ac040,_0x506119,_0x572c28=!0x1){const _0x139444=_0x6c500c,_0x4a3c62=_0x840913[_0x139444(0xe4)];super(_0x4a3c62),this[_0x139444(0xf1)]=_0x506119,this[_0x139444(0x10d)]=_0x572c28;const _0x102c1a=this[_0x139444(0xaa)](_0x840913,_0x26cd9e,_0x4ac040);this[_0x139444(0x121)]=new _0x56dc69(_0x4a3c62,_0x102c1a,this[_0x139444(0x111)]),this[_0x139444(0x121)][_0x139444(0xe6)]=Ts,this[_0x139444(0x121)][_0x139444(0xc7)][_0x139444(0x113)](_0x102c1a),this[_0x139444(0xbe)]=new _0x106e59(),this[_0x139444(0xcf)]=new _0x373c45(),_0x572c28&&(this[_0x139444(0x125)]=this[_0x139444(0xd0)]()),this[_0x139444(0x120)]=_0x102c1a,this[_0x139444(0x12e)]=new _0x1b06d2({'focusables':this[_0x139444(0x120)],'focusTracker':this[_0x139444(0xbe)],'keystrokeHandler':this[_0x139444(0xcf)]}),_0x572c28&&this[_0x139444(0x125)]&&this[_0x139444(0x12e)][_0x139444(0xcb)](this[_0x139444(0x125)][_0x139444(0x12e)]);const _0x38064b=_0x572c28&&this[_0x139444(0x125)]?[this[_0x139444(0x125)]]:[this[_0x139444(0x121)]];this[_0x139444(0xfc)]=new _0x193c07(_0x38064b),this[_0x139444(0xed)]({'tag':_0x139444(0xe7),'attributes':{'class':['ck',_0x139444(0xd8),_0x139444(0xd3),_0x139444(0xff)],'dir':_0x4a3c62[_0x139444(0xdf)]},'children':this[_0x139444(0xfc)]});}[_0x6c500c(0xd0)](){const _0x414fdb=_0x6c500c;return new _0x4f144f(this[_0x414fdb(0xe4)],{'filteredView':this[_0x414fdb(0x121)],'queryView':{'label':_0x2db9ee(this[_0x414fdb(0xe4)],_0x414fdb(0xd1))},'class':_0x414fdb(0xde),'infoView':{'text':{'notFound':{'primary':_0x2db9ee(this[_0x414fdb(0xe4)],_0x414fdb(0x101))}}}});}[_0x6c500c(0xe0)](){const _0x9ca6b4=_0x6c500c;if(!this[_0x9ca6b4(0x10d)]||!this[_0x9ca6b4(0x125)]||!this[_0x9ca6b4(0x125)][_0x9ca6b4(0xfa)][_0x9ca6b4(0xd7)][_0x9ca6b4(0x114)])return!0x1;const _0x36bc32=this[_0x9ca6b4(0x125)][_0x9ca6b4(0xfa)][_0x9ca6b4(0xd7)][_0x9ca6b4(0x114)][_0x9ca6b4(0xfb)]?.[_0x9ca6b4(0xc2)];return this[_0x9ca6b4(0x125)][_0x9ca6b4(0xfa)][_0x9ca6b4(0xd7)][_0x9ca6b4(0x114)][_0x9ca6b4(0xe5)](_0x36bc32);}[_0x6c500c(0xaa)](_0x103338,_0x471866,_0x5c4cea){const _0x2fd3d3=_0x6c500c,_0x1ffbe5=new _0x193c07();return _0x471866[_0x2fd3d3(0xe1)](_0x15d9d2=>{const _0x1851a8=_0x2fd3d3;if(_0x1851a8(0xf6)in _0x15d9d2){const {listItem:_0x1bc778}=this[_0x1851a8(0xb0)](_0x103338,_0x15d9d2,_0x5c4cea);_0x1ffbe5[_0x1851a8(0xb9)](_0x1bc778),_0x15d9d2[_0x1851a8(0xf6)][_0x1851a8(0xe1)](_0x187ac4=>{const _0x4d560b=_0x1851a8;this[_0x4d560b(0xf3)](_0x103338,_0x187ac4,_0x15d9d2[_0x4d560b(0xc5)],_0x15d9d2[_0x4d560b(0xf5)]);const {listItem:_0x60d22,highlightViews:_0x3d2526}=this[_0x4d560b(0x118)](_0x103338,_0x187ac4,_0x15d9d2[_0x4d560b(0xc5)],_0x15d9d2[_0x4d560b(0xf5)]);this[_0x4d560b(0x111)][_0x4d560b(0xc6)]({'item':_0x60d22,'label':_0x187ac4[_0x4d560b(0x119)],'groupLabel':_0x15d9d2[_0x4d560b(0xc5)],'highlightViews':_0x3d2526});});}else{const {listItem:_0x52de52}=this[_0x1851a8(0xf3)](_0x103338,_0x15d9d2);_0x1ffbe5[_0x1851a8(0xb9)](_0x52de52);const _0x2f932a=_0x52de52[_0x1851a8(0xfc)][_0x1851a8(0x11d)];if(_0x2f932a){const {listItem:_0x551241,highlightViews:_0x15eef4}=this[_0x1851a8(0x118)](_0x103338,_0x15d9d2);this[_0x1851a8(0x111)][_0x1851a8(0xc6)]({'item':_0x551241,'label':_0x2f932a[_0x1851a8(0xc5)]||'','highlightViews':_0x15eef4});}}}),_0x1ffbe5;}[_0x6c500c(0xf3)](_0x209538,_0x10467a,_0x5d17e0,_0x1e0423){const _0x10822e=_0x6c500c,_0x1d096c=new _0x380b6b(this[_0x10822e(0xe4)]);if(_0x5d17e0&&_0x1e0423){const _0x2873b1=new _0x31eac1(this[_0x10822e(0xe4)]),_0x78695c=_0x2873b1[_0x10822e(0xec)],_0x2155bb=new _0x1072ac();_0x2155bb[_0x10822e(0x12c)]=_0x10467a[_0x10822e(0x119)];const _0x208e3e=new _0x1072ac();_0x208e3e[_0x10822e(0x12c)]=_0x5d17e0;const _0x4f938a=new _0x5ecb93();_0x4f938a[_0x10822e(0xd9)]=_0x1e0423,_0x4f938a[_0x10822e(0x115)]({'attributes':{'class':_0x10822e(0xc0)}});const _0x466c4c=new _0x447a2e(this[_0x10822e(0xe4)]);_0x466c4c[_0x10822e(0xed)]({'tag':_0x10822e(0xbc),'attributes':{'class':_0x10822e(0xbd)},'children':[{'text':'\x20('}]});const _0x5f5d6c=new _0x447a2e(this[_0x10822e(0xe4)]);return _0x5f5d6c[_0x10822e(0xed)]({'tag':_0x10822e(0xbc),'attributes':{'class':_0x10822e(0x11c)},'children':[{'text':')'}]}),_0x2873b1[_0x10822e(0xb3)]({'label':_0x10467a[_0x10822e(0x119)]+'\x20('+_0x5d17e0+')','withText':!0x0,'role':_0x10822e(0x108),'class':_0x10822e(0xd5),'tooltip':!0x1}),_0x2873b1[_0x10822e(0xed)]({'tag':_0x10822e(0xda),'attributes':{'class':['ck',_0x10822e(0xd2),_0x10822e(0xbb),_0x10822e(0x104),_0x10822e(0x122)],'type':_0x10822e(0xda),'role':_0x10822e(0x108),'tabindex':'-1'},'children':[_0x2155bb,_0x466c4c,_0x4f938a,_0x208e3e,_0x5f5d6c],'on':{'mouseenter':_0x78695c['to'](()=>{const _0x458837=_0x10822e;this[_0x458837(0xe0)]()||_0x2873b1[_0x458837(0xb1)]();}),'click':_0x78695c['to'](()=>{const _0x198d4a=_0x10822e;_0x2873b1[_0x198d4a(0x109)](_0x198d4a(0xf7));})}}),_0x2873b1['on'](_0x10822e(0xf7),()=>{const _0x227c16=_0x10822e;_0x209538[_0x227c16(0x128)][_0x227c16(0xdc)][_0x227c16(0xb1)](),_0x209538[_0x227c16(0x10c)][_0x227c16(0xf7)](_0x227c16(0xf2),_0x10467a);}),_0x1d096c[_0x10822e(0xfc)][_0x10822e(0xb9)](_0x2873b1),{'listItem':_0x1d096c,'highlightViews':[_0x2155bb,_0x208e3e]};}{const _0x5f5065=new _0x13f353(),_0x383e2d=new _0x31eac1(this[_0x10822e(0xe4)],_0x5f5065),_0x2f7cde=_0x383e2d[_0x10822e(0xec)],_0x166c78=_0x10467a[_0x10822e(0xf5)]??_0x10467a[_0x10822e(0x126)]?.[_0x10822e(0xf5)],_0x1c22c5=void 0x0!==_0x10467a[_0x10822e(0xf5)];return _0x383e2d[_0x10822e(0xb3)]({'label':_0x10467a[_0x10822e(0x119)],'withText':!0x0,'role':_0x10822e(0x108),'icon':_0x1c22c5?_0x166c78??_0x429a7c:void 0x0,'tooltip':!0x1,'class':_0x10822e(0x104)}),_0x383e2d[_0x10822e(0x115)]({'on':{'mouseenter':_0x2f7cde['to'](()=>{const _0x2b9657=_0x10822e;this[_0x2b9657(0xe0)]()||_0x383e2d[_0x2b9657(0xb1)]();})}}),_0x383e2d['on'](_0x10822e(0xf7),()=>{const _0x246f4a=_0x10822e;_0x209538[_0x246f4a(0x128)][_0x246f4a(0xdc)][_0x246f4a(0xb1)](),_0x209538[_0x246f4a(0x10c)][_0x246f4a(0xf7)](_0x246f4a(0xf2),_0x10467a);}),_0x1d096c[_0x10822e(0xfc)][_0x10822e(0xb9)](_0x383e2d),{'listItem':_0x1d096c,'highlightViews':[_0x5f5065]};}}[_0x6c500c(0x118)](_0x5bbf7e,_0xaf7596,_0x232c5a,_0x1124be){const _0x428494=_0x6c500c;return _0x232c5a&&_0x1124be?this[_0x428494(0x110)](_0x5bbf7e,_0xaf7596,_0x232c5a,_0x1124be):this[_0x428494(0x12b)](_0x5bbf7e,_0xaf7596);}[_0x6c500c(0x110)](_0x12853d,_0x2f8b98,_0x1da43a,_0x11857a){const _0x2d9fc5=_0x6c500c,_0xf3e99c=new _0x380b6b(this[_0x2d9fc5(0xe4)]),_0x5c4356=new _0x31eac1(this[_0x2d9fc5(0xe4)]),_0x103435=_0x5c4356[_0x2d9fc5(0xec)],{view:_0xba8d32,highlightView:_0x535daf}=this[_0x2d9fc5(0x10e)](_0x1da43a,_0x11857a),{view:_0xebf695,highlightView:_0x594b5f}=this[_0x2d9fc5(0xdd)](_0x2f8b98[_0x2d9fc5(0x119)]),_0x22d943=this[_0x2d9fc5(0xd6)](_0xba8d32,_0xebf695);return _0x5c4356[_0x2d9fc5(0xb3)]({'label':_0x2f8b98[_0x2d9fc5(0x119)],'withText':!0x0,'role':_0x2d9fc5(0x108),'class':_0x2d9fc5(0x102),'tooltip':!0x1}),_0x5c4356[_0x2d9fc5(0xed)]({'tag':_0x2d9fc5(0xda),'attributes':{'class':['ck',_0x2d9fc5(0xd2),_0x2d9fc5(0xbb),_0x2d9fc5(0x104),_0x2d9fc5(0xae),_0x2d9fc5(0xbf)],'type':_0x2d9fc5(0xda),'role':_0x2d9fc5(0x108),'tabindex':'-1'},'children':[_0x22d943],'on':{'mouseenter':_0x103435['to'](()=>{const _0x515718=_0x2d9fc5;this[_0x515718(0xe0)]()||_0x5c4356[_0x515718(0xb1)]();}),'click':_0x103435['to'](()=>{const _0x3533e4=_0x2d9fc5;this[_0x3533e4(0x11e)](_0x5c4356);})}}),this[_0x2d9fc5(0xdb)](_0x5c4356,_0x12853d,_0x2f8b98),_0xf3e99c[_0x2d9fc5(0xfc)][_0x2d9fc5(0xb9)](_0x5c4356),{'listItem':_0xf3e99c,'highlightViews':[_0x535daf,_0x594b5f]};}[_0x6c500c(0x12b)](_0xba8c3d,_0x3edff9){const _0x23fd31=_0x6c500c,_0x2b9847=new _0x380b6b(this[_0x23fd31(0xe4)]),_0x5d5837=new _0x13f353(),_0x4113f9=new _0x31eac1(this[_0x23fd31(0xe4)],_0x5d5837),_0x38f9be=_0x4113f9[_0x23fd31(0xec)];return _0x4113f9[_0x23fd31(0xb3)]({'label':_0x3edff9[_0x23fd31(0x119)],'withText':!0x0,'role':_0x23fd31(0x108),'icon':void 0x0,'tooltip':!0x1,'class':_0x23fd31(0xca)}),_0x4113f9[_0x23fd31(0x115)]({'on':{'mouseenter':_0x38f9be['to'](()=>{const _0x541333=_0x23fd31;this[_0x541333(0xe0)]()||_0x4113f9[_0x541333(0xb1)]();})}}),this[_0x23fd31(0xdb)](_0x4113f9,_0xba8c3d,_0x3edff9),_0x2b9847[_0x23fd31(0xfc)][_0x23fd31(0xb9)](_0x4113f9),{'listItem':_0x2b9847,'highlightViews':[_0x5d5837]};}[_0x6c500c(0x10e)](_0x2b2ed0,_0xb2cc3a){const _0xd0cc6a=_0x6c500c,_0x33b53c=new _0x447a2e(this[_0xd0cc6a(0xe4)]),_0x1b1f54=new _0x5ecb93();_0x1b1f54[_0xd0cc6a(0xd9)]=_0xb2cc3a,_0x1b1f54[_0xd0cc6a(0x115)]({'attributes':{'class':_0xd0cc6a(0xc0)}});const _0x1f9066=new _0x1072ac();return _0x1f9066[_0xd0cc6a(0x12c)]=_0x2b2ed0,_0x33b53c[_0xd0cc6a(0xed)]({'tag':_0xd0cc6a(0xe7),'attributes':{'class':_0xd0cc6a(0x100)},'children':[_0x1b1f54,_0x1f9066]}),{'view':_0x33b53c,'highlightView':_0x1f9066};}[_0x6c500c(0xdd)](_0x52efd2){const _0x134758=_0x6c500c,_0x35d27d=new _0x447a2e(this[_0x134758(0xe4)]),_0x44f6ae=new _0x1072ac();return _0x44f6ae[_0x134758(0x12c)]=_0x52efd2,_0x35d27d[_0x134758(0xed)]({'tag':_0x134758(0xe7),'attributes':{'class':_0x134758(0xce)},'children':[_0x44f6ae]}),{'view':_0x35d27d,'highlightView':_0x44f6ae};}[_0x6c500c(0xd6)](_0x4e33f5,_0x86273b){const _0x269cb4=_0x6c500c,_0x25b569=new _0x447a2e(this[_0x269cb4(0xe4)]);return _0x25b569[_0x269cb4(0xed)]({'tag':_0x269cb4(0xe7),'attributes':{'class':_0x269cb4(0xb6)},'children':[_0x4e33f5,_0x86273b]}),_0x25b569;}[_0x6c500c(0xdb)](_0x4ed0b0,_0xe2c53f,_0x3eda49){const _0x5cf7e8=_0x6c500c;_0x4ed0b0['on'](_0x5cf7e8(0xf7),()=>{const _0x557d15=_0x5cf7e8;_0xe2c53f[_0x557d15(0x128)][_0x557d15(0xdc)][_0x557d15(0xb1)](),_0xe2c53f[_0x557d15(0x10c)][_0x557d15(0xf7)](_0x557d15(0xf2),_0x3eda49);});}[_0x6c500c(0xb0)](_0x579b46,_0x567ac4,_0x466c8b){const _0x2513a0=_0x6c500c,_0x15d0ae=new _0x380b6b(this[_0x2513a0(0xe4)]),_0x3aa020=new _0x13f353(),_0x4344c6=new _0x1e10ca(this[_0x2513a0(0xe4)],_0x3aa020),_0x24e923=_0x4344c6[_0x2513a0(0xec)],_0x3982bc=this[_0x2513a0(0x12a)](_0x466c8b),_0x4ab5ae=this[_0x2513a0(0x130)](_0x579b46,_0x567ac4[_0x2513a0(0xf6)],_0x466c8b);_0x4344c6[_0x2513a0(0xb3)]({'label':_0x567ac4[_0x2513a0(0xc5)],'withText':!0x0,'role':Rs,'icon':_0x567ac4[_0x2513a0(0xf5)]??_0x429a7c,'isEnabled':_0x567ac4[_0x2513a0(0xf6)][_0x2513a0(0x117)](_0x489398=>_0x489398[_0x2513a0(0xea)])}),_0x4344c6[_0x2513a0(0x115)]({'on':{'mouseenter':_0x24e923['to'](()=>{const _0x521bdb=_0x2513a0;this[_0x521bdb(0xe0)]()||_0x4344c6[_0x521bdb(0xb1)]();})}});const _0x59767d=new _0x4ed007(this[_0x2513a0(0xe4)]);return _0x59767d[_0x2513a0(0x115)]({'attributes':{'class':['ck',_0x2513a0(0xd8),_0x2513a0(0xcc),_0x2513a0(0x124)]},'on':{'keydown':_0x24e923['to'](_0x24ce41=>{const _0x276e0b=_0x2513a0;this[_0x276e0b(0x116)](_0x24ce41,_0x3982bc,_0x4344c6,_0x59767d);})}}),_0x4344c6[_0x2513a0(0xf0)](_0x2513a0(0xc3))['to'](_0x59767d,_0x2513a0(0xc1)),this[_0x2513a0(0xf1)][_0x2513a0(0xb9)](_0x59767d),_0x59767d[_0x2513a0(0xd9)][_0x2513a0(0xb9)](_0x4ab5ae),this[_0x2513a0(0xac)](_0x4344c6,_0x59767d),_0x15d0ae[_0x2513a0(0xfc)][_0x2513a0(0xb9)](_0x4344c6),{'listItem':_0x15d0ae,'highlightView':_0x3aa020};}[_0x6c500c(0x130)](_0x1649c6,_0x5a5a01,_0x5d0428){const _0x7ff040=_0x6c500c,_0x5c9c54=new _0x3feba1(this[_0x7ff040(0xe4)]);return _0x5c9c54[_0x7ff040(0x115)]({'attributes':{'class':['ck',_0x7ff040(0xd8),_0x7ff040(0x11f),_0x7ff040(0xb4)]}}),_0x5a5a01[_0x7ff040(0xe1)](_0x4cbdea=>{const _0x4c631e=_0x7ff040,_0x5dca55=new _0x380b6b(this[_0x4c631e(0xe4)]),_0x218c31=_0xbf5bf8({'editor':_0x1649c6,'action':_0x4cbdea,'withText':!0x0,'withIcon':!0x1,'isInDropdown':!0x0,'shouldPreventFocus':()=>this[_0x4c631e(0xe0)]()})();_0x5dca55[_0x4c631e(0xfc)][_0x4c631e(0xb9)](_0x218c31),_0x5d0428[_0x4c631e(0xbe)][_0x4c631e(0xb9)](_0x218c31),_0x5c9c54[_0x4c631e(0xc7)][_0x4c631e(0xb9)](_0x5dca55);}),_0x5c9c54;}[_0x6c500c(0xac)](_0x36d106,_0x4adb1a){const _0x4663e=_0x6c500c,_0x2e5757=_0x36d106[_0x4663e(0xec)],_0x4768ba=this[_0x4663e(0xe8)](_0x36d106);_0x36d106[_0x4663e(0x115)]({'attributes':{'class':[_0x4663e(0x106)]},'on':{'mouseenter':_0x2e5757['to'](()=>{const _0x528478=_0x4663e;this[_0x528478(0x105)](_0x4adb1a,_0x36d106);}),'mouseleave':_0x2e5757['to'](_0x1c0676=>{const _0x2e5797=_0x4663e,_0x12fbec=_0x1c0676[_0x2e5797(0xad)];this[_0x2e5797(0x112)](_0x12fbec,_0x4adb1a)||this[_0x2e5797(0xe2)](_0x4adb1a);}),'keydown':_0x2e5757['to'](_0x2b71a1=>{const _0x24595b=_0x4663e;_0x2b71a1[_0x24595b(0xe9)]==_0x4768ba&&(this[_0x24595b(0x105)](_0x4adb1a,_0x36d106),_0x4adb1a[_0x24595b(0xd9)][_0x24595b(0x129)](0x0)[_0x24595b(0xb1)]());})}}),_0x4adb1a['on'](_0x4663e(0x103),()=>{const _0x10829e=_0x4663e;_0x4adb1a[_0x10829e(0x114)]?.[_0x10829e(0xab)](_0x10829e(0x11b),_0x45bcae=>{const _0xc8c5cd=_0x10829e,_0x316d46=_0x45bcae[_0xc8c5cd(0xad)];_0x36d106[_0xc8c5cd(0x114)]?.[_0xc8c5cd(0xe5)](_0x316d46)||this[_0xc8c5cd(0x112)](_0x316d46,_0x4adb1a)||this[_0xc8c5cd(0xe2)](_0x4adb1a);});});}[_0x6c500c(0x105)](_0x1d06ca,_0x17ab62){const _0x3f03ae=_0x6c500c;this[_0x3f03ae(0x12d)][_0x3f03ae(0xe1)](_0x1850b3=>{const _0x153b63=_0x3f03ae;_0x1850b3!==_0x1d06ca&&_0x1850b3[_0x153b63(0xc1)]&&_0x1850b3[_0x153b63(0xc9)]();}),_0x1d06ca[_0x3f03ae(0xf4)](),_0x1d06ca[_0x3f03ae(0xfe)]({'positions':[_0x2df1a9[_0x3f03ae(0xb5)]],'target':_0x17ab62[_0x3f03ae(0x114)],'fitInViewport':!0x0}),this[_0x3f03ae(0x12d)][_0x3f03ae(0xb9)](_0x1d06ca);}[_0x6c500c(0xe2)](_0x5f5296){const _0x285703=_0x6c500c;_0x5f5296[_0x285703(0xc9)](),this[_0x285703(0x12d)][_0x285703(0xb2)](_0x5f5296);}[_0x6c500c(0xe3)](){const _0x1091c5=_0x6c500c;this[_0x1091c5(0x12d)][_0x1091c5(0xe1)](_0x418d40=>_0x418d40[_0x1091c5(0xc9)]()),this[_0x1091c5(0x12d)][_0x1091c5(0xef)]();}[_0x6c500c(0x112)](_0x574fa9,_0x5b7298){const _0x1bb4cc=_0x6c500c;if(!_0x574fa9)return!0x1;if(_0x5b7298[_0x1bb4cc(0x114)]?.[_0x1bb4cc(0xe5)](_0x574fa9))return!0x0;const _0x133289=_0x574fa9;return _0x133289[_0x1bb4cc(0xa9)]&&(null!==_0x133289[_0x1bb4cc(0xa9)](_0x1bb4cc(0xfd))||null!==_0x133289[_0x1bb4cc(0xa9)](_0x1bb4cc(0xf8))||null!==_0x133289[_0x1bb4cc(0xa9)](_0x1bb4cc(0xba)));}[_0x6c500c(0xd4)](){const _0x43b77e=_0x6c500c;this[_0x43b77e(0x125)]&&this[_0x43b77e(0x125)][_0x43b77e(0xaf)]();}[_0x6c500c(0x127)](){const _0x1c3b07=_0x6c500c;this[_0x1c3b07(0xe3)](),this[_0x1c3b07(0xf1)][_0x1c3b07(0x123)](),super[_0x1c3b07(0x127)]();}[_0x6c500c(0xb1)](){const _0x4d9be0=_0x6c500c;this[_0x4d9be0(0x125)]?this[_0x4d9be0(0x125)][_0x4d9be0(0xb1)]():this[_0x4d9be0(0x121)][_0x4d9be0(0xb1)]();}[_0x6c500c(0x12a)](_0x2bfcef){const _0x4c56df=_0x6c500c;return _0x4c56df(0x10a)===_0x2bfcef[_0x4c56df(0xe4)][_0x4c56df(0xdf)]?_0x4c56df(0xa8):_0x4c56df(0x10b);}[_0x6c500c(0xe8)](_0x217957){const _0x251401=_0x6c500c;return _0x251401(0x10a)===_0x217957[_0x251401(0xe4)][_0x251401(0xdf)]?_0x251401(0x10b):_0x251401(0xa8);}[_0x6c500c(0x116)](_0x25c460,_0x192799,_0x3c5d3b,_0x273e61){const _0x593dda=_0x6c500c;_0x25c460[_0x593dda(0xe9)]==_0x192799&&(_0x3c5d3b[_0x593dda(0xb1)](),this[_0x593dda(0xe2)](_0x273e61));}[_0x6c500c(0x11e)](_0x34de86){const _0x4ee09e=_0x6c500c;_0x34de86[_0x4ee09e(0x109)](_0x4ee09e(0xf7));}}
|
|
23
|
+
const _0x5157c1=_0x1e18;(function(_0x30913d,_0x23619a){const _0x3002b9=_0x1e18,_0xa2c8b9=_0x30913d();while(!![]){try{const _0x345c94=parseInt(_0x3002b9(0x1a3))/0x1*(parseInt(_0x3002b9(0x1d2))/0x2)+parseInt(_0x3002b9(0x1f0))/0x3+parseInt(_0x3002b9(0x1f5))/0x4*(parseInt(_0x3002b9(0x1ff))/0x5)+-parseInt(_0x3002b9(0x1f4))/0x6*(-parseInt(_0x3002b9(0x1da))/0x7)+-parseInt(_0x3002b9(0x18e))/0x8*(-parseInt(_0x3002b9(0x1b4))/0x9)+-parseInt(_0x3002b9(0x205))/0xa+-parseInt(_0x3002b9(0x1e0))/0xb;if(_0x345c94===_0x23619a)break;else _0xa2c8b9['push'](_0xa2c8b9['shift']());}catch(_0x6e67c1){_0xa2c8b9['push'](_0xa2c8b9['shift']());}}}(_0x2818,0xd0fea));import{View as _0x27ef48,ListItemView as _0x409cc1,ListView as _0x5d023a,BalloonPanelView as _0x8c826c,DropdownMenuPanelPositioningFunctions as _0x3ff9c0,ViewCollection as _0x623257,FocusCycler as _0x7078de,ButtonView as _0x955150,IconView as _0xb8b5c9,HighlightedTextView as _0xcaccef,ButtonLabelWithHighlightView as _0x2002e6,SearchTextView as _0x3202f8}from'ckeditor5/src/ui.js';function _0x1e18(_0x5b3b10,_0x15def6){const _0x281857=_0x2818();return _0x1e18=function(_0x1e18d7,_0x19db33){_0x1e18d7=_0x1e18d7-0x181;let _0x396380=_0x281857[_0x1e18d7];return _0x396380;},_0x1e18(_0x5b3b10,_0x15def6);}import{IconAIQuickActions as _0x47060a}from'@ckeditor/ckeditor5-icons';import{FocusTracker as _0x30040f,KeystrokeHandler as _0x40ead1}from'ckeditor5/src/utils.js';import{aiQuickActionsButtonCreator as _0x588179}from'./aiquickactionsbuttoncreator.js';import{DropdownMenuButtonWithHighlightView as _0x360ac4}from'./dropdownmenubuttonwithhighlightview.js';import{getTranslation as _0x14c797}from'../../aicore/utils/common-translations.js';import{AIQuickActionsFilteredListView as _0x1b37c3}from'./aiquickactionsfilteredlistview.js';function _0x2818(){const _0x5a9fec=['ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button','_getButtonKeystroke','ck-button_with-text','bind','_createSearchResultActionButton','ck-ai-quick-actions-group-panel','first','_createGroupActionsList','_createActionButton','ck-rounded-corners','_setupActionButtonExecution','ArrowRight','focus','_createSearchResultGroupRow','ck-ai-quick-actions-group-list','some','719272BqxtmR','span','_hideNestedPanel','resetSearch','ck-ai-quick-actions-search-result-button','destroy','ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button\x20ck-ai-quick-actions-search-result-button_with-group','button','relatedTarget','ck-ai-quick-actions-search','queryView','_createActionGroupButton','ck-ai-quick-actions-button__group-icon','_createSearchResultContentView','_createSearchResultActionRow','activeElement','ck-ai-quick-actions-button_with-group','clear','ck-ai-quick-actions-button\x20ck-ai-quick-actions-button_with-group','view','show','351797zEUYDf','_openNestedPanels','ck-ai-quick-actions','push','delete','closest','chain','editing','set','ck-ai-quick-actions-search-result__group-row','actions','_allSearchableItems','ck-ai-quick-actions-search-result__action-row','_handlePanelKeydown','_setupGroupMenuBehavior','_createSearchResultGroupedActionButton','ck-ai-quick-actions-search-result-button_with-group','9zrmzel','ck-ai-quick-actions-group-button','ck-ai-quick-actions-search-result__content','addMany','_createSearchResultIndividualActionButton','content','ck-dropdown-menu__nested-menu__panel','_searchTextView','rtl','isVisible','eastSouth','_getPanelKeystroke','_createListItems','parent','mouseleave','_bodyCollection','_isSearchFocused','AI_QUICK_ACTIONS_SEARCH_NOT_FOUND','_focusables','fieldView','ck-ai-quick-actions-button_with-group__open-paren','uiLanguageDirection','ck-ai-quick-actions-button','render','reset','ArrowLeft','menuitem','aiQuickAction','.ck-ai-quick-actions-group-list','children','4AiuFCt','isEnabled','contains','_hasSearch','ck-ai-quick-actions-button_with-group__close-paren','displayedPrompt','text','menu','14eIhFpt','.ck-ai-quick-actions-group-panel','AI_QUICK_ACTIONS_SEARCH','items','ck-button','element','22383570UCGAdW','addEventListener','div','label','hide','ck-dropdown-menu-list','add','isOn','forEach','_hideAllNestedPanels','fire','commands','optionsListView','_createSearchTextView','execute','icon','4474206jfHuDX','ownerDocument','extendTemplate','_showNestedPanel','942246EPyDSX','13316SiVmWi','locale','ck-reset_all','bindTemplate','role','key','_handleSearchResultButtonClick','keystrokes','.ck-ai-quick-actions-group-button','_isMovingToNestedMenu','2550HwCIQd','focusTracker','setTemplate','focusCycler','detachFromDom','get','14058650eZuyDA','pin'];_0x2818=function(){return _0x5a9fec;};return _0x2818();}const Ts=_0x5157c1(0x1d9),Rs=_0x5157c1(0x1ce);export class AIQuickActionsDropdownContentView extends _0x27ef48{[_0x5157c1(0x1c3)];[_0x5157c1(0x1ec)];[_0x5157c1(0x1bb)]=null;[_0x5157c1(0x1ae)]=[];[_0x5157c1(0x1d1)];[_0x5157c1(0x200)];[_0x5157c1(0x1fc)];[_0x5157c1(0x1c6)];[_0x5157c1(0x202)];[_0x5157c1(0x1a4)]=new Set();[_0x5157c1(0x1d5)];constructor(_0x96cba0,_0x626ecd,_0x443fcb,_0x202302,_0x3025e8=!0x1){const _0x5ae024=_0x5157c1,_0x590de3=_0x96cba0[_0x5ae024(0x1f6)];super(_0x590de3),this[_0x5ae024(0x1c3)]=_0x202302,this[_0x5ae024(0x1d5)]=_0x3025e8;const _0x2436d9=this[_0x5ae024(0x1c0)](_0x96cba0,_0x626ecd,_0x443fcb);this[_0x5ae024(0x1ec)]=new _0x1b37c3(_0x590de3,_0x2436d9,this[_0x5ae024(0x1ae)]),this[_0x5ae024(0x1ec)][_0x5ae024(0x1f9)]=Ts,this[_0x5ae024(0x1ec)][_0x5ae024(0x1dd)][_0x5ae024(0x1b7)](_0x2436d9),this[_0x5ae024(0x200)]=new _0x30040f(),this[_0x5ae024(0x1fc)]=new _0x40ead1(),_0x3025e8&&(this[_0x5ae024(0x1bb)]=this[_0x5ae024(0x1ed)]()),this[_0x5ae024(0x1c6)]=_0x2436d9,this[_0x5ae024(0x202)]=new _0x7078de({'focusables':this[_0x5ae024(0x1c6)],'focusTracker':this[_0x5ae024(0x200)],'keystrokeHandler':this[_0x5ae024(0x1fc)]}),_0x3025e8&&this[_0x5ae024(0x1bb)]&&this[_0x5ae024(0x202)][_0x5ae024(0x1a9)](this[_0x5ae024(0x1bb)][_0x5ae024(0x202)]);const _0x2edead=_0x3025e8&&this[_0x5ae024(0x1bb)]?[this[_0x5ae024(0x1bb)]]:[this[_0x5ae024(0x1ec)]];this[_0x5ae024(0x1d1)]=new _0x623257(_0x2edead),this[_0x5ae024(0x201)]({'tag':_0x5ae024(0x1e2),'attributes':{'class':['ck',_0x5ae024(0x1f7),_0x5ae024(0x1a5),_0x5ae024(0x187)],'dir':_0x590de3[_0x5ae024(0x1c9)]},'children':this[_0x5ae024(0x1d1)]});}[_0x5157c1(0x1ed)](){const _0x318330=_0x5157c1;return new _0x3202f8(this[_0x318330(0x1f6)],{'filteredView':this[_0x318330(0x1ec)],'queryView':{'label':_0x14c797(this[_0x318330(0x1f6)],_0x318330(0x1dc))},'class':_0x318330(0x197),'infoView':{'text':{'notFound':{'primary':_0x14c797(this[_0x318330(0x1f6)],_0x318330(0x1c5))}}}});}[_0x5157c1(0x1c4)](){const _0x2af420=_0x5157c1;if(!this[_0x2af420(0x1d5)]||!this[_0x2af420(0x1bb)]||!this[_0x2af420(0x1bb)][_0x2af420(0x198)][_0x2af420(0x1c7)][_0x2af420(0x1df)])return!0x1;const _0x404d39=this[_0x2af420(0x1bb)][_0x2af420(0x198)][_0x2af420(0x1c7)][_0x2af420(0x1df)][_0x2af420(0x1f1)]?.[_0x2af420(0x19d)];return this[_0x2af420(0x1bb)][_0x2af420(0x198)][_0x2af420(0x1c7)][_0x2af420(0x1df)][_0x2af420(0x1d4)](_0x404d39);}[_0x5157c1(0x1c0)](_0x1c9888,_0x244ce9,_0x63f04){const _0x502492=_0x5157c1,_0x202439=new _0x623257();return _0x244ce9[_0x502492(0x1e8)](_0x5173af=>{const _0x5c1a45=_0x502492;if(_0x5c1a45(0x1ad)in _0x5173af){const {listItem:_0x3fceed}=this[_0x5c1a45(0x199)](_0x1c9888,_0x5173af,_0x63f04);_0x202439[_0x5c1a45(0x1e6)](_0x3fceed),_0x5173af[_0x5c1a45(0x1ad)][_0x5c1a45(0x1e8)](_0x5e9884=>{const _0x217218=_0x5c1a45;this[_0x217218(0x186)](_0x1c9888,_0x5e9884,_0x5173af[_0x217218(0x1e3)],_0x5173af[_0x217218(0x1ef)]);const {listItem:_0x298656,highlightViews:_0x5ada42}=this[_0x217218(0x182)](_0x1c9888,_0x5e9884,_0x5173af[_0x217218(0x1e3)],_0x5173af[_0x217218(0x1ef)]);this[_0x217218(0x1ae)][_0x217218(0x1a6)]({'item':_0x298656,'label':_0x5e9884[_0x217218(0x1d7)],'groupLabel':_0x5173af[_0x217218(0x1e3)],'highlightViews':_0x5ada42});});}else{const {listItem:_0x5e1797}=this[_0x5c1a45(0x186)](_0x1c9888,_0x5173af);_0x202439[_0x5c1a45(0x1e6)](_0x5e1797);const _0x423117=_0x5e1797[_0x5c1a45(0x1d1)][_0x5c1a45(0x184)];if(_0x423117){const {listItem:_0x18479e,highlightViews:_0x305fc5}=this[_0x5c1a45(0x182)](_0x1c9888,_0x5173af);this[_0x5c1a45(0x1ae)][_0x5c1a45(0x1a6)]({'item':_0x18479e,'label':_0x423117[_0x5c1a45(0x1e3)]||'','highlightViews':_0x305fc5});}}}),_0x202439;}[_0x5157c1(0x186)](_0x29248a,_0x2b7287,_0x42f6e1,_0x3d398f){const _0x2acb0b=_0x5157c1,_0x543898=new _0x409cc1(this[_0x2acb0b(0x1f6)]);if(_0x42f6e1&&_0x3d398f){const _0x5b03f3=new _0x955150(this[_0x2acb0b(0x1f6)]),_0x22c479=_0x5b03f3[_0x2acb0b(0x1f8)],_0x3e45ec=new _0xcaccef();_0x3e45ec[_0x2acb0b(0x1d8)]=_0x2b7287[_0x2acb0b(0x1d7)];const _0x2263af=new _0xcaccef();_0x2263af[_0x2acb0b(0x1d8)]=_0x42f6e1;const _0x541052=new _0xb8b5c9();_0x541052[_0x2acb0b(0x1b9)]=_0x3d398f,_0x541052[_0x2acb0b(0x1f2)]({'attributes':{'class':_0x2acb0b(0x19a)}});const _0x31f4f5=new _0x27ef48(this[_0x2acb0b(0x1f6)]);_0x31f4f5[_0x2acb0b(0x201)]({'tag':_0x2acb0b(0x18f),'attributes':{'class':_0x2acb0b(0x1c8)},'children':[{'text':'\x20('}]});const _0x19740b=new _0x27ef48(this[_0x2acb0b(0x1f6)]);return _0x19740b[_0x2acb0b(0x201)]({'tag':_0x2acb0b(0x18f),'attributes':{'class':_0x2acb0b(0x1d6)},'children':[{'text':')'}]}),_0x5b03f3[_0x2acb0b(0x1ab)]({'label':_0x2b7287[_0x2acb0b(0x1d7)]+'\x20('+_0x42f6e1+')','withText':!0x0,'role':_0x2acb0b(0x1ce),'class':_0x2acb0b(0x1a0),'tooltip':!0x1}),_0x5b03f3[_0x2acb0b(0x201)]({'tag':_0x2acb0b(0x195),'attributes':{'class':['ck',_0x2acb0b(0x1de),_0x2acb0b(0x209),_0x2acb0b(0x1ca),_0x2acb0b(0x19e)],'type':_0x2acb0b(0x195),'role':_0x2acb0b(0x1ce),'tabindex':'-1'},'children':[_0x3e45ec,_0x31f4f5,_0x541052,_0x2263af,_0x19740b],'on':{'mouseenter':_0x22c479['to'](()=>{const _0x16454d=_0x2acb0b;this[_0x16454d(0x1c4)]()||_0x5b03f3[_0x16454d(0x18a)]();}),'click':_0x22c479['to'](()=>{const _0x34cc57=_0x2acb0b;_0x5b03f3[_0x34cc57(0x1ea)](_0x34cc57(0x1ee));})}}),_0x5b03f3['on'](_0x2acb0b(0x1ee),()=>{const _0x243fdb=_0x2acb0b;_0x29248a[_0x243fdb(0x1aa)][_0x243fdb(0x1a1)][_0x243fdb(0x18a)](),_0x29248a[_0x243fdb(0x1eb)][_0x243fdb(0x1ee)](_0x243fdb(0x1cf),_0x2b7287);}),_0x543898[_0x2acb0b(0x1d1)][_0x2acb0b(0x1e6)](_0x5b03f3),{'listItem':_0x543898,'highlightViews':[_0x3e45ec,_0x2263af]};}{const _0x1941e7=new _0x2002e6(),_0x146c14=new _0x955150(this[_0x2acb0b(0x1f6)],_0x1941e7),_0x1adddc=_0x146c14[_0x2acb0b(0x1f8)],_0x10f38e=_0x2b7287[_0x2acb0b(0x1ef)]??_0x2b7287[_0x2acb0b(0x1c1)]?.[_0x2acb0b(0x1ef)],_0x57c06d=void 0x0!==_0x2b7287[_0x2acb0b(0x1ef)];return _0x146c14[_0x2acb0b(0x1ab)]({'label':_0x2b7287[_0x2acb0b(0x1d7)],'withText':!0x0,'role':_0x2acb0b(0x1ce),'icon':_0x57c06d?_0x10f38e??_0x47060a:void 0x0,'tooltip':!0x1,'class':_0x2acb0b(0x1ca)}),_0x146c14[_0x2acb0b(0x1f2)]({'on':{'mouseenter':_0x1adddc['to'](()=>{const _0x403d88=_0x2acb0b;this[_0x403d88(0x1c4)]()||_0x146c14[_0x403d88(0x18a)]();})}}),_0x146c14['on'](_0x2acb0b(0x1ee),()=>{const _0x39a4c5=_0x2acb0b;_0x29248a[_0x39a4c5(0x1aa)][_0x39a4c5(0x1a1)][_0x39a4c5(0x18a)](),_0x29248a[_0x39a4c5(0x1eb)][_0x39a4c5(0x1ee)](_0x39a4c5(0x1cf),_0x2b7287);}),_0x543898[_0x2acb0b(0x1d1)][_0x2acb0b(0x1e6)](_0x146c14),{'listItem':_0x543898,'highlightViews':[_0x1941e7]};}}[_0x5157c1(0x182)](_0x2268c5,_0x55733b,_0x19b4f4,_0x2798c7){const _0x44f081=_0x5157c1;return _0x19b4f4&&_0x2798c7?this[_0x44f081(0x1b2)](_0x2268c5,_0x55733b,_0x19b4f4,_0x2798c7):this[_0x44f081(0x1b8)](_0x2268c5,_0x55733b);}[_0x5157c1(0x1b2)](_0xea122f,_0x1fd41a,_0x57ef2b,_0x2f35f2){const _0x57a4fe=_0x5157c1,_0x37cd18=new _0x409cc1(this[_0x57a4fe(0x1f6)]),_0x59078e=new _0x955150(this[_0x57a4fe(0x1f6)]),_0x1af4af=_0x59078e[_0x57a4fe(0x1f8)],{view:_0xcfa7c5,highlightView:_0x3a9089}=this[_0x57a4fe(0x18b)](_0x57ef2b,_0x2f35f2),{view:_0x3ad63d,highlightView:_0x5ada09}=this[_0x57a4fe(0x19c)](_0x1fd41a[_0x57a4fe(0x1d7)]),_0x1925f2=this[_0x57a4fe(0x19b)](_0xcfa7c5,_0x3ad63d);return _0x59078e[_0x57a4fe(0x1ab)]({'label':_0x1fd41a[_0x57a4fe(0x1d7)],'withText':!0x0,'role':_0x57a4fe(0x1ce),'class':_0x57a4fe(0x194),'tooltip':!0x1}),_0x59078e[_0x57a4fe(0x201)]({'tag':_0x57a4fe(0x195),'attributes':{'class':['ck',_0x57a4fe(0x1de),_0x57a4fe(0x209),_0x57a4fe(0x1ca),_0x57a4fe(0x192),_0x57a4fe(0x1b3)],'type':_0x57a4fe(0x195),'role':_0x57a4fe(0x1ce),'tabindex':'-1'},'children':[_0x1925f2],'on':{'mouseenter':_0x1af4af['to'](()=>{const _0x1cea39=_0x57a4fe;this[_0x1cea39(0x1c4)]()||_0x59078e[_0x1cea39(0x18a)]();}),'click':_0x1af4af['to'](()=>{const _0x694545=_0x57a4fe;this[_0x694545(0x1fb)](_0x59078e);})}}),this[_0x57a4fe(0x188)](_0x59078e,_0xea122f,_0x1fd41a),_0x37cd18[_0x57a4fe(0x1d1)][_0x57a4fe(0x1e6)](_0x59078e),{'listItem':_0x37cd18,'highlightViews':[_0x3a9089,_0x5ada09]};}[_0x5157c1(0x1b8)](_0x47fd2b,_0x277776){const _0x3771c7=_0x5157c1,_0x29c0c5=new _0x409cc1(this[_0x3771c7(0x1f6)]),_0x519d76=new _0x2002e6(),_0xf00877=new _0x955150(this[_0x3771c7(0x1f6)],_0x519d76),_0x46de8a=_0xf00877[_0x3771c7(0x1f8)];return _0xf00877[_0x3771c7(0x1ab)]({'label':_0x277776[_0x3771c7(0x1d7)],'withText':!0x0,'role':_0x3771c7(0x1ce),'icon':void 0x0,'tooltip':!0x1,'class':_0x3771c7(0x207)}),_0xf00877[_0x3771c7(0x1f2)]({'on':{'mouseenter':_0x46de8a['to'](()=>{const _0x5a1975=_0x3771c7;this[_0x5a1975(0x1c4)]()||_0xf00877[_0x5a1975(0x18a)]();})}}),this[_0x3771c7(0x188)](_0xf00877,_0x47fd2b,_0x277776),_0x29c0c5[_0x3771c7(0x1d1)][_0x3771c7(0x1e6)](_0xf00877),{'listItem':_0x29c0c5,'highlightViews':[_0x519d76]};}[_0x5157c1(0x18b)](_0x49a4a0,_0x4797a0){const _0x4e57e1=_0x5157c1,_0x4bd96b=new _0x27ef48(this[_0x4e57e1(0x1f6)]),_0x53cad1=new _0xb8b5c9();_0x53cad1[_0x4e57e1(0x1b9)]=_0x4797a0,_0x53cad1[_0x4e57e1(0x1f2)]({'attributes':{'class':_0x4e57e1(0x19a)}});const _0x2b5c61=new _0xcaccef();return _0x2b5c61[_0x4e57e1(0x1d8)]=_0x49a4a0,_0x4bd96b[_0x4e57e1(0x201)]({'tag':_0x4e57e1(0x1e2),'attributes':{'class':_0x4e57e1(0x1ac)},'children':[_0x53cad1,_0x2b5c61]}),{'view':_0x4bd96b,'highlightView':_0x2b5c61};}[_0x5157c1(0x19c)](_0x42507b){const _0x5e4fd1=_0x5157c1,_0x436540=new _0x27ef48(this[_0x5e4fd1(0x1f6)]),_0x34296a=new _0xcaccef();return _0x34296a[_0x5e4fd1(0x1d8)]=_0x42507b,_0x436540[_0x5e4fd1(0x201)]({'tag':_0x5e4fd1(0x1e2),'attributes':{'class':_0x5e4fd1(0x1af)},'children':[_0x34296a]}),{'view':_0x436540,'highlightView':_0x34296a};}[_0x5157c1(0x19b)](_0x1e204f,_0x384cfb){const _0x3e185a=_0x5157c1,_0x5b145c=new _0x27ef48(this[_0x3e185a(0x1f6)]);return _0x5b145c[_0x3e185a(0x201)]({'tag':_0x3e185a(0x1e2),'attributes':{'class':_0x3e185a(0x1b6)},'children':[_0x1e204f,_0x384cfb]}),_0x5b145c;}[_0x5157c1(0x188)](_0x30bd0a,_0x4d38cc,_0xc69b6b){const _0x4660e3=_0x5157c1;_0x30bd0a['on'](_0x4660e3(0x1ee),()=>{const _0x30b35d=_0x4660e3;_0x4d38cc[_0x30b35d(0x1aa)][_0x30b35d(0x1a1)][_0x30b35d(0x18a)](),_0x4d38cc[_0x30b35d(0x1eb)][_0x30b35d(0x1ee)](_0x30b35d(0x1cf),_0xc69b6b);});}[_0x5157c1(0x199)](_0x5c537b,_0x4dde78,_0x5b294b){const _0x47024e=_0x5157c1,_0x5cbd90=new _0x409cc1(this[_0x47024e(0x1f6)]),_0x2a807d=new _0x2002e6(),_0x26d848=new _0x360ac4(this[_0x47024e(0x1f6)],_0x2a807d),_0x4cbd89=_0x26d848[_0x47024e(0x1f8)],_0x430f0d=this[_0x47024e(0x1bf)](_0x5b294b),_0x23ab25=this[_0x47024e(0x185)](_0x5c537b,_0x4dde78[_0x47024e(0x1ad)],_0x5b294b);_0x26d848[_0x47024e(0x1ab)]({'label':_0x4dde78[_0x47024e(0x1e3)],'withText':!0x0,'role':Rs,'icon':_0x4dde78[_0x47024e(0x1ef)]??_0x47060a,'isEnabled':_0x4dde78[_0x47024e(0x1ad)][_0x47024e(0x18d)](_0x3cac2b=>_0x3cac2b[_0x47024e(0x1d3)])}),_0x26d848[_0x47024e(0x1f2)]({'on':{'mouseenter':_0x4cbd89['to'](()=>{const _0x3052dc=_0x47024e;this[_0x3052dc(0x1c4)]()||_0x26d848[_0x3052dc(0x18a)]();})}});const _0x4a5305=new _0x8c826c(this[_0x47024e(0x1f6)]);return _0x4a5305[_0x47024e(0x1f2)]({'attributes':{'class':['ck',_0x47024e(0x1f7),_0x47024e(0x183),_0x47024e(0x1ba)]},'on':{'keydown':_0x4cbd89['to'](_0x325b54=>{const _0x180692=_0x47024e;this[_0x180692(0x1b0)](_0x325b54,_0x430f0d,_0x26d848,_0x4a5305);})}}),_0x26d848[_0x47024e(0x181)](_0x47024e(0x1e7))['to'](_0x4a5305,_0x47024e(0x1bd)),this[_0x47024e(0x1c3)][_0x47024e(0x1e6)](_0x4a5305),_0x4a5305[_0x47024e(0x1b9)][_0x47024e(0x1e6)](_0x23ab25),this[_0x47024e(0x1b1)](_0x26d848,_0x4a5305),_0x5cbd90[_0x47024e(0x1d1)][_0x47024e(0x1e6)](_0x26d848),{'listItem':_0x5cbd90,'highlightView':_0x2a807d};}[_0x5157c1(0x185)](_0x651f99,_0x1e9b84,_0x36fd31){const _0x5cbdaf=_0x5157c1,_0x5de83b=new _0x5d023a(this[_0x5cbdaf(0x1f6)]);return _0x5de83b[_0x5cbdaf(0x1f2)]({'attributes':{'class':['ck',_0x5cbdaf(0x1f7),_0x5cbdaf(0x18c),_0x5cbdaf(0x1e5)]}}),_0x1e9b84[_0x5cbdaf(0x1e8)](_0x2bf311=>{const _0x18d82b=_0x5cbdaf,_0x1afe51=new _0x409cc1(this[_0x18d82b(0x1f6)]),_0x256232=_0x588179({'editor':_0x651f99,'action':_0x2bf311,'withText':!0x0,'withIcon':!0x1,'isInDropdown':!0x0,'shouldPreventFocus':()=>this[_0x18d82b(0x1c4)]()})();_0x1afe51[_0x18d82b(0x1d1)][_0x18d82b(0x1e6)](_0x256232),_0x36fd31[_0x18d82b(0x200)][_0x18d82b(0x1e6)](_0x256232),_0x5de83b[_0x18d82b(0x1dd)][_0x18d82b(0x1e6)](_0x1afe51);}),_0x5de83b;}[_0x5157c1(0x1b1)](_0x20278c,_0x3f2076){const _0x485b82=_0x5157c1,_0x49ce5c=_0x20278c[_0x485b82(0x1f8)],_0x27dbd7=this[_0x485b82(0x208)](_0x20278c);_0x20278c[_0x485b82(0x1f2)]({'attributes':{'class':[_0x485b82(0x1b5)]},'on':{'mouseenter':_0x49ce5c['to'](()=>{const _0x1b62a3=_0x485b82;this[_0x1b62a3(0x1f3)](_0x3f2076,_0x20278c);}),'mouseleave':_0x49ce5c['to'](_0x54bab7=>{const _0x4cd5fa=_0x485b82,_0x5b4084=_0x54bab7[_0x4cd5fa(0x196)];this[_0x4cd5fa(0x1fe)](_0x5b4084,_0x3f2076)||this[_0x4cd5fa(0x190)](_0x3f2076);}),'keydown':_0x49ce5c['to'](_0x104bd0=>{const _0x123496=_0x485b82;_0x104bd0[_0x123496(0x1fa)]==_0x27dbd7&&(this[_0x123496(0x1f3)](_0x3f2076,_0x20278c),_0x3f2076[_0x123496(0x1b9)][_0x123496(0x204)](0x0)[_0x123496(0x18a)]());})}}),_0x3f2076['on'](_0x485b82(0x1cb),()=>{const _0x19055f=_0x485b82;_0x3f2076[_0x19055f(0x1df)]?.[_0x19055f(0x1e1)](_0x19055f(0x1c2),_0x183da1=>{const _0x4ebf2f=_0x19055f,_0x51b69f=_0x183da1[_0x4ebf2f(0x196)];_0x20278c[_0x4ebf2f(0x1df)]?.[_0x4ebf2f(0x1d4)](_0x51b69f)||this[_0x4ebf2f(0x1fe)](_0x51b69f,_0x3f2076)||this[_0x4ebf2f(0x190)](_0x3f2076);});});}[_0x5157c1(0x1f3)](_0x1928ed,_0x487759){const _0x4bad30=_0x5157c1;this[_0x4bad30(0x1a4)][_0x4bad30(0x1e8)](_0x47df9e=>{const _0x2c9be9=_0x4bad30;_0x47df9e!==_0x1928ed&&_0x47df9e[_0x2c9be9(0x1bd)]&&_0x47df9e[_0x2c9be9(0x1e4)]();}),_0x1928ed[_0x4bad30(0x1a2)](),_0x1928ed[_0x4bad30(0x206)]({'positions':[_0x3ff9c0[_0x4bad30(0x1be)]],'target':_0x487759[_0x4bad30(0x1df)],'fitInViewport':!0x0}),this[_0x4bad30(0x1a4)][_0x4bad30(0x1e6)](_0x1928ed);}[_0x5157c1(0x190)](_0x15fb18){const _0x5a6ae8=_0x5157c1;_0x15fb18[_0x5a6ae8(0x1e4)](),this[_0x5a6ae8(0x1a4)][_0x5a6ae8(0x1a7)](_0x15fb18);}[_0x5157c1(0x1e9)](){const _0x130e61=_0x5157c1;this[_0x130e61(0x1a4)][_0x130e61(0x1e8)](_0x33b7d3=>_0x33b7d3[_0x130e61(0x1e4)]()),this[_0x130e61(0x1a4)][_0x130e61(0x19f)]();}[_0x5157c1(0x1fe)](_0x150648,_0x239824){const _0x1fbac7=_0x5157c1;if(!_0x150648)return!0x1;if(_0x239824[_0x1fbac7(0x1df)]?.[_0x1fbac7(0x1d4)](_0x150648))return!0x0;const _0x491ec4=_0x150648;return _0x491ec4[_0x1fbac7(0x1a8)]&&(null!==_0x491ec4[_0x1fbac7(0x1a8)](_0x1fbac7(0x1db))||null!==_0x491ec4[_0x1fbac7(0x1a8)](_0x1fbac7(0x1d0))||null!==_0x491ec4[_0x1fbac7(0x1a8)](_0x1fbac7(0x1fd)));}[_0x5157c1(0x191)](){const _0x317194=_0x5157c1;this[_0x317194(0x1bb)]&&this[_0x317194(0x1bb)][_0x317194(0x1cc)]();}[_0x5157c1(0x193)](){const _0x5aa897=_0x5157c1;this[_0x5aa897(0x1e9)](),this[_0x5aa897(0x1c3)][_0x5aa897(0x203)](),super[_0x5aa897(0x193)]();}[_0x5157c1(0x18a)](){const _0x3b71d5=_0x5157c1;this[_0x3b71d5(0x1bb)]?this[_0x3b71d5(0x1bb)][_0x3b71d5(0x18a)]():this[_0x3b71d5(0x1ec)][_0x3b71d5(0x18a)]();}[_0x5157c1(0x1bf)](_0x4ca1a1){const _0x563b39=_0x5157c1;return _0x563b39(0x1bc)===_0x4ca1a1[_0x563b39(0x1f6)][_0x563b39(0x1c9)]?_0x563b39(0x189):_0x563b39(0x1cd);}[_0x5157c1(0x208)](_0x86185a){const _0x26b445=_0x5157c1;return _0x26b445(0x1bc)===_0x86185a[_0x26b445(0x1f6)][_0x26b445(0x1c9)]?_0x26b445(0x1cd):_0x26b445(0x189);}[_0x5157c1(0x1b0)](_0x42a552,_0x56824e,_0x3e1167,_0x40973f){const _0x59e104=_0x5157c1;_0x42a552[_0x59e104(0x1fa)]==_0x56824e&&(_0x3e1167[_0x59e104(0x18a)](),this[_0x59e104(0x190)](_0x40973f));}[_0x5157c1(0x1fb)](_0x38549d){const _0x55e23a=_0x5157c1;_0x38549d[_0x55e23a(0x1ea)](_0x55e23a(0x1ee));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2796(){const _0x5ae199=['62996lGYRCa','buttonView','AIEditing','207PZuQdI','document','model','showFakeVisualSelection','ck-ai-quick-actions-dropdown','locale','ai-quick-actions-dropdown-selection','selection','get','getRanges','2702100AHOqDw','length','11ZgIBBf','15574DYpmfz','children','change:isOpen','resetSearch','label','24KXvZMd','103624chhPzH','5ziAcYT','has','icon','from','panelView','24frbSys','819sAhtZr','hideFakeVisualSelection','plugins','set','7825494VbPklT','3660678QRGrwD','add','15209974HAXWpS'];_0x2796=function(){return _0x5ae199;};return _0x2796();}function _0x2335(_0x3262dc,_0x1a3efd){const _0x2796c6=_0x2796();return _0x2335=function(_0x233511,_0x39779){_0x233511=_0x233511-0x185;let _0x5af889=_0x2796c6[_0x233511];return _0x5af889;},_0x2335(_0x3262dc,_0x1a3efd);}(function(_0x3ed522,_0x34ddaf){const _0x59ad1e=_0x2335,_0x35048e=_0x3ed522();while(!![]){try{const _0x31306b=parseInt(_0x59ad1e(0x1a8))/0x1*(-parseInt(_0x59ad1e(0x18f))/0x2)+parseInt(_0x59ad1e(0x19b))/0x3*(parseInt(_0x59ad1e(0x198))/0x4)+parseInt(_0x59ad1e(0x18a))/0x5*(parseInt(_0x59ad1e(0x194))/0x6)+-parseInt(_0x59ad1e(0x195))/0x7+-parseInt(_0x59ad1e(0x189))/0x8*(-parseInt(_0x59ad1e(0x190))/0x9)+-parseInt(_0x59ad1e(0x1a5))/0xa*(-parseInt(_0x59ad1e(0x1a7))/0xb)+parseInt(_0x59ad1e(0x188))/0xc*(-parseInt(_0x59ad1e(0x197))/0xd);if(_0x31306b===_0x34ddaf)break;else _0x35048e['push'](_0x35048e['shift']());}catch(_0x3e6ef8){_0x35048e['push'](_0x35048e['shift']());}}}(_0x2796,0xc0e09));import{createDropdown as _0x5c36b0}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x1af779}from'@ckeditor/ckeditor5-icons';import{AIQuickActionsDropdownContentView as _0x220f19}from'./aiquickactionsdropdowncontentview.js';import{AIEditing as _0x1a0bd2}from'../../aicore/aiediting.js';export function aiQuickActionsDropdownCreator(_0x2e4d99){const {editor:_0x38d88f,content:_0x530aaa,buttonDefinition:_0xc43490,bodyCollection:_0x18e3ae,hasSearch:_0x364a47=!0x1}=_0x2e4d99;return()=>{const _0x4e63ce=_0x2335,_0x3ab768=_0x38d88f[_0x4e63ce(0x1a0)],_0x58c64a=_0x5c36b0(_0x3ab768);_0x58c64a[_0x4e63ce(0x199)][_0x4e63ce(0x193)]({'icon':_0xc43490[_0x4e63ce(0x18c)]??_0x1af779,'label':_0xc43490[_0x4e63ce(0x187)],'tooltip':!0x0}),_0x58c64a[_0x4e63ce(0x193)]({'class':_0x4e63ce(0x19f)});const _0x58a647=new _0x220f19(_0x38d88f,_0x530aaa,_0x58c64a,_0x18e3ae,_0x364a47);if(_0x58c64a[_0x4e63ce(0x18e)][_0x4e63ce(0x1a9)][_0x4e63ce(0x196)](_0x58a647),_0x364a47){const _0x141586=_0x4e63ce(0x1a1);_0x58c64a['on'](_0x4e63ce(0x185),(_0x4575a3,_0xec635a,_0x183ba0)=>{const _0x1af1e0=_0x4e63ce;if(_0x183ba0){if(_0x38d88f[_0x1af1e0(0x192)][_0x1af1e0(0x18b)](_0x1af1e0(0x19a))){const _0x32b9c7=_0x38d88f[_0x1af1e0(0x192)][_0x1af1e0(0x1a3)](_0x1a0bd2),_0x2ffcbf=_0x38d88f[_0x1af1e0(0x19d)][_0x1af1e0(0x19c)][_0x1af1e0(0x1a2)],_0xdc27db=Array[_0x1af1e0(0x18d)](_0x2ffcbf[_0x1af1e0(0x1a4)]());_0xdc27db[_0x1af1e0(0x1a6)]>0x0&&_0x32b9c7[_0x1af1e0(0x19e)](_0xdc27db,_0x141586,!0x1,!0x0);}}else _0x38d88f[_0x1af1e0(0x192)][_0x1af1e0(0x18b)](_0x1af1e0(0x19a))&&_0x38d88f[_0x1af1e0(0x192)][_0x1af1e0(0x1a3)](_0x1a0bd2)[_0x1af1e0(0x191)](_0x141586),_0x58a647[_0x1af1e0(0x186)]();});}return _0x58c64a;};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x22b797=_0x3b1a;(function(_0x122613,_0x5e9ec6){const _0x16e906=_0x3b1a,_0x3e3f51=_0x122613();while(!![]){try{const _0x5a7ba9=parseInt(_0x16e906(0xce))/0x1+parseInt(_0x16e906(0xdf))/0x2+parseInt(_0x16e906(0xca))/0x3+parseInt(_0x16e906(0xd0))/0x4*(parseInt(_0x16e906(0xdb))/0x5)+-parseInt(_0x16e906(0xc7))/0x6+parseInt(_0x16e906(0xcb))/0x7+-parseInt(_0x16e906(0xd7))/0x8*(parseInt(_0x16e906(0xc3))/0x9);if(_0x5a7ba9===_0x5e9ec6)break;else _0x3e3f51['push'](_0x3e3f51['shift']());}catch(_0x532056){_0x3e3f51['push'](_0x3e3f51['shift']());}}}(_0x46e6,0xcb4b3));import{ListView as _0x41ab65}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x9ca90}from'es-toolkit/compat';function _0x3b1a(_0x113eda,_0x45c2cf){const _0x46e647=_0x46e6();return _0x3b1a=function(_0x3b1a0f,_0x30a46d){_0x3b1a0f=_0x3b1a0f-0xc1;let _0xa8be4e=_0x46e647[_0x3b1a0f];return _0xa8be4e;},_0x3b1a(_0x113eda,_0x45c2cf);}function _0x46e6(){const _0x246518=['_allListItems','1127187lYEITC','2841706vNJulS','highlightText','length','1266800bKajkT','filter','773620gLUFZM','source','clear','includes','function','sort','_clearHighlight','904hBHuQK','forEach','toLowerCase','trim','10EemYEI','item','groupLabel','_allSearchableItems','48916hYkwhk','items','_highlightQuery','9657SEPpsK','label','addMany','highlightViews','9034890PpZghv','map'];_0x46e6=function(){return _0x246518;};return _0x46e6();}export class AIQuickActionsFilteredListView extends _0x41ab65{[_0x22b797(0xc9)];[_0x22b797(0xde)];constructor(_0x44ae5f,_0x14da81,_0x15aa5c){const _0x502abc=_0x22b797;super(_0x44ae5f),this[_0x502abc(0xc9)]=_0x14da81,this[_0x502abc(0xde)]=_0x15aa5c;}[_0x22b797(0xcf)](_0x1b7fbd){const _0x5b3a9c=_0x22b797;if(!_0x1b7fbd)return this[_0x5b3a9c(0xc1)][_0x5b3a9c(0xd2)](),this[_0x5b3a9c(0xc1)][_0x5b3a9c(0xc5)](this[_0x5b3a9c(0xc9)]),this[_0x5b3a9c(0xd6)](),{'resultsCount':this[_0x5b3a9c(0xc9)][_0x5b3a9c(0xcd)],'totalItemsCount':this[_0x5b3a9c(0xc9)][_0x5b3a9c(0xcd)]};const _0x1fda08=_0x1b7fbd[_0x5b3a9c(0xd1)][_0x5b3a9c(0xd9)]()[_0x5b3a9c(0xda)](),_0xb4504c=this[_0x5b3a9c(0xde)][_0x5b3a9c(0xcf)](_0x19beaa=>(_0x19beaa[_0x5b3a9c(0xdd)]?_0x19beaa[_0x5b3a9c(0xc4)]+'\x20('+_0x19beaa[_0x5b3a9c(0xdd)]+')':_0x19beaa[_0x5b3a9c(0xc4)])[_0x5b3a9c(0xd9)]()[_0x5b3a9c(0xd3)](_0x1fda08));return this[_0x5b3a9c(0xc1)][_0x5b3a9c(0xd2)](),this[_0x5b3a9c(0xc1)][_0x5b3a9c(0xc5)](_0xb4504c[_0x5b3a9c(0xd5)]((_0x482a85,_0x47f500)=>{const _0x3183bd=_0x5b3a9c,_0x52017a=_0x482a85[_0x3183bd(0xdd)],_0x4cb783=_0x47f500[_0x3183bd(0xdd)];return _0x52017a||_0x4cb783?_0x52017a?0x1:-0x1:0x0;})[_0x5b3a9c(0xc8)](_0x566613=>_0x566613[_0x5b3a9c(0xdc)])),this[_0x5b3a9c(0xc2)](_0x1fda08,_0xb4504c),{'resultsCount':_0xb4504c[_0x5b3a9c(0xcd)],'totalItemsCount':this[_0x5b3a9c(0xde)][_0x5b3a9c(0xcd)]};}[_0x22b797(0xc2)](_0x669fd2,_0x5c04f3){const _0x200d5c=_0x22b797;if(!_0x669fd2)return;const _0x2b23d1=new RegExp(_0x9ca90(_0x669fd2),'gi');_0x5c04f3[_0x200d5c(0xd8)](_0x308caa=>{const _0x24b61e=_0x200d5c;_0x308caa[_0x24b61e(0xc6)]&&_0x308caa[_0x24b61e(0xc6)][_0x24b61e(0xd8)](_0x4988ce=>{const _0x324912=_0x24b61e;_0x324912(0xd4)==typeof _0x4988ce[_0x324912(0xcc)]&&_0x4988ce[_0x324912(0xcc)](_0x2b23d1);});});}[_0x22b797(0xd6)](){const _0x1eda9f=_0x22b797;this[_0x1eda9f(0xde)][_0x1eda9f(0xd8)](_0x5d22b5=>{const _0x39284b=_0x1eda9f;_0x5d22b5[_0x39284b(0xc6)]&&_0x5d22b5[_0x39284b(0xc6)][_0x39284b(0xd8)](_0x12c937=>{const _0x3952aa=_0x39284b;_0x3952aa(0xd4)==typeof _0x12c937[_0x3952aa(0xcc)]&&_0x12c937[_0x3952aa(0xcc)](null);});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x17d2cf=_0x5b92;(function(_0x5b0e72,_0xdc334b){const _0xa1cd6d=_0x5b92,_0x1ff81b=_0x5b0e72();while(!![]){try{const _0xb66b86=parseInt(_0xa1cd6d(0x19c))/0x1*(parseInt(_0xa1cd6d(0x18c))/0x2)+-parseInt(_0xa1cd6d(0x18d))/0x3*(parseInt(_0xa1cd6d(0x193))/0x4)+parseInt(_0xa1cd6d(0x194))/0x5+parseInt(_0xa1cd6d(0x189))/0x6+parseInt(_0xa1cd6d(0x196))/0x7+-parseInt(_0xa1cd6d(0x195))/0x8*(parseInt(_0xa1cd6d(0x18b))/0x9)+parseInt(_0xa1cd6d(0x18a))/0xa*(-parseInt(_0xa1cd6d(0x19f))/0xb);if(_0xb66b86===_0xdc334b)break;else _0x1ff81b['push'](_0x1ff81b['shift']());}catch(_0x3471f1){_0x1ff81b['push'](_0x1ff81b['shift']());}}}(_0x7ac5,0xf3067));import{IconView as _0x440270,ListItemButtonView as _0x30e8b1}from'ckeditor5/src/ui.js';import{IconDropdownArrow as _0x5a9e00}from'@ckeditor/ckeditor5-icons';function _0x5b92(_0x451b8f,_0x4b2839){const _0x7ac588=_0x7ac5();return _0x5b92=function(_0x5b9250,_0x5680f5){_0x5b9250=_0x5b9250-0x187;let _0x738974=_0x7ac588[_0x5b9250];return _0x738974;},_0x5b92(_0x451b8f,_0x4b2839);}export class DropdownMenuButtonWithHighlightView extends _0x30e8b1{[_0x17d2cf(0x19a)];constructor(_0x3b339d,_0x17fc96){const _0xc954ba=_0x17d2cf;super(_0x3b339d,_0x17fc96);const _0x417453=this[_0xc954ba(0x18f)];this[_0xc954ba(0x199)]({'withText':!0x0,'role':_0xc954ba(0x19d)}),this[_0xc954ba(0x19a)]=this[_0xc954ba(0x197)](),this[_0xc954ba(0x19b)]({'attributes':{'class':[_0xc954ba(0x192)],'aria-haspopup':!0x0,'aria-expanded':this[_0xc954ba(0x18f)]['to'](_0xc954ba(0x187),_0x567ef6=>String(_0x567ef6)),'data-cke-tooltip-disabled':_0x417453['to'](_0xc954ba(0x187))},'on':{'mouseenter':_0x417453['to'](_0xc954ba(0x188))}});}[_0x17d2cf(0x191)](){const _0x3bef13=_0x17d2cf;super[_0x3bef13(0x191)](),this[_0x3bef13(0x19e)][_0x3bef13(0x18e)](this[_0x3bef13(0x19a)]);}[_0x17d2cf(0x197)](){const _0x3cbd79=_0x17d2cf,_0xfd05e1=new _0x440270();return _0xfd05e1[_0x3cbd79(0x190)]=_0x5a9e00,_0xfd05e1[_0x3cbd79(0x19b)]({'attributes':{'class':_0x3cbd79(0x198)}}),_0xfd05e1;}}function _0x7ac5(){const _0x2c3f3f=['15313osHFCU','menuitem','children','22LkGgUu','isOn','mouseenter','963012aXrCGJ','5651950TkWFky','5391pRnPVO','250sEatSa','12234EKuEgr','add','bindTemplate','content','render','ck-dropdown-menu-list__nested-menu__button','24KAIKbF','4588680IvLLGO','14392RmaUxM','1648689WueNaF','_createArrowView','ck-dropdown-menu-list__nested-menu__button__arrow','set','arrowView','extendTemplate'];_0x7ac5=function(){return _0x2c3f3f;};return _0x7ac5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x4a7f9c=_0x5c57;(function(_0x244e18,_0x35131e){var _0x15963c=_0x5c57,_0x1ce27e=_0x244e18();while(!![]){try{var _0x3f4262=-parseInt(_0x15963c(0x118))/0x1*(parseInt(_0x15963c(0x10c))/0x2)+-parseInt(_0x15963c(0x115))/0x3+parseInt(_0x15963c(0x10a))/0x4*(-parseInt(_0x15963c(0x10f))/0x5)+-parseInt(_0x15963c(0x116))/0x6*(parseInt(_0x15963c(0x10e))/0x7)+-parseInt(_0x15963c(0x109))/0x8+parseInt(_0x15963c(0x113))/0x9+parseInt(_0x15963c(0x10d))/0xa*(parseInt(_0x15963c(0x110))/0xb);if(_0x3f4262===_0x35131e)break;else _0x1ce27e['push'](_0x1ce27e['shift']());}catch(_0x1a2a4d){_0x1ce27e['push'](_0x1ce27e['shift']());}}}(_0x38f2,0xdebf1));import{ContextPlugin as _0x253b1b}from'ckeditor5/src/core.js';import{AIReviewModeController as _0xdf4507}from'./aireviewmodecontroller.js';function _0x38f2(){var _0x1e45a6=['2YVsZlf','3300568IWueiR','208172ZzENZt','pluginName','1580648uzOqRr','410oktwOY','812014aqwTpC','125XwQRbX','1317514BKEkWa','isOfficialPlugin','isPremiumPlugin','4722732IbpIYj','AIReviewMode','2294433piItPU','24XueHvy','requires'];_0x38f2=function(){return _0x1e45a6;};return _0x38f2();}import{AIReviewModeUI as _0xbf63a6}from'./aireviewmodeui.js';import{AIReviewModeEditing as _0x226efd}from'./aireviewmodeediting.js';function _0x5c57(_0x1f037a,_0x1ac6bb){var _0x38f278=_0x38f2();return _0x5c57=function(_0x5c5706,_0x2a0700){_0x5c5706=_0x5c5706-0x109;var _0x332816=_0x38f278[_0x5c5706];return _0x332816;},_0x5c57(_0x1f037a,_0x1ac6bb);}export class AIReviewMode extends _0x253b1b{static get[_0x4a7f9c(0x117)](){return[_0xdf4507,_0xbf63a6,_0x226efd];}static get[_0x4a7f9c(0x10b)](){var _0x5a2b56=_0x4a7f9c;return _0x5a2b56(0x114);}static get[_0x4a7f9c(0x111)](){return!0x0;}static get[_0x4a7f9c(0x112)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x194321=_0x41aa;(function(_0x55cd70,_0xa792b1){const _0x1cde5e=_0x41aa,_0x54b9dc=_0x55cd70();while(!![]){try{const _0x179727=parseInt(_0x1cde5e(0xed))/0x1+-parseInt(_0x1cde5e(0x15c))/0x2*(-parseInt(_0x1cde5e(0xe2))/0x3)+-parseInt(_0x1cde5e(0xda))/0x4+parseInt(_0x1cde5e(0x12a))/0x5*(parseInt(_0x1cde5e(0x12b))/0x6)+-parseInt(_0x1cde5e(0x126))/0x7+parseInt(_0x1cde5e(0xc5))/0x8+-parseInt(_0x1cde5e(0xfc))/0x9*(parseInt(_0x1cde5e(0x107))/0xa);if(_0x179727===_0xa792b1)break;else _0x54b9dc['push'](_0x54b9dc['shift']());}catch(_0x1073ec){_0x54b9dc['push'](_0x54b9dc['shift']());}}}(_0x4bd6,0x31571));import{ContextPlugin as _0x132788}from'ckeditor5/src/core.js';import{CKEditorError as _0x9abc00,logError as _0xc23960,scrollAncestorsToShowTarget as _0x3e1db1,scrollViewportToShowTarget as _0x44e873}from'ckeditor5/src/utils.js';import{AIConnector as _0x289a33}from'../aicore/aiconnector.js';import{AIReviewCheckList as _0x3458a5}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x46444a}from'./model/aireviewsystemcheckrun.js';import{AIReviewCustomCheckRun as _0x5c5569}from'./model/aireviewcustomcheckrun.js';import{AIModels as _0x5c8a0a}from'../aicore/model/aimodels.js';import{AI_REVIEW_CHECKS as _0x3e865f}from'./aireviewcheckdefinitions.js';function _0x4bd6(){const _0x44f267=['aborted','ready','start','getRoot','startsWith','updateChangeState','prompt','label','showReviewCompletedView','reviewCheckResultAdded','map','getEditor','domEvent','init','showCheckRunResults','hideDiffInBalloon','locale','clearAllMarkers','markChangeAsAccepted','abort','getChangeById','leaveReviewMode','changeMarkerBlurred','error-chunk','switchToEdit','getChangeElement','getActiveChanges','removeCheckById','acceptAllChanges','showNoChangesView','contentInitial','requires','updateDocumentData','removeClass','pluginName','sendRating','viewportOffset','515062hjKjlm','setCheckResultTitle','document','closest','_aiReviewModeEditing','markerElement','_onDiffChange','ck-ai-review-mode-highlights','ai-review-mode-no-current-check-run','AI_MODEL_DESCRIPTION_','ai-review-mode-source-check-not-found','_OPTIONS_DATA_','processedResultsCount','isChangeActive','replaceAll','dismissChange','changeMarkerRestored','showGeneralReviewModeErrorView','_OPTIONS_LABEL','reviewCheckResultDeactivated','AIReviewModeController','data','currentError','rejectChange','markAllChangesAsAccepted','status','unmodified','AIReviewModeEditing','changes','view','abortReviewStream','getDomRoot','_currentReviewCheckRun','changeMarkerClick','isOfficialPlugin','2380496PKEOIr','toggleDiff','AI_REVIEW_CHECK_','_logError','isCustom','listenTo','resetActiveStateInResults','editing','plugins','forceReadyState','translate','length','stopListening','applyChange','content','showChangeBalloon','click','models','AIReviewModeUI','AIConnector','markChangeAsOutdated','1207268OKHVJG','getAll','title','finishReview','finished','contentNew','_onReviewModeRunLeave','markChangeAsPending','3BDIVvp','acceptChange','get','domElement','documentData','getMarkerElementForChange','_TITLE','options','getReviewCheckList','reviewCheckRunUpdated','retryReview','270260sydusx','ai-review-mode-check-run-failed','ai-review-mode-models-unable-to-retrieve','switchToReadOnly','params','restart','reviewCheckResultReady','addClass','getCheckById','hideChangeBalloon','_translateReviewChecks','showCheckRunResult','runReviewCheck','ck-ai-review-mode-diff','model','991152PyLjTn','_isDiffOn','getDocumentData','error-general','reviewCheckResultActivated','args','setActiveStateInResults','.ck-ai-review-mode__check-run-result','change','config','checks','10fsnrEl','_aiReviewModeUi','emitter','markChangePositionInEditorContent','ai-review-mode-check-run-chunk-error','isAnyChangeActivated','reviewCheckResultChangeStatusUpdated','result','leaveReviewModeResultList','_getTranslationWithDefault','custom','_aiConnector','panel','_aiReviewCheckList','activateChange','showGeneralResultsErrorView','subTitle','hover','addResultChanges','toUpperCase','setAvailableChecks','message','hasModifications','diffContent','ai.reviewMode.translations','markChangeAsRejected','source','showDiffInBalloon','ai-review-mode-check-run-general-error','changeMarkerHovered','showReviewCheckList','2520777eiglwZ','_DESCRIPTION','showChunkErrorView','find','1550FjLwxA','2880QylWhd','includes','loading','description','context','showActionsWhenResultIsReady','_changeActivationSource','deactivateChange','ai-request-aborted','isPremiumPlugin','changeMarkerRemoved','changeId'];_0x4bd6=function(){return _0x44f267;};return _0x4bd6();}import{getTranslation as _0x4c15b4}from'../aicore/utils/common-translations.js';function _0x41aa(_0x591fab,_0x4aef94){const _0x4bd659=_0x4bd6();return _0x41aa=function(_0x41aae0,_0xd1b0db){_0x41aae0=_0x41aae0-0xaa;let _0x909c3=_0x4bd659[_0x41aae0];return _0x909c3;},_0x41aa(_0x591fab,_0x4aef94);}export class AIReviewModeController extends _0x132788{[_0x194321(0x112)];[_0x194321(0x108)];[_0x194321(0x160)];[_0x194321(0x114)];[_0x194321(0xc2)];[_0x194321(0xfd)]=!0x1;[_0x194321(0x131)]=null;static get[_0x194321(0x156)](){return[_0x289a33];}static get[_0x194321(0x159)](){const _0x517025=_0x194321;return _0x517025(0xb6);}static get[_0x194321(0xc4)](){return!0x0;}static get[_0x194321(0x134)](){return!0x0;}async[_0x194321(0x144)](){const _0x5d1fcd=_0x194321;this[_0x5d1fcd(0x112)]=this[_0x5d1fcd(0x12f)][_0x5d1fcd(0xcd)][_0x5d1fcd(0xe4)](_0x5d1fcd(0xd8)),this[_0x5d1fcd(0x108)]=this[_0x5d1fcd(0x12f)][_0x5d1fcd(0xcd)][_0x5d1fcd(0xe4)](_0x5d1fcd(0xd7)),this[_0x5d1fcd(0x160)]=this[_0x5d1fcd(0x12f)][_0x5d1fcd(0xcd)][_0x5d1fcd(0xe4)](_0x5d1fcd(0xbd));const _0x447eaa=this[_0x5d1fcd(0x12f)][_0x5d1fcd(0x105)][_0x5d1fcd(0xe4)](_0x5d1fcd(0x11f));if(_0x447eaa){for(const _0x5db66c of _0x3e865f)_0x5d1fcd(0xcf)===_0x5db66c['id']&&(_0x5db66c[_0x5d1fcd(0xe9)][0x0][_0x5d1fcd(0xb7)]=_0x447eaa);}const _0x4fb78a=this[_0x5d1fcd(0xf7)](_0x3e865f);this[_0x5d1fcd(0x114)]=new _0x3458a5(_0x4fb78a);const _0x2b7be9=this[_0x5d1fcd(0x114)][_0x5d1fcd(0x106)][_0x5d1fcd(0x129)](_0x5b4d50=>_0x5d1fcd(0x111)===_0x5b4d50['id']);if(_0x2b7be9)try{const _0x4a483b=await new _0x5c8a0a({'connector':this[_0x5d1fcd(0x112)]})[_0x5d1fcd(0xdb)]();_0x2b7be9[_0x5d1fcd(0xd6)]=_0x4a483b[_0x5d1fcd(0x141)](_0xdeceb1=>({..._0xdeceb1,'description':this[_0x5d1fcd(0x110)](_0x5d1fcd(0xab)+_0xdeceb1['id'][_0x5d1fcd(0x11a)](),_0xdeceb1[_0x5d1fcd(0x12e)])}));}catch(_0x52dac2){this[_0x5d1fcd(0x114)][_0x5d1fcd(0x152)](_0x5d1fcd(0x111)),this[_0x5d1fcd(0xc8)](new _0x9abc00(_0x5d1fcd(0xef),this,{'error':_0x52dac2}));}this[_0x5d1fcd(0xca)](this[_0x5d1fcd(0x108)],_0x5d1fcd(0xea),()=>{const _0x2b3f98=_0x5d1fcd;this[_0x2b3f98(0x108)][_0x2b3f98(0x11b)](this[_0x2b3f98(0x114)][_0x2b3f98(0x106)]);}),this[_0x5d1fcd(0xca)](this[_0x5d1fcd(0x108)],_0x5d1fcd(0xf9),async(_0x2e9295,_0x170190)=>{const _0x2244f2=_0x5d1fcd,_0xb39bf0=this[_0x2244f2(0x114)][_0x2244f2(0xf5)](_0x170190['id']);if(_0xb39bf0){this[_0x2244f2(0x162)](this[_0x2244f2(0xfd)]),_0x170190[_0x2244f2(0xc9)]?this[_0x2244f2(0xc2)]=new _0x5c5569(_0x170190[_0x2244f2(0x101)][_0x2244f2(0x13d)],_0x170190[_0x2244f2(0x101)][_0x2244f2(0xfb)],this[_0x2244f2(0x160)][_0x2244f2(0xfe)](),_0xb39bf0,this[_0x2244f2(0x112)]):this[_0x2244f2(0xc2)]=new _0x46444a(this[_0x2244f2(0x160)][_0x2244f2(0xfe)](),_0xb39bf0,this[_0x2244f2(0x112)],_0x170190[_0x2244f2(0xf1)],_0x170190[_0x2244f2(0x101)]),this[_0x2244f2(0x108)][_0x2244f2(0x15d)](this[_0x2244f2(0xc2)][_0x2244f2(0xdc)],this[_0x2244f2(0xc2)][_0x2244f2(0x117)]),this[_0x2244f2(0xc2)]['on'](_0x2244f2(0xeb),(_0x3c582c,_0xdbf130)=>{const _0x1a8c67=_0x2244f2;_0x1a8c67(0xb7)===_0xdbf130[_0x1a8c67(0xbb)]||_0x1a8c67(0x12d)===_0xdbf130[_0x1a8c67(0xbb)]?(this[_0x1a8c67(0x160)][_0x1a8c67(0xf0)](),this[_0x1a8c67(0x108)][_0x1a8c67(0x145)](_0xdbf130)):_0x1a8c67(0xde)===_0xdbf130[_0x1a8c67(0xbb)]?this[_0x1a8c67(0x108)][_0x1a8c67(0x13f)]():_0x1a8c67(0x138)===_0xdbf130[_0x1a8c67(0xbb)]?this[_0x1a8c67(0x108)][_0x1a8c67(0x130)]():_0x1a8c67(0xbc)===_0xdbf130[_0x1a8c67(0xbb)]?this[_0x1a8c67(0x108)][_0x1a8c67(0x154)]():_0x1a8c67(0xff)===_0xdbf130[_0x1a8c67(0xbb)]?(this[_0x1a8c67(0x108)][_0x1a8c67(0x116)](),this[_0x1a8c67(0xc8)](new _0x9abc00(_0x1a8c67(0x123),this,this[_0x1a8c67(0xc2)]?.[_0x1a8c67(0xb8)]))):_0x1a8c67(0x14e)===_0xdbf130[_0x1a8c67(0xbb)]?(this[_0x1a8c67(0x108)][_0x1a8c67(0x128)](),this[_0x1a8c67(0xc8)](new _0x9abc00(_0x1a8c67(0x10b),this,this[_0x1a8c67(0xc2)]?.[_0x1a8c67(0xb8)]))):_0x1a8c67(0x137)===_0xdbf130[_0x1a8c67(0xbb)]&&(this[_0x1a8c67(0xc2)]&&this[_0x1a8c67(0xc2)][_0x1a8c67(0xae)]>0x0?setTimeout(()=>{const _0xf8f84b=_0x1a8c67;this[_0xf8f84b(0xc2)]?.[_0xf8f84b(0xce)]();},0x0):this[_0x1a8c67(0xe0)](!0x0)),_0x1a8c67(0x138)!==_0xdbf130[_0x1a8c67(0xbb)]&&_0x1a8c67(0x14e)!==_0xdbf130[_0x1a8c67(0xbb)]&&_0x1a8c67(0xff)!==_0xdbf130[_0x1a8c67(0xbb)]||this[_0x1a8c67(0xc2)]?.[_0x1a8c67(0x15a)]();}),this[_0x2244f2(0xc2)]['on'](_0x2244f2(0x140),(_0x3b2dbc,_0x142345)=>{const _0x3ce560=_0x2244f2;if(!this[_0x3ce560(0xc2)])throw new _0x9abc00(_0x3ce560(0xaa),this);const _0x40465d=this[_0x3ce560(0x160)][_0x3ce560(0x11e)](_0x142345[_0x3ce560(0x10e)][_0x3ce560(0x155)],_0x142345[_0x3ce560(0x10e)][_0x3ce560(0xdf)]);_0x142345[_0x3ce560(0x121)][_0x3ce560(0x119)](_0x142345[_0x3ce560(0x10e)]['id'],_0x40465d);}),this[_0x2244f2(0xc2)]['on'](_0x2244f2(0xf3),(_0x5ee6c7,_0x51f93b)=>{const _0x36efd1=_0x2244f2;for(const _0x5814b3 of _0x51f93b[_0x36efd1(0xbe)])this[_0x36efd1(0x108)][_0x36efd1(0xf8)](_0x5814b3);this[_0x36efd1(0x160)][_0x36efd1(0x10a)](_0x51f93b[_0x36efd1(0xbe)],_0x51f93b[_0x36efd1(0x121)][_0x36efd1(0xe6)]);}),this[_0x2244f2(0xc2)]['on'](_0x2244f2(0x10d),(_0x45fc76,_0x546750)=>{const _0x35cc8=_0x2244f2;this[_0x35cc8(0x108)][_0x35cc8(0x13c)](_0x546750[_0x35cc8(0x104)]['id'],_0x546750[_0x35cc8(0xbb)]);}),this[_0x2244f2(0xc2)]['on'](_0x2244f2(0x100),(_0x527f5f,_0x3ad6a7)=>{const _0x342152=_0x2244f2;this[_0x342152(0x108)][_0x342152(0x102)](_0x3ad6a7[_0x342152(0x104)]['id']);const _0x194da1=this[_0x342152(0x160)][_0x342152(0xe7)](_0x3ad6a7[_0x342152(0x104)]['id']);if(!_0x194da1)return;if(_0x342152(0xd3)===this[_0x342152(0x131)]){const _0x2ec4d7=this[_0x342152(0x108)][_0x342152(0x150)](_0x3ad6a7[_0x342152(0x104)]['id']);_0x2ec4d7&&_0x3e1db1(_0x2ec4d7[_0x342152(0x15f)](_0x342152(0x103))||_0x2ec4d7);}else{if(_0x342152(0x113)===this[_0x342152(0x131)]){const _0x1971db={'target':_0x194da1[_0x342152(0xe5)],'viewportOffset':{'top':0x55,'left':0x0,'bottom':0x0,'right':0x0},'ancestorOffset':0x14,'alignToTop':!0x0};_0x44e873(_0x1971db);}}const _0xbec013=this[_0x342152(0x160)][_0x342152(0x142)]();this[_0x342152(0x108)][_0x342152(0xd4)](_0x3ad6a7[_0x342152(0x104)],_0x194da1[_0x342152(0xe5)],void 0x0,_0x342152(0xd5),_0xbec013?.[_0x342152(0xcc)]?.[_0x342152(0xbf)]?.[_0x342152(0xc1)](),_0xbec013?.['ui']?.[_0x342152(0x15b)]);}),this[_0x2244f2(0xc2)]['on'](_0x2244f2(0xb5),()=>{const _0x20d774=_0x2244f2;this[_0x20d774(0x108)][_0x20d774(0xcb)](),this[_0x20d774(0x108)][_0x20d774(0xf6)]();});try{await this[_0x2244f2(0xc2)][_0x2244f2(0x139)]();}catch(_0x2a1400){_0x2a1400 instanceof Error&&_0x2a1400[_0x2244f2(0x11c)][_0x2244f2(0x12c)](_0x2244f2(0x133))||(_0x2a1400 instanceof _0x9abc00?this[_0x2244f2(0xc8)](_0x2a1400):this[_0x2244f2(0xc8)](new _0x9abc00(_0x2244f2(0xee),this,{'error':_0x2a1400})));}}else this[_0x2244f2(0xc8)](new _0x9abc00(_0x2244f2(0xac),this,{'checkId':_0x170190['id']}));}),this[_0x5d1fcd(0xca)](this[_0x5d1fcd(0x108)],_0x5d1fcd(0x14c),()=>{const _0x24f77c=_0x5d1fcd;this[_0x24f77c(0xe0)]();}),this[_0x5d1fcd(0xca)](this[_0x5d1fcd(0x108)],_0x5d1fcd(0x10f),()=>{const _0x3d903d=_0x5d1fcd;this[_0x3d903d(0xe0)](!0x0);}),this[_0x5d1fcd(0xca)](this[_0x5d1fcd(0x108)],_0x5d1fcd(0xc0),()=>{const _0xcc143a=_0x5d1fcd;this[_0xcc143a(0xc2)]&&this[_0xcc143a(0xc2)][_0xcc143a(0x14a)]();}),this[_0x5d1fcd(0xca)](this[_0x5d1fcd(0x108)],_0x5d1fcd(0xdd),()=>{const _0x12d858=_0x5d1fcd;this[_0x12d858(0xe0)](!0x0);}),this[_0x5d1fcd(0xca)](this[_0x5d1fcd(0x108)],_0x5d1fcd(0x153),()=>{const _0xcccd05=_0x5d1fcd;if(!this[_0xcccd05(0xc2)])return;const _0xc2ee4b=this[_0xcccd05(0xc2)][_0xcccd05(0x151)]();_0xc2ee4b[_0xcccd05(0xd0)]&&(this[_0xcccd05(0x160)][_0xcccd05(0xd2)](_0xc2ee4b[_0xcccd05(0x141)](_0x53281d=>_0x53281d['id'])),this[_0xcccd05(0xc2)][_0xcccd05(0xba)](),this[_0xcccd05(0xc2)][_0xcccd05(0x15a)]());}),this[_0x5d1fcd(0xca)](this[_0x5d1fcd(0x108)],_0x5d1fcd(0xe3),(_0x3a4c3c,_0x19e54b)=>{const _0x3eecaf=_0x5d1fcd;this[_0x3eecaf(0xc2)]&&this[_0x3eecaf(0xc2)][_0x3eecaf(0xaf)](_0x19e54b['id'])&&(this[_0x3eecaf(0x160)][_0x3eecaf(0xd2)]([_0x19e54b['id']]),this[_0x3eecaf(0xc2)][_0x3eecaf(0x149)](_0x19e54b['id']),this[_0x3eecaf(0x108)][_0x3eecaf(0xf6)](),this[_0x3eecaf(0xc2)][_0x3eecaf(0x15a)](_0x19e54b['id']));}),this[_0x5d1fcd(0xca)](this[_0x5d1fcd(0x108)],_0x5d1fcd(0xb1),(_0x1fbc20,_0xd0b7ca)=>{const _0x3b0945=_0x5d1fcd;this[_0x3b0945(0xc2)]&&this[_0x3b0945(0xc2)][_0x3b0945(0xaf)](_0xd0b7ca['id'])&&(this[_0x3b0945(0x160)][_0x3b0945(0xb9)](_0xd0b7ca['id']),this[_0x3b0945(0xc2)][_0x3b0945(0x120)](_0xd0b7ca['id']),this[_0x3b0945(0x108)][_0x3b0945(0xf6)](),this[_0x3b0945(0xc2)][_0x3b0945(0x15a)](_0xd0b7ca['id']));}),this[_0x5d1fcd(0xca)](this[_0x5d1fcd(0x108)],_0x5d1fcd(0xc6),(_0x4053f6,_0x13fb29)=>{const _0x4fdcd3=_0x5d1fcd;this[_0x4fdcd3(0xfd)]=_0x13fb29['on'],this[_0x4fdcd3(0x162)](this[_0x4fdcd3(0xfd)]);}),this[_0x5d1fcd(0xca)](this[_0x5d1fcd(0x108)],_0x5d1fcd(0xec),async()=>{const _0x4e01a1=_0x5d1fcd;this[_0x4e01a1(0xc2)]&&(this[_0x4e01a1(0x160)][_0x4e01a1(0x148)](),this[_0x4e01a1(0xc2)][_0x4e01a1(0x157)](this[_0x4e01a1(0x160)][_0x4e01a1(0xfe)]()),await this[_0x4e01a1(0xc2)][_0x4e01a1(0xf2)]());}),this[_0x5d1fcd(0xca)](this[_0x5d1fcd(0x108)],_0x5d1fcd(0x115),(_0x335c6c,_0x421d79)=>{const _0x82bcbb=_0x5d1fcd;this[_0x82bcbb(0xc2)]&&(this[_0x82bcbb(0x131)]=_0x82bcbb(0x113),this[_0x82bcbb(0xc2)][_0x82bcbb(0x115)](_0x421d79['id']));}),this[_0x5d1fcd(0xca)](this[_0x5d1fcd(0x108)],_0x5d1fcd(0x132),()=>{const _0x422b8d=_0x5d1fcd;this[_0x422b8d(0xc2)]&&this[_0x422b8d(0xc2)][_0x422b8d(0x132)]();}),this[_0x5d1fcd(0xca)](this[_0x5d1fcd(0x160)][_0x5d1fcd(0x109)],_0x5d1fcd(0xc3),(_0x352071,_0x17afe8)=>{const _0x5cf4ea=_0x5d1fcd;if(!this[_0x5cf4ea(0xc2)])return;this[_0x5cf4ea(0x131)]=_0x5cf4ea(0xd3),this[_0x5cf4ea(0xc2)][_0x5cf4ea(0x115)](_0x17afe8[_0x5cf4ea(0x136)]);const _0x18e461=this[_0x5cf4ea(0xc2)][_0x5cf4ea(0x14b)](_0x17afe8[_0x5cf4ea(0x136)]);if(!_0x18e461)return;const _0x2237af=this[_0x5cf4ea(0x160)][_0x5cf4ea(0x142)]();this[_0x5cf4ea(0x108)][_0x5cf4ea(0xd4)](_0x18e461,_0x17afe8[_0x5cf4ea(0x161)],_0x17afe8[_0x5cf4ea(0x143)],_0x5cf4ea(0xd5),_0x2237af?.[_0x5cf4ea(0xcc)]?.[_0x5cf4ea(0xbf)]?.[_0x5cf4ea(0xc1)](),_0x2237af?.['ui']?.[_0x5cf4ea(0x15b)]);}),this[_0x5d1fcd(0xca)](this[_0x5d1fcd(0x160)][_0x5d1fcd(0x109)],_0x5d1fcd(0x124),(_0x4f7410,_0x92263)=>{const _0x66a54e=_0x5d1fcd;if(!this[_0x66a54e(0xc2)])return;if(this[_0x66a54e(0xc2)][_0x66a54e(0x10c)]())return;const _0x5d8939=this[_0x66a54e(0xc2)][_0x66a54e(0x14b)](_0x92263[_0x66a54e(0x136)]);if(!_0x5d8939)return;const _0x223c4e=this[_0x66a54e(0x160)][_0x66a54e(0x142)]();this[_0x66a54e(0x108)][_0x66a54e(0xd4)](_0x5d8939,_0x92263[_0x66a54e(0x161)],_0x92263[_0x66a54e(0x143)],_0x66a54e(0x118),_0x223c4e?.[_0x66a54e(0xcc)]?.[_0x66a54e(0xbf)]?.[_0x66a54e(0xc1)](),_0x223c4e?.['ui']?.[_0x66a54e(0x15b)]);}),this[_0x5d1fcd(0xca)](this[_0x5d1fcd(0x160)][_0x5d1fcd(0x109)],_0x5d1fcd(0x14d),()=>{const _0x117346=_0x5d1fcd;if(!this[_0x117346(0xc2)])return;this[_0x117346(0xc2)][_0x117346(0x10c)]()||this[_0x117346(0x108)][_0x117346(0xf6)]();}),this[_0x5d1fcd(0xca)](this[_0x5d1fcd(0x160)][_0x5d1fcd(0x109)],_0x5d1fcd(0x135),(_0x1aa542,_0x10b63f)=>{const _0x464cf5=_0x5d1fcd;this[_0x464cf5(0xc2)]&&this[_0x464cf5(0xc2)][_0x464cf5(0xd9)](_0x10b63f[_0x464cf5(0x136)]);}),this[_0x5d1fcd(0xca)](this[_0x5d1fcd(0x160)][_0x5d1fcd(0x109)],_0x5d1fcd(0xb2),(_0x2da41a,_0x252b90)=>{const _0x5cd0bc=_0x5d1fcd;this[_0x5cd0bc(0xc2)]&&this[_0x5cd0bc(0xc2)][_0x5cd0bc(0xe1)](_0x252b90[_0x5cd0bc(0x136)]);});}[_0x194321(0xe0)](_0x51f114=!0x1){const _0x5bbb67=_0x194321;this[_0x5bbb67(0xc2)]&&(this[_0x5bbb67(0xc2)][_0x5bbb67(0x11d)]||this[_0x5bbb67(0xc2)][_0x5bbb67(0x15a)](),this[_0x5bbb67(0xc2)][_0x5bbb67(0xd1)](),this[_0x5bbb67(0xc2)][_0x5bbb67(0x14a)](),this[_0x5bbb67(0xc2)]=void 0x0),_0x51f114&&this[_0x5bbb67(0x108)][_0x5bbb67(0x125)](),this[_0x5bbb67(0x160)][_0x5bbb67(0x148)](),this[_0x5bbb67(0x160)][_0x5bbb67(0x14f)](),this[_0x5bbb67(0x131)]=null;const _0x294f9d=this[_0x5bbb67(0x160)][_0x5bbb67(0x142)]();_0x294f9d&&_0x294f9d[_0x5bbb67(0xcc)][_0x5bbb67(0xbf)][_0x5bbb67(0x104)](_0x48337f=>{const _0x509144=_0x5bbb67,_0x4d3e80=_0x294f9d[_0x509144(0xcc)][_0x509144(0xbf)][_0x509144(0x15e)][_0x509144(0x13a)]();_0x48337f[_0x509144(0x158)](_0x509144(0xfa),_0x4d3e80),_0x48337f[_0x509144(0x158)](_0x509144(0x163),_0x4d3e80);});}[_0x194321(0x162)](_0xa9e78c){const _0xa6fbbb=_0x194321,_0x28669b=this[_0xa6fbbb(0x160)][_0xa6fbbb(0x142)]();_0xa9e78c?this[_0xa6fbbb(0x108)][_0xa6fbbb(0x146)]():this[_0xa6fbbb(0x108)][_0xa6fbbb(0x122)](),_0x28669b&&_0x28669b[_0xa6fbbb(0xcc)][_0xa6fbbb(0xbf)][_0xa6fbbb(0x104)](_0x58cf5d=>{const _0x1f0107=_0xa6fbbb,_0x8c06ed=_0x28669b[_0x1f0107(0xcc)][_0x1f0107(0xbf)][_0x1f0107(0x15e)][_0x1f0107(0x13a)]();_0x58cf5d[_0x1f0107(0x158)](_0x1f0107(0xfa),_0x8c06ed),_0x58cf5d[_0x1f0107(0x158)](_0x1f0107(0x163),_0x8c06ed),_0x58cf5d[_0x1f0107(0xf4)](_0xa9e78c?_0x1f0107(0xfa):_0x1f0107(0x163),_0x8c06ed);});}[_0x194321(0xf7)](_0x440303){const _0x5ec18e=_0x194321;return _0x440303[_0x5ec18e(0x141)](_0x578029=>{const _0x17ed63=_0x5ec18e,_0xcdcaf0=_0x17ed63(0xc7)+_0x578029['id'][_0x17ed63(0x11a)]()[_0x17ed63(0xb0)]('-','_'),_0xc0e140={..._0x578029,'title':this[_0x17ed63(0x110)](_0xcdcaf0+_0x17ed63(0xe8),_0x578029[_0x17ed63(0xdc)]),'description':this[_0x17ed63(0x110)](_0xcdcaf0+_0x17ed63(0x127),_0x578029[_0x17ed63(0x12e)])};return _0x578029[_0x17ed63(0xe9)]&&(_0xc0e140[_0x17ed63(0xe9)]=_0x578029[_0x17ed63(0xe9)][_0x17ed63(0x141)](_0xbcddaf=>({..._0xbcddaf,'label':this[_0x17ed63(0x110)](_0xcdcaf0+_0x17ed63(0xb4),_0xbcddaf[_0x17ed63(0x13e)]||''),'data':_0xbcddaf[_0x17ed63(0xb7)]?_0xbcddaf[_0x17ed63(0xb7)][_0x17ed63(0x141)](_0x9356fb=>({..._0x9356fb,'label':this[_0x17ed63(0x110)](_0xcdcaf0+_0x17ed63(0xad)+_0x9356fb['id'][_0x17ed63(0x11a)](),_0x9356fb[_0x17ed63(0x13e)])})):void 0x0}))),_0xc0e140;});}[_0x194321(0x110)](_0x93f381,_0x5fdfa7){const _0x2536a6=_0x194321,_0x45dbfe=this[_0x2536a6(0x12f)][_0x2536a6(0x147)],_0x11a72f=_0x4c15b4(_0x45dbfe,_0x93f381);return _0x11a72f===_0x93f381?_0x5fdfa7:_0x11a72f;}[_0x194321(0xc8)](_0x67902e){const _0x41465b=_0x194321;_0xc23960(_0x67902e[_0x41465b(0x11c)]),_0x67902e[_0x41465b(0x11c)][_0x41465b(0x13b)](_0x41465b(0xef))?this[_0x41465b(0x108)][_0x41465b(0xb3)]():this[_0x41465b(0x108)][_0x41465b(0x116)]();}}
|
|
23
|
+
const _0x83de3a=_0x317e;(function(_0xefc402,_0x282231){const _0x3ebbaa=_0x317e,_0xbe6621=_0xefc402();while(!![]){try{const _0xd51896=parseInt(_0x3ebbaa(0x187))/0x1*(parseInt(_0x3ebbaa(0x1cc))/0x2)+parseInt(_0x3ebbaa(0x199))/0x3+-parseInt(_0x3ebbaa(0x1d9))/0x4*(-parseInt(_0x3ebbaa(0x178))/0x5)+-parseInt(_0x3ebbaa(0x1b6))/0x6+parseInt(_0x3ebbaa(0x1cf))/0x7+-parseInt(_0x3ebbaa(0x1d2))/0x8+-parseInt(_0x3ebbaa(0x155))/0x9*(parseInt(_0x3ebbaa(0x1b4))/0xa);if(_0xd51896===_0x282231)break;else _0xbe6621['push'](_0xbe6621['shift']());}catch(_0x1c8bd5){_0xbe6621['push'](_0xbe6621['shift']());}}}(_0x5a5a,0x368fe));import{ContextPlugin as _0x3c79b8}from'ckeditor5/src/core.js';import{CKEditorError as _0x64c8bf,logError as _0x174874,scrollAncestorsToShowTarget as _0x4e3736,scrollViewportToShowTarget as _0x29314f}from'ckeditor5/src/utils.js';import{AIConnector as _0x4690e5}from'../aicore/aiconnector.js';import{AIReviewCheckList as _0x236ae6}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x9ce579}from'./model/aireviewsystemcheckrun.js';import{AIReviewCustomCheckRun as _0x3ed01d}from'./model/aireviewcustomcheckrun.js';import{AIModels as _0x5cdfbe}from'../aicore/model/aimodels.js';function _0x317e(_0x403c63,_0x3e6ddd){const _0x5a5a75=_0x5a5a();return _0x317e=function(_0x317eb9,_0x51b1b8){_0x317eb9=_0x317eb9-0x14c;let _0x32afa8=_0x5a5a75[_0x317eb9];return _0x32afa8;},_0x317e(_0x403c63,_0x3e6ddd);}import{AI_REVIEW_CHECKS as _0x290f7c}from'./aireviewcheckdefinitions.js';import{getTranslation as _0x22af39}from'../aicore/utils/common-translations.js';export class AIReviewModeController extends _0x3c79b8{[_0x83de3a(0x1f5)];[_0x83de3a(0x1c3)];[_0x83de3a(0x1c5)];[_0x83de3a(0x1d5)];[_0x83de3a(0x1bf)];[_0x83de3a(0x1d1)]=!0x1;[_0x83de3a(0x1d8)]=null;static get[_0x83de3a(0x16d)](){return[_0x4690e5];}static get[_0x83de3a(0x1c2)](){const _0x5b997c=_0x83de3a;return _0x5b997c(0x185);}static get[_0x83de3a(0x1e4)](){return!0x0;}static get[_0x83de3a(0x1ce)](){return!0x0;}async[_0x83de3a(0x1ac)](){const _0x12f457=_0x83de3a;this[_0x12f457(0x1f5)]=this[_0x12f457(0x15e)][_0x12f457(0x14f)][_0x12f457(0x1e7)](_0x12f457(0x19f)),this[_0x12f457(0x1c3)]=this[_0x12f457(0x15e)][_0x12f457(0x14f)][_0x12f457(0x1e7)](_0x12f457(0x193)),this[_0x12f457(0x1c5)]=this[_0x12f457(0x15e)][_0x12f457(0x14f)][_0x12f457(0x1e7)](_0x12f457(0x179));const _0x209646=this[_0x12f457(0x15e)][_0x12f457(0x205)][_0x12f457(0x1e7)](_0x12f457(0x1be));if(_0x209646){for(const _0x6c632a of _0x290f7c)_0x12f457(0x166)===_0x6c632a['id']&&(_0x6c632a[_0x12f457(0x1bc)][0x0][_0x12f457(0x1c9)]=_0x209646);}const _0x619789=this[_0x12f457(0x16e)](_0x290f7c);this[_0x12f457(0x1d5)]=new _0x236ae6(_0x619789);const _0x2e029a=this[_0x12f457(0x1d5)][_0x12f457(0x1b1)][_0x12f457(0x1ae)](_0x201b0b=>_0x12f457(0x192)===_0x201b0b['id']);if(_0x2e029a)try{const _0x5925f1=await new _0x5cdfbe({'connector':this[_0x12f457(0x1f5)]})[_0x12f457(0x1d4)]();_0x2e029a[_0x12f457(0x1f4)]=_0x5925f1[_0x12f457(0x1d0)](_0x481c0d=>({..._0x481c0d,'description':this[_0x12f457(0x198)](_0x12f457(0x14e)+_0x481c0d['id'][_0x12f457(0x151)](),_0x481c0d[_0x12f457(0x1ab)])}));}catch(_0x309aea){this[_0x12f457(0x1d5)][_0x12f457(0x164)](_0x12f457(0x192)),this[_0x12f457(0x17e)](new _0x64c8bf(_0x12f457(0x18f),this,{'error':_0x309aea}));}this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x15d),()=>{const _0x118640=_0x12f457;this[_0x118640(0x1c3)][_0x118640(0x18e)](this[_0x118640(0x1d5)][_0x118640(0x1b1)]);}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x1f2),async(_0x1116e5,_0x3c6827)=>{const _0xd93d5f=_0x12f457,_0xaafc61=this[_0xd93d5f(0x1d5)][_0xd93d5f(0x1aa)](_0x3c6827['id']);if(_0xaafc61){this[_0xd93d5f(0x1ad)](this[_0xd93d5f(0x1d1)]),_0x3c6827[_0xd93d5f(0x1b8)]?this[_0xd93d5f(0x1bf)]=new _0x3ed01d(_0x3c6827[_0xd93d5f(0x1a2)][_0xd93d5f(0x1f9)],_0x3c6827[_0xd93d5f(0x1a2)][_0xd93d5f(0x1a4)],this[_0xd93d5f(0x1c5)][_0xd93d5f(0x182)](),_0xaafc61,this[_0xd93d5f(0x1f5)]):this[_0xd93d5f(0x1bf)]=new _0x9ce579(this[_0xd93d5f(0x1c5)][_0xd93d5f(0x182)](),_0xaafc61,this[_0xd93d5f(0x1f5)],_0x3c6827[_0xd93d5f(0x1e9)],_0x3c6827[_0xd93d5f(0x1a2)]),this[_0xd93d5f(0x1c3)][_0xd93d5f(0x1fc)](this[_0xd93d5f(0x1bf)][_0xd93d5f(0x1e5)],this[_0xd93d5f(0x1bf)][_0xd93d5f(0x18a)]),this[_0xd93d5f(0x1bf)]['on'](_0xd93d5f(0x1ee),(_0x49d7f3,_0x39790e)=>{const _0x37442c=_0xd93d5f;_0x37442c(0x1c9)===_0x39790e[_0x37442c(0x165)]||_0x37442c(0x1ea)===_0x39790e[_0x37442c(0x165)]?(this[_0x37442c(0x1c5)][_0x37442c(0x1d7)](),this[_0x37442c(0x1c3)][_0x37442c(0x1bd)](_0x39790e)):_0x37442c(0x15b)===_0x39790e[_0x37442c(0x165)]?this[_0x37442c(0x1c3)][_0x37442c(0x1c7)]():_0x37442c(0x180)===_0x39790e[_0x37442c(0x165)]?this[_0x37442c(0x1c3)][_0x37442c(0x150)]():_0x37442c(0x195)===_0x39790e[_0x37442c(0x165)]?this[_0x37442c(0x1c3)][_0x37442c(0x19d)]():_0x37442c(0x1ff)===_0x39790e[_0x37442c(0x165)]?(this[_0x37442c(0x1c3)][_0x37442c(0x189)](),this[_0x37442c(0x17e)](new _0x64c8bf(_0x37442c(0x1a0),this,this[_0x37442c(0x1bf)]?.[_0x37442c(0x1ef)]))):_0x37442c(0x1fb)===_0x39790e[_0x37442c(0x165)]?(this[_0x37442c(0x1c3)][_0x37442c(0x19c)](),this[_0x37442c(0x17e)](new _0x64c8bf(_0x37442c(0x1ca),this,this[_0x37442c(0x1bf)]?.[_0x37442c(0x1ef)]))):_0x37442c(0x14c)===_0x39790e[_0x37442c(0x165)]&&(this[_0x37442c(0x1bf)]&&this[_0x37442c(0x1bf)][_0x37442c(0x1cd)]>0x0?setTimeout(()=>{const _0x20b079=_0x37442c;this[_0x20b079(0x1bf)]?.[_0x20b079(0x202)]();},0x0):this[_0x37442c(0x1eb)](!0x0)),_0x37442c(0x180)!==_0x39790e[_0x37442c(0x165)]&&_0x37442c(0x1fb)!==_0x39790e[_0x37442c(0x165)]&&_0x37442c(0x1ff)!==_0x39790e[_0x37442c(0x165)]||this[_0x37442c(0x1bf)]?.[_0x37442c(0x1a3)]();}),this[_0xd93d5f(0x1bf)]['on'](_0xd93d5f(0x172),(_0x14d018,_0x4096eb)=>{const _0x15a788=_0xd93d5f;if(!this[_0x15a788(0x1bf)])throw new _0x64c8bf(_0x15a788(0x19b),this);const _0x21e74f=this[_0x15a788(0x1c5)][_0x15a788(0x203)](_0x4096eb[_0x15a788(0x191)][_0x15a788(0x200)],_0x4096eb[_0x15a788(0x191)][_0x15a788(0x19a)]);_0x4096eb[_0x15a788(0x1de)][_0x15a788(0x184)](_0x4096eb[_0x15a788(0x191)]['id'],_0x21e74f);}),this[_0xd93d5f(0x1bf)]['on'](_0xd93d5f(0x1c8),(_0x3b9081,_0x1ccad4)=>{const _0x462d5a=_0xd93d5f;for(const _0x4942a3 of _0x1ccad4[_0x462d5a(0x1c6)])this[_0x462d5a(0x1c3)][_0x462d5a(0x18b)](_0x4942a3);this[_0x462d5a(0x1c5)][_0x462d5a(0x1d6)](_0x1ccad4[_0x462d5a(0x1c6)],_0x1ccad4[_0x462d5a(0x1de)][_0x462d5a(0x1a6)]);}),this[_0xd93d5f(0x1bf)]['on'](_0xd93d5f(0x157),(_0x44304d,_0x5c4ca6)=>{const _0x5c89a4=_0xd93d5f;this[_0x5c89a4(0x1c3)][_0x5c89a4(0x1a7)](_0x5c4ca6[_0x5c89a4(0x17b)]['id'],_0x5c4ca6[_0x5c89a4(0x165)]);}),this[_0xd93d5f(0x1bf)]['on'](_0xd93d5f(0x1c1),(_0x397e5f,_0x56a7bd)=>{const _0x47922a=_0xd93d5f;this[_0x47922a(0x1c3)][_0x47922a(0x1a8)](_0x56a7bd[_0x47922a(0x17b)]['id']);const _0x4f48b1=this[_0x47922a(0x1c5)][_0x47922a(0x186)](_0x56a7bd[_0x47922a(0x17b)]['id']);if(!_0x4f48b1)return;if(_0x47922a(0x177)===this[_0x47922a(0x1d8)]){const _0x3d7829=this[_0x47922a(0x1c3)][_0x47922a(0x169)](_0x56a7bd[_0x47922a(0x17b)]['id']);_0x3d7829&&_0x4e3736(_0x3d7829[_0x47922a(0x160)](_0x47922a(0x1a1))||_0x3d7829);}else{if(_0x47922a(0x1c0)===this[_0x47922a(0x1d8)]){const _0x40da46={'target':_0x4f48b1[_0x47922a(0x1fd)],'viewportOffset':{'top':0x55,'left':0x0,'bottom':0x0,'right':0x0},'ancestorOffset':0x14,'alignToTop':!0x0};_0x29314f(_0x40da46);}}const _0x3523f9=this[_0x47922a(0x1c5)][_0x47922a(0x173)]();this[_0x47922a(0x1c3)][_0x47922a(0x1df)](_0x56a7bd[_0x47922a(0x17b)],_0x4f48b1[_0x47922a(0x1fd)],void 0x0,_0x47922a(0x1ba),_0x3523f9?.[_0x47922a(0x1b7)]?.[_0x47922a(0x1a9)]?.[_0x47922a(0x1e3)](),_0x3523f9?.['ui']?.[_0x47922a(0x1db)]);}),this[_0xd93d5f(0x1bf)]['on'](_0xd93d5f(0x1f1),()=>{const _0x486d23=_0xd93d5f;this[_0x486d23(0x1c3)][_0x486d23(0x16a)](),this[_0x486d23(0x1c3)][_0x486d23(0x152)]();});try{await this[_0xd93d5f(0x1bf)][_0xd93d5f(0x17d)]();}catch(_0x4317ef){_0x4317ef instanceof Error&&_0x4317ef[_0xd93d5f(0x171)][_0xd93d5f(0x19e)](_0xd93d5f(0x1cb))||(_0x4317ef instanceof _0x64c8bf?this[_0xd93d5f(0x17e)](_0x4317ef):this[_0xd93d5f(0x17e)](new _0x64c8bf(_0xd93d5f(0x1e6),this,{'error':_0x4317ef})));}}else this[_0xd93d5f(0x17e)](new _0x64c8bf(_0xd93d5f(0x17a),this,{'checkId':_0x3c6827['id']}));}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x1e1),()=>{const _0x24be8f=_0x12f457;this[_0x24be8f(0x1eb)]();}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x183),()=>{const _0x4dcf0f=_0x12f457;this[_0x4dcf0f(0x1eb)](!0x0);}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x1a5),()=>{const _0x58e0e0=_0x12f457;this[_0x58e0e0(0x1bf)]&&this[_0x58e0e0(0x1bf)][_0x58e0e0(0x1bb)]();}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x1b2),()=>{const _0x1c1676=_0x12f457;this[_0x1c1676(0x1eb)](!0x0);}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x201),()=>{const _0x2b6371=_0x12f457;if(!this[_0x2b6371(0x1bf)])return;const _0x16748c=this[_0x2b6371(0x1bf)][_0x2b6371(0x197)]();_0x16748c[_0x2b6371(0x163)]&&(this[_0x2b6371(0x1c5)][_0x2b6371(0x162)](_0x16748c[_0x2b6371(0x1d0)](_0x5c1e2a=>_0x5c1e2a['id'])),this[_0x2b6371(0x1bf)][_0x2b6371(0x1af)](),this[_0x2b6371(0x1bf)][_0x2b6371(0x1a3)]());}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x196),(_0xda447e,_0x1a81de)=>{const _0x2791c0=_0x12f457;this[_0x2791c0(0x1bf)]&&this[_0x2791c0(0x1bf)][_0x2791c0(0x1b0)](_0x1a81de['id'])&&(this[_0x2791c0(0x1c5)][_0x2791c0(0x162)]([_0x1a81de['id']]),this[_0x2791c0(0x1bf)][_0x2791c0(0x1f8)](_0x1a81de['id']),this[_0x2791c0(0x1c3)][_0x2791c0(0x152)](),this[_0x2791c0(0x1bf)][_0x2791c0(0x1a3)](_0x1a81de['id']));}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x1ec),(_0x51b1e7,_0x110ec4)=>{const _0x435a8e=_0x12f457;this[_0x435a8e(0x1bf)]&&this[_0x435a8e(0x1bf)][_0x435a8e(0x1b0)](_0x110ec4['id'])&&(this[_0x435a8e(0x1c5)][_0x435a8e(0x153)](_0x110ec4['id']),this[_0x435a8e(0x1bf)][_0x435a8e(0x175)](_0x110ec4['id']),this[_0x435a8e(0x1c3)][_0x435a8e(0x152)](),this[_0x435a8e(0x1bf)][_0x435a8e(0x1a3)](_0x110ec4['id']));}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x15a),(_0x59511c,_0x590e92)=>{const _0x55d2e5=_0x12f457;this[_0x55d2e5(0x1d1)]=_0x590e92['on'],this[_0x55d2e5(0x1ad)](this[_0x55d2e5(0x1d1)]);}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x1f6),async()=>{const _0x5cbcda=_0x12f457;this[_0x5cbcda(0x1bf)]&&(this[_0x5cbcda(0x1c5)][_0x5cbcda(0x188)](),this[_0x5cbcda(0x1bf)][_0x5cbcda(0x1f3)](this[_0x5cbcda(0x1c5)][_0x5cbcda(0x182)]()),await this[_0x5cbcda(0x1bf)][_0x5cbcda(0x16b)]());}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x1ed),(_0x3d37a6,_0x502691)=>{const _0x2d33d4=_0x12f457;this[_0x2d33d4(0x1bf)]&&(this[_0x2d33d4(0x1d8)]=_0x2d33d4(0x1c0),this[_0x2d33d4(0x1bf)][_0x2d33d4(0x1ed)](_0x502691['id']));}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x1f0),()=>{const _0x4c67fc=_0x12f457;this[_0x4c67fc(0x1bf)]&&this[_0x4c67fc(0x1bf)][_0x4c67fc(0x1f0)]();}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c5)][_0x12f457(0x1e0)],_0x12f457(0x1e8),(_0x2d4ed2,_0x21d31c)=>{const _0x12ce14=_0x12f457;if(!this[_0x12ce14(0x1bf)])return;this[_0x12ce14(0x1d8)]=_0x12ce14(0x177),this[_0x12ce14(0x1bf)][_0x12ce14(0x1ed)](_0x21d31c[_0x12ce14(0x17c)]);const _0x3c7d98=this[_0x12ce14(0x1bf)][_0x12ce14(0x1dc)](_0x21d31c[_0x12ce14(0x17c)]);if(!_0x3c7d98)return;const _0x392aa5=this[_0x12ce14(0x1c5)][_0x12ce14(0x173)]();this[_0x12ce14(0x1c3)][_0x12ce14(0x1df)](_0x3c7d98,_0x21d31c[_0x12ce14(0x1da)],_0x21d31c[_0x12ce14(0x154)],_0x12ce14(0x1ba),_0x392aa5?.[_0x12ce14(0x1b7)]?.[_0x12ce14(0x1a9)]?.[_0x12ce14(0x1e3)](),_0x392aa5?.['ui']?.[_0x12ce14(0x1db)]);}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c5)][_0x12f457(0x1e0)],_0x12f457(0x1b9),(_0x34998e,_0x55379c)=>{const _0x1806f1=_0x12f457;if(!this[_0x1806f1(0x1bf)])return;if(this[_0x1806f1(0x1bf)][_0x1806f1(0x174)]())return;const _0x51ea0b=this[_0x1806f1(0x1bf)][_0x1806f1(0x1dc)](_0x55379c[_0x1806f1(0x17c)]);if(!_0x51ea0b)return;const _0x209da0=this[_0x1806f1(0x1c5)][_0x1806f1(0x173)]();this[_0x1806f1(0x1c3)][_0x1806f1(0x1df)](_0x51ea0b,_0x55379c[_0x1806f1(0x1da)],_0x55379c[_0x1806f1(0x154)],_0x1806f1(0x156),_0x209da0?.[_0x1806f1(0x1b7)]?.[_0x1806f1(0x1a9)]?.[_0x1806f1(0x1e3)](),_0x209da0?.['ui']?.[_0x1806f1(0x1db)]);}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c5)][_0x12f457(0x1e0)],_0x12f457(0x1d3),()=>{const _0xc3ef0e=_0x12f457;if(!this[_0xc3ef0e(0x1bf)])return;this[_0xc3ef0e(0x1bf)][_0xc3ef0e(0x174)]()||this[_0xc3ef0e(0x1c3)][_0xc3ef0e(0x152)]();}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c5)][_0x12f457(0x1e0)],_0x12f457(0x159),(_0x46b254,_0x187185)=>{const _0x28b77e=_0x12f457;this[_0x28b77e(0x1bf)]&&this[_0x28b77e(0x1bf)][_0x28b77e(0x158)](_0x187185[_0x28b77e(0x17c)]);}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c5)][_0x12f457(0x1e0)],_0x12f457(0x1fa),(_0x2f6e04,_0x294b5f)=>{const _0x2de578=_0x12f457;this[_0x2de578(0x1bf)]&&this[_0x2de578(0x1bf)][_0x2de578(0x161)](_0x294b5f[_0x2de578(0x17c)]);});}[_0x83de3a(0x1eb)](_0x1e23e6=!0x1){const _0x2571c5=_0x83de3a;this[_0x2571c5(0x1bf)]&&(this[_0x2571c5(0x1bf)][_0x2571c5(0x16c)]||this[_0x2571c5(0x1bf)][_0x2571c5(0x1a3)](),this[_0x2571c5(0x1bf)][_0x2571c5(0x1f7)](),this[_0x2571c5(0x1bf)][_0x2571c5(0x1bb)](),this[_0x2571c5(0x1bf)]=void 0x0),_0x1e23e6&&this[_0x2571c5(0x1c3)][_0x2571c5(0x167)](),this[_0x2571c5(0x1c5)][_0x2571c5(0x188)](),this[_0x2571c5(0x1c5)][_0x2571c5(0x194)](),this[_0x2571c5(0x1d8)]=null;const _0x28377b=this[_0x2571c5(0x1c5)][_0x2571c5(0x173)]();_0x28377b&&_0x28377b[_0x2571c5(0x1b7)][_0x2571c5(0x1a9)][_0x2571c5(0x17b)](_0x1f5bde=>{const _0x13bb55=_0x2571c5,_0x52984d=_0x28377b[_0x13bb55(0x1b7)][_0x13bb55(0x1a9)][_0x13bb55(0x1b3)][_0x13bb55(0x18c)]();_0x1f5bde[_0x13bb55(0x1fe)](_0x13bb55(0x17f),_0x52984d),_0x1f5bde[_0x13bb55(0x1fe)](_0x13bb55(0x190),_0x52984d);});}[_0x83de3a(0x1ad)](_0x49c194){const _0x1de186=_0x83de3a,_0x4662ae=this[_0x1de186(0x1c5)][_0x1de186(0x173)]();_0x49c194?this[_0x1de186(0x1c3)][_0x1de186(0x170)]():this[_0x1de186(0x1c3)][_0x1de186(0x15c)](),_0x4662ae&&_0x4662ae[_0x1de186(0x1b7)][_0x1de186(0x1a9)][_0x1de186(0x17b)](_0x1931e5=>{const _0x1b5733=_0x1de186,_0x24b288=_0x4662ae[_0x1b5733(0x1b7)][_0x1b5733(0x1a9)][_0x1b5733(0x1b3)][_0x1b5733(0x18c)]();_0x1931e5[_0x1b5733(0x1fe)](_0x1b5733(0x17f),_0x24b288),_0x1931e5[_0x1b5733(0x1fe)](_0x1b5733(0x190),_0x24b288),_0x1931e5[_0x1b5733(0x204)](_0x49c194?_0x1b5733(0x17f):_0x1b5733(0x190),_0x24b288);});}[_0x83de3a(0x16e)](_0x2108bc){const _0x3f5691=_0x83de3a;return _0x2108bc[_0x3f5691(0x1d0)](_0x1532ec=>{const _0x532721=_0x3f5691,_0x1e3d6f=_0x532721(0x1b5)+_0x1532ec['id'][_0x532721(0x151)]()[_0x532721(0x15f)]('-','_'),_0x136c4a={..._0x1532ec,'title':this[_0x532721(0x198)](_0x1e3d6f+_0x532721(0x168),_0x1532ec[_0x532721(0x1e5)]),'description':this[_0x532721(0x198)](_0x1e3d6f+_0x532721(0x181),_0x1532ec[_0x532721(0x1ab)])};return _0x1532ec[_0x532721(0x1bc)]&&(_0x136c4a[_0x532721(0x1bc)]=_0x1532ec[_0x532721(0x1bc)][_0x532721(0x1d0)](_0x4081ec=>({..._0x4081ec,'label':this[_0x532721(0x198)](_0x1e3d6f+_0x532721(0x16f),_0x4081ec[_0x532721(0x1e2)]||''),'data':_0x4081ec[_0x532721(0x1c9)]?_0x4081ec[_0x532721(0x1c9)][_0x532721(0x1d0)](_0x2825a7=>({..._0x2825a7,'label':this[_0x532721(0x198)](_0x1e3d6f+_0x532721(0x176)+_0x2825a7['id'][_0x532721(0x151)](),_0x2825a7[_0x532721(0x1e2)])})):void 0x0}))),_0x136c4a;});}[_0x83de3a(0x198)](_0x2eb5f4,_0x517dc8){const _0x309497=_0x83de3a,_0x2e3fa4=this[_0x309497(0x15e)][_0x309497(0x14d)],_0x92350c=_0x22af39(_0x2e3fa4,_0x2eb5f4);return _0x92350c===_0x2eb5f4?_0x517dc8:_0x92350c;}[_0x83de3a(0x17e)](_0x56c8d5){const _0x3b126a=_0x83de3a;_0x174874(_0x56c8d5[_0x3b126a(0x171)]),_0x56c8d5[_0x3b126a(0x171)][_0x3b126a(0x18d)](_0x3b126a(0x18f))?this[_0x3b126a(0x1c3)][_0x3b126a(0x1dd)]():this[_0x3b126a(0x1c3)][_0x3b126a(0x189)]();}}function _0x5a5a(){const _0xf13efa=['setCheckResultTitle','domElement','removeClass','error-general','contentInitial','acceptAllChanges','forceReadyState','diffContent','addClass','config','aborted','locale','AI_MODEL_DESCRIPTION_','plugins','showActionsWhenResultIsReady','toUpperCase','hideChangeBalloon','rejectChange','domEvent','1125aCLuLH','hover','reviewCheckResultChangeStatusUpdated','markChangeAsOutdated','changeMarkerRemoved','toggleDiff','finished','showDiffInBalloon','getReviewCheckList','context','replaceAll','closest','markChangeAsPending','applyChange','length','removeCheckById','status','translate','showReviewCheckList','_TITLE','getChangeElement','resetActiveStateInResults','restart','hasModifications','requires','_translateReviewChecks','_OPTIONS_LABEL','hideDiffInBalloon','message','reviewCheckResultAdded','getEditor','isAnyChangeActivated','markChangeAsRejected','_OPTIONS_DATA_','content','465XqmzrX','AIReviewModeEditing','ai-review-mode-source-check-not-found','change','changeId','start','_logError','ck-ai-review-mode-diff','ready','_DESCRIPTION','getDocumentData','leaveReviewModeResultList','addResultChanges','AIReviewModeController','getMarkerElementForChange','7ELfELa','clearAllMarkers','showGeneralResultsErrorView','subTitle','showCheckRunResult','getRoot','startsWith','setAvailableChecks','ai-review-mode-models-unable-to-retrieve','ck-ai-review-mode-highlights','result','custom','AIReviewModeUI','switchToEdit','unmodified','acceptChange','getActiveChanges','_getTranslationWithDefault','129516spUAFm','contentNew','ai-review-mode-no-current-check-run','showChunkErrorView','showNoChangesView','includes','AIConnector','ai-review-mode-check-run-general-error','.ck-ai-review-mode__check-run-result','args','sendRating','model','abortReviewStream','documentData','updateChangeState','setActiveStateInResults','view','getCheckById','description','init','_onDiffChange','find','markAllChangesAsAccepted','isChangeActive','checks','finishReview','document','2130UrnlAc','AI_REVIEW_CHECK_','800994ZnwyIo','editing','isCustom','changeMarkerHovered','click','abort','options','showCheckRunResults','ai.reviewMode.translations','_currentReviewCheckRun','panel','reviewCheckResultActivated','pluginName','_aiReviewModeUi','listenTo','_aiReviewModeEditing','changes','showReviewCompletedView','reviewCheckResultReady','data','ai-review-mode-check-run-chunk-error','ai-request-aborted','92362jvzVxK','processedResultsCount','isPremiumPlugin','1708504KIugFU','map','_isDiffOn','3272704EArFFa','changeMarkerBlurred','getAll','_aiReviewCheckList','markChangePositionInEditorContent','switchToReadOnly','_changeActivationSource','7836jjiEaR','markerElement','viewportOffset','getChangeById','showGeneralReviewModeErrorView','source','showChangeBalloon','emitter','leaveReviewMode','label','getDomRoot','isOfficialPlugin','title','ai-review-mode-check-run-failed','get','changeMarkerClick','params','loading','_onReviewModeRunLeave','dismissChange','activateChange','reviewCheckRunUpdated','currentError','deactivateChange','reviewCheckResultDeactivated','runReviewCheck','updateDocumentData','models','_aiConnector','retryReview','stopListening','markChangeAsAccepted','prompt','changeMarkerRestored','error-chunk'];_0x5a5a=function(){return _0xf13efa;};return _0x5a5a();}
|