ckbox 2.4.0 → 2.5.0-rc.0

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 _0x1a5d08=_0x40f6;(function(_0x385c88,_0x4e739c){const _0x106d8c=_0x40f6,_0x9d65b=_0x385c88();while(!![]){try{const _0x4a07cc=-parseInt(_0x106d8c(0x172))/0x1*(-parseInt(_0x106d8c(0x17a))/0x2)+-parseInt(_0x106d8c(0x16f))/0x3*(-parseInt(_0x106d8c(0x17f))/0x4)+parseInt(_0x106d8c(0x170))/0x5*(parseInt(_0x106d8c(0x179))/0x6)+parseInt(_0x106d8c(0x173))/0x7+parseInt(_0x106d8c(0x177))/0x8*(parseInt(_0x106d8c(0x180))/0x9)+parseInt(_0x106d8c(0x175))/0xa+-parseInt(_0x106d8c(0x183))/0xb;if(_0x4a07cc===_0x4e739c)break;else _0x9d65b['push'](_0x9d65b['shift']());}catch(_0x25ba28){_0x9d65b['push'](_0x9d65b['shift']());}}}(_0x38e8,0x1eada));function _0x38e8(){const _0x31979e=['1807520FXXaZE','onClose','88KjMrvY','freeze','12cJFpvM','193874PJaDOu','assets','dialog','CKBox','unmount','123116qEcMne','144234JhGEbJ','createRoot','bind','4615028btaXKz','createElement','onChoose','3vTCgiG','94895wBLttP','boolean','1iPViPd','157458tBEDIX','call'];_0x38e8=function(){return _0x31979e;};return _0x38e8();}import*as _0x269695 from'react';export{_0x269695 as React};function _0x40f6(_0xcf6a47,_0x3d2fc8){const _0x38e81e=_0x38e8();return _0x40f6=function(_0x40f689,_0xbff1a4){_0x40f689=_0x40f689-0x16d;let _0x2d58dc=_0x38e81e[_0x40f689];return _0x2d58dc;},_0x40f6(_0xcf6a47,_0x3d2fc8);}import*as _0x59bbf from'react-dom/client';import{CKBox as _0x5cf7e6,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x41ae2a,_0x20dd05)=>{const _0x3c26c6=_0x40f6,_0x5d0207=_0x41ae2a[_0x3c26c6(0x17c)];if(!_0x5d0207)return![];if(typeof _0x5d0207===_0x3c26c6(0x171)){const _0xfef2e4=()=>{_0x20dd05();};return{'open':!![],'onClose':_0xfef2e4};}const _0x47addc=()=>{const _0x567533=_0x3c26c6;var _0x15aa1f;(_0x15aa1f=_0x5d0207[_0x567533(0x176)])===null||_0x15aa1f===void 0x0?void 0x0:_0x15aa1f['call'](_0x5d0207),_0x20dd05();};return{..._0x5d0207,'open':!![],'onClose':_0x47addc};},getAssetsProps=(_0x547aa9,_0x48cc23)=>{const _0x17a6f2=_0x40f6;var _0x3d4417;const _0x1b30a7=(_0x3d4417=_0x547aa9['assets'])===null||_0x3d4417===void 0x0?void 0x0:_0x3d4417[_0x17a6f2(0x16e)];if(!_0x1b30a7)return _0x547aa9[_0x17a6f2(0x17b)];const _0x2e4a7a=_0x945d1f=>{const _0x4653d0=_0x17a6f2;var _0x393baf;_0x1b30a7(_0x945d1f),_0x48cc23&&typeof _0x48cc23!=='boolean'&&((_0x393baf=_0x48cc23[_0x4653d0(0x176)])===null||_0x393baf===void 0x0?void 0x0:_0x393baf[_0x4653d0(0x174)](_0x48cc23));};return{..._0x547aa9[_0x17a6f2(0x17b)],'onChoose':_0x2e4a7a};},mount=(_0xd38293,_0x54c4ec)=>{const _0x25e543=_0x40f6,_0x1d8b4f=_0x59bbf[_0x25e543(0x181)](_0xd38293),_0x1746fb=_0x1d8b4f[_0x25e543(0x17e)]['bind'](_0x1d8b4f),_0x2454bf=getDialogProps(_0x54c4ec,_0x1746fb),_0x3d8fde=getAssetsProps(_0x54c4ec,_0x2454bf);return _0x1d8b4f['render'](_0x269695[_0x25e543(0x16d)](_0x5cf7e6,{..._0x54c4ec,'assets':_0x3d8fde,'dialog':_0x2454bf})),{'unmount':_0x1746fb};},mountImageEditor=(_0x39fd65,_0xcd9fce)=>{const _0x2616f4=_0x40f6,_0x1c754c=_0x59bbf['createRoot'](_0x39fd65),_0x22c920=_0x1c754c[_0x2616f4(0x17e)][_0x2616f4(0x182)](_0x1c754c),_0x580b0c=()=>{const _0x52a8df=_0x2616f4;var _0x182f36;(_0x182f36=_0xcd9fce[_0x52a8df(0x176)])===null||_0x182f36===void 0x0?void 0x0:_0x182f36[_0x52a8df(0x174)](_0xcd9fce),_0x22c920();};return _0x1c754c['render'](_0x269695[_0x2616f4(0x16d)](CKBoxImageEditor,{..._0xcd9fce,'open':!![],'onClose':_0x580b0c})),{'unmount':_0x22c920};};var CKBox=Object[_0x1a5d08(0x178)]({'__proto__':null,'React':_0x269695,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0x3d3d5c=_0x1a5d08,_0x4c7a82=globalThis;!_0x4c7a82[_0x3d3d5c(0x17d)]&&(_0x4c7a82['CKBox']=CKBox);}());export{mount,mountImageEditor};
4
+ function _0x7471(_0x494e3a,_0x3b1f9a){const _0x1c1d07=_0x1c1d();return _0x7471=function(_0x747123,_0x286b7a){_0x747123=_0x747123-0x1b0;let _0x4081a4=_0x1c1d07[_0x747123];return _0x4081a4;},_0x7471(_0x494e3a,_0x3b1f9a);}(function(_0x257b5f,_0x60d5d3){const _0x250fcf=_0x7471,_0x275db1=_0x257b5f();while(!![]){try{const _0x3ab8d9=parseInt(_0x250fcf(0x1b7))/0x1*(-parseInt(_0x250fcf(0x1bb))/0x2)+-parseInt(_0x250fcf(0x1c3))/0x3*(parseInt(_0x250fcf(0x1bd))/0x4)+-parseInt(_0x250fcf(0x1c4))/0x5*(parseInt(_0x250fcf(0x1bf))/0x6)+parseInt(_0x250fcf(0x1c5))/0x7*(-parseInt(_0x250fcf(0x1b9))/0x8)+-parseInt(_0x250fcf(0x1b5))/0x9*(parseInt(_0x250fcf(0x1c6))/0xa)+-parseInt(_0x250fcf(0x1b3))/0xb+parseInt(_0x250fcf(0x1c2))/0xc*(parseInt(_0x250fcf(0x1c1))/0xd);if(_0x3ab8d9===_0x60d5d3)break;else _0x275db1['push'](_0x275db1['shift']());}catch(_0x22f1f2){_0x275db1['push'](_0x275db1['shift']());}}}(_0x1c1d,0x4fb1d));import*as _0x3f73d0 from'react';export{_0x3f73d0 as React};import*as _0x1d78f6 from'react-dom/client';import{CKBox as _0x5e0f31,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x5a5c0f,_0x1cfb86)=>{const _0x34722d=_0x7471,_0x29c1c9=_0x5a5c0f[_0x34722d(0x1b6)];if(!_0x29c1c9)return![];if(typeof _0x29c1c9===_0x34722d(0x1b8)){const _0x5690e8=()=>{_0x1cfb86();};return{'open':!![],'onClose':_0x5690e8};}const _0x47c628=()=>{const _0x55e199=_0x34722d;var _0x14ea25;(_0x14ea25=_0x29c1c9[_0x55e199(0x1b1)])===null||_0x14ea25===void 0x0?void 0x0:_0x14ea25[_0x55e199(0x1b0)](_0x29c1c9),_0x1cfb86();};return{..._0x29c1c9,'open':!![],'onClose':_0x47c628};},getAssetsProps=(_0x1c479f,_0x1fd053)=>{const _0x1d321d=_0x7471;var _0x364517;const _0x1636f6=(_0x364517=_0x1c479f[_0x1d321d(0x1c7)])===null||_0x364517===void 0x0?void 0x0:_0x364517[_0x1d321d(0x1b4)];if(!_0x1636f6)return _0x1c479f[_0x1d321d(0x1c7)];const _0x1511ad=_0xe4097b=>{const _0x1b4cb4=_0x1d321d;var _0x2d926a;_0x1636f6(_0xe4097b),_0x1fd053&&typeof _0x1fd053!==_0x1b4cb4(0x1b8)&&((_0x2d926a=_0x1fd053[_0x1b4cb4(0x1b1)])===null||_0x2d926a===void 0x0?void 0x0:_0x2d926a['call'](_0x1fd053));};return{..._0x1c479f[_0x1d321d(0x1c7)],'onChoose':_0x1511ad};},mount=(_0x4be362,_0x401e20)=>{const _0x56d687=_0x7471,_0x39c103=_0x1d78f6[_0x56d687(0x1bc)](_0x4be362),_0x6895bf=_0x39c103[_0x56d687(0x1b2)][_0x56d687(0x1c8)](_0x39c103),_0x1154ba=getDialogProps(_0x401e20,_0x6895bf),_0x52f52d=getAssetsProps(_0x401e20,_0x1154ba);return _0x39c103[_0x56d687(0x1ba)](_0x3f73d0[_0x56d687(0x1be)](_0x5e0f31,{..._0x401e20,'assets':_0x52f52d,'dialog':_0x1154ba})),{'unmount':_0x6895bf};},mountImageEditor=(_0x196024,_0x20b615)=>{const _0x34130f=_0x7471,_0x4f5a57=_0x1d78f6[_0x34130f(0x1bc)](_0x196024),_0xce516c=_0x4f5a57[_0x34130f(0x1b2)]['bind'](_0x4f5a57),_0x241c54=()=>{const _0x46d093=_0x34130f;var _0x317533;(_0x317533=_0x20b615[_0x46d093(0x1b1)])===null||_0x317533===void 0x0?void 0x0:_0x317533[_0x46d093(0x1b0)](_0x20b615),_0xce516c();};return _0x4f5a57['render'](_0x3f73d0['createElement'](CKBoxImageEditor,{..._0x20b615,'open':!![],'onClose':_0x241c54})),{'unmount':_0xce516c};};var CKBox=Object['freeze']({'__proto__':null,'React':_0x3f73d0,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});function _0x1c1d(){const _0x8f4a4c=['114ZXkthn','29045XleaTL','1121750nAlZEi','410FkolAx','assets','bind','call','onClose','unmount','6164059FdUCDV','onChoose','55125qidkjf','dialog','157fjmrxo','boolean','24OtLKBy','render','254BfNTKS','createRoot','21928qQGKUm','createElement','492mQpDzY','CKBox','429IYZHYU','844824YdMpCH'];_0x1c1d=function(){return _0x8f4a4c;};return _0x1c1d();}(function(){const _0x5e2d07=_0x7471,_0x2c370d=globalThis;!_0x2c370d['CKBox']&&(_0x2c370d[_0x5e2d07(0x1c0)]=CKBox);}());export{mount,mountImageEditor};