UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines 5.11 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 _0x312666=_0x54fb;(function(_0x5124b3,_0x446c20){const _0x5d733c=_0x54fb,_0x47fbd1=_0x5124b3();while(!![]){try{const _0x20a29a=parseInt(_0x5d733c(0xfe))/0x1*(parseInt(_0x5d733c(0xef))/0x2)+parseInt(_0x5d733c(0x10d))/0x3+-parseInt(_0x5d733c(0x111))/0x4+-parseInt(_0x5d733c(0xfb))/0x5*(parseInt(_0x5d733c(0xf4))/0x6)+parseInt(_0x5d733c(0xe9))/0x7+-parseInt(_0x5d733c(0xf7))/0x8*(parseInt(_0x5d733c(0xee))/0x9)+parseInt(_0x5d733c(0x106))/0xa*(-parseInt(_0x5d733c(0x10a))/0xb);if(_0x20a29a===_0x446c20)break;else _0x47fbd1['push'](_0x47fbd1['shift']());}catch(_0x4a49ab){_0x47fbd1['push'](_0x47fbd1['shift']());}}}(_0x53a4,0x513cf));function _0x53a4(){const _0x8aee76=['isOn','_dropdownView','463340DymrKU','length','label','2346498fqazAL','resetToDefault','setTemplate','formValue','ck-ai-review-mode__check-list-item-parameterized-form-element','18JyLAFU','8926idUUbO','model','menu','_defaultLabel','button','12DySAAv','bind','find','996104nVqGoF','execute','_defaultValue','locale','727670MgjAio','extendTemplate','set','119GIPpIO','ck-ai-review-mode__check-list-item-parameterized-form-element_dropdown','div','menuitemradio','stopPropagation','data','bindTemplate','default','4610nmbYoB','source','buttonView','add','7733XRJwIh','ck-reset_all','listenTo','1339356xBdocZ','_prepareListOptions'];_0x53a4=function(){return _0x8aee76;};return _0x53a4();}import{Collection as _0x15779a}from'ckeditor5/src/utils.js';function _0x54fb(_0x5873db,_0x504860){const _0x53a4db=_0x53a4();return _0x54fb=function(_0x54fbe9,_0x49a809){_0x54fbe9=_0x54fbe9-0xe8;let _0x9e1931=_0x53a4db[_0x54fbe9];return _0x9e1931;},_0x54fb(_0x5873db,_0x504860);}import{View as _0x4a0d79,createDropdown as _0x4ca646,addListToDropdown as _0x4ae475,UIModel as _0x39221c}from'ckeditor5/src/ui.js';export class AIReviewModeFormDropdownView extends _0x4a0d79{[_0x312666(0x110)];[_0x312666(0xf9)];[_0x312666(0xf2)];constructor(_0x32d484,_0x210359){const _0x112fcc=_0x312666;super(_0x32d484),this[_0x112fcc(0xf9)]=_0x210359[_0x112fcc(0x105)]||(_0x210359[_0x112fcc(0x103)][_0x112fcc(0x112)]>0x0?_0x210359[_0x112fcc(0x103)][0x0]['id']:''),this[_0x112fcc(0xf2)]=_0x210359[_0x112fcc(0x103)][_0x112fcc(0xf6)](_0x5b4d0f=>_0x5b4d0f['id']===this[_0x112fcc(0xf9)])?.[_0x112fcc(0xe8)]||'',this[_0x112fcc(0xfd)](_0x112fcc(0xec),''),this[_0x112fcc(0x110)]=_0x4ca646(this[_0x112fcc(0xfa)]);const _0x3c2af1=this[_0x112fcc(0x10e)](_0x210359[_0x112fcc(0x103)]);_0x4ae475(this[_0x112fcc(0x110)],_0x3c2af1,{'role':_0x112fcc(0xf1),'ariaLabel':_0x210359[_0x112fcc(0xe8)]}),this[_0x112fcc(0x110)][_0x112fcc(0x108)][_0x112fcc(0xfd)]({'label':this[_0x112fcc(0xf2)],'withText':!0x0}),this[_0x112fcc(0x110)][_0x112fcc(0xfc)]({'on':{'click':this[_0x112fcc(0x104)]['to'](_0x56bf43=>{const _0x923651=_0x112fcc;_0x56bf43[_0x923651(0x102)]();})}}),this[_0x112fcc(0x10c)](this[_0x112fcc(0x110)],_0x112fcc(0xf8),_0x55fac7=>{const _0x5961f2=_0x112fcc;this[_0x5961f2(0xec)]=_0x55fac7[_0x5961f2(0x107)][_0x5961f2(0xf0)]['id'],this[_0x5961f2(0x110)][_0x5961f2(0x108)][_0x5961f2(0xe8)]=_0x55fac7[_0x5961f2(0x107)][_0x5961f2(0xf0)][_0x5961f2(0xe8)];}),this[_0x112fcc(0xeb)]({'tag':_0x112fcc(0x100),'attributes':{'class':['ck',_0x112fcc(0x10b),_0x112fcc(0xed),_0x112fcc(0xff)]},'children':[this[_0x112fcc(0x110)]]});}[_0x312666(0xea)](){const _0xaeba9e=_0x312666;this[_0xaeba9e(0xec)]=this[_0xaeba9e(0xf9)],this[_0xaeba9e(0x110)][_0xaeba9e(0x108)][_0xaeba9e(0xe8)]=this[_0xaeba9e(0xf2)];}[_0x312666(0x10e)](_0x580165=[]){const _0x110970=_0x312666,_0x41fafb=new _0x15779a();this[_0x110970(0xea)]();for(const _0xdb9ea3 of _0x580165){const _0x458ab0=new _0x39221c({'label':_0xdb9ea3[_0x110970(0xe8)],'withText':!0x0,'role':_0x110970(0x101),'id':_0xdb9ea3['id'],'model':_0xdb9ea3});_0x458ab0[_0x110970(0xf5)](_0x110970(0x10f))['to'](this,_0x110970(0xec),_0x12a782=>_0x12a782===_0x458ab0['id']);const _0xd6e144={'type':_0x110970(0xf3),'model':_0x458ab0};_0x41fafb[_0x110970(0x109)](_0xd6e144);}return _0x41fafb;}}