@ckeditor/ckeditor5-ai 47.6.1-alpha.1 → 47.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/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/aiballoon/aiballoon.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2cf1f9=_0x4e09;(function(_0x13897d,_0x2ff549){const _0x168056=_0x4e09,_0x4f7888=_0x13897d();while(!![]){try{const _0x19a858=-parseInt(_0x168056(0x13b))/0x1+parseInt(_0x168056(0x135))/0x2+parseInt(_0x168056(0xfa))/0x3+parseInt(_0x168056(0xfb))/0x4*(-parseInt(_0x168056(0x11c))/0x5)+parseInt(_0x168056(0x127))/0x6+-parseInt(_0x168056(0xff))/0x7+parseInt(_0x168056(0x111))/0x8*(parseInt(_0x168056(0x128))/0x9);if(_0x19a858===_0x2ff549)break;else _0x4f7888['push'](_0x4f7888['shift']());}catch(_0x430bbb){_0x4f7888['push'](_0x4f7888['shift']());}}}(_0x104e,0x41d50));import{Rect as _0x340b87,getConstrainedViewportRect as _0x4b0db7}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x10d069,View as _0x23ce37,clickOutsideHandler as _0xf2e698}from'ckeditor5/src/ui.js';import{AIReviewCoreReviewCheckListItemResultsView as _0xa537}from'./aireviewcorechecklistitemresultview.js';import'../../../theme/aireviewcore/aireviewcore-balloon-panel-suggestion.css';import'../../../theme/aireviewcore/aireviewcore-check-run-result.css';export class AIReviewCoreBalloonSuggestionItemView extends _0x10d069{[_0x2cf1f9(0x12d)];[_0x2cf1f9(0x139)]=void 0x0;[_0x2cf1f9(0x102)]=void 0x0;[_0x2cf1f9(0x122)]=void 0x0;constructor(_0x20a001,_0x3224d5){const _0x3b2964=_0x2cf1f9;super(_0x20a001),this[_0x3b2964(0x123)]({'isVisible':!0x1,'position':_0x3b2964(0xf2),'class':null,'top':0x0,'left':0x0}),this[_0x3b2964(0xf3)]({'tag':_0x3b2964(0x11b),'attributes':{'class':[_0x3b2964(0x12f)],'tabindex':'-1'}}),this[_0x3b2964(0x123)](_0x3b2964(0x11e),!0x1),this[_0x3b2964(0x12a)][_0x3b2964(0x108)](this[_0x3b2964(0x124)]()),_0x3224d5[_0x3b2964(0x108)](this);}[_0x2cf1f9(0x10c)](){const _0x44e3b8=_0x2cf1f9;super[_0x44e3b8(0x10c)](),this[_0x44e3b8(0x13a)]();}[_0x2cf1f9(0xf6)](_0x24eafc){const _0x57ef92=_0x2cf1f9;this[_0x57ef92(0x12d)][_0x57ef92(0x103)]=_0x24eafc['id'],this[_0x57ef92(0x12d)][_0x57ef92(0x110)][_0x57ef92(0x12b)][_0x57ef92(0x10b)]=_0x24eafc[_0x57ef92(0x114)];}[_0x2cf1f9(0x13c)](_0x882b31,_0x3c0c95,_0x22c7db,_0x47ede5,_0x1fe318,_0x3e2917){const _0x279d5b=_0x2cf1f9,_0x1c7721=_0x3c0c95();if(!_0x1c7721)return;this[_0x279d5b(0xf6)](_0x882b31),this[_0x279d5b(0x133)]();const _0x56aecd=Array[_0x279d5b(0x10e)](_0x1c7721[_0x279d5b(0x104)]())[_0x279d5b(0x11f)](),_0x3b3ad8=this[_0x279d5b(0x105)](_0x22c7db,_0x56aecd),_0x289ba0=_0x56aecd[_0x3b3ad8??0x0];_0x279d5b(0xf5)===_0x47ede5?(this[_0x279d5b(0x11e)]=!0x0,this[_0x279d5b(0x11d)]({'target':()=>this[_0x279d5b(0x130)](_0x3c0c95(),_0x3b3ad8,_0x882b31['id'],_0x1fe318,_0x3e2917)||_0x289ba0})):_0x279d5b(0x106)===_0x47ede5&&(this[_0x279d5b(0x11e)]=!0x1,this[_0x279d5b(0x11d)]({'target':()=>this[_0x279d5b(0x132)](_0x3c0c95(),_0x3b3ad8,_0x882b31['id'])||_0x289ba0}));}[_0x2cf1f9(0x121)](){const _0x3cd07a=_0x2cf1f9;this[_0x3cd07a(0xf8)](),this[_0x3cd07a(0x12c)](),this[_0x3cd07a(0x139)]=void 0x0,this[_0x3cd07a(0x102)]=void 0x0,this[_0x3cd07a(0x122)]=void 0x0;}[_0x2cf1f9(0x13d)](){const _0x3a812a=_0x2cf1f9;this[_0x3a812a(0x12d)][_0x3a812a(0xf9)]=!0x1;}[_0x2cf1f9(0x107)](){const _0x51f383=_0x2cf1f9;this[_0x51f383(0x12d)][_0x51f383(0xf9)]=!0x0;}[_0x2cf1f9(0x112)](){const _0x237dd6=_0x2cf1f9;this[_0x237dd6(0x115)](_0x237dd6(0x112),{'origin':_0x237dd6(0x10d)});}[_0x2cf1f9(0x13a)](){const _0x9473ae=_0x2cf1f9;_0xf2e698({'emitter':this,'activator':()=>this[_0x9473ae(0x116)],'contextElements':()=>{const _0x3a7580=_0x9473ae,_0x2a84f8=[this[_0x3a7580(0x12b)]];return this[_0x3a7580(0x102)]&&_0x2a84f8[_0x3a7580(0x100)](this[_0x3a7580(0x102)]),_0x2a84f8;},'callback':()=>{const _0x1683e8=_0x9473ae;this[_0x1683e8(0xf8)](),this[_0x1683e8(0x12c)](),this[_0x1683e8(0x112)](),this[_0x1683e8(0x102)]=void 0x0,this[_0x1683e8(0x139)]=void 0x0,this[_0x1683e8(0x122)]=void 0x0;}});}[_0x2cf1f9(0x124)](){const _0x20ec03=_0x2cf1f9,_0x2a2c9d=new _0x23ce37();return this[_0x20ec03(0x12d)]=new _0xa537(this[_0x20ec03(0xfc)],''),this[_0x20ec03(0x12d)][_0x20ec03(0x110)][_0x20ec03(0xf3)]({'attributes':{'class':[_0x20ec03(0xfd)]}}),this[_0x20ec03(0x12d)][_0x20ec03(0x117)](_0x20ec03(0x101),_0x20ec03(0x10a))['to'](this),_0x2a2c9d[_0x20ec03(0xf7)]({'tag':_0x20ec03(0x11b),'attributes':{'class':[_0x20ec03(0x12f),_0x20ec03(0x134),this[_0x20ec03(0x12e)]['if'](_0x20ec03(0x11e),_0x20ec03(0x113))]},'children':[{'tag':'p','attributes':{'class':[_0x20ec03(0x125)]},'children':[this[_0x20ec03(0x12d)]]}]}),_0x2a2c9d;}[_0x2cf1f9(0x130)](_0x1c0ea4,_0x50214c,_0x2a52eb,_0x543a25,_0x3498ae){const _0x38738e=_0x2cf1f9;if(!_0x1c0ea4)return null;const _0x1436ef=this[_0x38738e(0x119)][_0x38738e(0x120)](_0x38738e(0xf4),''),_0x3599fe=Array[_0x38738e(0x10e)](_0x1c0ea4[_0x38738e(0x104)]());let _0x27935d,_0x2a2e19=_0x3599fe[_0x38738e(0x11f)]();return void 0x0!==_0x50214c&&this[_0x38738e(0x118)](_0x2a2e19[_0x50214c],_0x543a25,_0x3498ae)?(_0x27935d=_0x2a2e19[_0x50214c],this[_0x38738e(0x139)]=_0x50214c):this[_0x38738e(0x118)](_0x2a2e19[0x0],_0x543a25,_0x3498ae)&&void 0x0===_0x50214c?_0x27935d=_0x2a2e19[0x0]:(_0x2a2e19='s'==_0x1436ef[0x0]?[..._0x3599fe][_0x38738e(0x11f)]():_0x3599fe,_0x2a2e19[_0x38738e(0xfe)](_0x1f2cb1=>{const _0x124b9a=_0x38738e;this[_0x124b9a(0x118)](_0x1f2cb1,_0x543a25,_0x3498ae)&&(_0x27935d=_0x1f2cb1);})),this[_0x38738e(0x122)]=_0x2a52eb,this[_0x38738e(0x102)]=_0x1c0ea4,_0x27935d||_0x1c0ea4[_0x38738e(0xf1)]();}[_0x2cf1f9(0x132)](_0x4e8a30,_0x5b2c1a,_0x3af420){const _0x4c3815=_0x2cf1f9;if(!_0x4e8a30)return null;const _0x5e21f5=Array[_0x4c3815(0x10e)](_0x4e8a30[_0x4c3815(0x104)]())[_0x4c3815(0x11f)]();if(void 0x0===this[_0x4c3815(0x139)]&&void 0x0!==_0x5b2c1a&&this[_0x4c3815(0x122)]!==_0x3af420)return this[_0x4c3815(0x139)]=_0x5b2c1a,this[_0x4c3815(0x102)]=_0x4e8a30,this[_0x4c3815(0x122)]=_0x3af420,_0x5e21f5[_0x5b2c1a];if(void 0x0!==this[_0x4c3815(0x139)]&&this[_0x4c3815(0x122)]===_0x3af420){if(_0x4e8a30!==this[_0x4c3815(0x102)])return Array[_0x4c3815(0x10e)](this[_0x4c3815(0x102)][_0x4c3815(0x104)]())[_0x4c3815(0x11f)]()[this[_0x4c3815(0x139)]];return _0x5e21f5[this[_0x4c3815(0x139)]];}return void 0x0!==_0x5b2c1a&&this[_0x4c3815(0x122)]!==_0x3af420?(this[_0x4c3815(0x139)]=_0x5b2c1a,this[_0x4c3815(0x102)]=_0x4e8a30,this[_0x4c3815(0x122)]=_0x3af420,_0x5e21f5[_0x5b2c1a]):_0x4e8a30[_0x4c3815(0xf1)]();}[_0x2cf1f9(0x105)](_0x375777,_0x5bbb51){const _0x4d0eb0=_0x2cf1f9;if(_0x375777)for(let _0x32564d=0x0;_0x32564d<_0x5bbb51[_0x4d0eb0(0x138)];_0x32564d++){const _0x177105=_0x5bbb51[_0x32564d];if(_0x375777[_0x4d0eb0(0x136)]>=_0x177105[_0x4d0eb0(0x137)]-0x3&&_0x375777[_0x4d0eb0(0x136)]<=_0x177105[_0x4d0eb0(0x11a)]+0x3&&_0x375777[_0x4d0eb0(0x129)]>=_0x177105[_0x4d0eb0(0x109)]-0x3&&_0x375777[_0x4d0eb0(0x129)]<=_0x177105[_0x4d0eb0(0x10f)]+0x3)return _0x32564d;}}[_0x2cf1f9(0x118)](_0x167904,_0xaa5047,_0x54f8a4){const _0x47e920=_0x2cf1f9,_0x3c55dd=new _0x340b87(_0x167904),_0x4c650a=_0xaa5047||document[_0x47e920(0x13e)],_0xa22ab5=_0x3c55dd[_0x47e920(0x131)](_0x4b0db7(_0x54f8a4)),_0x562b9e=new _0x340b87(_0x4c650a)[_0x47e920(0x131)](_0x3c55dd);return!!(_0xa22ab5&&_0x562b9e&&_0x3c55dd[_0x47e920(0x126)]>0x0);}}function _0x4e09(_0x412b72,_0x1631e0){const _0x104ede=_0x104e();return _0x4e09=function(_0x4e09d0,_0x34ad42){_0x4e09d0=_0x4e09d0-0xf1;let _0x147346=_0x104ede[_0x4e09d0];return _0x147346;},_0x4e09(_0x412b72,_0x1631e0);}function _0x104e(){const _0x2e1a4f=['getBoundingClientRect','arrow_se','extendTemplate','arrow_','click','updateContent','setTemplate','hide','showDiff','1007982sZQwiS','100qbmaxK','locale','ck-content','forEach','3036082CfOTzS','push','acceptChange','_pinnedTargetElement','changeId','getClientRects','_getPointedRectIndexFromEvent','hover','showDiffInBalloon','add','top','dismissChange','innerHTML','render','balloon','from','bottom','resultResponseView','24eAxXKn','deactivateChange','ck-ai_review-balloon-panel-suggestion_diff-active','contentDiffed','fire','isVisible','delegate','_isPinnedRectVisible','position','right','div','103565ZGIhrH','pin','isDiffActive','reverse','replace','hideBalloon','_pinnedTargetChangeId','set','_createContentView','ck-ai_review__suggestion-text','width','2686842twtqXt','496863VKNmjX','clientY','content','element','unpin','resultItemView','bindTemplate','ck-reset','_getBestRectPositionOnClick','getIntersection','_getBestRectPositionOnHover','show','ck-ai_review-balloon-panel-suggestion','675388OnLWtg','clientX','left','length','_pinnedRectIndex','_setupClickOutsideHandler','65917SzlXRd','showBalloon','hideDiffInBalloon','documentElement'];_0x104e=function(){return _0x2e1a4f;};return _0x104e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48c44a=_0x247f;(function(_0x372b61,_0x185125){const _0x5eecbf=_0x247f,_0x4fdfac=_0x372b61();while(!![]){try{const _0x3339d3=parseInt(_0x5eecbf(0x11c))/0x1+-parseInt(_0x5eecbf(0x128))/0x2+-parseInt(_0x5eecbf(0x145))/0x3*(-parseInt(_0x5eecbf(0x134))/0x4)+-parseInt(_0x5eecbf(0x12a))/0x5+parseInt(_0x5eecbf(0x11d))/0x6+parseInt(_0x5eecbf(0x13c))/0x7+-parseInt(_0x5eecbf(0x154))/0x8*(parseInt(_0x5eecbf(0x143))/0x9);if(_0x3339d3===_0x185125)break;else _0x4fdfac['push'](_0x4fdfac['shift']());}catch(_0x25061a){_0x4fdfac['push'](_0x4fdfac['shift']());}}}(_0x2076,0x5b876));function _0x2076(){const _0x3b603a=['isInfoToggleOn','label','target','setTemplate','ck-ai_review__check-run-result-accept-button','icon','ck-hidden','1423842yqpzuB','mouseout','2178640EPxfCH','tagName','setItemAsInactive','_createAcceptButtonView','AI_REVIEW_MODE_LEARN_MORE','infoButtonView','ck-ai-button-secondary','dismissChange','preventDefault','setItemAsActive','324988vbZtxy','click','_createResultResponseView','bind','outdatedButtonView','locale','disabled','ck-ai_review__check-run-result-status-button','1928745lZvoQO','_createInfoButtonView','changeId','fire','stopPropagation','pending','set','12753MjEJKa','_createOutdatedButtonView','27WbVSgu','ck-ai_review__check-run-result_active','AI_REVIEW_MODE_CHECK_STATUS_REJECTED','rejected','status','resultResponseView','isEnabled','change:status','AI_REVIEW_MODE_DISMISS_CHANGE','AI_REVIEW_MODE_CHECK_STATUS_OUTDATED','panel','acceptButtonView','accepted','div','isOn','1856IZWlBt','ck-ai_review__check-run-result','ck-ai_review__check-run-result-dismiss-button','ck-ai_review__check-run-result-footer','_createDismissButtonView','mouseover','isActive','AI_REVIEW_MODE_CHECK_STATUS_ACCEPTED','activateChange','ck-reset_all-excluded','ck-ai_review__check-run-result-response','AI_REVIEW_MODE_ACCEPT_CHANGE','dismissButtonView','ck-ai-button-tertiary\x20ck-ai_review__check-run-result-info-button\x20ck-hidden','showDiff','acceptChange','ck-content','extendTemplate','menuitemcheckbox','deactivateChange','outdated','ck-ai-button-tertiary','execute','573313ktNKts','1627344PZCHGx','bindTemplate','hover','ck-ai_review__check-run-result-action-buttons'];_0x2076=function(){return _0x3b603a;};return _0x2076();}import{View as _0x5d0770,ButtonView as _0x28168c}from'ckeditor5/src/ui.js';function _0x247f(_0xf4f46e,_0x2a223c){const _0x2076a6=_0x2076();return _0x247f=function(_0x247fac,_0xb227eb){_0x247fac=_0x247fac-0x10d;let _0x1554f8=_0x2076a6[_0x247fac];return _0x1554f8;},_0x247f(_0xf4f46e,_0x2a223c);}import{IconInfo as _0x1022a4,IconCheck as _0x2279dc,IconCancel as _0x4bf6ff,IconOutdated as _0xad6282}from'ckeditor5/src/icons.js';import{getTranslation as _0x503e33}from'../../aicore/utils/common-translations.js';export class AIReviewCoreReviewCheckListItemResultsView extends _0x5d0770{[_0x48c44a(0x14a)];[_0x48c44a(0x150)];[_0x48c44a(0x111)];[_0x48c44a(0x12f)];[_0x48c44a(0x138)];constructor(_0x4fdd45,_0x1bb9cc){const _0x573729=_0x48c44a;super(_0x4fdd45),this['id']=_0x1bb9cc,this[_0x573729(0x142)](_0x573729(0x149),_0x573729(0x141)),this[_0x573729(0x142)](_0x573729(0x13e),_0x1bb9cc),this[_0x573729(0x14a)]=this[_0x573729(0x136)](),this[_0x573729(0x150)]=this[_0x573729(0x12d)](),this[_0x573729(0x111)]=this[_0x573729(0x158)](),this[_0x573729(0x12f)]=this[_0x573729(0x13d)](),this[_0x573729(0x138)]=this[_0x573729(0x144)](),this[_0x573729(0x142)](_0x573729(0x121),!0x1),this[_0x573729(0x142)](_0x573729(0x15a),!0x1),this[_0x573729(0x142)](_0x573729(0x113),!0x0),this[_0x573729(0x124)]({'tag':_0x573729(0x152),'attributes':{'class':[_0x573729(0x155),this[_0x573729(0x11e)]['if'](_0x573729(0x15a),_0x573729(0x146))]},'on':{'click':this[_0x573729(0x11e)]['to'](_0x573729(0x135)),'mouseover':this[_0x573729(0x11e)]['to'](_0x573729(0x159)),'mouseout':this[_0x573729(0x11e)]['to'](_0x573729(0x129))},'children':[this[_0x573729(0x14a)],{'tag':_0x573729(0x152),'attributes':{'class':[_0x573729(0x157)]},'children':[{'tag':_0x573729(0x152),'attributes':{'class':[_0x573729(0x120)]},'children':[this[_0x573729(0x150)],this[_0x573729(0x111)],this[_0x573729(0x138)]]},this[_0x573729(0x12f)]]}]}),this['on'](_0x573729(0x135),(_0xc75ea8,_0x2ad768)=>{const _0x548d3a=_0x573729;_0x2ad768&&_0x2ad768[_0x548d3a(0x123)]&&'A'===_0x2ad768[_0x548d3a(0x123)][_0x548d3a(0x12b)]&&_0x2ad768[_0x548d3a(0x132)](),this[_0x548d3a(0x13f)](_0x548d3a(0x10d),{'id':_0x1bb9cc,'source':this,'uiInteraction':_0x548d3a(0x135)});}),this['on'](_0x573729(0x159),()=>{const _0x9b5559=_0x573729;this[_0x9b5559(0x13f)](_0x9b5559(0x10d),{'id':_0x1bb9cc,'source':this,'uiInteraction':_0x9b5559(0x11f)});}),this['on'](_0x573729(0x129),()=>{const _0x72708e=_0x573729;this[_0x72708e(0x13f)](_0x72708e(0x118),{'origin':_0x72708e(0x14f),'id':_0x1bb9cc,'source':this});});}[_0x48c44a(0x133)](){const _0x2e8658=_0x48c44a;this[_0x2e8658(0x15a)]=!0x0;}[_0x48c44a(0x12c)](){const _0xb6c1e6=_0x48c44a;this[_0xb6c1e6(0x15a)]=!0x1;}[_0x48c44a(0x136)](){const _0x2478b7=_0x48c44a,_0x5be52e=new _0x5d0770(this[_0x2478b7(0x139)]);return _0x5be52e[_0x2478b7(0x124)]({'tag':_0x2478b7(0x152),'attributes':{'class':['ck',_0x2478b7(0x115),_0x2478b7(0x10e),_0x2478b7(0x10f),this[_0x2478b7(0x11e)]['if'](_0x2478b7(0x113),_0x2478b7(0x127),_0x521fdf=>!_0x521fdf)]}}),_0x5be52e;}[_0x48c44a(0x12d)](){const _0x5e1360=_0x48c44a,_0x4c5db4=new _0x28168c(this[_0x5e1360(0x139)]);return _0x4c5db4[_0x5e1360(0x142)]({'label':_0x503e33(this[_0x5e1360(0x139)],_0x5e1360(0x110)),'withText':!0x0}),_0x4c5db4[_0x5e1360(0x116)]({'on':{'click':this[_0x5e1360(0x11e)]['to'](_0x34eba7=>{const _0x4386f2=_0x5e1360;this[_0x4386f2(0x13f)](_0x4386f2(0x114),{'id':this[_0x4386f2(0x13e)]}),_0x34eba7[_0x4386f2(0x140)]();})},'attributes':{'class':[_0x5e1360(0x130),_0x5e1360(0x125),this[_0x5e1360(0x11e)]['if'](_0x5e1360(0x149),_0x5e1360(0x127),_0x4d21e9=>_0x5e1360(0x141)!==_0x4d21e9&&_0x5e1360(0x151)!==_0x4d21e9),this[_0x5e1360(0x11e)]['if'](_0x5e1360(0x149),_0x5e1360(0x125),_0x32c423=>_0x5e1360(0x141)===_0x32c423),this[_0x5e1360(0x11e)]['if'](_0x5e1360(0x149),_0x5e1360(0x13b),_0x11fdb1=>_0x5e1360(0x151)===_0x11fdb1)]}}),this['on'](_0x5e1360(0x14c),(_0x1e0013,_0x1a186d,_0x5a0a80)=>{const _0x3cfab3=_0x5e1360;_0x4c5db4[_0x3cfab3(0x14b)]=_0x3cfab3(0x141)===_0x5a0a80,_0x3cfab3(0x151)===_0x5a0a80&&(_0x4c5db4[_0x3cfab3(0x122)]=_0x503e33(this[_0x3cfab3(0x139)],_0x3cfab3(0x15b)),_0x4c5db4[_0x3cfab3(0x126)]=_0x2279dc);}),_0x4c5db4;}[_0x48c44a(0x158)](){const _0x5035df=_0x48c44a,_0x4dcf69=new _0x28168c(this[_0x5035df(0x139)]);return _0x4dcf69[_0x5035df(0x142)]({'label':_0x503e33(this[_0x5035df(0x139)],_0x5035df(0x14d)),'withText':!0x0}),_0x4dcf69[_0x5035df(0x116)]({'on':{'click':this[_0x5035df(0x11e)]['to'](_0x4f137c=>{const _0x51b8ed=_0x5035df;this[_0x51b8ed(0x13f)](_0x51b8ed(0x131),{'id':this[_0x51b8ed(0x13e)]}),_0x4f137c[_0x51b8ed(0x140)]();})},'attributes':{'class':[_0x5035df(0x11a),this[_0x5035df(0x11e)]['if'](_0x5035df(0x149),_0x5035df(0x127),_0xdb2fa7=>_0x5035df(0x141)!==_0xdb2fa7&&_0x5035df(0x148)!==_0xdb2fa7),this[_0x5035df(0x11e)]['if'](_0x5035df(0x149),_0x5035df(0x156),_0xff31bd=>_0x5035df(0x141)===_0xff31bd),this[_0x5035df(0x11e)]['if'](_0x5035df(0x149),_0x5035df(0x13b),_0x30d77d=>_0x5035df(0x148)===_0x30d77d)]}}),this['on'](_0x5035df(0x14c),(_0x47c470,_0x4c6235,_0x43a3dd)=>{const _0x2b015f=_0x5035df;_0x4dcf69[_0x2b015f(0x14b)]=_0x2b015f(0x141)===_0x43a3dd,_0x2b015f(0x148)===_0x43a3dd&&(_0x4dcf69[_0x2b015f(0x122)]=_0x503e33(this[_0x2b015f(0x139)],_0x2b015f(0x147)),_0x4dcf69[_0x2b015f(0x126)]=_0x4bf6ff);}),_0x4dcf69;}[_0x48c44a(0x13d)](){const _0x2362e8=_0x48c44a,_0x39f48a=new _0x28168c(this[_0x2362e8(0x139)]);return _0x39f48a[_0x2362e8(0x142)]({'label':_0x503e33(this[_0x2362e8(0x139)],_0x2362e8(0x12e)),'icon':_0x1022a4,'tooltip':!0x0,'isToggleable':!0x0,'role':_0x2362e8(0x117),'class':_0x2362e8(0x112)}),_0x39f48a[_0x2362e8(0x137)](_0x2362e8(0x153))['to'](this,_0x2362e8(0x121),_0x4c0053=>_0x4c0053),_0x39f48a['on'](_0x2362e8(0x11b),()=>{const _0x5e44fc=_0x2362e8;this[_0x5e44fc(0x121)]=!this[_0x5e44fc(0x121)];}),_0x39f48a;}[_0x48c44a(0x144)](){const _0xeef999=_0x48c44a,_0x1a6cf5=new _0x28168c(this[_0xeef999(0x139)]);return _0x1a6cf5[_0xeef999(0x142)]({'label':_0x503e33(this[_0xeef999(0x139)],_0xeef999(0x14e)),'icon':_0xad6282,'withText':!0x0,'isEnabled':!0x1}),_0x1a6cf5[_0xeef999(0x116)]({'attributes':{'class':[_0xeef999(0x130),_0xeef999(0x13b),this[_0xeef999(0x11e)]['if'](_0xeef999(0x149),_0xeef999(0x127),_0x4f270b=>_0xeef999(0x119)!==_0x4f270b)],'disabled':_0xeef999(0x13a)}}),_0x1a6cf5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Collection as
|
|
23
|
+
import{Collection as _0x41b92c,KeystrokeHandler as _0x615a2e,FocusTracker as ts}from'ckeditor5/src/utils.js';import{View as _0x36b035,ViewCollection as _0x37ace0,ButtonView as _0x4254c9,FormRowView as _0x27bbf7,createDropdown as _0x5000ba,addListToDropdown as _0x29210e,UIModel as _0x184ac5,ButtonLabelView as _0x4f671d,LabeledFieldView as _0x619d03,FocusCycler as _0x1b52a0}from'ckeditor5/src/ui.js';import{getTranslation as _0x110f95}from'../../aicore/utils/common-translations.js';import{AIReviewCorePromptInputView as _0x130441}from'./aireviewcorepromptinputview.js';export class AIReviewCoreCustomCheckView extends _0x36b035{['focusTracker']=new ts();['keystrokes']=new _0x615a2e();['focusCycler'];['_focusables']=new _0x37ace0();['submitButtonView'];['cancelButtonView'];['promptInputView'];['actionsFooterView'];['_modelSelectionDropdown'];['_modelNameView'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x12c43d,_0x1cd871,_0x1249de=!0x1){super(_0x12c43d),this['_check']=_0x1cd871,this['set']('prompt',''),this['set']('modelId',''),this['set']('modelDisplayMode','selector'),this['set']('activeModelName',null),this['_defaultValue']=_0x1cd871['defaultModel']?_0x1cd871['defaultModel']['id']:'',this['_defaultLabel']=_0x1cd871['defaultModel']?_0x1cd871['defaultModel']['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new _0x619d03(this['locale'],()=>new _0x130441(_0x12c43d)),this['promptInputView']['fieldView']['bind']('value')['to'](this,'prompt'),this['promptInputView']['fieldView']['on']('input',()=>{this['prompt']=this['promptInputView']['fieldView']['element']['value'];}),this['_modelSelectionDropdown']=this['_createModelSelectionDropdown'](),this['_modelSelectionDropdownItems']=new _0x41b92c(),this['_modelNameView']=this['_createModelNameView'](),this['_setModelList'](_0x1249de),_0x29210e(this['_modelSelectionDropdown'],this['_modelSelectionDropdownItems']),this['actionsFooterView']=this['_createActionsFooterView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-custom-actions']},'children':[new _0x27bbf7(this['locale'],{'children':[this['promptInputView']]}),new _0x27bbf7(this['locale'],{'children':[this['actionsFooterView']]})]}),this['promptInputView']['fieldView']['keystrokes']['set']('Enter',(_0x3afa56,_0x1731e1)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x1731e1()):_0x1731e1();}),this['focusCycler']=new _0x1b52a0({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}));}['render'](){super['render'](),([this['promptInputView'],this['_modelSelectionDropdown'],this['cancelButtonView'],this['submitButtonView']]['forEach'](_0x4ac6d0=>{this['_focusables']['add'](_0x4ac6d0),this['focusTracker']['add'](_0x4ac6d0['element']);}),this['keystrokes']['listenTo'](this['element']));}get['modelDefaultValue'](){return this['_defaultValue'];}get['modelDefaultLabel'](){return this['_defaultLabel'];}['resetToDefault'](){this['prompt']='',this['modelId']=this['modelDefaultValue'],this['_modelSelectionDropdown']['buttonView']['label']=this['modelDefaultLabel'],this['resetFormValidationStatus']();}['resetFormValidationStatus'](){this['promptInputView']['errorText']='';}['_isValid'](){this['resetFormValidationStatus']();for(const _0x42f1f3 of this['_getFormValidators']()){const _0x29c72b=_0x42f1f3();if(_0x29c72b)return this['promptInputView']['errorText']=_0x29c72b,!0x1;}return!0x0;}['_getFormValidators'](){return[()=>{if(0x0===this['promptInputView']['fieldView']['value']?.['trim']()['length'])return _0x110f95(this['locale'],'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR');}];}['_createSubmitButtonView'](){const _0x33d001=new _0x4254c9(this['locale']),t=this['locale']['t'];return _0x33d001['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x33d001['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x33d001;}['_createCancelButtonView'](){const _0x4d056b=new _0x4254c9(this['locale']),t=this['locale']['t'];return _0x4d056b['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary'}),_0x4d056b['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x3c4672=>{_0x3c4672['stopPropagation']();})}}),_0x4d056b['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x4d056b;}['_setModelList'](_0x56b45a){this['_modelSelectionDropdownItems']['clear']();const _0x102e32=this['_check']['models'];if(_0x56b45a)this['set']('modelDisplayMode','hidden');else{const _0x5178c2=0x1===_0x102e32['length'];this['set']('modelDisplayMode',_0x5178c2?'name':'selector');}if(this['resetToDefault'](),_0x102e32?.['length']){0x1===_0x102e32['length']&&this['set']('activeModelName',_0x102e32[0x0]['name']||_0x102e32[0x0]['id']);for(const _0x3ff058 of _0x102e32){const _0x9f122b=new _0x184ac5({'label':_0x3ff058['name'],'withText':!0x0,'role':'menuitemradio','id':_0x3ff058['id'],'model':_0x3ff058});_0x9f122b['bind']('isOn')['to'](this,'modelId',_0x3f9ea7=>_0x3f9ea7===_0x3ff058['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x9f122b,'labelView':new ko(this['locale'],_0x3ff058)});}}}['_createModelSelectionDropdown'](){const _0x3f6f4a=_0x5000ba(this['locale']);return _0x3f6f4a['set']({'panelPosition':'se','class':'ck-ai_review__check-list-item-model-dropdown'}),_0x3f6f4a['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),_0x3f6f4a['buttonView']['bind']('isVisible')['to'](this,'modelDisplayMode',_0x4282cd=>'selector'===_0x4282cd),this['listenTo'](_0x3f6f4a,'execute',_0x2facfb=>{this['modelId']=_0x2facfb['source']['model']['id'],_0x3f6f4a['buttonView']['label']=_0x2facfb['source']['label'];}),_0x3f6f4a;}['_createModelNameView'](){const _0x2e9c03=new _o(this['locale']);return _0x2e9c03['bind']('text')['to'](this,'activeModelName',_0x51cf41=>_0x51cf41??''),_0x2e9c03['bind']('isVisible')['to'](this,'modelDisplayMode',_0x2a6fd8=>'name'===_0x2a6fd8),_0x2e9c03;}['_createActionsFooterView'](){const _0x21c413=new _0x36b035(this['locale']);return _0x21c413['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-custom-actions-footer']},'children':[this['_modelSelectionDropdown'],this['_modelNameView'],{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized-custom-actions-buttons']},'children':[this['cancelButtonView'],this['submitButtonView']]}]}),_0x21c413;}}class _o extends _0x36b035{constructor(_0x2002d0){super(_0x2002d0),this['set']('text',void 0x0),this['set']('isVisible',!0x0);const _0x786ee5=this['bindTemplate'];this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai_review__check-list-item-model-name',_0x786ee5['if']('isVisible','ck-hidden',_0x560ac3=>!_0x560ac3)]},'children':[{'text':_0x786ee5['to']('text')}]});}}class ko extends _0x4f671d{constructor(_0x4e4462,_0x2b8bcf){super();const _0x2c96cb=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x2c96cb['to']('style'),'id':_0x2c96cb['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x2c96cb['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x2b8bcf['description']||'']}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x574663,_0xff03e7){var _0x1cca01=_0x3f91,_0x29da0f=_0x574663();while(!![]){try{var _0x1785ee=-parseInt(_0x1cca01(0xa8))/0x1+-parseInt(_0x1cca01(0xa4))/0x2*(-parseInt(_0x1cca01(0xae))/0x3)+parseInt(_0x1cca01(0xa5))/0x4+-parseInt(_0x1cca01(0xa9))/0x5*(parseInt(_0x1cca01(0xaa))/0x6)+-parseInt(_0x1cca01(0xad))/0x7+-parseInt(_0x1cca01(0xab))/0x8*(-parseInt(_0x1cca01(0xac))/0x9)+-parseInt(_0x1cca01(0xb2))/0xa*(-parseInt(_0x1cca01(0xb0))/0xb);if(_0x1785ee===_0xff03e7)break;else _0x29da0f['push'](_0x29da0f['shift']());}catch(_0x1d3522){_0x29da0f['push'](_0x29da0f['shift']());}}}(_0x5b4f,0xe86be));import{ButtonView as _0x3014e6}from'ckeditor5/src/ui.js';function _0x3f91(_0x2e456a,_0x4f4b78){var _0x5b4ffd=_0x5b4f();return _0x3f91=function(_0x3f91e6,_0x1cfdbe){_0x3f91e6=_0x3f91e6-0xa3;var _0x2fc2d3=_0x5b4ffd[_0x3f91e6];return _0x2fc2d3;},_0x3f91(_0x2e456a,_0x4f4b78);}import'../../../theme/aireviewcore/aireviewcore-review-completed.css';export class AIReviewCoreFinishReviewButtonView extends _0x3014e6{constructor(_0x40d8d6,_0x3c4256){var _0x3f605a=_0x3f91;super(_0x3c4256),this[_0x3f605a(0xaf)]({'label':_0x40d8d6,'withText':!0x0,'class':_0x3f605a(0xb1)}),this['on'](_0x3f605a(0xa7),()=>{var _0xda7c1d=_0x3f605a;this[_0xda7c1d(0xa3)](_0xda7c1d(0xa6));});}}function _0x5b4f(){var _0x586154=['set','24788269qAYmuZ','ck-ai-button-primary','10oNsXcY','fire','826IenwnM','2948008IziRfj','finishReview','execute','1388934pIQdcq','31435oBNMuL','750njJgas','16IqkLLu','910395FGoQxK','8244460vkwHto','8076yERWdf'];_0x5b4f=function(){return _0x586154;};return _0x5b4f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x448290=_0x285b;(function(_0x409f07,_0x1f9d33){var _0x4258de=_0x285b,_0x4885c1=_0x409f07();while(!![]){try{var _0x248857=-parseInt(_0x4258de(0x1fe))/0x1*(parseInt(_0x4258de(0x204))/0x2)+parseInt(_0x4258de(0x1fb))/0x3+-parseInt(_0x4258de(0x1f7))/0x4*(-parseInt(_0x4258de(0x202))/0x5)+-parseInt(_0x4258de(0x1f1))/0x6+parseInt(_0x4258de(0x206))/0x7+parseInt(_0x4258de(0x1fa))/0x8*(-parseInt(_0x4258de(0x205))/0x9)+-parseInt(_0x4258de(0x200))/0xa*(-parseInt(_0x4258de(0x1ff))/0xb);if(_0x248857===_0x1f9d33)break;else _0x4885c1['push'](_0x4885c1['shift']());}catch(_0x527dd1){_0x4885c1['push'](_0x4885c1['shift']());}}}(_0x370e,0x3a8de));import{TextareaView as _0x5d439c}from'ckeditor5/src/ui.js';import{KeystrokeHandler as _0x595e55}from'ckeditor5/src/utils.js';function _0x370e(){var _0x572d94=['99psOvBb','910511lgIKtW','listenTo','extendTemplate','minRows','MIN_ROWS','keystrokes','1708938ROdkjN','ck-review__prompt-input','element','value','set','trim','20vZPtlc','ai-review-prompt-input','render','233848OPYnRN','470673HJfShm','isEmpty','update','1SLazmb','2519yjXZox','24540sXxYFJ','MAX_ROWS','36370vunwjK','maxRows','78196aSAjHp'];_0x370e=function(){return _0x572d94;};return _0x370e();}function _0x285b(_0x521124,_0x640e3d){var _0x370eb5=_0x370e();return _0x285b=function(_0x285b1a,_0x2840d3){_0x285b1a=_0x285b1a-0x1ec;var _0x9c7311=_0x370eb5[_0x285b1a];return _0x9c7311;},_0x285b(_0x521124,_0x640e3d);}export class AIReviewCorePromptInputView extends _0x5d439c{[_0x448290(0x1f0)];static [_0x448290(0x1ef)]=0x1;static [_0x448290(0x201)]=0xc;constructor(_0x22a781){var _0x44eb7d=_0x448290;super(_0x22a781),this[_0x44eb7d(0x1f5)](_0x44eb7d(0x1fc),!0x0),this[_0x44eb7d(0x1f0)]=new _0x595e55(),this[_0x44eb7d(0x1ee)]=AIReviewCorePromptInputView[_0x44eb7d(0x1ef)],this[_0x44eb7d(0x203)]=AIReviewCorePromptInputView[_0x44eb7d(0x201)],this[_0x44eb7d(0x1ed)]({'attributes':{'id':_0x44eb7d(0x1f8),'class':['ck',_0x44eb7d(0x1f2)]}});}[_0x448290(0x1f9)](){var _0x4422ea=_0x448290;super[_0x4422ea(0x1f9)](),this['on'](_0x4422ea(0x1fd),()=>{var _0x5eaf03=_0x4422ea;this[_0x5eaf03(0x1fc)]=''===this[_0x5eaf03(0x1f3)][_0x5eaf03(0x1f4)]?.[_0x5eaf03(0x1f6)]();}),this[_0x4422ea(0x1f0)][_0x4422ea(0x1ec)](this[_0x4422ea(0x1f3)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c5923=_0x1dad;function _0x4551(){const _0x421397=['div','311420LBjMIh','_checkViews','_setupTemplate','ck-ai_review__check-list','setTemplate','locale','setChecks','bindTemplate','1538375KIGMIp','3lxicHu','hasChecks','resetToDefault','resetAllParameterizedChecks','isVisible','781CQlaan','runReviewCheck','entries','ck-hidden','135560msQRQA','length','28EMsldb','33422NNqmXT','add','delegate','98191BXWRJO','60270Jttode','99WkCaTs','458154qABMgK','clear'];_0x4551=function(){return _0x421397;};return _0x4551();}(function(_0x10b046,_0x13625c){const _0x3f6f8e=_0x1dad,_0x5e2272=_0x10b046();while(!![]){try{const _0x2399ef=parseInt(_0x3f6f8e(0x148))/0x1+parseInt(_0x3f6f8e(0x145))/0x2*(-parseInt(_0x3f6f8e(0x157))/0x3)+parseInt(_0x3f6f8e(0x14e))/0x4+parseInt(_0x3f6f8e(0x156))/0x5+-parseInt(_0x3f6f8e(0x14b))/0x6*(-parseInt(_0x3f6f8e(0x144))/0x7)+parseInt(_0x3f6f8e(0x160))/0x8*(-parseInt(_0x3f6f8e(0x14a))/0x9)+parseInt(_0x3f6f8e(0x149))/0xa*(-parseInt(_0x3f6f8e(0x15c))/0xb);if(_0x2399ef===_0x13625c)break;else _0x5e2272['push'](_0x5e2272['shift']());}catch(_0x3ffe2a){_0x5e2272['push'](_0x5e2272['shift']());}}}(_0x4551,0x269b6));import{ListItemView as _0x18b64d,ViewCollection as _0x4c52f0}from'ckeditor5/src/ui.js';import{AIReviewCoreReviewCommandListItemView as _0xf0b5f5}from'./aireviewcorereviewcommandlistitemview.js';function _0x1dad(_0x45a472,_0x4011e6){const _0x45513d=_0x4551();return _0x1dad=function(_0x1dad4c,_0x10a04c){_0x1dad4c=_0x1dad4c-0x143;let _0x34e3c2=_0x45513d[_0x1dad4c];return _0x34e3c2;},_0x1dad(_0x45a472,_0x4011e6);}import'../../../theme/aireviewcore/aireviewcore-check-list.css';export class AIReviewCoreReviewCheckListView extends _0x18b64d{[_0x5c5923(0x14f)];constructor(_0x553713){const _0xaefc5a=_0x5c5923;super(_0x553713),this[_0xaefc5a(0x14f)]=new _0x4c52f0(),this[_0xaefc5a(0x150)]();}[_0x5c5923(0x154)](_0x2ec5a5,_0x5163aa=!0x1){const _0x34645d=_0x5c5923;this[_0x34645d(0x14f)][_0x34645d(0x14c)]();for(const [_0x3eb9f8,_0x45de8d]of _0x2ec5a5[_0x34645d(0x15e)]()){const _0x107b8f=new _0xf0b5f5(this[_0x34645d(0x153)],_0x45de8d,_0x3eb9f8,_0x5163aa);_0x107b8f[_0x34645d(0x147)](_0x34645d(0x15d))['to'](this),this[_0x34645d(0x14f)][_0x34645d(0x146)](_0x107b8f);}}[_0x5c5923(0x158)](){const _0x56aec1=_0x5c5923;return this[_0x56aec1(0x14f)][_0x56aec1(0x143)]>0x0;}[_0x5c5923(0x15a)](){const _0x3add1f=_0x5c5923;for(const _0x31ec34 of this[_0x3add1f(0x14f)])_0x31ec34 instanceof _0xf0b5f5&&_0x31ec34[_0x3add1f(0x159)]();}[_0x5c5923(0x150)](){const _0x234f4c=_0x5c5923,_0x52cbda=this[_0x234f4c(0x155)];this[_0x234f4c(0x152)]({'tag':_0x234f4c(0x14d),'attributes':{'class':[_0x234f4c(0x151),_0x52cbda['if'](_0x234f4c(0x15b),_0x234f4c(0x15f),_0x24b381=>!_0x24b381)]},'children':this[_0x234f4c(0x14f)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as
|
|
23
|
+
import{ListItemView as _0x35d83b,IconView as _0x46d515,View as _0x1a03af,ViewCollection as _0x482f17,ButtonView as _0x2fc35c,clickOutsideHandler as _0x3f2518}from'ckeditor5/src/ui.js';import{IconChevronRight as _0x373958}from'ckeditor5/src/icons.js';import{AIReviewCoreFormManagerView as _0x2ca5ac}from'./form/aireviewcoreformmanager.js';import{AIReviewCoreCustomCheckView as _0x31c82a}from'./aireviewcorecustomcheckview.js';export class AIReviewCoreReviewCommandListItemView extends _0x35d83b{['_formItemsCollection']=new _0x482f17();['_customCheckView']=null;['_hideModels']=!0x1;constructor(_0x2ac437,_0x14fb90,_0x20d324,_0x361c73=!0x1){super(_0x2ac437),this['_hideModels']=_0x361c73,this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x14fb90['isParameterized']);const _0x4903cf=this['_createIconView']();this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item',this['bindTemplate']['if']('isParametrizedViewOpen','ck-ai_review__check-list-item_selected',_0x9e744d=>_0x9e744d),this['bindTemplate']['if']('isListItemRendered','ck-ai_review__check-list-item_rendered',_0x5d4ca9=>_0x5d4ca9)],'style':{'--ck-ai-review-check-list-item-index':_0x20d324}},'on':{'click':this['bindTemplate']['to']('click')},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-main-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-title']},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__check-list-item-title-text']},'children':[{'text':_0x14fb90['title']}]},_0x4903cf]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-description']},'children':_0x14fb90['description']?[{'text':_0x14fb90['description']}]:[]}]}]},..._0x14fb90['isParameterized']?[this['_createParameterizedView'](_0x14fb90)]:[],...'custom'===_0x14fb90['id']?[this['_createCustomView'](_0x14fb90,this['_hideModels'])]:[]]}),this['on']('click',()=>{_0x14fb90['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x14fb90['id'],'args':_0x14fb90['useArgs']?_0x14fb90['args']:void 0x0});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&_0x3f2518({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x368910=>{_0x368910['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x258a07=new _0x46d515();return _0x258a07['content']=_0x373958,_0x258a07['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-title-icon']}}),_0x258a07;}['_createParameterizedView'](_0x132240){const _0x5485f2=new _0x1a03af(),_0x36bffa=this['_createFormView'](_0x132240);return _0x5485f2['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x21fdc8=>!_0x21fdc8)]},'children':[_0x36bffa]}),_0x5485f2;}['_createFormView'](_0x54e5da){const _0x295e9e=new _0x1a03af(),_0x26a171=Array['isArray'](_0x54e5da['options'])?_0x54e5da['options']:[],_0x4da7a3=new _0x2fc35c(this['locale']),t=this['locale']['t'];_0x4da7a3['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x4da7a3['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x367b26=>{_0x367b26['stopPropagation']();})}}),_0x4da7a3['on']('execute',()=>{const _0x3873fc=[],_0x1d7bf0={};this['_formItemsCollection']['forEach'](_0x4da6e7=>{_0x3873fc['push'](_0x4da6e7['value']),_0x54e5da['useArgs']&&_0x54e5da['options']&&(_0x1d7bf0[_0x4da6e7['argsKey']]=_0x4da6e7['value']);}),this['fire']('runReviewCheck',{'id':_0x54e5da['id'],'params':_0x3873fc['length']?_0x3873fc:void 0x0,'args':Object['keys'](_0x1d7bf0)['length']?_0x1d7bf0:void 0x0});});const _0x2f0e65=_0x26a171['length'];return _0x26a171['forEach']((_0x3fed24,_0x3888e2)=>{const _0x11432b=_0x3888e2===_0x2f0e65-0x1;this['_formItemsCollection']['add'](new _0x2ca5ac(this['locale'],_0x3fed24,_0x11432b?_0x4da7a3:null));}),_0x295e9e['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x295e9e;}['_createCustomView'](_0x5bdc14,_0x50443a=!0x1){return this['_customCheckView']=new _0x31c82a(this['locale'],_0x5bdc14,_0x50443a),this['_customCheckView']['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-parameterized','ck-ai_review__check-list-item-parameterized_custom',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x12dc83=>!_0x12dc83)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x2b4bc0,_0xb0a606,_0x5cc43b)=>{_0x5cc43b||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as _0x2b1a12,View as _0x17291b,ViewCollection as _0x298858,ButtonView as _0x469a3f}from'ckeditor5/src/ui.js';import{IconStop as _0x22282d,IconEye as _0x4362d8,IconEyeCrossedOut as _0xff1b8e}from'ckeditor5/src/icons.js';import{AISkeletonView as _0x5a4b7b,SKELETON_DEFINITIONS as _0x1b6d35}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x2f5576}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x1c31af}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x34e6c2}from'../../aicore/ui/aispinner.js';import{AIReviewCoreReviewCheckListItemResultsView as _0x8f6a31}from'./aireviewcorechecklistitemresultview.js';import{AIReviewCoreFinishReviewButtonView as _0x3932ea}from'./aireviewcorefinishreviewbuttonview.js';import'../../../theme/aireviewcore/aireviewcore-check-run.css';import'../../../theme/aireviewcore/aireviewcore-check-run-result.css';export class AIReviewCoreUICheckResultsView extends _0x2b1a12{['_resultViews'];['_resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];['_contents'];constructor(_0x11abe2,_0x1be62b){super(_0x11abe2),this['_contents']=_0x1be62b,this['_resultViews']=new _0x298858(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](),this['_resultsHeader']=this['_createResultHeaderView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new _0x2f5576(_0x11abe2),this['set']('isLoading',!0x1),this['set']('isToggleDiffOn',!0x1),this['set']('isResultReady',!0x1),this['set']('headerTitle',''),this['set']('headerSubtitle',''),this['set']('isError',!0x1),this['set']('showErrorMessage',!0x1),this['set']('errorType','general'),this['set']('isCompleted',!0x1);const _0x374737=this['_createCombinedSkeletonLoader'](),_0x2c26f2=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run',_0x2c26f2['if']('isLoading','ck-ai_review__check-run_loading',_0x413edf=>_0x413edf),_0x2c26f2['if']('isResultReady','ck-ai_review__check-run_ready',_0x32d561=>_0x32d561),_0x2c26f2['if']('isVisible','ck-hidden',_0x4fbeb9=>!_0x4fbeb9)]},'children':[this['_resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-container','ck-reset_all-excluded',this['bindTemplate']['if']('isLoading','ck-hidden',_0x396b73=>_0x396b73)]},'children':this['_resultViews']},_0x374737]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x446567){const _0x14343=new _0x8f6a31(this['locale'],_0x446567['id']);_0x14343['delegate']('acceptChange','dismissChange','activateChange','deactivateChange')['to'](this),this['_resultViews']['add'](_0x14343),_0x14343['resultResponseView']['element']['innerHTML']=_0x446567['contentDiffed'];}['hideResult'](_0x132d2f,_0x5ad51d){if('pending'===_0x5ad51d)return;const _0x5828a3=this['_resultViews']['find'](_0x40e21b=>_0x40e21b['id']===_0x132d2f);_0x5828a3&&(_0x5828a3['status']=_0x5ad51d,_0x5828a3['element']?.['classList']['add']('ck-ai_review__check-run-result_grayout'));}['showResult'](_0x422dc1,_0x395aba){if('pending'!==_0x395aba)return;const _0x47fc5d=this['_resultViews']['find'](_0x1eae1a=>_0x1eae1a['id']===_0x422dc1);_0x47fc5d&&(_0x47fc5d['status']=_0x395aba,_0x47fc5d['element']?.['classList']['remove']('ck-ai_review__check-run-result_grayout'));}['setTitle'](_0x1abeb8,_0x13bacb){this['headerTitle']=_0x1abeb8,this['headerSubtitle']=_0x13bacb||'';}['showChunkErrorMessage'](){this['errorType']='chunk',this['showErrorMessage']=!0x0;}['showGeneralErrorMessage'](){this['isError']=!0x0,this['errorType']='general',this['showErrorMessage']=!0x0;}['resetErrorState'](){this['isError']=!0x1,this['errorType']='general',this['showErrorMessage']=!0x1;}['_createSkeletonLoader'](){return new _0x5a4b7b(this['locale'],_0x1b6d35['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x292f95=new _0x17291b(this['locale']),_0x208d89=[];for(let _0x376f99=0x0;_0x376f99<0x10;_0x376f99++){const _0x7d3a3f=this['_createSkeletonLoader']();_0x7d3a3f['extendTemplate']({'attributes':{'class':['ck-ai_review__check-run-skeleton-item']}}),_0x208d89['push'](_0x7d3a3f);}return _0x292f95['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x191b86=>!_0x191b86)]},'children':_0x208d89}),_0x292f95;}['_createErrorView'](){const _0x2c41aa=new _0x17291b(this['locale']),_0x1d2850=new _0x469a3f(this['locale']),t=this['locale']['t'];return _0x2c41aa['delegate']('retryReview')['to'](this),_0x1d2850['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai_review__check-run-error-retry-button'}),_0x1d2850['on']('execute',()=>{this['fire']('retryReview');}),_0x2c41aa['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x1473da=>!_0x1473da),this['bindTemplate']['if']('errorType','ck-ai_review__check-run-error-container_border-bottom',_0x567df8=>'chunk'===_0x567df8)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error','ck-ai-notification__full-width','ck-ai_review__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-notification_warning',_0xebf566=>'chunk'===_0xebf566)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x410082=>'general'!==_0x410082)]},'children':[{'text':this['_contents']['generalErrorText']}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x28db40=>'chunk'!==_0x28db40)]},'children':[{'text':_0x1c31af(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x1d2850]}),_0x2c41aa;}['_createCancelButtonView'](){const _0x1d0b4e=new _0x469a3f(this['locale']);return _0x1d0b4e['set']({'label':_0x1c31af(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0x22282d}),_0x1d0b4e['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x5a7edb=>_0x5a7edb),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x3fe2d0=>_0x3fe2d0)]}}),_0x1d0b4e['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x1d0b4e;}['_createToggleDiffButtonView'](){const _0x5504d2=new _0x469a3f(this['locale']);_0x5504d2['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x5504d2['bind']('isEnabled')['to'](this,'isError',_0xe66d36=>!_0xe66d36),_0x5504d2['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x433967=>!_0x433967),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x23ebaf=>_0x23ebaf)]}});const _0x29a29e=_0x1c31af(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x39dd11=_0x1c31af(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x5504d2['bind']('isOn')['to'](this,'isToggleDiffOn',_0x59cfa8=>_0x59cfa8),_0x5504d2['bind']('icon')['to'](this,'isToggleDiffOn',_0x583338=>_0x583338?_0x4362d8:_0xff1b8e),_0x5504d2['bind']('label')['to'](this,'isToggleDiffOn',_0x1f8ffc=>_0x1f8ffc?_0x29a29e:_0x39dd11),_0x5504d2['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x5504d2;}['_createAcceptAllButtonView'](){const _0x51e6ad=new _0x469a3f(this['locale']);return _0x51e6ad['set']({'label':_0x1c31af(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x51e6ad['bind']('isEnabled')['to'](this,'isError',_0xe9a028=>!_0xe9a028),_0x51e6ad['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai_review__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x486a4e=>!_0x486a4e),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x282b2a=>_0x282b2a)]}}),_0x51e6ad['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x51e6ad;}['_createExitReviewButtonView'](){const _0x57650d=new _0x469a3f(this['locale']);return _0x57650d['set']({'label':_0x1c31af(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x57650d['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary','ck-ai_review__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x36463d=>!_0x36463d),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x298550=>_0x298550)]}}),_0x57650d['on']('execute',()=>{this['fire']('leaveReviewCoreResultList');}),_0x57650d;}['_createResultHeaderView'](){const _0x12deea=new _0x17291b(this['locale']),_0x523d5e=this['_createTitleView']();return _0x12deea['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai_review__review-completed-header',_0x32a1c3=>_0x32a1c3)]},'children':[_0x523d5e,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x12deea;}['_createTitleView'](){const _0x13a0c0=new _0x17291b(this['locale']),_0x554662=new _0x34e6c2();return _0x554662['bind']('isVisible')['to'](this,'isResultReady',_0x153c57=>!_0x153c57),_0x13a0c0['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-wrapper']},'children':[_0x554662,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0xe8e474=>_0xe8e474)]},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'span','attributes':{'class':['ck-ai_review__check-run-results-header-subtitle']},'children':[{'text':this['bindTemplate']['to']('headerSubtitle')}]}]},{'tag':'span','attributes':{'class':['ck-ai_review__review-completed-header-title',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x2da98a=>!_0x2da98a)]},'children':[{'text':_0x1c31af(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x13a0c0;}['_createFinishReviewButtonView'](){const _0x1e7580=new _0x3932ea(_0x1c31af(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL'),this['locale']);return _0x1e7580['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x3af250=>!_0x3af250)]}}),_0x1e7580['delegate']('finishReview')['to'](this),_0x1e7580;}}
|
|
23
|
+
import{ListItemView as _0x5780b3,View as _0x1da9fb,ViewCollection as _0x27d807,ButtonView as _0x1fa9a5}from'ckeditor5/src/ui.js';import{IconStop as _0x1d3955,IconEye as _0x4858d2,IconEyeCrossedOut as _0x4cd2c9}from'ckeditor5/src/icons.js';import{AISkeletonView as _0x1e49e1,SKELETON_DEFINITIONS as _0xbe2f2}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x473514}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x39d592}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x5a47cc}from'../../aicore/ui/aispinner.js';import{AIReviewCoreReviewCheckListItemResultsView as _0x390bb8}from'./aireviewcorechecklistitemresultview.js';import{AIReviewCoreFinishReviewButtonView as _0x1310cd}from'./aireviewcorefinishreviewbuttonview.js';import'../../../theme/aireviewcore/aireviewcore-check-run.css';import'../../../theme/aireviewcore/aireviewcore-check-run-result.css';export class AIReviewCoreUICheckResultsView extends _0x5780b3{['_resultViews'];['_resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];['_contents'];constructor(_0x29a232,_0x1e8634){super(_0x29a232),this['_contents']=_0x1e8634,this['_resultViews']=new _0x27d807(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](),this['_resultsHeader']=this['_createResultHeaderView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new _0x473514(_0x29a232),this['set']('isLoading',!0x1),this['set']('isToggleDiffOn',!0x1),this['set']('isResultReady',!0x1),this['set']('headerTitle',''),this['set']('headerSubtitle',''),this['set']('isError',!0x1),this['set']('showErrorMessage',!0x1),this['set']('errorType','general'),this['set']('isCompleted',!0x1);const _0x30ffc6=this['_createCombinedSkeletonLoader'](),_0xb4d985=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run',_0xb4d985['if']('isLoading','ck-ai_review__check-run_loading',_0x4dfef2=>_0x4dfef2),_0xb4d985['if']('isResultReady','ck-ai_review__check-run_ready',_0x2c477b=>_0x2c477b),_0xb4d985['if']('isVisible','ck-hidden',_0x5a0fb5=>!_0x5a0fb5)]},'children':[this['_resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-container','ck-reset_all-excluded',this['bindTemplate']['if']('isLoading','ck-hidden',_0x5a3eaf=>_0x5a3eaf)]},'children':this['_resultViews']},_0x30ffc6]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x30a0c6){const _0x635f20=new _0x390bb8(this['locale'],_0x30a0c6['id']);_0x635f20['delegate']('acceptChange','dismissChange','activateChange','deactivateChange')['to'](this),this['_resultViews']['add'](_0x635f20),_0x635f20['resultResponseView']['element']['innerHTML']=_0x30a0c6['contentDiffed'];}['hideResult'](_0x2d2a72,_0x17dcd6){if('pending'===_0x17dcd6)return;const _0x5d5d80=this['_resultViews']['find'](_0xceb6dd=>_0xceb6dd['id']===_0x2d2a72);_0x5d5d80&&(_0x5d5d80['status']=_0x17dcd6,_0x5d5d80['element']?.['classList']['add']('ck-ai_review__check-run-result_grayout'));}['showResult'](_0x186aad,_0x44fd6a){if('pending'!==_0x44fd6a)return;const _0xbb540b=this['_resultViews']['find'](_0xa75dad=>_0xa75dad['id']===_0x186aad);_0xbb540b&&(_0xbb540b['status']=_0x44fd6a,_0xbb540b['element']?.['classList']['remove']('ck-ai_review__check-run-result_grayout'));}['setTitle'](_0x596281,_0x48e775){this['headerTitle']=_0x596281,this['headerSubtitle']=_0x48e775||'';}['showChunkErrorMessage'](){this['errorType']='chunk',this['showErrorMessage']=!0x0;}['showGeneralErrorMessage'](){this['isError']=!0x0,this['errorType']='general',this['showErrorMessage']=!0x0;}['resetErrorState'](){this['isError']=!0x1,this['errorType']='general',this['showErrorMessage']=!0x1;}['_createSkeletonLoader'](){return new _0x1e49e1(this['locale'],_0xbe2f2['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0xbeb24f=new _0x1da9fb(this['locale']),_0x580643=[];for(let _0x5b1c4a=0x0;_0x5b1c4a<0x10;_0x5b1c4a++){const _0x4e9ded=this['_createSkeletonLoader']();_0x4e9ded['extendTemplate']({'attributes':{'class':['ck-ai_review__check-run-skeleton-item']}}),_0x580643['push'](_0x4e9ded);}return _0xbeb24f['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x298185=>!_0x298185)]},'children':_0x580643}),_0xbeb24f;}['_createErrorView'](){const _0x105b85=new _0x1da9fb(this['locale']),_0x219b47=new _0x1fa9a5(this['locale']),t=this['locale']['t'];return _0x105b85['delegate']('retryReview')['to'](this),_0x219b47['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai_review__check-run-error-retry-button'}),_0x219b47['on']('execute',()=>{this['fire']('retryReview');}),_0x105b85['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x56996b=>!_0x56996b),this['bindTemplate']['if']('errorType','ck-ai_review__check-run-error-container_border-bottom',_0x39f7f1=>'chunk'===_0x39f7f1)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error','ck-ai-notification__full-width','ck-ai_review__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-notification_warning',_0x57dec0=>'chunk'===_0x57dec0)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x538ec9=>'general'!==_0x538ec9)]},'children':[{'text':this['_contents']['generalErrorText']}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x4e664c=>'chunk'!==_0x4e664c)]},'children':[{'text':_0x39d592(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x219b47]}),_0x105b85;}['_createCancelButtonView'](){const _0x3ff30d=new _0x1fa9a5(this['locale']);return _0x3ff30d['set']({'label':_0x39d592(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0x1d3955}),_0x3ff30d['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x3af688=>_0x3af688),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x2ce00e=>_0x2ce00e)]}}),_0x3ff30d['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x3ff30d;}['_createToggleDiffButtonView'](){const _0x5b928e=new _0x1fa9a5(this['locale']);_0x5b928e['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x5b928e['bind']('isEnabled')['to'](this,'isError',_0x4a37a0=>!_0x4a37a0),_0x5b928e['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x59840a=>!_0x59840a),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x401a91=>_0x401a91)]}});const _0x1d4583=_0x39d592(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x381adf=_0x39d592(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x5b928e['bind']('isOn')['to'](this,'isToggleDiffOn',_0x2ba2a4=>_0x2ba2a4),_0x5b928e['bind']('icon')['to'](this,'isToggleDiffOn',_0x1afacb=>_0x1afacb?_0x4858d2:_0x4cd2c9),_0x5b928e['bind']('label')['to'](this,'isToggleDiffOn',_0x8dfeb2=>_0x8dfeb2?_0x1d4583:_0x381adf),_0x5b928e['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x5b928e;}['_createAcceptAllButtonView'](){const _0x572b4d=new _0x1fa9a5(this['locale']);return _0x572b4d['set']({'label':_0x39d592(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x572b4d['bind']('isEnabled')['to'](this,'isError',_0x27a61b=>!_0x27a61b),_0x572b4d['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai_review__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x1e7fa3=>!_0x1e7fa3),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x319781=>_0x319781)]}}),_0x572b4d['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x572b4d;}['_createExitReviewButtonView'](){const _0x26d69b=new _0x1fa9a5(this['locale']);return _0x26d69b['set']({'label':_0x39d592(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x26d69b['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary','ck-ai_review__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x341b51=>!_0x341b51),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x11860e=>_0x11860e)]}}),_0x26d69b['on']('execute',()=>{this['fire']('leaveReviewCoreResultList');}),_0x26d69b;}['_createResultHeaderView'](){const _0x455e34=new _0x1da9fb(this['locale']),_0x391549=this['_createTitleView']();return _0x455e34['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai_review__review-completed-header',_0x178a9c=>_0x178a9c)]},'children':[_0x391549,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x455e34;}['_createTitleView'](){const _0x26ddca=new _0x1da9fb(this['locale']),_0x25c10c=new _0x5a47cc();return _0x25c10c['bind']('isVisible')['to'](this,'isResultReady',_0x4b845c=>!_0x4b845c),_0x26ddca['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-wrapper']},'children':[_0x25c10c,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x1e5df7=>_0x1e5df7)]},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'span','attributes':{'class':['ck-ai_review__check-run-results-header-subtitle']},'children':[{'text':this['bindTemplate']['to']('headerSubtitle')}]}]},{'tag':'span','attributes':{'class':['ck-ai_review__review-completed-header-title',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x263076=>!_0x263076)]},'children':[{'text':_0x39d592(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x26ddca;}['_createFinishReviewButtonView'](){const _0x1ac3c2=new _0x1310cd(_0x39d592(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL'),this['locale']);return _0x1ac3c2['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x3f8947=>!_0x3f8947)]}}),_0x1ac3c2['delegate']('finishReview')['to'](this),_0x1ac3c2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x15c605=_0x2a05;function _0x3c9d(){var _0x4c0362=['36323UCLwLV','ck-ai-review','isCompleted','showReviewCheckListView','656701yPESLy','generalErrorView','reviewCheckListView','ltr','set','showGeneralReviewCoreErrorView','resetAllParameterizedChecks','showGeneralResultsErrorView','hideActionsWhenResultIsReady','showReviewCompletedView','addCheckRunResult','ck-rounded-corners','setTemplate','12meSJjM','isLoading','8245278oeQbLF','showReviewCheckResultsView','showGeneralErrorMessage','showNoChangesView','errorMessage','reviewCoreHeader','resetErrorState','isResultReady','list','header','3029058swWBuv','ck-reset_all','showChunkErrorView','9555450EBgCCF','completed','2288268sCTsvR','4eMyrGw','isVisible','showChunkErrorMessage','clearResults','11jwhnLM','reviewCheckResultsView','8YmPXJK','showActionsWhenResultIsReady','delegate','results','reviewCompletedView','div','5zvmMqu','addResult','114qKFwpk','12878463inJBIH','finishReview'];_0x3c9d=function(){return _0x4c0362;};return _0x3c9d();}(function(_0x801923,_0x271f86){var _0x355440=_0x2a05,_0x2e184b=_0x801923();while(!![]){try{var _0x386427=parseInt(_0x355440(0x175))/0x1*(parseInt(_0x355440(0x160))/0x2)+-parseInt(_0x355440(0x15a))/0x3+parseInt(_0x355440(0x15f))/0x4*(-parseInt(_0x355440(0x16c))/0x5)+parseInt(_0x355440(0x16e))/0x6*(parseInt(_0x355440(0x171))/0x7)+parseInt(_0x355440(0x166))/0x8*(parseInt(_0x355440(0x184))/0x9)+parseInt(_0x355440(0x15d))/0xa*(-parseInt(_0x355440(0x164))/0xb)+parseInt(_0x355440(0x182))/0xc*(parseInt(_0x355440(0x16f))/0xd);if(_0x386427===_0x271f86)break;else _0x2e184b['push'](_0x2e184b['shift']());}catch(_0x436d1e){_0x2e184b['push'](_0x2e184b['shift']());}}}(_0x3c9d,0xbecb0));import{View as _0x22acfc}from'ckeditor5/src/ui.js';function _0x2a05(_0x23ba88,_0x5d7053){var _0x3c9d35=_0x3c9d();return _0x2a05=function(_0x2a05f3,_0x2c1c50){_0x2a05f3=_0x2a05f3-0x15a;var _0x43dc28=_0x3c9d35[_0x2a05f3];return _0x43dc28;},_0x2a05(_0x23ba88,_0x5d7053);}import{AI_REVIEW_MODE_UI_EVENT_NAMES as _0x21a6cf}from'../aireviewcoreui.js';import{AIReviewCoreGeneralErrorView as _0x157945}from'./aireviewcoregeneralerrorview.js';export class AIReviewCoreView extends _0x22acfc{[_0x15c605(0x189)];[_0x15c605(0x176)];[_0x15c605(0x177)];[_0x15c605(0x165)];[_0x15c605(0x16a)];constructor(_0x12bab6,_0x5b0d91){var _0x28b7ff=_0x15c605;super(_0x12bab6),this[_0x28b7ff(0x189)]=_0x5b0d91[_0x28b7ff(0x18d)],this[_0x28b7ff(0x176)]=new _0x157945(_0x12bab6),this[_0x28b7ff(0x177)]=_0x5b0d91[_0x28b7ff(0x18c)],this[_0x28b7ff(0x177)][_0x28b7ff(0x168)](..._0x21a6cf)['to'](this),this[_0x28b7ff(0x165)]=_0x5b0d91[_0x28b7ff(0x169)],this[_0x28b7ff(0x165)][_0x28b7ff(0x168)](..._0x21a6cf)['to'](this),this[_0x28b7ff(0x16a)]=_0x5b0d91[_0x28b7ff(0x15e)],this[_0x28b7ff(0x16a)][_0x28b7ff(0x168)](_0x28b7ff(0x170))['to'](this),this[_0x28b7ff(0x177)][_0x28b7ff(0x179)](_0x28b7ff(0x161),!0x1),this[_0x28b7ff(0x165)][_0x28b7ff(0x179)](_0x28b7ff(0x161),!0x1),this[_0x28b7ff(0x165)][_0x28b7ff(0x179)](_0x28b7ff(0x183),!0x1),this[_0x28b7ff(0x165)][_0x28b7ff(0x179)](_0x28b7ff(0x18b),!0x1),this[_0x28b7ff(0x16a)][_0x28b7ff(0x179)](_0x28b7ff(0x161),!0x1),this[_0x28b7ff(0x181)]({'tag':_0x28b7ff(0x16b),'attributes':{'class':['ck',_0x28b7ff(0x15b),_0x28b7ff(0x172),_0x28b7ff(0x180)],'dir':_0x28b7ff(0x178)},'children':[this[_0x28b7ff(0x189)],this[_0x28b7ff(0x176)],this[_0x28b7ff(0x177)],this[_0x28b7ff(0x165)],this[_0x28b7ff(0x16a)]]});}[_0x15c605(0x174)](){var _0x36bafd=_0x15c605;this[_0x36bafd(0x177)][_0x36bafd(0x17b)](),this[_0x36bafd(0x177)][_0x36bafd(0x179)](_0x36bafd(0x161),!0x0),this[_0x36bafd(0x165)][_0x36bafd(0x179)](_0x36bafd(0x161),!0x1),this[_0x36bafd(0x16a)][_0x36bafd(0x179)](_0x36bafd(0x161),!0x1);}[_0x15c605(0x185)](){var _0x1e4ae9=_0x15c605;this[_0x1e4ae9(0x17d)](),this[_0x1e4ae9(0x165)][_0x1e4ae9(0x18a)](),this[_0x1e4ae9(0x177)][_0x1e4ae9(0x179)](_0x1e4ae9(0x161),!0x1),this[_0x1e4ae9(0x165)][_0x1e4ae9(0x179)](_0x1e4ae9(0x161),!0x0),this[_0x1e4ae9(0x165)][_0x1e4ae9(0x163)](),this[_0x1e4ae9(0x165)][_0x1e4ae9(0x179)](_0x1e4ae9(0x183),!0x0),this[_0x1e4ae9(0x165)][_0x1e4ae9(0x179)](_0x1e4ae9(0x173),!0x1);}[_0x15c605(0x17f)](_0x297ceb){var _0x43fbe7=_0x15c605;this[_0x43fbe7(0x165)][_0x43fbe7(0x16d)](_0x297ceb),this[_0x43fbe7(0x165)][_0x43fbe7(0x179)](_0x43fbe7(0x183),!0x1);}[_0x15c605(0x17e)](){var _0x2f3893=_0x15c605;this[_0x2f3893(0x165)][_0x2f3893(0x179)](_0x2f3893(0x161),!0x0),this[_0x2f3893(0x16a)][_0x2f3893(0x179)](_0x2f3893(0x161),!0x1),this[_0x2f3893(0x165)][_0x2f3893(0x179)](_0x2f3893(0x173),!0x0),this[_0x2f3893(0x177)][_0x2f3893(0x179)](_0x2f3893(0x161),!0x1);}[_0x15c605(0x167)](){var _0x3e8ca1=_0x15c605;this[_0x3e8ca1(0x165)][_0x3e8ca1(0x18b)]?(this[_0x3e8ca1(0x177)][_0x3e8ca1(0x179)](_0x3e8ca1(0x161),!0x1),this[_0x3e8ca1(0x165)][_0x3e8ca1(0x179)](_0x3e8ca1(0x161),!0x0),this[_0x3e8ca1(0x16a)][_0x3e8ca1(0x179)](_0x3e8ca1(0x161),!0x1)):this[_0x3e8ca1(0x165)][_0x3e8ca1(0x18b)]=!0x0;}[_0x15c605(0x187)](){var _0x57cff2=_0x15c605;this[_0x57cff2(0x177)][_0x57cff2(0x179)](_0x57cff2(0x161),!0x1),this[_0x57cff2(0x165)][_0x57cff2(0x179)](_0x57cff2(0x161),!0x1),this[_0x57cff2(0x16a)][_0x57cff2(0x179)](_0x57cff2(0x161),!0x0);}[_0x15c605(0x17d)](){var _0x36408b=_0x15c605;this[_0x36408b(0x165)][_0x36408b(0x18b)]=!0x1;}[_0x15c605(0x17a)](_0x2d2f03){var _0x3e6801=_0x15c605;this[_0x3e6801(0x176)][_0x3e6801(0x179)](_0x3e6801(0x161),!0x0),this[_0x3e6801(0x176)][_0x3e6801(0x188)]=_0x2d2f03;}[_0x15c605(0x17c)](){var _0x50befc=_0x15c605;this[_0x50befc(0x165)][_0x50befc(0x179)](_0x50befc(0x183),!0x1),this[_0x50befc(0x167)](),this[_0x50befc(0x165)][_0x50befc(0x186)]();}[_0x15c605(0x15c)](){var _0x3e930b=_0x15c605;this[_0x3e930b(0x165)][_0x3e930b(0x179)](_0x3e930b(0x183),!0x1),this[_0x3e930b(0x167)](),this[_0x3e930b(0x165)][_0x3e930b(0x162)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x397c23=_0x25cd;function _0x519f(){const _0x511245=['bind','length','733590gzlyZX','1363099KUBByh','locale','div','find','set','369230PdSlVA','execute','button','64pOXWGr','ck-ai_review__check-list-item-parameterized-form-element','menuitemradio','menu','32dIkkQF','33196941xUfpJg','default','buttonView','_prepareListOptions','setTemplate','_defaultValue','resetToDefault','525606OkZInQ','listenTo','model','1967917aHfkiA','data','_defaultLabel','isOn','extendTemplate','stopPropagation','label','_dropdownView','10sxZKYz','add','7915194UoBcis','source','ck-ai_review__check-list-item-parameterized-form-element_dropdown','bindTemplate','ck-reset_all','formValue'];_0x519f=function(){return _0x511245;};return _0x519f();}function _0x25cd(_0x595a51,_0x5c18b4){const _0x519f3c=_0x519f();return _0x25cd=function(_0x25cd39,_0x243c49){_0x25cd39=_0x25cd39-0x1a2;let _0x52aebc=_0x519f3c[_0x25cd39];return _0x52aebc;},_0x25cd(_0x595a51,_0x5c18b4);}(function(_0x23cdbd,_0x113dd9){const _0x4128e0=_0x25cd,_0xbcc3a7=_0x23cdbd();while(!![]){try{const _0x13d891=-parseInt(_0x4128e0(0x1b5))/0x1+-parseInt(_0x4128e0(0x1b4))/0x2+parseInt(_0x4128e0(0x1c9))/0x3+-parseInt(_0x4128e0(0x1bd))/0x4*(-parseInt(_0x4128e0(0x1ba))/0x5)+-parseInt(_0x4128e0(0x1ac))/0x6+-parseInt(_0x4128e0(0x1a2))/0x7*(parseInt(_0x4128e0(0x1c1))/0x8)+parseInt(_0x4128e0(0x1c2))/0x9*(parseInt(_0x4128e0(0x1aa))/0xa);if(_0x13d891===_0x113dd9)break;else _0xbcc3a7['push'](_0xbcc3a7['shift']());}catch(_0x4e5c46){_0xbcc3a7['push'](_0xbcc3a7['shift']());}}}(_0x519f,0xd4cf6));import{Collection as _0x1c7ee0}from'ckeditor5/src/utils.js';import{View as _0x5da06f,createDropdown as _0x3bbccb,addListToDropdown as _0x1caa4e,UIModel as _0x1c5df2}from'ckeditor5/src/ui.js';export class AIReviewCoreFormDropdownView extends _0x5da06f{[_0x397c23(0x1a9)];[_0x397c23(0x1c7)];[_0x397c23(0x1a4)];constructor(_0x24df38,_0x2528cb){const _0xc553c5=_0x397c23;super(_0x24df38),this[_0xc553c5(0x1c7)]=_0x2528cb[_0xc553c5(0x1c3)]||(_0x2528cb[_0xc553c5(0x1a3)][_0xc553c5(0x1b3)]>0x0?_0x2528cb[_0xc553c5(0x1a3)][0x0]['id']:''),this[_0xc553c5(0x1a4)]=_0x2528cb[_0xc553c5(0x1a3)][_0xc553c5(0x1b8)](_0xdf2286=>_0xdf2286['id']===this[_0xc553c5(0x1c7)])?.[_0xc553c5(0x1a8)]||'',this[_0xc553c5(0x1b9)](_0xc553c5(0x1b1),''),this[_0xc553c5(0x1a9)]=_0x3bbccb(this[_0xc553c5(0x1b6)]);const _0x2d217e=this[_0xc553c5(0x1c5)](_0x2528cb[_0xc553c5(0x1a3)]);_0x1caa4e(this[_0xc553c5(0x1a9)],_0x2d217e,{'role':_0xc553c5(0x1c0),'ariaLabel':_0x2528cb[_0xc553c5(0x1a8)]}),this[_0xc553c5(0x1a9)][_0xc553c5(0x1c4)][_0xc553c5(0x1b9)]({'label':this[_0xc553c5(0x1a4)],'withText':!0x0}),this[_0xc553c5(0x1a9)][_0xc553c5(0x1a6)]({'on':{'click':this[_0xc553c5(0x1af)]['to'](_0x24f475=>{const _0x19c702=_0xc553c5;_0x24f475[_0x19c702(0x1a7)]();})}}),this[_0xc553c5(0x1ca)](this[_0xc553c5(0x1a9)],_0xc553c5(0x1bb),_0x38c4d9=>{const _0x12c7a4=_0xc553c5;this[_0x12c7a4(0x1b1)]=_0x38c4d9[_0x12c7a4(0x1ad)][_0x12c7a4(0x1cb)]['id'],this[_0x12c7a4(0x1a9)][_0x12c7a4(0x1c4)][_0x12c7a4(0x1a8)]=_0x38c4d9[_0x12c7a4(0x1ad)][_0x12c7a4(0x1cb)][_0x12c7a4(0x1a8)];}),this[_0xc553c5(0x1c6)]({'tag':_0xc553c5(0x1b7),'attributes':{'class':['ck',_0xc553c5(0x1b0),_0xc553c5(0x1be),_0xc553c5(0x1ae)]},'children':[this[_0xc553c5(0x1a9)]]});}[_0x397c23(0x1c8)](){const _0x3bd498=_0x397c23;this[_0x3bd498(0x1b1)]=this[_0x3bd498(0x1c7)],this[_0x3bd498(0x1a9)][_0x3bd498(0x1c4)][_0x3bd498(0x1a8)]=this[_0x3bd498(0x1a4)];}[_0x397c23(0x1c5)](_0x43cfb7=[]){const _0x783e04=_0x397c23,_0x368737=new _0x1c7ee0();this[_0x783e04(0x1c8)]();for(const _0x533361 of _0x43cfb7){const _0x39a139=new _0x1c5df2({'label':_0x533361[_0x783e04(0x1a8)],'withText':!0x0,'role':_0x783e04(0x1bf),'id':_0x533361['id'],'model':_0x533361});_0x39a139[_0x783e04(0x1b2)](_0x783e04(0x1a5))['to'](this,_0x783e04(0x1b1),_0x398b63=>_0x398b63===_0x39a139['id']);const _0x56f0bd={'type':_0x783e04(0x1bc),'model':_0x39a139};_0x368737[_0x783e04(0x1ab)](_0x56f0bd);}return _0x368737;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x22901e=_0x55b3;(function(_0x3e7c5d,_0x3dcbb1){var _0x10607d=_0x55b3,_0x4340d3=_0x3e7c5d();while(!![]){try{var _0x5723f3=parseInt(_0x10607d(0xe2))/0x1*(parseInt(_0x10607d(0xdb))/0x2)+-parseInt(_0x10607d(0xd7))/0x3*(-parseInt(_0x10607d(0xdf))/0x4)+-parseInt(_0x10607d(0xde))/0x5+-parseInt(_0x10607d(0xd8))/0x6+-parseInt(_0x10607d(0xd6))/0x7+parseInt(_0x10607d(0xdd))/0x8+-parseInt(_0x10607d(0xe3))/0x9;if(_0x5723f3===_0x3dcbb1)break;else _0x4340d3['push'](_0x4340d3['shift']());}catch(_0x1088d6){_0x4340d3['push'](_0x4340d3['shift']());}}}(_0xc9e8,0xef1fe));import{ContextPlugin as _0x3beb7f}from'ckeditor5/src/core.js';import{AIReviewModeUI as _0x3b3991}from'./aireviewmodeui.js';import{AIReviewCoreEditing as _0x38f6d5}from'../aireviewcore/aireviewcoreediting.js';function _0x55b3(_0x420be5,_0x3fb589){var _0xc9e8d7=_0xc9e8();return _0x55b3=function(_0x55b393,_0x34fb14){_0x55b393=_0x55b393-0xd6;var _0x2ae301=_0xc9e8d7[_0x55b393];return _0x2ae301;},_0x55b3(_0x420be5,_0x3fb589);}function _0xc9e8(){var _0x209f39=['9191399iKsGPZ','102546ASPESK','4229400ygbTcV','pluginName','requires','150404uNGmOD','isPremiumPlugin','11730232hHEQUe','3396920vIuKRO','196hDjxGq','isOfficialPlugin','AIReviewMode','26REaOQv','12776886fjDMTP'];_0xc9e8=function(){return _0x209f39;};return _0xc9e8();}import{AIReviewModeController as _0x2e7654}from'./aireviewmodecontroller.js';export class AIReviewMode extends _0x3beb7f{static get[_0x22901e(0xda)](){return[_0x2e7654,_0x3b3991,_0x38f6d5];}static get[_0x22901e(0xd9)](){var _0x431546=_0x22901e;return _0x431546(0xe1);}static get[_0x22901e(0xe0)](){return!0x0;}static get[_0x22901e(0xdc)](){return!0x0;}}
|