@ckeditor/ckeditor5-ai 47.3.0-alpha.6 → 47.3.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const _0x290cf7=_0x2ed4;(function(_0x4423d9,_0x565d5f){const _0x573b73=_0x2ed4,_0x138324=_0x4423d9();while(!![]){try{const _0x18af2c=-parseInt(_0x573b73(0x1ee))/0x1*(parseInt(_0x573b73(0x1fc))/0x2)+-parseInt(_0x573b73(0x1fe))/0x3*(parseInt(_0x573b73(0x1f1))/0x4)+-parseInt(_0x573b73(0x1f9))/0x5*(-parseInt(_0x573b73(0x1fa))/0x6)+-parseInt(_0x573b73(0x200))/0x7*(-parseInt(_0x573b73(0x1f8))/0x8)+-parseInt(_0x573b73(0x202))/0x9*(parseInt(_0x573b73(0x1f2))/0xa)+parseInt(_0x573b73(0x1f7))/0xb+parseInt(_0x573b73(0x1ef))/0xc;if(_0x18af2c===_0x565d5f)break;else _0x138324['push'](_0x138324['shift']());}catch(_0x39d272){_0x138324['push'](_0x138324['shift']());}}}(_0xa59c,0x70ade));import{ObservableMixin as _0x2fff03}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x131c44}from'@ckeditor/ckeditor5-markdown-gfm';function _0x2ed4(_0x34d204,_0xfa3189){const _0xa59c5d=_0xa59c();return _0x2ed4=function(_0x2ed49b,_0x3c5de5){_0x2ed49b=_0x2ed49b-0x1ee;let _0x5026a2=_0xa59c5d[_0x2ed49b];return _0x5026a2;},_0x2ed4(_0x34d204,_0xfa3189);}function _0xa59c(){const _0x3ee995=['2KmQWlO','<dummy>','1347IkAxwk','</dummy>','7jsOPqd','convertMarkdownToHTML','3380067FaDDeJ','871656iVUrQY','23289348HjsrqY','parse','8092kKWkZl','20pWAAaJ','_m2html','_parseHTML','children','parseAndNormalizeHTML','2936989qIxBBD','5136648EoxHdl','230rzqLnM','18624CPUMBd','replace'];_0xa59c=function(){return _0x3ee995;};return _0xa59c();}import{parse as _0x2f9d02}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2fff03(){[_0x290cf7(0x1f3)];constructor(){const _0x1bd02e=_0x290cf7;super(),this[_0x1bd02e(0x1f3)]=new _0x131c44();}[_0x290cf7(0x201)](_0x3de2a1){const _0x1e8bd4=_0x290cf7,_0x3091f4=this[_0x1e8bd4(0x1f3)][_0x1e8bd4(0x1f0)](_0x3de2a1);return this[_0x1e8bd4(0x1f6)](_0x3091f4);}[_0x290cf7(0x1f6)](_0x54e48b){const _0x11e794=_0x290cf7;return this[_0x11e794(0x1f4)](_0x54e48b);}[_0x290cf7(0x1f4)](_0x45249b){const _0x6bccc9=_0x290cf7,_0x136bb8=_0x45249b[_0x6bccc9(0x1fb)](/^\t+/gm,'\x20')[_0x6bccc9(0x1fb)](/\n*/g,'')[_0x6bccc9(0x1fb)](/\s+/g,'\x20')[_0x6bccc9(0x1fb)](/<[^>]*?$/g,''),_0x42f61b=_0x2f9d02(_0x6bccc9(0x1fd)+_0x136bb8+_0x6bccc9(0x1ff));return _0x42f61b[_0x6bccc9(0x1f5)]=_0x42f61b[_0x6bccc9(0x1f5)][0x0][_0x6bccc9(0x1f5)],_0x42f61b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5bb02d,_0x4e8449){var _0x553440=_0x5da0,_0x20bc85=_0x5bb02d();while(!![]){try{var _0x195f1f=-parseInt(_0x553440(0x16e))/0x1*(-parseInt(_0x553440(0x166))/0x2)+parseInt(_0x553440(0x16a))/0x3*(parseInt(_0x553440(0x164))/0x4)+-parseInt(_0x553440(0x162))/0x5+-parseInt(_0x553440(0x163))/0x6+parseInt(_0x553440(0x169))/0x7*(-parseInt(_0x553440(0x171))/0x8)+-parseInt(_0x553440(0x16b))/0x9+-parseInt(_0x553440(0x168))/0xa*(parseInt(_0x553440(0x167))/0xb);if(_0x195f1f===_0x4e8449)break;else _0x20bc85['push'](_0x20bc85['shift']());}catch(_0x2f4e59){_0x20bc85['push'](_0x20bc85['shift']());}}}(_0x3123,0xaf85e));function _0x3123(){var _0x3d9a4a=['2621155wYnyfn','783000PegTCt','1572952JiAWGw','div','114sgwXxK','476454dpzXkr','60NvRhOX','1050140Btossn','9cUXQDD','2590128GrUUJN','AI_DISCLAIMER_TEXT','ck-ai-disclaimer','18275RJZrID','ck-ai-disclaimer__content','setTemplate','16wJsjiV'];_0x3123=function(){return _0x3d9a4a;};return _0x3123();}import{View as _0xe22230}from'ckeditor5/src/ui.js';function _0x5da0(_0x2b193b,_0x22c0b0){var _0x3123f2=_0x3123();return _0x5da0=function(_0x5da0b8,_0x464aac){_0x5da0b8=_0x5da0b8-0x162;var _0x3d030a=_0x3123f2[_0x5da0b8];return _0x3d030a;},_0x5da0(_0x2b193b,_0x22c0b0);}import{getTranslation as _0x3e864f}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0xe22230{constructor(_0x3ebffd){var _0x248293=_0x5da0;super(_0x3ebffd),this[_0x248293(0x170)]({'tag':_0x248293(0x165),'attributes':{'class':['ck',_0x248293(0x16d)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x248293(0x16f)]},'children':[{'text':_0x3e864f(_0x3ebffd,_0x248293(0x16c))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5269(_0x4826c4,_0x53bfd4){const _0x56b8d6=_0x56b8();return _0x5269=function(_0x5269da,_0x316599){_0x5269da=_0x5269da-0x141;let _0x5d1b12=_0x56b8d6[_0x5269da];return _0x5d1b12;},_0x5269(_0x4826c4,_0x53bfd4);}const _0x2921ee=_0x5269;function _0x56b8(){const _0x162696=['2844249JCRRtT','_createSkeletonItems','width','setTemplate','24px','44px','150px','center','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','height','div','140px','11424888fintoe','1696760oOuyNi','72px','128px','tag','100%','left','right','ck-ai-skeleton','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','1250810CxeaRD','align',';\x20height:\x20','map','40px','100296gmFxFK','155CqLctN','250px','ck-ai-skeleton__item','fill','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','70UDQItl','88px','width:\x20','636798UmjXdj','attributes','18611775cfeqvt','class'];_0x56b8=function(){return _0x162696;};return _0x56b8();}(function(_0x493b9f,_0x40fb28){const _0x14b754=_0x5269,_0x1d285f=_0x493b9f();while(!![]){try{const _0x5022de=-parseInt(_0x14b754(0x146))/0x1+-parseInt(_0x14b754(0x165))/0x2+-parseInt(_0x14b754(0x158))/0x3+parseInt(_0x14b754(0x14b))/0x4*(-parseInt(_0x14b754(0x14c))/0x5)+parseInt(_0x14b754(0x154))/0x6*(parseInt(_0x14b754(0x151))/0x7)+parseInt(_0x14b754(0x164))/0x8+parseInt(_0x14b754(0x156))/0x9;if(_0x5022de===_0x40fb28)break;else _0x1d285f['push'](_0x1d285f['shift']());}catch(_0x1d4e8e){_0x1d285f['push'](_0x1d285f['shift']());}}}(_0x56b8,0xb2eb1));import{View as _0x5409b8}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x5409b8{constructor(_0x3d81ba,_0x187c27){const _0x55216f=_0x5269;super(_0x3d81ba),this[_0x55216f(0x15b)]({'tag':_0x55216f(0x162),'attributes':{'class':['ck',_0x55216f(0x144)]},'children':this[_0x55216f(0x159)](_0x187c27)});}[_0x2921ee(0x159)](_0xf75b50){const _0x4e3514=_0x2921ee,_0x124fea=['ck',_0x4e3514(0x14e)];return _0xf75b50[_0x4e3514(0x149)](_0x447ffa=>{const _0x43badb=_0x4e3514;let _0x330fa7='';switch(_0x447ffa[_0x43badb(0x155)][_0x43badb(0x147)]){case _0x43badb(0x143):_0x330fa7=_0x43badb(0x150);break;case _0x43badb(0x15f):_0x330fa7=_0x43badb(0x145);break;case _0x43badb(0x142):_0x330fa7=_0x43badb(0x160);}return{'tag':_0x447ffa[_0x43badb(0x168)],'attributes':{'class':[..._0x124fea,_0x447ffa[_0x43badb(0x155)][_0x43badb(0x157)]?_0x447ffa[_0x43badb(0x155)][_0x43badb(0x157)]:''],'style':_0x43badb(0x153)+_0x447ffa[_0x43badb(0x155)][_0x43badb(0x15a)]+_0x43badb(0x148)+_0x447ffa[_0x43badb(0x155)][_0x43badb(0x161)]+';'+_0x330fa7}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x2921ee(0x162),'attributes':{'width':_0x2921ee(0x141),'height':_0x2921ee(0x166),'align':_0x2921ee(0x143)}},{'tag':_0x2921ee(0x162),'attributes':{'width':_0x2921ee(0x14d),'height':_0x2921ee(0x14a),'align':_0x2921ee(0x143)}},{'tag':_0x2921ee(0x162),'attributes':{'width':_0x2921ee(0x141),'height':_0x2921ee(0x152),'align':_0x2921ee(0x143)}},{'tag':_0x2921ee(0x162),'attributes':{'width':_0x2921ee(0x15e),'height':_0x2921ee(0x14a),'align':_0x2921ee(0x143)}},{'tag':_0x2921ee(0x162),'attributes':{'width':_0x2921ee(0x141),'height':_0x2921ee(0x163),'align':_0x2921ee(0x143)}},{'tag':_0x2921ee(0x162),'attributes':{'width':_0x2921ee(0x14d),'height':_0x2921ee(0x14a),'align':_0x2921ee(0x143)}},{'tag':_0x2921ee(0x162),'attributes':{'width':_0x2921ee(0x141),'height':_0x2921ee(0x152),'align':_0x2921ee(0x143)}}],'aiHistory':ta(0x5,_0x2921ee(0x141),_0x2921ee(0x15d),_0x2921ee(0x143)),'aiChatResources':ta(0x8,_0x2921ee(0x141),_0x2921ee(0x15c),_0x2921ee(0x143)),'aiReviewChecks':[{'tag':_0x2921ee(0x162),'attributes':{'width':_0x2921ee(0x167),'height':_0x2921ee(0x15c),'align':_0x2921ee(0x142)}},{'tag':_0x2921ee(0x162),'attributes':{'width':_0x2921ee(0x141),'height':_0x2921ee(0x15c),'align':_0x2921ee(0x142)}},{'tag':_0x2921ee(0x162),'attributes':{'width':_0x2921ee(0x167),'height':_0x2921ee(0x15c),'align':_0x2921ee(0x142)}}]};function ta(_0x5f0d68,_0x2b8848,_0x21eef2,_0x5a3aec){const _0x2b6695=_0x2921ee;return new Array(_0x5f0d68)[_0x2b6695(0x14f)](null)[_0x2b6695(0x149)](()=>({'tag':_0x2b6695(0x162),'attributes':{'width':_0x2b8848,'height':_0x21eef2,'align':_0x5a3aec}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2088d0,_0x9a0af){const _0x32e674=_0x7a9d,_0x32e2d7=_0x2088d0();while(!![]){try{const _0x32e378=parseInt(_0x32e674(0x10d))/0x1+parseInt(_0x32e674(0x10b))/0x2+-parseInt(_0x32e674(0x10f))/0x3*(parseInt(_0x32e674(0x108))/0x4)+-parseInt(_0x32e674(0x107))/0x5+parseInt(_0x32e674(0x105))/0x6*(-parseInt(_0x32e674(0x109))/0x7)+parseInt(_0x32e674(0x10c))/0x8*(parseInt(_0x32e674(0x10a))/0x9)+-parseInt(_0x32e674(0x112))/0xa;if(_0x32e378===_0x9a0af)break;else _0x32e2d7['push'](_0x32e2d7['shift']());}catch(_0x50b46d){_0x32e2d7['push'](_0x32e2d7['shift']());}}}(_0x6c3f,0x73f3e));function _0x6c3f(){const _0x429793=['806804sTgaDq','ck-ai-spinner','1867269MioKGE','ck-ai-spinner_','extendTemplate','2219410gVSqCJ','1023132NBoaNN','span','193745JmDXQC','4fBfdpC','14MPnbqx','153BCaXNz','462772oUMKue','311016vhxXzN'];_0x6c3f=function(){return _0x429793;};return _0x6c3f();}import{SpinnerView as _0x16f1f2}from'ckeditor5/src/ui.js';function _0x7a9d(_0xb39bc1,_0x366d47){const _0x6c3f65=_0x6c3f();return _0x7a9d=function(_0x7a9d60,_0x12df4a){_0x7a9d60=_0x7a9d60-0x105;let _0x5a1bf1=_0x6c3f65[_0x7a9d60];return _0x5a1bf1;},_0x7a9d(_0xb39bc1,_0x366d47);}export class AISpinnerView extends _0x16f1f2{constructor(_0x56e8e7=void 0x0){const _0x3427f1=_0x7a9d;super();const _0x3c38b2=_0x56e8e7?_0x3427f1(0x110)+_0x56e8e7:'';this[_0x3427f1(0x111)]({'tag':_0x3427f1(0x106),'attributes':{'class':[_0x3427f1(0x10e),_0x3c38b2]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c943f=_0x2d00;(function(_0x4138fb,_0x364573){const _0x24d381=_0x2d00,_0x3fa85b=_0x4138fb();while(!![]){try{const _0x4c9b92=-parseInt(_0x24d381(0x161))/0x1+-parseInt(_0x24d381(0x13b))/0x2+parseInt(_0x24d381(0x159))/0x3*(-parseInt(_0x24d381(0x14e))/0x4)+parseInt(_0x24d381(0x15e))/0x5*(parseInt(_0x24d381(0x15f))/0x6)+-parseInt(_0x24d381(0x134))/0x7+-parseInt(_0x24d381(0x15d))/0x8+parseInt(_0x24d381(0x138))/0x9;if(_0x4c9b92===_0x364573)break;else _0x3fa85b['push'](_0x3fa85b['shift']());}catch(_0x15bef4){_0x3fa85b['push'](_0x3fa85b['shift']());}}}(_0xf741,0x4859d));function _0x2d00(_0x131936,_0x2c9128){const _0xf7418=_0xf741();return _0x2d00=function(_0x2d009b,_0x4589cf){_0x2d009b=_0x2d009b-0x131;let _0x1fac1b=_0xf7418[_0x2d009b];return _0x1fac1b;},_0x2d00(_0x131936,_0x2c9128);}import{ButtonView as _0x1f1832,IconView as _0x9773a,ToolbarView as _0x21d46f}from'ckeditor5/src/ui.js';import{IconCheck as _0x46211b,IconCopy as _0x55c74d,IconShowChangesOff as _0x25a30a,IconShowChangesOn as _0x4ffe39,IconThumbDown as _0x4b9427,IconThumbUp as _0x25d0a9}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2f0b28}from'../../utils/common-translations.js';function _0xf741(){const _0x2ec188=['isLoading','AI_MINI_TOOLBAR_LIKE','isOn','73470hRxvSV','length','ck-ai-mini-toolbar-copy-button__check-mark','_setupRatingButtons','2800128FqkqyB','3185TldJmt','228wRJXzv','addMany','155796OIIgzf','children','isEnabled','toggleShowChanges','likeButton','3668987GMLfCv','set','customView','locale','14944293BAtJiB','showLike','dislike','569822RDxfzl','_config','copyButton','class','AI_SUGGESTION_BUTTON_SHOW_CHANGES','ck-ai-mini-toolbar-copy-button','execute','add','AI_MINI_TOOLBAR_COPY','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','like','showChangesButton','items','fire','ck-ai-mini-toolbar\x20ck-hidden','full','ck-ai-mini-toolbar','showChanges','_setupCopyButton','12PjAbHx','AI_MINI_TOOLBAR_DISLIKE','_setupShowChangesButton','bind','showDislike','dislikeButton','showCopy','extendTemplate'];_0xf741=function(){return _0x2ec188;};return _0xf741();}export class AIMiniToolbarView extends _0x21d46f{[_0x2c943f(0x13d)];[_0x2c943f(0x133)];[_0x2c943f(0x153)];[_0x2c943f(0x146)];[_0x2c943f(0x13c)];constructor(_0x389c19,_0x3c6544={},_0x53c426){const _0x728eda=_0x2c943f;super(_0x389c19),this[_0x728eda(0x135)](_0x728eda(0x156),!0x1),this[_0x728eda(0x13c)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x3c6544};const _0x485d62=!(this[_0x728eda(0x13c)][_0x728eda(0x154)]||this[_0x728eda(0x13c)][_0x728eda(0x14c)]||this[_0x728eda(0x13c)][_0x728eda(0x139)]||this[_0x728eda(0x13c)][_0x728eda(0x152)]||this[_0x728eda(0x13c)][_0x728eda(0x136)]?.[_0x728eda(0x15a)]);this[_0x728eda(0x13e)]=_0x485d62?_0x728eda(0x149):_0x728eda(0x14b),this[_0x728eda(0x13c)][_0x728eda(0x154)]&&(this[_0x728eda(0x14d)](),this[_0x728eda(0x147)][_0x728eda(0x142)](this[_0x728eda(0x13d)])),this[_0x728eda(0x13c)][_0x728eda(0x14c)]&&(this[_0x728eda(0x150)](_0x53c426),this[_0x728eda(0x147)][_0x728eda(0x142)](this[_0x728eda(0x146)])),this[_0x728eda(0x15c)](),this[_0x728eda(0x13c)][_0x728eda(0x139)]&&this[_0x728eda(0x147)][_0x728eda(0x142)](this[_0x728eda(0x133)]),this[_0x728eda(0x13c)][_0x728eda(0x152)]&&this[_0x728eda(0x147)][_0x728eda(0x142)](this[_0x728eda(0x153)]),this[_0x728eda(0x13c)][_0x728eda(0x136)]&&this[_0x728eda(0x147)][_0x728eda(0x160)](this[_0x728eda(0x13c)][_0x728eda(0x136)]);}[_0x2c943f(0x15c)](){const _0x426782=_0x2c943f;this[_0x426782(0x133)]=new _0x1f1832(this[_0x426782(0x137)]),this[_0x426782(0x133)][_0x426782(0x135)]({'icon':_0x25d0a9,'label':_0x2f0b28(this[_0x426782(0x137)],_0x426782(0x157)),'tooltip':!0x0}),this[_0x426782(0x133)][_0x426782(0x151)](_0x426782(0x131))['to'](this,_0x426782(0x156),_0x114f3f=>!_0x114f3f),this[_0x426782(0x133)]['on'](_0x426782(0x141),()=>{const _0xd0eb64=_0x426782;this[_0xd0eb64(0x148)](_0xd0eb64(0x145));}),this[_0x426782(0x153)]=new _0x1f1832(this[_0x426782(0x137)]),this[_0x426782(0x153)][_0x426782(0x135)]({'icon':_0x4b9427,'label':_0x2f0b28(this[_0x426782(0x137)],_0x426782(0x14f)),'tooltip':!0x0}),this[_0x426782(0x153)][_0x426782(0x151)](_0x426782(0x131))['to'](this,_0x426782(0x156),_0x43e304=>!_0x43e304),this[_0x426782(0x153)]['on'](_0x426782(0x141),()=>{const _0x5da39c=_0x426782;this[_0x5da39c(0x148)](_0x5da39c(0x13a));});}[_0x2c943f(0x14d)](){const _0xd7502a=_0x2c943f;this[_0xd7502a(0x13d)]=new _0x1f1832(this[_0xd7502a(0x137)]),this[_0xd7502a(0x13d)][_0xd7502a(0x135)]({'icon':_0x55c74d,'label':_0x2f0b28(this[_0xd7502a(0x137)],_0xd7502a(0x143)),'class':_0xd7502a(0x140),'tooltip':!0x0}),this[_0xd7502a(0x13d)][_0xd7502a(0x151)](_0xd7502a(0x131))['to'](this,_0xd7502a(0x156),_0x3e9fca=>!_0x3e9fca);const _0x3cc4ff=new _0x9773a();_0x3cc4ff[_0xd7502a(0x135)]({'content':_0x46211b}),_0x3cc4ff[_0xd7502a(0x155)]({'attributes':{'class':[_0xd7502a(0x15b)]}}),this[_0xd7502a(0x13d)]['on'](_0xd7502a(0x141),()=>{const _0x4da56d=_0xd7502a;this[_0x4da56d(0x13d)][_0x4da56d(0x13e)]=_0x4da56d(0x144),setTimeout(()=>{const _0x1d19ba=_0x4da56d;this[_0x1d19ba(0x13d)][_0x1d19ba(0x13e)]=_0x1d19ba(0x140);},0x7d0);}),this[_0xd7502a(0x13d)][_0xd7502a(0x162)][_0xd7502a(0x142)](_0x3cc4ff);}[_0x2c943f(0x150)](_0x38569e){const _0x49b038=_0x2c943f;this[_0x49b038(0x146)]=new _0x1f1832(this[_0x49b038(0x137)]),this[_0x49b038(0x146)][_0x49b038(0x135)]({'icon':_0x25a30a,'label':_0x2f0b28(this[_0x49b038(0x137)],_0x49b038(0x13f)),'withText':_0x49b038(0x14a)==this[_0x49b038(0x13c)][_0x49b038(0x14c)],'tooltip':_0x49b038(0x14a)!=this[_0x49b038(0x13c)][_0x49b038(0x14c)],'isOn':_0x38569e}),this[_0x49b038(0x146)][_0x49b038(0x151)](_0x49b038(0x131))['to'](this,_0x49b038(0x156),_0x4d110e=>!_0x4d110e),this[_0x49b038(0x146)]['on'](_0x49b038(0x141),()=>{const _0x2f3a6e=_0x49b038,_0x2317fe=!this[_0x2f3a6e(0x146)][_0x2f3a6e(0x158)];this[_0x2f3a6e(0x146)][_0x2f3a6e(0x135)]({'isOn':_0x2317fe,'icon':_0x2317fe?_0x4ffe39:_0x25a30a}),this[_0x2f3a6e(0x148)](_0x2f3a6e(0x132),_0x2317fe);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3769(_0x36eddc,_0x2bd2be){const _0x31ac00=_0x31ac();return _0x3769=function(_0x37699c,_0x22a8c6){_0x37699c=_0x37699c-0x1d1;let _0x5e0a62=_0x31ac00[_0x37699c];return _0x5e0a62;},_0x3769(_0x36eddc,_0x2bd2be);}const _0x10f7b3=_0x3769;(function(_0x2f1f7b,_0x5e4aa2){const _0x5731be=_0x3769,_0x1c3363=_0x2f1f7b();while(!![]){try{const _0x2bf008=parseInt(_0x5731be(0x1da))/0x1*(parseInt(_0x5731be(0x1d8))/0x2)+-parseInt(_0x5731be(0x1e7))/0x3+-parseInt(_0x5731be(0x1d1))/0x4*(-parseInt(_0x5731be(0x1fb))/0x5)+-parseInt(_0x5731be(0x1f7))/0x6+parseInt(_0x5731be(0x1db))/0x7*(parseInt(_0x5731be(0x1f4))/0x8)+-parseInt(_0x5731be(0x1f0))/0x9+-parseInt(_0x5731be(0x1d7))/0xa;if(_0x2bf008===_0x5e4aa2)break;else _0x1c3363['push'](_0x1c3363['shift']());}catch(_0x33c6e0){_0x1c3363['push'](_0x1c3363['shift']());}}}(_0x31ac,0x32b18));import{View as _0x105cc1}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x2c2e4d}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4e511f}from'../../utils/eventnames.js';import{PromiseQueue as _0x498bba}from'../../../aichat/utils/promisequeue.js';function _0x31ac(){const _0x6603b5=['_areActionsDisabled','queueEmptyPromise','empty-parts-warning','set','_availableActions','getPartView','setContent','locale','state','hasNonEmptyParts','add','some','hasPendingParts','partDefinition','_children','AI_SUGGESTION_NO_PARTS_WARNING','8BNuNPZ','filter','forEach','find','index','partsCount','4436700TXXUZi','36PXNodY','findIndex','12193zDqcRD','3409pVbIfO','abort','updateContent','enqueue','setTemplate','from','_emptyPartsWarningView','delegate','div','_updateContentPartsPromiseQueue','_showUnchangedParts','ck-ai-suggestion__body','413613diMhDl','updatePartState','hasChanges','AI_SUGGESTION_EMPTY_PART_WARNING','ck-ai-suggestion__body__content-parts','toggleHeader','warning','updateContentParts','push','294228edjokG','_cachedContentParts','addEventListener','createCollection','4528wejzxR','markAsDone','length','71046KXAhjb','pending','isVisible','first','846495AFXXKk'];_0x31ac=function(){return _0x6603b5;};return _0x31ac();}import{AIChatFeedErrorItemView as _0x2be458}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x260dba}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x105cc1{[_0x10f7b3(0x20a)];[_0x10f7b3(0x1fc)];[_0x10f7b3(0x1e5)];[_0x10f7b3(0x1e4)];[_0x10f7b3(0x1e1)];[_0x10f7b3(0x200)];[_0x10f7b3(0x1f1)]=[];constructor(_0x130bd4,_0x3ade7a){const _0xbf67f0=_0x10f7b3;super(_0x130bd4);const {areActionsDisabled:_0x3ccc3d,showUnchangedParts:_0x168340,availableActions:_0x1af362}=_0x3ade7a;this[_0xbf67f0(0x1fc)]=_0x3ccc3d,this[_0xbf67f0(0x1e5)]=_0x168340,this[_0xbf67f0(0x200)]=_0x1af362,this[_0xbf67f0(0x1ff)](_0xbf67f0(0x208),!0x1),this[_0xbf67f0(0x20a)]=this[_0xbf67f0(0x1f3)](),this[_0xbf67f0(0x1e4)]=new _0x498bba(),this[_0xbf67f0(0x1e1)]=new _0x2be458({'id':_0xbf67f0(0x1fe),'initialContent':_0x260dba(_0x130bd4,_0xbf67f0(0x1ea)),'level':_0xbf67f0(0x1ed)}),this[_0xbf67f0(0x1e1)][_0xbf67f0(0x1f9)]=!0x1,this[_0xbf67f0(0x1df)]({'tag':_0xbf67f0(0x1e3),'attributes':{'class':['ck',_0xbf67f0(0x1e6)]},'children':[{'tag':_0xbf67f0(0x1e3),'attributes':{'class':['ck',_0xbf67f0(0x1eb)]},'children':this[_0xbf67f0(0x20a)]},this[_0xbf67f0(0x1e1)]]});}get[_0x10f7b3(0x1d6)](){const _0x447e01=_0x10f7b3;return this[_0x447e01(0x20a)][_0x447e01(0x1f6)];}async[_0x10f7b3(0x1ee)]({parts:_0x1f66c1,renderingStrategy:_0x22499a,abortSignal:_0x51ded8}){const _0xdfe0a3=_0x10f7b3;this[_0xdfe0a3(0x20a)][_0xdfe0a3(0x1f6)]?_0x1f66c1[_0xdfe0a3(0x1d3)](_0x53baa0=>{const _0x2541ef=_0xdfe0a3,_0x16aa22=this[_0x2541ef(0x1f1)][_0x2541ef(0x1d9)](_0x43a95c=>_0x43a95c[_0x2541ef(0x1d5)]==_0x53baa0[_0x2541ef(0x1d5)]);-0x1===_0x16aa22?this[_0x2541ef(0x1f1)][_0x2541ef(0x1ef)](_0x53baa0):this[_0x2541ef(0x1f1)][_0x16aa22]=_0x53baa0;}):this[_0xdfe0a3(0x1f1)]=_0x1f66c1;for(const _0x723b8e of _0x1f66c1[_0xdfe0a3(0x1d2)](_0x30d3cb=>_0x30d3cb[_0xdfe0a3(0x1e9)]))this[_0xdfe0a3(0x1e4)][_0xdfe0a3(0x1de)](async _0xaaa271=>{const _0x494fe6=_0xdfe0a3;let _0x333591=this[_0x494fe6(0x201)](_0x723b8e[_0x494fe6(0x1d5)]);_0x333591||(_0x333591=new _0x2c2e4d(this[_0x494fe6(0x203)],{'part':_0x723b8e,'uiIndex':this[_0x494fe6(0x20a)][_0x494fe6(0x1f6)]+0x1,'areActionsDisabled':this[_0x494fe6(0x1fc)],'availableActions':this[_0x494fe6(0x200)]}),_0x333591[_0x494fe6(0x1e2)](..._0x4e511f)['to'](this),this[_0x494fe6(0x20a)][_0x494fe6(0x206)](_0x333591),this[_0x494fe6(0x208)]=!0x0),0x2===this[_0x494fe6(0x20a)][_0x494fe6(0x1f6)]&&this[_0x494fe6(0x20a)][_0x494fe6(0x1fa)][_0x494fe6(0x1ec)](!0x0),_0x333591[_0x494fe6(0x1ec)](this[_0x494fe6(0x20a)][_0x494fe6(0x1f6)]>0x1),await _0x333591[_0x494fe6(0x1dd)]({'part':_0x723b8e,'renderingStrategy':_0x22499a,'showUnchangedParts':this[_0x494fe6(0x1e5)],'abortSignal':_0xaaa271});});return _0x51ded8?.[_0xdfe0a3(0x1f2)](_0xdfe0a3(0x1dc),()=>{const _0x40cf59=_0xdfe0a3;this[_0x40cf59(0x1e4)][_0x40cf59(0x1dc)]();}),this[_0xdfe0a3(0x1e4)][_0xdfe0a3(0x1fd)];}[_0x10f7b3(0x1e8)](_0x344a82,_0xb1f00f){const _0x59a2c3=_0x10f7b3,_0x53e520=this[_0x59a2c3(0x201)](_0x344a82);_0x53e520&&(_0x53e520[_0x59a2c3(0x204)]=_0xb1f00f),this[_0x59a2c3(0x208)]=_0x59a2c3(0x1f8)==_0xb1f00f||Array[_0x59a2c3(0x1e0)](this[_0x59a2c3(0x20a)])[_0x59a2c3(0x207)](_0x402aee=>_0x59a2c3(0x1f8)==_0x402aee[_0x59a2c3(0x204)]);}[_0x10f7b3(0x201)](_0x157508){const _0x54083c=_0x10f7b3;return this[_0x54083c(0x20a)][_0x54083c(0x1d4)](_0x309264=>_0x309264[_0x54083c(0x209)][_0x54083c(0x1d5)]==_0x157508)??null;}[_0x10f7b3(0x1f5)](){const _0x4b4808=_0x10f7b3;if(!this[_0x4b4808(0x1e5)]){const _0x16a5d1=!this[_0x4b4808(0x1f1)][_0x4b4808(0x1d4)](({hasChanges:_0x5b7ac9})=>_0x5b7ac9),_0x4b6cd5=!!this[_0x4b4808(0x1f1)][_0x4b4808(0x1d4)](({hasChanges:_0x449078})=>!_0x449078);this[_0x4b4808(0x1e1)][_0x4b4808(0x1f9)]=0x0==this[_0x4b4808(0x20a)][_0x4b4808(0x1f6)]||_0x4b6cd5,_0x16a5d1?this[_0x4b4808(0x1e1)][_0x4b4808(0x202)](_0x260dba(this[_0x4b4808(0x203)],_0x4b4808(0x20b))):this[_0x4b4808(0x1e1)][_0x4b4808(0x202)](_0x260dba(this[_0x4b4808(0x203)],_0x4b4808(0x1ea)));}}get[_0x10f7b3(0x205)](){const _0xcd7e24=_0x10f7b3;return!!this[_0xcd7e24(0x20a)][_0xcd7e24(0x1d4)](_0x53adf6=>_0x53adf6[_0xcd7e24(0x209)][_0xcd7e24(0x1e9)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3f04bd=_0x94f0;(function(_0x2fc9bc,_0x2423ff){const _0x124f8a=_0x94f0,_0x2b9aa4=_0x2fc9bc();while(!![]){try{const _0x552f9b=-parseInt(_0x124f8a(0x84))/0x1*(-parseInt(_0x124f8a(0x89))/0x2)+parseInt(_0x124f8a(0xc3))/0x3+-parseInt(_0x124f8a(0xc0))/0x4*(-parseInt(_0x124f8a(0x95))/0x5)+-parseInt(_0x124f8a(0xaa))/0x6*(parseInt(_0x124f8a(0xba))/0x7)+-parseInt(_0x124f8a(0x87))/0x8+parseInt(_0x124f8a(0xa4))/0x9*(parseInt(_0x124f8a(0xc4))/0xa)+-parseInt(_0x124f8a(0xa6))/0xb;if(_0x552f9b===_0x2423ff)break;else _0x2b9aa4['push'](_0x2b9aa4['shift']());}catch(_0x3f7f59){_0x2b9aa4['push'](_0x2b9aa4['shift']());}}}(_0xe75e,0x9cf5f));import{IconWeb as _0x4ce3cf}from'@ckeditor/ckeditor5-icons';import{View as _0x2bcf3b,ButtonView as _0x2dfa44,IconView as _0x4841de}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x1e8f2d}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x17ec2d}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0xe37fc8}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x531d19}from'../../utils/eventnames.js';import{AISpinnerView as _0x16b839}from'../aispinner.js';function _0xe75e(){const _0x1a22c6=['4023245yEtigl','clearErrorState','isEnabled','setTemplate','isOn','updateContentParts','ck-ai-suggestion__error-text','isVisible','AI_CHAT_IS_WRITING','createCollection','isLoaderVisible','addNavigationItem','ck-hidden','locale','textContent','424287FcRgBK','ck-ai-suggestion__container','4358794WJCnef','isErrorVisible','img','ck-ai-web-sources__header','42VDfgJN','favicon','areChangesVisible','errorView','remove','isLoading','AI_CHAT_GENERIC_ERROR','add','clearLoading','content','bodyView','bind','ck-rounded-corners','hasNonEmptyParts','setLoading','_blank','1151745fuxMsc','hideLoader','ck-ai-web-sources','querySelector','toggleShowChanges','sourcesView','4SdeGKh','div','updateSources','1357032EzEnxS','90OWpvlY','span','ck-ai-web-source__image','extendTemplate','AI_CHAT_SOURCES_HEADER','markAsDone','setErrorState','open','ck-ai-suggestion__loader','ck-ai-suggestion__loader-text','delegate','headerView','miniToolbarView','ck-ai-suggestion__error','addMany','map','element','updateContent','removeNavigationItem','bindTemplate','icon','children','toggleSuggestionDisplayMode','url','loaderView','586pwDybV','small','hideError','3836304BEQnMv','_createLoaderView','3376jbVpuj','showChangesToggleView','isShowChangesToggleVisible','_createErrorView','ck\x20ck-ai-web-source','fire','items','set','showError','.ck-ai-suggestion__error-text','title','showLoader'];_0xe75e=function(){return _0x1a22c6;};return _0xe75e();}import{getTranslation as _0x11cabe}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x2bcf3b{[_0x3f04bd(0xb4)];[_0x3f04bd(0x77)];[_0x3f04bd(0x80)];[_0x3f04bd(0x76)];[_0x3f04bd(0x83)];[_0x3f04bd(0xad)];[_0x3f04bd(0xbf)];constructor(_0x2a5fe3,_0x2314d0){const _0x181266=_0x3f04bd;super(_0x2a5fe3);const {showDiff:_0x5f3838,areActionsDisabled:_0xdf02e8,miniToolbarConfig:_0x5c0414,hideHeader:_0x15528e,showLoader:_0x2374fe,showUnchangedParts:_0x18111f,availableActions:_0x2940e9}=_0x2314d0;this[_0x181266(0x90)](_0x181266(0xac),!0x1),this[_0x181266(0x90)](_0x181266(0x9f),!!_0x2374fe),this[_0x181266(0x90)](_0x181266(0xa7),!0x1),this[_0x181266(0x90)](_0x181266(0xaf),!0x1),this[_0x181266(0x80)]=this[_0x181266(0x9e)](),_0x15528e||(this[_0x181266(0x76)]=new _0x17ec2d(_0x2a5fe3,{'showDiff':_0x5f3838}),this[_0x181266(0x76)]['on'](_0x181266(0xbe),(_0xd03873,_0x55cc5a)=>{const _0x25b910=_0x181266;this[_0x25b910(0xac)]=_0x55cc5a[_0x25b910(0x99)],this[_0x25b910(0x8e)](_0x25b910(0x81),{'showDiff':_0x55cc5a[_0x25b910(0x99)]});}),this[_0x181266(0x80)][_0x181266(0xb1)](this[_0x181266(0x76)])),this[_0x181266(0xb4)]=new _0xe37fc8(_0x2a5fe3,{'areActionsDisabled':_0xdf02e8,'showUnchangedParts':!!_0x18111f,'availableActions':_0x2940e9}),this[_0x181266(0xb4)][_0x181266(0x75)](..._0x531d19)['to'](this),this[_0x181266(0xb4)][_0x181266(0x6e)]({'attributes':{'class':[this[_0x181266(0x7e)]['if'](_0x181266(0x9f),_0x181266(0xa1)),this[_0x181266(0x7e)]['if'](_0x181266(0xa7),_0x181266(0xa1))]}}),this[_0x181266(0x77)]=new _0x1e8f2d(_0x2a5fe3,_0x5c0414,_0x5f3838),this[_0x181266(0x77)][_0x181266(0x75)](..._0x531d19)['to'](this),this[_0x181266(0x77)]['on'](_0x181266(0xbe),(_0x41e78c,_0x3a3958)=>{const _0x101b53=_0x181266;this[_0x101b53(0xac)]=_0x3a3958,this[_0x101b53(0x8e)](_0x101b53(0x81),{'showDiff':_0x3a3958});}),this[_0x181266(0x77)][_0x181266(0xb5)](_0x181266(0xaf))['to'](this),this[_0x181266(0x80)][_0x181266(0xb1)](this[_0x181266(0xb4)]),this[_0x181266(0x80)][_0x181266(0xb1)](this[_0x181266(0x77)]),this[_0x181266(0xbf)]=new AIWebSourcesView(this[_0x181266(0xa2)]),this[_0x181266(0x80)][_0x181266(0xb1)](this[_0x181266(0xbf)]),_0x2374fe&&(this[_0x181266(0x83)]=this[_0x181266(0x88)](),this[_0x181266(0x80)][_0x181266(0xb1)](this[_0x181266(0x83)])),this[_0x181266(0xad)]=this[_0x181266(0x8c)](),this[_0x181266(0x80)][_0x181266(0xb1)](this[_0x181266(0xad)]),this[_0x181266(0x98)]({'tag':_0x181266(0xc1),'attributes':{'class':['ck',_0x181266(0xa5),_0x181266(0xb6)]},'children':this[_0x181266(0x80)]});}async[_0x3f04bd(0x7c)](_0x1bd370){const _0x40e03a=_0x3f04bd;await this[_0x40e03a(0xb4)][_0x40e03a(0x9a)](_0x1bd370);}[_0x3f04bd(0xc2)](_0x10add3){const _0x5953a0=_0x3f04bd;this[_0x5953a0(0xbf)][_0x5953a0(0x80)][_0x5953a0(0x79)](_0x10add3[_0x5953a0(0x7a)](_0x5a3f08=>new AIWebSourceView(this[_0x5953a0(0xa2)],_0x5a3f08))),this[_0x5953a0(0xbf)][_0x5953a0(0x9c)]=!0x0;}[_0x3f04bd(0x94)](){const _0x246bbb=_0x3f04bd;this[_0x246bbb(0x83)]&&(this[_0x246bbb(0x9f)]=!0x0);}[_0x3f04bd(0xbb)](){const _0x18497a=_0x3f04bd;this[_0x18497a(0x83)]&&(this[_0x18497a(0x9f)]=!0x1);}[_0x3f04bd(0x91)](_0x46a753){const _0x1e4bc8=_0x3f04bd;if(this[_0x1e4bc8(0xad)]){const _0x38302a=this[_0x1e4bc8(0xad)][_0x1e4bc8(0x7b)]?.[_0x1e4bc8(0xbd)](_0x1e4bc8(0x92));_0x38302a&&(_0x38302a[_0x1e4bc8(0xa3)]=_0x46a753),this[_0x1e4bc8(0xa7)]=!0x0;}}[_0x3f04bd(0x86)](){const _0x2fcc24=_0x3f04bd;this[_0x2fcc24(0xad)]&&(this[_0x2fcc24(0xa7)]=!0x1);}[_0x3f04bd(0x70)](){const _0x4f934c=_0x3f04bd;this[_0x4f934c(0xb4)][_0x4f934c(0x70)](),this[_0x4f934c(0x76)]&&(this[_0x4f934c(0x76)][_0x4f934c(0x8b)]=this[_0x4f934c(0xb4)][_0x4f934c(0xb7)]);}[_0x3f04bd(0xb8)](){const _0x23de79=_0x3f04bd;this[_0x23de79(0xaf)]=!0x0;}[_0x3f04bd(0xb2)](){const _0x2ae415=_0x3f04bd;this[_0x2ae415(0xaf)]=!0x1;}[_0x3f04bd(0x71)](){const _0x3ab8eb=_0x3f04bd;this[_0x3ab8eb(0x77)]&&(this[_0x3ab8eb(0x77)][_0x3ab8eb(0xaf)]=!0x0),this[_0x3ab8eb(0x76)]?.[_0x3ab8eb(0x8a)]&&(this[_0x3ab8eb(0x76)][_0x3ab8eb(0x8a)][_0x3ab8eb(0x97)]=!0x1);}[_0x3f04bd(0x96)](){const _0x52d91c=_0x3f04bd;this[_0x52d91c(0x77)]&&(this[_0x52d91c(0x77)][_0x52d91c(0xaf)]=!0x1),this[_0x52d91c(0x76)]?.[_0x52d91c(0x8a)]&&(this[_0x52d91c(0x76)][_0x52d91c(0x8a)][_0x52d91c(0x97)]=!0x0);}[_0x3f04bd(0xa0)](_0x5d69c1){const _0x5f3696=_0x3f04bd;this[_0x5f3696(0x77)][_0x5f3696(0x8f)][_0x5f3696(0xb1)](_0x5d69c1);}[_0x3f04bd(0x7d)](_0x54ddd1){const _0x41a9be=_0x3f04bd;this[_0x41a9be(0x77)][_0x41a9be(0x8f)][_0x41a9be(0xae)](_0x54ddd1);}[_0x3f04bd(0x88)](){const _0x4f33fe=_0x3f04bd,_0x3289c9=new _0x2bcf3b(this[_0x4f33fe(0xa2)]),_0x3ca44f=new _0x16b839(_0x4f33fe(0x85));_0x3ca44f[_0x4f33fe(0x9c)]=!0x0;const _0x5101aa=new _0x2bcf3b(this[_0x4f33fe(0xa2)]);return _0x5101aa[_0x4f33fe(0x98)]({'tag':_0x4f33fe(0x6c),'attributes':{'class':['ck',_0x4f33fe(0x74)]},'children':[_0x11cabe(this[_0x4f33fe(0xa2)],_0x4f33fe(0x9d))]}),_0x3289c9[_0x4f33fe(0x98)]({'tag':_0x4f33fe(0xc1),'attributes':{'class':['ck',_0x4f33fe(0x73),this[_0x4f33fe(0x7e)]['if'](_0x4f33fe(0x9f),_0x4f33fe(0xa1),_0x17e2ce=>!_0x17e2ce)]},'children':[_0x3ca44f,_0x5101aa]}),_0x3289c9;}[_0x3f04bd(0x8c)](){const _0x8c3fe5=_0x3f04bd,_0x31cc3a=new _0x2bcf3b(this[_0x8c3fe5(0xa2)]),_0x4d7d50=new _0x2bcf3b(this[_0x8c3fe5(0xa2)]);return _0x4d7d50[_0x8c3fe5(0x98)]({'tag':_0x8c3fe5(0x6c),'attributes':{'class':['ck',_0x8c3fe5(0x9b)]},'children':[_0x11cabe(this[_0x8c3fe5(0xa2)],_0x8c3fe5(0xb0))]}),_0x31cc3a[_0x8c3fe5(0x98)]({'tag':_0x8c3fe5(0xc1),'attributes':{'class':['ck',_0x8c3fe5(0x78),this[_0x8c3fe5(0x7e)]['if'](_0x8c3fe5(0xa7),_0x8c3fe5(0xa1),_0x19627b=>!_0x19627b)]},'children':[_0x4d7d50]}),_0x31cc3a;}}function _0x94f0(_0x4c762b,_0x2b26f6){const _0xe75eb5=_0xe75e();return _0x94f0=function(_0x94f07e,_0x2c4c89){_0x94f07e=_0x94f07e-0x6c;let _0xdb8289=_0xe75eb5[_0x94f07e];return _0xdb8289;},_0x94f0(_0x4c762b,_0x2b26f6);}export class AIWebSourcesView extends _0x2bcf3b{[_0x3f04bd(0x80)];constructor(_0x31e44f){const _0x28fa89=_0x3f04bd;super(_0x31e44f),this[_0x28fa89(0x80)]=this[_0x28fa89(0x9e)](),this[_0x28fa89(0x90)](_0x28fa89(0x9c),!0x1),this[_0x28fa89(0x98)]({'tag':_0x28fa89(0xc1),'attributes':{'class':['ck',_0x28fa89(0xbc),this[_0x28fa89(0x7e)]['if'](_0x28fa89(0x9c),_0x28fa89(0xa1),_0x220b74=>!_0x220b74)]},'children':this[_0x28fa89(0x80)]});const _0x4e62c1=new _0x2bcf3b(this[_0x28fa89(0xa2)]),_0x904b6e=new _0x4841de();_0x904b6e[_0x28fa89(0xb3)]=_0x4ce3cf,_0x4e62c1[_0x28fa89(0x98)]({'tag':_0x28fa89(0xc1),'attributes':{'class':['ck',_0x28fa89(0xa9)]},'children':[_0x904b6e,{'tag':_0x28fa89(0x6c),'children':[{'text':_0x11cabe(this[_0x28fa89(0xa2)],_0x28fa89(0x6f))}]}]}),this[_0x28fa89(0x80)][_0x28fa89(0xb1)](_0x4e62c1);}}export class AIWebSourceView extends _0x2dfa44{constructor(_0x189f9e,_0x1c9b46){const _0x20c4b6=_0x3f04bd;super(_0x189f9e),this[_0x20c4b6(0x90)]({'label':_0x1c9b46[_0x20c4b6(0x93)],'tooltip':_0x1c9b46[_0x20c4b6(0x93)],'class':[_0x20c4b6(0x8d)],'withText':!0x0});const _0x1ac8df=this[_0x20c4b6(0x7e)];if(this[_0x20c4b6(0x6e)]({'on':{'click':_0x1ac8df['to'](()=>{const _0x1390fd=_0x20c4b6;window[_0x1390fd(0x72)](_0x1c9b46[_0x1390fd(0x82)],_0x1390fd(0xb9));})}}),_0x1c9b46[_0x20c4b6(0xab)]){const _0x23dc06=new _0x2bcf3b(_0x189f9e);_0x23dc06[_0x20c4b6(0x98)]({'tag':_0x20c4b6(0xa8),'attributes':{'src':_0x1c9b46[_0x20c4b6(0xab)]||_0x4ce3cf,'alt':_0x1c9b46[_0x20c4b6(0x93)],'class':[_0x20c4b6(0x6d)]}}),this[_0x20c4b6(0x80)][_0x20c4b6(0xb1)](_0x23dc06);}else this[_0x20c4b6(0x90)](_0x20c4b6(0x7f),_0x4ce3cf);}}
|
|
23
|
+
function _0x385f(){const _0x530eee=['clearLoading','AI_CHAT_SOURCES_HEADER','585624ccDPRx','div','errorView','fire','setErrorState','clearErrorState','60zyqzaf','bodyView','showLoader','querySelector','306qERDvb','_blank','ck-ai-suggestion__error','isOn','setTemplate','isShowChangesToggleVisible','icon','2KqAZgM','setLoading','textContent','showError','ck-ai-suggestion__container','_createErrorView','url','2448YBvosq','sourcesView','.ck-ai-suggestion__error-text','toggleSuggestionDisplayMode','bindTemplate','hideLoader','ck-hidden','showChangesToggleView','119fqKmIg','markAsDone','6449963mKitZl','ck-ai-web-sources','isErrorVisible','hideError','content','ck-ai-web-source__image','2200gCDfVo','delegate','ck-ai-suggestion__error-text','toggleShowChanges','ck-ai-web-sources__header','locale','1001192NGfcch','updateContent','hasNonEmptyParts','ck-ai-suggestion__loader-text','isEnabled','159984vQKmrN','AI_CHAT_IS_WRITING','miniToolbarView','span','extendTemplate','70758hHKBkF','createCollection','ck-rounded-corners','AI_CHAT_GENERIC_ERROR','map','updateSources','areChangesVisible','headerView','ck-ai-suggestion__loader','50055AwpOnN','87307JTmPOd','addNavigationItem','small','updateContentParts','set','isLoading','loaderView','addMany','favicon','img','items','isLoaderVisible','element','children','open','remove','_createLoaderView','isVisible','removeNavigationItem','ck\x20ck-ai-web-source','title','add','bind'];_0x385f=function(){return _0x530eee;};return _0x385f();}const _0x16d3b8=_0x2d15;(function(_0xb25ee5,_0x142662){const _0x160a9b=_0x2d15,_0xe457f7=_0xb25ee5();while(!![]){try{const _0x4cebc0=parseInt(_0x160a9b(0x203))/0x1*(-parseInt(_0x160a9b(0x241))/0x2)+parseInt(_0x160a9b(0x208))/0x3*(parseInt(_0x160a9b(0x236))/0x4)+parseInt(_0x160a9b(0x216))/0x5*(-parseInt(_0x160a9b(0x23a))/0x6)+-parseInt(_0x160a9b(0x1f5))/0x7*(-parseInt(_0x160a9b(0x230))/0x8)+-parseInt(_0x160a9b(0x20d))/0x9*(parseInt(_0x160a9b(0x1fd))/0xa)+-parseInt(_0x160a9b(0x217))/0xb*(-parseInt(_0x160a9b(0x1ed))/0xc)+parseInt(_0x160a9b(0x1f7))/0xd;if(_0x4cebc0===_0x142662)break;else _0xe457f7['push'](_0xe457f7['shift']());}catch(_0x18b91b){_0xe457f7['push'](_0xe457f7['shift']());}}}(_0x385f,0xe0305));import{IconWeb as _0x2e4d2b}from'@ckeditor/ckeditor5-icons';import{View as _0x24de8e,ButtonView as _0x5c0521,IconView as _0x107ad1}from'ckeditor5/src/ui.js';function _0x2d15(_0x34922e,_0x293d53){const _0x385f28=_0x385f();return _0x2d15=function(_0x2d1510,_0x4390fd){_0x2d1510=_0x2d1510-0x1ed;let _0xa6bc43=_0x385f28[_0x2d1510];return _0xa6bc43;},_0x2d15(_0x34922e,_0x293d53);}import{AIMiniToolbarView as _0x25c882}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x25182f}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x1d421b}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x35f848}from'../../utils/eventnames.js';import{AISpinnerView as _0x54553b}from'../aispinner.js';import{getTranslation as _0x43c9c7}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x24de8e{[_0x16d3b8(0x237)];[_0x16d3b8(0x20a)];[_0x16d3b8(0x224)];[_0x16d3b8(0x214)];[_0x16d3b8(0x21d)];[_0x16d3b8(0x232)];[_0x16d3b8(0x1ee)];constructor(_0x152510,_0xcea82){const _0x175526=_0x16d3b8;super(_0x152510);const {showDiff:_0x42acc6,areActionsDisabled:_0x6cf653,miniToolbarConfig:_0x414624,hideHeader:_0x32661b,showLoader:_0x314c93,showUnchangedParts:_0x5a49ff,availableActions:_0x3229e8}=_0xcea82;this[_0x175526(0x21b)](_0x175526(0x213),!0x1),this[_0x175526(0x21b)](_0x175526(0x222),!!_0x314c93),this[_0x175526(0x21b)](_0x175526(0x1f9),!0x1),this[_0x175526(0x21b)](_0x175526(0x21c),!0x1),this[_0x175526(0x224)]=this[_0x175526(0x20e)](),_0x32661b||(this[_0x175526(0x214)]=new _0x25182f(_0x152510,{'showDiff':_0x42acc6}),this[_0x175526(0x214)]['on'](_0x175526(0x200),(_0x4ea3e8,_0x5b6f24)=>{const _0x2030ce=_0x175526;this[_0x2030ce(0x213)]=_0x5b6f24[_0x2030ce(0x23d)],this[_0x2030ce(0x233)](_0x2030ce(0x1f0),{'showDiff':_0x5b6f24[_0x2030ce(0x23d)]});}),this[_0x175526(0x224)][_0x175526(0x22c)](this[_0x175526(0x214)])),this[_0x175526(0x237)]=new _0x1d421b(_0x152510,{'areActionsDisabled':_0x6cf653,'showUnchangedParts':!!_0x5a49ff,'availableActions':_0x3229e8}),this[_0x175526(0x237)][_0x175526(0x1fe)](..._0x35f848)['to'](this),this[_0x175526(0x237)][_0x175526(0x20c)]({'attributes':{'class':[this[_0x175526(0x1f1)]['if'](_0x175526(0x222),_0x175526(0x1f3)),this[_0x175526(0x1f1)]['if'](_0x175526(0x1f9),_0x175526(0x1f3))]}}),this[_0x175526(0x20a)]=new _0x25c882(_0x152510,_0x414624,_0x42acc6),this[_0x175526(0x20a)][_0x175526(0x1fe)](..._0x35f848)['to'](this),this[_0x175526(0x20a)]['on'](_0x175526(0x200),(_0x2011e9,_0x4b1ab1)=>{const _0x400e5a=_0x175526;this[_0x400e5a(0x213)]=_0x4b1ab1,this[_0x400e5a(0x233)](_0x400e5a(0x1f0),{'showDiff':_0x4b1ab1});}),this[_0x175526(0x20a)][_0x175526(0x22d)](_0x175526(0x21c))['to'](this),this[_0x175526(0x224)][_0x175526(0x22c)](this[_0x175526(0x237)]),this[_0x175526(0x224)][_0x175526(0x22c)](this[_0x175526(0x20a)]),this[_0x175526(0x1ee)]=new AIWebSourcesView(this[_0x175526(0x202)]),this[_0x175526(0x224)][_0x175526(0x22c)](this[_0x175526(0x1ee)]),_0x314c93&&(this[_0x175526(0x21d)]=this[_0x175526(0x227)](),this[_0x175526(0x224)][_0x175526(0x22c)](this[_0x175526(0x21d)])),this[_0x175526(0x232)]=this[_0x175526(0x246)](),this[_0x175526(0x224)][_0x175526(0x22c)](this[_0x175526(0x232)]),this[_0x175526(0x23e)]({'tag':_0x175526(0x231),'attributes':{'class':['ck',_0x175526(0x245),_0x175526(0x20f)]},'children':this[_0x175526(0x224)]});}async[_0x16d3b8(0x204)](_0x584a66){const _0x23261d=_0x16d3b8;await this[_0x23261d(0x237)][_0x23261d(0x21a)](_0x584a66);}[_0x16d3b8(0x212)](_0x51b078){const _0x21310d=_0x16d3b8;this[_0x21310d(0x1ee)][_0x21310d(0x224)][_0x21310d(0x21e)](_0x51b078[_0x21310d(0x211)](_0x8f33a3=>new AIWebSourceView(this[_0x21310d(0x202)],_0x8f33a3))),this[_0x21310d(0x1ee)][_0x21310d(0x228)]=!0x0;}[_0x16d3b8(0x238)](){const _0x49b44e=_0x16d3b8;this[_0x49b44e(0x21d)]&&(this[_0x49b44e(0x222)]=!0x0);}[_0x16d3b8(0x1f2)](){const _0x3731d2=_0x16d3b8;this[_0x3731d2(0x21d)]&&(this[_0x3731d2(0x222)]=!0x1);}[_0x16d3b8(0x244)](_0xb9ad3e){const _0x52a8db=_0x16d3b8;if(this[_0x52a8db(0x232)]){const _0x486a86=this[_0x52a8db(0x232)][_0x52a8db(0x223)]?.[_0x52a8db(0x239)](_0x52a8db(0x1ef));_0x486a86&&(_0x486a86[_0x52a8db(0x243)]=_0xb9ad3e),this[_0x52a8db(0x1f9)]=!0x0;}}[_0x16d3b8(0x1fa)](){const _0x46d69d=_0x16d3b8;this[_0x46d69d(0x232)]&&(this[_0x46d69d(0x1f9)]=!0x1);}[_0x16d3b8(0x1f6)](){const _0x48d028=_0x16d3b8;this[_0x48d028(0x237)][_0x48d028(0x1f6)](),this[_0x48d028(0x214)]&&(this[_0x48d028(0x214)][_0x48d028(0x23f)]=this[_0x48d028(0x237)][_0x48d028(0x205)]);}[_0x16d3b8(0x242)](){const _0x261cb5=_0x16d3b8;this[_0x261cb5(0x21c)]=!0x0;}[_0x16d3b8(0x22e)](){const _0x167aee=_0x16d3b8;this[_0x167aee(0x21c)]=!0x1;}[_0x16d3b8(0x234)](){const _0x13de5b=_0x16d3b8;this[_0x13de5b(0x20a)]&&(this[_0x13de5b(0x20a)][_0x13de5b(0x21c)]=!0x0),this[_0x13de5b(0x214)]?.[_0x13de5b(0x1f4)]&&(this[_0x13de5b(0x214)][_0x13de5b(0x1f4)][_0x13de5b(0x207)]=!0x1);}[_0x16d3b8(0x235)](){const _0x14cce4=_0x16d3b8;this[_0x14cce4(0x20a)]&&(this[_0x14cce4(0x20a)][_0x14cce4(0x21c)]=!0x1),this[_0x14cce4(0x214)]?.[_0x14cce4(0x1f4)]&&(this[_0x14cce4(0x214)][_0x14cce4(0x1f4)][_0x14cce4(0x207)]=!0x0);}[_0x16d3b8(0x218)](_0x217f09){const _0xfb4ef3=_0x16d3b8;this[_0xfb4ef3(0x20a)][_0xfb4ef3(0x221)][_0xfb4ef3(0x22c)](_0x217f09);}[_0x16d3b8(0x229)](_0x4f778c){const _0x2c807c=_0x16d3b8;this[_0x2c807c(0x20a)][_0x2c807c(0x221)][_0x2c807c(0x226)](_0x4f778c);}[_0x16d3b8(0x227)](){const _0x2d1bfe=_0x16d3b8,_0xce0184=new _0x24de8e(this[_0x2d1bfe(0x202)]),_0x3bfe02=new _0x54553b(_0x2d1bfe(0x219));_0x3bfe02[_0x2d1bfe(0x228)]=!0x0;const _0x554816=new _0x24de8e(this[_0x2d1bfe(0x202)]);return _0x554816[_0x2d1bfe(0x23e)]({'tag':_0x2d1bfe(0x20b),'attributes':{'class':['ck',_0x2d1bfe(0x206)]},'children':[_0x43c9c7(this[_0x2d1bfe(0x202)],_0x2d1bfe(0x209))]}),_0xce0184[_0x2d1bfe(0x23e)]({'tag':_0x2d1bfe(0x231),'attributes':{'class':['ck',_0x2d1bfe(0x215),this[_0x2d1bfe(0x1f1)]['if'](_0x2d1bfe(0x222),_0x2d1bfe(0x1f3),_0x18a05f=>!_0x18a05f)]},'children':[_0x3bfe02,_0x554816]}),_0xce0184;}[_0x16d3b8(0x246)](){const _0x3dc31c=_0x16d3b8,_0x524afb=new _0x24de8e(this[_0x3dc31c(0x202)]),_0x438042=new _0x24de8e(this[_0x3dc31c(0x202)]);return _0x438042[_0x3dc31c(0x23e)]({'tag':_0x3dc31c(0x20b),'attributes':{'class':['ck',_0x3dc31c(0x1ff)]},'children':[_0x43c9c7(this[_0x3dc31c(0x202)],_0x3dc31c(0x210))]}),_0x524afb[_0x3dc31c(0x23e)]({'tag':_0x3dc31c(0x231),'attributes':{'class':['ck',_0x3dc31c(0x23c),this[_0x3dc31c(0x1f1)]['if'](_0x3dc31c(0x1f9),_0x3dc31c(0x1f3),_0x5b1333=>!_0x5b1333)]},'children':[_0x438042]}),_0x524afb;}}export class AIWebSourcesView extends _0x24de8e{[_0x16d3b8(0x224)];constructor(_0x20bd1b){const _0x50c11e=_0x16d3b8;super(_0x20bd1b),this[_0x50c11e(0x224)]=this[_0x50c11e(0x20e)](),this[_0x50c11e(0x21b)](_0x50c11e(0x228),!0x1),this[_0x50c11e(0x23e)]({'tag':_0x50c11e(0x231),'attributes':{'class':['ck',_0x50c11e(0x1f8),this[_0x50c11e(0x1f1)]['if'](_0x50c11e(0x228),_0x50c11e(0x1f3),_0x4ff35b=>!_0x4ff35b)]},'children':this[_0x50c11e(0x224)]});const _0x33277f=new _0x24de8e(this[_0x50c11e(0x202)]),_0x314014=new _0x107ad1();_0x314014[_0x50c11e(0x1fb)]=_0x2e4d2b,_0x33277f[_0x50c11e(0x23e)]({'tag':_0x50c11e(0x231),'attributes':{'class':['ck',_0x50c11e(0x201)]},'children':[_0x314014,{'tag':_0x50c11e(0x20b),'children':[{'text':_0x43c9c7(this[_0x50c11e(0x202)],_0x50c11e(0x22f))}]}]}),this[_0x50c11e(0x224)][_0x50c11e(0x22c)](_0x33277f);}}export class AIWebSourceView extends _0x5c0521{constructor(_0x5827cf,_0x47afaa){const _0x38709e=_0x16d3b8;super(_0x5827cf),this[_0x38709e(0x21b)]({'label':_0x47afaa[_0x38709e(0x22b)],'tooltip':_0x47afaa[_0x38709e(0x22b)],'class':[_0x38709e(0x22a)],'withText':!0x0});const _0x7ba5af=this[_0x38709e(0x1f1)];if(this[_0x38709e(0x20c)]({'on':{'click':_0x7ba5af['to'](()=>{const _0x597ae7=_0x38709e;window[_0x597ae7(0x225)](_0x47afaa[_0x597ae7(0x247)],_0x597ae7(0x23b));})}}),_0x47afaa[_0x38709e(0x21f)]){const _0x3a4c5c=new _0x24de8e(_0x5827cf);_0x3a4c5c[_0x38709e(0x23e)]({'tag':_0x38709e(0x220),'attributes':{'src':_0x47afaa[_0x38709e(0x21f)]||_0x2e4d2b,'alt':_0x47afaa[_0x38709e(0x22b)],'class':[_0x38709e(0x1fc)]}}),this[_0x38709e(0x224)][_0x38709e(0x22c)](_0x3a4c5c);}else this[_0x38709e(0x21b)](_0x38709e(0x240),_0x2e4d2b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x55a5(_0x3ec8ad,_0x543115){const _0x48a7cc=_0x48a7();return _0x55a5=function(_0x55a5e2,_0x4e9301){_0x55a5e2=_0x55a5e2-0xd1;let _0xa68038=_0x48a7cc[_0x55a5e2];return _0xa68038;},_0x55a5(_0x3ec8ad,_0x543115);}const _0x786545=_0x55a5;function _0x48a7(){const _0x2c3cd1=['span','4527551cWcVZF','items','ck-ai-suggestion__body__content-part__content','ck-hidden','insertSuggestion','setTemplate','stream','AI_SUGGESTION_CONTENT_PART_DELETE','contentView','mouseLeaveSuggestion','mouseOverSuggestion','164620ZsxNXl','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','animation:\x20ck-html-streamer-fade-in\x20.5s','addMany','isEnabled','remove','toString','ck-ai-suggestion__body__content-part__icon-outdated','28733112epnvaf','bindTemplate','element','children','htmlStreamer','hasChanges','ck-content','partDefinition','has','ck-reset_all-excluded','isVisible','ck-ai-suggestion__body__content-part_active','ck-ai-suggestion__body__content-part_','_iconStateAccepted','227313IroRMN','AI_SUGGESTION_CONTENT_PART_OUTDATED','toggleHeader','665472HXjiCK','createCollection','2452FpmIQy','outdated','3082056yQNExB','delegate','state','updateContent','headerView','extendTemplate','AI_SUGGESTION_CONTENT_PART_TITLE','set','_iconStateRejected','fire','AI_SUGGESTION_CONTENT_PART_REJECTED','rejectSuggestion','push','_toolbarView','showChangeInText','5961zhDQSn','streaming','ck-ai-suggestion__body__content-part','ck-ai-suggestion__body__content-part__title__label','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','ck-ai-suggestion__body__content-part__icon-rejected','index','pending','content','div','execute','includes','rejected','add','change:state','8OPpyUS','bind','ck-ai-suggestion__body__content-part__title','innerHTML','accepted','_iconStateOutdated','ck-ai-suggestion__body__content-part__icon-accepted','ck-ai-suggestion__body__content-part__icon-title','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION'];_0x48a7=function(){return _0x2c3cd1;};return _0x48a7();}(function(_0x502ba0,_0x4ae0f6){const _0x4b37f0=_0x55a5,_0x34e51d=_0x502ba0();while(!![]){try{const _0x176b48=parseInt(_0x4b37f0(0x109))/0x1*(-parseInt(_0x4b37f0(0xde))/0x2)+parseInt(_0x4b37f0(0x11f))/0x3*(-parseInt(_0x4b37f0(0x10e))/0x4)+-parseInt(_0x4b37f0(0xf3))/0x5+parseInt(_0x4b37f0(0x10c))/0x6+-parseInt(_0x4b37f0(0xe8))/0x7+parseInt(_0x4b37f0(0x110))/0x8+parseInt(_0x4b37f0(0xfb))/0x9;if(_0x176b48===_0x4ae0f6)break;else _0x34e51d['push'](_0x34e51d['shift']());}catch(_0x119379){_0x34e51d['push'](_0x34e51d['shift']());}}}(_0x48a7,0xd7449));import{View as _0x3971df,IconView as _0x3f5fdd,ToolbarView as _0x4b5a5a,ButtonView as _0x26f08b}from'ckeditor5/src/ui.js';import{IconAddComment as _0x6b0d85,IconDocumentWithLoupe as _0x487940,IconDocumentWithCheckmark as _0x56a1ac,IconDocumentWithCross as _0x215e90,IconRemove as _0x4821c7,IconThreeStars as _0x3998ca}from'ckeditor5/src/icons.js';import{HTMLStreamer as _0x395c36}from'../../utils/htmlstreamer.js';import{getTranslation as _0x4aa03e}from'../../utils/common-translations.js';import{serialize as _0x5d1c5}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3730b2}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0x3971df{[_0x786545(0xff)];[_0x786545(0xfe)];[_0x786545(0x114)];[_0x786545(0xf0)];constructor(_0x1fc5e3,{part:_0x404e23,uiIndex:_0x16afca,areActionsDisabled:_0x57b457,availableActions:_0x23caf4}){const _0x15c409=_0x786545;super(_0x1fc5e3),this[_0x15c409(0x117)](_0x15c409(0x102),_0x404e23),this[_0x15c409(0x117)](_0x15c409(0x112),_0x15c409(0xd6)),this[_0x15c409(0x117)](_0x15c409(0x105),!0x1),this[_0x15c409(0xdf)](_0x15c409(0xf7))['to'](this,_0x15c409(0x112),_0x4b637a=>_0x15c409(0xd6)==_0x4b637a&&!_0x57b457),this[_0x15c409(0xfe)]=this[_0x15c409(0x10d)](),this[_0x15c409(0xff)]=new _0x395c36({'textNodeStyle':_0x15c409(0xf5),'delay':0x14}),this[_0x15c409(0x114)]=new Un(_0x1fc5e3,{'part':_0x404e23,'uiIndex':_0x16afca,'availableActions':_0x23caf4}),this[_0x15c409(0x114)][_0x15c409(0xdf)](_0x15c409(0x102))['to'](this),this[_0x15c409(0x114)][_0x15c409(0xdf)](_0x15c409(0xf7))['to'](this),this[_0x15c409(0x114)][_0x15c409(0xdf)](_0x15c409(0x112))['to'](this),this[_0x15c409(0x114)][_0x15c409(0x111)](..._0x3730b2)['to'](this);const _0xd5c137=this[_0x15c409(0xfc)];this[_0x15c409(0xf0)]=new _0x3971df(),this[_0x15c409(0xf0)][_0x15c409(0xed)]({'tag':_0x15c409(0xd8),'attributes':{'class':['ck',_0x15c409(0x101),_0x15c409(0x104),_0x15c409(0xea)]}}),this[_0x15c409(0xfe)][_0x15c409(0xf6)]([this[_0x15c409(0xf0)]]),this[_0x15c409(0xed)]({'tag':_0x15c409(0xd8),'attributes':{'class':['ck',_0x15c409(0xd1),_0xd5c137['to'](_0x15c409(0x112),_0x29e429=>_0x15c409(0x107)+_0x29e429),_0xd5c137['to'](_0x15c409(0xf7),_0x1a0c65=>_0x1a0c65?_0x15c409(0x106):void 0x0),_0xd5c137['if'](_0x15c409(0x105),_0x15c409(0xeb),_0x3623ea=>!_0x3623ea)]},'children':this[_0x15c409(0xfe)],'on':{'mouseenter':_0xd5c137['to'](()=>{const _0x25be17=_0x15c409;this[_0x25be17(0xf7)]&&this[_0x25be17(0x119)](_0x25be17(0xf2),{'index':_0x404e23[_0x25be17(0xd5)]});}),'mouseleave':_0xd5c137['to'](()=>{const _0x2e4013=_0x15c409;this[_0x2e4013(0xf7)]&&this[_0x2e4013(0x119)](_0x2e4013(0xf1),{'index':_0x404e23[_0x2e4013(0xd5)]});})}});}async[_0x786545(0x113)]({part:_0x3fe2a7,renderingStrategy:_0x2d7f11,showUnchangedParts:_0x4769ed=!0x1,abortSignal:_0x3182c2}){const _0x268bad=_0x786545;this[_0x268bad(0x102)]=_0x3fe2a7,this[_0x268bad(0x105)]=this[_0x268bad(0x102)][_0x268bad(0x100)]||_0x4769ed,this[_0x268bad(0x105)]&&(_0x268bad(0x120)===_0x2d7f11?await this[_0x268bad(0xff)][_0x268bad(0xee)]({'document':this[_0x268bad(0x102)][_0x268bad(0xd7)],'targetElement':this[_0x268bad(0xf0)][_0x268bad(0xfd)],'abortSignal':_0x3182c2}):this[_0x268bad(0xf0)][_0x268bad(0xfd)][_0x268bad(0xe1)]=_0x5d1c5(this[_0x268bad(0x102)][_0x268bad(0xd7)]));}[_0x786545(0x10b)](_0x3b31f1){const _0x1cf5c0=_0x786545;_0x3b31f1?this[_0x1cf5c0(0xfe)][_0x1cf5c0(0x103)](this[_0x1cf5c0(0x114)])||this[_0x1cf5c0(0xfe)][_0x1cf5c0(0xdc)](this[_0x1cf5c0(0x114)],0x0):this[_0x1cf5c0(0xfe)][_0x1cf5c0(0x103)](this[_0x1cf5c0(0x114)])&&this[_0x1cf5c0(0xfe)][_0x1cf5c0(0xf8)](this[_0x1cf5c0(0x114)]);}}class Un extends _0x3971df{[_0x786545(0xfe)];[_0x786545(0x11d)];[_0x786545(0x108)];[_0x786545(0x118)];[_0x786545(0xe3)];constructor(_0x597951,{part:_0x64abd5,uiIndex:_0x245b12,availableActions:_0x42ddd1}){const _0x58444c=_0x786545;super(_0x597951),this[_0x58444c(0x117)](_0x58444c(0x102),_0x64abd5),this[_0x58444c(0x117)](_0x58444c(0xf7),!0x0),this[_0x58444c(0x117)](_0x58444c(0x112),_0x58444c(0xd6));const _0x129b3c=new _0x3f5fdd();_0x129b3c[_0x58444c(0xd7)]=_0x3998ca,_0x129b3c[_0x58444c(0x115)]({'attributes':{'class':[_0x58444c(0xe5)]}});const _0x290141=[];if(_0x42ddd1[_0x58444c(0xda)](_0x58444c(0x11e))){const _0x1f54cc=new _0x26f08b(_0x597951);_0x1f54cc[_0x58444c(0x117)]({'label':_0x4aa03e(_0x597951,_0x58444c(0xf4)),'tooltip':!0x0,'withText':!0x1,'icon':_0x487940}),_0x1f54cc[_0x58444c(0xdf)](_0x58444c(0xf7))['to'](this),_0x1f54cc['on'](_0x58444c(0xd9),()=>{const _0x1cedc7=_0x58444c;this[_0x1cedc7(0x119)](_0x1cedc7(0x11e),{'index':_0x64abd5[_0x1cedc7(0xd5)]});}),_0x290141[_0x58444c(0x11c)](_0x1f54cc);}if(_0x42ddd1[_0x58444c(0xda)](_0x58444c(0xec))){const _0x14019a=new _0x26f08b(_0x597951);_0x14019a[_0x58444c(0x117)]({'label':_0x4aa03e(_0x597951,_0x58444c(0xe6)),'tooltip':!0x0,'withText':!0x1,'icon':_0x6b0d85}),_0x14019a[_0x58444c(0xdf)](_0x58444c(0xf7))['to'](this),_0x14019a['on'](_0x58444c(0xd9),()=>{const _0x45981d=_0x58444c;this[_0x45981d(0x119)](_0x45981d(0xec),{'index':_0x64abd5[_0x45981d(0xd5)]});}),_0x290141[_0x58444c(0x11c)](_0x14019a);}const _0x308ce5=new _0x26f08b(_0x597951);_0x308ce5[_0x58444c(0x117)]({'label':_0x4aa03e(_0x597951,_0x58444c(0xef)),'tooltip':!0x0,'withText':!0x1,'icon':_0x4821c7}),_0x308ce5[_0x58444c(0xdf)](_0x58444c(0xf7))['to'](this),_0x308ce5['on'](_0x58444c(0xd9),()=>{const _0x5ed841=_0x58444c;this[_0x5ed841(0x119)](_0x5ed841(0x11b),{'index':_0x64abd5[_0x5ed841(0xd5)]});}),_0x290141[_0x58444c(0x11c)](_0x308ce5),this[_0x58444c(0x11d)]=new _0x4b5a5a(_0x597951),this[_0x58444c(0x11d)][_0x58444c(0xe9)][_0x58444c(0xf6)](_0x290141),this[_0x58444c(0x108)]=new _0x3f5fdd(),this[_0x58444c(0x108)][_0x58444c(0xd7)]=_0x56a1ac,this[_0x58444c(0x108)][_0x58444c(0x115)]({'attributes':{'class':[_0x58444c(0xe4)],'data-cke-tooltip-text':_0x4aa03e(_0x597951,_0x58444c(0xd3)),'data-cke-tooltip-position':'n'}}),this[_0x58444c(0x118)]=new _0x3f5fdd(),this[_0x58444c(0x118)][_0x58444c(0xd7)]=_0x215e90,this[_0x58444c(0x118)][_0x58444c(0x115)]({'attributes':{'class':[_0x58444c(0xd4)],'data-cke-tooltip-text':_0x4aa03e(_0x597951,_0x58444c(0x11a)),'data-cke-tooltip-position':'n'}}),this[_0x58444c(0xe3)]=new _0x3f5fdd(),this[_0x58444c(0xe3)][_0x58444c(0xd7)]=_0x215e90,this[_0x58444c(0xe3)][_0x58444c(0x115)]({'attributes':{'class':[_0x58444c(0xfa)],'data-cke-tooltip-text':_0x4aa03e(_0x597951,_0x58444c(0x10a)),'data-cke-tooltip-position':'n'}});const _0x4788ba=new _0x3971df(_0x597951);_0x4788ba[_0x58444c(0xed)]({'tag':_0x58444c(0xe7),'attributes':{'class':['ck',_0x58444c(0xd2)]},'children':[_0x4aa03e(_0x597951,_0x58444c(0x116),_0x245b12[_0x58444c(0xf9)]())]}),this[_0x58444c(0xfe)]=this[_0x58444c(0x10d)](),this[_0x58444c(0xfe)][_0x58444c(0xf6)]([_0x129b3c,_0x4788ba,this[_0x58444c(0x11d)]]),this[_0x58444c(0xed)]({'tag':_0x58444c(0xd8),'attributes':{'class':['ck',_0x58444c(0x104),_0x58444c(0xe0)]},'children':this[_0x58444c(0xfe)]}),this['on'](_0x58444c(0xdd),(_0x1844a9,_0x5e1b22,_0x3099e1,_0x32ddcb)=>{const _0x536925=_0x58444c;switch(_0x32ddcb){case _0x536925(0xd6):this[_0x536925(0xfe)][_0x536925(0xf8)](this[_0x536925(0x11d)]);break;case _0x536925(0xe2):this[_0x536925(0xfe)][_0x536925(0xf8)](this[_0x536925(0x108)]);break;case _0x536925(0xdb):this[_0x536925(0xfe)][_0x536925(0xf8)](this[_0x536925(0x118)]);break;case _0x536925(0x10f):this[_0x536925(0xfe)][_0x536925(0xf8)](this[_0x536925(0xe3)]);}switch(_0x3099e1){case _0x536925(0xd6):this[_0x536925(0xfe)][_0x536925(0xdc)](this[_0x536925(0x11d)]);break;case _0x536925(0xe2):this[_0x536925(0xfe)][_0x536925(0xdc)](this[_0x536925(0x108)]);break;case _0x536925(0xdb):this[_0x536925(0xfe)][_0x536925(0xdc)](this[_0x536925(0x118)]);break;case _0x536925(0x10f):this[_0x536925(0xfe)][_0x536925(0xdc)](this[_0x536925(0xe3)]);}});}}
|
|
23
|
+
const _0x40345c=_0x51f7;function _0x21e9(){const _0x4af304=['ck-ai-suggestion__body__content-part__content','accepted','addMany','change:state','ck-ai-suggestion__body__content-part_','children','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','execute','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','mouseLeaveSuggestion','index','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','innerHTML','setTemplate','insertSuggestion','push','_toolbarView','includes','AI_SUGGESTION_CONTENT_PART_DELETE','htmlStreamer','state','isEnabled','mouseOverSuggestion','11992977VGuARt','toString','items','isVisible','span','showChangeInText','stream','ck-ai-suggestion__body__content-part__icon-outdated','element','ck-ai-suggestion__body__content-part__icon-rejected','2072250dhSQch','ck-ai-suggestion__body__content-part__title','_iconStateRejected','_iconStateAccepted','bind','streaming','ck-ai-suggestion__body__content-part','_iconStateOutdated','outdated','bindTemplate','31668520csRldH','597pkCSLU','rejected','delegate','7ZmdbLQ','ck-content','has','div','content','8228310ZxKAKX','ck-reset_all-excluded','hasChanges','toggleHeader','pending','partDefinition','createCollection','ck-ai-suggestion__body__content-part__icon-accepted','ck-hidden','set','AI_SUGGESTION_CONTENT_PART_OUTDATED','ck-ai-suggestion__body__content-part__title__label','headerView','fire','animation:\x20ck-html-streamer-fade-in\x20.5s','6812RUkQfz','remove','ck-ai-suggestion__body__content-part__icon-title','ck-ai-suggestion__body__content-part_active','2351475oOChKv','extendTemplate','contentView','8tCrfrF','AI_SUGGESTION_CONTENT_PART_REJECTED','rejectSuggestion','AI_SUGGESTION_CONTENT_PART_TITLE','updateContent','1431963IwVnCg','add'];_0x21e9=function(){return _0x4af304;};return _0x21e9();}(function(_0x5d27f9,_0x4ce4ea){const _0xbd25db=_0x51f7,_0x56fa04=_0x5d27f9();while(!![]){try{const _0x2e9594=parseInt(_0xbd25db(0x114))/0x1+-parseInt(_0xbd25db(0x137))/0x2+parseInt(_0xbd25db(0xf1))/0x3*(parseInt(_0xbd25db(0x108))/0x4)+parseInt(_0xbd25db(0x10c))/0x5+-parseInt(_0xbd25db(0xf9))/0x6*(-parseInt(_0xbd25db(0xf4))/0x7)+-parseInt(_0xbd25db(0x10f))/0x8*(-parseInt(_0xbd25db(0x12d))/0x9)+-parseInt(_0xbd25db(0xf0))/0xa;if(_0x2e9594===_0x4ce4ea)break;else _0x56fa04['push'](_0x56fa04['shift']());}catch(_0x43a1c9){_0x56fa04['push'](_0x56fa04['shift']());}}}(_0x21e9,0xb52e4));import{View as _0x14d4bf,IconView as _0x107313,ToolbarView as _0x29ca81,ButtonView as _0x17a635}from'ckeditor5/src/ui.js';import{IconAddComment as _0x16f7a3,IconDocumentWithLoupe as _0xd6f4ae,IconDocumentWithCheckmark as _0x503f75,IconDocumentWithCross as _0x44f936,IconRemove as _0x3a6f28,IconThreeStars as _0x577a32}from'ckeditor5/src/icons.js';function _0x51f7(_0x238647,_0x21a8b2){const _0x21e982=_0x21e9();return _0x51f7=function(_0x51f7f3,_0x36d1a6){_0x51f7f3=_0x51f7f3-0xe7;let _0x406c22=_0x21e982[_0x51f7f3];return _0x406c22;},_0x51f7(_0x238647,_0x21a8b2);}import{HTMLStreamer as _0x165cd8}from'../../utils/htmlstreamer.js';import{getTranslation as _0x544407}from'../../utils/common-translations.js';import{serialize as _0x2acbb8}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x429af9}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0x14d4bf{[_0x40345c(0x129)];[_0x40345c(0x11b)];[_0x40345c(0x105)];[_0x40345c(0x10e)];constructor(_0x5115c3,{part:_0x26db29,uiIndex:_0x48ebc2,areActionsDisabled:_0x1c7c11,availableActions:_0x3578dd}){const _0x59ffc4=_0x40345c;super(_0x5115c3),this[_0x59ffc4(0x102)](_0x59ffc4(0xfe),_0x26db29),this[_0x59ffc4(0x102)](_0x59ffc4(0x12a),_0x59ffc4(0xfd)),this[_0x59ffc4(0x102)](_0x59ffc4(0x130),!0x1),this[_0x59ffc4(0xea)](_0x59ffc4(0x12b))['to'](this,_0x59ffc4(0x12a),_0x3be077=>_0x59ffc4(0xfd)==_0x3be077&&!_0x1c7c11),this[_0x59ffc4(0x11b)]=this[_0x59ffc4(0xff)](),this[_0x59ffc4(0x129)]=new _0x165cd8({'textNodeStyle':_0x59ffc4(0x107),'delay':0x14}),this[_0x59ffc4(0x105)]=new Pn(_0x5115c3,{'part':_0x26db29,'uiIndex':_0x48ebc2,'availableActions':_0x3578dd}),this[_0x59ffc4(0x105)][_0x59ffc4(0xea)](_0x59ffc4(0xfe))['to'](this),this[_0x59ffc4(0x105)][_0x59ffc4(0xea)](_0x59ffc4(0x12b))['to'](this),this[_0x59ffc4(0x105)][_0x59ffc4(0xea)](_0x59ffc4(0x12a))['to'](this),this[_0x59ffc4(0x105)][_0x59ffc4(0xf3)](..._0x429af9)['to'](this);const _0x28dfe9=this[_0x59ffc4(0xef)];this[_0x59ffc4(0x10e)]=new _0x14d4bf(),this[_0x59ffc4(0x10e)][_0x59ffc4(0x123)]({'tag':_0x59ffc4(0xf7),'attributes':{'class':['ck',_0x59ffc4(0xf5),_0x59ffc4(0xfa),_0x59ffc4(0x116)]}}),this[_0x59ffc4(0x11b)][_0x59ffc4(0x118)]([this[_0x59ffc4(0x10e)]]),this[_0x59ffc4(0x123)]({'tag':_0x59ffc4(0xf7),'attributes':{'class':['ck',_0x59ffc4(0xec),_0x28dfe9['to'](_0x59ffc4(0x12a),_0x20dbbb=>_0x59ffc4(0x11a)+_0x20dbbb),_0x28dfe9['to'](_0x59ffc4(0x12b),_0x4b58ed=>_0x4b58ed?_0x59ffc4(0x10b):void 0x0),_0x28dfe9['if'](_0x59ffc4(0x130),_0x59ffc4(0x101),_0x55f539=>!_0x55f539)]},'children':this[_0x59ffc4(0x11b)],'on':{'mouseenter':_0x28dfe9['to'](()=>{const _0x5a56a1=_0x59ffc4;this[_0x5a56a1(0x12b)]&&this[_0x5a56a1(0x106)](_0x5a56a1(0x12c),{'index':_0x26db29[_0x5a56a1(0x120)]});}),'mouseleave':_0x28dfe9['to'](()=>{const _0x4f54d8=_0x59ffc4;this[_0x4f54d8(0x12b)]&&this[_0x4f54d8(0x106)](_0x4f54d8(0x11f),{'index':_0x26db29[_0x4f54d8(0x120)]});})}});}async[_0x40345c(0x113)]({part:_0x2343a0,renderingStrategy:_0x45b75c,showUnchangedParts:_0x3caecd=!0x1,abortSignal:_0x1b3426}){const _0x206baa=_0x40345c;this[_0x206baa(0xfe)]=_0x2343a0,this[_0x206baa(0x130)]=this[_0x206baa(0xfe)][_0x206baa(0xfb)]||_0x3caecd,this[_0x206baa(0x130)]&&(_0x206baa(0xeb)===_0x45b75c?await this[_0x206baa(0x129)][_0x206baa(0x133)]({'document':this[_0x206baa(0xfe)][_0x206baa(0xf8)],'targetElement':this[_0x206baa(0x10e)][_0x206baa(0x135)],'abortSignal':_0x1b3426}):this[_0x206baa(0x10e)][_0x206baa(0x135)][_0x206baa(0x122)]=_0x2acbb8(this[_0x206baa(0xfe)][_0x206baa(0xf8)]));}[_0x40345c(0xfc)](_0x1ea187){const _0x503579=_0x40345c;_0x1ea187?this[_0x503579(0x11b)][_0x503579(0xf6)](this[_0x503579(0x105)])||this[_0x503579(0x11b)][_0x503579(0x115)](this[_0x503579(0x105)],0x0):this[_0x503579(0x11b)][_0x503579(0xf6)](this[_0x503579(0x105)])&&this[_0x503579(0x11b)][_0x503579(0x109)](this[_0x503579(0x105)]);}}class Pn extends _0x14d4bf{[_0x40345c(0x11b)];[_0x40345c(0x126)];[_0x40345c(0xe9)];[_0x40345c(0xe8)];[_0x40345c(0xed)];constructor(_0x23fd22,{part:_0x482707,uiIndex:_0x410676,availableActions:_0x4987d1}){const _0x20c68a=_0x40345c;super(_0x23fd22),this[_0x20c68a(0x102)](_0x20c68a(0xfe),_0x482707),this[_0x20c68a(0x102)](_0x20c68a(0x12b),!0x0),this[_0x20c68a(0x102)](_0x20c68a(0x12a),_0x20c68a(0xfd));const _0x5c5627=new _0x107313();_0x5c5627[_0x20c68a(0xf8)]=_0x577a32,_0x5c5627[_0x20c68a(0x10d)]({'attributes':{'class':[_0x20c68a(0x10a)]}});const _0x11b791=[];if(_0x4987d1[_0x20c68a(0x127)](_0x20c68a(0x132))){const _0x2cfb13=new _0x17a635(_0x23fd22);_0x2cfb13[_0x20c68a(0x102)]({'label':_0x544407(_0x23fd22,_0x20c68a(0x11e)),'tooltip':!0x0,'withText':!0x1,'icon':_0xd6f4ae}),_0x2cfb13[_0x20c68a(0xea)](_0x20c68a(0x12b))['to'](this),_0x2cfb13['on'](_0x20c68a(0x11d),()=>{const _0xae962d=_0x20c68a;this[_0xae962d(0x106)](_0xae962d(0x132),{'index':_0x482707[_0xae962d(0x120)]});}),_0x11b791[_0x20c68a(0x125)](_0x2cfb13);}if(_0x4987d1[_0x20c68a(0x127)](_0x20c68a(0x124))){const _0xe5232c=new _0x17a635(_0x23fd22);_0xe5232c[_0x20c68a(0x102)]({'label':_0x544407(_0x23fd22,_0x20c68a(0x11c)),'tooltip':!0x0,'withText':!0x1,'icon':_0x16f7a3}),_0xe5232c[_0x20c68a(0xea)](_0x20c68a(0x12b))['to'](this),_0xe5232c['on'](_0x20c68a(0x11d),()=>{const _0x3605de=_0x20c68a;this[_0x3605de(0x106)](_0x3605de(0x124),{'index':_0x482707[_0x3605de(0x120)]});}),_0x11b791[_0x20c68a(0x125)](_0xe5232c);}const _0x13e4ab=new _0x17a635(_0x23fd22);_0x13e4ab[_0x20c68a(0x102)]({'label':_0x544407(_0x23fd22,_0x20c68a(0x128)),'tooltip':!0x0,'withText':!0x1,'icon':_0x3a6f28}),_0x13e4ab[_0x20c68a(0xea)](_0x20c68a(0x12b))['to'](this),_0x13e4ab['on'](_0x20c68a(0x11d),()=>{const _0x181824=_0x20c68a;this[_0x181824(0x106)](_0x181824(0x111),{'index':_0x482707[_0x181824(0x120)]});}),_0x11b791[_0x20c68a(0x125)](_0x13e4ab),this[_0x20c68a(0x126)]=new _0x29ca81(_0x23fd22),this[_0x20c68a(0x126)][_0x20c68a(0x12f)][_0x20c68a(0x118)](_0x11b791),this[_0x20c68a(0xe9)]=new _0x107313(),this[_0x20c68a(0xe9)][_0x20c68a(0xf8)]=_0x503f75,this[_0x20c68a(0xe9)][_0x20c68a(0x10d)]({'attributes':{'class':[_0x20c68a(0x100)],'data-cke-tooltip-text':_0x544407(_0x23fd22,_0x20c68a(0x121)),'data-cke-tooltip-position':'n'}}),this[_0x20c68a(0xe8)]=new _0x107313(),this[_0x20c68a(0xe8)][_0x20c68a(0xf8)]=_0x44f936,this[_0x20c68a(0xe8)][_0x20c68a(0x10d)]({'attributes':{'class':[_0x20c68a(0x136)],'data-cke-tooltip-text':_0x544407(_0x23fd22,_0x20c68a(0x110)),'data-cke-tooltip-position':'n'}}),this[_0x20c68a(0xed)]=new _0x107313(),this[_0x20c68a(0xed)][_0x20c68a(0xf8)]=_0x44f936,this[_0x20c68a(0xed)][_0x20c68a(0x10d)]({'attributes':{'class':[_0x20c68a(0x134)],'data-cke-tooltip-text':_0x544407(_0x23fd22,_0x20c68a(0x103)),'data-cke-tooltip-position':'n'}});const _0x5d3e6f=new _0x14d4bf(_0x23fd22);_0x5d3e6f[_0x20c68a(0x123)]({'tag':_0x20c68a(0x131),'attributes':{'class':['ck',_0x20c68a(0x104)]},'children':[_0x544407(_0x23fd22,_0x20c68a(0x112),_0x410676[_0x20c68a(0x12e)]())]}),this[_0x20c68a(0x11b)]=this[_0x20c68a(0xff)](),this[_0x20c68a(0x11b)][_0x20c68a(0x118)]([_0x5c5627,_0x5d3e6f,this[_0x20c68a(0x126)]]),this[_0x20c68a(0x123)]({'tag':_0x20c68a(0xf7),'attributes':{'class':['ck',_0x20c68a(0xfa),_0x20c68a(0xe7)]},'children':this[_0x20c68a(0x11b)]}),this['on'](_0x20c68a(0x119),(_0x548e90,_0x1d8302,_0x1b988e,_0x427dd6)=>{const _0x2a77b4=_0x20c68a;switch(_0x427dd6){case _0x2a77b4(0xfd):this[_0x2a77b4(0x11b)][_0x2a77b4(0x109)](this[_0x2a77b4(0x126)]);break;case _0x2a77b4(0x117):this[_0x2a77b4(0x11b)][_0x2a77b4(0x109)](this[_0x2a77b4(0xe9)]);break;case _0x2a77b4(0xf2):this[_0x2a77b4(0x11b)][_0x2a77b4(0x109)](this[_0x2a77b4(0xe8)]);break;case _0x2a77b4(0xee):this[_0x2a77b4(0x11b)][_0x2a77b4(0x109)](this[_0x2a77b4(0xed)]);}switch(_0x1b988e){case _0x2a77b4(0xfd):this[_0x2a77b4(0x11b)][_0x2a77b4(0x115)](this[_0x2a77b4(0x126)]);break;case _0x2a77b4(0x117):this[_0x2a77b4(0x11b)][_0x2a77b4(0x115)](this[_0x2a77b4(0xe9)]);break;case _0x2a77b4(0xf2):this[_0x2a77b4(0x11b)][_0x2a77b4(0x115)](this[_0x2a77b4(0xe8)]);break;case _0x2a77b4(0xee):this[_0x2a77b4(0x11b)][_0x2a77b4(0x115)](this[_0x2a77b4(0xed)]);}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x257059=_0x5a1b;(function(_0x37cbf8,_0x4f7463){const _0xa48ecd=_0x5a1b,_0x450553=_0x37cbf8();while(!![]){try{const _0xd5a84e=-parseInt(_0xa48ecd(0x1ba))/0x1+parseInt(_0xa48ecd(0x1b7))/0x2*(parseInt(_0xa48ecd(0x1ce))/0x3)+-parseInt(_0xa48ecd(0x1ac))/0x4+-parseInt(_0xa48ecd(0x1c1))/0x5*(-parseInt(_0xa48ecd(0x1b2))/0x6)+-parseInt(_0xa48ecd(0x1c6))/0x7+parseInt(_0xa48ecd(0x1b3))/0x8+-parseInt(_0xa48ecd(0x1cd))/0x9;if(_0xd5a84e===_0x4f7463)break;else _0x450553['push'](_0x450553['shift']());}catch(_0x53d22f){_0x450553['push'](_0x450553['shift']());}}}(_0xf009,0x7f419));import{getTranslation as _0x5126bb}from'../../utils/common-translations.js';function _0xf009(){const _0x50ded6=['129201FVgeYn','execute','4045404EYdvUg','isOn','AI_SUGGESTION_HEADER_TITLE','span','ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button','add','108vViMrx','7903560XPsQiq','filter','showHeader','div','48PdqecD','render','set','404524urheCP','bind','showChangesToggleView','setTemplate','content','isShowChangesToggleVisible','ck-ai-suggestion__header','256345kQzgVN','icon','isVisible','fire','remove','2183405tinamC','children','iconView','toggleShowChanges','ck-hidden','showDiff','AI_SUGGESTION_BUTTON_SHOW_CHANGES','6258276lLwmXj'];_0xf009=function(){return _0x50ded6;};return _0xf009();}import{ButtonView as _0x661e44,IconView as _0x4d6311,View as _0x3baf4f}from'ckeditor5/src/ui.js';function _0x5a1b(_0x5f644b,_0x28a6b1){const _0xf009fb=_0xf009();return _0x5a1b=function(_0x5a1bed,_0x13dad2){_0x5a1bed=_0x5a1bed-0x1ab;let _0x324bec=_0xf009fb[_0x5a1bed];return _0x324bec;},_0x5a1b(_0x5f644b,_0x28a6b1);}import{IconDocument as _0x2b276c,IconShowChangesOff as _0x3d170b,IconShowChangesOn as _0x1c1bd9}from'ckeditor5/src/icons.js';export class AISuggestionHeaderView extends _0x3baf4f{[_0x257059(0x1bc)];constructor(_0x2e5ed2,_0x67623d){const _0x156493=_0x257059;super(_0x2e5ed2),this[_0x156493(0x1b9)](_0x156493(0x1bf),!0x0),this[_0x156493(0x1bc)]=new ShowChangesToggleView(_0x2e5ed2),this[_0x156493(0x1bc)][_0x156493(0x1b9)]({'class':_0x156493(0x1b0),'label':_0x5126bb(_0x2e5ed2,_0x156493(0x1cc)),'withText':!0x0}),this[_0x156493(0x1bc)][_0x156493(0x1ad)]=_0x67623d[_0x156493(0x1cb)],this[_0x156493(0x1bc)][_0x156493(0x1bb)](_0x156493(0x1c3))['to'](this,_0x156493(0x1bf)),this[_0x156493(0x1bc)][_0x156493(0x1bb)](_0x156493(0x1c2))['to'](this[_0x156493(0x1bc)],_0x156493(0x1ad),_0x141067=>_0x141067?_0x1c1bd9:_0x3d170b),this[_0x156493(0x1bc)]['on'](_0x156493(0x1ab),()=>{const _0x398d82=_0x156493;this[_0x398d82(0x1bc)][_0x398d82(0x1ad)]=!this[_0x398d82(0x1bc)][_0x398d82(0x1ad)],this[_0x398d82(0x1c4)](_0x398d82(0x1c9),{'isOn':this[_0x398d82(0x1bc)][_0x398d82(0x1ad)]});});const _0x20e3ee=new _0x4d6311();_0x20e3ee[_0x156493(0x1be)]=_0x2b276c,this[_0x156493(0x1bd)]({'tag':_0x156493(0x1b6),'attributes':{'class':['ck',_0x156493(0x1c0),!0x1===_0x67623d[_0x156493(0x1b5)]?_0x156493(0x1ca):null][_0x156493(0x1b4)](Boolean)},'children':[_0x20e3ee,{'tag':_0x156493(0x1af),'children':[_0x5126bb(_0x2e5ed2,_0x156493(0x1ae))]},this[_0x156493(0x1bc)]]});}}export class ShowChangesToggleView extends _0x661e44{[_0x257059(0x1b8)](){const _0xadac13=_0x257059;super[_0xadac13(0x1b8)](),this[_0xadac13(0x1c7)][_0xadac13(0x1c5)](this[_0xadac13(0x1c8)]),this[_0xadac13(0x1c7)][_0xadac13(0x1b1)](this[_0xadac13(0x1c8)]);}}
|