@ckeditor/ckeditor5-ai 47.6.1-alpha.1 → 47.6.2-alpha.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/LICENSE.md +0 -4
- package/build/ai.js +2 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +1 -0
- package/package.json +15 -16
- 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.d.ts +15 -156
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.d.ts +2 -0
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
- package/build/966.ai.js +0 -5
- package/build/translations/en.js +0 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x4c8b(){const _0x1e076f=['items','map','AI\x20Assistant','change','_getResolvedCommandsDefinitions','setSelection','_aiAssistantController','includes','editor','selection','panelView','domainLimit','aiLicenseKeyDomainLimit','_initView','config','_createAIAssistantUIButton','REPLACE','announce','_getMenuBarGroupButtons','fieldView','getSelectedBlocks','aiLicenseKeyExpired','expired','525572HkYRhj','once','ai.assistant.commands','AI\x20Commands','_populateMenuBarMenu','groupId','406moOXDj','AIAssistantUI','custom','isOn','prompt','menuPanelClass','showFakeVisualSelection','trim','_formView','invalid','_forceMarkersCopy','getRanges','hideFakeVisualSelection','get','_dialog','show','enabledCommandsIds','532102QODCDn','update','editing','hideUI','buttons','getData','ai.assistant.useTheme','EDITOR_TOP_SIDE','render','61600cRSDBl','body','currentContext','view','21IgRpWO','getSelectedElement','Generated\x20content:\x20%0','componentFactory','replace','listenTo','42396SXALDi','groupLabel','locale','_onExecute','isOfficialPlugin','isPremiumPlugin','document','values','Error\x20during\x20AI\x20content\x20generation:\x20%0','licenseKey','aiLicenseKeyValid','_uiCssClasses','change:isProcessing','isCollapsed','DataTransfer','forEach','buttonView','define','destroy','queryView','INSERT','ai-commands-config-order-collision','menuBar:aiAssistant','comment','updateView','14710csdNKZ','ck-ai-commands-dropdown\x20','add','from','_licenseKeyCheckInterval','aiAssistant','AIAssistant','children','polite','execute','1595IrnNqy','sort','insertContentBelow','source','plugins','_initAriaAiStatusChangeAnnouncements','<p>','aiLicenseKeyInvalid','hide','showUI','copy','bind','splice','reset','wasMoved','evaluationLimit','rawHtml','change:value','menuitemcheckbox','getLimitElement','tableOfContents','focus','_aiAdapter','schema','requires','textAdapter','ai.assistant.contentAreaCssClass','updatePosition','change:isError','546fCSOSf','\x20ck-ai-assistant-ui_theme','push','aiLicenseKeyEvaluationLimit','commands','order','length','fire','errorView','isFlat','isEnabled','init','_showLicenseError','command:','3856284aFBXhx','requiresContent','featureNotAllowed','_commandDefinitions','pluginName','replaceContent','label','model','set','aiLicenseKeyUsageLimit','change:enabledCommandsIds','showAIAssistant','ck-ai-assistant-ui','menuView','128830hglIol','</p>','insertContent','AI\x20is\x20writing','ck-ai-assistant-button\x20','delegate','ai.assistant.disabledElements','text/html','aiLicenseKeyNotAllowed','filter','contentArea','promptView','menuBar:aiCommands','addMany','aiCommands','text','media','usageLimit'];_0x4c8b=function(){return _0x1e076f;};return _0x4c8b();}const _0x5688ee=_0x4b5a;(function(_0x1ab848,_0x2aaaaa){const _0x5517fd=_0x4b5a,_0x28846c=_0x1ab848();while(!![]){try{const _0x3f0713=parseInt(_0x5517fd(0x26a))/0x1+-parseInt(_0x5517fd(0x257))/0x2+parseInt(_0x5517fd(0x264))/0x3*(-parseInt(_0x5517fd(0x240))/0x4)+parseInt(_0x5517fd(0x283))/0x5*(-parseInt(_0x5517fd(0x1fb))/0x6)+parseInt(_0x5517fd(0x246))/0x7*(parseInt(_0x5517fd(0x260))/0x8)+-parseInt(_0x5517fd(0x209))/0x9+-parseInt(_0x5517fd(0x217))/0xa*(-parseInt(_0x5517fd(0x28d))/0xb);if(_0x3f0713===_0x2aaaaa)break;else _0x28846c['push'](_0x28846c['shift']());}catch(_0x36be01){_0x28846c['push'](_0x28846c['shift']());}}}(_0x4c8b,0x73f97));import{Plugin as _0x117540}from'ckeditor5/src/core.js';import{IconMagicWand as _0x56170f,IconRobotPencil as _0x240030}from'ckeditor5/src/icons.js';import{first as _0x1f2bfa,CKEditorError as _0x40e8b3}from'ckeditor5/src/utils.js';import{createDropdown as _0x3445a6,addMenuToDropdown as _0x2a07d0,ButtonView as _0x3101bd,MenuBarMenuListItemButtonView as _0x710b12,Dialog as _0x525043,DialogViewPosition as _0x46a715,MenuBarMenuView as _0x3b1b58,MenuBarMenuListView as _0x32ebae,MenuBarMenuListItemView as _0x324fd6}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x3c641a,UNGROUPED_COMMANDS_GROUP_ID as _0x3b0e23}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x217c4}from'./aiassistantediting.js';import{AIAdapter as _0x4dfd02}from'./adapters/aiadapter.js';import{getTranslation as _0x18d655}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x21fad1}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x3f19dc}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x10a642}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x2b3a45}from'./ui/form/aiformtoolbarview.js';import'../../theme/aiassistant/ai.css';import'../../theme/aiassistant/ai-dropdown.css';import'../../theme/aiassistant/ai-form.css';function _0x4b5a(_0x3176ff,_0x57a3a0){const _0x4c8b01=_0x4c8b();return _0x4b5a=function(_0x4b5a4f,_0x5e02e9){_0x4b5a4f=_0x4b5a4f-0x1e9;let _0x66eff7=_0x4c8b01[_0x4b5a4f];return _0x66eff7;},_0x4b5a(_0x3176ff,_0x57a3a0);}const w=globalThis[_0x5688ee(0x278)];import{ClipboardMarkersUtils as _0x4b1fef}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x442af1,ViewDataTransfer as _0x21413b}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x117540{[_0x5688ee(0x273)];[_0x5688ee(0x287)];[_0x5688ee(0x254)];[_0x5688ee(0x24e)];[_0x5688ee(0x1f4)];[_0x5688ee(0x22f)];[_0x5688ee(0x275)]='';static get[_0x5688ee(0x20d)](){const _0x25e34d=_0x5688ee;return _0x25e34d(0x247);}static get[_0x5688ee(0x26e)](){return!0x0;}static get[_0x5688ee(0x26f)](){return!0x0;}static get[_0x5688ee(0x1f6)](){return[_0x4b1fef,_0x217c4,_0x4dfd02,_0x525043];}constructor(_0x2b1fd3){const _0x4353fb=_0x5688ee;super(_0x2b1fd3),_0x2b1fd3[_0x4353fb(0x237)][_0x4353fb(0x27b)](_0x4353fb(0x21d),[_0x4353fb(0x227),_0x4353fb(0x1ee),_0x4353fb(0x1f2)]),_0x2b1fd3[_0x4353fb(0x237)][_0x4353fb(0x27b)](_0x4353fb(0x1f8),''),_0x2b1fd3[_0x4353fb(0x237)][_0x4353fb(0x27b)](_0x4353fb(0x25d),!0x0),this[_0x4353fb(0x275)]=_0x4353fb(0x215)+(_0x2b1fd3[_0x4353fb(0x237)][_0x4353fb(0x253)](_0x4353fb(0x25d))?_0x4353fb(0x1fc):'');}[_0x5688ee(0x206)](){const _0x523554=_0x5688ee,{editor:_0x3208dc}=this;this[_0x523554(0x1f4)]=_0x3208dc[_0x523554(0x291)][_0x523554(0x253)](_0x4dfd02),this[_0x523554(0x254)]=_0x3208dc[_0x523554(0x291)][_0x523554(0x253)](_0x525043),this[_0x523554(0x24e)]=null,this[_0x523554(0x20c)]=this[_0x523554(0x22d)]();const _0x33e1fb=new _0x21fad1(_0x3208dc,Array[_0x523554(0x286)](this[_0x523554(0x20c)][_0x523554(0x271)]()));_0x3208dc[_0x523554(0x1ff)][_0x523554(0x285)](_0x523554(0x214),_0x33e1fb),_0x3208dc['ui'][_0x523554(0x267)][_0x523554(0x285)](_0x523554(0x225),_0x3b70d8=>{const _0x1d3d3b=_0x523554,_0x153db8=_0x3445a6(_0x3b70d8);return _0x153db8[_0x1d3d3b(0x211)]({'class':_0x1d3d3b(0x284)+this[_0x1d3d3b(0x275)]}),_0x153db8[_0x1d3d3b(0x27a)][_0x1d3d3b(0x211)]({'label':_0x18d655(_0x3b70d8,_0x1d3d3b(0x243)),'icon':_0x56170f,'tooltip':!0x0}),_0x153db8['on'](_0x1d3d3b(0x28c),_0x1062b0=>this[_0x1d3d3b(0x26d)](_0x1062b0[_0x1d3d3b(0x290)]['id'])),_0x2a07d0(_0x153db8,_0x3208dc['ui'][_0x1d3d3b(0x263)][_0x1d3d3b(0x261)],function(_0x5144ae){const _0x4cf2ff=_0x1d3d3b,_0xa6ae47=_0x3c641a(_0x5144ae[_0x4cf2ff(0x237)][_0x4cf2ff(0x253)](_0x4cf2ff(0x242)),_0x5144ae[_0x4cf2ff(0x26c)]),_0x5749d1=B(_0x5144ae,_0xa6ae47)[_0x4cf2ff(0x220)](_0x4950ca=>_0x4950ca[_0x4cf2ff(0x1ff)][_0x4cf2ff(0x201)]);if(0x1===_0x5749d1[_0x4cf2ff(0x201)])return B(_0x5144ae,_0x5749d1[0x0][_0x4cf2ff(0x1ff)])[_0x4cf2ff(0x22a)](_0x59755b=>({'id':_0x59755b['id'],'label':_0x59755b[_0x4cf2ff(0x20f)]}));return _0x5749d1[_0x4cf2ff(0x22a)](_0x318a4f=>{const _0x95d50a=_0x4cf2ff,{groupId:_0x4db85c,groupLabel:_0x3a61d2,commands:_0x37c446}=_0x318a4f,_0x1b9361=B(_0x5144ae,_0x37c446)[_0x95d50a(0x22a)](_0x4893c9=>({'id':_0x4893c9['id'],'label':_0x4893c9[_0x95d50a(0x20f)]}));return{'id':_0x4db85c,'menu':_0x3a61d2||_0x4db85c,'children':_0x1b9361};});}(_0x3208dc),{'ariaLabel':_0x18d655(_0x3b70d8,_0x1d3d3b(0x243))}),_0x153db8[_0x1d3d3b(0x216)][_0x1d3d3b(0x24b)]=_0x1d3d3b(0x284)+this[_0x1d3d3b(0x275)],_0x33e1fb['on'](_0x1d3d3b(0x213),_0x239dae),_0x153db8[_0x1d3d3b(0x216)][_0x1d3d3b(0x241)](_0x1d3d3b(0x25f),_0x239dae),_0x153db8;function _0x239dae(){const _0x4e6f4f=_0x1d3d3b;_0x153db8[_0x4e6f4f(0x205)]=_0x33e1fb[_0x4e6f4f(0x256)][_0x4e6f4f(0x201)]>0x0;for(const _0xd7bfc2 of _0x153db8[_0x4e6f4f(0x216)][_0x4e6f4f(0x25b)])_0xd7bfc2[_0x4e6f4f(0x205)]=_0x33e1fb[_0x4e6f4f(0x256)][_0x4e6f4f(0x230)](_0xd7bfc2['id']);}}),_0x3208dc['ui'][_0x523554(0x267)][_0x523554(0x285)](_0x523554(0x223),_0x2352f3=>{const _0x34af0f=_0x523554,_0x5e6403=new _0x3b1b58(_0x2352f3);_0x5e6403[_0x34af0f(0x27a)][_0x34af0f(0x211)]({'label':_0x18d655(_0x2352f3,_0x34af0f(0x243)),'icon':_0x56170f}),_0x5e6403[_0x34af0f(0x1e9)](_0x34af0f(0x205))['to'](_0x33e1fb,_0x34af0f(0x256),_0x2341e7=>_0x2341e7[_0x34af0f(0x201)]>0x0);const _0x544daf=_0x3c641a(_0x3208dc[_0x34af0f(0x237)][_0x34af0f(0x253)](_0x34af0f(0x242)),_0x2352f3);return this[_0x34af0f(0x244)](_0x33e1fb,_0x5e6403,_0x544daf,_0x24091e=>this[_0x34af0f(0x26d)](_0x24091e)),_0x5e6403;}),_0x3208dc['ui'][_0x523554(0x267)][_0x523554(0x285)](_0x523554(0x288),()=>{const _0x541dca=_0x523554,_0x554784=this[_0x541dca(0x238)](_0x3101bd);return _0x554784[_0x541dca(0x211)]({'tooltip':!0x0,'class':_0x541dca(0x21b)+this[_0x541dca(0x275)]}),_0x554784;}),_0x3208dc['ui'][_0x523554(0x267)][_0x523554(0x285)](_0x523554(0x280),()=>{const _0x3a39a4=_0x523554,_0x335efa=this[_0x3a39a4(0x238)](_0x710b12);return _0x335efa[_0x3a39a4(0x211)]({'role':_0x3a39a4(0x1f0)}),_0x335efa;}),this[_0x523554(0x273)]=this[_0x523554(0x231)][_0x523554(0x237)][_0x523554(0x253)](_0x523554(0x273));const _0x38fda1=this[_0x523554(0x231)];this[_0x523554(0x287)]=setInterval(()=>{const _0x445669=_0x523554;let _0x5c0a50;for(const _0x429439 in _0x38fda1){const _0x30f0c6=_0x429439,_0x336721=_0x38fda1[_0x30f0c6];if(_0x445669(0x274)==_0x336721||_0x445669(0x294)==_0x336721||_0x445669(0x23e)==_0x336721||_0x445669(0x235)==_0x336721||_0x445669(0x21f)==_0x336721||_0x445669(0x1fe)==_0x336721||_0x445669(0x212)==_0x336721){delete _0x38fda1[_0x30f0c6],_0x5c0a50=_0x336721,clearInterval(this[_0x445669(0x287)]),this[_0x445669(0x287)]=void 0x0;break;}}_0x445669(0x294)==_0x5c0a50&&_0x38fda1[_0x445669(0x207)](_0x445669(0x24f)),_0x445669(0x23e)==_0x5c0a50&&_0x38fda1[_0x445669(0x207)](_0x445669(0x23f)),_0x445669(0x235)==_0x5c0a50&&_0x38fda1[_0x445669(0x207)](_0x445669(0x234)),_0x445669(0x21f)==_0x5c0a50&&_0x38fda1[_0x445669(0x207)](_0x445669(0x20b),_0x445669(0x289)),_0x445669(0x1fe)==_0x5c0a50&&_0x38fda1[_0x445669(0x207)](_0x445669(0x1ed)),_0x445669(0x212)==_0x5c0a50&&_0x38fda1[_0x445669(0x207)](_0x445669(0x228));},0x3e8);}[_0x5688ee(0x27c)](){const _0x1ebaa8=_0x5688ee;super[_0x1ebaa8(0x27c)](),this[_0x1ebaa8(0x287)]&&clearInterval(this[_0x1ebaa8(0x287)]);}[_0x5688ee(0x296)](_0x42036c='',_0x38f75c='',_0x462e81=_0x5688ee(0x248)){const _0x50ff86=_0x5688ee,_0x2f5d24=this[_0x50ff86(0x231)],_0x30aaf2=_0x2f5d24[_0x50ff86(0x259)][_0x50ff86(0x263)],_0x584491=_0x2f5d24[_0x50ff86(0x291)][_0x50ff86(0x253)](_0x217c4),_0x470025=_0x2f5d24[_0x50ff86(0x291)][_0x50ff86(0x253)](_0x4b1fef);_0x584491[_0x50ff86(0x24c)]();const _0x1f12c0=new w(),_0x6bdaa0=new ClipboardEvent(_0x50ff86(0x297),{'clipboardData':_0x1f12c0}),_0x104ee1=new _0x21413b(_0x1f12c0),_0x71262b=new _0x442af1(_0x30aaf2,_0x6bdaa0,{'dataTransfer':_0x104ee1});_0x470025[_0x50ff86(0x250)](_0x50ff86(0x281),()=>{const _0x98fdab=_0x50ff86;_0x30aaf2[_0x98fdab(0x270)][_0x98fdab(0x202)](_0x98fdab(0x297),_0x71262b);}),this[_0x50ff86(0x24e)]||(this[_0x50ff86(0x236)](),this[_0x50ff86(0x22f)]=new _0x3f19dc(_0x2f5d24,this[_0x50ff86(0x1f4)][_0x50ff86(0x1f7)],this[_0x50ff86(0x24e)]));let _0x48bd8f=_0x104ee1[_0x50ff86(0x25c)](_0x50ff86(0x21e));const _0x234ee4=_0x2f5d24[_0x50ff86(0x210)][_0x50ff86(0x270)][_0x50ff86(0x232)],_0x4dbbaf=Array[_0x50ff86(0x286)](_0x234ee4[_0x50ff86(0x251)]());0x1===_0x4dbbaf[_0x50ff86(0x201)]&&_0x4dbbaf[0x0][_0x50ff86(0x204)]&&!_0x234ee4[_0x50ff86(0x265)]()&&''!==_0x48bd8f[_0x50ff86(0x268)](/ /g,'')[_0x50ff86(0x24d)]()&&(_0x48bd8f=_0x50ff86(0x293)+_0x48bd8f+_0x50ff86(0x218)),this[_0x50ff86(0x22f)][_0x50ff86(0x282)]({'actionId':_0x462e81,'query':_0x42036c,'htmlContent':_0x48bd8f,'label':_0x38f75c,'mainActionLabel':_0x2b3a45[_0x2f5d24[_0x50ff86(0x210)][_0x50ff86(0x270)][_0x50ff86(0x232)][_0x50ff86(0x277)]?_0x50ff86(0x27e):_0x50ff86(0x239)]}),_0x50ff86(0x288)!==this[_0x50ff86(0x254)]['id']?this[_0x50ff86(0x254)][_0x50ff86(0x255)]({'id':_0x50ff86(0x288),'icon':_0x240030,'title':_0x18d655(this[_0x50ff86(0x231)][_0x50ff86(0x26c)],_0x50ff86(0x22b)),'content':this[_0x50ff86(0x24e)],'position':_0x46a715[_0x50ff86(0x25e)],'onShow':()=>{const _0x5cd11b=_0x50ff86;this[_0x5cd11b(0x24e)][_0x5cd11b(0x1f3)]();},'onHide':()=>{const _0x23f2d6=_0x50ff86;this[_0x23f2d6(0x22f)][_0x23f2d6(0x1eb)](),_0x584491[_0x23f2d6(0x252)]();}}):this[_0x50ff86(0x254)][_0x50ff86(0x263)][_0x50ff86(0x1ec)]||this[_0x50ff86(0x254)][_0x50ff86(0x263)][_0x50ff86(0x1f9)]();}[_0x5688ee(0x25a)](){const _0x57bb82=_0x5688ee;this[_0x57bb82(0x254)][_0x57bb82(0x295)]();}[_0x5688ee(0x22d)](){const _0x21573c=_0x5688ee,_0xf5527a=new Map(),_0x59f6f0=_0x3c641a(this[_0x21573c(0x231)][_0x21573c(0x237)][_0x21573c(0x253)](_0x21573c(0x242)),this[_0x21573c(0x231)][_0x21573c(0x26c)]);for(const _0x109f1d of _0x59f6f0)for(const _0x27fee8 of _0x109f1d[_0x21573c(0x1ff)])_0xf5527a[_0x21573c(0x211)](_0x27fee8['id'],{..._0x27fee8,'groupId':_0x109f1d[_0x21573c(0x245)],'groupLabel':_0x109f1d[_0x21573c(0x26b)]||_0x109f1d[_0x21573c(0x245)]});return _0xf5527a;}[_0x5688ee(0x238)](_0x2024da){const _0x34de32=_0x5688ee,_0x4ca0fb=this[_0x34de32(0x231)],_0x709842=_0x4ca0fb[_0x34de32(0x1ff)][_0x34de32(0x253)](_0x34de32(0x214)),_0x396d7d=new _0x2024da(_0x4ca0fb[_0x34de32(0x26c)]);return _0x396d7d[_0x34de32(0x211)]({'label':_0x18d655(_0x4ca0fb[_0x34de32(0x26c)],_0x34de32(0x22b)),'icon':_0x240030,'isToggleable':!0x0}),_0x396d7d[_0x34de32(0x1e9)](_0x34de32(0x205))['to'](_0x709842),_0x396d7d[_0x34de32(0x1e9)](_0x34de32(0x249))['to'](this[_0x34de32(0x254)],'id',_0x3b3df0=>_0x34de32(0x288)===_0x3b3df0),this[_0x34de32(0x269)](_0x396d7d,_0x34de32(0x28c),()=>{const _0x55510b=_0x34de32;_0x396d7d[_0x55510b(0x249)]?this[_0x55510b(0x25a)]():_0x709842[_0x55510b(0x28c)]();}),_0x396d7d;}[_0x5688ee(0x236)](){const _0x48abe9=_0x5688ee,_0x2d3369=this[_0x48abe9(0x231)][_0x48abe9(0x291)][_0x48abe9(0x253)](_0x217c4);this[_0x48abe9(0x24e)]=new _0x10a642(this[_0x48abe9(0x231)][_0x48abe9(0x26c)],this[_0x48abe9(0x275)],this[_0x48abe9(0x231)][_0x48abe9(0x237)][_0x48abe9(0x253)](_0x48abe9(0x1f8))),this[_0x48abe9(0x24e)]['on'](_0x48abe9(0x1ef),()=>{const _0x254e14=_0x48abe9;this[_0x254e14(0x254)][_0x254e14(0x263)][_0x254e14(0x1ec)]||this[_0x254e14(0x254)][_0x254e14(0x263)][_0x254e14(0x1f9)]();}),this[_0x48abe9(0x24e)][_0x48abe9(0x222)][_0x48abe9(0x27d)][_0x48abe9(0x23c)]['on'](_0x48abe9(0x258),()=>{const _0x308d7c=_0x48abe9;this[_0x308d7c(0x254)][_0x308d7c(0x263)][_0x308d7c(0x1ec)]||this[_0x308d7c(0x254)][_0x308d7c(0x263)][_0x308d7c(0x1f9)]();}),this[_0x48abe9(0x269)](this[_0x48abe9(0x24e)],_0x48abe9(0x20e),()=>{const _0x29551f=_0x48abe9;_0x2d3369[_0x29551f(0x219)](this[_0x29551f(0x22f)][_0x29551f(0x262)]),this[_0x29551f(0x25a)]();}),this[_0x48abe9(0x269)](this[_0x48abe9(0x24e)],_0x48abe9(0x28f),()=>{const _0x3b0cdc=_0x48abe9;_0x2d3369[_0x3b0cdc(0x28f)](this[_0x3b0cdc(0x22f)][_0x3b0cdc(0x262)]),this[_0x3b0cdc(0x25a)]();}),this[_0x48abe9(0x292)]();}[_0x5688ee(0x292)](){const _0x5b4e1a=_0x5688ee,{locale:_0x3782c7,ui:{ariaLiveAnnouncer:_0x4eafe4}}=this[_0x5b4e1a(0x231)];this[_0x5b4e1a(0x24e)][_0x5b4e1a(0x221)]['on'](_0x5b4e1a(0x276),(_0x5c517c,_0x330e42,_0x5243db)=>{const _0x9b7e78=_0x5b4e1a,_0x21560a=this[_0x9b7e78(0x22f)][_0x9b7e78(0x262)];_0x5243db?_0x4eafe4[_0x9b7e78(0x23a)](_0x18d655(_0x3782c7,_0x9b7e78(0x21a))):_0x21560a&&_0x4eafe4[_0x9b7e78(0x23a)](_0x18d655(_0x3782c7,_0x9b7e78(0x266),_0x21560a),{'politeness':_0x9b7e78(0x28b),'isUnsafeHTML':!0x0});}),this[_0x5b4e1a(0x24e)]['on'](_0x5b4e1a(0x1fa),(_0x3c2dcc,_0x17d845,_0x5e4814)=>{const _0x3763e0=_0x5b4e1a;if(_0x5e4814){const _0x3d07fd=this[_0x3763e0(0x24e)][_0x3763e0(0x203)][_0x3763e0(0x226)];_0x4eafe4[_0x3763e0(0x23a)](_0x18d655(_0x3782c7,_0x3763e0(0x272),_0x3d07fd));}});}[_0x5688ee(0x26d)](_0x5062f6){const _0x68897f=_0x5688ee,_0x4fe032=this[_0x68897f(0x20c)][_0x68897f(0x253)](_0x5062f6),_0x97161e=this[_0x68897f(0x231)],_0x82dbbb=_0x97161e[_0x68897f(0x210)][_0x68897f(0x270)][_0x68897f(0x232)],_0x131922=_0x97161e[_0x68897f(0x1ff)][_0x68897f(0x253)](_0x68897f(0x214)),_0x4983c6=_0x97161e[_0x68897f(0x291)][_0x68897f(0x253)](_0x217c4),_0x50a500=''+(_0x4fe032[_0x68897f(0x245)]!==_0x3b0e23?_0x4fe032[_0x68897f(0x26b)]+':\x20':'')+_0x4fe032[_0x68897f(0x20f)];if(!0x1!==_0x4fe032[_0x68897f(0x20a)]&&_0x82dbbb[_0x68897f(0x277)]){const _0x1d61fe=_0x1f2bfa(_0x82dbbb[_0x68897f(0x23d)]())||_0x97161e[_0x68897f(0x210)][_0x68897f(0x1f5)][_0x68897f(0x1f1)](_0x82dbbb);_0x97161e[_0x68897f(0x210)][_0x68897f(0x22c)](_0x42a6ba=>{const _0x5a6586=_0x68897f;_0x42a6ba[_0x5a6586(0x22e)](_0x1d61fe,'in');});}_0x4983c6[_0x68897f(0x24c)](),_0x131922[_0x68897f(0x28c)](_0x4fe032[_0x68897f(0x24a)],_0x50a500,_0x68897f(0x208)+_0x5062f6);}[_0x5688ee(0x244)](_0x49dae3,_0x4ae05c,_0x16dfba,_0x12f2a1){const _0x55e623=_0x5688ee,_0x2ef628=this[_0x55e623(0x231)],_0x1d44af=_0x2ef628[_0x55e623(0x26c)],_0x980442=new _0x32ebae(_0x1d44af),_0x1215de=B(_0x2ef628,_0x16dfba)[_0x55e623(0x220)](_0x38734a=>_0x38734a[_0x55e623(0x1ff)][_0x55e623(0x201)]);0x1===_0x1215de[_0x55e623(0x201)]?this[_0x55e623(0x23b)]({'command':_0x49dae3,'commands':_0x1215de[0x0][_0x55e623(0x1ff)],'parentMenuView':_0x4ae05c,'onExecute':_0x12f2a1})[_0x55e623(0x279)](_0x328a9d=>_0x980442[_0x55e623(0x229)][_0x55e623(0x285)](_0x328a9d)):_0x1215de[_0x55e623(0x279)](({groupId:_0x49a7b4,groupLabel:_0x5cf9f2,commands:_0x2cd79a})=>{const _0x22f6da=_0x55e623,_0x519dea=new _0x324fd6(_0x1d44af,_0x4ae05c),_0x182461=new _0x3b1b58(_0x1d44af),_0x15137c=new _0x32ebae(_0x1d44af),_0x5435bb=this[_0x22f6da(0x23b)]({'command':_0x49dae3,'commands':_0x2cd79a,'parentMenuView':_0x182461,'onExecute':_0x12f2a1});_0x182461[_0x22f6da(0x27a)][_0x22f6da(0x211)]({'label':_0x5cf9f2||_0x49a7b4}),_0x182461[_0x22f6da(0x21c)](_0x22f6da(0x28c))['to'](_0x4ae05c),_0x15137c[_0x22f6da(0x229)][_0x22f6da(0x224)](_0x5435bb),_0x182461[_0x22f6da(0x233)][_0x22f6da(0x28a)][_0x22f6da(0x285)](_0x15137c),_0x519dea[_0x22f6da(0x28a)][_0x22f6da(0x285)](_0x182461),_0x980442[_0x22f6da(0x229)][_0x22f6da(0x285)](_0x519dea);}),_0x4ae05c[_0x55e623(0x233)][_0x55e623(0x28a)][_0x55e623(0x285)](_0x980442);}[_0x5688ee(0x23b)]({command:_0x29aa17,commands:_0x445999,parentMenuView:_0x2083df,onExecute:_0x928a1b}){const _0x73b74a=_0x5688ee,_0x30d5af=this[_0x73b74a(0x231)],_0x513ebf=_0x30d5af[_0x73b74a(0x26c)];return B(_0x30d5af,_0x445999)[_0x73b74a(0x22a)](_0x4e24cc=>{const _0x55515a=_0x73b74a,_0x31542e=new _0x324fd6(_0x513ebf,_0x2083df),_0x539396=new _0x710b12(_0x513ebf);return _0x539396[_0x55515a(0x211)]({'label':_0x4e24cc[_0x55515a(0x20f)]}),_0x539396[_0x55515a(0x21c)](_0x55515a(0x28c))['to'](_0x2083df),_0x539396['on'](_0x55515a(0x28c),()=>_0x928a1b(_0x4e24cc['id'])),_0x539396[_0x55515a(0x1e9)](_0x55515a(0x205))['to'](_0x29aa17,_0x55515a(0x256),_0x3ba07a=>_0x3ba07a[_0x55515a(0x230)](_0x4e24cc['id'])),_0x31542e[_0x55515a(0x28a)][_0x55515a(0x285)](_0x539396),_0x31542e;});}}function U(_0x3fa279,_0x35c836){const _0x399bd2=_0x5688ee;return void 0x0!==_0x3fa279[_0x399bd2(0x200)]&&void 0x0===_0x35c836[_0x399bd2(0x200)]?0x1:void 0x0===_0x3fa279[_0x399bd2(0x200)]&&void 0x0!==_0x35c836[_0x399bd2(0x200)]?-0x1:void 0x0!==_0x3fa279[_0x399bd2(0x200)]&&void 0x0!==_0x35c836[_0x399bd2(0x200)]?_0x3fa279[_0x399bd2(0x200)]-_0x35c836[_0x399bd2(0x200)]:0x0;}function B(_0x212587,_0xae2a20){const _0x25c43e=_0x5688ee;_0xae2a20[_0x25c43e(0x28e)](U);const _0x2e3a4c={},_0x1efaa7=[];for(const _0xac4c1d of _0xae2a20)if(void 0x0!==_0xac4c1d[_0x25c43e(0x200)]){if(_0xac4c1d[_0x25c43e(0x200)]in _0x2e3a4c)throw new _0x40e8b3(_0x25c43e(0x27f),_0x212587,{'conflictingDefinitions':[_0xac4c1d,_0x2e3a4c[_0xac4c1d[_0x25c43e(0x200)]]]});_0x2e3a4c[_0xac4c1d[_0x25c43e(0x200)]]=_0xac4c1d,_0x1efaa7[_0x25c43e(0x1ea)](_0xac4c1d[_0x25c43e(0x200)],0x0,_0xac4c1d);}else _0x1efaa7[_0x25c43e(0x1fd)](_0xac4c1d);return _0x1efaa7;}
|
|
23
|
+
const _0x2994e8=_0x486d;(function(_0x242ec1,_0xf2c702){const _0x315a8f=_0x486d,_0x44aeb8=_0x242ec1();while(!![]){try{const _0x167616=parseInt(_0x315a8f(0x260))/0x1+parseInt(_0x315a8f(0x243))/0x2*(-parseInt(_0x315a8f(0x1ed))/0x3)+parseInt(_0x315a8f(0x22a))/0x4+-parseInt(_0x315a8f(0x1cc))/0x5+-parseInt(_0x315a8f(0x23e))/0x6+-parseInt(_0x315a8f(0x1f9))/0x7+-parseInt(_0x315a8f(0x26b))/0x8*(-parseInt(_0x315a8f(0x1cd))/0x9);if(_0x167616===_0xf2c702)break;else _0x44aeb8['push'](_0x44aeb8['shift']());}catch(_0x5e8b5f){_0x44aeb8['push'](_0x44aeb8['shift']());}}}(_0x4308,0xa2ea0));import{Plugin as _0x4ba6b3}from'ckeditor5/src/core.js';import{IconMagicWand as _0x4cb3d5,IconRobotPencil as _0x234715}from'ckeditor5/src/icons.js';import{first as _0x46b75c,CKEditorError as _0x3de911}from'ckeditor5/src/utils.js';import{createDropdown as _0x404ac9,addMenuToDropdown as _0x266103,ButtonView as _0x2feae8,MenuBarMenuListItemButtonView as _0x57ee01,Dialog as _0x454da7,DialogViewPosition as _0x4d36ba,MenuBarMenuView as _0x78b91f,MenuBarMenuListView as _0x424c4d,MenuBarMenuListItemView as _0x2ae7c8}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x5648bb,UNGROUPED_COMMANDS_GROUP_ID as _0x477f7f}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x129fae}from'./aiassistantediting.js';import{AIAdapter as _0x4f2f5d}from'./adapters/aiadapter.js';import{getTranslation as _0x54bee2}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x1c3b15}from'./ui/showaiassistantcommand.js';function _0x486d(_0x331820,_0x395680){const _0x430817=_0x4308();return _0x486d=function(_0x486d5f,_0x54cf10){_0x486d5f=_0x486d5f-0x1ca;let _0x371642=_0x430817[_0x486d5f];return _0x371642;},_0x486d(_0x331820,_0x395680);}import{AIAssistantController as _0x4c0702}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x321200}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x41146a}from'./ui/form/aiformtoolbarview.js';function _0x4308(){const _0xc6dfdb=['hideFakeVisualSelection','pluginName','requires','INSERT','aiLicenseKeyExpired','change:isError','_formView','buttons','AI\x20Commands','Generated\x20content:\x20%0','announce','listenTo','getSelectedBlocks','ai.assistant.useTheme','groupLabel','insertContentBelow','getRanges','replaceContent','aiCommands','isPremiumPlugin','comment','_showLicenseError','aiLicenseKeyInvalid','custom','isOn','_getResolvedCommandsDefinitions','ai.assistant.disabledElements','1076428xYurKx','EDITOR_TOP_SIDE','aiLicenseKeyNotAllowed','_getMenuBarGroupButtons','_populateMenuBarMenu','hideUI','replace','body','config','media','prompt','currentContext','text','set','_createAIAssistantUIButton','change:value','selection','ai.assistant.contentAreaCssClass','aiLicenseKeyValid','from','7173498dUMaDN','ck-ai-assistant-button\x20','commands','insertContent','ai.assistant.commands','39980DIKdIE','_onExecute','buttonView','updatePosition','show','editor','usageLimit','fieldView','aiLicenseKeyUsageLimit','licenseKey','polite','children','change','model','render','AI\x20is\x20writing','text/html','init','_forceMarkersCopy','schema','_dialog','_commandDefinitions','map','isCollapsed','execute','featureNotAllowed','_initAriaAiStatusChangeAnnouncements','getData','setSelection','237689iRZfII','includes','errorView','aiLicenseKeyEvaluationLimit','destroy','AIAssistant','push','delegate','source','isOfficialPlugin','_licenseKeyCheckInterval','1167704hqkWOa','label','_aiAssistantController','REPLACE','componentFactory','document','focus','change:enabledCommandsIds','hide','once','update','add','\x20ck-ai-assistant-ui_theme','plugins','2552635iSOuzn','171prjOxn','getLimitElement','editing','splice','isEnabled','aiLicenseKeyDomainLimit','_initView','menuitemcheckbox','rawHtml','filter','showAIAssistant','get','ck-ai-assistant-ui','showUI','addMany','change:isProcessing','</p>','requiresContent','menuPanelClass','copy','length','forEach','reset','tableOfContents','invalid','menuBar:aiCommands','getSelectedElement','promptView','groupId','view','Error\x20during\x20AI\x20content\x20generation:\x20%0','queryView','51HltxnU','expired','fire','textAdapter','isFlat','order','items','_aiAdapter','ck-ai-commands-dropdown\x20','panelView','domainLimit','locale','3967999smvyrK','DataTransfer','contentArea','aiAssistant','AIAssistantUI','values','sort','_uiCssClasses','define','evaluationLimit','menuBar:aiAssistant','bind','trim','ai-commands-config-order-collision','updateView','command:','enabledCommandsIds','AI\x20Assistant','showFakeVisualSelection','<p>','menuView','wasMoved'];_0x4308=function(){return _0xc6dfdb;};return _0x4308();}import'../../theme/aiassistant/ai.css';import'../../theme/aiassistant/ai-dropdown.css';import'../../theme/aiassistant/ai-form.css';const w=globalThis[_0x2994e8(0x1fa)];import{ClipboardMarkersUtils as _0x56a17d}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x34dbf8,ViewDataTransfer as _0xd01ee8}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x4ba6b3{[_0x2994e8(0x24c)];[_0x2994e8(0x26a)];[_0x2994e8(0x257)];[_0x2994e8(0x215)];[_0x2994e8(0x1f4)];[_0x2994e8(0x26d)];[_0x2994e8(0x200)]='';static get[_0x2994e8(0x210)](){const _0x5ee583=_0x2994e8;return _0x5ee583(0x1fd);}static get[_0x2994e8(0x269)](){return!0x0;}static get[_0x2994e8(0x222)](){return!0x0;}static get[_0x2994e8(0x211)](){return[_0x56a17d,_0x129fae,_0x4f2f5d,_0x454da7];}constructor(_0x211f0a){const _0x11d16c=_0x2994e8;super(_0x211f0a),_0x211f0a[_0x11d16c(0x232)][_0x11d16c(0x201)](_0x11d16c(0x229),[_0x11d16c(0x233),_0x11d16c(0x1d5),_0x11d16c(0x1e4)]),_0x211f0a[_0x11d16c(0x232)][_0x11d16c(0x201)](_0x11d16c(0x23b),''),_0x211f0a[_0x11d16c(0x232)][_0x11d16c(0x201)](_0x11d16c(0x21c),!0x0),this[_0x11d16c(0x200)]=_0x11d16c(0x1d9)+(_0x211f0a[_0x11d16c(0x232)][_0x11d16c(0x1d8)](_0x11d16c(0x21c))?_0x11d16c(0x1ca):'');}[_0x2994e8(0x254)](){const _0x53347f=_0x2994e8,{editor:_0x324d57}=this;this[_0x53347f(0x1f4)]=_0x324d57[_0x53347f(0x1cb)][_0x53347f(0x1d8)](_0x4f2f5d),this[_0x53347f(0x257)]=_0x324d57[_0x53347f(0x1cb)][_0x53347f(0x1d8)](_0x454da7),this[_0x53347f(0x215)]=null,this[_0x53347f(0x258)]=this[_0x53347f(0x228)]();const _0x57598d=new _0x1c3b15(_0x324d57,Array[_0x53347f(0x23d)](this[_0x53347f(0x258)][_0x53347f(0x1fe)]()));_0x324d57[_0x53347f(0x240)][_0x53347f(0x276)](_0x53347f(0x1d7),_0x57598d),_0x324d57['ui'][_0x53347f(0x26f)][_0x53347f(0x276)](_0x53347f(0x221),_0x2f1daa=>{const _0x471224=_0x53347f,_0x5cd742=_0x404ac9(_0x2f1daa);return _0x5cd742[_0x471224(0x237)]({'class':_0x471224(0x1f5)+this[_0x471224(0x200)]}),_0x5cd742[_0x471224(0x245)][_0x471224(0x237)]({'label':_0x54bee2(_0x2f1daa,_0x471224(0x217)),'icon':_0x4cb3d5,'tooltip':!0x0}),_0x5cd742['on'](_0x471224(0x25b),_0x175023=>this[_0x471224(0x244)](_0x175023[_0x471224(0x268)]['id'])),_0x266103(_0x5cd742,_0x324d57['ui'][_0x471224(0x1ea)][_0x471224(0x231)],function(_0x526a6d){const _0xf99ddd=_0x471224,_0x366484=_0x5648bb(_0x526a6d[_0xf99ddd(0x232)][_0xf99ddd(0x1d8)](_0xf99ddd(0x242)),_0x526a6d[_0xf99ddd(0x1f8)]),_0x211a86=B(_0x526a6d,_0x366484)[_0xf99ddd(0x1d6)](_0x5cd797=>_0x5cd797[_0xf99ddd(0x240)][_0xf99ddd(0x1e1)]);if(0x1===_0x211a86[_0xf99ddd(0x1e1)])return B(_0x526a6d,_0x211a86[0x0][_0xf99ddd(0x240)])[_0xf99ddd(0x259)](_0x46c776=>({'id':_0x46c776['id'],'label':_0x46c776[_0xf99ddd(0x26c)]}));return _0x211a86[_0xf99ddd(0x259)](_0x109509=>{const _0x46b4d8=_0xf99ddd,{groupId:_0x2bccfc,groupLabel:_0x20940b,commands:_0x53014c}=_0x109509,_0x91dbcf=B(_0x526a6d,_0x53014c)[_0x46b4d8(0x259)](_0xb3c820=>({'id':_0xb3c820['id'],'label':_0xb3c820[_0x46b4d8(0x26c)]}));return{'id':_0x2bccfc,'menu':_0x20940b||_0x2bccfc,'children':_0x91dbcf};});}(_0x324d57),{'ariaLabel':_0x54bee2(_0x2f1daa,_0x471224(0x217))}),_0x5cd742[_0x471224(0x20d)][_0x471224(0x1df)]=_0x471224(0x1f5)+this[_0x471224(0x200)],_0x57598d['on'](_0x471224(0x272),_0x564334),_0x5cd742[_0x471224(0x20d)][_0x471224(0x274)](_0x471224(0x251),_0x564334),_0x5cd742;function _0x564334(){const _0x497e3e=_0x471224;_0x5cd742[_0x497e3e(0x1d1)]=_0x57598d[_0x497e3e(0x209)][_0x497e3e(0x1e1)]>0x0;for(const _0x454420 of _0x5cd742[_0x497e3e(0x20d)][_0x497e3e(0x216)])_0x454420[_0x497e3e(0x1d1)]=_0x57598d[_0x497e3e(0x209)][_0x497e3e(0x261)](_0x454420['id']);}}),_0x324d57['ui'][_0x53347f(0x26f)][_0x53347f(0x276)](_0x53347f(0x1e6),_0x2d36fe=>{const _0x5740e8=_0x53347f,_0x17ed02=new _0x78b91f(_0x2d36fe);_0x17ed02[_0x5740e8(0x245)][_0x5740e8(0x237)]({'label':_0x54bee2(_0x2d36fe,_0x5740e8(0x217)),'icon':_0x4cb3d5}),_0x17ed02[_0x5740e8(0x204)](_0x5740e8(0x1d1))['to'](_0x57598d,_0x5740e8(0x209),_0x432cc1=>_0x432cc1[_0x5740e8(0x1e1)]>0x0);const _0x3692bf=_0x5648bb(_0x324d57[_0x5740e8(0x232)][_0x5740e8(0x1d8)](_0x5740e8(0x242)),_0x2d36fe);return this[_0x5740e8(0x22e)](_0x57598d,_0x17ed02,_0x3692bf,_0x5af75a=>this[_0x5740e8(0x244)](_0x5af75a)),_0x17ed02;}),_0x324d57['ui'][_0x53347f(0x26f)][_0x53347f(0x276)](_0x53347f(0x1fc),()=>{const _0x53ecc4=_0x53347f,_0x39ed1a=this[_0x53ecc4(0x238)](_0x2feae8);return _0x39ed1a[_0x53ecc4(0x237)]({'tooltip':!0x0,'class':_0x53ecc4(0x23f)+this[_0x53ecc4(0x200)]}),_0x39ed1a;}),_0x324d57['ui'][_0x53347f(0x26f)][_0x53347f(0x276)](_0x53347f(0x203),()=>{const _0x230fe8=_0x53347f,_0xcd77ad=this[_0x230fe8(0x238)](_0x57ee01);return _0xcd77ad[_0x230fe8(0x237)]({'role':_0x230fe8(0x1d4)}),_0xcd77ad;}),this[_0x53347f(0x24c)]=this[_0x53347f(0x248)][_0x53347f(0x232)][_0x53347f(0x1d8)](_0x53347f(0x24c));const _0x4eab6d=this[_0x53347f(0x248)];this[_0x53347f(0x26a)]=setInterval(()=>{const _0x1ccae7=_0x53347f;let _0x36cc45;for(const _0x3315e7 in _0x4eab6d){const _0x10d2e4=_0x3315e7,_0x51fdc0=_0x4eab6d[_0x10d2e4];if(_0x1ccae7(0x23c)==_0x51fdc0||_0x1ccae7(0x225)==_0x51fdc0||_0x1ccae7(0x213)==_0x51fdc0||_0x1ccae7(0x1d2)==_0x51fdc0||_0x1ccae7(0x22c)==_0x51fdc0||_0x1ccae7(0x263)==_0x51fdc0||_0x1ccae7(0x24b)==_0x51fdc0){delete _0x4eab6d[_0x10d2e4],_0x36cc45=_0x51fdc0,clearInterval(this[_0x1ccae7(0x26a)]),this[_0x1ccae7(0x26a)]=void 0x0;break;}}_0x1ccae7(0x225)==_0x36cc45&&_0x4eab6d[_0x1ccae7(0x224)](_0x1ccae7(0x1e5)),_0x1ccae7(0x213)==_0x36cc45&&_0x4eab6d[_0x1ccae7(0x224)](_0x1ccae7(0x1ee)),_0x1ccae7(0x1d2)==_0x36cc45&&_0x4eab6d[_0x1ccae7(0x224)](_0x1ccae7(0x1f7)),_0x1ccae7(0x22c)==_0x36cc45&&_0x4eab6d[_0x1ccae7(0x224)](_0x1ccae7(0x25c),_0x1ccae7(0x265)),_0x1ccae7(0x263)==_0x36cc45&&_0x4eab6d[_0x1ccae7(0x224)](_0x1ccae7(0x202)),_0x1ccae7(0x24b)==_0x36cc45&&_0x4eab6d[_0x1ccae7(0x224)](_0x1ccae7(0x249));},0x3e8);}[_0x2994e8(0x264)](){const _0x17f8c0=_0x2994e8;super[_0x17f8c0(0x264)](),this[_0x17f8c0(0x26a)]&&clearInterval(this[_0x17f8c0(0x26a)]);}[_0x2994e8(0x1da)](_0x4b79b3='',_0x4c447b='',_0x3693bd=_0x2994e8(0x226)){const _0x59b50d=_0x2994e8,_0x430e03=this[_0x59b50d(0x248)],_0x4cfa20=_0x430e03[_0x59b50d(0x1cf)][_0x59b50d(0x1ea)],_0x15c004=_0x430e03[_0x59b50d(0x1cb)][_0x59b50d(0x1d8)](_0x129fae),_0x44f036=_0x430e03[_0x59b50d(0x1cb)][_0x59b50d(0x1d8)](_0x56a17d);_0x15c004[_0x59b50d(0x20b)]();const _0x54e346=new w(),_0x573346=new ClipboardEvent(_0x59b50d(0x1e0),{'clipboardData':_0x54e346}),_0x3f1caf=new _0xd01ee8(_0x54e346),_0x143365=new _0x34dbf8(_0x4cfa20,_0x573346,{'dataTransfer':_0x3f1caf});_0x44f036[_0x59b50d(0x255)](_0x59b50d(0x223),()=>{const _0x51af9d=_0x59b50d;_0x4cfa20[_0x51af9d(0x270)][_0x51af9d(0x1ef)](_0x51af9d(0x1e0),_0x143365);}),this[_0x59b50d(0x215)]||(this[_0x59b50d(0x1d3)](),this[_0x59b50d(0x26d)]=new _0x4c0702(_0x430e03,this[_0x59b50d(0x1f4)][_0x59b50d(0x1f0)],this[_0x59b50d(0x215)]));let _0x2b7941=_0x3f1caf[_0x59b50d(0x25e)](_0x59b50d(0x253));const _0x3a67db=_0x430e03[_0x59b50d(0x250)][_0x59b50d(0x270)][_0x59b50d(0x23a)],_0x1b90db=Array[_0x59b50d(0x23d)](_0x3a67db[_0x59b50d(0x21f)]());0x1===_0x1b90db[_0x59b50d(0x1e1)]&&_0x1b90db[0x0][_0x59b50d(0x1f1)]&&!_0x3a67db[_0x59b50d(0x1e7)]()&&''!==_0x2b7941[_0x59b50d(0x230)](/ /g,'')[_0x59b50d(0x205)]()&&(_0x2b7941=_0x59b50d(0x20c)+_0x2b7941+_0x59b50d(0x1dd)),this[_0x59b50d(0x26d)][_0x59b50d(0x207)]({'actionId':_0x3693bd,'query':_0x4b79b3,'htmlContent':_0x2b7941,'label':_0x4c447b,'mainActionLabel':_0x41146a[_0x430e03[_0x59b50d(0x250)][_0x59b50d(0x270)][_0x59b50d(0x23a)][_0x59b50d(0x25a)]?_0x59b50d(0x212):_0x59b50d(0x26e)]}),_0x59b50d(0x1fc)!==this[_0x59b50d(0x257)]['id']?this[_0x59b50d(0x257)][_0x59b50d(0x247)]({'id':_0x59b50d(0x1fc),'icon':_0x234715,'title':_0x54bee2(this[_0x59b50d(0x248)][_0x59b50d(0x1f8)],_0x59b50d(0x20a)),'content':this[_0x59b50d(0x215)],'position':_0x4d36ba[_0x59b50d(0x22b)],'onShow':()=>{const _0x54c068=_0x59b50d;this[_0x54c068(0x215)][_0x54c068(0x271)]();},'onHide':()=>{const _0x33d37b=_0x59b50d;this[_0x33d37b(0x26d)][_0x33d37b(0x1e3)](),_0x15c004[_0x33d37b(0x20f)]();}}):this[_0x59b50d(0x257)][_0x59b50d(0x1ea)][_0x59b50d(0x20e)]||this[_0x59b50d(0x257)][_0x59b50d(0x1ea)][_0x59b50d(0x246)]();}[_0x2994e8(0x22f)](){const _0x30fa9c=_0x2994e8;this[_0x30fa9c(0x257)][_0x30fa9c(0x273)]();}[_0x2994e8(0x228)](){const _0x1d364f=_0x2994e8,_0xe692e=new Map(),_0x1f8f3f=_0x5648bb(this[_0x1d364f(0x248)][_0x1d364f(0x232)][_0x1d364f(0x1d8)](_0x1d364f(0x242)),this[_0x1d364f(0x248)][_0x1d364f(0x1f8)]);for(const _0x1b7277 of _0x1f8f3f)for(const _0x28960a of _0x1b7277[_0x1d364f(0x240)])_0xe692e[_0x1d364f(0x237)](_0x28960a['id'],{..._0x28960a,'groupId':_0x1b7277[_0x1d364f(0x1e9)],'groupLabel':_0x1b7277[_0x1d364f(0x21d)]||_0x1b7277[_0x1d364f(0x1e9)]});return _0xe692e;}[_0x2994e8(0x238)](_0x22e035){const _0x1cf281=_0x2994e8,_0x53dded=this[_0x1cf281(0x248)],_0x1f500b=_0x53dded[_0x1cf281(0x240)][_0x1cf281(0x1d8)](_0x1cf281(0x1d7)),_0x3fbdc6=new _0x22e035(_0x53dded[_0x1cf281(0x1f8)]);return _0x3fbdc6[_0x1cf281(0x237)]({'label':_0x54bee2(_0x53dded[_0x1cf281(0x1f8)],_0x1cf281(0x20a)),'icon':_0x234715,'isToggleable':!0x0}),_0x3fbdc6[_0x1cf281(0x204)](_0x1cf281(0x1d1))['to'](_0x1f500b),_0x3fbdc6[_0x1cf281(0x204)](_0x1cf281(0x227))['to'](this[_0x1cf281(0x257)],'id',_0x542575=>_0x1cf281(0x1fc)===_0x542575),this[_0x1cf281(0x21a)](_0x3fbdc6,_0x1cf281(0x25b),()=>{const _0x156cae=_0x1cf281;_0x3fbdc6[_0x156cae(0x227)]?this[_0x156cae(0x22f)]():_0x1f500b[_0x156cae(0x25b)]();}),_0x3fbdc6;}[_0x2994e8(0x1d3)](){const _0x13324c=_0x2994e8,_0x15cbec=this[_0x13324c(0x248)][_0x13324c(0x1cb)][_0x13324c(0x1d8)](_0x129fae);this[_0x13324c(0x215)]=new _0x321200(this[_0x13324c(0x248)][_0x13324c(0x1f8)],this[_0x13324c(0x200)],this[_0x13324c(0x248)][_0x13324c(0x232)][_0x13324c(0x1d8)](_0x13324c(0x23b))),this[_0x13324c(0x215)]['on'](_0x13324c(0x239),()=>{const _0x12108d=_0x13324c;this[_0x12108d(0x257)][_0x12108d(0x1ea)][_0x12108d(0x20e)]||this[_0x12108d(0x257)][_0x12108d(0x1ea)][_0x12108d(0x246)]();}),this[_0x13324c(0x215)][_0x13324c(0x1e8)][_0x13324c(0x1ec)][_0x13324c(0x24a)]['on'](_0x13324c(0x275),()=>{const _0x48e362=_0x13324c;this[_0x48e362(0x257)][_0x48e362(0x1ea)][_0x48e362(0x20e)]||this[_0x48e362(0x257)][_0x48e362(0x1ea)][_0x48e362(0x246)]();}),this[_0x13324c(0x21a)](this[_0x13324c(0x215)],_0x13324c(0x220),()=>{const _0x47c980=_0x13324c;_0x15cbec[_0x47c980(0x241)](this[_0x47c980(0x26d)][_0x47c980(0x235)]),this[_0x47c980(0x22f)]();}),this[_0x13324c(0x21a)](this[_0x13324c(0x215)],_0x13324c(0x21e),()=>{const _0xbcd16a=_0x13324c;_0x15cbec[_0xbcd16a(0x21e)](this[_0xbcd16a(0x26d)][_0xbcd16a(0x235)]),this[_0xbcd16a(0x22f)]();}),this[_0x13324c(0x25d)]();}[_0x2994e8(0x25d)](){const _0x10e495=_0x2994e8,{locale:_0x522a2b,ui:{ariaLiveAnnouncer:_0x25474d}}=this[_0x10e495(0x248)];this[_0x10e495(0x215)][_0x10e495(0x1fb)]['on'](_0x10e495(0x1dc),(_0x502922,_0x3594b2,_0x3c9b01)=>{const _0x8b3754=_0x10e495,_0xf0f43f=this[_0x8b3754(0x26d)][_0x8b3754(0x235)];_0x3c9b01?_0x25474d[_0x8b3754(0x219)](_0x54bee2(_0x522a2b,_0x8b3754(0x252))):_0xf0f43f&&_0x25474d[_0x8b3754(0x219)](_0x54bee2(_0x522a2b,_0x8b3754(0x218),_0xf0f43f),{'politeness':_0x8b3754(0x24d),'isUnsafeHTML':!0x0});}),this[_0x10e495(0x215)]['on'](_0x10e495(0x214),(_0x5ecba1,_0x8d9481,_0x489d21)=>{const _0x57b066=_0x10e495;if(_0x489d21){const _0x2295dc=this[_0x57b066(0x215)][_0x57b066(0x262)][_0x57b066(0x236)];_0x25474d[_0x57b066(0x219)](_0x54bee2(_0x522a2b,_0x57b066(0x1eb),_0x2295dc));}});}[_0x2994e8(0x244)](_0x81d986){const _0x3047d3=_0x2994e8,_0x1bb99b=this[_0x3047d3(0x258)][_0x3047d3(0x1d8)](_0x81d986),_0x2b171b=this[_0x3047d3(0x248)],_0x50709c=_0x2b171b[_0x3047d3(0x250)][_0x3047d3(0x270)][_0x3047d3(0x23a)],_0x5f4922=_0x2b171b[_0x3047d3(0x240)][_0x3047d3(0x1d8)](_0x3047d3(0x1d7)),_0x33714c=_0x2b171b[_0x3047d3(0x1cb)][_0x3047d3(0x1d8)](_0x129fae),_0x1263e1=''+(_0x1bb99b[_0x3047d3(0x1e9)]!==_0x477f7f?_0x1bb99b[_0x3047d3(0x21d)]+':\x20':'')+_0x1bb99b[_0x3047d3(0x26c)];if(!0x1!==_0x1bb99b[_0x3047d3(0x1de)]&&_0x50709c[_0x3047d3(0x25a)]){const _0x35d927=_0x46b75c(_0x50709c[_0x3047d3(0x21b)]())||_0x2b171b[_0x3047d3(0x250)][_0x3047d3(0x256)][_0x3047d3(0x1ce)](_0x50709c);_0x2b171b[_0x3047d3(0x250)][_0x3047d3(0x24f)](_0x2e7233=>{const _0x36687e=_0x3047d3;_0x2e7233[_0x36687e(0x25f)](_0x35d927,'in');});}_0x33714c[_0x3047d3(0x20b)](),_0x5f4922[_0x3047d3(0x25b)](_0x1bb99b[_0x3047d3(0x234)],_0x1263e1,_0x3047d3(0x208)+_0x81d986);}[_0x2994e8(0x22e)](_0x53a919,_0x225508,_0xbd0ba3,_0x256bc8){const _0x21e2dc=_0x2994e8,_0xd25104=this[_0x21e2dc(0x248)],_0x2b3737=_0xd25104[_0x21e2dc(0x1f8)],_0x206845=new _0x424c4d(_0x2b3737),_0x24cdb9=B(_0xd25104,_0xbd0ba3)[_0x21e2dc(0x1d6)](_0xc6cf66=>_0xc6cf66[_0x21e2dc(0x240)][_0x21e2dc(0x1e1)]);0x1===_0x24cdb9[_0x21e2dc(0x1e1)]?this[_0x21e2dc(0x22d)]({'command':_0x53a919,'commands':_0x24cdb9[0x0][_0x21e2dc(0x240)],'parentMenuView':_0x225508,'onExecute':_0x256bc8})[_0x21e2dc(0x1e2)](_0x42729c=>_0x206845[_0x21e2dc(0x1f3)][_0x21e2dc(0x276)](_0x42729c)):_0x24cdb9[_0x21e2dc(0x1e2)](({groupId:_0x3d023a,groupLabel:_0x42704c,commands:_0xa90caf})=>{const _0x9a625a=_0x21e2dc,_0x5b486f=new _0x2ae7c8(_0x2b3737,_0x225508),_0x1c51a3=new _0x78b91f(_0x2b3737),_0x3706c5=new _0x424c4d(_0x2b3737),_0x1f2fa2=this[_0x9a625a(0x22d)]({'command':_0x53a919,'commands':_0xa90caf,'parentMenuView':_0x1c51a3,'onExecute':_0x256bc8});_0x1c51a3[_0x9a625a(0x245)][_0x9a625a(0x237)]({'label':_0x42704c||_0x3d023a}),_0x1c51a3[_0x9a625a(0x267)](_0x9a625a(0x25b))['to'](_0x225508),_0x3706c5[_0x9a625a(0x1f3)][_0x9a625a(0x1db)](_0x1f2fa2),_0x1c51a3[_0x9a625a(0x1f6)][_0x9a625a(0x24e)][_0x9a625a(0x276)](_0x3706c5),_0x5b486f[_0x9a625a(0x24e)][_0x9a625a(0x276)](_0x1c51a3),_0x206845[_0x9a625a(0x1f3)][_0x9a625a(0x276)](_0x5b486f);}),_0x225508[_0x21e2dc(0x1f6)][_0x21e2dc(0x24e)][_0x21e2dc(0x276)](_0x206845);}[_0x2994e8(0x22d)]({command:_0x214e76,commands:_0x273d62,parentMenuView:_0x37be87,onExecute:_0x33bb5b}){const _0x1c410a=_0x2994e8,_0x2d089f=this[_0x1c410a(0x248)],_0x233418=_0x2d089f[_0x1c410a(0x1f8)];return B(_0x2d089f,_0x273d62)[_0x1c410a(0x259)](_0x200adf=>{const _0x2e436a=_0x1c410a,_0x47ec44=new _0x2ae7c8(_0x233418,_0x37be87),_0x17c5b6=new _0x57ee01(_0x233418);return _0x17c5b6[_0x2e436a(0x237)]({'label':_0x200adf[_0x2e436a(0x26c)]}),_0x17c5b6[_0x2e436a(0x267)](_0x2e436a(0x25b))['to'](_0x37be87),_0x17c5b6['on'](_0x2e436a(0x25b),()=>_0x33bb5b(_0x200adf['id'])),_0x17c5b6[_0x2e436a(0x204)](_0x2e436a(0x1d1))['to'](_0x214e76,_0x2e436a(0x209),_0xe33d25=>_0xe33d25[_0x2e436a(0x261)](_0x200adf['id'])),_0x47ec44[_0x2e436a(0x24e)][_0x2e436a(0x276)](_0x17c5b6),_0x47ec44;});}}function U(_0x20dfa3,_0x311208){const _0xce7f9a=_0x2994e8;return void 0x0!==_0x20dfa3[_0xce7f9a(0x1f2)]&&void 0x0===_0x311208[_0xce7f9a(0x1f2)]?0x1:void 0x0===_0x20dfa3[_0xce7f9a(0x1f2)]&&void 0x0!==_0x311208[_0xce7f9a(0x1f2)]?-0x1:void 0x0!==_0x20dfa3[_0xce7f9a(0x1f2)]&&void 0x0!==_0x311208[_0xce7f9a(0x1f2)]?_0x20dfa3[_0xce7f9a(0x1f2)]-_0x311208[_0xce7f9a(0x1f2)]:0x0;}function B(_0x429f27,_0x2e5095){const _0x15efaa=_0x2994e8;_0x2e5095[_0x15efaa(0x1ff)](U);const _0x3d85a5={},_0x14e236=[];for(const _0x1b9d16 of _0x2e5095)if(void 0x0!==_0x1b9d16[_0x15efaa(0x1f2)]){if(_0x1b9d16[_0x15efaa(0x1f2)]in _0x3d85a5)throw new _0x3de911(_0x15efaa(0x206),_0x429f27,{'conflictingDefinitions':[_0x1b9d16,_0x3d85a5[_0x1b9d16[_0x15efaa(0x1f2)]]]});_0x3d85a5[_0x1b9d16[_0x15efaa(0x1f2)]]=_0x1b9d16,_0x14e236[_0x15efaa(0x1d0)](_0x1b9d16[_0x15efaa(0x1f2)],0x0,_0x1b9d16);}else _0x14e236[_0x15efaa(0x266)](_0x1b9d16);return _0x14e236;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x8cbc1b,_0x1eeb2e){var _0x10ea29=_0x4837,_0x3e7cd1=_0x8cbc1b();while(!![]){try{var _0x52affe=-parseInt(_0x10ea29(0x151))/0x1+-parseInt(_0x10ea29(0x14f))/0x2*(parseInt(_0x10ea29(0x152))/0x3)+-parseInt(_0x10ea29(0x155))/0x4+parseInt(_0x10ea29(0x154))/0x5*(parseInt(_0x10ea29(0x150))/0x6)+parseInt(_0x10ea29(0x14c))/0x7+parseInt(_0x10ea29(0x14e))/0x8+-parseInt(_0x10ea29(0x14d))/0x9*(parseInt(_0x10ea29(0x153))/0xa);if(_0x52affe===_0x1eeb2e)break;else _0x3e7cd1['push'](_0x3e7cd1['shift']());}catch(_0x58c1ce){_0x3e7cd1['push'](_0x3e7cd1['shift']());}}}(_0x2337,0x35da2));function _0x2337(){var _0x59ba2b=['21HYDJSU','270fxWNhI','1333305gQiBAA','963648ynsdRP','1711010smOFfp','26010SWNIPh','2384616OpbxUY','62584auVdHE','6yJBOXf','50604PteyjB'];_0x2337=function(){return _0x59ba2b;};return _0x2337();}function _0x4837(_0x24c133,_0x87ea8c){var _0x23378d=_0x2337();return _0x4837=function(_0x4837f7,_0x285ca1){_0x4837f7=_0x4837f7-0x14c;var _0x2221e2=_0x23378d[_0x4837f7];return _0x2221e2;},_0x4837(_0x24c133,_0x87ea8c);}import{CKEditorError as _0x3bce4e}from'ckeditor5/src/utils.js';
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x3a3e69=_0x3f76;function _0x595f(){const _0x288e90=['previousActionId','match','render','data','abort','stopListening','2925cXQtTj','domConverter','5070BlYDCb','exec','substring','trim','1850052MyjkQM','handleError','```','tryAgainEvent','6hALyYa','_stripMarkdownSyntax','14UdmPWT','12jiUVlt','_sanitizationContainer','innerHTML','destroy','prompt','processor','markers','makeRequest','1091768zpPoCw','catch','329717gPhAzQ','once','createElement','ai.assistant.preserveComments','element','get','document','_xmlSerializer','htmlProcessor','body','238iCfLkA','remove','stopProcessing','stringify','listenTo','currentContext','name','_normalizeResponseHeadings','querySelector','ELEMENT_NODE','previousLabel','rename','_parseAndNormalizeContent','currentResponse','text/html','startsWith','config','6823619HQIqOH','4GmDNxq','set:currentContext','endsWith','previousContext','nodeType','199537ixszyb','custom','view','_handleQuery','toView','message','_domParser','mainAction','editor','from','childNodes','```html','parseFromString','initialContext','isRendered','<h1></h1>','isProcessing','editing','push','3aAoHpv','reverse','finishProcessing','startProcessing','viewToDom','_sanitizeHTML','submitPrompt','clear','div','finally','toModel','set','setContentOf','serializeToString','3128885EOEZSO','previousQuery','value','textAdapter','reset','_isH1TagSupportEnabled','then','updateView','length'];_0x595f=function(){return _0x288e90;};return _0x595f();}(function(_0x303df8,_0x1becc1){const _0x9ef047=_0x3f76,_0x31660d=_0x303df8();while(!![]){try{const _0x24c16a=parseInt(_0x9ef047(0x182))/0x1*(parseInt(_0x9ef047(0x136))/0x2)+-parseInt(_0x9ef047(0x14e))/0x3*(parseInt(_0x9ef047(0x171))/0x4)+-parseInt(_0x9ef047(0x15c))/0x5*(parseInt(_0x9ef047(0x175))/0x6)+parseInt(_0x9ef047(0x177))/0x7*(parseInt(_0x9ef047(0x180))/0x8)+parseInt(_0x9ef047(0x16b))/0x9*(parseInt(_0x9ef047(0x16d))/0xa)+parseInt(_0x9ef047(0x135))/0xb*(parseInt(_0x9ef047(0x178))/0xc)+parseInt(_0x9ef047(0x13b))/0xd*(-parseInt(_0x9ef047(0x18c))/0xe);if(_0x24c16a===_0x1becc1)break;else _0x31660d['push'](_0x31660d['shift']());}catch(_0x4459c5){_0x31660d['push'](_0x31660d['shift']());}}}(_0x595f,0x59e81));import{ObservableMixin as _0x135f0d}from'ckeditor5/src/utils.js';import{AIRequestError as _0x2325bd}from'../adapters/aiadapter.js';function _0x3f76(_0x3d11c7,_0xfc5e04){const _0x595f67=_0x595f();return _0x3f76=function(_0x3f765b,_0x4c6088){_0x3f765b=_0x3f765b-0x12b;let _0x1516fd=_0x595f67[_0x3f765b];return _0x1516fd;},_0x3f76(_0x3d11c7,_0xfc5e04);}import{Matcher as _0x460a60,ViewUpcastWriter as _0x21e43f}from'ckeditor5/src/engine.js';const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x135f0d(){[_0x3a3e69(0x143)];[_0x3a3e69(0x15f)];[_0x3a3e69(0x13d)];[_0x3a3e69(0x179)];[_0x3a3e69(0x141)];[_0x3a3e69(0x189)];constructor(_0x437069,_0x552f8d,_0x28e891){const _0xd9722=_0x3a3e69;super(),this[_0xd9722(0x143)]=_0x437069,this[_0xd9722(0x15f)]=_0x552f8d,this[_0xd9722(0x179)]=document[_0xd9722(0x184)](_0xd9722(0x156)),this[_0xd9722(0x141)]=new DOMParser(),this[_0xd9722(0x189)]=new XMLSerializer(),this[_0xd9722(0x13d)]=_0x28e891,this[_0xd9722(0x159)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0xd9722(0x137),(_0x4def06,_0x3ef830,_0x76f442)=>{const _0x1a5a3a=_0xd9722;this[_0x1a5a3a(0x13d)][_0x1a5a3a(0x15e)]=this[_0x1a5a3a(0x153)](_0x76f442);}),this[_0xd9722(0x190)](this[_0xd9722(0x13d)],_0xd9722(0x154),(_0x521da2,_0x5621c0)=>{const _0x5a9247=_0xd9722,_0x2fb601=this[_0x5a9247(0x191)]||this[_0x5a9247(0x148)];this[_0x5a9247(0x13e)](_0x5621c0,_0x2fb601,_0x5a9247(0x13c));}),this[_0xd9722(0x190)](this[_0xd9722(0x13d)],_0xd9722(0x174),()=>{const _0xd6bf06=_0xd9722;this[_0xd6bf06(0x13d)][_0xd6bf06(0x17c)]=this[_0xd6bf06(0x12e)],this[_0xd6bf06(0x13e)](this[_0xd6bf06(0x15d)],this[_0xd6bf06(0x139)],this[_0xd6bf06(0x165)],this[_0xd6bf06(0x12e)]);}),this[_0xd9722(0x190)](this[_0xd9722(0x13d)],_0xd9722(0x18e),()=>{const _0x49806d=_0xd9722;this[_0x49806d(0x18e)]();});}[_0x3a3e69(0x17b)](){const _0x1a84c7=_0x3a3e69;this[_0x1a84c7(0x16a)]();}async[_0x3a3e69(0x163)]({actionId:_0xc32b01,query:_0x2be4b1,htmlContent:_0x4320bf,label:_0x4d4fdd,mainActionLabel:_0x4f500c}){const _0x2a2142=_0x3a3e69;this[_0x2a2142(0x13d)][_0x2a2142(0x17c)]=_0x4d4fdd,this[_0x2a2142(0x13d)][_0x2a2142(0x142)]=_0x4f500c,this[_0x2a2142(0x148)]=_0x4320bf,_0x2be4b1&&(this[_0x2a2142(0x13d)][_0x2a2142(0x149)]?this[_0x2a2142(0x13e)](_0x2be4b1,_0x4320bf,_0xc32b01,_0x4d4fdd):this[_0x2a2142(0x13d)][_0x2a2142(0x183)](_0x2a2142(0x167),()=>{const _0x584662=_0x2a2142;this[_0x584662(0x13e)](_0x2be4b1,_0x4320bf,_0xc32b01,_0x4d4fdd);}));}[_0x3a3e69(0x18e)](){const _0x35c981=_0x3a3e69;this[_0x35c981(0x14b)]&&(this[_0x35c981(0x14b)]=!0x1,this[_0x35c981(0x13d)][_0x35c981(0x150)](),this[_0x35c981(0x15f)][_0x35c981(0x169)]());}[_0x3a3e69(0x160)](){const _0x1dd385=_0x3a3e69;this[_0x1dd385(0x148)]='',this[_0x1dd385(0x191)]='',this[_0x1dd385(0x131)]='',this[_0x1dd385(0x139)]='',this[_0x1dd385(0x15d)]='',this[_0x1dd385(0x12e)]='',this[_0x1dd385(0x165)]=void 0x0,this[_0x1dd385(0x13d)][_0x1dd385(0x160)](),this[_0x1dd385(0x18e)]();}async[_0x3a3e69(0x13e)](_0x474e9e,_0x3910cd,_0x4d604b,_0x28840b){const _0x4b96ec=_0x3a3e69;return this[_0x4b96ec(0x14b)]=!0x0,this[_0x4b96ec(0x13d)][_0x4b96ec(0x151)](),this[_0x4b96ec(0x139)]=_0x3910cd,this[_0x4b96ec(0x15d)]=_0x474e9e,this[_0x4b96ec(0x12e)]=_0x28840b||_0x474e9e,this[_0x4b96ec(0x165)]=_0x4d604b,new Promise(_0x346ea6=>{const _0x579f91=_0x4b96ec;this[_0x579f91(0x15f)][_0x579f91(0x17f)]({'query':_0x474e9e,'context':_0x3910cd,'onData':_0x29f3c3=>{const _0x34977c=_0x579f91;this[_0x34977c(0x131)]=_0x29f3c3,this[_0x34977c(0x191)]=this[_0x34977c(0x130)](this[_0x34977c(0x131)]);},'actionId':_0x4d604b})[_0x579f91(0x162)](()=>{const _0x264bd1=_0x579f91;!this[_0x264bd1(0x191)]&&this[_0x264bd1(0x131)]&&(this[_0x264bd1(0x191)]=this[_0x264bd1(0x130)](this[_0x264bd1(0x131)],!0x0));})[_0x579f91(0x181)](_0xe875b8=>{const _0x3bb9e9=_0x579f91;_0xe875b8 instanceof _0x2325bd?this[_0x3bb9e9(0x13d)][_0x3bb9e9(0x172)](_0xe875b8[_0x3bb9e9(0x140)]):this[_0x3bb9e9(0x13d)][_0x3bb9e9(0x172)](),_0x346ea6();})[_0x579f91(0x157)](()=>{const _0x3e029f=_0x579f91;this[_0x3e029f(0x18e)](),_0x346ea6();});});}[_0x3a3e69(0x130)](_0x228938,_0x584a0f=!0x1){const _0x16a33d=_0x3a3e69,_0x4fa938=hs[_0x16a33d(0x16e)](_0x228938);_0x228938=_0x4fa938?_0x228938[_0x16a33d(0x16f)](_0x4fa938[0x1][_0x16a33d(0x164)]):_0x228938[_0x16a33d(0x164)]<0x64&&!_0x584a0f?'':this[_0x16a33d(0x176)](_0x228938);const _0x5bc486=this[_0x16a33d(0x141)][_0x16a33d(0x147)](_0x228938,_0x16a33d(0x132));if(_0x4fa938){const _0x3ba721=Array[_0x16a33d(0x144)](_0x5bc486[_0x16a33d(0x18b)][_0x16a33d(0x145)]);_0x3ba721[_0x16a33d(0x14f)]();for(const _0x5b7656 of _0x3ba721){if(_0x5b7656[_0x16a33d(0x13a)]==Node[_0x16a33d(0x12d)])break;_0x5b7656[_0x16a33d(0x18d)]();}}const _0x2efe5e=this[_0x16a33d(0x143)][_0x16a33d(0x168)][_0x16a33d(0x17d)][_0x16a33d(0x13f)](this[_0x16a33d(0x189)][_0x16a33d(0x15b)](_0x5bc486[_0x16a33d(0x18b)]));this[_0x16a33d(0x161)]()||this[_0x16a33d(0x12b)](_0x2efe5e);const _0xd87473=this[_0x16a33d(0x143)][_0x16a33d(0x134)][_0x16a33d(0x187)](_0x16a33d(0x185)),_0x57e5de=this[_0x16a33d(0x143)][_0x16a33d(0x168)][_0x16a33d(0x158)](_0x2efe5e);return _0xd87473||_0x57e5de[_0x16a33d(0x17e)][_0x16a33d(0x155)](),this[_0x16a33d(0x143)][_0x16a33d(0x168)][_0x16a33d(0x18f)](_0x57e5de);}[_0x3a3e69(0x12b)](_0x318dc3){const _0x32607c=_0x3a3e69,_0x516928=new _0x21e43f(this[_0x32607c(0x143)][_0x32607c(0x14c)][_0x32607c(0x13d)][_0x32607c(0x188)]),_0x391d25=new _0x460a60({'name':/^h[1-5]$/}),_0x4dbae=[];let _0x381328=!0x1;for(const _0x1a7398 of _0x318dc3)_0x1a7398['is'](_0x32607c(0x186))&&_0x391d25[_0x32607c(0x166)](_0x1a7398)&&(_0x4dbae[_0x32607c(0x14d)](_0x1a7398),'h1'==_0x1a7398[_0x32607c(0x192)]&&(_0x381328=!0x0));if(_0x381328){for(const _0x4bdea3 of _0x4dbae)_0x516928[_0x32607c(0x12f)]('h'+(parseInt(_0x4bdea3[_0x32607c(0x192)][0x1])+0x1),_0x4bdea3);}}[_0x3a3e69(0x161)](){const _0x289f66=_0x3a3e69,{data:_0x2148f6,editing:_0xe1e8ba}=this[_0x289f66(0x143)],_0x2ebc31=_0x2148f6[_0x289f66(0x18a)][_0x289f66(0x13f)](_0x289f66(0x14a)),_0x3418b1=_0x2148f6[_0x289f66(0x13f)](_0x2148f6[_0x289f66(0x158)](_0x2ebc31));return!!_0xe1e8ba[_0x289f66(0x13d)][_0x289f66(0x16c)][_0x289f66(0x152)](_0x3418b1)[_0x289f66(0x12c)]('h1');}[_0x3a3e69(0x153)](_0x740ac5){const _0x1b5ce7=_0x3a3e69;return this[_0x1b5ce7(0x143)][_0x1b5ce7(0x14c)][_0x1b5ce7(0x13d)][_0x1b5ce7(0x16c)][_0x1b5ce7(0x15a)](this[_0x1b5ce7(0x179)],_0x740ac5),this[_0x1b5ce7(0x179)][_0x1b5ce7(0x17a)];}[_0x3a3e69(0x176)](_0x37a4eb){const _0x3d5a82=_0x3a3e69,_0x531eef=_0x37a4eb[_0x3d5a82(0x170)]();return _0x531eef[_0x3d5a82(0x133)](_0x3d5a82(0x146))?_0x531eef[_0x3d5a82(0x138)](_0x3d5a82(0x173))?_0x531eef[_0x3d5a82(0x16f)](0x7,_0x531eef[_0x3d5a82(0x164)]-0x3):_0x531eef[_0x3d5a82(0x16f)](0x7):_0x37a4eb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53664d=_0x23c7;(function(_0x352316,_0xdf2f15){const _0x4bb4c4=_0x23c7,_0x34415e=_0x352316();while(!![]){try{const _0x3e47ae=-parseInt(_0x4bb4c4(0xbe))/0x1*(parseInt(_0x4bb4c4(0x8d))/0x2)+parseInt(_0x4bb4c4(0xc3))/0x3+-parseInt(_0x4bb4c4(0xb6))/0x4*(parseInt(_0x4bb4c4(0x92))/0x5)+-parseInt(_0x4bb4c4(0xc2))/0x6*(-parseInt(_0x4bb4c4(0xa2))/0x7)+-parseInt(_0x4bb4c4(0x7f))/0x8+-parseInt(_0x4bb4c4(0x84))/0x9+parseInt(_0x4bb4c4(0xb3))/0xa;if(_0x3e47ae===_0xdf2f15)break;else _0x34415e['push'](_0x34415e['shift']());}catch(_0x10e016){_0x34415e['push'](_0x34415e['shift']());}}}(_0x32cc,0x9aa41));import{global as _0x53eebf}from'ckeditor5/src/utils.js';import{View as _0x26544a,ButtonView as _0x467f5c,SpinnerView as _0x205d3b}from'ckeditor5/src/ui.js';import{IconCheck as _0xa319c5,IconCopy as _0x8eeb0c}from'ckeditor5/src/icons.js';function _0x23c7(_0x38bcb8,_0x29a84d){const _0x32cc42=_0x32cc();return _0x23c7=function(_0x23c7de,_0xbe67ea){_0x23c7de=_0x23c7de-0x7b;let _0x4eb1c2=_0x32cc42[_0x23c7de];return _0x4eb1c2;},_0x23c7(_0x38bcb8,_0x29a84d);}import{getTranslation as _0x1b10af}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x26544a{[_0x53664d(0x9c)];[_0x53664d(0x98)];constructor(_0x15ee25,_0x2088fe=''){const _0x345182=_0x53664d;super(_0x15ee25),this[_0x345182(0xa7)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x13b31e=this[_0x345182(0x91)];this[_0x345182(0x9c)]=new ContentFieldView(_0x15ee25,_0x2088fe),this[_0x345182(0x98)]=this[_0x345182(0x99)](),this[_0x345182(0x89)]({'tag':_0x345182(0xbd),'attributes':{'class':['ck',_0x345182(0x85),_0x13b31e['if'](_0x345182(0xc1),_0x345182(0x81),_0x11d825=>!_0x11d825)],'tabindex':'-1'},'children':[{'tag':_0x345182(0xbd),'attributes':{'class':['ck',_0x345182(0xa3),_0x13b31e['if'](_0x345182(0xbb),_0x345182(0xab))]},'children':[this[_0x345182(0x9c)],{'tag':_0x345182(0xbd),'attributes':{'class':['ck',_0x345182(0xb8)]},'children':[this[_0x345182(0x98)]]}]}]});}[_0x53664d(0x94)](){const _0x5c177d=_0x53664d;super[_0x5c177d(0x94)](),this[_0x5c177d(0xb9)]&&this[_0x5c177d(0x9c)][_0x5c177d(0xb0)](this[_0x5c177d(0xb9)]);let _0x171ec0=!0x1;this['on'](_0x5c177d(0xc8),(_0xf98ce7,_0x2534d3,_0x3c1fae)=>{const _0xeefe0=_0x5c177d,_0x1e5da3=!this[_0xeefe0(0x9c)][_0xeefe0(0xa1)][_0xeefe0(0x96)](_0xeefe0(0xbf));this[_0xeefe0(0x9c)][_0xeefe0(0xb0)](_0x3c1fae),this[_0xeefe0(0xbb)]&&_0x1e5da3&&!_0x171ec0&&this[_0xeefe0(0xa1)][_0xeefe0(0xb1)]({'top':this[_0xeefe0(0xa1)][_0xeefe0(0x88)],'behavior':_0xeefe0(0xa8)});}),this['on'](_0x5c177d(0xaa),(_0x50dec3,_0x4c297b,_0x18bed4)=>{const _0x33bb1e=_0x5c177d;_0x171ec0=!0x1,_0x18bed4?(this[_0x33bb1e(0xb9)]=null,this[_0x33bb1e(0x9c)][_0x33bb1e(0xa0)]()):this[_0x33bb1e(0xb9)]||this[_0x33bb1e(0x9c)][_0x33bb1e(0xb0)]('');}),this[_0x5c177d(0xb7)](this[_0x5c177d(0xa1)],_0x5c177d(0xc5),()=>{_0x171ec0=!0x0;}),this[_0x5c177d(0xb7)](this[_0x5c177d(0xa1)],_0x5c177d(0xb2),()=>{_0x171ec0=!0x0;});}[_0x53664d(0xc9)](){const _0x1f4691=_0x53664d;this[_0x1f4691(0xa1)][_0x1f4691(0xc9)]();}[_0x53664d(0x99)](){const _0x26db1=_0x53664d,_0x18caa3=this[_0x26db1(0xcc)],_0x14ff77=new _0x467f5c(this[_0x26db1(0xcc)]),_0x37fe72=_0x26db1(0x8a);return _0x14ff77[_0x26db1(0xa7)]({'label':_0x1b10af(_0x18caa3,_0x26db1(0x7b)),'icon':_0x8eeb0c,'class':_0x37fe72,'tooltip':!0x0}),_0x14ff77[_0x26db1(0x8f)](_0x26db1(0xc1))['to'](this,_0x26db1(0xb9),_0x20d9ee=>!!_0x20d9ee),_0x14ff77[_0x26db1(0x8f)](_0x26db1(0x9a))['to'](this,_0x26db1(0xbb),_0x194f36=>!_0x194f36),_0x14ff77['on'](_0x26db1(0xce),()=>{const _0x4efe6c=_0x26db1;this[_0x4efe6c(0xc4)](this[_0x4efe6c(0x9c)][_0x4efe6c(0xa1)]),_0x14ff77[_0x4efe6c(0x90)]=_0xa319c5,_0x14ff77[_0x4efe6c(0xb4)]=_0x37fe72+_0x4efe6c(0x80),this[_0x4efe6c(0xc9)](),setTimeout(()=>{const _0x35bc3a=_0x4efe6c;_0x14ff77[_0x35bc3a(0x90)]=_0x8eeb0c,_0x14ff77[_0x35bc3a(0xb4)]=_0x37fe72;},0x3e8);}),_0x14ff77;}[_0x53664d(0xc4)](_0x7e999b){const _0x166a8f=_0x53664d,{window:_0x1f5924,document:_0x2e27ed}=_0x53eebf;if(_0x1f5924[_0x166a8f(0xcf)]){const {Blob:_0x5886dc,ClipboardItem:_0x2fa0b3}=_0x1f5924,_0x3d5fa0=[new _0x2fa0b3({'text/html':new _0x5886dc([_0x7e999b[_0x166a8f(0x87)]],{'type':_0x166a8f(0xba)}),'text/plain':new _0x5886dc([_0x7e999b[_0x166a8f(0xca)]||''],{'type':_0x166a8f(0xbc)})})];navigator[_0x166a8f(0x7e)][_0x166a8f(0x9b)](_0x3d5fa0);}else{const _0x1382dc=_0x2e27ed[_0x166a8f(0x8b)](_0x166a8f(0xbd));_0x1382dc[_0x166a8f(0x97)][_0x166a8f(0x82)]=_0x166a8f(0x7c),_0x1382dc[_0x166a8f(0x97)][_0x166a8f(0xaf)]=_0x166a8f(0xa9),_0x1382dc[_0x166a8f(0x87)]=_0x166a8f(0x7d)+_0x7e999b[_0x166a8f(0x87)]+_0x166a8f(0x9f),_0x2e27ed[_0x166a8f(0xc6)][_0x166a8f(0xae)](_0x1382dc);const _0x150dd9=_0x2e27ed[_0x166a8f(0xb5)]();_0x150dd9[_0x166a8f(0xc7)](_0x1382dc[_0x166a8f(0xac)]),_0x150dd9[_0x166a8f(0xa6)](_0x1382dc[_0x166a8f(0xc0)]);const _0x1b40b4=_0x1f5924[_0x166a8f(0x83)]();_0x1b40b4[_0x166a8f(0x8e)](),_0x1b40b4[_0x166a8f(0x9d)](_0x150dd9),_0x2e27ed[_0x166a8f(0x93)](_0x166a8f(0xa5)),_0x1382dc[_0x166a8f(0x86)]();}}}function _0x32cc(){const _0x15e9dc=['getSelection','4041117wVMala','ck-ai-form__content-area-wrapper','remove','innerHTML','scrollHeight','setTemplate','ck-ai-form__copy-button','createElement','_createLoader','1770jcBhzC','removeAllRanges','bind','icon','bindTemplate','5TsBEum','execCommand','render','ck-content','querySelector','style','copyButtonView','_createCopyButton','isEnabled','write','contentFieldView','addRange','ck-reset_all-excluded','<span>]</span>','appendLoader','element','406TXNVfq','ck-ai-form__content-area','loaderView','copy','setEndBefore','set','smooth','-9999px','change:isProcessing','ck-ai-form__content-area--processing','firstElementChild','AI\x20is\x20writing...','appendChild','left','setContent','scrollTo','mousedown','15825310sYndlo','class','createRange','2335236INRsOq','listenTo','ck-ai-form__copy-button-wrapper','value','text/html','isProcessing','text/plain','div','733zvHsKb','.ck-ai-form__loader','lastElementChild','isVisible','19014XZpIdJ','2535204ZqZwZk','_copyHTMLToClipboard','wheel','body','setStartAfter','change:value','focus','textContent','ck-ai-form__loader','locale','ck-ai-form__content-field','execute','ClipboardItem','Copy','absolute','<span>[</span>','clipboard','2371720Hmynfx','\x20ck-ai-form__copy-button--copied','ck-hidden','position'];_0x32cc=function(){return _0x15e9dc;};return _0x32cc();}export class ContentFieldView extends _0x26544a{constructor(_0x4d1970,_0x4cf25d=''){const _0x2e7f1f=_0x53664d;super(_0x4d1970),this[_0x2e7f1f(0xa4)]=this[_0x2e7f1f(0x8c)](),this[_0x2e7f1f(0x89)]({'tag':_0x2e7f1f(0xbd),'attributes':{'class':['ck',_0x2e7f1f(0x95),_0x4cf25d,_0x2e7f1f(0x9e),_0x2e7f1f(0xcd)]}});}[_0x53664d(0xb0)](_0x4e6371){const _0x2d02f0=_0x53664d;this[_0x2d02f0(0xa1)][_0x2d02f0(0x87)]=_0x4e6371;}[_0x53664d(0xa0)](){const _0x559989=_0x53664d;this[_0x559989(0xa1)][_0x559989(0xae)](this[_0x559989(0xa4)][_0x559989(0xa1)]);}[_0x53664d(0x8c)](){const _0x111f0b=_0x53664d,_0x306d43=new _0x26544a(),_0x373980=this[_0x111f0b(0xcc)],_0x64eede=new _0x205d3b();return _0x64eede[_0x111f0b(0xc1)]=!0x0,_0x306d43[_0x111f0b(0x89)]({'tag':_0x111f0b(0xbd),'attributes':{'class':['ck',_0x111f0b(0xcb)]},'children':[_0x64eede,{'text':_0x1b10af(_0x373980,_0x111f0b(0xad))}]}),_0x306d43[_0x111f0b(0x94)](),_0x306d43;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xe904(_0x4e469c,_0x3480d4){const _0x30718f=_0x3071();return _0xe904=function(_0xe90499,_0x50e7e0){_0xe90499=_0xe90499-0x1a6;let _0x36f0f5=_0x30718f[_0xe90499];return _0x36f0f5;},_0xe904(_0x4e469c,_0x3480d4);}function _0x3071(){const _0x56cff7=['set','571946xZwxCo','3366840cTpkDh','7730bUTWan','ck-ai-form__error','2991lqxmrl','div','content','235454IKCRon','text','32XHIfeW','383490RiDnYT','184JaOZqm','bindTemplate','setTemplate','378777qNcXTe','696vmMEuN'];_0x3071=function(){return _0x56cff7;};return _0x3071();}(function(_0x4f199f,_0x103cf5){const _0x456ff5=_0xe904,_0x46e269=_0x4f199f();while(!![]){try{const _0x451127=-parseInt(_0x456ff5(0x1aa))/0x1+parseInt(_0x456ff5(0x1b4))/0x2+parseInt(_0x456ff5(0x1a7))/0x3*(parseInt(_0x456ff5(0x1ae))/0x4)+parseInt(_0x456ff5(0x1b6))/0x5*(parseInt(_0x456ff5(0x1b2))/0x6)+-parseInt(_0x456ff5(0x1b1))/0x7*(-parseInt(_0x456ff5(0x1ac))/0x8)+parseInt(_0x456ff5(0x1ad))/0x9+-parseInt(_0x456ff5(0x1b5))/0xa;if(_0x451127===_0x103cf5)break;else _0x46e269['push'](_0x46e269['shift']());}catch(_0x52bb06){_0x46e269['push'](_0x46e269['shift']());}}}(_0x3071,0x305c7));import{IconError as _0x301571}from'ckeditor5/src/icons.js';import{View as _0x2c86e6,IconView as _0x26e656}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x2c86e6{constructor(_0x5b5caf,_0x1d6a30=''){const _0x2e055f=_0xe904;super(_0x5b5caf);const _0xee9315=new _0x26e656(),_0xf40618=this[_0x2e055f(0x1af)];this[_0x2e055f(0x1b3)](_0x2e055f(0x1ab),_0x1d6a30),_0xee9315[_0x2e055f(0x1a9)]=_0x301571,this[_0x2e055f(0x1b0)]({'tag':_0x2e055f(0x1a8),'attributes':{'class':['ck',_0x2e055f(0x1a6)]},'children':[_0xee9315,{'text':_0xf40618['to'](_0x2e055f(0x1ab))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e1eeb=_0x1389;function _0x1389(_0x2a558e,_0x5df45d){const _0x2b2c66=_0x2b2c();return _0x1389=function(_0x138923,_0xdbba4d){_0x138923=_0x138923-0x138;let _0x4c36c1=_0x2b2c66[_0x138923];return _0x4c36c1;},_0x1389(_0x2a558e,_0x5df45d);}(function(_0x2b6021,_0x4cb026){const _0x337ce6=_0x1389,_0x223f05=_0x2b6021();while(!![]){try{const _0x3106fa=-parseInt(_0x337ce6(0x159))/0x1+parseInt(_0x337ce6(0x16c))/0x2+parseInt(_0x337ce6(0x165))/0x3+parseInt(_0x337ce6(0x169))/0x4+parseInt(_0x337ce6(0x13a))/0x5+parseInt(_0x337ce6(0x156))/0x6+parseInt(_0x337ce6(0x142))/0x7*(-parseInt(_0x337ce6(0x158))/0x8);if(_0x3106fa===_0x4cb026)break;else _0x223f05['push'](_0x223f05['shift']());}catch(_0x19900a){_0x223f05['push'](_0x223f05['shift']());}}}(_0x2b2c,0x7cb6b));import{Rect as _0x2a80c1,global as _0x409517,isVisible as _0x49a8f2}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x341b37,IconSubmit as _0x1e755c}from'ckeditor5/src/icons.js';function _0x2b2c(){const _0x28c314=['submitButtonView','bind','keystrokes','isEmpty','7ACdVYu','left','History','execute','excludeScrollbarsAndBorders','fieldView','style','maxRows','minRows','isVisible','render','focusCycler','fire','children','width','submit','element','_createSubmitButton','requestAnimationFrame','isOn','3066516sUQiQK','fieldWrapperChildren','20215432SuTEpG','298880schwpU','window','target','locale','focusableChildren','focusLast','Submit','focusFirst','filteredView','focus','uiLanguageDirection','_createShowHistoryButton','609711MglEHs','queryView','rtl','enter','3087928nUeoXD','ck-ai-form__toggle-history','set','1688048qRsLTL','isEnabled','update','showHistoryButtonView','right','ck-ai-form__submit','5031535hXITZC','value','add','resultsView'];_0x2b2c=function(){return _0x28c314;};return _0x2b2c();}import{AutocompleteView as _0x1821a2,ButtonView as _0x48c21f}from'ckeditor5/src/ui.js';import{getTranslation as _0x280591}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x1821a2{[_0x2e1eeb(0x13e)];[_0x2e1eeb(0x16f)];constructor(_0x11827f,_0x1896cf){const _0x267cea=_0x2e1eeb;super(_0x11827f,_0x1896cf),this[_0x267cea(0x166)][_0x267cea(0x147)][_0x267cea(0x14a)]=0x1,this[_0x267cea(0x166)][_0x267cea(0x147)][_0x267cea(0x149)]=0x3,this[_0x267cea(0x13e)]=this[_0x267cea(0x153)](),this[_0x267cea(0x16f)]=this[_0x267cea(0x164)](),this[_0x267cea(0x15d)][_0x267cea(0x13c)](this[_0x267cea(0x16f)],0x1),this[_0x267cea(0x15d)][_0x267cea(0x13c)](this[_0x267cea(0x13e)]);}[_0x2e1eeb(0x14c)](){const _0x472f63=_0x2e1eeb;super[_0x472f63(0x14c)](),this[_0x472f63(0x166)][_0x472f63(0x157)][_0x472f63(0x13c)](this[_0x472f63(0x16f)]),this[_0x472f63(0x14f)][_0x472f63(0x13c)](this[_0x472f63(0x13e)]),this[_0x472f63(0x140)][_0x472f63(0x16b)](_0x472f63(0x168),(_0x2ae7b6,_0x43ca05)=>{const _0x46a298=_0x472f63;_0x2ae7b6[_0x46a298(0x15b)]==this[_0x46a298(0x166)][_0x46a298(0x147)][_0x46a298(0x152)]&&(this[_0x46a298(0x151)](),_0x43ca05());});}[_0x2e1eeb(0x153)](){const _0xfcb916=_0x2e1eeb,_0x5ab576=new _0x48c21f(this[_0xfcb916(0x15c)]),_0x384ebc=this[_0xfcb916(0x15c)];return _0x5ab576[_0xfcb916(0x16b)]({'icon':_0x1e755c,'label':_0x280591(_0x384ebc,_0xfcb916(0x15f)),'isVisible':!0x0,'tooltip':!0x0,'class':_0xfcb916(0x139)}),_0x5ab576['on'](_0xfcb916(0x145),()=>{const _0x14a053=_0xfcb916;this[_0x14a053(0x151)]();}),_0x5ab576[_0xfcb916(0x13f)](_0xfcb916(0x16d))['to'](this[_0xfcb916(0x166)][_0xfcb916(0x147)],_0xfcb916(0x141),this,_0xfcb916(0x16d),(_0x47b20b,_0x171a65)=>!_0x47b20b&&_0x171a65),_0x5ab576;}[_0x2e1eeb(0x164)](){const _0x167ba2=_0x2e1eeb,_0x3291c9=new _0x48c21f(this[_0x167ba2(0x15c)]),_0x1bfb82=this[_0x167ba2(0x13d)],_0x966703=this[_0x167ba2(0x15c)];_0x3291c9[_0x167ba2(0x16b)]({'label':_0x280591(_0x966703,_0x167ba2(0x144)),'withText':!0x1,'icon':_0x341b37,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x167ba2(0x16a)}),_0x3291c9[_0x167ba2(0x13f)](_0x167ba2(0x155))['to'](_0x1bfb82,_0x167ba2(0x14b)),_0x3291c9[_0x167ba2(0x13f)](_0x167ba2(0x16d))['to'](this,_0x167ba2(0x16d)),_0x3291c9['on'](_0x167ba2(0x145),()=>{const _0x3273fa=_0x167ba2;_0x1bfb82[_0x3273fa(0x14b)]=!_0x1bfb82[_0x3273fa(0x14b)],_0x1bfb82[_0x3273fa(0x14b)]?this[_0x3273fa(0x161)][_0x3273fa(0x162)]():this[_0x3273fa(0x162)]();});const _0x11a352=()=>{const _0x19981c=_0x167ba2;_0x409517[_0x19981c(0x15a)][_0x19981c(0x154)](()=>{const _0x16040f=_0x19981c;if(_0x49a8f2(this[_0x16040f(0x152)])){const _0xd0baaa=new _0x2a80c1(this[_0x16040f(0x166)][_0x16040f(0x147)][_0x16040f(0x152)]),_0x3e67c8=_0xd0baaa[_0x16040f(0x150)],_0x59044d=_0x16040f(0x167)===_0x966703[_0x16040f(0x163)]?_0x16040f(0x143):_0x16040f(0x138);_0xd0baaa[_0x16040f(0x146)](),_0x3291c9[_0x16040f(0x152)][_0x16040f(0x148)][_0x59044d]=_0x3e67c8-_0xd0baaa[_0x16040f(0x150)]+0x1+'px';}});};return this[_0x167ba2(0x166)][_0x167ba2(0x147)]['on'](_0x167ba2(0x16e),_0x11a352),this['on'](_0x167ba2(0x14c),_0x11a352),_0x3291c9;}[_0x2e1eeb(0x151)](){const _0x400fea=_0x2e1eeb,_0x4db5d5=this[_0x400fea(0x166)][_0x400fea(0x147)][_0x400fea(0x152)][_0x400fea(0x13b)];this[_0x400fea(0x14e)](_0x400fea(0x151),_0x4db5d5);}[_0x2e1eeb(0x162)](_0x5232b1){const _0x136e2d=_0x2e1eeb;-0x1===_0x5232b1?this[_0x136e2d(0x14d)][_0x136e2d(0x15e)]():this[_0x136e2d(0x14d)][_0x136e2d(0x160)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x36bbf8=_0x1e7d;(function(_0x479a74,_0x3acc83){const _0x94bf64=_0x1e7d,_0xefc9d5=_0x479a74();while(!![]){try{const _0x2376f9=-parseInt(_0x94bf64(0x1f1))/0x1+-parseInt(_0x94bf64(0x1f3))/0x2+parseInt(_0x94bf64(0x1eb))/0x3*(-parseInt(_0x94bf64(0x1dd))/0x4)+parseInt(_0x94bf64(0x1dc))/0x5+parseInt(_0x94bf64(0x1f6))/0x6+parseInt(_0x94bf64(0x1f2))/0x7+-parseInt(_0x94bf64(0x1de))/0x8*(parseInt(_0x94bf64(0x1e5))/0x9);if(_0x2376f9===_0x3acc83)break;else _0xefc9d5['push'](_0xefc9d5['shift']());}catch(_0x2d8e19){_0xefc9d5['push'](_0xefc9d5['shift']());}}}(_0x55ac,0x733d8));import{ToolbarView as _0x37fc23,ButtonView as _0x31390d}from'ckeditor5/src/ui.js';function _0x55ac(){const _0x420065=['toUpperCase','insertButton','ck-hidden','extendTemplate','replaceButton','AI_','addMany','Insert\x20below','insert','3218095MJyACG','4NmeYPw','8IsNSsq','_createButton','bindTemplate','label','REPLACE','_CONTENT','tryAgainButton','7677081xmeyzf','bind','isVisible','Try\x20again','ck-ai-form__toolbar','replace','89031yjXjYk','set','Stop','ck-button-action','items','mainAction','345137QnGcZt','4606616dcCVoc','991752ZnXVmp','locale','stopButton','5364096TKCccR'];_0x55ac=function(){return _0x420065;};return _0x55ac();}import{getTranslation as _0x133a3a}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x36bbf8(0x1ea),'INSERT':_0x36bbf8(0x1db)};function _0x1e7d(_0x174ae5,_0x57e714){const _0x55ac20=_0x55ac();return _0x1e7d=function(_0x1e7d79,_0x5d0abb){_0x1e7d79=_0x1e7d79-0x1da;let _0x369f8d=_0x55ac20[_0x1e7d79];return _0x369f8d;},_0x1e7d(_0x174ae5,_0x57e714);}export class AIFormToolbarView extends _0x37fc23{constructor(_0x5662bb){const _0x45455c=_0x36bbf8;super(_0x5662bb),this[_0x45455c(0x1ec)](_0x45455c(0x1e7),!0x1),this[_0x45455c(0x1ec)](_0x45455c(0x1f0),AIFormToolbarViewMainActionLabel[_0x45455c(0x1e2)]),this[_0x45455c(0x1fb)]=this[_0x45455c(0x1df)]('',_0x45455c(0x1ee)),this[_0x45455c(0x1fb)][_0x45455c(0x1e6)](_0x45455c(0x1e1))['to'](this,_0x45455c(0x1f0),_0x3d36cf=>_0x133a3a(_0x5662bb,_0x45455c(0x1fc)+_0x3d36cf[_0x45455c(0x1f7)]()+_0x45455c(0x1e3))),this[_0x45455c(0x1f8)]=this[_0x45455c(0x1df)](_0x133a3a(_0x5662bb,_0x45455c(0x1da))),this[_0x45455c(0x1e4)]=this[_0x45455c(0x1df)](_0x133a3a(_0x5662bb,_0x45455c(0x1e8))),this[_0x45455c(0x1f5)]=this[_0x45455c(0x1df)](_0x133a3a(_0x5662bb,_0x45455c(0x1ed)));const _0x1fbfd0=this[_0x45455c(0x1e0)];this[_0x45455c(0x1fa)]({'attributes':{'class':[_0x45455c(0x1e9),_0x1fbfd0['if'](_0x45455c(0x1e7),_0x45455c(0x1f9),_0x379534=>!_0x379534)]}}),this[_0x45455c(0x1ef)][_0x45455c(0x1fd)]([this[_0x45455c(0x1fb)],this[_0x45455c(0x1f8)],this[_0x45455c(0x1e4)],this[_0x45455c(0x1f5)]]);}[_0x36bbf8(0x1df)](_0x3b68a9,_0x13ed5f){const _0x56a59a=_0x36bbf8,_0x46506f=new _0x31390d(this[_0x56a59a(0x1f4)]);return _0x46506f[_0x56a59a(0x1ec)]({'label':_0x3b68a9,'class':_0x13ed5f||'','isVisible':!0x0,'withText':!0x0}),_0x46506f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2dc1b9=_0x558a;(function(_0x387da8,_0x2499f8){const _0x337203=_0x558a,_0x4a9847=_0x387da8();while(!![]){try{const _0x7637=parseInt(_0x337203(0x18d))/0x1+parseInt(_0x337203(0x17c))/0x2*(-parseInt(_0x337203(0x1b6))/0x3)+-parseInt(_0x337203(0x176))/0x4*(parseInt(_0x337203(0x1b7))/0x5)+parseInt(_0x337203(0x19a))/0x6*(-parseInt(_0x337203(0x19b))/0x7)+parseInt(_0x337203(0x1ba))/0x8+parseInt(_0x337203(0x16e))/0x9*(parseInt(_0x337203(0x1a9))/0xa)+parseInt(_0x337203(0x173))/0xb;if(_0x7637===_0x2499f8)break;else _0x4a9847['push'](_0x4a9847['shift']());}catch(_0x410029){_0x4a9847['push'](_0x4a9847['shift']());}}}(_0x40ea,0x5e6fa));import{FocusTracker as _0x29b7ff,KeystrokeHandler as _0x2dda70}from'ckeditor5/src/utils.js';import{View as _0x531e67,FocusCycler as _0x391c07,createLabeledTextarea as _0x3998cb}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x50ef1d,AIFormToolbarViewMainActionLabel as _0x4371a6}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x19286b}from'./aiformcontentarea.js';function _0x40ea(){const _0x2e6721=['handleError','promptView','isProcessing','keystrokes','tab','_promptHistory','10fKtSlm','text','Ask\x20AI\x20to\x20edit\x20or\x20generate','bindTo','high','items','isEnabled','REPLACE','set','focusCycler','focusLast','tryAgainButton','tryAgainEvent','70935lvfMRO','753755cRrFlM','copyButtonView','insertButton','316264jKbrxS','submit','delegate','setTemplate','submitPrompt','chain','_focusables','ck-ai-form','_createPromptView','ck-ai-form-content','609993CItMqG','stopButton','clearHistory','bind','render','10323610KgOuUe','focus','reset','8gfLxbp','createCollection','prompt','queryView','_createHistoryView','AI_ERROR_FAILED','50UFLiVs','replaceButton','shift\x20+\x20tab','add','isVisible','historyGroupView','div','Empty\x20history','startProcessing','_createToolbar','stopProcessing','focusTracker','errorView','trim','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','label','clear','380034gJFHTV','ck-hidden','fire','bindTemplate','fieldView','toolbar','element','search','locale','replaceContent','isError','contentArea','listenTo','6etBHZC','1024919vvNWCY','mainAction','execute','insertContentBelow','focusFirst','Ask\x20AI\x20to\x20improve\x20generated\x20text','finishProcessing','value'];_0x40ea=function(){return _0x2e6721;};return _0x40ea();}import{AIFormErrorView as _0x26798a}from'./aiformerrorview.js';function _0x558a(_0x4ddbea,_0x4224cf){const _0x40ea9e=_0x40ea();return _0x558a=function(_0x558a9d,_0x1996e0){_0x558a9d=_0x558a9d-0x16b;let _0x19a1a4=_0x40ea9e[_0x558a9d];return _0x19a1a4;},_0x558a(_0x4ddbea,_0x4224cf);}import{AIFormPromptView as _0x1bb18b}from'./aiformpromptview.js';import{AIHistoryListView as _0x4b6815}from'./aihistorylistview.js';import{AIHistoryListItemView as _0xbce99e}from'./aihistorylistitemview.js';import{PromptHistory as _0x1945cd}from'./prompthistory.js';import{getTranslation as _0x533a8b}from'../../utils/common-translations.js';import{escape as _0x324528}from'es-toolkit/compat';export class AIFormView extends _0x531e67{[_0x2dc1b9(0x187)];[_0x2dc1b9(0x1a6)];[_0x2dc1b9(0x198)];[_0x2dc1b9(0x192)];[_0x2dc1b9(0x1a4)];[_0x2dc1b9(0x188)];[_0x2dc1b9(0x1c0)];[_0x2dc1b9(0x1b2)];[_0x2dc1b9(0x1a8)];constructor(_0x166d69,_0x4b0fc3,_0x11e305=''){const _0x3e968a=_0x2dc1b9;super(_0x166d69),this[_0x3e968a(0x1b1)](_0x3e968a(0x1af),!0x0),this[_0x3e968a(0x1b1)](_0x3e968a(0x1a5),!0x1),this[_0x3e968a(0x1b1)](_0x3e968a(0x178),''),this[_0x3e968a(0x1b1)](_0x3e968a(0x1a2),''),this[_0x3e968a(0x1b1)](_0x3e968a(0x197),!0x1),this[_0x3e968a(0x1b1)](_0x3e968a(0x19c),_0x4371a6[_0x3e968a(0x1b0)]),this[_0x3e968a(0x1a8)]=new _0x1945cd(),this[_0x3e968a(0x188)]=new _0x26798a(_0x166d69),this[_0x3e968a(0x198)]=new _0x19286b(_0x166d69,_0x11e305),this[_0x3e968a(0x198)][_0x3e968a(0x171)](_0x3e968a(0x1a5))['to'](this),this[_0x3e968a(0x198)][_0x3e968a(0x171)](_0x3e968a(0x1a2))['to'](this),this[_0x3e968a(0x192)]=this[_0x3e968a(0x185)](),this[_0x3e968a(0x192)][_0x3e968a(0x171)](_0x3e968a(0x19c))['to'](this),this[_0x3e968a(0x1a4)]=this[_0x3e968a(0x16c)](),this[_0x3e968a(0x187)]=new _0x29b7ff(),this[_0x3e968a(0x1a6)]=new _0x2dda70(),this[_0x3e968a(0x1c0)]=this[_0x3e968a(0x177)]([this[_0x3e968a(0x198)],this[_0x3e968a(0x198)][_0x3e968a(0x1b8)],this[_0x3e968a(0x192)],this[_0x3e968a(0x1a4)]]),this[_0x3e968a(0x1b2)]=new _0x391c07({'focusables':this[_0x3e968a(0x1c0)],'focusTracker':this[_0x3e968a(0x187)],'keystrokeHandler':this[_0x3e968a(0x1a6)],'actions':{'focusPrevious':_0x3e968a(0x17e),'focusNext':_0x3e968a(0x1a7)}}),this[_0x3e968a(0x1b2)][_0x3e968a(0x1bf)](this[_0x3e968a(0x1a4)][_0x3e968a(0x1b2)]),this[_0x3e968a(0x1a4)][_0x3e968a(0x179)][_0x3e968a(0x191)][_0x3e968a(0x171)](_0x3e968a(0x1a2))['to'](this,_0x3e968a(0x178));const _0x24712e=this[_0x3e968a(0x190)];this[_0x3e968a(0x1bd)]({'tag':_0x3e968a(0x182),'attributes':{'class':['ck',_0x3e968a(0x16b),_0x4b0fc3],'tabindex':'-1'},'children':[{'tag':_0x3e968a(0x182),'attributes':{'class':['ck',_0x3e968a(0x16d)]},'children':[{'tag':_0x3e968a(0x182),'attributes':{'class':[_0x24712e['if'](_0x3e968a(0x197),_0x3e968a(0x18e),_0x1ebb94=>!_0x1ebb94)]},'children':[this[_0x3e968a(0x188)]]},this[_0x3e968a(0x198)],this[_0x3e968a(0x192)],this[_0x3e968a(0x1a4)]]}]});}[_0x2dc1b9(0x172)](){const _0x2f5fcd=_0x2dc1b9;super[_0x2f5fcd(0x172)](),this[_0x2f5fcd(0x187)][_0x2f5fcd(0x17f)](this[_0x2f5fcd(0x198)][_0x2f5fcd(0x193)]),this[_0x2f5fcd(0x187)][_0x2f5fcd(0x17f)](this[_0x2f5fcd(0x198)][_0x2f5fcd(0x1b8)][_0x2f5fcd(0x193)]),this[_0x2f5fcd(0x187)][_0x2f5fcd(0x17f)](this[_0x2f5fcd(0x192)][_0x2f5fcd(0x193)]),this[_0x2f5fcd(0x187)][_0x2f5fcd(0x17f)](this[_0x2f5fcd(0x1a4)][_0x2f5fcd(0x193)]),this[_0x2f5fcd(0x1a6)][_0x2f5fcd(0x199)](this[_0x2f5fcd(0x193)]);}[_0x2dc1b9(0x174)](_0x2b87e6=0x1){const _0x5d8f26=_0x2dc1b9;-0x1===_0x2b87e6?this[_0x5d8f26(0x1b2)][_0x5d8f26(0x1b3)]():this[_0x5d8f26(0x1b2)][_0x5d8f26(0x19f)]();}[_0x2dc1b9(0x175)](){const _0xd54c4c=_0x2dc1b9;this[_0xd54c4c(0x178)]='',this[_0xd54c4c(0x1a2)]='',this[_0xd54c4c(0x197)]=!0x1,this[_0xd54c4c(0x1a4)][_0xd54c4c(0x175)](),this[_0xd54c4c(0x198)][_0xd54c4c(0x180)]=!0x1,this[_0xd54c4c(0x192)][_0xd54c4c(0x180)]=!0x1;}[_0x2dc1b9(0x16c)](){const _0x170e35=_0x2dc1b9,_0x1557b1=this[_0x170e35(0x195)],_0x46260c=new _0x1bb18b(_0x1557b1,{'queryView':{'label':_0x533a8b(_0x1557b1,_0x170e35(0x1ab)),'creator':_0x3998cb,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x533a8b(_0x1557b1,_0x170e35(0x183)),'secondary':_0x533a8b(_0x1557b1,_0x170e35(0x18a))}}},'filteredView':this[_0x170e35(0x17a)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x46260c[_0x170e35(0x171)](_0x170e35(0x1af))['to'](this,_0x170e35(0x1af),this,_0x170e35(0x1a5),(_0x338be9,_0x52c348)=>_0x338be9&&!_0x52c348),this[_0x170e35(0x199)](_0x46260c,_0x170e35(0x1bb),(_0x4d7f66,_0x466b42)=>{const _0x417f70=_0x170e35;this[_0x417f70(0x178)]=_0x466b42;const _0x201d2d=_0x324528(_0x466b42);this[_0x417f70(0x18f)](_0x417f70(0x1be),_0x201d2d),_0x466b42[_0x417f70(0x189)]()&&this[_0x417f70(0x1a8)][_0x417f70(0x17f)]({'prompt':_0x201d2d},0x0);},{'priority':_0x170e35(0x1ad)}),_0x46260c;}[_0x2dc1b9(0x17a)](){const _0x356a63=_0x2dc1b9,_0x22e8d0=new _0x4b6815(this[_0x356a63(0x195)]);return _0x22e8d0[_0x356a63(0x181)][_0x356a63(0x1ae)][_0x356a63(0x1ac)](this[_0x356a63(0x1a8)])['as'](_0xbce99e),_0x22e8d0['on'](_0x356a63(0x170),()=>{const _0x2b5937=_0x356a63;this[_0x2b5937(0x1a8)][_0x2b5937(0x18c)](),this[_0x2b5937(0x1a4)][_0x2b5937(0x194)](''),this[_0x2b5937(0x1a4)][_0x2b5937(0x174)]();}),_0x22e8d0;}[_0x2dc1b9(0x185)](){const _0x44fefd=_0x2dc1b9,_0x255fd7=new _0x50ef1d(this[_0x44fefd(0x195)]);return _0x255fd7[_0x44fefd(0x17d)][_0x44fefd(0x171)](_0x44fefd(0x1af))['to'](this,_0x44fefd(0x1af),this,_0x44fefd(0x1a5),this,_0x44fefd(0x1a2),(_0x324359,_0x37ab5a,_0x3db4a0)=>_0x324359&&!_0x37ab5a&&!!_0x3db4a0),_0x255fd7[_0x44fefd(0x17d)][_0x44fefd(0x1bc)](_0x44fefd(0x19d))['to'](this,_0x44fefd(0x196)),_0x255fd7[_0x44fefd(0x1b9)][_0x44fefd(0x171)](_0x44fefd(0x1af))['to'](this,_0x44fefd(0x1af),this,_0x44fefd(0x1a5),this,_0x44fefd(0x1a2),(_0x3472f2,_0x34a8f8,_0x169532)=>_0x3472f2&&!_0x34a8f8&&!!_0x169532),_0x255fd7[_0x44fefd(0x1b9)][_0x44fefd(0x1bc)](_0x44fefd(0x19d))['to'](this,_0x44fefd(0x19e)),_0x255fd7[_0x44fefd(0x1b4)][_0x44fefd(0x171)](_0x44fefd(0x1af))['to'](this,_0x44fefd(0x1af),this,_0x44fefd(0x1a5),(_0x801516,_0x3ffe40)=>_0x801516&&!_0x3ffe40),_0x255fd7[_0x44fefd(0x1b4)][_0x44fefd(0x1bc)](_0x44fefd(0x19d))['to'](this,_0x44fefd(0x1b5)),_0x255fd7[_0x44fefd(0x16f)][_0x44fefd(0x171)](_0x44fefd(0x1af))['to'](this,_0x44fefd(0x1a5)),_0x255fd7[_0x44fefd(0x16f)][_0x44fefd(0x1bc)](_0x44fefd(0x19d))['to'](this,_0x44fefd(0x186)),_0x255fd7;}[_0x2dc1b9(0x184)](){const _0x3cd7ec=_0x2dc1b9;this[_0x3cd7ec(0x1a2)]='',this[_0x3cd7ec(0x197)]=!0x1,this[_0x3cd7ec(0x1a5)]=!0x0,this[_0x3cd7ec(0x198)][_0x3cd7ec(0x180)]=!0x0,this[_0x3cd7ec(0x192)][_0x3cd7ec(0x180)]=!0x0,this[_0x3cd7ec(0x198)][_0x3cd7ec(0x174)]();}[_0x2dc1b9(0x1a1)](){const _0xdb6bac=_0x2dc1b9,_0x49238d=this[_0xdb6bac(0x195)];this[_0xdb6bac(0x1a5)]=!0x1,this[_0xdb6bac(0x178)]='',this[_0xdb6bac(0x1a4)][_0xdb6bac(0x175)](),this[_0xdb6bac(0x1a2)]&&(this[_0xdb6bac(0x1a4)][_0xdb6bac(0x179)][_0xdb6bac(0x18b)]=_0x533a8b(_0x49238d,_0xdb6bac(0x1a0)));}[_0x2dc1b9(0x1a3)](_0x4198a0){const _0x4e2aa4=_0x2dc1b9,_0x494cef=this[_0x4e2aa4(0x195)];this[_0x4e2aa4(0x1a1)](),this[_0x4e2aa4(0x197)]=!0x0,this[_0x4e2aa4(0x188)][_0x4e2aa4(0x1aa)]=_0x4198a0||_0x533a8b(_0x494cef,_0x4e2aa4(0x17b)),this[_0x4e2aa4(0x1a2)]||(this[_0x4e2aa4(0x198)][_0x4e2aa4(0x180)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5c07(_0x23aaf6,_0x1a3715){const _0x4ccc94=_0x4ccc();return _0x5c07=function(_0x5c071,_0x4ff9fe){_0x5c071=_0x5c071-0x64;let _0x51594b=_0x4ccc94[_0x5c071];return _0x51594b;},_0x5c07(_0x23aaf6,_0x1a3715);}function _0x4ccc(){const _0x36333b=['1597101rOcqtG','873608nNsTfi','2301621lyivNO','execute','224851pjApPT','196tJDXVl','1303468qYBgDm','children','prompt','fire','10049XPEIIr','add','locale','25023204zIDZqD','18glAokq','5UIBkVl','210rlPYnt','27ppLagV','set'];_0x4ccc=function(){return _0x36333b;};return _0x4ccc();}(function(_0x5ff44d,_0x35f480){const _0x5dd506=_0x5c07,_0x5a34d2=_0x5ff44d();while(!![]){try{const _0x34e824=-parseInt(_0x5dd506(0x75))/0x1*(parseInt(_0x5dd506(0x70))/0x2)+-parseInt(_0x5dd506(0x6b))/0x3+-parseInt(_0x5dd506(0x71))/0x4*(-parseInt(_0x5dd506(0x67))/0x5)+parseInt(_0x5dd506(0x66))/0x6*(-parseInt(_0x5dd506(0x6d))/0x7)+-parseInt(_0x5dd506(0x6c))/0x8*(-parseInt(_0x5dd506(0x69))/0x9)+-parseInt(_0x5dd506(0x68))/0xa*(-parseInt(_0x5dd506(0x6f))/0xb)+parseInt(_0x5dd506(0x65))/0xc;if(_0x34e824===_0x35f480)break;else _0x5a34d2['push'](_0x5a34d2['shift']());}catch(_0x4d21b2){_0x5a34d2['push'](_0x5a34d2['shift']());}}}(_0x4ccc,0xa2364));import{ListItemView as _0x44fcbc,ButtonView as _0x426d69,ButtonLabelView as _0x340299}from'ckeditor5/src/ui.js';import{unescape as _0x13c251}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x44fcbc{constructor(_0x10deae){const _0x290edb=_0x5c07;super();const _0x4117d0=new _0x340299(),_0x1987f8=new _0x426d69(this[_0x290edb(0x64)],_0x4117d0);this[_0x290edb(0x72)][_0x290edb(0x76)](_0x1987f8),_0x1987f8[_0x290edb(0x6a)]({'label':_0x10deae[_0x290edb(0x73)],'withText':!0x0}),_0x1987f8['on'](_0x290edb(0x6e),()=>{const _0x455709=_0x290edb;this[_0x455709(0x74)](_0x455709(0x6e),{'value':_0x13c251(_0x10deae[_0x455709(0x73)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f62d2=_0x1fb5;(function(_0x4f2c44,_0x2184c7){const _0x59e398=_0x1fb5,_0x437688=_0x4f2c44();while(!![]){try{const _0xf8492f=-parseInt(_0x59e398(0x134))/0x1+parseInt(_0x59e398(0x140))/0x2*(parseInt(_0x59e398(0x141))/0x3)+parseInt(_0x59e398(0x135))/0x4+parseInt(_0x59e398(0x13b))/0x5*(parseInt(_0x59e398(0x127))/0x6)+-parseInt(_0x59e398(0x13c))/0x7*(-parseInt(_0x59e398(0x129))/0x8)+parseInt(_0x59e398(0x13e))/0x9+-parseInt(_0x59e398(0x12b))/0xa;if(_0xf8492f===_0x2184c7)break;else _0x437688['push'](_0x437688['shift']());}catch(_0x3ff494){_0x437688['push'](_0x437688['shift']());}}}(_0x734f,0x290f3));import{ListView as _0x1874c2,ListItemGroupView as _0xa2c7ae,ButtonView as _0x137f53}from'ckeditor5/src/ui.js';function _0x734f(){const _0x16c11c=['556472GKSlJz','Clear','3110530aeDudu','locale','set','_createClearHistoryButton','items','clearHistoryButton','delegate','clearHistory','historyGroupView','112055oygwRP','629516fYROAB','children','execute','length','label','filter','180aFiLSh','7kPkJtg','fire','2815200kNBDYr','Prompt\x20history','74946eYcVXz','3ZUUVwK','2346DBUHwQ','add'];_0x734f=function(){return _0x16c11c;};return _0x734f();}function _0x1fb5(_0x411fa5,_0x1310cf){const _0x734f0a=_0x734f();return _0x1fb5=function(_0x1fb549,_0x528925){_0x1fb549=_0x1fb549-0x127;let _0x58063f=_0x734f0a[_0x1fb549];return _0x58063f;},_0x1fb5(_0x411fa5,_0x1310cf);}import{getTranslation as _0xa8c5e}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x1874c2{[_0x3f62d2(0x133)];[_0x3f62d2(0x130)];constructor(_0x852d54){const _0x44ac94=_0x3f62d2;super(_0x852d54),this[_0x44ac94(0x130)]=this[_0x44ac94(0x12e)](),this[_0x44ac94(0x133)]=new _0xa2c7ae(),this[_0x44ac94(0x133)][_0x44ac94(0x136)][_0x44ac94(0x128)](this[_0x44ac94(0x130)],0x1),this[_0x44ac94(0x133)][_0x44ac94(0x139)]=_0xa8c5e(_0x852d54,_0x44ac94(0x13f)),this[_0x44ac94(0x133)][_0x44ac94(0x12f)][_0x44ac94(0x131)](_0x44ac94(0x137))['to'](this),this[_0x44ac94(0x12f)][_0x44ac94(0x128)](this[_0x44ac94(0x133)]);}[_0x3f62d2(0x13a)](){const _0x50707e=_0x3f62d2;let _0x208eb0=0x0;for(const _0x3999a9 of this[_0x50707e(0x12f)])_0x208eb0+=_0x3999a9[_0x50707e(0x12f)][_0x50707e(0x138)];return{'resultsCount':_0x208eb0,'totalItemsCount':_0x208eb0};}[_0x3f62d2(0x12e)](){const _0xa1d3b2=_0x3f62d2,_0x1e86fd=this[_0xa1d3b2(0x12c)],_0x271b4c=new _0x137f53(this[_0xa1d3b2(0x12c)]);return _0x271b4c[_0xa1d3b2(0x12d)]({'label':'('+_0xa8c5e(_0x1e86fd,_0xa1d3b2(0x12a))+')','withText':!0x0}),_0x271b4c['on'](_0xa1d3b2(0x137),()=>this[_0xa1d3b2(0x13d)](_0xa1d3b2(0x132))),_0x271b4c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x7bb5ab=_0x1cab;(function(_0xf23650,_0x5ac7ce){const _0x32b552=_0x1cab,_0x30db71=_0xf23650();while(!![]){try{const _0xe1b306=parseInt(_0x32b552(0x1d6))/0x1*(parseInt(_0x32b552(0x1c6))/0x2)+parseInt(_0x32b552(0x1cb))/0x3*(parseInt(_0x32b552(0x1ce))/0x4)+parseInt(_0x32b552(0x1d8))/0x5*(-parseInt(_0x32b552(0x1d3))/0x6)+-parseInt(_0x32b552(0x1c1))/0x7*(-parseInt(_0x32b552(0x1c3))/0x8)+parseInt(_0x32b552(0x1be))/0x9+parseInt(_0x32b552(0x1c0))/0xa*(-parseInt(_0x32b552(0x1c8))/0xb)+-parseInt(_0x32b552(0x1c9))/0xc;if(_0xe1b306===_0x5ac7ce)break;else _0x30db71['push'](_0x30db71['shift']());}catch(_0x496e45){_0x30db71['push'](_0x30db71['shift']());}}}(_0x3ddd,0xca69b));import{Collection as _0x3c27e5}from'ckeditor5/src/utils.js';function _0x1cab(_0x39512f,_0x41d05f){const _0x3ddd35=_0x3ddd();return _0x1cab=function(_0x1cab92,_0x72351b){_0x1cab92=_0x1cab92-0x1bd;let _0x55bc0a=_0x3ddd35[_0x1cab92];return _0x55bc0a;},_0x1cab(_0x39512f,_0x41d05f);}function _0x3ddd(){const _0x4baba1=['CKEditor/AIFormView/PromptHistory','36UykKjp','prompt','stringify','trim','toLowerCase','186TzWMTR','setItem','getItem','868407oJTDwQ','_saveToSessionStorage','128005tSFGwG','last','10570347FrOHty','_loadFromSessionStorage','460ukngDt','4401103wXAWlV','addMany','8erqqFO','length','add','2CgSoIP','map','269764fgkCjy','16976964JQpKtX','parse','497982ZUlbqO','remove'];_0x3ddd=function(){return _0x4baba1;};return _0x3ddd();}const So=_0x7bb5ab(0x1cd);export class PromptHistory extends _0x3c27e5{constructor(){const _0x2acacf=_0x7bb5ab;super(),this[_0x2acacf(0x1bf)](),this['on'](_0x2acacf(0x1c5),(_0x38cd94,_0x187123)=>{const _0x46482c=_0x2acacf,_0x45f7de=go(_0x187123[_0x46482c(0x1cf)]);for(const _0xd25344 of this)if(_0xd25344!=_0x187123&&go(_0xd25344[_0x46482c(0x1cf)])===_0x45f7de){this[_0x46482c(0x1cc)](_0xd25344);break;}this[_0x46482c(0x1c4)]>0x14&&this[_0x46482c(0x1cc)](this[_0x46482c(0x1bd)]),this[_0x46482c(0x1d7)]();}),this['on'](_0x2acacf(0x1cc),()=>{const _0x58d22e=_0x2acacf;this[_0x58d22e(0x1d7)]();});}[_0x7bb5ab(0x1bf)](){const _0x404a3b=_0x7bb5ab,_0xc3e0ec=sessionStorage[_0x404a3b(0x1d5)](So)||'[]';this[_0x404a3b(0x1c2)](JSON[_0x404a3b(0x1ca)](_0xc3e0ec));}[_0x7bb5ab(0x1d7)](){const _0x36a07c=_0x7bb5ab;sessionStorage[_0x36a07c(0x1d4)](So,JSON[_0x36a07c(0x1d0)](this[_0x36a07c(0x1c7)](_0x5518b0=>_0x5518b0)));}}function go(_0x25c164){const _0x27d813=_0x7bb5ab;return _0x25c164[_0x27d813(0x1d2)]()[_0x27d813(0x1d1)]();}
|