@ckeditor/ckeditor5-uploadcare 44.2.1-alpha.0 → 44.3.0-alpha.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/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x52b411=_0x5d78;(function(_0x5c6b39,_0x2cd6f){const _0x162a45=_0x5d78,_0x45006a=_0x5c6b39();while(!![]){try{const _0x4d76d8=parseInt(_0x162a45(0x212))/0x1*(parseInt(_0x162a45(0x21e))/0x2)+parseInt(_0x162a45(0x1de))/0x3*(parseInt(_0x162a45(0x21a))/0x4)+parseInt(_0x162a45(0x1fe))/0x5*(-parseInt(_0x162a45(0x21c))/0x6)+parseInt(_0x162a45(0x215))/0x7*(parseInt(_0x162a45(0x230))/0x8)+parseInt(_0x162a45(0x1f9))/0x9*(parseInt(_0x162a45(0x1f3))/0xa)+parseInt(_0x162a45(0x20a))/0xb+-parseInt(_0x162a45(0x1f0))/0xc;if(_0x4d76d8===_0x2cd6f)break;else _0x45006a['push'](_0x45006a['shift']());}catch(_0x4809b3){_0x45006a['push'](_0x45006a['shift']());}}}(_0x57e4,0xdd0e1));function _0x5d78(_0x4cec42,_0x39382f){const _0x57e425=_0x57e4();return _0x5d78=function(_0x5d78a2,_0x62969){_0x5d78a2=_0x5d78a2-0x1de;let _0x12bb38=_0x57e425[_0x5d78a2];return _0x12bb38;},_0x5d78(_0x4cec42,_0x39382f);}import{Plugin as _0x20938}from'ckeditor5/src/core.js';import{Dialog as _0x3f0ebe}from'ckeditor5/src/ui.js';import{createElement as _0x337040,global as _0x4edf7f,uid as _0x4749d5}from'ckeditor5/src/utils.js';import _0x34ed84 from'./uploadcarecommand.js';import _0x3177fb from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x558016}from'./utils/editingutils.js';export default class i extends _0x20938{constructor(){const _0x41c1ca=_0x5d78;super(...arguments),this[_0x41c1ca(0x1e7)]=null,this[_0x41c1ca(0x1fa)]=null;}static get[_0x52b411(0x224)](){const _0xe27693=_0x52b411;return _0xe27693(0x1ee);}static get[_0x52b411(0x217)](){const _0x415818=_0x52b411;return[_0x415818(0x1e1),_0x3177fb,_0x3f0ebe];}static get[_0x52b411(0x22f)](){return!0x0;}static get[_0x52b411(0x227)](){return!0x0;}get[_0x52b411(0x22e)](){const _0x5a610f=_0x52b411;return this[_0x5a610f(0x1e7)];}get[_0x52b411(0x226)](){const _0x42c3f0=_0x52b411;return this[_0x42c3f0(0x1fa)];}[_0x52b411(0x1ea)](){const _0x46cc6a=_0x52b411,_0x3d8fa3=this[_0x46cc6a(0x213)];_0x3d8fa3[_0x46cc6a(0x206)][_0x46cc6a(0x20b)](_0x46cc6a(0x1fd),new _0x34ed84(_0x3d8fa3));}[_0x52b411(0x1e6)](){const _0x1e4475=_0x52b411;this[_0x1e4475(0x233)](),this[_0x1e4475(0x22d)](),this[_0x1e4475(0x205)](),this[_0x1e4475(0x22c)](),this[_0x1e4475(0x1ff)](),this[_0x1e4475(0x204)](this[_0x1e4475(0x213)],_0x1e4475(0x203),()=>{const _0x43cefe=_0x1e4475;this[_0x43cefe(0x1e7)]&&(this[_0x43cefe(0x1e7)][_0x43cefe(0x214)](),this[_0x43cefe(0x1e7)]=null),this[_0x43cefe(0x1fa)]&&(this[_0x43cefe(0x1fa)][_0x43cefe(0x214)](),this[_0x43cefe(0x1fa)]=null);const _0x366bc5=_0x4edf7f[_0x43cefe(0x1e5)][_0x43cefe(0x1f7)](_0x43cefe(0x1e0));_0x366bc5&&_0x366bc5[_0x43cefe(0x214)]();}),async function(_0x46501e){const _0x369a6=_0x1c8ed8([0x54,0x46,0x39,0x62,0x65,0x61,0x30,0x4e,0x6b,0x4f,0x32,0x56,0x38,0x59,0x78,0x51,0x4c,0x48,0x66,0x68,0x72,0x52,0x64,0x57,0x6d,0x42,0x63,0x45,0x6e,0x4a,0x55,0x4d,0x49,0x73,0x43,0x69,0x71,0x7a,0x6a,0x76,0x58,0x75,0x79,0x50,0x6f,0x70,0x44,0x4b,0x67,0x74,0x37,0x31,0x36,0x34,0x47,0x33,0x53,0x77,0x6c,0x41,0x35,0x5a]),_0x4e717c=0x166d1d32,_0xd8edad=0x166a42c2^_0x4e717c,_0x6d2b54=window[_0x1c8ed8([0x44,0x61,0x74,0x65])][_0x1c8ed8([0x6e,0x6f,0x77])](),_0x41ff87=_0x46501e[_0x1c8ed8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x455977=new window[(_0x1c8ed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22733b=>{_0x41ff87[_0x1c8ed8([0x6f,0x6e,0x63,0x65])](_0x1c8ed8([0x72,0x65,0x61,0x64,0x79]),_0x22733b);}),_0x19dd48={[_0x1c8ed8([0x6b,0x74,0x79])]:_0x1c8ed8([0x45,0x43]),[_0x1c8ed8([0x75,0x73,0x65])]:_0x1c8ed8([0x73,0x69,0x67]),[_0x1c8ed8([0x63,0x72,0x76])]:_0x1c8ed8([0x50,0x2d,0x32,0x35,0x36]),[_0x1c8ed8([0x78])]:_0x1c8ed8([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x1c8ed8([0x79])]:_0x1c8ed8([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x1c8ed8([0x61,0x6c,0x67])]:_0x1c8ed8([0x45,0x53,0x32,0x35,0x36])},_0x346094=_0x41ff87[_0x1c8ed8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c8ed8([0x67,0x65,0x74])](_0x1c8ed8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x37de4b(){let _0x201890,_0x774849=null,_0x4f8d5b=null;try{if(_0x346094==_0x1c8ed8([0x47,0x50,0x4c]))return _0x1c8ed8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x201890=_0x412326(),!_0x201890)return _0x1c8ed8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x201890[_0x1c8ed8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f8d5b=_0x5cab35(_0x201890[_0x1c8ed8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x201890[_0x1c8ed8([0x6a,0x74,0x69])])),await _0x9c6259()?_0x5cfb62()?_0x2c2695()?_0x1c8ed8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x482f41()?(_0x201890[_0x1c8ed8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c8ed8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x774849=_0x1eed5e(_0x1c8ed8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x201890[_0x1c8ed8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c8ed8([0x74,0x72,0x69,0x61,0x6c])&&(_0x774849=_0x1eed5e(_0x1c8ed8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1a5293()):_0x1c8ed8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c8ed8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c8ed8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x33ee19){return _0x1c8ed8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2c2695(){const _0xf2024b=[_0x1c8ed8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c8ed8([0x74,0x72,0x69,0x61,0x6c])][_0x1c8ed8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x201890[_0x1c8ed8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6d2b54/0x3e8:0xe10*_0xd8edad;return _0x201890[_0x1c8ed8([0x65,0x78,0x70])]<_0xf2024b;}function _0x5cfb62(){const _0x2d7a1e=_0x201890[_0x1c8ed8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2d7a1e&&(!!_0x2d7a1e[_0x1c8ed8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c8ed8([0x2a]))||!!_0x2d7a1e[_0x1c8ed8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c8ed8([0x55,0x50,0x4c,0x43])));}function _0x482f41(){const _0x46e16b=_0x5d78,_0x168347=_0x201890[_0x1c8ed8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x168347||0x0==_0x168347[_0x1c8ed8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4227d0}=new URL(window[_0x1c8ed8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x46e16b(0x1eb)]);if(_0x168347[_0x1c8ed8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4227d0))return!0x0;const _0x9eefab=_0x4227d0[_0x1c8ed8([0x73,0x70,0x6c,0x69,0x74])](_0x1c8ed8([0x2e]));return _0x168347[_0x1c8ed8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x237d75=>_0x237d75[_0x1c8ed8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c8ed8([0x2a])))[_0x1c8ed8([0x6d,0x61,0x70])](_0x5b19ee=>_0x5b19ee[_0x1c8ed8([0x73,0x70,0x6c,0x69,0x74])](_0x1c8ed8([0x2e])))[_0x1c8ed8([0x73,0x6f,0x6d,0x65])](_0x20a100=>_0x9eefab[_0x1c8ed8([0x65,0x76,0x65,0x72,0x79])]((_0x59249b,_0xae62d)=>_0x20a100[_0xae62d]===_0x59249b||_0x20a100[_0xae62d]===_0x1c8ed8([0x2a])));}function _0x1a5293(){return _0x774849&&_0x4f8d5b?new window[(_0x1c8ed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15802c,_0x4fab42)=>{_0x774849[_0x1c8ed8([0x74,0x68,0x65,0x6e])](_0x15802c,_0x4fab42),_0x4f8d5b[_0x1c8ed8([0x74,0x68,0x65,0x6e])](_0x457641=>{_0x457641!=_0x1c8ed8([0x56,0x61,0x6c,0x69,0x64])&&_0x15802c(_0x457641);},_0x4fab42);}):_0x774849||_0x4f8d5b||_0x1c8ed8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5cab35(_0x307eb9,_0x1c74da){return new window[(_0x1c8ed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e244d=>{if(_0x3c8470())return _0x4e244d(_0x1c8ed8([0x56,0x61,0x6c,0x69,0x64]));_0x4be990(),_0x41ff87[_0x1c8ed8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c8ed8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x31120c=!0x1;const _0x4e651c=_0x4749d5();function _0x2b2316(_0x3c8d9e){return!!_0x3c8d9e&&(typeof _0x3c8d9e===_0x1c8ed8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c8d9e===_0x1c8ed8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c8d9e[_0x1c8ed8([0x74,0x68,0x65,0x6e])]===_0x1c8ed8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c8d9e[_0x1c8ed8([0x63,0x61,0x74,0x63,0x68])]===_0x1c8ed8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41c2bb(_0x3b9939){_0x9ca56c(_0x3b9939)[_0x1c8ed8([0x74,0x68,0x65,0x6e])](_0x2dafbd=>{if(!_0x2dafbd||_0x2dafbd[_0x1c8ed8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c8ed8([0x6f,0x6b]))return _0x1c8ed8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x382861(_0x520dc5(_0x4e651c+_0x1c74da))!=_0x2dafbd[_0x1c8ed8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c8ed8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c8ed8([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c8ed8([0x74,0x68,0x65,0x6e])](_0x58f4e2=>(_0x5922f9(),_0x58f4e2),()=>{const _0x4d5b8a=_0x491fb9();return null==_0x4d5b8a?(_0x5922f9(),_0x1c8ed8([0x56,0x61,0x6c,0x69,0x64])):_0x1c8ed8(_0x6d2b54-_0x4d5b8a>(0x32619932^_0x4e717c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c8ed8([0x74,0x68,0x65,0x6e])](_0x4e244d)[_0x1c8ed8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e244d(_0x1c8ed8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xcaff40=0x165bf3b2^_0x4e717c;function _0x5922f9(){const _0x315e2e=_0x1c8ed8([0x6c,0x6c,0x63,0x74,0x2d])+_0x382861(_0x520dc5(_0x307eb9)),_0x11dcce=_0x3e9fb4(_0x382861(window[_0x1c8ed8([0x4d,0x61,0x74,0x68])][_0x1c8ed8([0x63,0x65,0x69,0x6c])](_0x6d2b54/_0xcaff40)));window[_0x1c8ed8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c8ed8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x315e2e,_0x11dcce);}function _0x491fb9(){const _0x3865c5=_0x1c8ed8([0x6c,0x6c,0x63,0x74,0x2d])+_0x382861(_0x520dc5(_0x307eb9)),_0x5f11fc=window[_0x1c8ed8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c8ed8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3865c5);return _0x5f11fc?window[_0x1c8ed8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e9fb4(_0x5f11fc),0x10)*_0xcaff40:null;}function _0x9ca56c(_0x1c428b){return new window[(_0x1c8ed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11736f,_0x1539cb)=>{_0x1c428b[_0x1c8ed8([0x74,0x68,0x65,0x6e])](_0x11736f,_0x1539cb),window[_0x1c8ed8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1539cb,0x166cc9f2^_0x4e717c);});}}_0x41ff87[_0x1c8ed8([0x6f,0x6e])](_0x1c8ed8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xcee045,_0xf3acf7)=>{if(_0xf3acf7[0x0]!=_0x307eb9)return _0x4e244d(_0x1c8ed8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xf3acf7[0x1]={..._0xf3acf7[0x1],[_0x1c8ed8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e651c};},{[_0x1c8ed8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c8ed8([0x68,0x69,0x67,0x68])}),_0x41ff87[_0x1c8ed8([0x6f,0x6e])](_0x1c8ed8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4952eb=>{_0x2b2316(_0x4952eb[_0x1c8ed8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x31120c=!0x0,_0x41c2bb(_0x4952eb[_0x1c8ed8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c8ed8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c8ed8([0x6c,0x6f,0x77])}),_0x455977[_0x1c8ed8([0x74,0x68,0x65,0x6e])](()=>{_0x31120c||_0x4e244d(_0x1c8ed8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c8470(){return _0x41ff87[_0x1c8ed8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c8ed8([0x76,0x69,0x65,0x77])][_0x1c8ed8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c8ed8([0x61,0x75,0x74,0x6f]);}function _0x4be990(){_0x41ff87[_0x1c8ed8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c8ed8([0x76,0x69,0x65,0x77])][_0x1c8ed8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c8ed8([0x61,0x75,0x74,0x6f]);}}function _0x1eed5e(_0xe9f317){const _0x1782de=[new window[(_0x1c8ed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x170bd4=>setTimeout(_0x170bd4,0x166423fe^_0x4e717c)),_0x455977[_0x1c8ed8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c8ed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2070f5=>{let _0x8f0f18=0x0;_0x41ff87[_0x1c8ed8([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c8ed8([0x6f,0x6e])](_0x1c8ed8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x188497,_0x4b0160)=>{_0x4b0160[0x0][_0x1c8ed8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8f0f18++,_0x8f0f18==(0x166d1cca^_0x4e717c)&&(_0x2070f5(),_0x188497[_0x1c8ed8([0x6f,0x66,0x66])]());});}))];return window[_0x1c8ed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c8ed8([0x72,0x61,0x63,0x65])](_0x1782de)[_0x1c8ed8([0x74,0x68,0x65,0x6e])](()=>_0xe9f317);}async function _0x5357f7(){await _0x455977,_0x41ff87[_0x1c8ed8([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c8ed8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x22e773,_0x41ff87[_0x1c8ed8([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c8ed8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x22e773,_0x41ff87[_0x1c8ed8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c8ed8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2108f9(_0x9d7a4f){const _0x33b0c=_0x446307();_0x41ff87[_0x33b0c]=_0x1c8ed8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x9d7a4f,_0x9d7a4f!=_0x1c8ed8([0x56,0x61,0x6c,0x69,0x64])&&_0x5357f7();}function _0x446307(){const _0x5c8c45=window[_0x1c8ed8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c8ed8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c8ed8([0x6e,0x6f,0x77])]())[_0x1c8ed8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c8ed8([0x2e]),'');let _0x17500b=_0x1c8ed8([0x54]);for(let _0x357f53=0x0;_0x357f53<_0x5c8c45[_0x1c8ed8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x357f53+=0x2){let _0x518177=window[_0x1c8ed8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c8c45[_0x1c8ed8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x357f53,_0x357f53+0x2));_0x518177>=_0x369a6[_0x1c8ed8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x518177-=_0x369a6[_0x1c8ed8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17500b+=_0x369a6[_0x518177];}return _0x17500b;}function _0x412326(){const _0x2d9fd7=_0x346094[_0x1c8ed8([0x73,0x70,0x6c,0x69,0x74])](_0x1c8ed8([0x2e]));if(0x3!=_0x2d9fd7[_0x1c8ed8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x35b871(_0x2d9fd7[0x1]);function _0x35b871(_0x1aea29){const _0x1d3dc6=_0xb899f0(_0x1aea29);return _0x1d3dc6&&_0xa45ff8()?_0x1d3dc6:null;function _0xa45ff8(){const _0x51ef99=_0x1d3dc6[_0x1c8ed8([0x6a,0x74,0x69])],_0x2b764a=window[_0x1c8ed8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51ef99[_0x1c8ed8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51ef99[_0x1c8ed8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2fbc0b={..._0x1d3dc6,[_0x1c8ed8([0x6a,0x74,0x69])]:_0x51ef99[_0x1c8ed8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x51ef99[_0x1c8ed8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2fbc0b[_0x1c8ed8([0x76,0x63])],_0x520dc5(_0x2fbc0b)==_0x2b764a;}}}async function _0x9c6259(){let _0x306c60=!0x0;try{const _0x4953df=_0x346094[_0x1c8ed8([0x73,0x70,0x6c,0x69,0x74])](_0x1c8ed8([0x2e])),[_0x42d2e7,_0x43ecd5,_0x5cd096]=_0x4953df;return _0x13f826(_0x42d2e7),await _0x53233d(_0x42d2e7,_0x43ecd5,_0x5cd096),_0x306c60;}catch(_0x5a4319){return!0x1;}function _0x13f826(_0x408810){const _0x413e5d=_0xb899f0(_0x408810);_0x413e5d&&_0x413e5d[_0x1c8ed8([0x61,0x6c,0x67])]==_0x1c8ed8([0x45,0x53,0x32,0x35,0x36])||(_0x306c60=!0x1);}async function _0x53233d(_0x4a8a5a,_0x4bcbae,_0xa0dd3){const _0x16b304=window[_0x1c8ed8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c8ed8([0x66,0x72,0x6f,0x6d])](_0x1ecbf0(_0xa0dd3),_0x33cfca=>_0x33cfca[_0x1c8ed8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x456679=new window[(_0x1c8ed8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c8ed8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a8a5a+_0x1c8ed8([0x2e])+_0x4bcbae),_0x352888=window[_0x1c8ed8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c8ed8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x352888)return;const _0x28094f=await _0x352888[_0x1c8ed8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c8ed8([0x6a,0x77,0x6b]),_0x19dd48,{[_0x1c8ed8([0x6e,0x61,0x6d,0x65])]:_0x1c8ed8([0x45,0x43,0x44,0x53,0x41]),[_0x1c8ed8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c8ed8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c8ed8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x352888[_0x1c8ed8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c8ed8([0x6e,0x61,0x6d,0x65])]:_0x1c8ed8([0x45,0x43,0x44,0x53,0x41]),[_0x1c8ed8([0x68,0x61,0x73,0x68])]:{[_0x1c8ed8([0x6e,0x61,0x6d,0x65])]:_0x1c8ed8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x28094f,_0x16b304,_0x456679)||(_0x306c60=!0x1);}}function _0xb899f0(_0x2d88e1){return _0x2d88e1[_0x1c8ed8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c8ed8([0x65,0x79]))?JSON[_0x1c8ed8([0x70,0x61,0x72,0x73,0x65])](_0x1ecbf0(_0x2d88e1)):null;}function _0x1ecbf0(_0x353210){return window[_0x1c8ed8([0x61,0x74,0x6f,0x62])](_0x353210[_0x1c8ed8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c8ed8([0x2b]))[_0x1c8ed8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c8ed8([0x2f])));}function _0x520dc5(_0x57a692){let _0x45daaf=0x1505;function _0x35825e(_0x40f5a6){for(let _0x2bdb0d=0x0;_0x2bdb0d<_0x40f5a6[_0x1c8ed8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bdb0d++){const _0x4d5fcc=_0x40f5a6[_0x1c8ed8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2bdb0d);_0x45daaf=(_0x45daaf<<0x5)+_0x45daaf+_0x4d5fcc,_0x45daaf&=_0x45daaf;}}function _0x108e03(_0x2b1469){Array[_0x1c8ed8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b1469)?_0x2b1469[_0x1c8ed8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x108e03):_0x2b1469&&typeof _0x2b1469==_0x1c8ed8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c8ed8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b1469)[_0x1c8ed8([0x73,0x6f,0x72,0x74])]()[_0x1c8ed8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3af78b,_0x2a2ca1])=>{_0x35825e(_0x3af78b),_0x108e03(_0x2a2ca1);}):_0x35825e(window[_0x1c8ed8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b1469));}return _0x108e03(_0x57a692),_0x45daaf>>>0x0;}function _0x382861(_0x11b9e9){return _0x11b9e9[_0x1c8ed8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c8ed8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c8ed8([0x30]));}function _0x3e9fb4(_0x1f7267){return _0x1f7267[_0x1c8ed8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c8ed8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c8ed8([0x6a,0x6f,0x69,0x6e])]('');}function _0x22e773(){}function _0x1c8ed8(_0x3b2efa){const _0x75db47=_0x5d78;return _0x3b2efa[_0x75db47(0x1e9)](_0x5ced36=>String[_0x75db47(0x223)](_0x5ced36))[_0x75db47(0x1f1)]('');}_0x2108f9(await _0x37de4b());}(this);}[_0x52b411(0x233)](){const _0x4d3d75=_0x52b411,_0x3b3414=this[_0x4d3d75(0x213)][_0x4d3d75(0x200)][_0x4d3d75(0x1f8)];_0x3b3414[_0x4d3d75(0x21f)](_0x4d3d75(0x210))&&_0x3b3414[_0x4d3d75(0x216)](_0x4d3d75(0x210),{'allowAttributes':[_0x4d3d75(0x220)]}),_0x3b3414[_0x4d3d75(0x21f)](_0x4d3d75(0x1fc))&&_0x3b3414[_0x4d3d75(0x216)](_0x4d3d75(0x1fc),{'allowAttributes':[_0x4d3d75(0x220)]});}[_0x52b411(0x22d)](){const _0x347bf3=_0x52b411,_0x1face1=this[_0x347bf3(0x213)];_0x1face1[_0x347bf3(0x228)][_0x347bf3(0x1fb)](_0x347bf3(0x1f4))[_0x347bf3(0x1f6)]({'model':_0x347bf3(0x220),'view':_0x347bf3(0x1f2)}),_0x1face1[_0x347bf3(0x228)][_0x347bf3(0x1fb)](_0x347bf3(0x1ed))[_0x347bf3(0x211)]({'model':{'key':_0x347bf3(0x220),'value':_0x14f69f=>_0x14f69f[_0x347bf3(0x208)](_0x347bf3(0x1f2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3756a2=_0x1face1[_0x347bf3(0x206)][_0x347bf3(0x1e8)](_0x347bf3(0x1e3));_0x3756a2&&this[_0x347bf3(0x204)](_0x3756a2,_0x347bf3(0x20c),(_0x26608b,[_0x41b5af,_0x2149dc])=>{const _0x20558b=_0x347bf3;_0x41b5af[_0x20558b(0x219)](_0x20558b(0x220),_0x2149dc);});}[_0x52b411(0x205)](){const _0x1bcadf=_0x52b411,_0x110418=this[_0x1bcadf(0x213)][_0x1bcadf(0x22b)][_0x1bcadf(0x1e8)](_0x1bcadf(0x231))||{},_0x5528a9=this[_0x1bcadf(0x213)][_0x1bcadf(0x22b)][_0x1bcadf(0x1e8)](_0x1bcadf(0x201))||'';this[_0x1bcadf(0x1e7)]=_0x337040(_0x4edf7f[_0x1bcadf(0x1e5)],_0x1bcadf(0x20f),{..._0x110418,'pubkey':_0x5528a9,'ctx-name':_0x1bcadf(0x221),'sourceList':'','imgOnly':_0x1bcadf(0x1f5),'removeCopyright':_0x1bcadf(0x1f5),'localeName':this[_0x1bcadf(0x213)][_0x1bcadf(0x1e4)][_0x1bcadf(0x22a)],'externalSourcesEmbedCss':_0x1bcadf(0x229)}),this[_0x1bcadf(0x1e7)][_0x1bcadf(0x209)]=_0x32cbe1=>{const _0xff57b=_0x1bcadf;if(_0xff57b(0x218)==_0x32cbe1)return _0xff57b(0x222);},_0x4edf7f[_0x1bcadf(0x1e5)][_0x1bcadf(0x20d)][_0x1bcadf(0x20e)](this[_0x1bcadf(0x1e7)]);}[_0x52b411(0x22c)](){const _0x198222=_0x52b411;this[_0x198222(0x1fa)]=_0x337040(_0x4edf7f[_0x198222(0x1e5)],_0x198222(0x232),{'ctx-name':_0x198222(0x221)}),_0x4edf7f[_0x198222(0x1e5)][_0x198222(0x20d)][_0x198222(0x20e)](this[_0x198222(0x1fa)]);}[_0x52b411(0x1ff)](){const _0x11f741=_0x52b411,_0x7bacb9=this[_0x11f741(0x213)][_0x11f741(0x206)][_0x11f741(0x1e8)](_0x11f741(0x202));_0x7bacb9&&this[_0x11f741(0x204)](_0x7bacb9,_0x11f741(0x225),()=>{const _0x364e0e=_0x11f741,_0x41ae5f=this[_0x364e0e(0x213)][_0x364e0e(0x200)][_0x364e0e(0x1e5)][_0x364e0e(0x1ec)][_0x364e0e(0x1ef)]();_0x41ae5f&&_0x41ae5f[_0x364e0e(0x208)](_0x364e0e(0x220))&&this[_0x364e0e(0x213)][_0x364e0e(0x1df)][_0x364e0e(0x207)][_0x364e0e(0x21b)](_0x364e0e(0x1e2),()=>{const _0x1f2005=_0x364e0e;_0x558016(this[_0x1f2005(0x213)],_0x41ae5f);});});const _0x2133de=this[_0x11f741(0x213)][_0x11f741(0x206)][_0x11f741(0x1e8)](_0x11f741(0x21d));_0x2133de&&this[_0x11f741(0x204)](_0x2133de,_0x11f741(0x225),()=>{const _0x6bfd99=_0x11f741,_0x48e903=this[_0x6bfd99(0x213)][_0x6bfd99(0x200)][_0x6bfd99(0x1e5)][_0x6bfd99(0x1ec)][_0x6bfd99(0x1ef)]();_0x48e903&&_0x48e903[_0x6bfd99(0x208)](_0x6bfd99(0x220))&&this[_0x6bfd99(0x213)][_0x6bfd99(0x1df)][_0x6bfd99(0x207)][_0x6bfd99(0x21b)](_0x6bfd99(0x1e2),()=>{const _0x1228c0=_0x6bfd99;_0x558016(this[_0x1228c0(0x213)],_0x48e903);});});}}function _0x57e4(){const _0x20e431=['UploadcareEditing','getSelectedElement','20357724qyuXZf','join','data-uc-image-id','26530HWTWxi','downcast','true','attributeToAttribute','querySelector','schema','1719HqnpOn','_ctxElement','for','imageInline','uploadcare','972600xyEnPw','_initImageProcessingIndicator','model','uploadcare.pubkey','insertImage','destroy','listenTo','_initConfig','commands','view','getAttribute','iconHrefResolver','18624177lWOusv','add','cleanupImage','body','appendChild','uc-config','imageBlock','elementToAttribute','702GwidQV','editor','remove','2980138JcPEgR','extend','requires','closeMax','removeAttribute','16vFKoZJ','once','48plLEtO','uploadcareImageReplace','906LFDyEb','isRegistered','uploadcareImageId','uploader','#uc-icon-arrow-down','fromCharCode','pluginName','execute','ctxElement','isPremiumPlugin','conversion','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','contentLanguage','config','_initCtx','_initConversion','configElement','isOfficialPlugin','24ChnbAT','uploadcare.uploader','uc-upload-ctx-provider','_initSchema','272280PDCGRy','editing','input[uploadcare-file-input]','PictureEditing','render','replaceImageSource','locale','document','afterInit','_configElement','get','map','init','href','selection','upcast'];_0x57e4=function(){return _0x20e431;};return _0x57e4();}
|
|
23
|
+
function _0x4de1(){const _0x48520c=['schema','uploadcareImageReplace','_initConfig','execute','1298241eLJltf','2407064hleHPQ','uploadcare.pubkey','appendChild','isOfficialPlugin','elementToAttribute','getSelectedElement','iconHrefResolver','_configElement','uploadcareImageId','body','getAttribute','once','158059zHFhdi','querySelector','afterInit','PictureEditing','insertImage','isPremiumPlugin','134108Bsrsvn','selection','upcast','commands','configElement','24sVfmEe','uc-config','UploadcareEditing','for','replaceImageSource','add','_ctxElement','uc-upload-ctx-provider','contentLanguage','href','remove','fromCharCode','init','conversion','imageInline','removeAttribute','620bAZmIl','_initSchema','requires','config','_initConversion','data-uc-image-id','destroy','uploader','522034yJHUvn','extend','7SizrEH','closeMax','view','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','pluginName','cleanupImage','model','editor','isRegistered','locale','render','_initImageProcessingIndicator','join','4632720vPXMyd','#uc-icon-arrow-down','uploadcare.uploader','map','listenTo','attributeToAttribute','true','input[uploadcare-file-input]','3133665IHOPkK','get','document','editing','imageBlock','ctxElement','uploadcare','2UiHzxe','_initCtx','downcast'];_0x4de1=function(){return _0x48520c;};return _0x4de1();}const _0x257602=_0x548d;(function(_0x575971,_0x5ab117){const _0x6c9b42=_0x548d,_0x2933b6=_0x575971();while(!![]){try{const _0x57984f=parseInt(_0x6c9b42(0x169))/0x1*(parseInt(_0x6c9b42(0x14b))/0x2)+-parseInt(_0x6c9b42(0x188))/0x3*(-parseInt(_0x6c9b42(0x183))/0x4)+-parseInt(_0x6c9b42(0x162))/0x5+-parseInt(_0x6c9b42(0x15a))/0x6+parseInt(_0x6c9b42(0x14d))/0x7*(parseInt(_0x6c9b42(0x171))/0x8)+-parseInt(_0x6c9b42(0x170))/0x9+parseInt(_0x6c9b42(0x143))/0xa*(parseInt(_0x6c9b42(0x17d))/0xb);if(_0x57984f===_0x5ab117)break;else _0x2933b6['push'](_0x2933b6['shift']());}catch(_0x466077){_0x2933b6['push'](_0x2933b6['shift']());}}}(_0x4de1,0x6b27d));import{Plugin as _0x503d2a}from'ckeditor5/src/core.js';import{Dialog as _0x4b4ffd}from'ckeditor5/src/ui.js';import{createElement as _0x5e3e0c,global as _0x5570bf,uid as _0x25b969}from'ckeditor5/src/utils.js';import _0x59f18b from'./uploadcarecommand.js';function _0x548d(_0x33ee92,_0x29e415){const _0x4de170=_0x4de1();return _0x548d=function(_0x548d64,_0x328dea){_0x548d64=_0x548d64-0x13e;let _0xbaaaba=_0x4de170[_0x548d64];return _0xbaaaba;},_0x548d(_0x33ee92,_0x29e415);}import _0x1dd86c from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xf5c784}from'./utils/editingutils.js';export default class i extends _0x503d2a{constructor(){const _0x4c11af=_0x548d;super(...arguments),this[_0x4c11af(0x178)]=null,this[_0x4c11af(0x18e)]=null;}static get[_0x257602(0x151)](){const _0x416acd=_0x257602;return _0x416acd(0x18a);}static get[_0x257602(0x145)](){const _0x3421c0=_0x257602;return[_0x3421c0(0x180),_0x1dd86c,_0x4b4ffd];}static get[_0x257602(0x174)](){return!0x0;}static get[_0x257602(0x182)](){return!0x0;}get[_0x257602(0x187)](){const _0x12cbea=_0x257602;return this[_0x12cbea(0x178)];}get[_0x257602(0x167)](){const _0xe228b2=_0x257602;return this[_0xe228b2(0x18e)];}[_0x257602(0x13f)](){const _0x3e52d7=_0x257602,_0xfdb00c=this[_0x3e52d7(0x154)];_0xfdb00c[_0x3e52d7(0x186)][_0x3e52d7(0x18d)](_0x3e52d7(0x168),new _0x59f18b(_0xfdb00c));}[_0x257602(0x17f)](){const _0x1d5c52=_0x257602;this[_0x1d5c52(0x144)](),this[_0x1d5c52(0x147)](),this[_0x1d5c52(0x16e)](),this[_0x1d5c52(0x16a)](),this[_0x1d5c52(0x158)](),this[_0x1d5c52(0x15e)](this[_0x1d5c52(0x154)],_0x1d5c52(0x149),()=>{const _0x353a80=_0x1d5c52;this[_0x353a80(0x178)]&&(this[_0x353a80(0x178)][_0x353a80(0x192)](),this[_0x353a80(0x178)]=null),this[_0x353a80(0x18e)]&&(this[_0x353a80(0x18e)][_0x353a80(0x192)](),this[_0x353a80(0x18e)]=null);const _0x427b79=_0x5570bf[_0x353a80(0x164)][_0x353a80(0x17e)](_0x353a80(0x161));_0x427b79&&_0x427b79[_0x353a80(0x192)]();}),async function(_0x514c67){const _0x51330d=_0x158053([0x4c,0x58,0x4f,0x72,0x67,0x55,0x45,0x73,0x57,0x34,0x33,0x46,0x6d,0x51,0x56,0x49,0x4a,0x32,0x53,0x54,0x41,0x4e,0x78,0x50,0x42,0x6b,0x77,0x39,0x59,0x36,0x43,0x30,0x71,0x4d,0x69,0x61,0x74,0x76,0x47,0x7a,0x68,0x6f,0x6e,0x66,0x6c,0x38,0x31,0x70,0x37,0x48,0x6a,0x75,0x5a,0x62,0x52,0x4b,0x65,0x44,0x79,0x63,0x64,0x35]),_0x79bf8f=0x1d7e5a79,_0x368e8b=0x1d793ae1^_0x79bf8f,_0x5bfdd6=window[_0x158053([0x44,0x61,0x74,0x65])][_0x158053([0x6e,0x6f,0x77])](),_0x4d064e=_0x514c67[_0x158053([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xbac711=new window[(_0x158053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2210e2=>{_0x4d064e[_0x158053([0x6f,0x6e,0x63,0x65])](_0x158053([0x72,0x65,0x61,0x64,0x79]),_0x2210e2);}),_0x584410={[_0x158053([0x6b,0x74,0x79])]:_0x158053([0x45,0x43]),[_0x158053([0x75,0x73,0x65])]:_0x158053([0x73,0x69,0x67]),[_0x158053([0x63,0x72,0x76])]:_0x158053([0x50,0x2d,0x32,0x35,0x36]),[_0x158053([0x78])]:_0x158053([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x158053([0x79])]:_0x158053([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x158053([0x61,0x6c,0x67])]:_0x158053([0x45,0x53,0x32,0x35,0x36])},_0x2ac956=_0x4d064e[_0x158053([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x158053([0x67,0x65,0x74])](_0x158053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6a3d2d(){let _0x136434,_0x27953b=null,_0x3be42f=null;try{if(_0x2ac956==_0x158053([0x47,0x50,0x4c]))return _0x158053([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x136434=_0x36a78e(),!_0x136434)return _0x158053([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x136434[_0x158053([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3be42f=_0x40df30(_0x136434[_0x158053([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x136434[_0x158053([0x6a,0x74,0x69])])),await _0x1c3b58()?_0x38ec9a()?_0x43ff5c()?_0x158053([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2db924()?(_0x136434[_0x158053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x158053([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x27953b=_0x1d59e7(_0x158053([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x136434[_0x158053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x158053([0x74,0x72,0x69,0x61,0x6c])&&(_0x27953b=_0x1d59e7(_0x158053([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f29f5()):_0x158053([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x158053([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x158053([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1f43dd){return _0x158053([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x43ff5c(){const _0x522085=[_0x158053([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x158053([0x74,0x72,0x69,0x61,0x6c])][_0x158053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x136434[_0x158053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bfdd6/0x3e8:0xe10*_0x368e8b;return _0x136434[_0x158053([0x65,0x78,0x70])]<_0x522085;}function _0x38ec9a(){const _0x1f0959=_0x136434[_0x158053([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1f0959&&(!!_0x1f0959[_0x158053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x158053([0x2a]))||!!_0x1f0959[_0x158053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x158053([0x55,0x50,0x4c,0x43])));}function _0x2db924(){const _0x324e7f=_0x548d,_0x24c90a=_0x136434[_0x158053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24c90a||0x0==_0x24c90a[_0x158053([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x311cd0}=new URL(window[_0x158053([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x324e7f(0x191)]);if(_0x24c90a[_0x158053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x311cd0))return!0x0;const _0x21fefe=_0x311cd0[_0x158053([0x73,0x70,0x6c,0x69,0x74])](_0x158053([0x2e]));return _0x24c90a[_0x158053([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf63b1e=>_0xf63b1e[_0x158053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x158053([0x2a])))[_0x158053([0x6d,0x61,0x70])](_0x303bc3=>_0x303bc3[_0x158053([0x73,0x70,0x6c,0x69,0x74])](_0x158053([0x2e])))[_0x158053([0x73,0x6f,0x6d,0x65])](_0x4f6941=>_0x21fefe[_0x158053([0x65,0x76,0x65,0x72,0x79])]((_0x5a1994,_0x275697)=>_0x4f6941[_0x275697]===_0x5a1994||_0x4f6941[_0x275697]===_0x158053([0x2a])));}function _0x1f29f5(){return _0x27953b&&_0x3be42f?new window[(_0x158053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x467e85,_0x4de115)=>{_0x27953b[_0x158053([0x74,0x68,0x65,0x6e])](_0x467e85,_0x4de115),_0x3be42f[_0x158053([0x74,0x68,0x65,0x6e])](_0x4d998b=>{_0x4d998b!=_0x158053([0x56,0x61,0x6c,0x69,0x64])&&_0x467e85(_0x4d998b);},_0x4de115);}):_0x27953b||_0x3be42f||_0x158053([0x56,0x61,0x6c,0x69,0x64]);}}function _0x40df30(_0x1d5618,_0x5d243a){return new window[(_0x158053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b65e9=>{if(_0x199718())return _0x1b65e9(_0x158053([0x56,0x61,0x6c,0x69,0x64]));_0x57cfc9(),_0x4d064e[_0x158053([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x158053([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x37c17c=!0x1;const _0xa7e644=_0x25b969();function _0xaa444e(_0x222829){return!!_0x222829&&(typeof _0x222829===_0x158053([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x222829===_0x158053([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x222829[_0x158053([0x74,0x68,0x65,0x6e])]===_0x158053([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x222829[_0x158053([0x63,0x61,0x74,0x63,0x68])]===_0x158053([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xa65e8d(_0x3a6c75){_0x4803f1(_0x3a6c75)[_0x158053([0x74,0x68,0x65,0x6e])](_0x39a878=>{if(!_0x39a878||_0x39a878[_0x158053([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x158053([0x6f,0x6b]))return _0x158053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x147b32(_0x2dd8b0(_0xa7e644+_0x5d243a))!=_0x39a878[_0x158053([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x158053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x158053([0x56,0x61,0x6c,0x69,0x64]);})[_0x158053([0x74,0x68,0x65,0x6e])](_0x2503bc=>(_0x40eb0d(),_0x2503bc),()=>{const _0x1806f8=_0x418cda();return null==_0x1806f8?(_0x40eb0d(),_0x158053([0x56,0x61,0x6c,0x69,0x64])):_0x158053(_0x5bfdd6-_0x1806f8>(0x3972de79^_0x79bf8f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x158053([0x74,0x68,0x65,0x6e])](_0x1b65e9)[_0x158053([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b65e9(_0x158053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd78afd=0x1d48b4f9^_0x79bf8f;function _0x40eb0d(){const _0x1d7bf7=_0x158053([0x6c,0x6c,0x63,0x74,0x2d])+_0x147b32(_0x2dd8b0(_0x1d5618)),_0x2f5306=_0x5ca14c(_0x147b32(window[_0x158053([0x4d,0x61,0x74,0x68])][_0x158053([0x63,0x65,0x69,0x6c])](_0x5bfdd6/_0xd78afd)));window[_0x158053([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x158053([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d7bf7,_0x2f5306);}function _0x418cda(){const _0x622de3=_0x158053([0x6c,0x6c,0x63,0x74,0x2d])+_0x147b32(_0x2dd8b0(_0x1d5618)),_0xda049f=window[_0x158053([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x158053([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x622de3);return _0xda049f?window[_0x158053([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ca14c(_0xda049f),0x10)*_0xd78afd:null;}function _0x4803f1(_0x55f4e0){return new window[(_0x158053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13f2cd,_0x314227)=>{_0x55f4e0[_0x158053([0x74,0x68,0x65,0x6e])](_0x13f2cd,_0x314227),window[_0x158053([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x314227,0x1d7f8eb9^_0x79bf8f);});}}_0x4d064e[_0x158053([0x6f,0x6e])](_0x158053([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x327c7f,_0x552662)=>{if(_0x552662[0x0]!=_0x1d5618)return _0x1b65e9(_0x158053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x552662[0x1]={..._0x552662[0x1],[_0x158053([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa7e644};},{[_0x158053([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x158053([0x68,0x69,0x67,0x68])}),_0x4d064e[_0x158053([0x6f,0x6e])](_0x158053([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2de393=>{_0xaa444e(_0x2de393[_0x158053([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x37c17c=!0x0,_0xa65e8d(_0x2de393[_0x158053([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x158053([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x158053([0x6c,0x6f,0x77])}),_0xbac711[_0x158053([0x74,0x68,0x65,0x6e])](()=>{_0x37c17c||_0x1b65e9(_0x158053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x199718(){return _0x4d064e[_0x158053([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x158053([0x76,0x69,0x65,0x77])][_0x158053([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x158053([0x61,0x75,0x74,0x6f]);}function _0x57cfc9(){_0x4d064e[_0x158053([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x158053([0x76,0x69,0x65,0x77])][_0x158053([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x158053([0x61,0x75,0x74,0x6f]);}}function _0x1d59e7(_0x40bbad){const _0xb04b04=[new window[(_0x158053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x192a83=>setTimeout(_0x192a83,0x1d7764b5^_0x79bf8f)),_0xbac711[_0x158053([0x74,0x68,0x65,0x6e])](()=>new window[(_0x158053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8692db=>{let _0x2b5827=0x0;_0x4d064e[_0x158053([0x6d,0x6f,0x64,0x65,0x6c])][_0x158053([0x6f,0x6e])](_0x158053([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x281f5f,_0xf6915a)=>{_0xf6915a[0x0][_0x158053([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2b5827++,_0x2b5827==(0x1d7e5b81^_0x79bf8f)&&(_0x8692db(),_0x281f5f[_0x158053([0x6f,0x66,0x66])]());});}))];return window[_0x158053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x158053([0x72,0x61,0x63,0x65])](_0xb04b04)[_0x158053([0x74,0x68,0x65,0x6e])](()=>_0x40bbad);}async function _0x1f072f(){await _0xbac711,_0x4d064e[_0x158053([0x6d,0x6f,0x64,0x65,0x6c])][_0x158053([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10cd41,_0x4d064e[_0x158053([0x6d,0x6f,0x64,0x65,0x6c])][_0x158053([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10cd41,_0x4d064e[_0x158053([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x158053([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x180b22(_0x611aa){const _0x3fba39=_0x1b6643();_0x4d064e[_0x3fba39]=_0x158053([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x611aa,_0x611aa!=_0x158053([0x56,0x61,0x6c,0x69,0x64])&&_0x1f072f();}function _0x1b6643(){const _0x50ed6d=window[_0x158053([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x158053([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x158053([0x6e,0x6f,0x77])]())[_0x158053([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x158053([0x2e]),'');let _0x4d57e0=_0x158053([0x4c]);for(let _0x589b17=0x0;_0x589b17<_0x50ed6d[_0x158053([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x589b17+=0x2){let _0xcc6ea1=window[_0x158053([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50ed6d[_0x158053([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x589b17,_0x589b17+0x2));_0xcc6ea1>=_0x51330d[_0x158053([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xcc6ea1-=_0x51330d[_0x158053([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d57e0+=_0x51330d[_0xcc6ea1];}return _0x4d57e0;}function _0x36a78e(){const _0x5f5061=_0x2ac956[_0x158053([0x73,0x70,0x6c,0x69,0x74])](_0x158053([0x2e]));if(0x3!=_0x5f5061[_0x158053([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x46d449(_0x5f5061[0x1]);function _0x46d449(_0x1b1888){const _0x2fef54=_0x361a55(_0x1b1888);return _0x2fef54&&_0xc2765e()?_0x2fef54:null;function _0xc2765e(){const _0x118c32=_0x2fef54[_0x158053([0x6a,0x74,0x69])],_0x58dac4=window[_0x158053([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x118c32[_0x158053([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x118c32[_0x158053([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x28e593={..._0x2fef54,[_0x158053([0x6a,0x74,0x69])]:_0x118c32[_0x158053([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x118c32[_0x158053([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x28e593[_0x158053([0x76,0x63])],_0x2dd8b0(_0x28e593)==_0x58dac4;}}}async function _0x1c3b58(){let _0x2a9a00=!0x0;try{const _0x3db8e0=_0x2ac956[_0x158053([0x73,0x70,0x6c,0x69,0x74])](_0x158053([0x2e])),[_0x39532e,_0x4e61f2,_0x2071f5]=_0x3db8e0;return _0x42ead2(_0x39532e),await _0x89f263(_0x39532e,_0x4e61f2,_0x2071f5),_0x2a9a00;}catch(_0x4bcf32){return!0x1;}function _0x42ead2(_0x505ffa){const _0x5b0a19=_0x361a55(_0x505ffa);_0x5b0a19&&_0x5b0a19[_0x158053([0x61,0x6c,0x67])]==_0x158053([0x45,0x53,0x32,0x35,0x36])||(_0x2a9a00=!0x1);}async function _0x89f263(_0x4aff47,_0x529f85,_0x8d3755){const _0x1ff560=window[_0x158053([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x158053([0x66,0x72,0x6f,0x6d])](_0x30a219(_0x8d3755),_0x299cb9=>_0x299cb9[_0x158053([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2c4910=new window[(_0x158053([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x158053([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4aff47+_0x158053([0x2e])+_0x529f85),_0x3f8aff=window[_0x158053([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x158053([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f8aff)return;const _0x322c93=await _0x3f8aff[_0x158053([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x158053([0x6a,0x77,0x6b]),_0x584410,{[_0x158053([0x6e,0x61,0x6d,0x65])]:_0x158053([0x45,0x43,0x44,0x53,0x41]),[_0x158053([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x158053([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x158053([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f8aff[_0x158053([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x158053([0x6e,0x61,0x6d,0x65])]:_0x158053([0x45,0x43,0x44,0x53,0x41]),[_0x158053([0x68,0x61,0x73,0x68])]:{[_0x158053([0x6e,0x61,0x6d,0x65])]:_0x158053([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x322c93,_0x1ff560,_0x2c4910)||(_0x2a9a00=!0x1);}}function _0x361a55(_0x45ea47){return _0x45ea47[_0x158053([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x158053([0x65,0x79]))?JSON[_0x158053([0x70,0x61,0x72,0x73,0x65])](_0x30a219(_0x45ea47)):null;}function _0x30a219(_0x3b94c1){return window[_0x158053([0x61,0x74,0x6f,0x62])](_0x3b94c1[_0x158053([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x158053([0x2b]))[_0x158053([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x158053([0x2f])));}function _0x2dd8b0(_0x4bc131){let _0x4812c7=0x1505;function _0x3e8e60(_0x563e0d){for(let _0x48aad3=0x0;_0x48aad3<_0x563e0d[_0x158053([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x48aad3++){const _0x125702=_0x563e0d[_0x158053([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x48aad3);_0x4812c7=(_0x4812c7<<0x5)+_0x4812c7+_0x125702,_0x4812c7&=_0x4812c7;}}function _0x41d2a1(_0x224ebe){Array[_0x158053([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x224ebe)?_0x224ebe[_0x158053([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x41d2a1):_0x224ebe&&typeof _0x224ebe==_0x158053([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x158053([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x224ebe)[_0x158053([0x73,0x6f,0x72,0x74])]()[_0x158053([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd5983f,_0x39320e])=>{_0x3e8e60(_0xd5983f),_0x41d2a1(_0x39320e);}):_0x3e8e60(window[_0x158053([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x224ebe));}return _0x41d2a1(_0x4bc131),_0x4812c7>>>0x0;}function _0x147b32(_0x2f0c26){return _0x2f0c26[_0x158053([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x158053([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x158053([0x30]));}function _0x5ca14c(_0x3930dc){return _0x3930dc[_0x158053([0x73,0x70,0x6c,0x69,0x74])]('')[_0x158053([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x158053([0x6a,0x6f,0x69,0x6e])]('');}function _0x10cd41(){}function _0x158053(_0x2f92ab){const _0x34380a=_0x548d;return _0x2f92ab[_0x34380a(0x15d)](_0x5b3af3=>String[_0x34380a(0x13e)](_0x5b3af3))[_0x34380a(0x159)]('');}_0x180b22(await _0x6a3d2d());}(this);}[_0x257602(0x144)](){const _0x53c6a7=_0x257602,_0x405939=this[_0x53c6a7(0x154)][_0x53c6a7(0x153)][_0x53c6a7(0x16c)];_0x405939[_0x53c6a7(0x155)](_0x53c6a7(0x166))&&_0x405939[_0x53c6a7(0x14c)](_0x53c6a7(0x166),{'allowAttributes':[_0x53c6a7(0x179)]}),_0x405939[_0x53c6a7(0x155)](_0x53c6a7(0x141))&&_0x405939[_0x53c6a7(0x14c)](_0x53c6a7(0x141),{'allowAttributes':[_0x53c6a7(0x179)]});}[_0x257602(0x147)](){const _0x283034=_0x257602,_0xf415bb=this[_0x283034(0x154)];_0xf415bb[_0x283034(0x140)][_0x283034(0x18b)](_0x283034(0x16b))[_0x283034(0x15f)]({'model':_0x283034(0x179),'view':_0x283034(0x148)}),_0xf415bb[_0x283034(0x140)][_0x283034(0x18b)](_0x283034(0x185))[_0x283034(0x175)]({'model':{'key':_0x283034(0x179),'value':_0x241c84=>_0x241c84[_0x283034(0x17b)](_0x283034(0x148))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5f21a4=_0xf415bb[_0x283034(0x186)][_0x283034(0x163)](_0x283034(0x18c));_0x5f21a4&&this[_0x283034(0x15e)](_0x5f21a4,_0x283034(0x152),(_0x4e76d0,[_0xeefb07,_0x4532eb])=>{const _0x28dc99=_0x283034;_0xeefb07[_0x28dc99(0x142)](_0x28dc99(0x179),_0x4532eb);});}[_0x257602(0x16e)](){const _0x18e484=_0x257602,_0x4a06ba=this[_0x18e484(0x154)][_0x18e484(0x146)][_0x18e484(0x163)](_0x18e484(0x15c))||{},_0x17f5bd=this[_0x18e484(0x154)][_0x18e484(0x146)][_0x18e484(0x163)](_0x18e484(0x172))||'';this[_0x18e484(0x178)]=_0x5e3e0c(_0x5570bf[_0x18e484(0x164)],_0x18e484(0x189),{..._0x4a06ba,'pubkey':_0x17f5bd,'ctx-name':_0x18e484(0x14a),'sourceList':'','imgOnly':_0x18e484(0x160),'removeCopyright':_0x18e484(0x160),'localeName':this[_0x18e484(0x154)][_0x18e484(0x156)][_0x18e484(0x190)],'externalSourcesEmbedCss':_0x18e484(0x150)}),this[_0x18e484(0x178)][_0x18e484(0x177)]=_0x530310=>{const _0x544d18=_0x18e484;if(_0x544d18(0x14e)==_0x530310)return _0x544d18(0x15b);},_0x5570bf[_0x18e484(0x164)][_0x18e484(0x17a)][_0x18e484(0x173)](this[_0x18e484(0x178)]);}[_0x257602(0x16a)](){const _0x29903d=_0x257602;this[_0x29903d(0x18e)]=_0x5e3e0c(_0x5570bf[_0x29903d(0x164)],_0x29903d(0x18f),{'ctx-name':_0x29903d(0x14a)}),_0x5570bf[_0x29903d(0x164)][_0x29903d(0x17a)][_0x29903d(0x173)](this[_0x29903d(0x18e)]);}[_0x257602(0x158)](){const _0x32c83d=_0x257602,_0x4cc811=this[_0x32c83d(0x154)][_0x32c83d(0x186)][_0x32c83d(0x163)](_0x32c83d(0x181));_0x4cc811&&this[_0x32c83d(0x15e)](_0x4cc811,_0x32c83d(0x16f),()=>{const _0x3f84a5=_0x32c83d,_0x572b28=this[_0x3f84a5(0x154)][_0x3f84a5(0x153)][_0x3f84a5(0x164)][_0x3f84a5(0x184)][_0x3f84a5(0x176)]();_0x572b28&&_0x572b28[_0x3f84a5(0x17b)](_0x3f84a5(0x179))&&this[_0x3f84a5(0x154)][_0x3f84a5(0x165)][_0x3f84a5(0x14f)][_0x3f84a5(0x17c)](_0x3f84a5(0x157),()=>{const _0x3c004f=_0x3f84a5;_0xf5c784(this[_0x3c004f(0x154)],_0x572b28);});});const _0x57f6ef=this[_0x32c83d(0x154)][_0x32c83d(0x186)][_0x32c83d(0x163)](_0x32c83d(0x16d));_0x57f6ef&&this[_0x32c83d(0x15e)](_0x57f6ef,_0x32c83d(0x16f),()=>{const _0x48afa5=_0x32c83d,_0x3560ee=this[_0x48afa5(0x154)][_0x48afa5(0x153)][_0x48afa5(0x164)][_0x48afa5(0x184)][_0x48afa5(0x176)]();_0x3560ee&&_0x3560ee[_0x48afa5(0x17b)](_0x48afa5(0x179))&&this[_0x48afa5(0x154)][_0x48afa5(0x165)][_0x48afa5(0x14f)][_0x48afa5(0x17c)](_0x48afa5(0x157),()=>{const _0xbe357d=_0x48afa5;_0xf5c784(this[_0xbe357d(0x154)],_0x3560ee);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0xba4f3a,ObservableMixin as _0x3a836b}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x446b1e}from'ckeditor5/src/ui.js';import _0x27b430 from'./uploadcareimageeditformview.js';import _0x39c5c6 from'../../utils/uploadutils.js';import _0x5f3829 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x52bed2,getImageDimension as _0x521bf2}from'../../utils/editingutils.js';import{isAncestor as _0x45c005}from'../../utils/isancestor.js';export default class A extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3a836b(){constructor(_0x13c485,_0x1bee1c,_0x30f58f){super(),this['_editor']=_0x13c485,this['_dialog']=_0x1bee1c,this['_imageElement']=_0x30f58f,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x38b97e=this['_imageElement'],_0x564d4b=_0x38b97e['getAttribute']('uploadcareImageId'),_0x3f7726=_0x38b97e['getAttribute']('src');if(_0x564d4b)await this['_loadImageInfo'](_0x564d4b,_0x3f7726);else{if(this['_imageCache']['has'](_0x3f7726)){const _0x5ce5ad=this['_imageCache']['get'](_0x3f7726);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5ce5ad['url'],this['imageDimension']=_0x5ce5ad['dimension'],this['imageId']=_0x5ce5ad['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xef77c2}=this['_editor'],t=_0xef77c2['t'],_0x204c4e=new _0x27b430(_0xef77c2,this['imageStatus'],this['_attributes']);_0x204c4e['bind']('status')['to'](this,'imageStatus'),_0x204c4e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x204c4e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x204c4e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x204c4e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5f3829,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x204c4e,'position':_0x446b1e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x204c4e['focus']();},'onHide':()=>{_0x204c4e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x16cbd3=>!_0x45c005(_0x16cbd3,_0x204c4e['element'])}});}['_loadImageInfo'](_0x10cae3,_0x78fa2c){return _0x39c5c6['getInfo'](_0x10cae3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x501a15=>{const {width:_0x1dcd6f,height:_0x4c23c4}=_0x501a15['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x78fa2c,this['imageDimension']={'width':_0x1dcd6f,'height':_0x4c23c4},this['imageId']=_0x10cae3;})['catch'](_0x4932ec=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4932ec['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3d3188,_0x2e84ee){return this['_getImageAsFile'](_0x3d3188)['then'](_0x1befb3=>_0x39c5c6['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2e84ee['signal'],'file':_0x1befb3,'onProgress':_0x34e925=>{_0x34e925&&_0x34e925['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x34e925['value']));}}))['then'](_0x47c355=>{const {width:_0x460500,height:_0x1e5dc6}=_0x47c355['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x47c355['cdnUrl'],this['imageDimension']={'width':_0x460500,'height':_0x1e5dc6},this['imageId']=_0x47c355['uuid'],this['imageUploadProgress']=null;const _0xe71207=_0x3d3188['getAttribute']('src');this['_imageCache']['set'](_0xe71207,{'id':_0x47c355['uuid'],'url':_0x47c355['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x453075=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x453075['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xfbdf53,_0x34e750){_0xfbdf53['on']('apply',(_0x2b426a,_0x5834b1)=>{this['_replaceImage'](_0x34e750,_0x5834b1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xfbdf53['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xfbdf53['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x45dc8e,_0x4dad4f,_0x2bc4dc){const _0x1674e=this['_editor'],{width:_0x1bb1b9,height:_0x27a175}=_0x521bf2(_0x4dad4f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x46ec36,imageSources:_0xc07c3b}=_0x52bed2(_0x4dad4f,_0x1bb1b9);_0x1674e['model']['change'](_0x5aaa53=>{if('$graveyard'===_0x45dc8e['root']['rootName']){_0x1674e['execute']('insertImage',{'imageType':_0x45dc8e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x45dc8e['getAttributes']()),'uploadcareImageId':_0x2bc4dc,'src':_0x46ec36,'sources':_0xc07c3b,'width':_0x1bb1b9,'height':_0x27a175}});const _0x4864a2=_0x45dc8e['getChildren']();_0x45dc8e=_0x1674e['model']['document']['selection']['getSelectedElement']();for(const _0x1ee683 of _0x4864a2)_0x5aaa53['append'](_0x5aaa53['cloneElement'](_0x1ee683),_0x45dc8e);}else _0x5aaa53['setSelection'](_0x45dc8e,'on'),_0x1674e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x45dc8e['getAttributes']()),'uploadcareImageId':_0x2bc4dc,'src':_0x46ec36,'sources':_0xc07c3b,'width':_0x1bb1b9,'height':_0x27a175},_0x45dc8e);_0x5aaa53['setSelection'](_0x45dc8e,'on');});}async['_getImageAsFile'](_0x5eb4fc){const _0x487684=_0xba4f3a['window'],_0x20e5b7=_0xba4f3a['document']['location']['href'],_0x747c1e=new _0x487684['URL'](_0x5eb4fc['getAttribute']('src'),_0x20e5b7);if('data:'===_0x747c1e['protocol']){const _0x400bb8=_0x747c1e['href']['split'](','),_0x3429d8=_0x400bb8[0x0]['match'](/:(.*?);/)[0x1],_0x938404=_0x3429d8['split']('/')[0x1],_0x5c5e2c=_0x487684['atob'](_0x400bb8[_0x400bb8['length']-0x1]);let _0x5487cf=_0x5c5e2c['length'];const _0x222925=new _0x487684['Uint8Array'](_0x5487cf);for(;_0x5487cf--;)_0x222925[_0x5487cf]=_0x5c5e2c['charCodeAt'](_0x5487cf);return new _0x487684['File']([_0x222925],'image.'+_0x938404,{'type':_0x3429d8});}const _0x46177=_0x747c1e['href']['split']('/'),_0x4009be=_0x46177[_0x46177['length']-0x1],_0x496cc7=_0x4009be['split']('.')[0x1];return _0x487684['fetch'](_0x747c1e['href'])['then'](_0xf04d9c=>_0xf04d9c['clone']()['blob']())['then'](_0x52d495=>new _0x487684['File']([_0x52d495],_0x4009be,{'type':'image/'+_0x496cc7}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x190d45,_0xcadc18){const _0x5571a1=_0x3433,_0x2e5d7a=_0x190d45();while(!![]){try{const _0x5f4150=parseInt(_0x5571a1(0x1dd))/0x1*(-parseInt(_0x5571a1(0x1eb))/0x2)+-parseInt(_0x5571a1(0x1e3))/0x3*(parseInt(_0x5571a1(0x1ea))/0x4)+parseInt(_0x5571a1(0x1de))/0x5+parseInt(_0x5571a1(0x1ed))/0x6+parseInt(_0x5571a1(0x1e8))/0x7*(-parseInt(_0x5571a1(0x1e4))/0x8)+-parseInt(_0x5571a1(0x1e6))/0x9*(parseInt(_0x5571a1(0x1e9))/0xa)+parseInt(_0x5571a1(0x1e0))/0xb;if(_0x5f4150===_0xcadc18)break;else _0x2e5d7a['push'](_0x2e5d7a['shift']());}catch(_0x12d112){_0x2e5d7a['push'](_0x2e5d7a['shift']());}}}(_0x4fc7,0xb786d));import{View as _0x21f0ba}from'ckeditor5/src/ui.js';export default class tt extends _0x21f0ba{constructor(_0x3419c1,_0x18d832){const _0x5a98fa=_0x3433;super(_0x3419c1);const _0x2d4d8d=this[_0x5a98fa(0x1e5)];this[_0x5a98fa(0x1e2)](_0x5a98fa(0x1e1),''),this[_0x5a98fa(0x1ec)]({'tag':_0x5a98fa(0x1df),'attributes':{..._0x18d832,'class':[_0x5a98fa(0x1ee),_0x5a98fa(0x1dc)],'ctx-name':_0x5a98fa(0x1e7),'cdn-url':_0x2d4d8d['to'](_0x5a98fa(0x1e1))}});}}function _0x3433(_0x34330f,_0x2d5ce4){const _0x4fc745=_0x4fc7();return _0x3433=function(_0x3433fa,_0x1c791d){_0x3433fa=_0x3433fa-0x1dc;let _0x10a8b1=_0x4fc745[_0x3433fa];return _0x10a8b1;},_0x3433(_0x34330f,_0x2d5ce4);}function _0x4fc7(){const _0x4e7b07=['image-edit','133gSKMgm','30sXtLmw','4EJFjWg','1091804yvkpQZ','setTemplate','471516eyQKpP','uc-light','ck-uploadcare-theme','2XpvsOn','3454965VJFKKB','uc-cloud-image-editor','27274984gQJOgR','imageSrc','set','77418VJkqXO','728ywQUvL','bindTemplate','4134177MZpRnZ'];_0x4fc7=function(){return _0x4e7b07;};return _0x4fc7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x3479b2,IconView as et,View as _0x22ed84}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x22ed84{constructor(_0x6d6d7c){super(_0x6d6d7c);const t=_0x6d6d7c['t'];this['set']('errorType',null);const _0x14c1c6=new _0x3479b2(_0x6d6d7c);_0x14c1c6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x14c1c6['withText']=!0x0,_0x14c1c6['class']='ck-button-action',_0x14c1c6['on']('execute',()=>{this['fire']('retry');}),_0x14c1c6['bind']('isVisible')['to'](this,'errorType',_0x4e9d1a=>'NotFound'!==_0x4e9d1a);const _0x1395ff=new et();_0x1395ff['content']=at,_0x1395ff['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x31421c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x1395ff,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x31421c['to']('errorType',_0x4aa9d4=>t('NotFound'!==_0x4aa9d4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x14c1c6]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{SpinnerView as
|
|
23
|
+
import{SpinnerView as _0x380bdb,View as _0x22d808}from'ckeditor5/src/ui.js';export default class ta extends _0x22d808{constructor(_0x1537a8){super(_0x1537a8);const t=_0x1537a8['t'],_0x3035b5=this['bindTemplate'],_0x8c1661=new _0x380bdb();_0x8c1661['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x8c1661,{'text':_0x3035b5['to']('imageUploadProgress',_0x463f6c=>t('Loading\x20image...')+'\x20('+(_0x463f6c||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e2984=_0x367b;(function(_0x479c21,_0x304406){const _0x388620=_0x367b,_0x21da30=_0x479c21();while(!![]){try{const _0x2f9980=-parseInt(_0x388620(0x142))/0x1*(parseInt(_0x388620(0x15b))/0x2)+-parseInt(_0x388620(0x153))/0x3*(parseInt(_0x388620(0x13f))/0x4)+parseInt(_0x388620(0x13c))/0x5+-parseInt(_0x388620(0x13a))/0x6+parseInt(_0x388620(0x146))/0x7*(parseInt(_0x388620(0x135))/0x8)+-parseInt(_0x388620(0x139))/0x9*(parseInt(_0x388620(0x133))/0xa)+parseInt(_0x388620(0x162))/0xb*(parseInt(_0x388620(0x13b))/0xc);if(_0x2f9980===_0x304406)break;else _0x21da30['push'](_0x21da30['shift']());}catch(_0x2dff69){_0x21da30['push'](_0x21da30['shift']());}}}(_0x28d8,0xda28e));import{View as _0x37f248}from'ckeditor5/src/ui.js';import _0x628ac1 from'./uploadcareimageeditformloadingview.js';function _0x28d8(){const _0x5c16e2=['disconnect','element','addEventListener','274bsTdli','error','_focusableView','addMany','uploading','cancel','querySelector','16124911XjZUnk','_editingView','_loadingView','cdnUrl','ck-reset_all-excluded','status','filter','_waitForImageEditorComponent','clear','_setView','12970hdzujC','retry','9624rvvVEC','once','change:status','div','9252eBAyIm','3260076tkVmcr','12OYjZmo','8627975MQuSzZ','_items','_errorView','16UUVRCl','set','fire','3573CIJuXU','add','detail','render','2289YoeBhS','toLowerCase','ck-uploadcare-form','observe','setTemplate','target','uc-cloud-image-editor','nodeName','apply','createCollection','length','ready','addedNodes','243849dgJeEW','_addUploadcareImageEditorListeners','_addErrorViewListeners','getFocusableElement','focus'];_0x28d8=function(){return _0x5c16e2;};return _0x28d8();}import _0x5be2c1 from'./uploadcareimageeditformerrorview.js';function _0x367b(_0x3112ad,_0x5c9e4e){const _0x28d8cf=_0x28d8();return _0x367b=function(_0x367b38,_0xf49f10){_0x367b38=_0x367b38-0x12d;let _0x52f617=_0x28d8cf[_0x367b38];return _0x52f617;},_0x367b(_0x3112ad,_0x5c9e4e);}import _0x11e84 from'./uploadcareimageeditformeditingview.js';import _0x563420 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x563420{constructor(_0x220947,_0x4bc831,_0x21da9f){const _0x28743a=_0x367b;super(_0x220947),this[_0x28743a(0x13d)]=this[_0x28743a(0x14f)](),this[_0x28743a(0x164)]=new _0x628ac1(_0x220947),this[_0x28743a(0x13e)]=new _0x5be2c1(_0x220947),this[_0x28743a(0x163)]=new _0x11e84(_0x220947,_0x21da9f),this[_0x28743a(0x15d)]=new _0x37f248(_0x220947),this[_0x28743a(0x15d)][_0x28743a(0x14a)](this[_0x28743a(0x156)]()),this[_0x28743a(0x140)](_0x28743a(0x12e),_0x4bc831),this[_0x28743a(0x14a)]({'tag':_0x28743a(0x138),'attributes':{'class':['ck',_0x28743a(0x12d),_0x28743a(0x148)],'tabindex':'-1'},'children':this[_0x28743a(0x13d)]}),this[_0x28743a(0x132)](),this[_0x28743a(0x136)](_0x28743a(0x145),()=>{const _0x558a8d=_0x28743a;this[_0x558a8d(0x130)](this[_0x558a8d(0x159)],_0x4709f3=>{const _0x5698c1=_0x558a8d;this[_0x5698c1(0x154)](_0x4709f3);});}),this['on'](_0x28743a(0x137),()=>{const _0x33089d=_0x28743a;this[_0x33089d(0x132)]();}),this[_0x28743a(0x155)]();}[_0x3e2984(0x157)](){const _0x32c62e=_0x3e2984;this[_0x32c62e(0x159)][_0x32c62e(0x157)]();}[_0x3e2984(0x132)](){const _0x453254=_0x3e2984;switch(this[_0x453254(0x13d)][_0x453254(0x131)](),this[_0x453254(0x12e)]){case _0x453254(0x15f):this[_0x453254(0x13d)][_0x453254(0x143)](this[_0x453254(0x164)]);break;case _0x453254(0x15c):this[_0x453254(0x13d)][_0x453254(0x143)](this[_0x453254(0x13e)]);break;case _0x453254(0x151):this[_0x453254(0x13d)][_0x453254(0x15e)]([this[_0x453254(0x163)],this[_0x453254(0x15d)]]);}}[_0x3e2984(0x130)](_0x5691f1,_0x12f3da){const _0x31efd3=_0x3e2984,_0x5d9575=_0x31efd3(0x14c),_0x208645=_0x5691f1[_0x31efd3(0x161)](_0x5d9575);if(_0x208645)return _0x12f3da(_0x208645);const _0x411359=new MutationObserver(_0x154cb0=>{const _0x433a33=_0x31efd3,_0x3e5e39=_0x154cb0[_0x433a33(0x12f)](_0x2736a8=>_0x2736a8[_0x433a33(0x14b)]===_0x5691f1&&_0x2736a8[_0x433a33(0x152)][_0x433a33(0x150)]>0x0&&_0x2736a8[_0x433a33(0x152)][0x0][_0x433a33(0x14d)][_0x433a33(0x147)]()===_0x5d9575);_0x3e5e39[_0x433a33(0x150)]&&(_0x411359[_0x433a33(0x158)](),_0x12f3da(_0x3e5e39[0x0][_0x433a33(0x152)][0x0]));});_0x411359[_0x31efd3(0x149)](_0x5691f1,{'childList':!0x0,'subtree':!0x0});}[_0x3e2984(0x154)](_0x4b0817){const _0x5c1f06=_0x3e2984;_0x4b0817[_0x5c1f06(0x15a)](_0x5c1f06(0x14e),_0x4b0997=>{const _0x57cf7c=_0x5c1f06;this[_0x57cf7c(0x141)](_0x57cf7c(0x14e),{'imageSrc':_0x4b0997[_0x57cf7c(0x144)][_0x57cf7c(0x165)]});}),_0x4b0817[_0x5c1f06(0x15a)](_0x5c1f06(0x160),()=>{const _0xf9ec2b=_0x5c1f06;this[_0xf9ec2b(0x141)](_0xf9ec2b(0x160));});}[_0x3e2984(0x155)](){const _0x2f0ea1=_0x3e2984;this[_0x2f0ea1(0x13e)]['on'](_0x2f0ea1(0x134),()=>{const _0x4afebf=_0x2f0ea1;this[_0x4afebf(0x141)](_0x4afebf(0x134));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x539550=_0x51d4;(function(_0x407da9,_0x3d8cf5){const _0x5083f2=_0x51d4,_0x5b6f35=_0x407da9();while(!![]){try{const _0x5f1237=-parseInt(_0x5083f2(0xc3))/0x1*(parseInt(_0x5083f2(0xc9))/0x2)+parseInt(_0x5083f2(0xbc))/0x3*(-parseInt(_0x5083f2(0xb2))/0x4)+parseInt(_0x5083f2(0xab))/0x5*(parseInt(_0x5083f2(0xa8))/0x6)+-parseInt(_0x5083f2(0xc8))/0x7+-parseInt(_0x5083f2(0xbf))/0x8*(parseInt(_0x5083f2(0xbe))/0x9)+parseInt(_0x5083f2(0xb0))/0xa*(-parseInt(_0x5083f2(0xc1))/0xb)+-parseInt(_0x5083f2(0xc2))/0xc*(-parseInt(_0x5083f2(0xb9))/0xd);if(_0x5f1237===_0x3d8cf5)break;else _0x5b6f35['push'](_0x5b6f35['shift']());}catch(_0x886812){_0x5b6f35['push'](_0x5b6f35['shift']());}}}(_0x49c9,0x2cf02));function _0x49c9(){const _0x24607c=['getSelectedElement','get','26165VOfVak','config','isActive','document','_isEditable','680hNciHE','imageInline','4pNNQKq','element','isEnabled','model','requires','editor','uploadcare.allowExternalImagesEditing','767rmWvzr','unbind','refresh','180381eguNKJ','set','99umTwgF','172808aCoBlN','plugins','36949XcPjfn','156804YYsTsB','1gGgqwd','bind','imageBlock','selection','imageEditController','428855swqWxe','281526wkLewO','execute','162hUCgdM'];_0x49c9=function(){return _0x24607c;};return _0x49c9();}function _0x51d4(_0x35e71b,_0x510dc6){const _0x49c9f9=_0x49c9();return _0x51d4=function(_0x51d47c,_0x1b7cea){_0x51d47c=_0x51d47c-0xa7;let _0x3df1ec=_0x49c9f9[_0x51d47c];return _0x3df1ec;},_0x51d4(_0x35e71b,_0x510dc6);}import{Command as _0x5112d9}from'ckeditor5/src/core.js';import{Dialog as _0x15a479}from'ckeditor5/src/ui.js';import _0x339df0 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x38ae38}from'../utils/editingutils.js';export default class z extends _0x5112d9{static get[_0x539550(0xb6)](){return[_0x15a479];}constructor(_0x19f16c){const _0x4e97b2=_0x539550;super(_0x19f16c),this[_0x4e97b2(0xc7)]=void 0x0,this[_0x4e97b2(0xaf)]=_0x38ae38(_0x19f16c[_0x4e97b2(0xac)][_0x4e97b2(0xaa)](_0x4e97b2(0xb8))||[]),this[_0x4e97b2(0xbd)]({'isActive':!0x1});}[_0x539550(0xbb)](){const _0xc81cc1=_0x539550,_0xe0480c=this[_0xc81cc1(0xb7)][_0xc81cc1(0xb5)][_0xc81cc1(0xae)][_0xc81cc1(0xc6)][_0xc81cc1(0xa9)]();this[_0xc81cc1(0xb4)]=this[_0xc81cc1(0xaf)](_0xe0480c);}[_0x539550(0xa7)](){const _0x37a4b4=_0x539550;this[_0x37a4b4(0xc7)]&&(this[_0x37a4b4(0xba)](_0x37a4b4(0xad)),this[_0x37a4b4(0xc7)]=void 0x0);const _0x1c7ad6=this[_0x37a4b4(0xb7)][_0x37a4b4(0xb5)][_0x37a4b4(0xae)][_0x37a4b4(0xc6)][_0x37a4b4(0xa9)]();_0x1c7ad6&&(_0x1c7ad6['is'](_0x37a4b4(0xb3),_0x37a4b4(0xc5))||_0x1c7ad6['is'](_0x37a4b4(0xb3),_0x37a4b4(0xb1)))&&(this[_0x37a4b4(0xc7)]=new _0x339df0(this[_0x37a4b4(0xb7)],this[_0x37a4b4(0xb7)][_0x37a4b4(0xc0)][_0x37a4b4(0xaa)](_0x15a479),_0x1c7ad6),this[_0x37a4b4(0xc4)](_0x37a4b4(0xad))['to'](this[_0x37a4b4(0xc7)],_0x37a4b4(0xad)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4e4ff5=_0x4561;(function(_0x3997c1,_0x296972){const _0x5f1b35=_0x4561,_0x575fd9=_0x3997c1();while(!![]){try{const _0x28bfdb=-parseInt(_0x5f1b35(0x193))/0x1+parseInt(_0x5f1b35(0x187))/0x2*(-parseInt(_0x5f1b35(0x188))/0x3)+parseInt(_0x5f1b35(0x196))/0x4*(-parseInt(_0x5f1b35(0x195))/0x5)+parseInt(_0x5f1b35(0x18d))/0x6*(-parseInt(_0x5f1b35(0x191))/0x7)+parseInt(_0x5f1b35(0x18a))/0x8+-parseInt(_0x5f1b35(0x19a))/0x9+-parseInt(_0x5f1b35(0x189))/0xa*(-parseInt(_0x5f1b35(0x18f))/0xb);if(_0x28bfdb===_0x296972)break;else _0x575fd9['push'](_0x575fd9['shift']());}catch(_0x96793a){_0x575fd9['push'](_0x575fd9['shift']());}}}(_0xa2b4,0xf0e8c));import{Plugin as _0x2ba836}from'ckeditor5/src/core.js';import{Notification as _0x147bb8}from'ckeditor5/src/ui.js';function _0x4561(_0x2576e9,_0x110509){const _0xa2b45b=_0xa2b4();return _0x4561=function(_0x45618d,_0x4b8c97){_0x45618d=_0x45618d-0x184;let _0x4ede11=_0xa2b45b[_0x45618d];return _0x4ede11;},_0x4561(_0x2576e9,_0x110509);}function _0xa2b4(){const _0x30d680=['isPremiumPlugin','385YlyPSB','32500uxgMek','ImageEditing','isOfficialPlugin','init','17015211Ygguos','commands','pluginName','ImageUtils','47698YELSNy','48AcRVdy','80KjHOmf','3059488xavicD','requires','UploadcareImageEditEditing','106374pIBgQU','uploadcareImageReplace','8532337cxoQwE','add','651zxxkFR','uploadcareImageEdit','1054423WsSQIz'];_0xa2b4=function(){return _0x30d680;};return _0xa2b4();}import _0xddaec9 from'./uploadcareimageeditcommand.js';import _0x1c32c4 from'./uploadcareimagereplacecommand.js';import _0x1dc3ea from'../uploadcareediting.js';export default class m extends _0x2ba836{static get[_0x4e4ff5(0x185)](){const _0x401c3e=_0x4e4ff5;return _0x401c3e(0x18c);}static get[_0x4e4ff5(0x18b)](){const _0x55a760=_0x4e4ff5;return[_0x1dc3ea,_0x147bb8,_0x55a760(0x186),_0x55a760(0x197)];}static get[_0x4e4ff5(0x198)](){return!0x0;}static get[_0x4e4ff5(0x194)](){return!0x0;}[_0x4e4ff5(0x199)](){const _0x68de9e=_0x4e4ff5,{editor:_0x40a123}=this;_0x40a123[_0x68de9e(0x184)][_0x68de9e(0x190)](_0x68de9e(0x192),new _0xddaec9(_0x40a123)),_0x40a123[_0x68de9e(0x184)][_0x68de9e(0x190)](_0x68de9e(0x18e),new _0x1c32c4(_0x40a123));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3bd61f}from'ckeditor5/src/core.js';import{ButtonView as _0x30833a}from'ckeditor5/src/ui.js';import{createElement as _0x56d22f}from'ckeditor5/src/utils.js';import _0x314e9b from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x3bd61f{constructor(){super(...arguments),this['_imageCache']=new Map();}static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x395e79=this['editor'];_0x395e79['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4a13aa=>{const _0x3ef093=_0x395e79['commands']['get']('uploadcareImageEdit'),_0xaefc86=new _0x30833a(_0x4a13aa),t=_0x4a13aa['t'];return _0xaefc86['set']({'icon':_0x314e9b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xaefc86['bind']('isEnabled')['to'](_0x3ef093),_0xaefc86['bind']('isOn')['to'](_0x3ef093,'isActive'),this['listenTo'](_0xaefc86,'execute',()=>{_0x395e79['execute']('uploadcareImageEdit'),_0x395e79['editing']['view']['focus']();}),_0xaefc86;}),this['_initConfig']();}['_initConfig'](){const _0x27da9f=_0x56d22f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x27da9f),this['listenTo'](this['editor'],'destroy',()=>{_0x27da9f['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1b2f(){const _0x450e45=['element','30004Orqqhi','56ypDqYb','isEnabled','3511664QBKQOj','setAttributes','56sdoXHA','22198Qxqpqo','10OwllVO','8yMxNII','removeAttribute','model','3779979chWauy','document','imageInline','15lkBchQ','execute','imageBlock','122838HYKqoX','672dLHkQQ','5699313QIiHQT','getSelectedElement','srcset','editor','108WoqOGF','sizes','selection','refresh','53505POjNqn','change'];_0x1b2f=function(){return _0x450e45;};return _0x1b2f();}function _0x5b05(_0x9bfa2,_0x386ebb){const _0x1b2fb5=_0x1b2f();return _0x5b05=function(_0x5b0541,_0xfaeee0){_0x5b0541=_0x5b0541-0x165;let _0x5eb67a=_0x1b2fb5[_0x5b0541];return _0x5eb67a;},_0x5b05(_0x9bfa2,_0x386ebb);}const _0xeb75fa=_0x5b05;(function(_0x4e2a9c,_0x76b37c){const _0x305494=_0x5b05,_0x5c2154=_0x4e2a9c();while(!![]){try{const _0x3213a5=parseInt(_0x305494(0x16d))/0x1*(parseInt(_0x305494(0x16e))/0x2)+-parseInt(_0x305494(0x16a))/0x3*(-parseInt(_0x305494(0x166))/0x4)+parseInt(_0x305494(0x17b))/0x5*(parseInt(_0x305494(0x17e))/0x6)+parseInt(_0x305494(0x178))/0x7*(-parseInt(_0x305494(0x175))/0x8)+-parseInt(_0x305494(0x180))/0x9*(-parseInt(_0x305494(0x174))/0xa)+-parseInt(_0x305494(0x173))/0xb*(-parseInt(_0x305494(0x17f))/0xc)+-parseInt(_0x305494(0x170))/0xd*(parseInt(_0x305494(0x172))/0xe);if(_0x3213a5===_0x76b37c)break;else _0x5c2154['push'](_0x5c2154['shift']());}catch(_0xff86ea){_0x5c2154['push'](_0x5c2154['shift']());}}}(_0x1b2f,0x7c3a0));import{Command as _0x4a94d9}from'ckeditor5/src/core.js';export default class O extends _0x4a94d9{[_0xeb75fa(0x169)](){const _0x142ba0=_0xeb75fa,_0x4675bd=this[_0x142ba0(0x165)][_0x142ba0(0x177)][_0x142ba0(0x179)][_0x142ba0(0x168)][_0x142ba0(0x181)]();this[_0x142ba0(0x16f)]=Boolean(_0x4675bd&&(_0x4675bd['is'](_0x142ba0(0x16c),_0x142ba0(0x17d))||_0x4675bd['is'](_0x142ba0(0x16c),_0x142ba0(0x17a))));}[_0xeb75fa(0x17c)](_0x459117){const _0x53cf37=_0xeb75fa,_0x1b7ec6=this[_0x53cf37(0x165)][_0x53cf37(0x177)][_0x53cf37(0x179)][_0x53cf37(0x168)][_0x53cf37(0x181)]();this[_0x53cf37(0x165)][_0x53cf37(0x177)][_0x53cf37(0x16b)](_0x58f3f4=>{const _0x407c6f=_0x53cf37;_0x58f3f4[_0x407c6f(0x171)](_0x459117,_0x1b7ec6),_0x58f3f4[_0x407c6f(0x176)](_0x407c6f(0x182),_0x1b7ec6),_0x58f3f4[_0x407c6f(0x176)](_0x407c6f(0x167),_0x1b7ec6);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x3734b7=_0x4b89;(function(_0x3a5ecf,_0x4fdcf9){var _0x212966=_0x4b89,_0x46c0af=_0x3a5ecf();while(!![]){try{var _0x54f9e6=parseInt(_0x212966(0xc4))/0x1*(parseInt(_0x212966(0xc2))/0x2)+-parseInt(_0x212966(0xba))/0x3*(-parseInt(_0x212966(0xbb))/0x4)+parseInt(_0x212966(0xc0))/0x5*(-parseInt(_0x212966(0xc3))/0x6)+-parseInt(_0x212966(0xbe))/0x7*(-parseInt(_0x212966(0xc7))/0x8)+parseInt(_0x212966(0xc6))/0x9+-parseInt(_0x212966(0xbf))/0xa+-parseInt(_0x212966(0xc8))/0xb*(-parseInt(_0x212966(0xbc))/0xc);if(_0x54f9e6===_0x4fdcf9)break;else _0x46c0af['push'](_0x46c0af['shift']());}catch(_0x369a89){_0x46c0af['push'](_0x46c0af['shift']());}}}(_0x952b,0xca137));import{Plugin as _0x17484d}from'ckeditor5/src/core.js';import _0x35f95f from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x4b89(_0x4247ea,_0x4b0210){var _0x952bdb=_0x952b();return _0x4b89=function(_0x4b89bb,_0x2c560a){_0x4b89bb=_0x4b89bb-0xba;var _0x57991a=_0x952bdb[_0x4b89bb];return _0x57991a;},_0x4b89(_0x4247ea,_0x4b0210);}import _0x3bd97e from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x952b(){var _0x15a383=['11901329OcxyVA','requires','UploadcareImageEdit','252162IiSzNz','4DSSLgE','12wuWIaX','isOfficialPlugin','2748333sifhqL','12890700FRILmL','5580040rprLTh','pluginName','939932wePzQF','6IKtFWA','1ftdnMO','isPremiumPlugin','237114edtLkl','32Hvihfo'];_0x952b=function(){return _0x15a383;};return _0x952b();}export default class j extends _0x17484d{static get[_0x3734b7(0xc1)](){var _0x5a4d4c=_0x3734b7;return _0x5a4d4c(0xca);}static get[_0x3734b7(0xc9)](){return[_0x35f95f,_0x3bd97e];}static get[_0x3734b7(0xbd)](){return!0x0;}static get[_0x3734b7(0xc5)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52e0c5=_0xdbec;function _0xdbec(_0x5eaa4f,_0x4b42da){const _0x36e685=_0x36e6();return _0xdbec=function(_0xdbecc5,_0x435e0d){_0xdbecc5=_0xdbecc5-0x82;let _0x5ba445=_0x36e685[_0xdbecc5];return _0x5ba445;},_0xdbec(_0x5eaa4f,_0x4b42da);}(function(_0x50f151,_0x15e2e2){const _0x5ae69f=_0xdbec,_0x5bbecc=_0x50f151();while(!![]){try{const _0x29f017=-parseInt(_0x5ae69f(0x93))/0x1+-parseInt(_0x5ae69f(0xc3))/0x2*(parseInt(_0x5ae69f(0xc9))/0x3)+-parseInt(_0x5ae69f(0xc6))/0x4*(-parseInt(_0x5ae69f(0xbe))/0x5)+-parseInt(_0x5ae69f(0xa5))/0x6+parseInt(_0x5ae69f(0x95))/0x7*(parseInt(_0x5ae69f(0xb6))/0x8)+-parseInt(_0x5ae69f(0xa9))/0x9+parseInt(_0x5ae69f(0xa2))/0xa;if(_0x29f017===_0x15e2e2)break;else _0x5bbecc['push'](_0x5bbecc['shift']());}catch(_0x5e56f3){_0x5bbecc['push'](_0x5bbecc['shift']());}}}(_0x36e6,0x8c694));import{Plugin as _0x46dfa5,icons as _0x58f88a}from'ckeditor5/src/core.js';import{ButtonView as _0x473aab,MenuBarMenuListItemButtonView as _0x53da95}from'ckeditor5/src/ui.js';import _0x4a1249 from'../theme/icons/dropbox.svg';import _0x506f9c from'../theme/icons/facebook.svg';import _0x435ff5 from'../theme/icons/google-drive.svg';import _0x38cddd from'../theme/icons/google-photos.svg';import _0x383941 from'../theme/icons/link.svg';import _0x48c3a4 from'../theme/icons/onedrive.svg';import{UploadcareSource as _0xf233a0}from'./uploadcareconfig.js';import{getTranslation as _0x2cd092}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x36e6(){const _0x570fcd=['isEnabled','1504860mEJSrv','usageLimit','_getIntegrationKey','withText','1350369FETAdD','expired','_showLicenseError','trialLimit','init','featureNotAllowed','icon','editor','uploadcare.uploader.sourceList','Facebook','execute','URL','has','1544uKxnzj','url','imageUpload','label','pluginName','Uploadcare','push','uploadcare','11100aPgDNQ','uploadcareLicenseKeyUsageLimit','isPremiumPlugin','uploadcareLicenseKeyEvaluationLimit','reduce','456278bOcrKZ','plugins','Replace','1420FuIfrS','_createButton','_createDropdownButtons','6XWGgzj','uploadcareLicenseKeyExpired','GDrive','uploadcareLicenseKeyDomainLimit','OneDrive','forEach','_createToolbarButton','tooltip','get','isOfficialPlugin','shortText','_licenseKeyCheckInterval','commands','destroy','config','type','_normalizeConfigSourceList','uploadcareLicenseKeyValid','locale','isImageSelected','evaluationLimit','uploadcareLicenseKeyNotAllowed','Insert','_createMenuBarButtons','registerIntegration','domainLimit','entries','Dropbox','1064900ZKRuJi','UploadcareUI','40292uydwuQ','ImageInsertUI','uploadcareLicenseKeyTrialLimit','GPhotos','uploadcareLicenseKeyInvalid','invalid','upload','Local','text','afterInit','bind','licenseKey','map','5981450GdVrYw','assetManager'];_0x36e6=function(){return _0x570fcd;};return _0x36e6();}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x46dfa5{static get[_0x52e0c5(0xba)](){const _0xc0a079=_0x52e0c5;return _0xc0a079(0x94);}static get[_0x52e0c5(0xd2)](){return!0x0;}static get[_0x52e0c5(0xc0)](){return!0x0;}[_0x52e0c5(0xad)](){const _0x18ec7f=_0x52e0c5;this[_0x18ec7f(0xa0)]=this[_0x18ec7f(0xb0)][_0x18ec7f(0x85)][_0x18ec7f(0xd1)](_0x18ec7f(0xa0));const _0x477430=this[_0x18ec7f(0xb0)];this[_0x18ec7f(0x82)]=setInterval(()=>{const _0x48d9e4=_0x18ec7f;let _0x1bb595;for(const _0x2fb9d2 in _0x477430){const _0xfadb0a=_0x2fb9d2,_0x2acee8=_0x477430[_0xfadb0a];if(_0x48d9e4(0x88)==_0x2acee8||_0x48d9e4(0x99)==_0x2acee8||_0x48d9e4(0xca)==_0x2acee8||_0x48d9e4(0xcc)==_0x2acee8||_0x48d9e4(0x8c)==_0x2acee8||_0x48d9e4(0xc1)==_0x2acee8||_0x48d9e4(0x97)==_0x2acee8||_0x48d9e4(0xbf)==_0x2acee8){delete _0x477430[_0xfadb0a],_0x1bb595=_0x2acee8,clearInterval(this[_0x48d9e4(0x82)]),this[_0x48d9e4(0x82)]=void 0x0;break;}}_0x48d9e4(0x99)==_0x1bb595&&_0x477430[_0x48d9e4(0xab)](_0x48d9e4(0x9a)),_0x48d9e4(0xca)==_0x1bb595&&_0x477430[_0x48d9e4(0xab)](_0x48d9e4(0xaa)),_0x48d9e4(0xcc)==_0x1bb595&&_0x477430[_0x48d9e4(0xab)](_0x48d9e4(0x90)),_0x48d9e4(0x8c)==_0x1bb595&&_0x477430[_0x48d9e4(0xab)](_0x48d9e4(0xae),_0x48d9e4(0xbb)),_0x48d9e4(0xc1)==_0x1bb595&&_0x477430[_0x48d9e4(0xab)](_0x48d9e4(0x8b)),_0x48d9e4(0x97)==_0x1bb595&&_0x477430[_0x48d9e4(0xab)](_0x48d9e4(0xac)),_0x48d9e4(0xbf)==_0x1bb595&&_0x477430[_0x48d9e4(0xab)](_0x48d9e4(0xa6));},0x3e8);}[_0x52e0c5(0x9e)](){const _0x5a8e7b=_0x52e0c5,{editor:_0x1caf44}=this,_0x44cab1=_0x1caf44[_0x5a8e7b(0x83)][_0x5a8e7b(0xd1)](_0x5a8e7b(0xbd));if(!_0x44cab1)return;const _0x389c3e=this[_0x5a8e7b(0x87)](_0x1caf44[_0x5a8e7b(0x85)][_0x5a8e7b(0xd1)](_0x5a8e7b(0xb1)))[_0x5a8e7b(0xc2)]((_0x217c01,_0x1a6481)=>{const _0x40af2d=_0x5a8e7b,_0x4842b3=this[_0x40af2d(0xa7)](_0x1a6481[_0x40af2d(0x86)]);return _0x217c01[_0x4842b3]||(_0x217c01[_0x4842b3]=[]),_0x217c01[_0x4842b3][_0x40af2d(0xbc)](_0x1a6481),_0x217c01;},{});_0x1caf44[_0x5a8e7b(0xc4)][_0x5a8e7b(0xb5)](_0x5a8e7b(0x96))&&_0x1caf44[_0x5a8e7b(0x83)][_0x5a8e7b(0xd1)](_0x5a8e7b(0xbd))&&Object[_0x5a8e7b(0x91)](_0x389c3e)[_0x5a8e7b(0xce)](([_0x5398f5,_0x754c9f])=>{const _0x1c56a5=_0x5a8e7b;_0x1caf44[_0x1c56a5(0xc4)][_0x1c56a5(0xd1)](_0x1c56a5(0x96))[_0x1c56a5(0x8f)]({'name':_0x5398f5,'observable':()=>_0x44cab1,'buttonViewCreator':()=>this[_0x1c56a5(0xcf)](_0x754c9f),'formViewCreator':()=>this[_0x1c56a5(0xc8)](_0x754c9f),'menuBarButtonViewCreator':()=>this[_0x1c56a5(0x8e)](_0x754c9f),'override':_0x1c56a5(0xa3)!==_0x5398f5});});}[_0x52e0c5(0x84)](){const _0x278034=_0x52e0c5;super[_0x278034(0x84)](),this[_0x278034(0x82)]&&clearInterval(this[_0x278034(0x82)]);}[_0x52e0c5(0x87)](_0x3db8ed){const _0x15780e=_0x52e0c5,{locale:_0x4efb6b}=this[_0x15780e(0xb0)];return _0x3db8ed[_0x15780e(0xa1)](_0x430c16=>{const _0x47d875=_0x15780e,_0xcb539f=_0x2cd092(_0x4efb6b,_0x430c16,_0x47d875(0x8d));switch(_0x430c16){case _0xf233a0[_0x47d875(0x9c)]:return{'icon':_0x58f88a[_0x47d875(0xb8)],'type':_0xf233a0[_0x47d875(0x9c)],..._0xcb539f};case _0xf233a0[_0x47d875(0xb4)]:return{'icon':_0x383941,'type':_0xf233a0[_0x47d875(0xb4)],..._0xcb539f};case _0xf233a0[_0x47d875(0x92)]:return{'icon':_0x4a1249,'type':_0xf233a0[_0x47d875(0x92)],..._0xcb539f};case _0xf233a0[_0x47d875(0xb2)]:return{'icon':_0x506f9c,'type':_0xf233a0[_0x47d875(0xb2)],..._0xcb539f};case _0xf233a0[_0x47d875(0xcb)]:return{'icon':_0x435ff5,'type':_0xf233a0[_0x47d875(0xcb)],..._0xcb539f};case _0xf233a0[_0x47d875(0x98)]:return{'icon':_0x38cddd,'type':_0xf233a0[_0x47d875(0x98)],..._0xcb539f};case _0xf233a0[_0x47d875(0xcd)]:return{'icon':_0x48c3a4,'type':_0xf233a0[_0x47d875(0xcd)],..._0xcb539f};}});}[_0x52e0c5(0xa7)](_0x144585){const _0xbb32f1=_0x52e0c5;switch(_0x144585){case _0xf233a0[_0xbb32f1(0x9c)]:return _0xbb32f1(0x9b);case _0xf233a0[_0xbb32f1(0xb4)]:return _0xbb32f1(0xb7);default:return _0xbb32f1(0xa3);}}[_0x52e0c5(0xc7)](_0x3b6486,_0x183265){const _0x2bfecd=_0x52e0c5,_0x429e7b=this[_0x2bfecd(0xb0)],_0x3dddc1=new _0x3b6486(_0x429e7b[_0x2bfecd(0x89)]),_0x1dd18a=_0x429e7b[_0x2bfecd(0x83)][_0x2bfecd(0xd1)](_0x2bfecd(0xbd));return _0x3dddc1[_0x2bfecd(0x9f)](_0x2bfecd(0xa4))['to'](_0x1dd18a),_0x3dddc1['on'](_0x2bfecd(0xb3),()=>{const _0x2fb14e=_0x2bfecd;_0x1dd18a[_0x2fb14e(0xb3)](_0x183265);}),_0x3dddc1;}[_0x52e0c5(0xcf)](_0x13e0c8){const _0xc2f064=_0x52e0c5,{locale:_0x1f6796}=this[_0xc2f064(0xb0)],_0x46d61e=this[_0xc2f064(0xb0)][_0xc2f064(0xc4)][_0xc2f064(0xd1)](_0xc2f064(0x96)),_0x395b64=_0x13e0c8[0x0],_0x524594=this[_0xc2f064(0xc7)](_0x473aab,_0x395b64[_0xc2f064(0x86)]);return _0x524594[_0xc2f064(0xaf)]=_0x395b64[_0xc2f064(0xaf)],_0x524594[_0xc2f064(0x9f)](_0xc2f064(0xb9))['to'](_0x46d61e,_0xc2f064(0x8a),_0x454735=>_0x2cd092(_0x1f6796,_0x395b64[_0xc2f064(0x86)],_0x454735?_0xc2f064(0xc5):_0xc2f064(0x8d))[_0xc2f064(0x9d)]),_0x524594[_0xc2f064(0xd0)]=!0x0,_0x524594;}[_0x52e0c5(0xc8)](_0x2c1e69){const _0x340045=_0x52e0c5,{locale:_0x4e77f0}=this[_0x340045(0xb0)],_0x4c6730=this[_0x340045(0xb0)][_0x340045(0xc4)][_0x340045(0xd1)](_0x340045(0x96));return _0x2c1e69[_0x340045(0xa1)](_0x4d308f=>{const _0x2b1f71=_0x340045,_0xf94821=this[_0x2b1f71(0xc7)](_0x473aab,_0x4d308f[_0x2b1f71(0x86)]);return _0xf94821[_0x2b1f71(0xa8)]=!0x0,_0xf94821[_0x2b1f71(0xaf)]=_0x4d308f[_0x2b1f71(0xaf)],_0xf94821[_0x2b1f71(0x9f)](_0x2b1f71(0xb9))['to'](_0x4c6730,_0x2b1f71(0x8a),_0x4dc093=>_0x2cd092(_0x4e77f0,_0x4d308f[_0x2b1f71(0x86)],_0x4dc093?_0x2b1f71(0xc5):_0x2b1f71(0x8d))[_0x2b1f71(0x9d)]),_0xf94821;});}[_0x52e0c5(0x8e)](_0x8582ea){const _0x450a1e=_0x52e0c5;return _0x8582ea[_0x450a1e(0xa1)](_0x5b760f=>{const _0x4ce8c0=_0x450a1e,_0x49bd53=this[_0x4ce8c0(0xc7)](_0x53da95,_0x5b760f[_0x4ce8c0(0x86)]);return _0x49bd53[_0x4ce8c0(0xaf)]=_0x5b760f[_0x4ce8c0(0xaf)],_0x49bd53[_0x4ce8c0(0xb9)]=_0x5b760f[_0x4ce8c0(0xd3)],_0x49bd53;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x31b326}from'ckeditor5/src/core.js';import{FileRepository as _0x1b4f3a}from'ckeditor5/src/upload.js';import _0x550956 from'./uploadcareediting.js';import _0x4119ae from'./utils/uploadutils.js';import{getImageUrls as _0x213c81}from'./utils/editingutils.js';export default class f extends _0x31b326{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1b4f3a,_0x550956];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x25be03=this['editor'];if(!!!_0x25be03['config']['get']('uploadcare'))return;_0x25be03['plugins']['get'](_0x1b4f3a)['createUploadAdapter']=_0x4387b0=>new E(_0x4387b0,_0x25be03),_0x25be03['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x6579a1,{imageElement:_0x19e575,data:_0x271df5})=>{_0x25be03['model']['change'](_0x55bf80=>{_0x55bf80['setAttribute']('uploadcareImageId',_0x271df5['uploadcareImageId'],_0x19e575);});});}}class E{constructor(_0x5da5d2,_0x2b772d){this['loader']=_0x5da5d2,this['editor']=_0x2b772d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3620a4=this['editor']['config']['get']('uploadcare.pubkey'),_0x4c92a0=await this['loader']['file'];return _0x4119ae['upload']({'file':_0x4c92a0,'publicKey':_0x3620a4,'signal':this['controller']['signal'],'onProgress':_0x185939=>{_0x185939&&_0x185939['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x185939['value']);}})['then'](async _0xbb2716=>{const {imageFallbackUrl:_0x39ea1f,imageSources:_0x2e94d7}=_0x213c81(_0xbb2716['cdnUrl'],_0xbb2716['imageInfo']['width']);return{'uploadcareImageId':_0xbb2716['uuid'],'default':_0x39ea1f,'sources':_0x2e94d7};})['catch'](()=>{const _0x5dab06=t('Cannot\x20upload\x20file:')+('\x20'+_0x4c92a0['name']+'.');return Promise['reject'](_0x5dab06);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x16036e}from'../uploadcareconfig.js';export function getTranslation(_0x369ca1,_0x28e15a,_0x28dd32){const t=_0x369ca1['t'],_0x8c5564=_0x369ca1['t'];switch(_0x28e15a){case _0x16036e['Local']:return{'text':_0x8c5564('Insert'===_0x28dd32?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x8c5564('From\x20computer')};case _0x16036e['URL']:return{'text':'Insert'===_0x28dd32?_0x8c5564('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x8c5564('Via\x20URL')};case _0x16036e['Dropbox']:return{'text':t('Insert'===_0x28dd32?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x16036e['Facebook']:return{'text':t('Insert'===_0x28dd32?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x16036e['GDrive']:return{'text':t('Insert'===_0x28dd32?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x16036e['GPhotos']:return{'text':t('Insert'===_0x28dd32?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x16036e['OneDrive']:return{'text':t('Insert'===_0x28dd32?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x28e15a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3d48d6=_0x8a52;(function(_0x1218f8,_0x4d607f){var _0xebbf7=_0x8a52,_0x442c82=_0x1218f8();while(!![]){try{var _0x4222e3=parseInt(_0xebbf7(0x1db))/0x1*(parseInt(_0xebbf7(0x1d5))/0x2)+-parseInt(_0xebbf7(0x1dd))/0x3*(-parseInt(_0xebbf7(0x1da))/0x4)+parseInt(_0xebbf7(0x1d9))/0x5*(parseInt(_0xebbf7(0x1dc))/0x6)+parseInt(_0xebbf7(0x1e1))/0x7+parseInt(_0xebbf7(0x1df))/0x8*(-parseInt(_0xebbf7(0x1e8))/0x9)+-parseInt(_0xebbf7(0x1e9))/0xa*(parseInt(_0xebbf7(0x1d8))/0xb)+-parseInt(_0xebbf7(0x1de))/0xc*(-parseInt(_0xebbf7(0x1ea))/0xd);if(_0x4222e3===_0x4d607f)break;else _0x442c82['push'](_0x442c82['shift']());}catch(_0x5b5092){_0x442c82['push'](_0x442c82['shift']());}}}(_0x1d3b,0xd7ee2));import{FocusTracker as _0x5ab4d0}from'ckeditor5/src/utils.js';function _0x1d3b(){var _0xcde695=['focusTracker','1084086zADyOT','152690rWRdGD','950404WgPpcw','717716bdKhNT','true','createCollection','1023yYBMUo','10135GQQnLO','12oSFAiH','1qWRkQM','1926jkiInP','1052493XxJTTk','84qAuOtM','32iqGVUQ','fire','1487563QVyeDt','focusCycler','forwardCycle','bindTemplate','getFocusableElement','div'];_0x1d3b=function(){return _0xcde695;};return _0x1d3b();}import{View as _0x52827f,FocusCycler as _0x20b6cf}from'ckeditor5/src/ui.js';function _0x8a52(_0x560be9,_0x4c0af4){var _0x1d3bf8=_0x1d3b();return _0x8a52=function(_0x8a52df,_0x3005e1){_0x8a52df=_0x8a52df-0x1d5;var _0x59eca4=_0x1d3bf8[_0x8a52df];return _0x59eca4;},_0x8a52(_0x560be9,_0x4c0af4);}import'../../theme/uploadcare-form.css';export default class G extends _0x52827f{constructor(_0x88f5cd){var _0xc81e30=_0x8a52;super(_0x88f5cd),this[_0xc81e30(0x1e7)]=new _0x5ab4d0(),this[_0xc81e30(0x1e2)]=new _0x20b6cf({'focusables':this[_0xc81e30(0x1d7)](),'focusTracker':this[_0xc81e30(0x1e7)]});}[_0x3d48d6(0x1e5)](){var _0xa4fe8a=_0x3d48d6;return{'tag':_0xa4fe8a(0x1e6),'attributes':{'aria-hidden':_0xa4fe8a(0x1d6),'tabindex':'0'},'on':{'focus':this[_0xa4fe8a(0x1e4)]['to'](()=>{var _0x3082fc=_0xa4fe8a;this[_0x3082fc(0x1e2)][_0x3082fc(0x1e0)](_0x3082fc(0x1e3));})}};}}
|