ckbox 2.9.0-dev.0 → 2.9.0-rc.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/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  */
4
- const _0x221964=_0x4ad9;(function(_0x4d23ef,_0x6f7d39){const _0x394816=_0x4ad9,_0x3f6982=_0x4d23ef();while(!![]){try{const _0x2c68bf=-parseInt(_0x394816(0x10d))/0x1*(parseInt(_0x394816(0x115))/0x2)+parseInt(_0x394816(0x10b))/0x3*(parseInt(_0x394816(0x10a))/0x4)+-parseInt(_0x394816(0x108))/0x5+-parseInt(_0x394816(0x110))/0x6+parseInt(_0x394816(0x10e))/0x7+-parseInt(_0x394816(0x11c))/0x8+parseInt(_0x394816(0x111))/0x9*(parseInt(_0x394816(0x11b))/0xa);if(_0x2c68bf===_0x6f7d39)break;else _0x3f6982['push'](_0x3f6982['shift']());}catch(_0x561109){_0x3f6982['push'](_0x3f6982['shift']());}}}(_0x3974,0x204c8));import*as _0x9dad29 from'react';export{_0x9dad29 as React};function _0x3974(){const _0x2a99ed=['1155420BsOUHy','render','92OzybmW','31545HwJuAc','unmount','23eXfxoS','773269HGCvIq','onClose','1100058WMTFew','51183HgSzvi','CKBox','createElement','createRoot','11124jnPgOR','bind','assets','freeze','dialog','call','1020OILMvo','2061896WsypoE','onChoose'];_0x3974=function(){return _0x2a99ed;};return _0x3974();}import*as _0x4540ce from'react-dom/client';import{CKBox as _0x38253a,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x3c7080,_0x68ffe6)=>{const _0x553c14=_0x4ad9,_0x27a1aa=_0x3c7080[_0x553c14(0x119)];if(!_0x27a1aa)return![];if(typeof _0x27a1aa==='boolean'){const _0x12422f=()=>{_0x68ffe6();};return{'open':!![],'onClose':_0x12422f};}const _0x36a30b=()=>{const _0x5bbedc=_0x553c14;var _0x42f722;(_0x42f722=_0x27a1aa[_0x5bbedc(0x10f)])===null||_0x42f722===void 0x0?void 0x0:_0x42f722[_0x5bbedc(0x11a)](_0x27a1aa),_0x68ffe6();};return{..._0x27a1aa,'open':!![],'onClose':_0x36a30b};},getAssetsProps=(_0x33a259,_0x187cd8)=>{const _0x5436bf=_0x4ad9;var _0x53ad43;const _0x4c0e47=(_0x53ad43=_0x33a259['assets'])===null||_0x53ad43===void 0x0?void 0x0:_0x53ad43[_0x5436bf(0x107)];if(!_0x4c0e47)return _0x33a259[_0x5436bf(0x117)];const _0x4261d1=_0x102560=>{const _0x278464=_0x5436bf;var _0x4aa4eb;_0x4c0e47(_0x102560),_0x187cd8&&typeof _0x187cd8!=='boolean'&&((_0x4aa4eb=_0x187cd8[_0x278464(0x10f)])===null||_0x4aa4eb===void 0x0?void 0x0:_0x4aa4eb['call'](_0x187cd8));};return{..._0x33a259[_0x5436bf(0x117)],'onChoose':_0x4261d1};},mount=(_0x3d6f3c,_0x2dc25e)=>{const _0x3104c1=_0x4ad9,_0x142143=_0x4540ce[_0x3104c1(0x114)](_0x3d6f3c),_0x25478a=_0x142143['unmount'][_0x3104c1(0x116)](_0x142143),_0x451be8=getDialogProps(_0x2dc25e,_0x25478a),_0xcd0758=getAssetsProps(_0x2dc25e,_0x451be8);return _0x142143[_0x3104c1(0x109)](_0x9dad29[_0x3104c1(0x113)](_0x38253a,{..._0x2dc25e,'assets':_0xcd0758,'dialog':_0x451be8})),{'unmount':_0x25478a};},mountImageEditor=(_0xa3c300,_0x4f4f2a)=>{const _0xe98292=_0x4ad9,_0x674b32=_0x4540ce[_0xe98292(0x114)](_0xa3c300),_0x25d9be=_0x674b32[_0xe98292(0x10c)][_0xe98292(0x116)](_0x674b32),_0x48a4d6=()=>{const _0x1d8387=_0xe98292;var _0x31640c;(_0x31640c=_0x4f4f2a[_0x1d8387(0x10f)])===null||_0x31640c===void 0x0?void 0x0:_0x31640c['call'](_0x4f4f2a),_0x25d9be();};return _0x674b32[_0xe98292(0x109)](_0x9dad29[_0xe98292(0x113)](CKBoxImageEditor,{..._0x4f4f2a,'open':!![],'onClose':_0x48a4d6})),{'unmount':_0x25d9be};};var CKBox=Object[_0x221964(0x118)]({'__proto__':null,'React':_0x9dad29,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});function _0x4ad9(_0x26cb4e,_0xc0367f){const _0x397475=_0x3974();return _0x4ad9=function(_0x4ad900,_0x1f7267){_0x4ad900=_0x4ad900-0x107;let _0xeeec0f=_0x397475[_0x4ad900];return _0xeeec0f;},_0x4ad9(_0x26cb4e,_0xc0367f);}(function(){const _0x59fd0c=_0x221964,_0x2a448b=globalThis;!_0x2a448b[_0x59fd0c(0x112)]&&(_0x2a448b['CKBox']=CKBox);}());export{mount,mountImageEditor};
4
+ (function(_0x4862a0,_0x4cc5c1){const _0x361081=_0x2172,_0x1f143f=_0x4862a0();while(!![]){try{const _0x114c42=-parseInt(_0x361081(0xdb))/0x1*(parseInt(_0x361081(0xd7))/0x2)+-parseInt(_0x361081(0xd9))/0x3*(-parseInt(_0x361081(0xda))/0x4)+-parseInt(_0x361081(0xe3))/0x5*(-parseInt(_0x361081(0xdf))/0x6)+parseInt(_0x361081(0xdd))/0x7+parseInt(_0x361081(0xe0))/0x8+-parseInt(_0x361081(0xd8))/0x9+parseInt(_0x361081(0xe1))/0xa*(parseInt(_0x361081(0xd0))/0xb);if(_0x114c42===_0x4cc5c1)break;else _0x1f143f['push'](_0x1f143f['shift']());}catch(_0x51218d){_0x1f143f['push'](_0x1f143f['shift']());}}}(_0x620f,0x45cb5));import*as _0x47949f from'react';export{_0x47949f as React};function _0x620f(){const _0x1c9805=['bind','call','boolean','unmount','createElement','22DoRKSm','3707271rFNpdG','3nLTPHT','317988xdQZlR','33228rLGhWZ','onClose','594034bnwwcR','onChoose','1860SmZLfw','1072888zveuFN','63760jiNLhw','render','2155RtnQxv','createRoot','assets','1089oshrFT','CKBox'];_0x620f=function(){return _0x1c9805;};return _0x620f();}import*as _0x497439 from'react-dom/client';import{CKBox as _0x2ded0c,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x1b9dd0,_0xa58754)=>{const _0x5a54f3=_0x2172,_0x4033c2=_0x1b9dd0['dialog'];if(!_0x4033c2)return![];if(typeof _0x4033c2===_0x5a54f3(0xd4)){const _0x1617d7=()=>{_0xa58754();};return{'open':!![],'onClose':_0x1617d7};}const _0x2d4ae0=()=>{const _0x4eff67=_0x5a54f3;var _0x1d7b41;(_0x1d7b41=_0x4033c2[_0x4eff67(0xdc)])===null||_0x1d7b41===void 0x0?void 0x0:_0x1d7b41['call'](_0x4033c2),_0xa58754();};return{..._0x4033c2,'open':!![],'onClose':_0x2d4ae0};},getAssetsProps=(_0x2be727,_0x176ade)=>{const _0x4df5b0=_0x2172;var _0xbde258;const _0x9ed263=(_0xbde258=_0x2be727['assets'])===null||_0xbde258===void 0x0?void 0x0:_0xbde258[_0x4df5b0(0xde)];if(!_0x9ed263)return _0x2be727[_0x4df5b0(0xcf)];const _0x244fbf=_0x450700=>{const _0x4fd825=_0x4df5b0;var _0x4092f7;_0x9ed263(_0x450700),_0x176ade&&typeof _0x176ade!==_0x4fd825(0xd4)&&((_0x4092f7=_0x176ade[_0x4fd825(0xdc)])===null||_0x4092f7===void 0x0?void 0x0:_0x4092f7[_0x4fd825(0xd3)](_0x176ade));};return{..._0x2be727['assets'],'onChoose':_0x244fbf};},mount=(_0x1349c8,_0x4a3037)=>{const _0x17d0b7=_0x2172,_0x203cd3=_0x497439[_0x17d0b7(0xce)](_0x1349c8),_0x1b535f=_0x203cd3[_0x17d0b7(0xd5)][_0x17d0b7(0xd2)](_0x203cd3),_0x3d8611=getDialogProps(_0x4a3037,_0x1b535f),_0x2dd2b5=getAssetsProps(_0x4a3037,_0x3d8611);return _0x203cd3[_0x17d0b7(0xe2)](_0x47949f[_0x17d0b7(0xd6)](_0x2ded0c,{..._0x4a3037,'assets':_0x2dd2b5,'dialog':_0x3d8611})),{'unmount':_0x1b535f};},mountImageEditor=(_0x4bf942,_0x238dd6)=>{const _0xf8f032=_0x2172,_0x29c165=_0x497439[_0xf8f032(0xce)](_0x4bf942),_0x23f611=_0x29c165[_0xf8f032(0xd5)]['bind'](_0x29c165),_0x2a39b5=()=>{const _0x52ecab=_0xf8f032;var _0x3b7403;(_0x3b7403=_0x238dd6[_0x52ecab(0xdc)])===null||_0x3b7403===void 0x0?void 0x0:_0x3b7403[_0x52ecab(0xd3)](_0x238dd6),_0x23f611();};return _0x29c165[_0xf8f032(0xe2)](_0x47949f[_0xf8f032(0xd6)](CKBoxImageEditor,{..._0x238dd6,'open':!![],'onClose':_0x2a39b5})),{'unmount':_0x23f611};};function _0x2172(_0x42d838,_0x4ec9ad){const _0x620f86=_0x620f();return _0x2172=function(_0x21728e,_0x5da9b6){_0x21728e=_0x21728e-0xce;let _0x14b607=_0x620f86[_0x21728e];return _0x14b607;},_0x2172(_0x42d838,_0x4ec9ad);}var CKBox=Object['freeze']({'__proto__':null,'React':_0x47949f,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0x228381=_0x2172,_0x14c594=globalThis;!_0x14c594[_0x228381(0xd1)]&&(_0x14c594[_0x228381(0xd1)]=CKBox);}());export{mount,mountImageEditor};