ckbox 2.5.0-rc.0 → 2.5.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
- 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};
4
+ (function(_0x230f9b,_0x5ba354){const _0xa898fe=_0x4b8b,_0x4fdaff=_0x230f9b();while(!![]){try{const _0x5152b0=-parseInt(_0xa898fe(0xf8))/0x1*(parseInt(_0xa898fe(0xf7))/0x2)+-parseInt(_0xa898fe(0x105))/0x3*(-parseInt(_0xa898fe(0xf4))/0x4)+-parseInt(_0xa898fe(0xf6))/0x5+parseInt(_0xa898fe(0x108))/0x6+-parseInt(_0xa898fe(0xff))/0x7+-parseInt(_0xa898fe(0xf9))/0x8*(parseInt(_0xa898fe(0x103))/0x9)+-parseInt(_0xa898fe(0xfd))/0xa*(-parseInt(_0xa898fe(0xfa))/0xb);if(_0x5152b0===_0x5ba354)break;else _0x4fdaff['push'](_0x4fdaff['shift']());}catch(_0x5d934e){_0x4fdaff['push'](_0x4fdaff['shift']());}}}(_0x4928,0xe6a76));import*as _0x47e35c from'react';export{_0x47e35c as React};function _0x4b8b(_0x3f889a,_0x47d7c6){const _0x4928ae=_0x4928();return _0x4b8b=function(_0x4b8bca,_0x2ffff5){_0x4b8bca=_0x4b8bca-0xf4;let _0x12815c=_0x4928ae[_0x4b8bca];return _0x12815c;},_0x4b8b(_0x3f889a,_0x47d7c6);}function _0x4928(){const _0x54a8d2=['4zVPfzq','8DtaMBF','33bjyXZO','onChoose','render','12581290RxVBRS','boolean','3514189ESObWH','unmount','CKBox','bind','7960158yQTAMY','onClose','3nqjdBK','createElement','assets','440238CGDmSQ','3806844XuhQxC','call','4361800LSHopw','797932CBvckY'];_0x4928=function(){return _0x54a8d2;};return _0x4928();}import*as _0x58e504 from'react-dom/client';import{CKBox as _0x409c3d,CKBoxImageEditor,version}from'@ckbox/core';export{version}from'@ckbox/core';const getDialogProps=(_0x4b476f,_0x5450aa)=>{const _0x49f7df=_0x4b8b,_0x514b0e=_0x4b476f['dialog'];if(!_0x514b0e)return![];if(typeof _0x514b0e===_0x49f7df(0xfe)){const _0x383cee=()=>{_0x5450aa();};return{'open':!![],'onClose':_0x383cee};}const _0x58e368=()=>{const _0x3288a6=_0x49f7df;var _0x18b97b;(_0x18b97b=_0x514b0e[_0x3288a6(0x104)])===null||_0x18b97b===void 0x0?void 0x0:_0x18b97b['call'](_0x514b0e),_0x5450aa();};return{..._0x514b0e,'open':!![],'onClose':_0x58e368};},getAssetsProps=(_0x2df2f3,_0x4700b8)=>{const _0x25d36e=_0x4b8b;var _0xb234d1;const _0x567480=(_0xb234d1=_0x2df2f3[_0x25d36e(0x107)])===null||_0xb234d1===void 0x0?void 0x0:_0xb234d1[_0x25d36e(0xfb)];if(!_0x567480)return _0x2df2f3[_0x25d36e(0x107)];const _0x15ea65=_0x461001=>{const _0x4bfe76=_0x25d36e;var _0xb925bf;_0x567480(_0x461001),_0x4700b8&&typeof _0x4700b8!=='boolean'&&((_0xb925bf=_0x4700b8[_0x4bfe76(0x104)])===null||_0xb925bf===void 0x0?void 0x0:_0xb925bf[_0x4bfe76(0xf5)](_0x4700b8));};return{..._0x2df2f3[_0x25d36e(0x107)],'onChoose':_0x15ea65};},mount=(_0x4f4be1,_0x13c0be)=>{const _0x18782d=_0x4b8b,_0x4fe711=_0x58e504['createRoot'](_0x4f4be1),_0x5bc322=_0x4fe711[_0x18782d(0x100)][_0x18782d(0x102)](_0x4fe711),_0x363e5a=getDialogProps(_0x13c0be,_0x5bc322),_0x1cc1df=getAssetsProps(_0x13c0be,_0x363e5a);return _0x4fe711[_0x18782d(0xfc)](_0x47e35c[_0x18782d(0x106)](_0x409c3d,{..._0x13c0be,'assets':_0x1cc1df,'dialog':_0x363e5a})),{'unmount':_0x5bc322};},mountImageEditor=(_0x5cd680,_0x5f1e86)=>{const _0x2af5b5=_0x4b8b,_0xa2ef5c=_0x58e504['createRoot'](_0x5cd680),_0x59ea21=_0xa2ef5c[_0x2af5b5(0x100)][_0x2af5b5(0x102)](_0xa2ef5c),_0x111ea6=()=>{const _0x4cf74e=_0x2af5b5;var _0x2753b2;(_0x2753b2=_0x5f1e86[_0x4cf74e(0x104)])===null||_0x2753b2===void 0x0?void 0x0:_0x2753b2['call'](_0x5f1e86),_0x59ea21();};return _0xa2ef5c['render'](_0x47e35c[_0x2af5b5(0x106)](CKBoxImageEditor,{..._0x5f1e86,'open':!![],'onClose':_0x111ea6})),{'unmount':_0x59ea21};};var CKBox=Object['freeze']({'__proto__':null,'React':_0x47e35c,'mount':mount,'mountImageEditor':mountImageEditor,'version':version});(function(){const _0x1ffb09=_0x4b8b,_0x20ac65=globalThis;!_0x20ac65[_0x1ffb09(0x101)]&&(_0x20ac65[_0x1ffb09(0x101)]=CKBox);}());export{mount,mountImageEditor};