UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines 8.29 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x2b423f=_0x3c09;(function(_0x46386f,_0x5ccc6c){const _0x2a85a2=_0x3c09,_0x5e44f3=_0x46386f();while(!![]){try{const _0x5103f3=parseInt(_0x2a85a2(0x201))/0x1+-parseInt(_0x2a85a2(0x20a))/0x2+parseInt(_0x2a85a2(0x22b))/0x3*(-parseInt(_0x2a85a2(0x205))/0x4)+-parseInt(_0x2a85a2(0x216))/0x5*(-parseInt(_0x2a85a2(0x22a))/0x6)+-parseInt(_0x2a85a2(0x20b))/0x7*(-parseInt(_0x2a85a2(0x225))/0x8)+parseInt(_0x2a85a2(0x1f8))/0x9*(-parseInt(_0x2a85a2(0x1f7))/0xa)+-parseInt(_0x2a85a2(0x233))/0xb*(-parseInt(_0x2a85a2(0x224))/0xc);if(_0x5103f3===_0x5ccc6c)break;else _0x5e44f3['push'](_0x5e44f3['shift']());}catch(_0x4f04f9){_0x5e44f3['push'](_0x5e44f3['shift']());}}}(_0x1965,0x2f28c));function _0x3c09(_0x7006f7,_0x3dce81){const _0x196508=_0x1965();return _0x3c09=function(_0x3c09e5,_0x1ebebe){_0x3c09e5=_0x3c09e5-0x1f4;let _0x3ffb92=_0x196508[_0x3c09e5];return _0x3ffb92;},_0x3c09(_0x7006f7,_0x3dce81);}import{View as _0x156d92,ButtonView as _0xdbbf0b}from'ckeditor5/src/ui.js';import{IconInfo as _0x36f1f7,IconCheck as _0x46223b,IconCancel as _0x25a820,IconOutdated as _0x569824}from'ckeditor5/src/icons.js';import{getTranslation as _0x1e8c23}from'../../aicore/utils/common-translations.js';export class AIReviewModeReviewCheckListItemResultsView extends _0x156d92{[_0x2b423f(0x22e)];[_0x2b423f(0x21f)];[_0x2b423f(0x206)];[_0x2b423f(0x22f)];[_0x2b423f(0x228)];constructor(_0x5a4491,_0xfece52){const _0x54dd56=_0x2b423f;super(_0x5a4491),this['id']=_0xfece52,this[_0x54dd56(0x202)](_0x54dd56(0x1f9),_0x54dd56(0x219)),this[_0x54dd56(0x202)](_0x54dd56(0x230),_0xfece52),this[_0x54dd56(0x22e)]=this[_0x54dd56(0x234)](),this[_0x54dd56(0x21f)]=this[_0x54dd56(0x20d)](),this[_0x54dd56(0x206)]=this[_0x54dd56(0x231)](),this[_0x54dd56(0x22f)]=this[_0x54dd56(0x237)](),this[_0x54dd56(0x228)]=this[_0x54dd56(0x211)](),this[_0x54dd56(0x202)](_0x54dd56(0x21a),!0x1),this[_0x54dd56(0x202)](_0x54dd56(0x239),!0x1),this[_0x54dd56(0x202)](_0x54dd56(0x21c),!0x0),this[_0x54dd56(0x1f5)]({'tag':_0x54dd56(0x210),'attributes':{'class':[_0x54dd56(0x1f6),this[_0x54dd56(0x20c)]['if'](_0x54dd56(0x239),_0x54dd56(0x22c))]},'on':{'click':this[_0x54dd56(0x20c)]['to'](_0x54dd56(0x222))},'children':[this[_0x54dd56(0x22e)],{'tag':_0x54dd56(0x210),'attributes':{'class':[_0x54dd56(0x236)]},'children':[{'tag':_0x54dd56(0x210),'attributes':{'class':[_0x54dd56(0x20f)]},'children':[this[_0x54dd56(0x21f)],this[_0x54dd56(0x206)],this[_0x54dd56(0x228)]]},this[_0x54dd56(0x22f)]]}]}),this['on'](_0x54dd56(0x222),()=>{const _0x1cebf9=_0x54dd56;this[_0x1cebf9(0x213)](_0x1cebf9(0x20e),{'id':_0xfece52,'source':this});});}[_0x2b423f(0x217)](){const _0x31e79f=_0x2b423f;this[_0x31e79f(0x239)]=!0x0;}[_0x2b423f(0x218)](){const _0x355a23=_0x2b423f;this[_0x355a23(0x239)]=!0x1;}[_0x2b423f(0x234)](){const _0x33ee4a=_0x2b423f,_0x31842d=new _0x156d92(this[_0x33ee4a(0x209)]);return _0x31842d[_0x33ee4a(0x1f5)]({'tag':_0x33ee4a(0x210),'attributes':{'class':['ck',_0x33ee4a(0x235),_0x33ee4a(0x21b),_0x33ee4a(0x200),this[_0x33ee4a(0x20c)]['if'](_0x33ee4a(0x21c),_0x33ee4a(0x215),_0x4353a6=>!_0x4353a6)]}}),_0x31842d;}[_0x2b423f(0x20d)](){const _0x4b3f58=_0x2b423f,_0x4198d3=new _0xdbbf0b(this[_0x4b3f58(0x209)]);return _0x4198d3[_0x4b3f58(0x202)]({'label':_0x1e8c23(this[_0x4b3f58(0x209)],_0x4b3f58(0x1fa)),'withText':!0x0}),_0x4198d3[_0x4b3f58(0x227)]({'on':{'click':this[_0x4b3f58(0x20c)]['to'](_0x50d1ae=>{const _0x3b252b=_0x4b3f58;this[_0x3b252b(0x213)](_0x3b252b(0x1fd),{'id':this[_0x3b252b(0x230)]}),_0x50d1ae[_0x3b252b(0x21e)]();})},'attributes':{'class':[_0x4b3f58(0x203),_0x4b3f58(0x204),this[_0x4b3f58(0x20c)]['if'](_0x4b3f58(0x1f9),_0x4b3f58(0x215),_0x307992=>_0x4b3f58(0x219)!==_0x307992)]}}),_0x4198d3;}[_0x2b423f(0x231)](){const _0x1b9f37=_0x2b423f,_0x52eb93=new _0xdbbf0b(this[_0x1b9f37(0x209)]);return _0x52eb93[_0x1b9f37(0x202)]({'label':_0x1e8c23(this[_0x1b9f37(0x209)],_0x1b9f37(0x207)),'withText':!0x0}),_0x52eb93[_0x1b9f37(0x227)]({'on':{'click':this[_0x1b9f37(0x20c)]['to'](_0x32ffee=>{const _0x10c602=_0x1b9f37;this[_0x10c602(0x213)](_0x10c602(0x1fb),{'id':this[_0x10c602(0x230)]}),_0x32ffee[_0x10c602(0x21e)]();})},'attributes':{'class':[_0x1b9f37(0x214),_0x1b9f37(0x208),this[_0x1b9f37(0x20c)]['if'](_0x1b9f37(0x1f9),_0x1b9f37(0x215),_0x54a2eb=>_0x1b9f37(0x219)!==_0x54a2eb)]}}),_0x52eb93;}[_0x2b423f(0x237)](){const _0x6423f9=_0x2b423f,_0x507a65=new _0xdbbf0b(this[_0x6423f9(0x209)]);return _0x507a65[_0x6423f9(0x202)]({'label':_0x1e8c23(this[_0x6423f9(0x209)],_0x6423f9(0x1fc)),'icon':_0x36f1f7,'tooltip':!0x0,'isToggleable':!0x0,'role':_0x6423f9(0x212),'class':_0x6423f9(0x232)}),_0x507a65[_0x6423f9(0x22d)](_0x6423f9(0x1f4))['to'](this,_0x6423f9(0x21a),_0x4f6014=>_0x4f6014),_0x507a65['on'](_0x6423f9(0x21d),()=>{const _0x27f42e=_0x6423f9;this[_0x27f42e(0x21a)]=!this[_0x27f42e(0x21a)];}),_0x507a65;}[_0x2b423f(0x211)](){const _0x53cadc=_0x2b423f,_0x4f5f93=new _0xdbbf0b(this[_0x53cadc(0x209)]);return _0x4f5f93[_0x53cadc(0x202)]({'withText':!0x0,'isEnabled':!0x1}),_0x4f5f93[_0x53cadc(0x22d)](_0x53cadc(0x226))['to'](this,_0x53cadc(0x1f9),_0x4a1420=>_0x1e8c23(this[_0x53cadc(0x209)],_0x53cadc(0x1ff)+_0x4a1420[_0x53cadc(0x238)]())),_0x4f5f93[_0x53cadc(0x22d)](_0x53cadc(0x223))['to'](this,_0x53cadc(0x1f9),_0xcddc0b=>_0x53cadc(0x1fe)===_0xcddc0b[_0x53cadc(0x238)]()?_0x46223b:_0x53cadc(0x220)===_0xcddc0b[_0x53cadc(0x238)]()?_0x25a820:_0x569824),_0x4f5f93[_0x53cadc(0x227)]({'attributes':{'class':[_0x53cadc(0x203),_0x53cadc(0x229),this[_0x53cadc(0x20c)]['if'](_0x53cadc(0x1f9),_0x53cadc(0x215),_0x438bbd=>_0x53cadc(0x219)===_0x438bbd)],'disabled':_0x53cadc(0x221)}}),_0x4f5f93;}}function _0x1965(){const _0x4e8a44=['ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-info-button\x20ck-hidden','77WfRuSr','_createResultResponseView','ck-content','ck-ai-review-mode__check-run-result-footer','_createInfoButtonView','toUpperCase','isActive','isOn','setTemplate','ck-ai-review-mode__check-run-result','28500NiggRl','1134okFuUg','status','AI_REVIEW_MODE_ACCEPT_CHANGE','dismissChange','AI_REVIEW_MODE_LEARN_MORE','acceptChange','ACCEPTED','AI_REVIEW_MODE_CHECK_STATUS_','ck-ai-review-mode__check-run-result-response','100907gjyLME','set','ck-ai-button-secondary','ck-ai-review-mode__check-run-result-accept-button','328036ncippv','dismissButtonView','AI_REVIEW_MODE_DISMISS_CHANGE','ck-ai-review-mode__check-run-result-dismiss-button','locale','170634QvToue','324779RLHJvp','bindTemplate','_createAcceptButtonView','activateChange','ck-ai-review-mode__check-run-result-action-buttons','div','_createStatusButtonView','menuitemcheckbox','fire','ck-ai-button-tertiary-filled','ck-hidden','1475675SsuOiS','setItemAsActive','setItemAsInactive','pending','isInfoToggleOn','ck-content-direct-excluded','showDiff','execute','stopPropagation','acceptButtonView','REJECTED','disabled','click','icon','475116FoWRfl','8GamVyb','label','extendTemplate','statusButtonView','ck-ai-review-mode__check-run-result-status-button','6hCdALD','3ISnrvi','ck-ai-review-mode__check-run-result_active','bind','resultResponseView','infoButtonView','changeId','_createDismissButtonView'];_0x1965=function(){return _0x4e8a44;};return _0x1965();}