UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines 4.02 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 _0x26ee63=_0x4acf;function _0x4acf(_0x130c22,_0x4434b1){const _0x5ccdf6=_0x5ccd();return _0x4acf=function(_0x4acfdc,_0x39ec96){_0x4acfdc=_0x4acfdc-0x125;let _0x2e04ba=_0x5ccdf6[_0x4acfdc];return _0x2e04ba;},_0x4acf(_0x130c22,_0x4434b1);}(function(_0x2c3df7,_0x48915e){const _0x255a7d=_0x4acf,_0x477d3f=_0x2c3df7();while(!![]){try{const _0x8a98c6=parseInt(_0x255a7d(0x13f))/0x1*(-parseInt(_0x255a7d(0x132))/0x2)+parseInt(_0x255a7d(0x139))/0x3*(-parseInt(_0x255a7d(0x12b))/0x4)+parseInt(_0x255a7d(0x138))/0x5+-parseInt(_0x255a7d(0x128))/0x6*(parseInt(_0x255a7d(0x129))/0x7)+-parseInt(_0x255a7d(0x12e))/0x8+-parseInt(_0x255a7d(0x12f))/0x9*(-parseInt(_0x255a7d(0x13d))/0xa)+parseInt(_0x255a7d(0x12a))/0xb;if(_0x8a98c6===_0x48915e)break;else _0x477d3f['push'](_0x477d3f['shift']());}catch(_0x34299f){_0x477d3f['push'](_0x477d3f['shift']());}}}(_0x5ccd,0xc0ee4));import{EmitterMixin as _0x30b531}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x26ee63(0x13c)];export class AICapabilities extends _0x30b531(){[_0x26ee63(0x137)];[_0x26ee63(0x13e)];constructor(){const _0x49c90c=_0x26ee63;super(),this[_0x49c90c(0x137)]=!0x1,this[_0x49c90c(0x13e)]=!0x1;}[_0x26ee63(0x136)](){const _0x47e567=_0x26ee63;this[_0x47e567(0x126)]();}[_0x26ee63(0x126)](){const _0x127e0d=_0x26ee63;this[_0x127e0d(0x125)](!0x1),this[_0x127e0d(0x134)](!0x1);}[_0x26ee63(0x13a)](){const _0x5bbfd1=_0x26ee63;return{'isWebSearchEnabled':this[_0x5bbfd1(0x137)],'isReasoningEnabled':this[_0x5bbfd1(0x13e)]};}static[_0x26ee63(0x12d)](_0x1450ce){const _0x472e46=_0x26ee63,_0x289588={};return _0x1450ce&&_0x1450ce[_0x472e46(0x131)]&&(_0x289588[_0x472e46(0x12c)]={}),_0x1450ce&&_0x1450ce[_0x472e46(0x13b)]&&(_0x289588[_0x472e46(0x130)]={}),_0x289588;}[_0x26ee63(0x133)](){const _0x2c80bd=_0x26ee63;this[_0x2c80bd(0x125)](!this[_0x2c80bd(0x137)]);}[_0x26ee63(0x135)](){const _0x49a240=_0x26ee63;this[_0x49a240(0x134)](!this[_0x49a240(0x13e)]);}[_0x26ee63(0x125)](_0x13040c){const _0x5dd4d5=_0x26ee63;_0x13040c!==this[_0x5dd4d5(0x137)]&&(this[_0x5dd4d5(0x137)]=_0x13040c,this[_0x5dd4d5(0x127)](_0x5dd4d5(0x13c),this[_0x5dd4d5(0x13a)]()));}[_0x26ee63(0x134)](_0xb3dbd8){const _0x3768fc=_0x26ee63;_0xb3dbd8!==this[_0x3768fc(0x13e)]&&(this[_0x3768fc(0x13e)]=_0xb3dbd8,this[_0x3768fc(0x127)](_0x3768fc(0x13c),this[_0x3768fc(0x13a)]()));}}function _0x5ccd(){const _0xa8a2c7=['setWebSearch','reset','fire','8901492tBERMy','7kjaXej','36648832kxYPSi','457784RsPccg','webSearch','getCapabilitiesRequestData','9718376TAvkfc','18JmNxIK','reasoning','isWebSearchEnabled','692haMRFm','toggleWebSearch','setReasoning','toggleReasoning','init','_isWebSearchEnabled','6467955ATAIBz','21DWuwQl','getCapabilitiesConfig','isReasoningEnabled','capabilitiesUpdated','2039980yxKSOz','_isReasoningEnabled','2149rmAOFN'];_0x5ccd=function(){return _0xa8a2c7;};return _0x5ccd();}