@ckeditor/ckeditor5-ai 47.1.0-alpha.1 → 47.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/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/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.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 +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/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/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/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/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/aireviewmodels.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/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/index.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x56dec4(){[_0x2be753(0x1cc)];[_0x2be753(0x1a0)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x2be753(0x1d3)]=new Set();constructor(_0x56b1ff){const _0x29f5b1=_0x2be753;super(),this[_0x29f5b1(0x1cc)]=_0x56b1ff||_0x491425;}[_0x2be753(0x1b1)](_0xf0f9c7,_0x2b45bd,_0x1216ce){const _0x53a9cf=_0x2be753,_0x284bc2=_0x4e699e(_0xf0f9c7);if(0x0===_0x2b45bd[_0x53a9cf(0x19e)][_0x53a9cf(0x1da)]){const _0x574ba0=[];return _0x2ba4f6(_0x53a9cf(0x19f),_0x53a9cf(0x1c2),_0x284bc2)[_0x53a9cf(0x1c6)](_0x2f483e=>{const _0x12339c=_0x53a9cf,_0x448360=this[_0x12339c(0x1cc)]();_0x236955(_0x2f483e,_0x12339c(0x19f),_0x448360),_0x574ba0[_0x12339c(0x1d7)](_0x448360);}),this[_0x53a9cf(0x1aa)](_0x284bc2),{'parsedContent':_0x284bc2,'newNodeIds':_0x574ba0,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x1216ce&&_0x1216ce[_0x53a9cf(0x1d4)]&&this[_0x53a9cf(0x1c9)](_0x284bc2),this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1c1)]=[],this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1bc)]=[],this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1cd)]=[],this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1a1)]=[],this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1d0)]=null,this[_0x53a9cf(0x1d3)]=new Set(_0x2ba4f6(_0x53a9cf(0x19f),null,_0x2b45bd)[_0x53a9cf(0x1e4)](_0x219592=>_0x2ebeca(_0x219592,_0x53a9cf(0x19f)))[_0x53a9cf(0x1b0)](_0x2ac5f9=>!!_0x2ac5f9));let _0x549bd5=-0x1,_0x499e25=!0x1;const _0x82e314=_0x284bc2[_0x53a9cf(0x19e)],_0x4f3287=Array[_0x53a9cf(0x1a7)](_0x82e314)[_0x53a9cf(0x1b0)](_0xfcf011=>!(0x3===_0xfcf011[_0x53a9cf(0x1d2)]&&''===_0x74ab63(_0xfcf011)[_0x53a9cf(0x1d8)]())),_0x5ae0ff=_0x4f3287[_0x53a9cf(0x1da)];for(let _0x11e8c0=0x0;_0x11e8c0<_0x5ae0ff;_0x11e8c0++){const _0x3fc20b=_0x4f3287[_0x11e8c0],_0x296070=_0x4f3287[_0x11e8c0+0x1];if(this[_0x53a9cf(0x1a3)](_0x3fc20b)){if(-0x1===_0x549bd5&&(_0x549bd5=_0x11e8c0),this[_0x53a9cf(0x1ca)](_0x3fc20b),!this[_0x53a9cf(0x1a3)](_0x296070)){const [_0x339647,_0x3195b0]=this[_0x53a9cf(0x1e2)](_0x3fc20b,_0x499e25,_0x2b45bd);if(_0x339647){const _0x549454=Array[_0x53a9cf(0x1a7)](_0x4f3287)[_0x53a9cf(0x1e0)](_0x549bd5,_0x11e8c0+0x1);this[_0x53a9cf(0x1a5)](_0x339647,_0x549454,_0x3195b0),_0x549bd5=-0x1;}}}else{if(this[_0x53a9cf(0x1b7)](_0x3fc20b))_0x499e25=!0x0;else{if(this[_0x53a9cf(0x1b3)](_0x3fc20b)){const _0x201202=_0x2ebeca(_0x3fc20b,_0x53a9cf(0x19f));if(_0x201202&&this[_0x53a9cf(0x1d3)][_0x53a9cf(0x1ba)](_0x201202)){const _0x271a11=_0x5439aa(_0x53a9cf(0x19f),_0x201202,_0x2b45bd);this[_0x53a9cf(0x1d1)](_0x271a11,_0x3fc20b);}if(this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1cd)][_0x53a9cf(0x1a8)](_0x201202)){const _0x1d7b49=this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1cd)][_0x53a9cf(0x1ac)](_0x201202);this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1cd)][_0x53a9cf(0x1de)](_0x1d7b49,0x1);}}else{if(this[_0x53a9cf(0x1ce)](_0x3fc20b)){const _0x175836=_0x2ebeca(_0x3fc20b,_0x53a9cf(0x19f));this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1bc)][_0x53a9cf(0x1a8)](_0x175836)||this[_0x53a9cf(0x1c5)](_0x3fc20b);}}}}}for(const _0x49cafc of this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1cd)]){const _0x539cea=_0x5439aa(_0x53a9cf(0x19f),_0x49cafc,_0x2b45bd);if(_0x539cea){if(_0x1216ce&&_0x1216ce[_0x53a9cf(0x1db)]){this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1d0)]=_0x49cafc;const _0x54fb66=_0x1216ce[_0x53a9cf(0x1db)][_0x53a9cf(0x1e1)](!0x0);_0x236955(_0x54fb66,_0x53a9cf(0x19f),_0x49cafc),_0x236955(_0x54fb66,_0x53a9cf(0x1b6),_0x53a9cf(0x1a6)),_0x301135(_0x539cea,_0x54fb66);}else _0x20a7e0(_0x539cea);}}if(_0x2ba4f6(_0x53a9cf(0x1bf),null,_0x2b45bd)[_0x53a9cf(0x1c6)](_0x331800=>{const _0x18e1f8=_0x53a9cf,_0x386ff3=_0x2ebeca(_0x331800,_0x18e1f8(0x1bf)),_0x598eb1=_0x5439aa(_0x18e1f8(0x19f),_0x386ff3,_0x2b45bd);_0x598eb1&&_0xfd408c(_0x598eb1,_0x331800);}),_0x2ba4f6(_0x53a9cf(0x19f),_0x53a9cf(0x1c2),_0x2b45bd)[_0x53a9cf(0x1c6)](_0x5b7c9b=>{const _0xf5c5c0=_0x53a9cf,_0x2122e9=this[_0xf5c5c0(0x1d5)](_0x5b7c9b);_0x236955(_0x5b7c9b,_0xf5c5c0(0x19f),_0x2122e9),this[_0xf5c5c0(0x1a0)][_0xf5c5c0(0x1c1)][_0xf5c5c0(0x1d7)](_0x2122e9);}),this[_0x53a9cf(0x1aa)](_0x2b45bd),_0x1216ce&&_0x1216ce[_0x53a9cf(0x1d4)]&&this[_0x53a9cf(0x1c4)](_0x2b45bd,_0x1216ce[_0x53a9cf(0x1d9)]||0x0),_0x1216ce&&_0x1216ce[_0x53a9cf(0x1e3)]&&this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1d0)]){let _0x1bea1b=_0x5439aa(_0x53a9cf(0x19f),this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1d0)],_0x2b45bd);for(;_0x1bea1b;)_0x2b05e5(_0x1bea1b),_0x1bea1b=_0x1bea1b[_0x53a9cf(0x1c8)];}return{'parsedContent':_0x2b45bd,'newNodeIds':this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1c1)],'modifiedNodeIds':this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1bc)],'removedNodeIds':this[_0x53a9cf(0x1a0)][_0x53a9cf(0x1cd)]};}[_0x2be753(0x1a5)](_0x52d918,_0x5428ef,_0x127d57){const _0x402674=_0x2be753;for(const _0x4ca9d0 of _0x5428ef){const _0x5896c4=this[_0x402674(0x1d5)](_0x4ca9d0);_0x236955(_0x4ca9d0,_0x402674(0x19f),_0x5896c4),this[_0x402674(0x1a0)][_0x402674(0x1c1)][_0x402674(0x1d7)](_0x5896c4),this[_0x402674(0x1a0)][_0x402674(0x1d0)]=_0x5896c4;}const _0x484a9c=_0x402674(0x1c3)===_0x127d57||_0x402674(0x1b4)===_0x127d57?_0x5428ef[_0x402674(0x1c7)]():_0x5428ef;for(const _0x35c52c of _0x484a9c)_0x4a239f(_0x52d918,_0x35c52c,_0x127d57);}[_0x2be753(0x1d1)](_0x5b5962,_0x59ff66){const _0x5c28e2=_0x2be753;if(!_0x5b5962)return;if(_0x1dbb1c(_0x5b5962,_0x59ff66))return;const _0x1cd727=this[_0x5c28e2(0x1d5)](_0x5b5962);_0x236955(_0x59ff66,_0x5c28e2(0x19f),_0x1cd727),this[_0x5c28e2(0x1a0)][_0x5c28e2(0x1bc)][_0x5c28e2(0x1d7)](_0x1cd727),this[_0x5c28e2(0x1a0)][_0x5c28e2(0x1d0)]=_0x1cd727,_0x301135(_0x5b5962,_0x59ff66[_0x5c28e2(0x1e1)](!0x0));}[_0x2be753(0x1e2)](_0x42f332,_0x35543a,_0x58f56a){const _0x98723f=_0x2be753,_0x57debb=this[_0x98723f(0x1bb)](_0x42f332,!0x1);if(_0x57debb){const _0xe256f0=this[_0x98723f(0x1dc)](_0x57debb),_0x4fd1c6=_0x5439aa(_0x98723f(0x19f),_0xe256f0,_0x58f56a);if(_0x4fd1c6)return[_0x4fd1c6,_0x98723f(0x1b4)];this[_0x98723f(0x1a0)][_0x98723f(0x1a1)][_0x98723f(0x1d7)](_0xe256f0);}const _0x46069d=this[_0x98723f(0x1cf)](_0x42f332,!0x1);if(_0x46069d){const _0x2a7ceb=this[_0x98723f(0x1dc)](_0x46069d),_0x2ee691=_0x5439aa(_0x98723f(0x19f),_0x2a7ceb,_0x58f56a);if(_0x2ee691)return[_0x2ee691,_0x98723f(0x1a9)];this[_0x98723f(0x1a0)][_0x98723f(0x1a1)][_0x98723f(0x1d7)](_0x2a7ceb);}return _0x35543a?_0x42f332[_0x98723f(0x1c0)]?this[_0x98723f(0x1af)](_0x42f332,_0x58f56a):[_0x58f56a[_0x98723f(0x19e)][_0x58f56a[_0x98723f(0x19e)][_0x98723f(0x1da)]-0x1],_0x98723f(0x1b4)]:[_0x58f56a[_0x98723f(0x19e)][0x0],_0x98723f(0x1a9)];}[_0x2be753(0x1af)](_0x10c4eb,_0x232604){const _0x2aac08=_0x2be753,_0x29b8c7=[],_0x3bbb9a=this[_0x2aac08(0x1bb)](_0x10c4eb,!0x0);if(_0x3bbb9a){const _0x51f7e3=this[_0x2aac08(0x1dc)](_0x3bbb9a),_0x3fbc34=_0x5439aa(_0x2aac08(0x19f),_0x51f7e3,_0x232604);_0x3fbc34&&_0x29b8c7[_0x2aac08(0x1d7)]([_0x3fbc34,_0x2aac08(0x1b4)]);}const _0x3db0ef=this[_0x2aac08(0x1cf)](_0x10c4eb,!0x0);if(_0x3db0ef){const _0x50292a=this[_0x2aac08(0x1dc)](_0x3db0ef),_0x560784=_0x5439aa(_0x2aac08(0x19f),_0x50292a,_0x232604);_0x560784&&_0x29b8c7[_0x2aac08(0x1d7)]([_0x560784,_0x2aac08(0x1a9)]);}if(_0x29b8c7[_0x2aac08(0x1da)]>0x1)return _0x3bb26f(_0x29b8c7[0x0][0x0])<=_0x3bb26f(_0x29b8c7[0x1][0x0])?_0x29b8c7[0x0]:_0x29b8c7[0x1];return 0x1===_0x29b8c7[_0x2aac08(0x1da)]?_0x29b8c7[0x0]:[_0x232604[_0x2aac08(0x1dd)],_0x2aac08(0x1b4)];}[_0x2be753(0x1cf)](_0x524302,_0x17685a){const _0x5543c2=_0x2be753;let _0x6f427d=_0x524302[_0x5543c2(0x1c0)],_0x5c1972=null,_0x4bd967=!0x1;for(;_0x6f427d;){if(_0x1e03d0(_0x6f427d)){if(this[_0x5543c2(0x1ce)](_0x6f427d)&&(_0x5c1972=_0x6f427d),this[_0x5543c2(0x1b7)](_0x6f427d)&&_0x17685a&&!_0x4bd967){_0x4bd967=!0x0,_0x6f427d=_0x6f427d[_0x5543c2(0x1c0)];continue;}break;}const _0x25c221=_0x2ebeca(_0x6f427d,_0x5543c2(0x19f));if(_0x25c221&&_0x5543c2(0x1c2)!==_0x25c221&&this[_0x5543c2(0x1d3)][_0x5543c2(0x1ba)](_0x25c221)){_0x5c1972=_0x6f427d;break;}_0x6f427d=_0x6f427d[_0x5543c2(0x1c0)];}return _0x5c1972;}[_0x2be753(0x1bb)](_0x275cd7,_0x3d5a14){const _0x248868=_0x2be753;let _0xc63296=_0x275cd7[_0x248868(0x1b2)],_0x2e5203=null,_0x30406b=!0x1;for(;_0xc63296;){if(_0x1e03d0(_0xc63296)){if(this[_0x248868(0x1ce)](_0xc63296)&&(_0x2e5203=_0xc63296),this[_0x248868(0x1b7)](_0xc63296)&&_0x3d5a14&&!_0x30406b){_0x30406b=!0x0,_0xc63296=_0xc63296[_0x248868(0x1b2)];continue;}break;}const _0x1f715f=_0x2ebeca(_0xc63296,_0x248868(0x19f));if(_0x1f715f&&_0x248868(0x1c2)!==_0x1f715f&&this[_0x248868(0x1d3)][_0x248868(0x1ba)](_0x1f715f)){_0x2e5203=_0xc63296;break;}_0xc63296=_0xc63296[_0x248868(0x1b2)];}return _0x2e5203;}[_0x2be753(0x1ca)](_0x291e73){const _0x3bf2e2=_0x2be753;_0x5ac3d7(_0x291e73)&&_0x2ba4f6(_0x3bf2e2(0x19f),null,_0x291e73)[_0x3bf2e2(0x1c6)](_0x1aee94=>{const _0xa83497=_0x3bf2e2;if(this[_0xa83497(0x1b3)](_0x1aee94)&&!this[_0xa83497(0x1ae)](_0x1aee94)){const _0x5cd01c=_0x2ebeca(_0x1aee94,_0xa83497(0x19f));_0x236955(_0x1aee94,_0xa83497(0x1bf),_0x5cd01c),_0x236955(_0x1aee94,_0xa83497(0x19f),null);}});}[_0x2be753(0x1dc)](_0x22a255){const _0x2066cc=_0x2be753;if(!_0x22a255)return null;if(_0x5ac3d7(_0x22a255))return _0x2ebeca(_0x22a255,_0x2066cc(0x19f));if(_0x1e03d0(_0x22a255)){const _0xcbf49e=_0x74ab63(_0x22a255)[_0x2066cc(0x1b5)](/removed[\s*-]data-id="([^"]+)"/);if(_0xcbf49e&&_0xcbf49e[0x1])return _0xcbf49e[0x1];}return null;}[_0x2be753(0x1c5)](_0x1b5343){const _0x11b913=_0x2be753;if(_0x1e03d0(_0x1b5343)){const _0x44235f=_0x74ab63(_0x1b5343)[_0x11b913(0x1b5)](/removed[\s*-]data-id="([^"]+)"/);_0x44235f&&_0x44235f[0x1]&&this[_0x11b913(0x1a0)][_0x11b913(0x1cd)][_0x11b913(0x1d7)](_0x44235f[0x1]);}}[_0x2be753(0x1d5)](_0x2a422e){const _0x7ff900=_0x2be753;return this[_0x7ff900(0x1b3)](_0x2a422e)?_0x2ebeca(_0x2a422e,_0x7ff900(0x19f)):this[_0x7ff900(0x1cc)]();}[_0x2be753(0x1aa)](_0x3594bd){const _0x5876f2=_0x2be753;_0x477837(_0x3594bd)[_0x5876f2(0x1b0)](_0x2e8faa=>this[_0x5876f2(0x1ce)](_0x2e8faa)||this[_0x5876f2(0x1b7)](_0x2e8faa))[_0x5876f2(0x1c6)](_0x43c0e4=>{_0x20a7e0(_0x43c0e4);});}[_0x2be753(0x1c9)](_0x75eacd){const _0x465940=_0x2be753,_0x58a4cc=_0x75eacd[_0x465940(0x19e)],_0x5232f1=_0x58a4cc[_0x58a4cc[_0x465940(0x1da)]-0x1];_0x5232f1&&_0x5ac3d7(_0x5232f1)&&_0x236955(_0x5232f1,_0x465940(0x1df),_0x465940(0x1a6));}[_0x2be753(0x1c4)](_0x14fdda,_0x38e508){const _0x1d0201=_0x2be753,_0x3e287d=_0x5439aa(_0x1d0201(0x1df),_0x1d0201(0x1a6),_0x14fdda);if(!_0x3e287d)return;const _0x53ef6d=_0x27db4a(_0x3e287d)[_0x1d0201(0x1e0)](0x0,-0x1),_0x597da9=_0x53ef6d[_0x1d0201(0x1da)];let _0x5cc1bb=_0x3e287d;if(_0x597da9>_0x38e508){let _0x455ce4=_0x597da9,_0x5d6ef4=null;for(;_0x455ce4>_0x38e508&&_0x455ce4>=0x0;)_0x455ce4--,_0x5d6ef4=_0x53ef6d[_0x455ce4];_0x5d6ef4&&(_0x5cc1bb=_0x5d6ef4,_0x236955(_0x3e287d,_0x1d0201(0x1df),null),_0x236955(_0x5d6ef4,_0x1d0201(0x1df),_0x1d0201(0x1a6)));}else{if(_0x597da9<_0x38e508){let _0x1c27fc=_0x597da9,_0x4a00d6=_0x3e287d;for(;_0x1c27fc<_0x38e508;){const _0x51454a=_0x4a00d6[_0x1d0201(0x19e)][_0x1d0201(0x1b0)](_0x3a014b=>_0x5ac3d7(_0x3a014b));if(0x0===_0x51454a[_0x1d0201(0x1da)])break;_0x1c27fc++,_0x4a00d6=_0x51454a[_0x51454a[_0x1d0201(0x1da)]-0x1];}_0x4a00d6&&(_0x5cc1bb=_0x4a00d6,_0x236955(_0x3e287d,_0x1d0201(0x1df),null),_0x236955(_0x4a00d6,_0x1d0201(0x1df),_0x1d0201(0x1a6)));}}let _0x56c2c2=_0x5cc1bb;for(;_0x56c2c2;){for(;_0x56c2c2[_0x1d0201(0x1c0)];)_0x56c2c2=_0x56c2c2[_0x1d0201(0x1c0)],_0x5ac3d7(_0x56c2c2)&&_0x236955(_0x56c2c2,_0x1d0201(0x1df),_0x1d0201(0x1a6));_0x56c2c2=_0x56c2c2[_0x1d0201(0x1c8)];}}[_0x2be753(0x1a3)](_0x2752d6){const _0x59cb30=_0x2be753;return Boolean(_0x59cb30(0x1c2)===_0x2ebeca(_0x2752d6,_0x59cb30(0x19f)));}[_0x2be753(0x1b3)](_0x452f48){const _0x46a6f0=_0x2be753;return Boolean((_0x2ebeca(_0x452f48,_0x46a6f0(0x19f))||'')[_0x46a6f0(0x1da)]>0x0&&_0x46a6f0(0x1c2)!==_0x2ebeca(_0x452f48,_0x46a6f0(0x19f)));}[_0x2be753(0x1ce)](_0x1a90fc){const _0x5ec279=_0x2be753;return!!_0x1a90fc&&Boolean(_0x1e03d0(_0x1a90fc)&&_0x74ab63(_0x1a90fc)[_0x5ec279(0x1b5)](/removed[\s*-]data-id="[^"]+"/));}[_0x2be753(0x1ae)](_0x301293){const _0x12dc65=_0x2be753;let _0x4819d4=_0x301293[_0x12dc65(0x1c8)];for(;_0x4819d4;){if(_0x2ebeca(_0x4819d4,_0x12dc65(0x1bf)))return!0x0;_0x4819d4=_0x4819d4[_0x12dc65(0x1c8)];}return!0x1;}[_0x2be753(0x1b7)](_0x7d08e1){const _0x30c264=_0x2be753;return Boolean(_0x1e03d0(_0x7d08e1)&&_0x74ab63(_0x7d08e1)[_0x30c264(0x1b5)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x53e9b3=_0xfdf1;(function(_0x46cc36,_0x37feca){const _0x44827c=_0xfdf1,_0x4377bb=_0x46cc36();while(!![]){try{const _0x2e55f2=-parseInt(_0x44827c(0x1eb))/0x1*(parseInt(_0x44827c(0x1d9))/0x2)+-parseInt(_0x44827c(0x1db))/0x3*(-parseInt(_0x44827c(0x21b))/0x4)+parseInt(_0x44827c(0x218))/0x5*(parseInt(_0x44827c(0x209))/0x6)+-parseInt(_0x44827c(0x1d8))/0x7+parseInt(_0x44827c(0x201))/0x8+-parseInt(_0x44827c(0x208))/0x9+-parseInt(_0x44827c(0x20e))/0xa*(-parseInt(_0x44827c(0x219))/0xb);if(_0x2e55f2===_0x37feca)break;else _0x4377bb['push'](_0x4377bb['shift']());}catch(_0x51d54f){_0x4377bb['push'](_0x4377bb['shift']());}}}(_0x5b42,0xd05e6));import{ObservableMixin as _0x31e9ad,uid as _0x1fe7d7}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x21474a,findByAttribute as _0x57a16a,getAttribute as _0x3fdc9a,isComment as _0x167826,isTag as _0x424e03,insertElement as _0x15f7b0,moveElement as _0x2e3c39,removeElement as _0x18910e,replaceElement as _0x4cf0df,serialize as _0x2ea88e,setAttribute as _0x7f5f65,clone as _0x4fd544,findAllComments as _0x3efd16,getParents as _0x3937aa,getNodeNestingLevel as _0x55121a,areNodesSame as _0x3b433b,removeElementsAfter as _0x39759e}from'../utils/htmlparser.js';function _0x5b42(){const _0x3bae62=['markUnstableElementsDepth','filter','match','nodeType','8175112QRRGTV','merge','_removeSpecialComments','_storeDeletedElementIds','indexOf','cloneNode','push','11184777dRRdsF','12aWIGYs','true','includes','map','forEach','33850pPAkZw','previousSibling','afterend','_generateUid','splice','lastChild','_isExistingNode','_touchedNodesState','new-element','trim','613385CuvEAm','8129ievyMX','markUnstableElements','28qeqIrz','data-removed','slice','removedIds','_hasWrappedParent','6844124qvDSAm','2SqhYuW','replaceRemovedWith','242832eGxzDv','_getNodeDataId','_findReferenceNode','from','invalidIds','cutAfterLastChange','has','_isNewNode','beforebegin','childNodes','_replaceNode','data-unstable','_existingDataIds','newIds','afterbegin','_markLastTagElementUnstable','1261403XbkdPe','_isExistingContentComment','_findFallbackReferenceNode','data-wrapped-id','reverse','_findPrevElementWithDataId','length','_markWrappedElements','nextSibling','_isDelNode','data-id','_markUnstableElements','lastTouchedId','modifiedIds','_getUid','_findNextElementWithDataId','parentNode','_insertNodes'];_0x5b42=function(){return _0x3bae62;};return _0x5b42();}function _0xfdf1(_0x594f1a,_0xbe79ab){const _0x5b4224=_0x5b42();return _0xfdf1=function(_0xfdf139,_0x183288){_0xfdf139=_0xfdf139-0x1d8;let _0xc85e49=_0x5b4224[_0xfdf139];return _0xc85e49;},_0xfdf1(_0x594f1a,_0xbe79ab);}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x31e9ad(){[_0x53e9b3(0x211)];[_0x53e9b3(0x215)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x53e9b3(0x1e7)]=new Set();constructor(_0x45b7ce){const _0x432129=_0x53e9b3;super(),this[_0x432129(0x211)]=_0x45b7ce||_0x1fe7d7;}[_0x53e9b3(0x202)](_0x2f9fe1,_0x2c8e0c,_0x3569f6){const _0x4e61ca=_0x53e9b3,_0x1994d3=_0x4fd544(_0x2f9fe1);if(0x0===_0x2c8e0c[_0x4e61ca(0x1e4)][_0x4e61ca(0x1f1)]){const _0x5656b6=[];return _0x21474a(_0x4e61ca(0x1f5),_0x4e61ca(0x216),_0x1994d3)[_0x4e61ca(0x20d)](_0x15b074=>{const _0x4ea810=_0x4e61ca,_0x426e12=this[_0x4ea810(0x211)]();_0x7f5f65(_0x15b074,_0x4ea810(0x1f5),_0x426e12),_0x5656b6[_0x4ea810(0x207)](_0x426e12);}),this[_0x4e61ca(0x203)](_0x1994d3),{'parsedContent':_0x1994d3,'newNodeIds':_0x5656b6,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x3569f6&&_0x3569f6[_0x4e61ca(0x21a)]&&this[_0x4e61ca(0x1ea)](_0x1994d3),this[_0x4e61ca(0x215)][_0x4e61ca(0x1e8)]=[],this[_0x4e61ca(0x215)][_0x4e61ca(0x1f8)]=[],this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)]=[],this[_0x4e61ca(0x215)][_0x4e61ca(0x1df)]=[],this[_0x4e61ca(0x215)][_0x4e61ca(0x1f7)]=null,this[_0x4e61ca(0x1e7)]=new Set(_0x21474a(_0x4e61ca(0x1f5),null,_0x2c8e0c)[_0x4e61ca(0x20c)](_0x5795bd=>_0x3fdc9a(_0x5795bd,_0x4e61ca(0x1f5)))[_0x4e61ca(0x1fe)](_0x542995=>!!_0x542995));let _0x12d81d=-0x1,_0x544f84=!0x1;const _0x5b49a9=_0x1994d3[_0x4e61ca(0x1e4)],_0x17650e=Array[_0x4e61ca(0x1de)](_0x5b49a9)[_0x4e61ca(0x1fe)](_0x4b05cd=>!(0x3===_0x4b05cd[_0x4e61ca(0x200)]&&''===_0x2ea88e(_0x4b05cd)[_0x4e61ca(0x217)]())),_0x204a99=_0x17650e[_0x4e61ca(0x1f1)];for(let _0x5410b2=0x0;_0x5410b2<_0x204a99;_0x5410b2++){const _0x28b394=_0x17650e[_0x5410b2],_0x2f7e68=_0x17650e[_0x5410b2+0x1];if(this[_0x4e61ca(0x1e2)](_0x28b394)){if(-0x1===_0x12d81d&&(_0x12d81d=_0x5410b2),this[_0x4e61ca(0x1f2)](_0x28b394),!this[_0x4e61ca(0x1e2)](_0x2f7e68)){const [_0x3580c7,_0x52df17]=this[_0x4e61ca(0x1dd)](_0x28b394,_0x544f84,_0x2c8e0c);if(_0x3580c7){const _0x4ff944=Array[_0x4e61ca(0x1de)](_0x17650e)[_0x4e61ca(0x21d)](_0x12d81d,_0x5410b2+0x1);this[_0x4e61ca(0x1fc)](_0x3580c7,_0x4ff944,_0x52df17),_0x12d81d=-0x1;}}}else{if(this[_0x4e61ca(0x1ec)](_0x28b394))_0x544f84=!0x0;else{if(this[_0x4e61ca(0x214)](_0x28b394)){const _0x34edb5=_0x3fdc9a(_0x28b394,_0x4e61ca(0x1f5));if(_0x34edb5&&this[_0x4e61ca(0x1e7)][_0x4e61ca(0x1e1)](_0x34edb5)){const _0x3c6056=_0x57a16a(_0x4e61ca(0x1f5),_0x34edb5,_0x2c8e0c);this[_0x4e61ca(0x1e5)](_0x3c6056,_0x28b394);}if(this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)][_0x4e61ca(0x20b)](_0x34edb5)){const _0x39dab3=this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)][_0x4e61ca(0x205)](_0x34edb5);this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)][_0x4e61ca(0x212)](_0x39dab3,0x1);}}else{if(this[_0x4e61ca(0x1f4)](_0x28b394)){const _0x27c944=_0x3fdc9a(_0x28b394,_0x4e61ca(0x1f5));this[_0x4e61ca(0x215)][_0x4e61ca(0x1f8)][_0x4e61ca(0x20b)](_0x27c944)||this[_0x4e61ca(0x204)](_0x28b394);}}}}}for(const _0x1af400 of this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)]){const _0x17d3d4=_0x57a16a(_0x4e61ca(0x1f5),_0x1af400,_0x2c8e0c);if(_0x17d3d4){if(_0x3569f6&&_0x3569f6[_0x4e61ca(0x1da)]){this[_0x4e61ca(0x215)][_0x4e61ca(0x1f7)]=_0x1af400;const _0x251251=_0x3569f6[_0x4e61ca(0x1da)][_0x4e61ca(0x206)](!0x0);_0x7f5f65(_0x251251,_0x4e61ca(0x1f5),_0x1af400),_0x7f5f65(_0x251251,_0x4e61ca(0x21c),_0x4e61ca(0x20a)),_0x4cf0df(_0x17d3d4,_0x251251);}else _0x18910e(_0x17d3d4);}}if(_0x21474a(_0x4e61ca(0x1ee),null,_0x2c8e0c)[_0x4e61ca(0x20d)](_0x17174a=>{const _0x876d18=_0x4e61ca,_0x575dee=_0x3fdc9a(_0x17174a,_0x876d18(0x1ee)),_0x3fac4c=_0x57a16a(_0x876d18(0x1f5),_0x575dee,_0x2c8e0c);_0x3fac4c&&_0x2e3c39(_0x3fac4c,_0x17174a);}),_0x21474a(_0x4e61ca(0x1f5),_0x4e61ca(0x216),_0x2c8e0c)[_0x4e61ca(0x20d)](_0x11d383=>{const _0x426ad3=_0x4e61ca,_0x3ee3a7=this[_0x426ad3(0x1f9)](_0x11d383);_0x7f5f65(_0x11d383,_0x426ad3(0x1f5),_0x3ee3a7),this[_0x426ad3(0x215)][_0x426ad3(0x1e8)][_0x426ad3(0x207)](_0x3ee3a7);}),this[_0x4e61ca(0x203)](_0x2c8e0c),_0x3569f6&&_0x3569f6[_0x4e61ca(0x21a)]&&this[_0x4e61ca(0x1f6)](_0x2c8e0c,_0x3569f6[_0x4e61ca(0x1fd)]||0x0),_0x3569f6&&_0x3569f6[_0x4e61ca(0x1e0)]&&this[_0x4e61ca(0x215)][_0x4e61ca(0x1f7)]){let _0x4f1486=_0x57a16a(_0x4e61ca(0x1f5),this[_0x4e61ca(0x215)][_0x4e61ca(0x1f7)],_0x2c8e0c);for(;_0x4f1486;)_0x39759e(_0x4f1486),_0x4f1486=_0x4f1486[_0x4e61ca(0x1fb)];}return{'parsedContent':_0x2c8e0c,'newNodeIds':this[_0x4e61ca(0x215)][_0x4e61ca(0x1e8)],'modifiedNodeIds':this[_0x4e61ca(0x215)][_0x4e61ca(0x1f8)],'removedNodeIds':this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)]};}[_0x53e9b3(0x1fc)](_0x445bcf,_0x141feb,_0x3d9c6e){const _0x5e89f3=_0x53e9b3;for(const _0x341351 of _0x141feb){const _0x4402e6=this[_0x5e89f3(0x1f9)](_0x341351);_0x7f5f65(_0x341351,_0x5e89f3(0x1f5),_0x4402e6),this[_0x5e89f3(0x215)][_0x5e89f3(0x1e8)][_0x5e89f3(0x207)](_0x4402e6),this[_0x5e89f3(0x215)][_0x5e89f3(0x1f7)]=_0x4402e6;}const _0x3ae653=_0x5e89f3(0x1e9)===_0x3d9c6e||_0x5e89f3(0x210)===_0x3d9c6e?_0x141feb[_0x5e89f3(0x1ef)]():_0x141feb;for(const _0x393c21 of _0x3ae653)_0x15f7b0(_0x445bcf,_0x393c21,_0x3d9c6e);}[_0x53e9b3(0x1e5)](_0x2688ff,_0x4247af){const _0xed1397=_0x53e9b3;if(!_0x2688ff)return;if(_0x3b433b(_0x2688ff,_0x4247af))return;const _0x2260fe=this[_0xed1397(0x1f9)](_0x2688ff);_0x7f5f65(_0x4247af,_0xed1397(0x1f5),_0x2260fe),this[_0xed1397(0x215)][_0xed1397(0x1f8)][_0xed1397(0x207)](_0x2260fe),this[_0xed1397(0x215)][_0xed1397(0x1f7)]=_0x2260fe,_0x4cf0df(_0x2688ff,_0x4247af[_0xed1397(0x206)](!0x0));}[_0x53e9b3(0x1dd)](_0x3f9380,_0x220930,_0x1e5ae3){const _0x528fd9=_0x53e9b3,_0xd69bb6=this[_0x528fd9(0x1f0)](_0x3f9380,!0x1);if(_0xd69bb6){const _0x737b99=this[_0x528fd9(0x1dc)](_0xd69bb6),_0x132faa=_0x57a16a(_0x528fd9(0x1f5),_0x737b99,_0x1e5ae3);if(_0x132faa)return[_0x132faa,_0x528fd9(0x210)];this[_0x528fd9(0x215)][_0x528fd9(0x1df)][_0x528fd9(0x207)](_0x737b99);}const _0x5a1001=this[_0x528fd9(0x1fa)](_0x3f9380,!0x1);if(_0x5a1001){const _0x56080b=this[_0x528fd9(0x1dc)](_0x5a1001),_0x4930bd=_0x57a16a(_0x528fd9(0x1f5),_0x56080b,_0x1e5ae3);if(_0x4930bd)return[_0x4930bd,_0x528fd9(0x1e3)];this[_0x528fd9(0x215)][_0x528fd9(0x1df)][_0x528fd9(0x207)](_0x56080b);}return _0x220930?_0x3f9380[_0x528fd9(0x1f3)]?this[_0x528fd9(0x1ed)](_0x3f9380,_0x1e5ae3):[_0x1e5ae3[_0x528fd9(0x1e4)][_0x1e5ae3[_0x528fd9(0x1e4)][_0x528fd9(0x1f1)]-0x1],_0x528fd9(0x210)]:[_0x1e5ae3[_0x528fd9(0x1e4)][0x0],_0x528fd9(0x1e3)];}[_0x53e9b3(0x1ed)](_0xd7384b,_0x3b312e){const _0x1a6196=_0x53e9b3,_0x205fd3=[],_0x45d264=this[_0x1a6196(0x1f0)](_0xd7384b,!0x0);if(_0x45d264){const _0x4c9702=this[_0x1a6196(0x1dc)](_0x45d264),_0x48d941=_0x57a16a(_0x1a6196(0x1f5),_0x4c9702,_0x3b312e);_0x48d941&&_0x205fd3[_0x1a6196(0x207)]([_0x48d941,_0x1a6196(0x210)]);}const _0x2dcd74=this[_0x1a6196(0x1fa)](_0xd7384b,!0x0);if(_0x2dcd74){const _0x390113=this[_0x1a6196(0x1dc)](_0x2dcd74),_0x1f0e59=_0x57a16a(_0x1a6196(0x1f5),_0x390113,_0x3b312e);_0x1f0e59&&_0x205fd3[_0x1a6196(0x207)]([_0x1f0e59,_0x1a6196(0x1e3)]);}if(_0x205fd3[_0x1a6196(0x1f1)]>0x1)return _0x55121a(_0x205fd3[0x0][0x0])<=_0x55121a(_0x205fd3[0x1][0x0])?_0x205fd3[0x0]:_0x205fd3[0x1];return 0x1===_0x205fd3[_0x1a6196(0x1f1)]?_0x205fd3[0x0]:[_0x3b312e[_0x1a6196(0x213)],_0x1a6196(0x210)];}[_0x53e9b3(0x1fa)](_0x26429d,_0x565d3e){const _0x2aaf1b=_0x53e9b3;let _0x1247ed=_0x26429d[_0x2aaf1b(0x1f3)],_0x1aab7b=null,_0x12226b=!0x1;for(;_0x1247ed;){if(_0x167826(_0x1247ed)){if(this[_0x2aaf1b(0x1f4)](_0x1247ed)&&(_0x1aab7b=_0x1247ed),this[_0x2aaf1b(0x1ec)](_0x1247ed)&&_0x565d3e&&!_0x12226b){_0x12226b=!0x0,_0x1247ed=_0x1247ed[_0x2aaf1b(0x1f3)];continue;}break;}const _0xe4898a=_0x3fdc9a(_0x1247ed,_0x2aaf1b(0x1f5));if(_0xe4898a&&_0x2aaf1b(0x216)!==_0xe4898a&&this[_0x2aaf1b(0x1e7)][_0x2aaf1b(0x1e1)](_0xe4898a)){_0x1aab7b=_0x1247ed;break;}_0x1247ed=_0x1247ed[_0x2aaf1b(0x1f3)];}return _0x1aab7b;}[_0x53e9b3(0x1f0)](_0x12eb55,_0x167b5b){const _0x592fe9=_0x53e9b3;let _0x2ca944=_0x12eb55[_0x592fe9(0x20f)],_0x2d8ef9=null,_0x38f4c6=!0x1;for(;_0x2ca944;){if(_0x167826(_0x2ca944)){if(this[_0x592fe9(0x1f4)](_0x2ca944)&&(_0x2d8ef9=_0x2ca944),this[_0x592fe9(0x1ec)](_0x2ca944)&&_0x167b5b&&!_0x38f4c6){_0x38f4c6=!0x0,_0x2ca944=_0x2ca944[_0x592fe9(0x20f)];continue;}break;}const _0x4ac1d4=_0x3fdc9a(_0x2ca944,_0x592fe9(0x1f5));if(_0x4ac1d4&&_0x592fe9(0x216)!==_0x4ac1d4&&this[_0x592fe9(0x1e7)][_0x592fe9(0x1e1)](_0x4ac1d4)){_0x2d8ef9=_0x2ca944;break;}_0x2ca944=_0x2ca944[_0x592fe9(0x20f)];}return _0x2d8ef9;}[_0x53e9b3(0x1f2)](_0x4856c9){const _0x275387=_0x53e9b3;_0x424e03(_0x4856c9)&&_0x21474a(_0x275387(0x1f5),null,_0x4856c9)[_0x275387(0x20d)](_0xc421e7=>{const _0xbbb066=_0x275387;if(this[_0xbbb066(0x214)](_0xc421e7)&&!this[_0xbbb066(0x21f)](_0xc421e7)){const _0x360b7b=_0x3fdc9a(_0xc421e7,_0xbbb066(0x1f5));_0x7f5f65(_0xc421e7,_0xbbb066(0x1ee),_0x360b7b),_0x7f5f65(_0xc421e7,_0xbbb066(0x1f5),null);}});}[_0x53e9b3(0x1dc)](_0x19a61a){const _0x156afc=_0x53e9b3;if(!_0x19a61a)return null;if(_0x424e03(_0x19a61a))return _0x3fdc9a(_0x19a61a,_0x156afc(0x1f5));if(_0x167826(_0x19a61a)){const _0x1cac9b=_0x2ea88e(_0x19a61a)[_0x156afc(0x1ff)](/removed[\s*-]data-id="([^"]+)"/);if(_0x1cac9b&&_0x1cac9b[0x1])return _0x1cac9b[0x1];}return null;}[_0x53e9b3(0x204)](_0x2f7d42){const _0x595e48=_0x53e9b3;if(_0x167826(_0x2f7d42)){const _0x1574ec=_0x2ea88e(_0x2f7d42)[_0x595e48(0x1ff)](/removed[\s*-]data-id="([^"]+)"/);_0x1574ec&&_0x1574ec[0x1]&&this[_0x595e48(0x215)][_0x595e48(0x21e)][_0x595e48(0x207)](_0x1574ec[0x1]);}}[_0x53e9b3(0x1f9)](_0x4dd8b3){const _0x70498b=_0x53e9b3;return this[_0x70498b(0x214)](_0x4dd8b3)?_0x3fdc9a(_0x4dd8b3,_0x70498b(0x1f5)):this[_0x70498b(0x211)]();}[_0x53e9b3(0x203)](_0x1a7e4a){const _0x1499ca=_0x53e9b3;_0x3efd16(_0x1a7e4a)[_0x1499ca(0x1fe)](_0x3310bd=>this[_0x1499ca(0x1f4)](_0x3310bd)||this[_0x1499ca(0x1ec)](_0x3310bd))[_0x1499ca(0x20d)](_0x183737=>{_0x18910e(_0x183737);});}[_0x53e9b3(0x1ea)](_0x4d98ea){const _0x3099be=_0x53e9b3,_0x1b76fd=_0x4d98ea[_0x3099be(0x1e4)],_0x429fb0=_0x1b76fd[_0x1b76fd[_0x3099be(0x1f1)]-0x1];_0x429fb0&&_0x424e03(_0x429fb0)&&_0x7f5f65(_0x429fb0,_0x3099be(0x1e6),_0x3099be(0x20a));}[_0x53e9b3(0x1f6)](_0x172d71,_0x1d7afc){const _0x8e3d33=_0x53e9b3,_0xda42dc=_0x57a16a(_0x8e3d33(0x1e6),_0x8e3d33(0x20a),_0x172d71);if(!_0xda42dc)return;const _0x42c7d9=_0x3937aa(_0xda42dc)[_0x8e3d33(0x21d)](0x0,-0x1),_0x42b397=_0x42c7d9[_0x8e3d33(0x1f1)];let _0x455023=_0xda42dc;if(_0x42b397>_0x1d7afc){let _0x26c2a5=_0x42b397,_0x6a0243=null;for(;_0x26c2a5>_0x1d7afc&&_0x26c2a5>=0x0;)_0x26c2a5--,_0x6a0243=_0x42c7d9[_0x26c2a5];_0x6a0243&&(_0x455023=_0x6a0243,_0x7f5f65(_0xda42dc,_0x8e3d33(0x1e6),null),_0x7f5f65(_0x6a0243,_0x8e3d33(0x1e6),_0x8e3d33(0x20a)));}else{if(_0x42b397<_0x1d7afc){let _0x3f3941=_0x42b397,_0x157260=_0xda42dc;for(;_0x3f3941<_0x1d7afc;){const _0x1b75ca=_0x157260[_0x8e3d33(0x1e4)][_0x8e3d33(0x1fe)](_0x57f59a=>_0x424e03(_0x57f59a));if(0x0===_0x1b75ca[_0x8e3d33(0x1f1)])break;_0x3f3941++,_0x157260=_0x1b75ca[_0x1b75ca[_0x8e3d33(0x1f1)]-0x1];}_0x157260&&(_0x455023=_0x157260,_0x7f5f65(_0xda42dc,_0x8e3d33(0x1e6),null),_0x7f5f65(_0x157260,_0x8e3d33(0x1e6),_0x8e3d33(0x20a)));}}let _0x101763=_0x455023;for(;_0x101763;){for(;_0x101763[_0x8e3d33(0x1f3)];)_0x101763=_0x101763[_0x8e3d33(0x1f3)],_0x424e03(_0x101763)&&_0x7f5f65(_0x101763,_0x8e3d33(0x1e6),_0x8e3d33(0x20a));_0x101763=_0x101763[_0x8e3d33(0x1fb)];}}[_0x53e9b3(0x1e2)](_0x48fadf){const _0x14fdb0=_0x53e9b3;return Boolean(_0x14fdb0(0x216)===_0x3fdc9a(_0x48fadf,_0x14fdb0(0x1f5)));}[_0x53e9b3(0x214)](_0x218c18){const _0x3c418d=_0x53e9b3;return Boolean((_0x3fdc9a(_0x218c18,_0x3c418d(0x1f5))||'')[_0x3c418d(0x1f1)]>0x0&&_0x3c418d(0x216)!==_0x3fdc9a(_0x218c18,_0x3c418d(0x1f5)));}[_0x53e9b3(0x1f4)](_0x1c812f){const _0x1e4d4e=_0x53e9b3;return!!_0x1c812f&&Boolean(_0x167826(_0x1c812f)&&_0x2ea88e(_0x1c812f)[_0x1e4d4e(0x1ff)](/removed[\s*-]data-id="[^"]+"/));}[_0x53e9b3(0x21f)](_0x558fcb){const _0x254299=_0x53e9b3;let _0x5d2d19=_0x558fcb[_0x254299(0x1fb)];for(;_0x5d2d19;){if(_0x3fdc9a(_0x5d2d19,_0x254299(0x1ee)))return!0x0;_0x5d2d19=_0x5d2d19[_0x254299(0x1fb)];}return!0x1;}[_0x53e9b3(0x1ec)](_0x3a3aa8){const _0x327aa4=_0x53e9b3;return Boolean(_0x167826(_0x3a3aa8)&&_0x2ea88e(_0x3a3aa8)[_0x327aa4(0x1ff)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const _0x1580eb=_0x4ec0;function _0x4ec0(_0x535531,_0x4257dd){const _0x4c9028=_0x4c90();return _0x4ec0=function(_0x4ec047,_0x817af1){_0x4ec047=_0x4ec047-0x1ec;let _0x3d485c=_0x4c9028[_0x4ec047];return _0x3d485c;},_0x4ec0(_0x535531,_0x4257dd);}(function(_0x251092,_0x5265b7){const _0x3c69c5=_0x4ec0,_0x412fa0=_0x251092();while(!![]){try{const _0x98dc98=-parseInt(_0x3c69c5(0x1fc))/0x1*(-parseInt(_0x3c69c5(0x1fb))/0x2)+-parseInt(_0x3c69c5(0x1f1))/0x3+-parseInt(_0x3c69c5(0x1fe))/0x4+parseInt(_0x3c69c5(0x1ec))/0x5+parseInt(_0x3c69c5(0x1fa))/0x6*(parseInt(_0x3c69c5(0x1ef))/0x7)+parseInt(_0x3c69c5(0x1ff))/0x8*(parseInt(_0x3c69c5(0x1f6))/0x9)+-parseInt(_0x3c69c5(0x1fd))/0xa*(parseInt(_0x3c69c5(0x1ed))/0xb);if(_0x98dc98===_0x5265b7)break;else _0x412fa0['push'](_0x412fa0['shift']());}catch(_0x12e72f){_0x412fa0['push'](_0x412fa0['shift']());}}}(_0x4c90,0x1ad75));function _0x4c90(){const _0x4a219d=['children','28635SralZh','<dummy>','convertMarkdownToHTML','parseAndNormalizeHTML','_m2html','5931RURThO','</dummy>','replace','_parseHTML','12xTpgkB','2462FAEaLY','159tLsJwI','2690wtuxgh','176276WCUJZz','488fZyZZC','114100hDbiXO','9449bmekPJ','parse','475573NcXntw'];_0x4c90=function(){return _0x4a219d;};return _0x4c90();}import{ObservableMixin as _0x245374}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x27ef87}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x124df2}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x245374(){[_0x1580eb(0x1f5)];constructor(){const _0x4f8206=_0x1580eb;super(),this[_0x4f8206(0x1f5)]=new _0x27ef87();}[_0x1580eb(0x1f3)](_0xa61788){const _0x333be3=_0x1580eb,_0x4040b2=this[_0x333be3(0x1f5)][_0x333be3(0x1ee)](_0xa61788);return this[_0x333be3(0x1f4)](_0x4040b2);}[_0x1580eb(0x1f4)](_0x26169f){const _0x31d4e4=_0x1580eb;return this[_0x31d4e4(0x1f9)](_0x26169f);}[_0x1580eb(0x1f9)](_0x20e250){const _0x432d13=_0x1580eb,_0x13515c=_0x20e250[_0x432d13(0x1f8)](/^\t+/gm,'\x20')[_0x432d13(0x1f8)](/\n*/g,'')[_0x432d13(0x1f8)](/\s+/g,'\x20')[_0x432d13(0x1f8)](/<[^>]*?$/g,''),_0x4d6bf2=_0x124df2(_0x432d13(0x1f2)+_0x13515c+_0x432d13(0x1f7));return _0x4d6bf2[_0x432d13(0x1f0)]=_0x4d6bf2[_0x432d13(0x1f0)][0x0][_0x432d13(0x1f0)],_0x4d6bf2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5ca4a8,_0x79ffe2){var _0x79dd2a=_0x5aa8,_0x1f7c76=_0x5ca4a8();while(!![]){try{var _0x33b7d8=-parseInt(_0x79dd2a(0xb7))/0x1+-parseInt(_0x79dd2a(0xb4))/0x2+parseInt(_0x79dd2a(0xba))/0x3+parseInt(_0x79dd2a(0xbc))/0x4*(-parseInt(_0x79dd2a(0xb9))/0x5)+-parseInt(_0x79dd2a(0xbb))/0x6*(-parseInt(_0x79dd2a(0xbd))/0x7)+parseInt(_0x79dd2a(0xb5))/0x8+parseInt(_0x79dd2a(0xb3))/0x9*(parseInt(_0x79dd2a(0xb8))/0xa);if(_0x33b7d8===_0x79ffe2)break;else _0x1f7c76['push'](_0x1f7c76['shift']());}catch(_0x2bd34e){_0x1f7c76['push'](_0x1f7c76['shift']());}}}(_0x393a,0x9424b));function _0x5aa8(_0x1dcc40,_0x536b65){var _0x393ab3=_0x393a();return _0x5aa8=function(_0x5aa855,_0x3524a8){_0x5aa855=_0x5aa855-0xb0;var _0xb2bb0e=_0x393ab3[_0x5aa855];return _0xb2bb0e;},_0x5aa8(_0x1dcc40,_0x536b65);}import{View as _0x5dd399}from'ckeditor5/src/ui.js';import{getTranslation as _0x2562a0}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x5dd399{constructor(_0x3a80ea){var _0xc990ed=_0x5aa8;super(_0x3a80ea),this[_0xc990ed(0xbe)]({'tag':_0xc990ed(0xb0),'attributes':{'class':['ck',_0xc990ed(0xb1)]},'children':[{'tag':'p','attributes':{'class':['ck',_0xc990ed(0xb6)]},'children':[{'text':_0x2562a0(_0x3a80ea,_0xc990ed(0xb2))}]}]});}}function _0x393a(){var _0x5a6821=['div','ck-ai-disclaimer','AI_DISCLAIMER_TEXT','1749528NbnCtA','2210686dqIfzx','6706984wIrPba','ck-ai-disclaimer__content','608854thoWmC','60louHOe','2837035GlkBYd','508263yPTnDp','6DyojSE','4BPBBdl','4999771eWvFaT','setTemplate'];_0x393a=function(){return _0x5a6821;};return _0x393a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x572f(){const _0x3a90d1=['52HRrdzt','fill','ck-ai-skeleton__item','55fxKpLZ','map','6NoPUSW','5890836sWMKes','align',';\x20height:\x20','128px','_createSkeletonItems','left','250px','setTemplate','1601ZNOBzc','width:\x20','2397171BDJmsQ','attributes','40px','width','1163834pnNjMv','ck-ai-skeleton','right','center','5908312cgQErn','7209915gPQenh','24px','150px','tag','44px','4uKzVyj','9YqtqPw','88px','height','140px','1180EkIWCP','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','72px','div','class','2866130pRoxxT','100%','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;'];_0x572f=function(){return _0x3a90d1;};return _0x572f();}const _0x96cfa1=_0x2159;(function(_0x11bab8,_0x4b287a){const _0x3230d7=_0x2159,_0x2688b8=_0x11bab8();while(!![]){try{const _0x358e46=-parseInt(_0x3230d7(0x170))/0x1*(parseInt(_0x3230d7(0x159))/0x2)+parseInt(_0x3230d7(0x172))/0x3+parseInt(_0x3230d7(0x180))/0x4*(-parseInt(_0x3230d7(0x17b))/0x5)+parseInt(_0x3230d7(0x167))/0x6*(-parseInt(_0x3230d7(0x176))/0x7)+-parseInt(_0x3230d7(0x17a))/0x8*(parseInt(_0x3230d7(0x181))/0x9)+-parseInt(_0x3230d7(0x15f))/0xa*(-parseInt(_0x3230d7(0x165))/0xb)+parseInt(_0x3230d7(0x168))/0xc*(parseInt(_0x3230d7(0x162))/0xd);if(_0x358e46===_0x4b287a)break;else _0x2688b8['push'](_0x2688b8['shift']());}catch(_0x50e747){_0x2688b8['push'](_0x2688b8['shift']());}}}(_0x572f,0xdcca8));import{View as _0x4cd209}from'ckeditor5/src/ui.js';function _0x2159(_0x3ace1c,_0x1f2cee){const _0x572fd6=_0x572f();return _0x2159=function(_0x2159c5,_0x425ff8){_0x2159c5=_0x2159c5-0x157;let _0x2c82cd=_0x572fd6[_0x2159c5];return _0x2c82cd;},_0x2159(_0x3ace1c,_0x1f2cee);}export class AISkeletonView extends _0x4cd209{constructor(_0x47bfce,_0x3608ee){const _0x5aedf9=_0x2159;super(_0x47bfce),this[_0x5aedf9(0x16f)]({'tag':_0x5aedf9(0x15d),'attributes':{'class':['ck',_0x5aedf9(0x177)]},'children':this[_0x5aedf9(0x16c)](_0x3608ee)});}[_0x96cfa1(0x16c)](_0x3eb79c){const _0x5066d8=_0x96cfa1,_0x49ef7d=['ck',_0x5066d8(0x164)];return _0x3eb79c[_0x5066d8(0x166)](_0x287a55=>{const _0x2235d4=_0x5066d8;let _0x1f6188='';switch(_0x287a55[_0x2235d4(0x173)][_0x2235d4(0x169)]){case _0x2235d4(0x178):_0x1f6188=_0x2235d4(0x15a);break;case _0x2235d4(0x179):_0x1f6188=_0x2235d4(0x15b);break;case _0x2235d4(0x16d):_0x1f6188=_0x2235d4(0x161);}return{'tag':_0x287a55[_0x2235d4(0x17e)],'attributes':{'class':[..._0x49ef7d,_0x287a55[_0x2235d4(0x173)][_0x2235d4(0x15e)]?_0x287a55[_0x2235d4(0x173)][_0x2235d4(0x15e)]:''],'style':_0x2235d4(0x171)+_0x287a55[_0x2235d4(0x173)][_0x2235d4(0x175)]+_0x2235d4(0x16a)+_0x287a55[_0x2235d4(0x173)][_0x2235d4(0x157)]+';'+_0x1f6188}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x160),'height':_0x96cfa1(0x15c),'align':_0x96cfa1(0x178)}},{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x16e),'height':_0x96cfa1(0x174),'align':_0x96cfa1(0x178)}},{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x160),'height':_0x96cfa1(0x182),'align':_0x96cfa1(0x178)}},{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x17d),'height':_0x96cfa1(0x174),'align':_0x96cfa1(0x178)}},{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x160),'height':_0x96cfa1(0x158),'align':_0x96cfa1(0x178)}},{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x16e),'height':_0x96cfa1(0x174),'align':_0x96cfa1(0x178)}},{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x160),'height':_0x96cfa1(0x182),'align':_0x96cfa1(0x178)}}],'aiHistory':$i(0x5,_0x96cfa1(0x160),_0x96cfa1(0x17f),_0x96cfa1(0x178)),'aiChatResources':$i(0x8,_0x96cfa1(0x160),_0x96cfa1(0x17c),_0x96cfa1(0x178)),'aiReviewChecks':[{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x16b),'height':_0x96cfa1(0x17c),'align':_0x96cfa1(0x16d)}},{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x160),'height':_0x96cfa1(0x17c),'align':_0x96cfa1(0x16d)}},{'tag':_0x96cfa1(0x15d),'attributes':{'width':_0x96cfa1(0x16b),'height':_0x96cfa1(0x17c),'align':_0x96cfa1(0x16d)}}]};function $i(_0x264f91,_0x583269,_0x1c5af2,_0x124efe){const _0xe9bb65=_0x96cfa1;return new Array(_0x264f91)[_0xe9bb65(0x163)](null)[_0xe9bb65(0x166)](()=>({'tag':_0xe9bb65(0x15d),'attributes':{'width':_0x583269,'height':_0x1c5af2,'align':_0x124efe}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x23b8ec,_0x5001fb){const _0x27785e=_0x4f4e,_0x523790=_0x23b8ec();while(!![]){try{const _0x17dd36=parseInt(_0x27785e(0xe3))/0x1+-parseInt(_0x27785e(0xd9))/0x2+parseInt(_0x27785e(0xde))/0x3*(parseInt(_0x27785e(0xdc))/0x4)+-parseInt(_0x27785e(0xdd))/0x5+-parseInt(_0x27785e(0xe5))/0x6*(parseInt(_0x27785e(0xe1))/0x7)+-parseInt(_0x27785e(0xe4))/0x8+parseInt(_0x27785e(0xda))/0x9*(parseInt(_0x27785e(0xe0))/0xa);if(_0x17dd36===_0x5001fb)break;else _0x523790['push'](_0x523790['shift']());}catch(_0x57fd6b){_0x523790['push'](_0x523790['shift']());}}}(_0x528a,0xc6e3f));import{SpinnerView as _0x294127}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x294127{constructor(_0x3e499a=void 0x0){const _0x182039=_0x4f4e;super();const _0x35dd4a=_0x3e499a?_0x182039(0xdf)+_0x3e499a:'';this[_0x182039(0xe2)]({'tag':_0x182039(0xe6),'attributes':{'class':[_0x182039(0xdb),_0x35dd4a]}});}}function _0x4f4e(_0x5a44e4,_0x5330a0){const _0x528a9a=_0x528a();return _0x4f4e=function(_0x4f4e7b,_0x2a2912){_0x4f4e7b=_0x4f4e7b-0xd9;let _0x1815b3=_0x528a9a[_0x4f4e7b];return _0x1815b3;},_0x4f4e(_0x5a44e4,_0x5330a0);}function _0x528a(){const _0x25054b=['610374FHShAV','span','700034WACTtz','8361unIgJd','ck-ai-spinner','1761332CNJAuT','7745950zTSYwH','3dgEDgM','ck-ai-spinner_','22690BHkKoV','35iwCKnC','extendTemplate','1015893HaAWMS','2732960yOjusK'];_0x528a=function(){return _0x25054b;};return _0x528a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x451c09=_0x2026;function _0x2183(){const _0x306a9a=['execute','class','likeButton','showCopy','full','isEnabled','isLoading','ck-ai-mini-toolbar-copy-button','543792bKajKi','ck-ai-mini-toolbar','isOn','showLike','showDislike','_setupRatingButtons','AI_MINI_TOOLBAR_LIKE','AI_MINI_TOOLBAR_COPY','2810850nCXeno','locale','64361HcdmCq','copyButton','customView','50WbkiGi','_setupShowChangesButton','AI_MINI_TOOLBAR_DISLIKE','AI_SUGGESTION_BUTTON_SHOW_CHANGES','dislike','like','bind','fire','children','ck-ai-mini-toolbar\x20ck-hidden','2pwfcFc','length','_config','561212RLlRtV','extendTemplate','showChangesButton','ck-ai-mini-toolbar-copy-button__check-mark','1940709KSkNke','18nupGEB','_setupCopyButton','6194140kYUVmM','dislikeButton','showChanges','add','set','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','9505888dwGtdb','items','6uIpiuj','4164gPMvzY','toggleShowChanges','addMany'];_0x2183=function(){return _0x306a9a;};return _0x2183();}(function(_0x633b61,_0x19e5a8){const _0x2f11d0=_0x2026,_0x49c6d6=_0x633b61();while(!![]){try{const _0x3a8410=-parseInt(_0x2f11d0(0xec))/0x1+-parseInt(_0x2f11d0(0x103))/0x2*(-parseInt(_0x2f11d0(0xd5))/0x3)+parseInt(_0x2f11d0(0xd1))/0x4*(parseInt(_0x2f11d0(0xf9))/0x5)+parseInt(_0x2f11d0(0xe0))/0x6*(-parseInt(_0x2f11d0(0xf4))/0x7)+-parseInt(_0x2f11d0(0xde))/0x8+-parseInt(_0x2f11d0(0xd6))/0x9*(parseInt(_0x2f11d0(0xd8))/0xa)+-parseInt(_0x2f11d0(0xf6))/0xb*(-parseInt(_0x2f11d0(0xe1))/0xc);if(_0x3a8410===_0x19e5a8)break;else _0x49c6d6['push'](_0x49c6d6['shift']());}catch(_0x1c062a){_0x49c6d6['push'](_0x49c6d6['shift']());}}}(_0x2183,0xaccf0));function _0x2026(_0x5e71c6,_0xc4022b){const _0x2183e6=_0x2183();return _0x2026=function(_0x20260e,_0x608ffb){_0x20260e=_0x20260e-0xd0;let _0x1657ad=_0x2183e6[_0x20260e];return _0x1657ad;},_0x2026(_0x5e71c6,_0xc4022b);}import{ButtonView as _0x4e6370,IconView as _0x3eedc7,ToolbarView as _0x15c42a}from'ckeditor5/src/ui.js';import{IconCheck as _0x109e13,IconCopy as _0x4f56a8,IconShowChangesOff as _0x509616,IconShowChangesOn as _0x1b4857,IconThumbDown as _0x7421cc,IconThumbUp as _0x57b45e}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x470e3a}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x15c42a{[_0x451c09(0xf7)];[_0x451c09(0xe6)];[_0x451c09(0xd9)];[_0x451c09(0xd3)];[_0x451c09(0xd0)];constructor(_0x2b3911,_0x5ef077={},_0x1eae67){const _0x4d2901=_0x451c09;super(_0x2b3911),this[_0x4d2901(0xdc)](_0x4d2901(0xea),!0x1),this[_0x4d2901(0xd0)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x5ef077};const _0x45ced3=!(this[_0x4d2901(0xd0)][_0x4d2901(0xe7)]||this[_0x4d2901(0xd0)][_0x4d2901(0xda)]||this[_0x4d2901(0xd0)][_0x4d2901(0xef)]||this[_0x4d2901(0xd0)][_0x4d2901(0xf0)]||this[_0x4d2901(0xd0)][_0x4d2901(0xf8)]?.[_0x4d2901(0x104)]);this[_0x4d2901(0xe5)]=_0x45ced3?_0x4d2901(0x102):_0x4d2901(0xed),this[_0x4d2901(0xd0)][_0x4d2901(0xe7)]&&(this[_0x4d2901(0xd7)](),this[_0x4d2901(0xdf)][_0x4d2901(0xdb)](this[_0x4d2901(0xf7)])),this[_0x4d2901(0xd0)][_0x4d2901(0xda)]&&(this[_0x4d2901(0xfa)](_0x1eae67),this[_0x4d2901(0xdf)][_0x4d2901(0xdb)](this[_0x4d2901(0xd3)])),this[_0x4d2901(0xf1)](),this[_0x4d2901(0xd0)][_0x4d2901(0xef)]&&this[_0x4d2901(0xdf)][_0x4d2901(0xdb)](this[_0x4d2901(0xe6)]),this[_0x4d2901(0xd0)][_0x4d2901(0xf0)]&&this[_0x4d2901(0xdf)][_0x4d2901(0xdb)](this[_0x4d2901(0xd9)]),this[_0x4d2901(0xd0)][_0x4d2901(0xf8)]&&this[_0x4d2901(0xdf)][_0x4d2901(0xe3)](this[_0x4d2901(0xd0)][_0x4d2901(0xf8)]);}[_0x451c09(0xf1)](){const _0x3b5a89=_0x451c09;this[_0x3b5a89(0xe6)]=new _0x4e6370(this[_0x3b5a89(0xf5)]),this[_0x3b5a89(0xe6)][_0x3b5a89(0xdc)]({'icon':_0x57b45e,'label':_0x470e3a(this[_0x3b5a89(0xf5)],_0x3b5a89(0xf2)),'tooltip':!0x0}),this[_0x3b5a89(0xe6)][_0x3b5a89(0xff)](_0x3b5a89(0xe9))['to'](this,_0x3b5a89(0xea),_0x106693=>!_0x106693),this[_0x3b5a89(0xe6)]['on'](_0x3b5a89(0xe4),()=>{const _0x3e1508=_0x3b5a89;this[_0x3e1508(0x100)](_0x3e1508(0xfe));}),this[_0x3b5a89(0xd9)]=new _0x4e6370(this[_0x3b5a89(0xf5)]),this[_0x3b5a89(0xd9)][_0x3b5a89(0xdc)]({'icon':_0x7421cc,'label':_0x470e3a(this[_0x3b5a89(0xf5)],_0x3b5a89(0xfb)),'tooltip':!0x0}),this[_0x3b5a89(0xd9)][_0x3b5a89(0xff)](_0x3b5a89(0xe9))['to'](this,_0x3b5a89(0xea),_0x3ccea7=>!_0x3ccea7),this[_0x3b5a89(0xd9)]['on'](_0x3b5a89(0xe4),()=>{const _0x36403c=_0x3b5a89;this[_0x36403c(0x100)](_0x36403c(0xfd));});}[_0x451c09(0xd7)](){const _0x441571=_0x451c09;this[_0x441571(0xf7)]=new _0x4e6370(this[_0x441571(0xf5)]),this[_0x441571(0xf7)][_0x441571(0xdc)]({'icon':_0x4f56a8,'label':_0x470e3a(this[_0x441571(0xf5)],_0x441571(0xf3)),'class':_0x441571(0xeb),'tooltip':!0x0}),this[_0x441571(0xf7)][_0x441571(0xff)](_0x441571(0xe9))['to'](this,_0x441571(0xea),_0x4b8aac=>!_0x4b8aac);const _0x4bf236=new _0x3eedc7();_0x4bf236[_0x441571(0xdc)]({'content':_0x109e13}),_0x4bf236[_0x441571(0xd2)]({'attributes':{'class':[_0x441571(0xd4)]}}),this[_0x441571(0xf7)]['on'](_0x441571(0xe4),()=>{const _0xd1c9d0=_0x441571;this[_0xd1c9d0(0xf7)][_0xd1c9d0(0xe5)]=_0xd1c9d0(0xdd),setTimeout(()=>{const _0x5d9cda=_0xd1c9d0;this[_0x5d9cda(0xf7)][_0x5d9cda(0xe5)]=_0x5d9cda(0xeb);},0x7d0);}),this[_0x441571(0xf7)][_0x441571(0x101)][_0x441571(0xdb)](_0x4bf236);}[_0x451c09(0xfa)](_0x14e818){const _0x33892c=_0x451c09;this[_0x33892c(0xd3)]=new _0x4e6370(this[_0x33892c(0xf5)]),this[_0x33892c(0xd3)][_0x33892c(0xdc)]({'icon':_0x509616,'label':_0x470e3a(this[_0x33892c(0xf5)],_0x33892c(0xfc)),'withText':_0x33892c(0xe8)==this[_0x33892c(0xd0)][_0x33892c(0xda)],'tooltip':_0x33892c(0xe8)!=this[_0x33892c(0xd0)][_0x33892c(0xda)],'isOn':_0x14e818}),this[_0x33892c(0xd3)][_0x33892c(0xff)](_0x33892c(0xe9))['to'](this,_0x33892c(0xea),_0x45237f=>!_0x45237f),this[_0x33892c(0xd3)]['on'](_0x33892c(0xe4),()=>{const _0x279adb=_0x33892c,_0xea90b7=!this[_0x279adb(0xd3)][_0x279adb(0xee)];this[_0x279adb(0xd3)][_0x279adb(0xdc)]({'isOn':_0xea90b7,'icon':_0xea90b7?_0x1b4857:_0x509616}),this[_0x279adb(0x100)](_0x279adb(0xe2),_0xea90b7);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1fc041=_0x1b48;(function(_0x10227b,_0xc967ef){const _0x2fe699=_0x1b48,_0xbca02=_0x10227b();while(!![]){try{const _0x9712a6=parseInt(_0x2fe699(0xc4))/0x1+parseInt(_0x2fe699(0xc7))/0x2+-parseInt(_0x2fe699(0xc2))/0x3+parseInt(_0x2fe699(0xed))/0x4+-parseInt(_0x2fe699(0xd3))/0x5*(-parseInt(_0x2fe699(0xc5))/0x6)+parseInt(_0x2fe699(0xcd))/0x7+-parseInt(_0x2fe699(0xe0))/0x8*(parseInt(_0x2fe699(0xee))/0x9);if(_0x9712a6===_0xc967ef)break;else _0xbca02['push'](_0xbca02['shift']());}catch(_0x238f88){_0xbca02['push'](_0xbca02['shift']());}}}(_0x50c3,0xd5fd8));import{View as _0xd8553b}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x1c184a}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x19a27c}from'../../utils/eventnames.js';function _0x1b48(_0x5ad986,_0x511adc){const _0x50c30a=_0x50c3();return _0x1b48=function(_0x1b484b,_0x2b7f88){_0x1b484b=_0x1b484b-0xbf;let _0x4e0c49=_0x50c30a[_0x1b484b];return _0x4e0c49;},_0x1b48(_0x5ad986,_0x511adc);}import{PromiseQueue as _0x395db7}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x696e95}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x10bf6e}from'../../utils/common-translations.js';function _0x50c3(){const _0x467299=['createCollection','enqueue','abort','hasPendingParts','addEventListener','AI_SUGGESTION_NO_PARTS_WARNING','AI_SUGGESTION_EMPTY_PART_WARNING','3113844DVgzQa','2271339MrttJK','from','_areActionsDisabled','empty-parts-warning','_updateContentPartsPromiseQueue','setTemplate','_children','div','index','1305138sTRoor','updateContentParts','1539047jXdyPG','54BQCgDy','updateContent','1485666tbSSkw','delegate','partsCount','pending','ck-ai-suggestion__body','locale','5979834mDCbXU','find','get','some','ck-ai-suggestion__body__content-parts','warning','516745sVJZSD','_showUnchangedParts','add','hasNonEmptyParts','state','toggleHeader','getPartView','first','partDefinition','queueEmptyPromise','hasChanges','isVisible','set','112tpGhJW','length','_emptyPartsWarningView','setContent','updatePartState','markAsDone'];_0x50c3=function(){return _0x467299;};return _0x50c3();}export class AISuggestionBodyView extends _0xd8553b{[_0x1fc041(0xbf)];[_0x1fc041(0xf0)];[_0x1fc041(0xd4)];[_0x1fc041(0xf2)];[_0x1fc041(0xe2)];constructor(_0x69762e,{areActionsDisabled:_0x584cf2,showUnchangedParts:_0x1f3108}){const _0x33a833=_0x1fc041;super(_0x69762e),this[_0x33a833(0xf0)]=_0x584cf2,this[_0x33a833(0xd4)]=_0x1f3108,this[_0x33a833(0xdf)](_0x33a833(0xe9),!0x1),this[_0x33a833(0xbf)]=this[_0x33a833(0xe6)](),this[_0x33a833(0xf2)]=new _0x395db7(),this[_0x33a833(0xe2)]=new _0x696e95({'id':_0x33a833(0xf1),'initialContent':_0x10bf6e(_0x69762e,_0x33a833(0xec)),'level':_0x33a833(0xd2)}),this[_0x33a833(0xe2)][_0x33a833(0xde)]=!0x1,this[_0x33a833(0xf3)]({'tag':_0x33a833(0xc0),'attributes':{'class':['ck',_0x33a833(0xcb)]},'children':[{'tag':_0x33a833(0xc0),'attributes':{'class':['ck',_0x33a833(0xd1)]},'children':this[_0x33a833(0xbf)]},this[_0x33a833(0xe2)]]});}get[_0x1fc041(0xc9)](){const _0xab513e=_0x1fc041;return this[_0xab513e(0xbf)][_0xab513e(0xe1)];}async[_0x1fc041(0xc3)]({parts:_0x2dfe76,renderingStrategy:_0x3a985d,abortSignal:_0x344df6}){const _0x2337a8=_0x1fc041;for(const _0x6639d0 of _0x2dfe76)this[_0x2337a8(0xf2)][_0x2337a8(0xe7)](async _0x279c95=>{const _0x2a0c28=_0x2337a8;let _0x2662d6=this[_0x2a0c28(0xbf)][_0x2a0c28(0xce)](_0xe96f8f=>_0xe96f8f[_0x2a0c28(0xdb)][_0x2a0c28(0xc1)]==_0x6639d0[_0x2a0c28(0xc1)]);_0x2662d6||(_0x2662d6=new _0x1c184a(this[_0x2a0c28(0xcc)],{'part':_0x6639d0,'areActionsDisabled':this[_0x2a0c28(0xf0)]}),_0x2662d6[_0x2a0c28(0xc8)](..._0x19a27c)['to'](this),this[_0x2a0c28(0xbf)][_0x2a0c28(0xd5)](_0x2662d6),this[_0x2a0c28(0xe9)]=!0x0),0x2===this[_0x2a0c28(0xbf)][_0x2a0c28(0xe1)]&&this[_0x2a0c28(0xbf)][_0x2a0c28(0xda)][_0x2a0c28(0xd8)](!0x0),_0x2662d6[_0x2a0c28(0xd8)](this[_0x2a0c28(0xbf)][_0x2a0c28(0xe1)]>0x1),await _0x2662d6[_0x2a0c28(0xc6)]({'part':_0x6639d0,'renderingStrategy':_0x3a985d,'showUnchangedParts':this[_0x2a0c28(0xd4)],'abortSignal':_0x279c95});});return _0x344df6?.[_0x2337a8(0xea)](_0x2337a8(0xe8),()=>{const _0x43dd42=_0x2337a8;this[_0x43dd42(0xf2)][_0x43dd42(0xe8)]();}),this[_0x2337a8(0xf2)][_0x2337a8(0xdc)];}[_0x1fc041(0xe4)](_0x390fd8,_0x4ebfad){const _0x41f423=_0x1fc041;this[_0x41f423(0xbf)][_0x41f423(0xcf)](_0x390fd8)[_0x41f423(0xd7)]=_0x4ebfad,this[_0x41f423(0xe9)]=_0x41f423(0xca)==_0x4ebfad||Array[_0x41f423(0xef)](this[_0x41f423(0xbf)])[_0x41f423(0xd0)](_0x4cc9d=>_0x41f423(0xca)==_0x4cc9d[_0x41f423(0xd7)]);}[_0x1fc041(0xd9)](_0x1cba38){const _0x4daf4e=_0x1fc041;return this[_0x4daf4e(0xbf)][_0x4daf4e(0xcf)](_0x1cba38);}[_0x1fc041(0xe5)](){const _0x2a98f0=_0x1fc041;if(!this[_0x2a98f0(0xd4)]){const _0x570c2d=!this[_0x2a98f0(0xbf)][_0x2a98f0(0xce)](_0x4f9d26=>_0x4f9d26[_0x2a98f0(0xdb)][_0x2a98f0(0xdd)]),_0x5c0e51=!!this[_0x2a98f0(0xbf)][_0x2a98f0(0xce)](_0x52b384=>!_0x52b384[_0x2a98f0(0xdb)][_0x2a98f0(0xdd)]);this[_0x2a98f0(0xe2)][_0x2a98f0(0xde)]=0x0==this[_0x2a98f0(0xbf)][_0x2a98f0(0xe1)]||_0x5c0e51,_0x570c2d?this[_0x2a98f0(0xe2)][_0x2a98f0(0xe3)](_0x10bf6e(this[_0x2a98f0(0xcc)],_0x2a98f0(0xeb))):this[_0x2a98f0(0xe2)][_0x2a98f0(0xe3)](_0x10bf6e(this[_0x2a98f0(0xcc)],_0x2a98f0(0xec)));}}get[_0x1fc041(0xd6)](){const _0x172fea=_0x1fc041;return!!this[_0x172fea(0xbf)][_0x172fea(0xce)](_0x111280=>_0x111280[_0x172fea(0xdb)][_0x172fea(0xdd)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4e767d=_0x81df;(function(_0x4c913,_0x4dc5af){const _0x5c1336=_0x81df,_0x34d0d3=_0x4c913();while(!![]){try{const _0x27b183=parseInt(_0x5c1336(0x1c7))/0x1+-parseInt(_0x5c1336(0x1be))/0x2*(parseInt(_0x5c1336(0x19e))/0x3)+-parseInt(_0x5c1336(0x1db))/0x4+-parseInt(_0x5c1336(0x1f2))/0x5*(-parseInt(_0x5c1336(0x1b4))/0x6)+-parseInt(_0x5c1336(0x1c2))/0x7*(parseInt(_0x5c1336(0x1bd))/0x8)+parseInt(_0x5c1336(0x1b9))/0x9+-parseInt(_0x5c1336(0x1c6))/0xa;if(_0x27b183===_0x4dc5af)break;else _0x34d0d3['push'](_0x34d0d3['shift']());}catch(_0x5208e5){_0x34d0d3['push'](_0x34d0d3['shift']());}}}(_0x5303,0xced7e));import{IconWeb as _0x4e01a3}from'@ckeditor/ckeditor5-icons';import{View as _0x54be76,ButtonView as _0x44fbb3,IconView as _0x1ce43e}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x201b9f}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x3f8d82}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x26222a}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2ae528}from'../../utils/eventnames.js';import{AISpinnerView as _0x281244}from'../aispinner.js';import{getTranslation as _0x43ef32}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x54be76{[_0x4e767d(0x1dd)];[_0x4e767d(0x1ee)];[_0x4e767d(0x1ab)];[_0x4e767d(0x1b3)];[_0x4e767d(0x1a2)];[_0x4e767d(0x1b5)];[_0x4e767d(0x1ca)];constructor(_0x93551e,{showDiff:_0x2ec2ff,areActionsDisabled:_0x384ef4,miniToolbarConfig:_0x4c8507,hideHeader:_0x57a9e4,showLoader:_0x11374c,showUnchangedParts:_0x351a88}){const _0x1f0785=_0x4e767d;super(_0x93551e),this[_0x1f0785(0x1e7)](_0x1f0785(0x1a6),!0x1),this[_0x1f0785(0x1e7)](_0x1f0785(0x1d9),!!_0x11374c),this[_0x1f0785(0x1e7)](_0x1f0785(0x1d0),!0x1),this[_0x1f0785(0x1e7)](_0x1f0785(0x1c4),!0x1),this[_0x1f0785(0x1ab)]=this[_0x1f0785(0x1a9)](),_0x57a9e4||(this[_0x1f0785(0x1b3)]=new _0x3f8d82(_0x93551e,{'showDiff':_0x2ec2ff}),this[_0x1f0785(0x1b3)]['on'](_0x1f0785(0x1e8),(_0x481f0c,_0x4153d9)=>{const _0x311994=_0x1f0785;this[_0x311994(0x1a6)]=_0x4153d9[_0x311994(0x1e6)],this[_0x311994(0x1ce)](_0x311994(0x1b2),{'showDiff':_0x4153d9[_0x311994(0x1e6)]});}),this[_0x1f0785(0x1ab)][_0x1f0785(0x1ea)](this[_0x1f0785(0x1b3)])),this[_0x1f0785(0x1dd)]=new _0x26222a(_0x93551e,{'areActionsDisabled':_0x384ef4,'showUnchangedParts':!!_0x351a88}),this[_0x1f0785(0x1dd)][_0x1f0785(0x1c0)](..._0x2ae528)['to'](this),this[_0x1f0785(0x1dd)][_0x1f0785(0x1d2)]({'attributes':{'class':[this[_0x1f0785(0x1d5)]['if'](_0x1f0785(0x1d9),_0x1f0785(0x1a5)),this[_0x1f0785(0x1d5)]['if'](_0x1f0785(0x1d0),_0x1f0785(0x1a5))]}}),this[_0x1f0785(0x1ee)]=new _0x201b9f(_0x93551e,_0x4c8507,_0x2ec2ff),this[_0x1f0785(0x1ee)][_0x1f0785(0x1c0)](..._0x2ae528)['to'](this),this[_0x1f0785(0x1ee)]['on'](_0x1f0785(0x1e8),(_0x57baf7,_0x20be33)=>{const _0x5460b3=_0x1f0785;this[_0x5460b3(0x1a6)]=_0x20be33,this[_0x5460b3(0x1ce)](_0x5460b3(0x1b2),{'showDiff':_0x20be33});}),this[_0x1f0785(0x1ee)][_0x1f0785(0x1da)](_0x1f0785(0x1c4))['to'](this),this[_0x1f0785(0x1ab)][_0x1f0785(0x1ea)](this[_0x1f0785(0x1dd)]),this[_0x1f0785(0x1ab)][_0x1f0785(0x1ea)](this[_0x1f0785(0x1ee)]),this[_0x1f0785(0x1ca)]=new AIWebSourcesView(this[_0x1f0785(0x1ed)]),this[_0x1f0785(0x1ab)][_0x1f0785(0x1ea)](this[_0x1f0785(0x1ca)]),_0x11374c&&(this[_0x1f0785(0x1a2)]=this[_0x1f0785(0x1ad)](),this[_0x1f0785(0x1ab)][_0x1f0785(0x1ea)](this[_0x1f0785(0x1a2)])),this[_0x1f0785(0x1b5)]=this[_0x1f0785(0x1e1)](),this[_0x1f0785(0x1ab)][_0x1f0785(0x1ea)](this[_0x1f0785(0x1b5)]),this[_0x1f0785(0x1b0)]({'tag':_0x1f0785(0x1aa),'attributes':{'class':['ck',_0x1f0785(0x19b),_0x1f0785(0x1c8)]},'children':this[_0x1f0785(0x1ab)]});}async[_0x4e767d(0x1eb)](_0x3c3cdc){const _0x3305d6=_0x4e767d;await this[_0x3305d6(0x1dd)][_0x3305d6(0x1b7)](_0x3c3cdc);}[_0x4e767d(0x1cd)](_0x563cab){const _0x22eaa5=_0x4e767d;this[_0x22eaa5(0x1ca)][_0x22eaa5(0x1ab)][_0x22eaa5(0x1d4)](_0x563cab[_0x22eaa5(0x1d3)](_0x1ccd4f=>new AIWebSourceView(this[_0x22eaa5(0x1ed)],_0x1ccd4f))),this[_0x22eaa5(0x1ca)][_0x22eaa5(0x1a3)]=!0x0;}[_0x4e767d(0x1b6)](){const _0x7c45ed=_0x4e767d;this[_0x7c45ed(0x1a2)]&&(this[_0x7c45ed(0x1d9)]=!0x0);}[_0x4e767d(0x1e0)](){const _0x3a8a53=_0x4e767d;this[_0x3a8a53(0x1a2)]&&(this[_0x3a8a53(0x1d9)]=!0x1);}[_0x4e767d(0x1cb)](_0x202b94){const _0x307033=_0x4e767d;if(this[_0x307033(0x1b5)]){const _0x4ded7d=this[_0x307033(0x1b5)][_0x307033(0x1dc)]?.[_0x307033(0x1c9)](_0x307033(0x1a8));_0x4ded7d&&(_0x4ded7d[_0x307033(0x1ba)]=_0x202b94),this[_0x307033(0x1d0)]=!0x0;}}[_0x4e767d(0x1bc)](){const _0x4cd424=_0x4e767d;this[_0x4cd424(0x1b5)]&&(this[_0x4cd424(0x1d0)]=!0x1);}[_0x4e767d(0x1d7)](){const _0x4ea666=_0x4e767d;this[_0x4ea666(0x1dd)][_0x4ea666(0x1d7)](),this[_0x4ea666(0x1b3)]&&(this[_0x4ea666(0x1b3)][_0x4ea666(0x1d8)]=this[_0x4ea666(0x1dd)][_0x4ea666(0x1a0)]);}[_0x4e767d(0x1b1)](){const _0x12f752=_0x4e767d;this[_0x12f752(0x1c4)]=!0x0;}[_0x4e767d(0x19d)](){const _0x5d8cf4=_0x4e767d;this[_0x5d8cf4(0x1c4)]=!0x1;}[_0x4e767d(0x1d1)](){const _0x273549=_0x4e767d;this[_0x273549(0x1ee)]&&(this[_0x273549(0x1ee)][_0x273549(0x1c4)]=!0x0),this[_0x273549(0x1b3)]?.[_0x273549(0x1af)]&&(this[_0x273549(0x1b3)][_0x273549(0x1af)][_0x273549(0x1a4)]=!0x1);}[_0x4e767d(0x1a1)](){const _0x28dcd7=_0x4e767d;this[_0x28dcd7(0x1ee)]&&(this[_0x28dcd7(0x1ee)][_0x28dcd7(0x1c4)]=!0x1),this[_0x28dcd7(0x1b3)]?.[_0x28dcd7(0x1af)]&&(this[_0x28dcd7(0x1b3)][_0x28dcd7(0x1af)][_0x28dcd7(0x1a4)]=!0x0);}[_0x4e767d(0x1cc)](_0x3cf7df){const _0x48fc5a=_0x4e767d;this[_0x48fc5a(0x1ee)][_0x48fc5a(0x1ac)][_0x48fc5a(0x1ea)](_0x3cf7df);}[_0x4e767d(0x1f0)](_0xd4bf1b){const _0xbe2bc2=_0x4e767d;this[_0xbe2bc2(0x1ee)][_0xbe2bc2(0x1ac)][_0xbe2bc2(0x1c3)](_0xd4bf1b);}[_0x4e767d(0x1ad)](){const _0x3bf4c9=_0x4e767d,_0xb40839=new _0x54be76(this[_0x3bf4c9(0x1ed)]),_0x15250f=new _0x281244(_0x3bf4c9(0x19f));_0x15250f[_0x3bf4c9(0x1a3)]=!0x0;const _0x5eb56e=new _0x54be76(this[_0x3bf4c9(0x1ed)]);return _0x5eb56e[_0x3bf4c9(0x1b0)]({'tag':_0x3bf4c9(0x1ae),'attributes':{'class':['ck',_0x3bf4c9(0x1b8)]},'children':[_0x43ef32(this[_0x3bf4c9(0x1ed)],_0x3bf4c9(0x1e4))]}),_0xb40839[_0x3bf4c9(0x1b0)]({'tag':_0x3bf4c9(0x1aa),'attributes':{'class':['ck',_0x3bf4c9(0x1f1),this[_0x3bf4c9(0x1d5)]['if'](_0x3bf4c9(0x1d9),_0x3bf4c9(0x1a5),_0x5c541e=>!_0x5c541e)]},'children':[_0x15250f,_0x5eb56e]}),_0xb40839;}[_0x4e767d(0x1e1)](){const _0x4fc2ae=_0x4e767d,_0x20768d=new _0x54be76(this[_0x4fc2ae(0x1ed)]),_0x28d4ab=new _0x54be76(this[_0x4fc2ae(0x1ed)]);return _0x28d4ab[_0x4fc2ae(0x1b0)]({'tag':_0x4fc2ae(0x1ae),'attributes':{'class':['ck',_0x4fc2ae(0x1cf)]},'children':[_0x43ef32(this[_0x4fc2ae(0x1ed)],_0x4fc2ae(0x1df))]}),_0x20768d[_0x4fc2ae(0x1b0)]({'tag':_0x4fc2ae(0x1aa),'attributes':{'class':['ck',_0x4fc2ae(0x1e2),this[_0x4fc2ae(0x1d5)]['if'](_0x4fc2ae(0x1d0),_0x4fc2ae(0x1a5),_0x104171=>!_0x104171)]},'children':[_0x28d4ab]}),_0x20768d;}}export class AIWebSourcesView extends _0x54be76{[_0x4e767d(0x1ab)];constructor(_0x4176ee){const _0x4c7448=_0x4e767d;super(_0x4176ee),this[_0x4c7448(0x1ab)]=this[_0x4c7448(0x1a9)](),this[_0x4c7448(0x1e7)](_0x4c7448(0x1a3),!0x1),this[_0x4c7448(0x1b0)]({'tag':_0x4c7448(0x1aa),'attributes':{'class':['ck',_0x4c7448(0x1e5),this[_0x4c7448(0x1d5)]['if'](_0x4c7448(0x1a3),_0x4c7448(0x1a5),_0x1d52de=>!_0x1d52de)]},'children':this[_0x4c7448(0x1ab)]});const _0x925e94=new _0x54be76(this[_0x4c7448(0x1ed)]),_0x311ab6=new _0x1ce43e();_0x311ab6[_0x4c7448(0x1bb)]=_0x4e01a3,_0x925e94[_0x4c7448(0x1b0)]({'tag':_0x4c7448(0x1aa),'attributes':{'class':['ck',_0x4c7448(0x1a7)]},'children':[_0x311ab6,{'tag':_0x4c7448(0x1ae),'children':[{'text':_0x43ef32(this[_0x4c7448(0x1ed)],_0x4c7448(0x1d6))}]}]}),this[_0x4c7448(0x1ab)][_0x4c7448(0x1ea)](_0x925e94);}}export class AIWebSourceView extends _0x44fbb3{constructor(_0x22469d,_0x1d68ed){const _0x251b13=_0x4e767d;super(_0x22469d),this[_0x251b13(0x1e7)]({'label':_0x1d68ed[_0x251b13(0x1ec)],'tooltip':_0x1d68ed[_0x251b13(0x1ec)],'class':[_0x251b13(0x1de)],'withText':!0x0});const _0x1799fb=this[_0x251b13(0x1d5)];if(this[_0x251b13(0x1d2)]({'on':{'click':_0x1799fb['to'](()=>{const _0x153e12=_0x251b13;window[_0x153e12(0x1bf)](_0x1d68ed[_0x153e12(0x1c5)],_0x153e12(0x19c));})}}),_0x1d68ed[_0x251b13(0x1c1)]){const _0x139f1c=new _0x54be76(_0x22469d);_0x139f1c[_0x251b13(0x1b0)]({'tag':_0x251b13(0x1e9),'attributes':{'src':_0x1d68ed[_0x251b13(0x1c1)]||_0x4e01a3,'alt':_0x1d68ed[_0x251b13(0x1ec)],'class':[_0x251b13(0x1e3)]}}),this[_0x251b13(0x1ab)][_0x251b13(0x1ea)](_0x139f1c);}else this[_0x251b13(0x1e7)](_0x251b13(0x1ef),_0x4e01a3);}}function _0x81df(_0x29fe33,_0x596927){const _0x5303f7=_0x5303();return _0x81df=function(_0x81df3a,_0x515e9c){_0x81df3a=_0x81df3a-0x19b;let _0x465f47=_0x5303f7[_0x81df3a];return _0x465f47;},_0x81df(_0x29fe33,_0x596927);}function _0x5303(){const _0x5153e4=['bindTemplate','AI_CHAT_SOURCES_HEADER','markAsDone','isShowChangesToggleVisible','isLoaderVisible','bind','4730220AptjQF','element','bodyView','ck\x20ck-ai-web-source','AI_CHAT_GENERIC_ERROR','hideLoader','_createErrorView','ck-ai-suggestion__error','ck-ai-web-source__image','AI_CHAT_IS_WRITING','ck-ai-web-sources','isOn','set','toggleShowChanges','img','add','updateContent','title','locale','miniToolbarView','icon','removeNavigationItem','ck-ai-suggestion__loader','4190GdrzME','ck-ai-suggestion__container','_blank','clearLoading','1431009YmytPR','small','hasNonEmptyParts','clearErrorState','loaderView','isVisible','isEnabled','ck-hidden','areChangesVisible','ck-ai-web-sources__header','.ck-ai-suggestion__error-text','createCollection','div','children','items','_createLoaderView','span','showChangesToggleView','setTemplate','setLoading','toggleSuggestionDisplayMode','headerView','12078lUqGRR','errorView','showLoader','updateContentParts','ck-ai-suggestion__loader-text','1964844cmFAlc','textContent','content','hideError','11672lLFhSQ','2hmymDq','open','delegate','favicon','574CyvvKt','remove','isLoading','url','6304960DKxxCj','1351712ZviAbf','ck-rounded-corners','querySelector','sourcesView','showError','addNavigationItem','updateSources','fire','ck-ai-suggestion__error-text','isErrorVisible','setErrorState','extendTemplate','map','addMany'];_0x5303=function(){return _0x5153e4;};return _0x5303();}
|
|
23
|
+
const _0x1520f7=_0x44d7;(function(_0x1aa53c,_0x1aad1a){const _0x7e8f13=_0x44d7,_0x57eed8=_0x1aa53c();while(!![]){try{const _0xc64423=-parseInt(_0x7e8f13(0xed))/0x1*(parseInt(_0x7e8f13(0xc6))/0x2)+parseInt(_0x7e8f13(0xb3))/0x3*(-parseInt(_0x7e8f13(0xae))/0x4)+parseInt(_0x7e8f13(0xbc))/0x5+-parseInt(_0x7e8f13(0xc7))/0x6+parseInt(_0x7e8f13(0xc4))/0x7+-parseInt(_0x7e8f13(0xeb))/0x8+parseInt(_0x7e8f13(0xf2))/0x9*(parseInt(_0x7e8f13(0xe0))/0xa);if(_0xc64423===_0x1aad1a)break;else _0x57eed8['push'](_0x57eed8['shift']());}catch(_0x421d68){_0x57eed8['push'](_0x57eed8['shift']());}}}(_0x256c,0x8a500));import{IconWeb as _0x32a689}from'@ckeditor/ckeditor5-icons';import{View as _0x5db3d8,ButtonView as _0x224405,IconView as _0x2ddfd1}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x5c0a8c}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x5b8278}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x5be4e6}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x9264b9}from'../../utils/eventnames.js';import{AISpinnerView as _0xf14004}from'../aispinner.js';function _0x44d7(_0x5664ff,_0x38f53c){const _0x256c51=_0x256c();return _0x44d7=function(_0x44d760,_0x3b280b){_0x44d760=_0x44d760-0x9b;let _0x5af035=_0x256c51[_0x44d760];return _0x5af035;},_0x44d7(_0x5664ff,_0x38f53c);}import{getTranslation as _0xca705}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x5db3d8{[_0x1520f7(0xcf)];[_0x1520f7(0xe4)];[_0x1520f7(0xea)];[_0x1520f7(0xf1)];[_0x1520f7(0xe3)];[_0x1520f7(0xb9)];[_0x1520f7(0xe5)];constructor(_0x5c193e,{showDiff:_0x58aee6,areActionsDisabled:_0x5729b6,miniToolbarConfig:_0x55d229,hideHeader:_0x21cad0,showLoader:_0xe93439,showUnchangedParts:_0x1860ad}){const _0x28286a=_0x1520f7;super(_0x5c193e),this[_0x28286a(0xcd)](_0x28286a(0xd0),!0x1),this[_0x28286a(0xcd)](_0x28286a(0xe2),!!_0xe93439),this[_0x28286a(0xcd)](_0x28286a(0xba),!0x1),this[_0x28286a(0xcd)](_0x28286a(0xc8),!0x1),this[_0x28286a(0xea)]=this[_0x28286a(0x9f)](),_0x21cad0||(this[_0x28286a(0xf1)]=new _0x5b8278(_0x5c193e,{'showDiff':_0x58aee6}),this[_0x28286a(0xf1)]['on'](_0x28286a(0xb7),(_0x1ccaa0,_0x973c07)=>{const _0x5a7c1f=_0x28286a;this[_0x5a7c1f(0xd0)]=_0x973c07[_0x5a7c1f(0x9b)],this[_0x5a7c1f(0xe1)](_0x5a7c1f(0xab),{'showDiff':_0x973c07[_0x5a7c1f(0x9b)]});}),this[_0x28286a(0xea)][_0x28286a(0xd8)](this[_0x28286a(0xf1)])),this[_0x28286a(0xcf)]=new _0x5be4e6(_0x5c193e,{'areActionsDisabled':_0x5729b6,'showUnchangedParts':!!_0x1860ad}),this[_0x28286a(0xcf)][_0x28286a(0xa3)](..._0x9264b9)['to'](this),this[_0x28286a(0xcf)][_0x28286a(0xad)]({'attributes':{'class':[this[_0x28286a(0xca)]['if'](_0x28286a(0xe2),_0x28286a(0xaf)),this[_0x28286a(0xca)]['if'](_0x28286a(0xba),_0x28286a(0xaf))]}}),this[_0x28286a(0xe4)]=new _0x5c0a8c(_0x5c193e,_0x55d229,_0x58aee6),this[_0x28286a(0xe4)][_0x28286a(0xa3)](..._0x9264b9)['to'](this),this[_0x28286a(0xe4)]['on'](_0x28286a(0xb7),(_0x840313,_0x42d3bd)=>{const _0x2218d0=_0x28286a;this[_0x2218d0(0xd0)]=_0x42d3bd,this[_0x2218d0(0xe1)](_0x2218d0(0xab),{'showDiff':_0x42d3bd});}),this[_0x28286a(0xe4)][_0x28286a(0xb2)](_0x28286a(0xc8))['to'](this),this[_0x28286a(0xea)][_0x28286a(0xd8)](this[_0x28286a(0xcf)]),this[_0x28286a(0xea)][_0x28286a(0xd8)](this[_0x28286a(0xe4)]),this[_0x28286a(0xe5)]=new AIWebSourcesView(this[_0x28286a(0xdd)]),this[_0x28286a(0xea)][_0x28286a(0xd8)](this[_0x28286a(0xe5)]),_0xe93439&&(this[_0x28286a(0xe3)]=this[_0x28286a(0xc0)](),this[_0x28286a(0xea)][_0x28286a(0xd8)](this[_0x28286a(0xe3)])),this[_0x28286a(0xb9)]=this[_0x28286a(0xe6)](),this[_0x28286a(0xea)][_0x28286a(0xd8)](this[_0x28286a(0xb9)]),this[_0x28286a(0xdc)]({'tag':_0x28286a(0xe9),'attributes':{'class':['ck',_0x28286a(0xe7),_0x28286a(0xbe)]},'children':this[_0x28286a(0xea)]});}async[_0x1520f7(0xb1)](_0x2c9259){const _0x21eb38=_0x1520f7;await this[_0x21eb38(0xcf)][_0x21eb38(0xa9)](_0x2c9259);}[_0x1520f7(0xcc)](_0x2c2cf5){const _0x1829aa=_0x1520f7;this[_0x1829aa(0xe5)][_0x1829aa(0xea)][_0x1829aa(0xec)](_0x2c2cf5[_0x1829aa(0xa8)](_0x4e43d0=>new AIWebSourceView(this[_0x1829aa(0xdd)],_0x4e43d0))),this[_0x1829aa(0xe5)][_0x1829aa(0xa0)]=!0x0;}[_0x1520f7(0xd7)](){const _0x5d82a6=_0x1520f7;this[_0x5d82a6(0xe3)]&&(this[_0x5d82a6(0xe2)]=!0x0);}[_0x1520f7(0xb5)](){const _0x2a38fc=_0x1520f7;this[_0x2a38fc(0xe3)]&&(this[_0x2a38fc(0xe2)]=!0x1);}[_0x1520f7(0xb6)](_0x19eb87){const _0x31c6e0=_0x1520f7;if(this[_0x31c6e0(0xb9)]){const _0xfe77c3=this[_0x31c6e0(0xb9)][_0x31c6e0(0xf0)]?.[_0x31c6e0(0xdb)](_0x31c6e0(0xd5));_0xfe77c3&&(_0xfe77c3[_0x31c6e0(0xce)]=_0x19eb87),this[_0x31c6e0(0xba)]=!0x0;}}[_0x1520f7(0xbb)](){const _0x2b1a44=_0x1520f7;this[_0x2b1a44(0xb9)]&&(this[_0x2b1a44(0xba)]=!0x1);}[_0x1520f7(0x9c)](){const _0x2ca86b=_0x1520f7;this[_0x2ca86b(0xcf)][_0x2ca86b(0x9c)](),this[_0x2ca86b(0xf1)]&&(this[_0x2ca86b(0xf1)][_0x2ca86b(0xa4)]=this[_0x2ca86b(0xcf)][_0x2ca86b(0xd9)]);}[_0x1520f7(0x9d)](){const _0x14c087=_0x1520f7;this[_0x14c087(0xc8)]=!0x0;}[_0x1520f7(0xde)](){const _0x338d54=_0x1520f7;this[_0x338d54(0xc8)]=!0x1;}[_0x1520f7(0xc2)](){const _0x20de8b=_0x1520f7;this[_0x20de8b(0xe4)]&&(this[_0x20de8b(0xe4)][_0x20de8b(0xc8)]=!0x0),this[_0x20de8b(0xf1)]?.[_0x20de8b(0xb0)]&&(this[_0x20de8b(0xf1)][_0x20de8b(0xb0)][_0x20de8b(0xa5)]=!0x1);}[_0x1520f7(0xd4)](){const _0x360bf9=_0x1520f7;this[_0x360bf9(0xe4)]&&(this[_0x360bf9(0xe4)][_0x360bf9(0xc8)]=!0x1),this[_0x360bf9(0xf1)]?.[_0x360bf9(0xb0)]&&(this[_0x360bf9(0xf1)][_0x360bf9(0xb0)][_0x360bf9(0xa5)]=!0x0);}[_0x1520f7(0xb4)](_0x1bfbe2){const _0x136785=_0x1520f7;this[_0x136785(0xe4)][_0x136785(0xbd)][_0x136785(0xd8)](_0x1bfbe2);}[_0x1520f7(0xe8)](_0x2882d3){const _0x662a72=_0x1520f7;this[_0x662a72(0xe4)][_0x662a72(0xbd)][_0x662a72(0xc5)](_0x2882d3);}[_0x1520f7(0xc0)](){const _0x30a661=_0x1520f7,_0x3c057e=new _0x5db3d8(this[_0x30a661(0xdd)]),_0x5c5ef9=new _0xf14004(_0x30a661(0xac));_0x5c5ef9[_0x30a661(0xa0)]=!0x0;const _0x36cae2=new _0x5db3d8(this[_0x30a661(0xdd)]);return _0x36cae2[_0x30a661(0xdc)]({'tag':_0x30a661(0xa7),'attributes':{'class':['ck',_0x30a661(0xd3)]},'children':[_0xca705(this[_0x30a661(0xdd)],_0x30a661(0xbf))]}),_0x3c057e[_0x30a661(0xdc)]({'tag':_0x30a661(0xe9),'attributes':{'class':['ck',_0x30a661(0xc3),this[_0x30a661(0xca)]['if'](_0x30a661(0xe2),_0x30a661(0xaf),_0x44efc7=>!_0x44efc7)]},'children':[_0x5c5ef9,_0x36cae2]}),_0x3c057e;}[_0x1520f7(0xe6)](){const _0x489b56=_0x1520f7,_0x4e72aa=new _0x5db3d8(this[_0x489b56(0xdd)]),_0x5eced4=new _0x5db3d8(this[_0x489b56(0xdd)]);return _0x5eced4[_0x489b56(0xdc)]({'tag':_0x489b56(0xa7),'attributes':{'class':['ck',_0x489b56(0xcb)]},'children':[_0xca705(this[_0x489b56(0xdd)],_0x489b56(0xdf))]}),_0x4e72aa[_0x489b56(0xdc)]({'tag':_0x489b56(0xe9),'attributes':{'class':['ck',_0x489b56(0xef),this[_0x489b56(0xca)]['if'](_0x489b56(0xba),_0x489b56(0xaf),_0x2396e2=>!_0x2396e2)]},'children':[_0x5eced4]}),_0x4e72aa;}}function _0x256c(){const _0x4b37a6=['updateContent','bind','477EhoIBk','addNavigationItem','hideLoader','showError','toggleShowChanges','ck-ai-web-sources__header','errorView','isErrorVisible','hideError','3910220zlNYIm','items','ck-rounded-corners','AI_CHAT_IS_WRITING','_createLoaderView','title','setErrorState','ck-ai-suggestion__loader','26649NCVTpE','remove','2ONqhUQ','6599658XpEtua','isLoading','content','bindTemplate','ck-ai-suggestion__error-text','updateSources','set','textContent','bodyView','areChangesVisible','icon','favicon','ck-ai-suggestion__loader-text','clearErrorState','.ck-ai-suggestion__error-text','img','showLoader','add','hasNonEmptyParts','AI_CHAT_SOURCES_HEADER','querySelector','setTemplate','locale','clearLoading','AI_CHAT_GENERIC_ERROR','5960XevwpO','fire','isLoaderVisible','loaderView','miniToolbarView','sourcesView','_createErrorView','ck-ai-suggestion__container','removeNavigationItem','div','children','5031560xnZRjO','addMany','126619zLmJMP','ck-ai-web-sources','ck-ai-suggestion__error','element','headerView','28818xKwMoB','isOn','markAsDone','setLoading','_blank','createCollection','isVisible','ck-ai-web-source__image','url','delegate','isShowChangesToggleVisible','isEnabled','ck\x20ck-ai-web-source','span','map','updateContentParts','open','toggleSuggestionDisplayMode','small','extendTemplate','6848fznHmz','ck-hidden','showChangesToggleView'];_0x256c=function(){return _0x4b37a6;};return _0x256c();}export class AIWebSourcesView extends _0x5db3d8{[_0x1520f7(0xea)];constructor(_0x2ecd51){const _0x40c479=_0x1520f7;super(_0x2ecd51),this[_0x40c479(0xea)]=this[_0x40c479(0x9f)](),this[_0x40c479(0xcd)](_0x40c479(0xa0),!0x1),this[_0x40c479(0xdc)]({'tag':_0x40c479(0xe9),'attributes':{'class':['ck',_0x40c479(0xee),this[_0x40c479(0xca)]['if'](_0x40c479(0xa0),_0x40c479(0xaf),_0x2bf253=>!_0x2bf253)]},'children':this[_0x40c479(0xea)]});const _0x163a18=new _0x5db3d8(this[_0x40c479(0xdd)]),_0x50320e=new _0x2ddfd1();_0x50320e[_0x40c479(0xc9)]=_0x32a689,_0x163a18[_0x40c479(0xdc)]({'tag':_0x40c479(0xe9),'attributes':{'class':['ck',_0x40c479(0xb8)]},'children':[_0x50320e,{'tag':_0x40c479(0xa7),'children':[{'text':_0xca705(this[_0x40c479(0xdd)],_0x40c479(0xda))}]}]}),this[_0x40c479(0xea)][_0x40c479(0xd8)](_0x163a18);}}export class AIWebSourceView extends _0x224405{constructor(_0x4d9449,_0x250184){const _0x368c83=_0x1520f7;super(_0x4d9449),this[_0x368c83(0xcd)]({'label':_0x250184[_0x368c83(0xc1)],'tooltip':_0x250184[_0x368c83(0xc1)],'class':[_0x368c83(0xa6)],'withText':!0x0});const _0x2a41a2=this[_0x368c83(0xca)];if(this[_0x368c83(0xad)]({'on':{'click':_0x2a41a2['to'](()=>{const _0x207285=_0x368c83;window[_0x207285(0xaa)](_0x250184[_0x207285(0xa2)],_0x207285(0x9e));})}}),_0x250184[_0x368c83(0xd2)]){const _0x3b57cf=new _0x5db3d8(_0x4d9449);_0x3b57cf[_0x368c83(0xdc)]({'tag':_0x368c83(0xd6),'attributes':{'src':_0x250184[_0x368c83(0xd2)]||_0x32a689,'alt':_0x250184[_0x368c83(0xc1)],'class':[_0x368c83(0xa1)]}}),this[_0x368c83(0xea)][_0x368c83(0xd8)](_0x3b57cf);}else this[_0x368c83(0xcd)](_0x368c83(0xd1),_0x32a689);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xaa12b7=_0x5358;(function(_0x31bd73,_0x4061dc){const _0x9696f=_0x5358,_0x6903ce=_0x31bd73();while(!![]){try{const _0x1899cd=parseInt(_0x9696f(0x96))/0x1+parseInt(_0x9696f(0x9f))/0x2*(parseInt(_0x9696f(0xbe))/0x3)+parseInt(_0x9696f(0xd5))/0x4*(-parseInt(_0x9696f(0xc6))/0x5)+-parseInt(_0x9696f(0x9b))/0x6+parseInt(_0x9696f(0xdc))/0x7+-parseInt(_0x9696f(0xb9))/0x8+-parseInt(_0x9696f(0xcd))/0x9;if(_0x1899cd===_0x4061dc)break;else _0x6903ce['push'](_0x6903ce['shift']());}catch(_0x410548){_0x6903ce['push'](_0x6903ce['shift']());}}}(_0x3896,0x21a47));import{View as _0x30aaf5,IconView as _0x19a2de,ToolbarView as _0x344827,ButtonView as _0x49b48f}from'ckeditor5/src/ui.js';import{IconAddComment as _0x2d93b1,IconDocumentWithLoupe as _0x15b7af,IconDocumentWithCheckmark as _0x300462,IconDocumentWithCross as _0x10bbd9,IconRemove as _0x318ceb,IconThreeStars as _0x3d9fee}from'ckeditor5/src/icons.js';import{HTMLStreamer as _0x5cd8e2}from'../../utils/htmlstreamer.js';function _0x3896(){const _0x12f34f=['streaming','2wkGXIz','mouseLeaveSuggestion','extendTemplate','showChangeInText','execute','isEnabled','ck-ai-suggestion__body__content-part__title__label','mouseOverSuggestion','index','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','ck-reset_all-excluded','ck-ai-suggestion__body__content-part__icon-title','element','AI_SUGGESTION_CONTENT_PART_REJECTED','ck-ai-suggestion__body__content-part_active','items','ck-ai-suggestion__body__content-part__content','headerView','addMany','pending','animation:\x20ck-html-streamer-fade-in\x20.5s','change:state','content','bind','ck-ai-suggestion__body__content-part','ck-ai-suggestion__body__content-part__title','1973448ufbicN','add','AI_SUGGESTION_CONTENT_PART_DELETE','createCollection','has','712794ZCUMNr','insertSuggestion','rejectSuggestion','ck-ai-suggestion__body__content-part__icon-outdated','span','delegate','_toolbarView','AI_SUGGESTION_CONTENT_PART_OUTDATED','35PZpkKR','div','innerHTML','outdated','partDefinition','ck-hidden','ck-ai-suggestion__body__content-part__icon-accepted','396639JuYrlD','accepted','_iconStateOutdated','bindTemplate','toggleHeader','ck-ai-suggestion__body__content-part_','hasChanges','ck-content','54564LAcSNg','set','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','contentView','isVisible','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','AI_SUGGESTION_CONTENT_PART_TITLE','1629901UBfKTH','stream','htmlStreamer','ck-ai-suggestion__body__content-part__icon-rejected','fire','updateContent','_iconStateAccepted','remove','183821YHszJS','state','children','rejected','toString','781344KANXtL','_iconStateRejected','setTemplate'];_0x3896=function(){return _0x12f34f;};return _0x3896();}import{getTranslation as _0x537062}from'../../utils/common-translations.js';function _0x5358(_0x2a610d,_0xef2088){const _0x389647=_0x3896();return _0x5358=function(_0x535822,_0x80ff02){_0x535822=_0x535822-0x90;let _0x2febab=_0x389647[_0x535822];return _0x2febab;},_0x5358(_0x2a610d,_0xef2088);}import{serialize as _0x51dc65}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x11ad35}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0x30aaf5{[_0xaa12b7(0x90)];[_0xaa12b7(0x98)];[_0xaa12b7(0xb0)];[_0xaa12b7(0xd8)];constructor(_0x2c3374,{part:_0x249ae5,areActionsDisabled:_0x293bc5}){const _0x7d627c=_0xaa12b7;super(_0x2c3374),this[_0x7d627c(0xd6)](_0x7d627c(0xca),_0x249ae5),this[_0x7d627c(0xd6)](_0x7d627c(0x97),_0x7d627c(0xb2)),this[_0x7d627c(0xd6)](_0x7d627c(0xd9),!0x1),this[_0x7d627c(0xb6)](_0x7d627c(0xa4))['to'](this,_0x7d627c(0x97),_0x3f4473=>_0x7d627c(0xb2)==_0x3f4473&&!_0x293bc5),this[_0x7d627c(0x98)]=this[_0x7d627c(0xbc)](),this[_0x7d627c(0x90)]=new _0x5cd8e2({'textNodeStyle':_0x7d627c(0xb3),'delay':0x14}),this[_0x7d627c(0xb0)]=new Vn(_0x2c3374,_0x249ae5),this[_0x7d627c(0xb0)][_0x7d627c(0xb6)](_0x7d627c(0xca))['to'](this),this[_0x7d627c(0xb0)][_0x7d627c(0xb6)](_0x7d627c(0xa4))['to'](this),this[_0x7d627c(0xb0)][_0x7d627c(0xb6)](_0x7d627c(0x97))['to'](this),this[_0x7d627c(0xb0)][_0x7d627c(0xc3)](..._0x11ad35)['to'](this);const _0x2bd16b=this[_0x7d627c(0xd0)];this[_0x7d627c(0xd8)]=new _0x30aaf5(),this[_0x7d627c(0xd8)][_0x7d627c(0x9d)]({'tag':_0x7d627c(0xc7),'attributes':{'class':['ck',_0x7d627c(0xd4),_0x7d627c(0xa9),_0x7d627c(0xaf)]}}),this[_0x7d627c(0x98)][_0x7d627c(0xb1)]([this[_0x7d627c(0xd8)]]),this[_0x7d627c(0x9d)]({'tag':_0x7d627c(0xc7),'attributes':{'class':['ck',_0x7d627c(0xb7),_0x2bd16b['to'](_0x7d627c(0x97),_0x3254cc=>_0x7d627c(0xd2)+_0x3254cc),_0x2bd16b['to'](_0x7d627c(0xa4),_0x5c9389=>_0x5c9389?_0x7d627c(0xad):void 0x0),_0x2bd16b['if'](_0x7d627c(0xd9),_0x7d627c(0xcb),_0xbd94e4=>!_0xbd94e4)]},'children':this[_0x7d627c(0x98)],'on':{'mouseenter':_0x2bd16b['to'](()=>{const _0x165b91=_0x7d627c;this[_0x165b91(0xa4)]&&this[_0x165b91(0x92)](_0x165b91(0xa6),{'index':_0x249ae5[_0x165b91(0xa7)]});}),'mouseleave':_0x2bd16b['to'](()=>{const _0x155fdc=_0x7d627c;this[_0x155fdc(0xa4)]&&this[_0x155fdc(0x92)](_0x155fdc(0xa0),{'index':_0x249ae5[_0x155fdc(0xa7)]});})}});}async[_0xaa12b7(0x93)]({part:_0xcb7655,renderingStrategy:_0x529d51,showUnchangedParts:_0x41bf7b=!0x1,abortSignal:_0x46683a}){const _0x518be7=_0xaa12b7;this[_0x518be7(0xca)]=_0xcb7655,this[_0x518be7(0xd9)]=this[_0x518be7(0xca)][_0x518be7(0xd3)]||_0x41bf7b,this[_0x518be7(0xd9)]&&(_0x518be7(0x9e)===_0x529d51?await this[_0x518be7(0x90)][_0x518be7(0xdd)]({'document':this[_0x518be7(0xca)][_0x518be7(0xb5)],'targetElement':this[_0x518be7(0xd8)][_0x518be7(0xab)],'abortSignal':_0x46683a}):this[_0x518be7(0xd8)][_0x518be7(0xab)][_0x518be7(0xc8)]=_0x51dc65(this[_0x518be7(0xca)][_0x518be7(0xb5)]));}[_0xaa12b7(0xd1)](_0x36236e){const _0x558922=_0xaa12b7;_0x36236e?this[_0x558922(0x98)][_0x558922(0xbd)](this[_0x558922(0xb0)])||this[_0x558922(0x98)][_0x558922(0xba)](this[_0x558922(0xb0)],0x0):this[_0x558922(0x98)][_0x558922(0xbd)](this[_0x558922(0xb0)])&&this[_0x558922(0x98)][_0x558922(0x95)](this[_0x558922(0xb0)]);}}class Vn extends _0x30aaf5{[_0xaa12b7(0x98)];[_0xaa12b7(0xc4)];[_0xaa12b7(0x94)];[_0xaa12b7(0x9c)];[_0xaa12b7(0xcf)];constructor(_0x1d1752,_0x5c4ab9){const _0xd357dd=_0xaa12b7;super(_0x1d1752),this[_0xd357dd(0xd6)](_0xd357dd(0xca),_0x5c4ab9),this[_0xd357dd(0xd6)](_0xd357dd(0xa4),!0x0),this[_0xd357dd(0xd6)](_0xd357dd(0x97),_0xd357dd(0xb2));const _0x5ddb0b=new _0x19a2de();_0x5ddb0b[_0xd357dd(0xb5)]=_0x3d9fee,_0x5ddb0b[_0xd357dd(0xa1)]({'attributes':{'class':[_0xd357dd(0xaa)]}});const _0x147c75=new _0x49b48f(_0x1d1752);_0x147c75[_0xd357dd(0xd6)]({'label':_0x537062(_0x1d1752,_0xd357dd(0xda)),'tooltip':!0x0,'withText':!0x1,'icon':_0x15b7af}),_0x147c75[_0xd357dd(0xb6)](_0xd357dd(0xa4))['to'](this),_0x147c75['on'](_0xd357dd(0xa3),()=>{const _0x32d4e6=_0xd357dd;this[_0x32d4e6(0x92)](_0x32d4e6(0xa2),{'index':_0x5c4ab9[_0x32d4e6(0xa7)]});});const _0x52e029=new _0x49b48f(_0x1d1752);_0x52e029[_0xd357dd(0xd6)]({'label':_0x537062(_0x1d1752,_0xd357dd(0xd7)),'tooltip':!0x0,'withText':!0x1,'icon':_0x2d93b1}),_0x52e029[_0xd357dd(0xb6)](_0xd357dd(0xa4))['to'](this),_0x52e029['on'](_0xd357dd(0xa3),()=>{const _0x1508f6=_0xd357dd;this[_0x1508f6(0x92)](_0x1508f6(0xbf),{'index':_0x5c4ab9[_0x1508f6(0xa7)]});});const _0x1a3c11=new _0x49b48f(_0x1d1752);_0x1a3c11[_0xd357dd(0xd6)]({'label':_0x537062(_0x1d1752,_0xd357dd(0xbb)),'tooltip':!0x0,'withText':!0x1,'icon':_0x318ceb}),_0x1a3c11['on'](_0xd357dd(0xa3),()=>{const _0x72c922=_0xd357dd;this[_0x72c922(0x92)](_0x72c922(0xc0),{'index':_0x5c4ab9[_0x72c922(0xa7)]});}),_0x1a3c11[_0xd357dd(0xb6)](_0xd357dd(0xa4))['to'](this),this[_0xd357dd(0xc4)]=new _0x344827(_0x1d1752),this[_0xd357dd(0xc4)][_0xd357dd(0xae)][_0xd357dd(0xb1)]([_0x147c75,_0x52e029,_0x1a3c11]),this[_0xd357dd(0x94)]=new _0x19a2de(),this[_0xd357dd(0x94)][_0xd357dd(0xb5)]=_0x300462,this[_0xd357dd(0x94)][_0xd357dd(0xa1)]({'attributes':{'class':[_0xd357dd(0xcc)],'data-cke-tooltip-text':_0x537062(_0x1d1752,_0xd357dd(0xa8)),'data-cke-tooltip-position':'n'}}),this[_0xd357dd(0x9c)]=new _0x19a2de(),this[_0xd357dd(0x9c)][_0xd357dd(0xb5)]=_0x10bbd9,this[_0xd357dd(0x9c)][_0xd357dd(0xa1)]({'attributes':{'class':[_0xd357dd(0x91)],'data-cke-tooltip-text':_0x537062(_0x1d1752,_0xd357dd(0xac)),'data-cke-tooltip-position':'n'}}),this[_0xd357dd(0xcf)]=new _0x19a2de(),this[_0xd357dd(0xcf)][_0xd357dd(0xb5)]=_0x10bbd9,this[_0xd357dd(0xcf)][_0xd357dd(0xa1)]({'attributes':{'class':[_0xd357dd(0xc1)],'data-cke-tooltip-text':_0x537062(_0x1d1752,_0xd357dd(0xc5)),'data-cke-tooltip-position':'n'}});const _0x2a9d78=new _0x30aaf5(_0x1d1752);_0x2a9d78[_0xd357dd(0x9d)]({'tag':_0xd357dd(0xc2),'attributes':{'class':['ck',_0xd357dd(0xa5)]},'children':[_0x537062(_0x1d1752,_0xd357dd(0xdb),(_0x5c4ab9[_0xd357dd(0xa7)]+0x1)[_0xd357dd(0x9a)]())]}),this[_0xd357dd(0x98)]=this[_0xd357dd(0xbc)](),this[_0xd357dd(0x98)][_0xd357dd(0xb1)]([_0x5ddb0b,_0x2a9d78,this[_0xd357dd(0xc4)]]),this[_0xd357dd(0x9d)]({'tag':_0xd357dd(0xc7),'attributes':{'class':['ck',_0xd357dd(0xa9),_0xd357dd(0xb8)]},'children':this[_0xd357dd(0x98)]}),this['on'](_0xd357dd(0xb4),(_0x43dd8d,_0x3603ff,_0x54b3c1,_0x70c1c)=>{const _0xfbac75=_0xd357dd;switch(_0x70c1c){case _0xfbac75(0xb2):this[_0xfbac75(0x98)][_0xfbac75(0x95)](this[_0xfbac75(0xc4)]);break;case _0xfbac75(0xce):this[_0xfbac75(0x98)][_0xfbac75(0x95)](this[_0xfbac75(0x94)]);break;case _0xfbac75(0x99):this[_0xfbac75(0x98)][_0xfbac75(0x95)](this[_0xfbac75(0x9c)]);break;case _0xfbac75(0xc9):this[_0xfbac75(0x98)][_0xfbac75(0x95)](this[_0xfbac75(0xcf)]);}switch(_0x54b3c1){case _0xfbac75(0xb2):this[_0xfbac75(0x98)][_0xfbac75(0xba)](this[_0xfbac75(0xc4)]);break;case _0xfbac75(0xce):this[_0xfbac75(0x98)][_0xfbac75(0xba)](this[_0xfbac75(0x94)]);break;case _0xfbac75(0x99):this[_0xfbac75(0x98)][_0xfbac75(0xba)](this[_0xfbac75(0x9c)]);break;case _0xfbac75(0xc9):this[_0xfbac75(0x98)][_0xfbac75(0xba)](this[_0xfbac75(0xcf)]);}});}}
|
|
23
|
+
const _0x205fc8=_0x4b0a;(function(_0x367aa6,_0x5ac08c){const _0x70cb0b=_0x4b0a,_0x2249c7=_0x367aa6();while(!![]){try{const _0x134483=-parseInt(_0x70cb0b(0x1d1))/0x1*(parseInt(_0x70cb0b(0x1ab))/0x2)+-parseInt(_0x70cb0b(0x1d8))/0x3*(-parseInt(_0x70cb0b(0x192))/0x4)+parseInt(_0x70cb0b(0x1d0))/0x5*(parseInt(_0x70cb0b(0x1af))/0x6)+parseInt(_0x70cb0b(0x197))/0x7+parseInt(_0x70cb0b(0x1c9))/0x8+-parseInt(_0x70cb0b(0x1a4))/0x9*(parseInt(_0x70cb0b(0x1bd))/0xa)+-parseInt(_0x70cb0b(0x19a))/0xb*(-parseInt(_0x70cb0b(0x1c2))/0xc);if(_0x134483===_0x5ac08c)break;else _0x2249c7['push'](_0x2249c7['shift']());}catch(_0x3064df){_0x2249c7['push'](_0x2249c7['shift']());}}}(_0x581e,0x9dd79));import{View as _0x214825,IconView as _0x94bc9d,ToolbarView as _0x33168d,ButtonView as _0x54da2e}from'ckeditor5/src/ui.js';function _0x581e(){const _0x2c43cf=['add','9mCdwGA','extendTemplate','animation:\x20ck-html-streamer-fade-in\x20.5s','hasChanges','ck-ai-suggestion__body__content-part__content','delegate','div','2DiVlSb','showChangeInText','outdated','span','174gGnWES','isVisible','ck-ai-suggestion__body__content-part__title','partDefinition','ck-ai-suggestion__body__content-part','_iconStateRejected','rejected','AI_SUGGESTION_CONTENT_PART_OUTDATED','ck-content','addMany','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','mouseLeaveSuggestion','set','ck-ai-suggestion__body__content-part__title__label','1399810FrMmzq','bind','toString','rejectSuggestion','element','24240MDXOQu','execute','has','bindTemplate','fire','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','ck-ai-suggestion__body__content-part_','376296DGjryw','AI_SUGGESTION_CONTENT_PART_TITLE','contentView','children','updateContent','AI_SUGGESTION_CONTENT_PART_DELETE','_iconStateOutdated','154865GXYhXn','1151163JNtzQv','items','AI_SUGGESTION_CONTENT_PART_REJECTED','stream','_iconStateAccepted','change:state','streaming','67020llqvjY','ck-ai-suggestion__body__content-part__icon-title','ck-hidden','setTemplate','_toolbarView','content','ck-ai-suggestion__body__content-part__icon-rejected','remove','index','ck-reset_all-excluded','pending','72rBJrxA','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','state','insertSuggestion','htmlStreamer','3962357jUPzYZ','headerView','ck-ai-suggestion__body__content-part_active','132ZPASQy','toggleHeader','ck-ai-suggestion__body__content-part__icon-outdated','innerHTML','createCollection','isEnabled','mouseOverSuggestion','accepted','ck-ai-suggestion__body__content-part__icon-accepted'];_0x581e=function(){return _0x2c43cf;};return _0x581e();}import{IconAddComment as _0x12c1c0,IconDocumentWithLoupe as _0x4e3630,IconDocumentWithCheckmark as _0x1c5bf6,IconDocumentWithCross as _0x1a44f9,IconRemove as _0x218d69,IconThreeStars as _0x27cc14}from'ckeditor5/src/icons.js';import{HTMLStreamer as _0x1a66c3}from'../../utils/htmlstreamer.js';import{getTranslation as _0x3b1ffb}from'../../utils/common-translations.js';function _0x4b0a(_0xafc73,_0x410877){const _0x581e9a=_0x581e();return _0x4b0a=function(_0x4b0aa4,_0x85c06e){_0x4b0aa4=_0x4b0aa4-0x191;let _0x2640ca=_0x581e9a[_0x4b0aa4];return _0x2640ca;},_0x4b0a(_0xafc73,_0x410877);}import{serialize as _0xb2afc8}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2619fd}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0x214825{[_0x205fc8(0x196)];[_0x205fc8(0x1cc)];[_0x205fc8(0x198)];[_0x205fc8(0x1cb)];constructor(_0x57370e,{part:_0x296bff,areActionsDisabled:_0x5b16b5}){const _0x48a1c2=_0x205fc8;super(_0x57370e),this[_0x48a1c2(0x1bb)](_0x48a1c2(0x1b2),_0x296bff),this[_0x48a1c2(0x1bb)](_0x48a1c2(0x194),_0x48a1c2(0x191)),this[_0x48a1c2(0x1bb)](_0x48a1c2(0x1b0),!0x1),this[_0x48a1c2(0x1be)](_0x48a1c2(0x19f))['to'](this,_0x48a1c2(0x194),_0x4bc2b2=>_0x48a1c2(0x191)==_0x4bc2b2&&!_0x5b16b5),this[_0x48a1c2(0x1cc)]=this[_0x48a1c2(0x19e)](),this[_0x48a1c2(0x196)]=new _0x1a66c3({'textNodeStyle':_0x48a1c2(0x1a6),'delay':0x14}),this[_0x48a1c2(0x198)]=new Vn(_0x57370e,_0x296bff),this[_0x48a1c2(0x198)][_0x48a1c2(0x1be)](_0x48a1c2(0x1b2))['to'](this),this[_0x48a1c2(0x198)][_0x48a1c2(0x1be)](_0x48a1c2(0x19f))['to'](this),this[_0x48a1c2(0x198)][_0x48a1c2(0x1be)](_0x48a1c2(0x194))['to'](this),this[_0x48a1c2(0x198)][_0x48a1c2(0x1a9)](..._0x2619fd)['to'](this);const _0x330513=this[_0x48a1c2(0x1c5)];this[_0x48a1c2(0x1cb)]=new _0x214825(),this[_0x48a1c2(0x1cb)][_0x48a1c2(0x1db)]({'tag':_0x48a1c2(0x1aa),'attributes':{'class':['ck',_0x48a1c2(0x1b7),_0x48a1c2(0x1e1),_0x48a1c2(0x1a8)]}}),this[_0x48a1c2(0x1cc)][_0x48a1c2(0x1b8)]([this[_0x48a1c2(0x1cb)]]),this[_0x48a1c2(0x1db)]({'tag':_0x48a1c2(0x1aa),'attributes':{'class':['ck',_0x48a1c2(0x1b3),_0x330513['to'](_0x48a1c2(0x194),_0x2455e4=>_0x48a1c2(0x1c8)+_0x2455e4),_0x330513['to'](_0x48a1c2(0x19f),_0x3ae4d2=>_0x3ae4d2?_0x48a1c2(0x199):void 0x0),_0x330513['if'](_0x48a1c2(0x1b0),_0x48a1c2(0x1da),_0x3a78c8=>!_0x3a78c8)]},'children':this[_0x48a1c2(0x1cc)],'on':{'mouseenter':_0x330513['to'](()=>{const _0x54dac5=_0x48a1c2;this[_0x54dac5(0x19f)]&&this[_0x54dac5(0x1c6)](_0x54dac5(0x1a0),{'index':_0x296bff[_0x54dac5(0x1e0)]});}),'mouseleave':_0x330513['to'](()=>{const _0x14b10a=_0x48a1c2;this[_0x14b10a(0x19f)]&&this[_0x14b10a(0x1c6)](_0x14b10a(0x1ba),{'index':_0x296bff[_0x14b10a(0x1e0)]});})}});}async[_0x205fc8(0x1cd)]({part:_0x239097,renderingStrategy:_0x1a0bfd,showUnchangedParts:_0x5d2829=!0x1,abortSignal:_0xa6525b}){const _0x188eb6=_0x205fc8;this[_0x188eb6(0x1b2)]=_0x239097,this[_0x188eb6(0x1b0)]=this[_0x188eb6(0x1b2)][_0x188eb6(0x1a7)]||_0x5d2829,this[_0x188eb6(0x1b0)]&&(_0x188eb6(0x1d7)===_0x1a0bfd?await this[_0x188eb6(0x196)][_0x188eb6(0x1d4)]({'document':this[_0x188eb6(0x1b2)][_0x188eb6(0x1dd)],'targetElement':this[_0x188eb6(0x1cb)][_0x188eb6(0x1c1)],'abortSignal':_0xa6525b}):this[_0x188eb6(0x1cb)][_0x188eb6(0x1c1)][_0x188eb6(0x19d)]=_0xb2afc8(this[_0x188eb6(0x1b2)][_0x188eb6(0x1dd)]));}[_0x205fc8(0x19b)](_0x337cc6){const _0xefe07a=_0x205fc8;_0x337cc6?this[_0xefe07a(0x1cc)][_0xefe07a(0x1c4)](this[_0xefe07a(0x198)])||this[_0xefe07a(0x1cc)][_0xefe07a(0x1a3)](this[_0xefe07a(0x198)],0x0):this[_0xefe07a(0x1cc)][_0xefe07a(0x1c4)](this[_0xefe07a(0x198)])&&this[_0xefe07a(0x1cc)][_0xefe07a(0x1df)](this[_0xefe07a(0x198)]);}}class Vn extends _0x214825{[_0x205fc8(0x1cc)];[_0x205fc8(0x1dc)];[_0x205fc8(0x1d5)];[_0x205fc8(0x1b4)];[_0x205fc8(0x1cf)];constructor(_0x341530,_0x2dd9de){const _0x538fd1=_0x205fc8;super(_0x341530),this[_0x538fd1(0x1bb)](_0x538fd1(0x1b2),_0x2dd9de),this[_0x538fd1(0x1bb)](_0x538fd1(0x19f),!0x0),this[_0x538fd1(0x1bb)](_0x538fd1(0x194),_0x538fd1(0x191));const _0x33fcc9=new _0x94bc9d();_0x33fcc9[_0x538fd1(0x1dd)]=_0x27cc14,_0x33fcc9[_0x538fd1(0x1a5)]({'attributes':{'class':[_0x538fd1(0x1d9)]}});const _0x435bae=new _0x54da2e(_0x341530);_0x435bae[_0x538fd1(0x1bb)]({'label':_0x3b1ffb(_0x341530,_0x538fd1(0x1c7)),'tooltip':!0x0,'withText':!0x1,'icon':_0x4e3630}),_0x435bae[_0x538fd1(0x1be)](_0x538fd1(0x19f))['to'](this),_0x435bae['on'](_0x538fd1(0x1c3),()=>{const _0x20e1cc=_0x538fd1;this[_0x20e1cc(0x1c6)](_0x20e1cc(0x1ac),{'index':_0x2dd9de[_0x20e1cc(0x1e0)]});});const _0x163983=new _0x54da2e(_0x341530);_0x163983[_0x538fd1(0x1bb)]({'label':_0x3b1ffb(_0x341530,_0x538fd1(0x193)),'tooltip':!0x0,'withText':!0x1,'icon':_0x12c1c0}),_0x163983[_0x538fd1(0x1be)](_0x538fd1(0x19f))['to'](this),_0x163983['on'](_0x538fd1(0x1c3),()=>{const _0x1e24b0=_0x538fd1;this[_0x1e24b0(0x1c6)](_0x1e24b0(0x195),{'index':_0x2dd9de[_0x1e24b0(0x1e0)]});});const _0x24cf46=new _0x54da2e(_0x341530);_0x24cf46[_0x538fd1(0x1bb)]({'label':_0x3b1ffb(_0x341530,_0x538fd1(0x1ce)),'tooltip':!0x0,'withText':!0x1,'icon':_0x218d69}),_0x24cf46['on'](_0x538fd1(0x1c3),()=>{const _0x2cbabe=_0x538fd1;this[_0x2cbabe(0x1c6)](_0x2cbabe(0x1c0),{'index':_0x2dd9de[_0x2cbabe(0x1e0)]});}),_0x24cf46[_0x538fd1(0x1be)](_0x538fd1(0x19f))['to'](this),this[_0x538fd1(0x1dc)]=new _0x33168d(_0x341530),this[_0x538fd1(0x1dc)][_0x538fd1(0x1d2)][_0x538fd1(0x1b8)]([_0x435bae,_0x163983,_0x24cf46]),this[_0x538fd1(0x1d5)]=new _0x94bc9d(),this[_0x538fd1(0x1d5)][_0x538fd1(0x1dd)]=_0x1c5bf6,this[_0x538fd1(0x1d5)][_0x538fd1(0x1a5)]({'attributes':{'class':[_0x538fd1(0x1a2)],'data-cke-tooltip-text':_0x3b1ffb(_0x341530,_0x538fd1(0x1b9)),'data-cke-tooltip-position':'n'}}),this[_0x538fd1(0x1b4)]=new _0x94bc9d(),this[_0x538fd1(0x1b4)][_0x538fd1(0x1dd)]=_0x1a44f9,this[_0x538fd1(0x1b4)][_0x538fd1(0x1a5)]({'attributes':{'class':[_0x538fd1(0x1de)],'data-cke-tooltip-text':_0x3b1ffb(_0x341530,_0x538fd1(0x1d3)),'data-cke-tooltip-position':'n'}}),this[_0x538fd1(0x1cf)]=new _0x94bc9d(),this[_0x538fd1(0x1cf)][_0x538fd1(0x1dd)]=_0x1a44f9,this[_0x538fd1(0x1cf)][_0x538fd1(0x1a5)]({'attributes':{'class':[_0x538fd1(0x19c)],'data-cke-tooltip-text':_0x3b1ffb(_0x341530,_0x538fd1(0x1b6)),'data-cke-tooltip-position':'n'}});const _0x1517f2=new _0x214825(_0x341530);_0x1517f2[_0x538fd1(0x1db)]({'tag':_0x538fd1(0x1ae),'attributes':{'class':['ck',_0x538fd1(0x1bc)]},'children':[_0x3b1ffb(_0x341530,_0x538fd1(0x1ca),(_0x2dd9de[_0x538fd1(0x1e0)]+0x1)[_0x538fd1(0x1bf)]())]}),this[_0x538fd1(0x1cc)]=this[_0x538fd1(0x19e)](),this[_0x538fd1(0x1cc)][_0x538fd1(0x1b8)]([_0x33fcc9,_0x1517f2,this[_0x538fd1(0x1dc)]]),this[_0x538fd1(0x1db)]({'tag':_0x538fd1(0x1aa),'attributes':{'class':['ck',_0x538fd1(0x1e1),_0x538fd1(0x1b1)]},'children':this[_0x538fd1(0x1cc)]}),this['on'](_0x538fd1(0x1d6),(_0x46d489,_0x1ada72,_0x1f8167,_0x22a786)=>{const _0x9371b=_0x538fd1;switch(_0x22a786){case _0x9371b(0x191):this[_0x9371b(0x1cc)][_0x9371b(0x1df)](this[_0x9371b(0x1dc)]);break;case _0x9371b(0x1a1):this[_0x9371b(0x1cc)][_0x9371b(0x1df)](this[_0x9371b(0x1d5)]);break;case _0x9371b(0x1b5):this[_0x9371b(0x1cc)][_0x9371b(0x1df)](this[_0x9371b(0x1b4)]);break;case _0x9371b(0x1ad):this[_0x9371b(0x1cc)][_0x9371b(0x1df)](this[_0x9371b(0x1cf)]);}switch(_0x1f8167){case _0x9371b(0x191):this[_0x9371b(0x1cc)][_0x9371b(0x1a3)](this[_0x9371b(0x1dc)]);break;case _0x9371b(0x1a1):this[_0x9371b(0x1cc)][_0x9371b(0x1a3)](this[_0x9371b(0x1d5)]);break;case _0x9371b(0x1b5):this[_0x9371b(0x1cc)][_0x9371b(0x1a3)](this[_0x9371b(0x1b4)]);break;case _0x9371b(0x1ad):this[_0x9371b(0x1cc)][_0x9371b(0x1a3)](this[_0x9371b(0x1cf)]);}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x399b3c=_0x5334;function _0x5334(_0x422fa4,_0x4971fc){const _0x378513=_0x3785();return _0x5334=function(_0x533428,_0x5a9d38){_0x533428=_0x533428-0xe8;let _0x64000=_0x378513[_0x533428];return _0x64000;},_0x5334(_0x422fa4,_0x4971fc);}(function(_0x47168e,_0x57e6a5){const _0x2c00c2=_0x5334,_0x488a10=_0x47168e();while(!![]){try{const _0x331138=-parseInt(_0x2c00c2(0x100))/0x1*(-parseInt(_0x2c00c2(0x102))/0x2)+-parseInt(_0x2c00c2(0x10b))/0x3+parseInt(_0x2c00c2(0x101))/0x4+-parseInt(_0x2c00c2(0xfd))/0x5+parseInt(_0x2c00c2(0xf4))/0x6+-parseInt(_0x2c00c2(0xf6))/0x7*(-parseInt(_0x2c00c2(0xf8))/0x8)+-parseInt(_0x2c00c2(0xf1))/0x9;if(_0x331138===_0x57e6a5)break;else _0x488a10['push'](_0x488a10['shift']());}catch(_0x38a691){_0x488a10['push'](_0x488a10['shift']());}}}(_0x3785,0xdc889));import{getTranslation as _0x1827e4}from'../../utils/common-translations.js';import{ButtonView as _0x1ee9f9,IconView as _0x155659,View as _0x4298fe}from'ckeditor5/src/ui.js';import{IconDocument as _0x1be893,IconShowChangesOff as _0x563172,IconShowChangesOn as _0x384a94}from'ckeditor5/src/icons.js';export class AISuggestionHeaderView extends _0x4298fe{[_0x399b3c(0xfb)];constructor(_0x196000,_0x4bc791){const _0x5dfbc8=_0x399b3c;super(_0x196000),this[_0x5dfbc8(0x106)](_0x5dfbc8(0x104),!0x0),this[_0x5dfbc8(0xfb)]=new ShowChangesToggleView(_0x196000),this[_0x5dfbc8(0xfb)][_0x5dfbc8(0x106)]({'class':_0x5dfbc8(0xf9),'label':_0x1827e4(_0x196000,_0x5dfbc8(0xf0)),'withText':!0x0}),this[_0x5dfbc8(0xfb)][_0x5dfbc8(0xf7)]=_0x4bc791[_0x5dfbc8(0x109)],this[_0x5dfbc8(0xfb)][_0x5dfbc8(0xec)](_0x5dfbc8(0x105))['to'](this,_0x5dfbc8(0x104)),this[_0x5dfbc8(0xfb)][_0x5dfbc8(0xec)](_0x5dfbc8(0x10a))['to'](this[_0x5dfbc8(0xfb)],_0x5dfbc8(0xf7),_0x13a414=>_0x13a414?_0x384a94:_0x563172),this[_0x5dfbc8(0xfb)]['on'](_0x5dfbc8(0xfc),()=>{const _0x1d1961=_0x5dfbc8;this[_0x1d1961(0xfb)][_0x1d1961(0xf7)]=!this[_0x1d1961(0xfb)][_0x1d1961(0xf7)],this[_0x1d1961(0xff)](_0x1d1961(0xf3),{'isOn':this[_0x1d1961(0xfb)][_0x1d1961(0xf7)]});});const _0x54f835=new _0x155659();_0x54f835[_0x5dfbc8(0xe8)]=_0x1be893,this[_0x5dfbc8(0x107)]({'tag':_0x5dfbc8(0xf5),'attributes':{'class':['ck',_0x5dfbc8(0xe9),!0x1===_0x4bc791[_0x5dfbc8(0xed)]?_0x5dfbc8(0xf2):null][_0x5dfbc8(0xeb)](Boolean)},'children':[_0x54f835,{'tag':_0x5dfbc8(0xea),'children':[_0x1827e4(_0x196000,_0x5dfbc8(0xee))]},this[_0x5dfbc8(0xfb)]]});}}export class ShowChangesToggleView extends _0x1ee9f9{[_0x399b3c(0x103)](){const _0x3133c5=_0x399b3c;super[_0x3133c5(0x103)](),this[_0x3133c5(0xfa)][_0x3133c5(0xef)](this[_0x3133c5(0xfe)]),this[_0x3133c5(0xfa)][_0x3133c5(0x108)](this[_0x3133c5(0xfe)]);}}function _0x3785(){const _0x306155=['1309887AHHnHZ','6468364LSMNpP','2DbLAag','render','isShowChangesToggleVisible','isVisible','set','setTemplate','add','showDiff','icon','1628469gbiSiC','content','ck-ai-suggestion__header','span','filter','bind','showHeader','AI_SUGGESTION_HEADER_TITLE','remove','AI_SUGGESTION_BUTTON_SHOW_CHANGES','7023573zhbnae','ck-hidden','toggleShowChanges','3075312eLpRIE','div','1379DgBzTC','isOn','18776JLFUof','ck-ai-suggestion__header__show-changes-toggle','children','showChangesToggleView','execute','8376820VELIlF','iconView','fire'];_0x3785=function(){return _0x306155;};return _0x3785();}
|