@ckeditor/ckeditor5-uploadcare 45.1.0-alpha.0 → 45.1.0-alpha.2
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/be.js +1 -1
- package/dist/translations/be.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 +9 -9
- 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 _0x4aad92=_0x85ea;(function(_0x743556,_0x42955b){const _0x500643=_0x85ea,_0x10b79a=_0x743556();while(!![]){try{const _0x3703a0=-parseInt(_0x500643(0x107))/0x1+-parseInt(_0x500643(0x112))/0x2*(-parseInt(_0x500643(0xf8))/0x3)+parseInt(_0x500643(0xf1))/0x4+-parseInt(_0x500643(0xd7))/0x5*(parseInt(_0x500643(0xf3))/0x6)+parseInt(_0x500643(0x102))/0x7*(parseInt(_0x500643(0x108))/0x8)+parseInt(_0x500643(0xcd))/0x9+-parseInt(_0x500643(0x11e))/0xa;if(_0x3703a0===_0x42955b)break;else _0x10b79a['push'](_0x10b79a['shift']());}catch(_0x40e1e6){_0x10b79a['push'](_0x10b79a['shift']());}}}(_0x4c6b,0x4da54));import{Plugin as _0x2bb356}from'ckeditor5/src/core.js';import{Dialog as _0x31e3b2}from'ckeditor5/src/ui.js';import{createElement as _0x17e54c,global as _0x2b126d,uid as _0x1e117f}from'ckeditor5/src/utils.js';import _0xc59a6e from'./uploadcarecommand.js';function _0x85ea(_0x302cb5,_0x221a9d){const _0x4c6bc3=_0x4c6b();return _0x85ea=function(_0x85ea2f,_0x55d386){_0x85ea2f=_0x85ea2f-0xcb;let _0x3f6a55=_0x4c6bc3[_0x85ea2f];return _0x3f6a55;},_0x85ea(_0x302cb5,_0x221a9d);}import _0xc1eead from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x25b518}from'./utils/editingutils.js';export default class i extends _0x2bb356{[_0x4aad92(0x117)]=null;[_0x4aad92(0xe9)]=null;static get[_0x4aad92(0x11b)](){const _0x11bc7a=_0x4aad92;return _0x11bc7a(0xe4);}static get[_0x4aad92(0x116)](){const _0x287c22=_0x4aad92;return[_0x287c22(0xf4),_0xc1eead,_0x31e3b2];}static get[_0x4aad92(0xd1)](){return!0x0;}static get[_0x4aad92(0x10c)](){return!0x0;}get[_0x4aad92(0xfb)](){const _0xa2ad64=_0x4aad92;return this[_0xa2ad64(0x117)];}get[_0x4aad92(0xe0)](){const _0x129693=_0x4aad92;return this[_0x129693(0xe9)];}[_0x4aad92(0x10a)](){const _0x1393ac=_0x4aad92,_0x405418=this[_0x1393ac(0xdf)];_0x405418[_0x1393ac(0xdc)][_0x1393ac(0xdb)](_0x1393ac(0xda),new _0xc59a6e(_0x405418));}[_0x4aad92(0xff)](){const _0x47bfa6=_0x4aad92;this[_0x47bfa6(0xd8)](),this[_0x47bfa6(0x105)](),this[_0x47bfa6(0xe3)](),this[_0x47bfa6(0xdd)](),this[_0x47bfa6(0xcc)](),this[_0x47bfa6(0xfa)](this[_0x47bfa6(0xdf)],_0x47bfa6(0x11a),()=>{const _0x3728c5=_0x47bfa6;this[_0x3728c5(0x117)]&&(this[_0x3728c5(0x117)][_0x3728c5(0xde)](),this[_0x3728c5(0x117)]=null),this[_0x3728c5(0xe9)]&&(this[_0x3728c5(0xe9)][_0x3728c5(0xde)](),this[_0x3728c5(0xe9)]=null);const _0x4282b6=_0x2b126d[_0x3728c5(0x114)][_0x3728c5(0xcb)](_0x3728c5(0xd5));_0x4282b6&&_0x4282b6[_0x3728c5(0xde)]();}),async function(_0x24bfcb){const _0x5855bc=_0x3fafe1([0x55,0x5a,0x51,0x69,0x72,0x70,0x7a,0x58,0x57,0x65,0x52,0x6f,0x36,0x46,0x79,0x4e,0x59,0x53,0x67,0x30,0x44,0x6b,0x34,0x4a,0x48,0x37,0x4c,0x64,0x31,0x62,0x76,0x61,0x6e,0x71,0x68,0x41,0x6a,0x33,0x47,0x39,0x45,0x42,0x4b,0x4f,0x4d,0x74,0x75,0x35,0x54,0x49,0x43,0x50,0x63,0x77,0x73,0x32,0x56,0x66,0x38,0x6d,0x78,0x6c]),_0xf0ec2d=0x54808abb,_0xcee78c=0x5487ed93^_0xf0ec2d,_0x71e8bf=window[_0x3fafe1([0x44,0x61,0x74,0x65])][_0x3fafe1([0x6e,0x6f,0x77])](),_0x3306ca=_0x24bfcb[_0x3fafe1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb4ae25=new window[(_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x482388=>{_0x3306ca[_0x3fafe1([0x6f,0x6e,0x63,0x65])](_0x3fafe1([0x72,0x65,0x61,0x64,0x79]),_0x482388);}),_0x8befb6={[_0x3fafe1([0x6b,0x74,0x79])]:_0x3fafe1([0x45,0x43]),[_0x3fafe1([0x75,0x73,0x65])]:_0x3fafe1([0x73,0x69,0x67]),[_0x3fafe1([0x63,0x72,0x76])]:_0x3fafe1([0x50,0x2d,0x32,0x35,0x36]),[_0x3fafe1([0x78])]:_0x3fafe1([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]),[_0x3fafe1([0x79])]:_0x3fafe1([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]),[_0x3fafe1([0x61,0x6c,0x67])]:_0x3fafe1([0x45,0x53,0x32,0x35,0x36])},_0x125084=_0x3306ca[_0x3fafe1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3fafe1([0x67,0x65,0x74])](_0x3fafe1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3dd237(){let _0x99db46,_0x2f0e1e=null,_0x36b7cc=null;try{if(_0x125084==_0x3fafe1([0x47,0x50,0x4c]))return _0x3fafe1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x99db46=_0x2f4f9a(),!_0x99db46)return _0x3fafe1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x99db46[_0x3fafe1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x36b7cc=_0x4a68da(_0x99db46[_0x3fafe1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x99db46[_0x3fafe1([0x6a,0x74,0x69])])),await _0x375321()?_0xb00920()?_0x1e9a8b()?_0x3fafe1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ff611()?(_0x99db46[_0x3fafe1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3fafe1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2f0e1e=_0x1ecf95(_0x3fafe1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x99db46[_0x3fafe1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3fafe1([0x74,0x72,0x69,0x61,0x6c])&&(_0x2f0e1e=_0x1ecf95(_0x3fafe1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa5cc09()):_0x3fafe1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3fafe1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3fafe1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3b5c15){return _0x3fafe1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e9a8b(){const _0x4d1e5b=[_0x3fafe1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3fafe1([0x74,0x72,0x69,0x61,0x6c])][_0x3fafe1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x99db46[_0x3fafe1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x71e8bf/0x3e8:0xe10*_0xcee78c;return _0x99db46[_0x3fafe1([0x65,0x78,0x70])]<_0x4d1e5b;}function _0xb00920(){const _0x5af7e0=_0x99db46[_0x3fafe1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5af7e0&&(!!_0x5af7e0[_0x3fafe1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fafe1([0x2a]))||!!_0x5af7e0[_0x3fafe1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fafe1([0x55,0x50,0x4c,0x43])));}function _0x1ff611(){const _0x588283=_0x85ea,_0x1b9762=_0x99db46[_0x3fafe1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b9762||0x0==_0x1b9762[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x19fd0a}=new URL(window[_0x3fafe1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x588283(0x106)]);if(_0x1b9762[_0x3fafe1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19fd0a))return!0x0;const _0x3022fb=_0x19fd0a[_0x3fafe1([0x73,0x70,0x6c,0x69,0x74])](_0x3fafe1([0x2e]));return _0x1b9762[_0x3fafe1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12c8c9=>_0x12c8c9[_0x3fafe1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fafe1([0x2a])))[_0x3fafe1([0x6d,0x61,0x70])](_0x5bc2f0=>_0x5bc2f0[_0x3fafe1([0x73,0x70,0x6c,0x69,0x74])](_0x3fafe1([0x2e])))[_0x3fafe1([0x73,0x6f,0x6d,0x65])](_0x31a619=>_0x3022fb[_0x3fafe1([0x65,0x76,0x65,0x72,0x79])]((_0xcf4fdd,_0xc98f86)=>_0x31a619[_0xc98f86]===_0xcf4fdd||_0x31a619[_0xc98f86]===_0x3fafe1([0x2a])));}function _0xa5cc09(){return _0x2f0e1e&&_0x36b7cc?new window[(_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4235e6,_0x1d5796)=>{_0x2f0e1e[_0x3fafe1([0x74,0x68,0x65,0x6e])](_0x4235e6,_0x1d5796),_0x36b7cc[_0x3fafe1([0x74,0x68,0x65,0x6e])](_0xd18647=>{_0xd18647!=_0x3fafe1([0x56,0x61,0x6c,0x69,0x64])&&_0x4235e6(_0xd18647);},_0x1d5796);}):_0x2f0e1e||_0x36b7cc||_0x3fafe1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a68da(_0x2bdda2,_0x114c00){return new window[(_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42f01d=>{if(_0x225426())return _0x42f01d(_0x3fafe1([0x56,0x61,0x6c,0x69,0x64]));_0x2ff1f0(),_0x3306ca[_0x3fafe1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3fafe1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4cf3da=!0x1;const _0x53ecf9=_0x1e117f();function _0x46f565(_0x51c1bd){return!!_0x51c1bd&&(typeof _0x51c1bd===_0x3fafe1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51c1bd===_0x3fafe1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51c1bd[_0x3fafe1([0x74,0x68,0x65,0x6e])]===_0x3fafe1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51c1bd[_0x3fafe1([0x63,0x61,0x74,0x63,0x68])]===_0x3fafe1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x518eb7(_0x5a62ed){_0x162ee7(_0x5a62ed)[_0x3fafe1([0x74,0x68,0x65,0x6e])](_0x3dc32b=>{if(!_0x3dc32b||_0x3dc32b[_0x3fafe1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3fafe1([0x6f,0x6b]))return _0x3fafe1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2ab059(_0x24cd11(_0x53ecf9+_0x114c00))!=_0x3dc32b[_0x3fafe1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3fafe1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3fafe1([0x56,0x61,0x6c,0x69,0x64]);})[_0x3fafe1([0x74,0x68,0x65,0x6e])](_0x34eafb=>(_0x1fa9c7(),_0x34eafb),()=>{const _0x1a52a8=_0x2aea81();return null==_0x1a52a8?(_0x1fa9c7(),_0x3fafe1([0x56,0x61,0x6c,0x69,0x64])):_0x3fafe1(_0x71e8bf-_0x1a52a8>(0x708c0ebb^_0xf0ec2d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3fafe1([0x74,0x68,0x65,0x6e])](_0x42f01d)[_0x3fafe1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x42f01d(_0x3fafe1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x585624=0x54b6643b^_0xf0ec2d;function _0x1fa9c7(){const _0x2872d7=_0x3fafe1([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ab059(_0x24cd11(_0x2bdda2)),_0xe4b65a=_0x3d56f3(_0x2ab059(window[_0x3fafe1([0x4d,0x61,0x74,0x68])][_0x3fafe1([0x63,0x65,0x69,0x6c])](_0x71e8bf/_0x585624)));window[_0x3fafe1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3fafe1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2872d7,_0xe4b65a);}function _0x2aea81(){const _0x3214c8=_0x3fafe1([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ab059(_0x24cd11(_0x2bdda2)),_0x191aa4=window[_0x3fafe1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3fafe1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3214c8);return _0x191aa4?window[_0x3fafe1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d56f3(_0x191aa4),0x10)*_0x585624:null;}function _0x162ee7(_0x2f7dc4){return new window[(_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36a202,_0x7256bb)=>{_0x2f7dc4[_0x3fafe1([0x74,0x68,0x65,0x6e])](_0x36a202,_0x7256bb),window[_0x3fafe1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x7256bb,0x54815e7b^_0xf0ec2d);});}}_0x3306ca[_0x3fafe1([0x6f,0x6e])](_0x3fafe1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41b2b2,_0x2da47e)=>{if(_0x2da47e[0x0]!=_0x2bdda2)return _0x42f01d(_0x3fafe1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2da47e[0x1]={..._0x2da47e[0x1],[_0x3fafe1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x53ecf9};},{[_0x3fafe1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3fafe1([0x68,0x69,0x67,0x68])}),_0x3306ca[_0x3fafe1([0x6f,0x6e])](_0x3fafe1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19d021=>{_0x46f565(_0x19d021[_0x3fafe1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4cf3da=!0x0,_0x518eb7(_0x19d021[_0x3fafe1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3fafe1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3fafe1([0x6c,0x6f,0x77])}),_0xb4ae25[_0x3fafe1([0x74,0x68,0x65,0x6e])](()=>{_0x4cf3da||_0x42f01d(_0x3fafe1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x225426(){return _0x3306ca[_0x3fafe1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fafe1([0x76,0x69,0x65,0x77])][_0x3fafe1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3fafe1([0x61,0x75,0x74,0x6f]);}function _0x2ff1f0(){_0x3306ca[_0x3fafe1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fafe1([0x76,0x69,0x65,0x77])][_0x3fafe1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3fafe1([0x61,0x75,0x74,0x6f]);}}function _0x1ecf95(_0x313cc5){const _0x447348=[new window[(_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b7e40=>setTimeout(_0x5b7e40,0x5489b477^_0xf0ec2d)),_0xb4ae25[_0x3fafe1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x254b20=>{let _0x33d0f6=0x0;_0x3306ca[_0x3fafe1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fafe1([0x6f,0x6e])](_0x3fafe1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d394e,_0x54f82c)=>{_0x54f82c[0x0][_0x3fafe1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x33d0f6++,_0x33d0f6==(0x54808b43^_0xf0ec2d)&&(_0x254b20(),_0x1d394e[_0x3fafe1([0x6f,0x66,0x66])]());});}))];return window[_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3fafe1([0x72,0x61,0x63,0x65])](_0x447348)[_0x3fafe1([0x74,0x68,0x65,0x6e])](()=>_0x313cc5);}async function _0xb93af6(){await _0xb4ae25,_0x3306ca[_0x3fafe1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fafe1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x76ccc,_0x3306ca[_0x3fafe1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fafe1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x76ccc,_0x3306ca[_0x3fafe1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3fafe1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b6194(_0xdc8c26){const _0x27d711=_0x3c6082();_0x3306ca[_0x27d711]=_0x3fafe1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xdc8c26,_0xdc8c26!=_0x3fafe1([0x56,0x61,0x6c,0x69,0x64])&&_0xb93af6();}function _0x3c6082(){const _0x4abc4e=window[_0x3fafe1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3fafe1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3fafe1([0x6e,0x6f,0x77])]())[_0x3fafe1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3fafe1([0x2e]),'');let _0x10a067=_0x3fafe1([0x55]);for(let _0x72ee7d=0x0;_0x72ee7d<_0x4abc4e[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x72ee7d+=0x2){let _0x1ad835=window[_0x3fafe1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4abc4e[_0x3fafe1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x72ee7d,_0x72ee7d+0x2));_0x1ad835>=_0x5855bc[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ad835-=_0x5855bc[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x10a067+=_0x5855bc[_0x1ad835];}return _0x10a067;}function _0x2f4f9a(){const _0x1b4885=_0x125084[_0x3fafe1([0x73,0x70,0x6c,0x69,0x74])](_0x3fafe1([0x2e]));if(0x3!=_0x1b4885[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd6e45d(_0x1b4885[0x1]);function _0xd6e45d(_0x2677d3){const _0x552019=_0x38b2b1(_0x2677d3);return _0x552019&&_0x29c20d()?_0x552019:null;function _0x29c20d(){const _0x3ebc53=_0x552019[_0x3fafe1([0x6a,0x74,0x69])],_0x2ae900=window[_0x3fafe1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ebc53[_0x3fafe1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ebc53[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4eeeb0={..._0x552019,[_0x3fafe1([0x6a,0x74,0x69])]:_0x3ebc53[_0x3fafe1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ebc53[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4eeeb0[_0x3fafe1([0x76,0x63])],_0x24cd11(_0x4eeeb0)==_0x2ae900;}}}async function _0x375321(){let _0x444b46=!0x0;try{const _0x33d958=_0x125084[_0x3fafe1([0x73,0x70,0x6c,0x69,0x74])](_0x3fafe1([0x2e])),[_0x176bbb,_0x33d356,_0x209219]=_0x33d958;return _0x2892a0(_0x176bbb),await _0x4e091d(_0x176bbb,_0x33d356,_0x209219),_0x444b46;}catch(_0x2f421b){return!0x1;}function _0x2892a0(_0xa4fd4d){const _0x2d9389=_0x38b2b1(_0xa4fd4d);_0x2d9389&&_0x2d9389[_0x3fafe1([0x61,0x6c,0x67])]==_0x3fafe1([0x45,0x53,0x32,0x35,0x36])||(_0x444b46=!0x1);}async function _0x4e091d(_0x2022f4,_0x16f611,_0x312fbc){const _0x3a27b2=window[_0x3fafe1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3fafe1([0x66,0x72,0x6f,0x6d])](_0x767ebf(_0x312fbc),_0x455048=>_0x455048[_0x3fafe1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x586828=new window[(_0x3fafe1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3fafe1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2022f4+_0x3fafe1([0x2e])+_0x16f611),_0x48b1d7=window[_0x3fafe1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3fafe1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48b1d7)return;const _0x51f7f5=await _0x48b1d7[_0x3fafe1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3fafe1([0x6a,0x77,0x6b]),_0x8befb6,{[_0x3fafe1([0x6e,0x61,0x6d,0x65])]:_0x3fafe1([0x45,0x43,0x44,0x53,0x41]),[_0x3fafe1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3fafe1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3fafe1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48b1d7[_0x3fafe1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3fafe1([0x6e,0x61,0x6d,0x65])]:_0x3fafe1([0x45,0x43,0x44,0x53,0x41]),[_0x3fafe1([0x68,0x61,0x73,0x68])]:{[_0x3fafe1([0x6e,0x61,0x6d,0x65])]:_0x3fafe1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51f7f5,_0x3a27b2,_0x586828)||(_0x444b46=!0x1);}}function _0x38b2b1(_0x51630a){return _0x51630a[_0x3fafe1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3fafe1([0x65,0x79]))?JSON[_0x3fafe1([0x70,0x61,0x72,0x73,0x65])](_0x767ebf(_0x51630a)):null;}function _0x767ebf(_0x540bbf){return window[_0x3fafe1([0x61,0x74,0x6f,0x62])](_0x540bbf[_0x3fafe1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3fafe1([0x2b]))[_0x3fafe1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3fafe1([0x2f])));}function _0x24cd11(_0x6700e5){let _0x5b205d=0x1505;function _0x21cd81(_0x892077){for(let _0x8939fe=0x0;_0x8939fe<_0x892077[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8939fe++){const _0x430f9e=_0x892077[_0x3fafe1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8939fe);_0x5b205d=(_0x5b205d<<0x5)+_0x5b205d+_0x430f9e,_0x5b205d&=_0x5b205d;}}function _0x56437d(_0x388a61){Array[_0x3fafe1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x388a61)?_0x388a61[_0x3fafe1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x56437d):_0x388a61&&typeof _0x388a61==_0x3fafe1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3fafe1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x388a61)[_0x3fafe1([0x73,0x6f,0x72,0x74])]()[_0x3fafe1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29e55b,_0x4b7dab])=>{_0x21cd81(_0x29e55b),_0x56437d(_0x4b7dab);}):_0x21cd81(window[_0x3fafe1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x388a61));}return _0x56437d(_0x6700e5),_0x5b205d>>>0x0;}function _0x2ab059(_0x405535){return _0x405535[_0x3fafe1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3fafe1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3fafe1([0x30]));}function _0x3d56f3(_0x269672){return _0x269672[_0x3fafe1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3fafe1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3fafe1([0x6a,0x6f,0x69,0x6e])]('');}function _0x76ccc(){}function _0x3fafe1(_0x3e040c){const _0x40bfdb=_0x85ea;return _0x3e040c[_0x40bfdb(0xfd)](_0x1adb99=>String[_0x40bfdb(0xea)](_0x1adb99))[_0x40bfdb(0xe6)]('');}_0x1b6194(await _0x3dd237());}(this);}[_0x4aad92(0xd8)](){const _0x2b46fa=_0x4aad92,_0x2a0b3a=this[_0x2b46fa(0xdf)][_0x2b46fa(0x118)][_0x2b46fa(0x115)];_0x2a0b3a[_0x2b46fa(0xd4)](_0x2b46fa(0xf7))&&_0x2a0b3a[_0x2b46fa(0xec)](_0x2b46fa(0xf7),{'allowAttributes':[_0x2b46fa(0xf9)]}),_0x2a0b3a[_0x2b46fa(0xd4)](_0x2b46fa(0xe5))&&_0x2a0b3a[_0x2b46fa(0xec)](_0x2b46fa(0xe5),{'allowAttributes':[_0x2b46fa(0xf9)]});}[_0x4aad92(0x105)](){const _0x2e90d8=_0x4aad92,_0x216c43=this[_0x2e90d8(0xdf)];_0x216c43[_0x2e90d8(0xeb)][_0x2e90d8(0xf2)](_0x2e90d8(0xe7))[_0x2e90d8(0x113)]({'model':_0x2e90d8(0xf9),'view':_0x2e90d8(0xd3)}),_0x216c43[_0x2e90d8(0xeb)][_0x2e90d8(0xf2)](_0x2e90d8(0x109))[_0x2e90d8(0x11d)]({'model':{'key':_0x2e90d8(0xf9),'value':_0x49b909=>_0x49b909[_0x2e90d8(0xcf)](_0x2e90d8(0xd3))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xea72eb=_0x216c43[_0x2e90d8(0xdc)][_0x2e90d8(0xd6)](_0x2e90d8(0x10b));_0xea72eb&&this[_0x2e90d8(0xfa)](_0xea72eb,_0x2e90d8(0x101),(_0x258457,[_0x75b456,_0x2c1dc7])=>{const _0x6d6528=_0x2e90d8;_0x75b456[_0x6d6528(0xe8)](_0x6d6528(0xf9),_0x2c1dc7);});}[_0x4aad92(0xe3)](){const _0xef5867=_0x4aad92,_0x59c9fe=this[_0xef5867(0xdf)][_0xef5867(0xee)][_0xef5867(0xd6)](_0xef5867(0x100))||{},_0x14c2e6=this[_0xef5867(0xdf)][_0xef5867(0xee)][_0xef5867(0xd6)](_0xef5867(0x11c))||'';this[_0xef5867(0x117)]=_0x17e54c(_0x2b126d[_0xef5867(0x114)],_0xef5867(0xef),{..._0x59c9fe,'pubkey':_0x14c2e6,'ctx-name':_0xef5867(0x10f),'sourceList':'','imgOnly':_0xef5867(0xfc),'removeCopyright':_0xef5867(0xfc),'localeName':this[_0xef5867(0xdf)][_0xef5867(0x10e)][_0xef5867(0xe1)],'externalSourcesEmbedCss':_0xef5867(0x119)}),this[_0xef5867(0x117)][_0xef5867(0xe2)]=_0x5b8484=>{const _0x1dabb0=_0xef5867;if(_0x1dabb0(0xd0)==_0x5b8484)return _0x1dabb0(0xd9);},_0x2b126d[_0xef5867(0x114)][_0xef5867(0x103)][_0xef5867(0xce)](this[_0xef5867(0x117)]);}[_0x4aad92(0xdd)](){const _0x481509=_0x4aad92;this[_0x481509(0xe9)]=_0x17e54c(_0x2b126d[_0x481509(0x114)],_0x481509(0x111),{'ctx-name':_0x481509(0x10f)}),_0x2b126d[_0x481509(0x114)][_0x481509(0x103)][_0x481509(0xce)](this[_0x481509(0xe9)]);}[_0x4aad92(0xcc)](){const _0xf4b12d=_0x4aad92,_0x1f7b84=this[_0xf4b12d(0xdf)][_0xf4b12d(0xdc)][_0xf4b12d(0xd6)](_0xf4b12d(0x110));_0x1f7b84&&this[_0xf4b12d(0xfa)](_0x1f7b84,_0xf4b12d(0xf5),()=>{const _0xecb531=_0xf4b12d,_0x49453a=this[_0xecb531(0xdf)][_0xecb531(0x118)][_0xecb531(0x114)][_0xecb531(0xed)][_0xecb531(0xf0)]();_0x49453a&&_0x49453a[_0xecb531(0xcf)](_0xecb531(0xf9))&&this[_0xecb531(0xdf)][_0xecb531(0xfe)][_0xecb531(0xf6)][_0xecb531(0x104)](_0xecb531(0x10d),()=>{const _0x303beb=_0xecb531;_0x25b518(this[_0x303beb(0xdf)],_0x49453a);});});const _0x23a53e=this[_0xf4b12d(0xdf)][_0xf4b12d(0xdc)][_0xf4b12d(0xd6)](_0xf4b12d(0xd2));_0x23a53e&&this[_0xf4b12d(0xfa)](_0x23a53e,_0xf4b12d(0xf5),()=>{const _0x512867=_0xf4b12d,_0x1073fc=this[_0x512867(0xdf)][_0x512867(0x118)][_0x512867(0x114)][_0x512867(0xed)][_0x512867(0xf0)]();_0x1073fc&&_0x1073fc[_0x512867(0xcf)](_0x512867(0xf9))&&this[_0x512867(0xdf)][_0x512867(0xfe)][_0x512867(0xf6)][_0x512867(0x104)](_0x512867(0x10d),()=>{const _0x20cf20=_0x512867;_0x25b518(this[_0x20cf20(0xdf)],_0x1073fc);});});}}function _0x4c6b(){const _0x2f8317=['12PdfiUi','uploadcareImageId','listenTo','configElement','true','map','editing','afterInit','uploadcare.uploader','cleanupImage','133aPMPoL','body','once','_initConversion','href','113458DbTquv','111368qfkDrZ','upcast','init','replaceImageSource','isPremiumPlugin','render','locale','uploader','insertImage','uc-upload-ctx-provider','130950aOYsez','attributeToAttribute','document','schema','requires','_configElement','model','\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','destroy','pluginName','uploadcare.pubkey','elementToAttribute','3117120iLjFsb','querySelector','_initImageProcessingIndicator','3909780wFuuYb','appendChild','getAttribute','closeMax','isOfficialPlugin','uploadcareImageReplace','data-uc-image-id','isRegistered','input[uploadcare-file-input]','get','1190745YCVgdp','_initSchema','#uc-icon-arrow-down','uploadcare','add','commands','_initCtx','remove','editor','ctxElement','contentLanguage','iconHrefResolver','_initConfig','UploadcareEditing','imageInline','join','downcast','removeAttribute','_ctxElement','fromCharCode','conversion','extend','selection','config','uc-config','getSelectedElement','82144EkxShe','for','6Vknerq','PictureEditing','execute','view','imageBlock'];_0x4c6b=function(){return _0x2f8317;};return _0x4c6b();}
|
|
23
|
+
const _0x460775=_0x336d;(function(_0x590c79,_0x563c98){const _0x2d73d3=_0x336d,_0x8f6ce0=_0x590c79();while(!![]){try{const _0x4d28f8=parseInt(_0x2d73d3(0x135))/0x1*(-parseInt(_0x2d73d3(0x14f))/0x2)+parseInt(_0x2d73d3(0x164))/0x3+parseInt(_0x2d73d3(0x13b))/0x4+parseInt(_0x2d73d3(0x149))/0x5*(parseInt(_0x2d73d3(0x12e))/0x6)+parseInt(_0x2d73d3(0x16b))/0x7+-parseInt(_0x2d73d3(0x153))/0x8*(parseInt(_0x2d73d3(0x15d))/0x9)+-parseInt(_0x2d73d3(0x170))/0xa;if(_0x4d28f8===_0x563c98)break;else _0x8f6ce0['push'](_0x8f6ce0['shift']());}catch(_0x209c4a){_0x8f6ce0['push'](_0x8f6ce0['shift']());}}}(_0xb23f,0x51fbe));import{Plugin as _0x23c3c0}from'ckeditor5/src/core.js';import{Dialog as _0x34a9cb}from'ckeditor5/src/ui.js';import{createElement as _0x5401b2,global as _0x18dad5,uid as _0x755a20}from'ckeditor5/src/utils.js';import _0x7a587 from'./uploadcarecommand.js';import _0x30da92 from'./uploadcareuploadadapter.js';function _0x336d(_0x7fc49b,_0x4864ed){const _0xb23ffe=_0xb23f();return _0x336d=function(_0x336dd3,_0x3ce741){_0x336dd3=_0x336dd3-0x12c;let _0x46a8e9=_0xb23ffe[_0x336dd3];return _0x46a8e9;},_0x336d(_0x7fc49b,_0x4864ed);}import{showImageProcessingIndicator as _0x10f413}from'./utils/editingutils.js';export default class i extends _0x23c3c0{[_0x460775(0x163)]=null;[_0x460775(0x139)]=null;static get[_0x460775(0x177)](){const _0x28285b=_0x460775;return _0x28285b(0x140);}static get[_0x460775(0x17b)](){const _0x3b9eb6=_0x460775;return[_0x3b9eb6(0x167),_0x30da92,_0x34a9cb];}static get[_0x460775(0x172)](){return!0x0;}static get[_0x460775(0x17f)](){return!0x0;}get[_0x460775(0x165)](){const _0x22a0a9=_0x460775;return this[_0x22a0a9(0x163)];}get[_0x460775(0x142)](){const _0x5098ac=_0x460775;return this[_0x5098ac(0x139)];}[_0x460775(0x146)](){const _0x3a2d4d=_0x460775,_0x1970de=this[_0x3a2d4d(0x148)];_0x1970de[_0x3a2d4d(0x168)][_0x3a2d4d(0x169)](_0x3a2d4d(0x155),new _0x7a587(_0x1970de));}[_0x460775(0x17d)](){const _0x86efc7=_0x460775;this[_0x86efc7(0x147)](),this[_0x86efc7(0x134)](),this[_0x86efc7(0x16d)](),this[_0x86efc7(0x15e)](),this[_0x86efc7(0x150)](),this[_0x86efc7(0x16f)](this[_0x86efc7(0x148)],_0x86efc7(0x145),()=>{const _0x39382a=_0x86efc7;this[_0x39382a(0x163)]&&(this[_0x39382a(0x163)][_0x39382a(0x141)](),this[_0x39382a(0x163)]=null),this[_0x39382a(0x139)]&&(this[_0x39382a(0x139)][_0x39382a(0x141)](),this[_0x39382a(0x139)]=null);const _0x61df99=_0x18dad5[_0x39382a(0x16e)][_0x39382a(0x138)](_0x39382a(0x157));_0x61df99&&_0x61df99[_0x39382a(0x141)]();}),async function(_0x19c0a7){const _0x54ba9c=_0x4116ce([0x4e,0x46,0x77,0x5a,0x67,0x59,0x73,0x4d,0x37,0x75,0x4c,0x70,0x31,0x62,0x49,0x57,0x69,0x44,0x35,0x78,0x55,0x6e,0x41,0x6b,0x38,0x33,0x32,0x53,0x48,0x63,0x52,0x39,0x30,0x6a,0x58,0x54,0x71,0x4f,0x68,0x65,0x64,0x36,0x47,0x61,0x66,0x74,0x34,0x79,0x56,0x76,0x50,0x42,0x43,0x4b,0x4a,0x7a,0x51,0x72,0x6d,0x6f,0x6c,0x45]),_0x3deb93=0x23c72efe,_0x14b238=0x23c049a6^_0x3deb93,_0x40218f=window[_0x4116ce([0x44,0x61,0x74,0x65])][_0x4116ce([0x6e,0x6f,0x77])](),_0x19c232=_0x19c0a7[_0x4116ce([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x389c7f=new window[(_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcb89ab=>{_0x19c232[_0x4116ce([0x6f,0x6e,0x63,0x65])](_0x4116ce([0x72,0x65,0x61,0x64,0x79]),_0xcb89ab);}),_0x1f556f={[_0x4116ce([0x6b,0x74,0x79])]:_0x4116ce([0x45,0x43]),[_0x4116ce([0x75,0x73,0x65])]:_0x4116ce([0x73,0x69,0x67]),[_0x4116ce([0x63,0x72,0x76])]:_0x4116ce([0x50,0x2d,0x32,0x35,0x36]),[_0x4116ce([0x78])]:_0x4116ce([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]),[_0x4116ce([0x79])]:_0x4116ce([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]),[_0x4116ce([0x61,0x6c,0x67])]:_0x4116ce([0x45,0x53,0x32,0x35,0x36])},_0x20de7f=_0x19c232[_0x4116ce([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4116ce([0x67,0x65,0x74])](_0x4116ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52d18a(){let _0x48f24f,_0x2c5048=null,_0x31244e=null;try{if(_0x20de7f==_0x4116ce([0x47,0x50,0x4c]))return _0x4116ce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x48f24f=_0x3dcefe(),!_0x48f24f)return _0x4116ce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x48f24f[_0x4116ce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x31244e=_0x2225d9(_0x48f24f[_0x4116ce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x48f24f[_0x4116ce([0x6a,0x74,0x69])])),await _0x4cf1b6()?_0x11e2dd()?_0x1319df()?_0x4116ce([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d09a8()?(_0x48f24f[_0x4116ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4116ce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2c5048=_0x45d705(_0x4116ce([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x48f24f[_0x4116ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4116ce([0x74,0x72,0x69,0x61,0x6c])&&(_0x2c5048=_0x45d705(_0x4116ce([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ae34c()):_0x4116ce([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4116ce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4116ce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x46b69e){return _0x4116ce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1319df(){const _0x2db33c=[_0x4116ce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4116ce([0x74,0x72,0x69,0x61,0x6c])][_0x4116ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f24f[_0x4116ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x40218f/0x3e8:0xe10*_0x14b238;return _0x48f24f[_0x4116ce([0x65,0x78,0x70])]<_0x2db33c;}function _0x11e2dd(){const _0x439c38=_0x48f24f[_0x4116ce([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x439c38&&(!!_0x439c38[_0x4116ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4116ce([0x2a]))||!!_0x439c38[_0x4116ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4116ce([0x55,0x50,0x4c,0x43])));}function _0x4d09a8(){const _0x347c0f=_0x336d,_0x145955=_0x48f24f[_0x4116ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x145955||0x0==_0x145955[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b884a}=new URL(window[_0x4116ce([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x347c0f(0x171)]);if(_0x145955[_0x4116ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b884a))return!0x0;const _0x2cb9ee=_0x2b884a[_0x4116ce([0x73,0x70,0x6c,0x69,0x74])](_0x4116ce([0x2e]));return _0x145955[_0x4116ce([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3212b2=>_0x3212b2[_0x4116ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4116ce([0x2a])))[_0x4116ce([0x6d,0x61,0x70])](_0x1b7745=>_0x1b7745[_0x4116ce([0x73,0x70,0x6c,0x69,0x74])](_0x4116ce([0x2e])))[_0x4116ce([0x73,0x6f,0x6d,0x65])](_0x8f3c7e=>_0x2cb9ee[_0x4116ce([0x65,0x76,0x65,0x72,0x79])]((_0x4de961,_0x128d7b)=>_0x8f3c7e[_0x128d7b]===_0x4de961||_0x8f3c7e[_0x128d7b]===_0x4116ce([0x2a])));}function _0x4ae34c(){return _0x2c5048&&_0x31244e?new window[(_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1091f3,_0x209e27)=>{_0x2c5048[_0x4116ce([0x74,0x68,0x65,0x6e])](_0x1091f3,_0x209e27),_0x31244e[_0x4116ce([0x74,0x68,0x65,0x6e])](_0x23f6cd=>{_0x23f6cd!=_0x4116ce([0x56,0x61,0x6c,0x69,0x64])&&_0x1091f3(_0x23f6cd);},_0x209e27);}):_0x2c5048||_0x31244e||_0x4116ce([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2225d9(_0x5cc4ea,_0x1f47d9){return new window[(_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x517757=>{if(_0x777da2())return _0x517757(_0x4116ce([0x56,0x61,0x6c,0x69,0x64]));_0x1720b0(),_0x19c232[_0x4116ce([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4116ce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x58dfaf=!0x1;const _0x50c4cf=_0x755a20();function _0x373bfe(_0x395cd2){return!!_0x395cd2&&(typeof _0x395cd2===_0x4116ce([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x395cd2===_0x4116ce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x395cd2[_0x4116ce([0x74,0x68,0x65,0x6e])]===_0x4116ce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x395cd2[_0x4116ce([0x63,0x61,0x74,0x63,0x68])]===_0x4116ce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x20d40b(_0x8dfd2c){_0x4d24b7(_0x8dfd2c)[_0x4116ce([0x74,0x68,0x65,0x6e])](_0xd9ebdc=>{if(!_0xd9ebdc||_0xd9ebdc[_0x4116ce([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4116ce([0x6f,0x6b]))return _0x4116ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c2267(_0x1f1c30(_0x50c4cf+_0x1f47d9))!=_0xd9ebdc[_0x4116ce([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4116ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4116ce([0x56,0x61,0x6c,0x69,0x64]);})[_0x4116ce([0x74,0x68,0x65,0x6e])](_0x41f586=>(_0x2b113c(),_0x41f586),()=>{const _0x1c2a74=_0x1faefc();return null==_0x1c2a74?(_0x2b113c(),_0x4116ce([0x56,0x61,0x6c,0x69,0x64])):_0x4116ce(_0x40218f-_0x1c2a74>(0x7cbaafe^_0x3deb93)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4116ce([0x74,0x68,0x65,0x6e])](_0x517757)[_0x4116ce([0x63,0x61,0x74,0x63,0x68])](()=>{_0x517757(_0x4116ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x223174=0x23f1c07e^_0x3deb93;function _0x2b113c(){const _0x388d0d=_0x4116ce([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c2267(_0x1f1c30(_0x5cc4ea)),_0x2b7246=_0x3d3bb0(_0x4c2267(window[_0x4116ce([0x4d,0x61,0x74,0x68])][_0x4116ce([0x63,0x65,0x69,0x6c])](_0x40218f/_0x223174)));window[_0x4116ce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4116ce([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x388d0d,_0x2b7246);}function _0x1faefc(){const _0x266f4d=_0x4116ce([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c2267(_0x1f1c30(_0x5cc4ea)),_0x2eef1a=window[_0x4116ce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4116ce([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x266f4d);return _0x2eef1a?window[_0x4116ce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d3bb0(_0x2eef1a),0x10)*_0x223174:null;}function _0x4d24b7(_0x2fac65){return new window[(_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1fc07d,_0x6fb2f1)=>{_0x2fac65[_0x4116ce([0x74,0x68,0x65,0x6e])](_0x1fc07d,_0x6fb2f1),window[_0x4116ce([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6fb2f1,0x23c6fa3e^_0x3deb93);});}}_0x19c232[_0x4116ce([0x6f,0x6e])](_0x4116ce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3b7312,_0x8f9551)=>{if(_0x8f9551[0x0]!=_0x5cc4ea)return _0x517757(_0x4116ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x8f9551[0x1]={..._0x8f9551[0x1],[_0x4116ce([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x50c4cf};},{[_0x4116ce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4116ce([0x68,0x69,0x67,0x68])}),_0x19c232[_0x4116ce([0x6f,0x6e])](_0x4116ce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ab5fe=>{_0x373bfe(_0x5ab5fe[_0x4116ce([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x58dfaf=!0x0,_0x20d40b(_0x5ab5fe[_0x4116ce([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4116ce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4116ce([0x6c,0x6f,0x77])}),_0x389c7f[_0x4116ce([0x74,0x68,0x65,0x6e])](()=>{_0x58dfaf||_0x517757(_0x4116ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x777da2(){return _0x19c232[_0x4116ce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4116ce([0x76,0x69,0x65,0x77])][_0x4116ce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4116ce([0x61,0x75,0x74,0x6f]);}function _0x1720b0(){_0x19c232[_0x4116ce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4116ce([0x76,0x69,0x65,0x77])][_0x4116ce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4116ce([0x61,0x75,0x74,0x6f]);}}function _0x45d705(_0x3a402c){const _0x549b56=[new window[(_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x815660=>setTimeout(_0x815660,0x23ce1032^_0x3deb93)),_0x389c7f[_0x4116ce([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43b4d8=>{let _0xefef22=0x0;_0x19c232[_0x4116ce([0x6d,0x6f,0x64,0x65,0x6c])][_0x4116ce([0x6f,0x6e])](_0x4116ce([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f0ba8,_0x5124ed)=>{_0x5124ed[0x0][_0x4116ce([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xefef22++,_0xefef22==(0x23c72f06^_0x3deb93)&&(_0x43b4d8(),_0x4f0ba8[_0x4116ce([0x6f,0x66,0x66])]());});}))];return window[_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4116ce([0x72,0x61,0x63,0x65])](_0x549b56)[_0x4116ce([0x74,0x68,0x65,0x6e])](()=>_0x3a402c);}async function _0x2edcae(){await _0x389c7f,_0x19c232[_0x4116ce([0x6d,0x6f,0x64,0x65,0x6c])][_0x4116ce([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b215f,_0x19c232[_0x4116ce([0x6d,0x6f,0x64,0x65,0x6c])][_0x4116ce([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b215f,_0x19c232[_0x4116ce([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4116ce([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d0fb9(_0x5c42c5){const _0x27b2e9=_0x39ebaf();_0x19c232[_0x27b2e9]=_0x4116ce([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5c42c5,_0x5c42c5!=_0x4116ce([0x56,0x61,0x6c,0x69,0x64])&&_0x2edcae();}function _0x39ebaf(){const _0x515cea=window[_0x4116ce([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4116ce([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4116ce([0x6e,0x6f,0x77])]())[_0x4116ce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4116ce([0x2e]),'');let _0x2dbe3d=_0x4116ce([0x4e]);for(let _0x2164a7=0x0;_0x2164a7<_0x515cea[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2164a7+=0x2){let _0x3f07f1=window[_0x4116ce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x515cea[_0x4116ce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2164a7,_0x2164a7+0x2));_0x3f07f1>=_0x54ba9c[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f07f1-=_0x54ba9c[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2dbe3d+=_0x54ba9c[_0x3f07f1];}return _0x2dbe3d;}function _0x3dcefe(){const _0x2ff939=_0x20de7f[_0x4116ce([0x73,0x70,0x6c,0x69,0x74])](_0x4116ce([0x2e]));if(0x3!=_0x2ff939[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3a09ff(_0x2ff939[0x1]);function _0x3a09ff(_0x35e3e2){const _0xfdd758=_0x4bbef5(_0x35e3e2);return _0xfdd758&&_0x54995d()?_0xfdd758:null;function _0x54995d(){const _0xe3bb9e=_0xfdd758[_0x4116ce([0x6a,0x74,0x69])],_0x861fa9=window[_0x4116ce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe3bb9e[_0x4116ce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe3bb9e[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc4020c={..._0xfdd758,[_0x4116ce([0x6a,0x74,0x69])]:_0xe3bb9e[_0x4116ce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe3bb9e[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc4020c[_0x4116ce([0x76,0x63])],_0x1f1c30(_0xc4020c)==_0x861fa9;}}}async function _0x4cf1b6(){let _0x4a2ec6=!0x0;try{const _0x48e4ec=_0x20de7f[_0x4116ce([0x73,0x70,0x6c,0x69,0x74])](_0x4116ce([0x2e])),[_0x59ded7,_0x1be577,_0x63862b]=_0x48e4ec;return _0x2a2585(_0x59ded7),await _0x313ff3(_0x59ded7,_0x1be577,_0x63862b),_0x4a2ec6;}catch(_0x46f8a6){return!0x1;}function _0x2a2585(_0x297398){const _0x4b56bf=_0x4bbef5(_0x297398);_0x4b56bf&&_0x4b56bf[_0x4116ce([0x61,0x6c,0x67])]==_0x4116ce([0x45,0x53,0x32,0x35,0x36])||(_0x4a2ec6=!0x1);}async function _0x313ff3(_0x24961b,_0x1979a8,_0x3aff9d){const _0x2d1410=window[_0x4116ce([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4116ce([0x66,0x72,0x6f,0x6d])](_0x382a69(_0x3aff9d),_0x422c76=>_0x422c76[_0x4116ce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b9eeb=new window[(_0x4116ce([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4116ce([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24961b+_0x4116ce([0x2e])+_0x1979a8),_0x5803ca=window[_0x4116ce([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4116ce([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5803ca)return;const _0x2cfae9=await _0x5803ca[_0x4116ce([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4116ce([0x6a,0x77,0x6b]),_0x1f556f,{[_0x4116ce([0x6e,0x61,0x6d,0x65])]:_0x4116ce([0x45,0x43,0x44,0x53,0x41]),[_0x4116ce([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4116ce([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4116ce([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5803ca[_0x4116ce([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4116ce([0x6e,0x61,0x6d,0x65])]:_0x4116ce([0x45,0x43,0x44,0x53,0x41]),[_0x4116ce([0x68,0x61,0x73,0x68])]:{[_0x4116ce([0x6e,0x61,0x6d,0x65])]:_0x4116ce([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2cfae9,_0x2d1410,_0x1b9eeb)||(_0x4a2ec6=!0x1);}}function _0x4bbef5(_0x1ab0a7){return _0x1ab0a7[_0x4116ce([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4116ce([0x65,0x79]))?JSON[_0x4116ce([0x70,0x61,0x72,0x73,0x65])](_0x382a69(_0x1ab0a7)):null;}function _0x382a69(_0x11f8a9){return window[_0x4116ce([0x61,0x74,0x6f,0x62])](_0x11f8a9[_0x4116ce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4116ce([0x2b]))[_0x4116ce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4116ce([0x2f])));}function _0x1f1c30(_0xe0c7fc){let _0x2ddd92=0x1505;function _0x4a8a14(_0x5abc26){for(let _0x274f1e=0x0;_0x274f1e<_0x5abc26[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x274f1e++){const _0x121abf=_0x5abc26[_0x4116ce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x274f1e);_0x2ddd92=(_0x2ddd92<<0x5)+_0x2ddd92+_0x121abf,_0x2ddd92&=_0x2ddd92;}}function _0x483d4b(_0x47ff87){Array[_0x4116ce([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x47ff87)?_0x47ff87[_0x4116ce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x483d4b):_0x47ff87&&typeof _0x47ff87==_0x4116ce([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4116ce([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x47ff87)[_0x4116ce([0x73,0x6f,0x72,0x74])]()[_0x4116ce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29597b,_0x32f6ad])=>{_0x4a8a14(_0x29597b),_0x483d4b(_0x32f6ad);}):_0x4a8a14(window[_0x4116ce([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x47ff87));}return _0x483d4b(_0xe0c7fc),_0x2ddd92>>>0x0;}function _0x4c2267(_0x563133){return _0x563133[_0x4116ce([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4116ce([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4116ce([0x30]));}function _0x3d3bb0(_0x4c6e8b){return _0x4c6e8b[_0x4116ce([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4116ce([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4116ce([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b215f(){}function _0x4116ce(_0x10ff0a){const _0x34062c=_0x336d;return _0x10ff0a[_0x34062c(0x179)](_0x53e5fd=>String[_0x34062c(0x162)](_0x53e5fd))[_0x34062c(0x14d)]('');}_0x1d0fb9(await _0x52d18a());}(this);}[_0x460775(0x147)](){const _0x4c6441=_0x460775,_0x4a21ec=this[_0x4c6441(0x148)][_0x4c6441(0x160)][_0x4c6441(0x132)];_0x4a21ec[_0x4c6441(0x15c)](_0x4c6441(0x14a))&&_0x4a21ec[_0x4c6441(0x154)](_0x4c6441(0x14a),{'allowAttributes':[_0x4c6441(0x136)]}),_0x4a21ec[_0x4c6441(0x15c)](_0x4c6441(0x173))&&_0x4a21ec[_0x4c6441(0x154)](_0x4c6441(0x173),{'allowAttributes':[_0x4c6441(0x136)]});}[_0x460775(0x134)](){const _0x13828d=_0x460775,_0xcdfae=this[_0x13828d(0x148)];_0xcdfae[_0x13828d(0x175)][_0x13828d(0x131)](_0x13828d(0x16c))[_0x13828d(0x12c)]({'model':_0x13828d(0x136),'view':_0x13828d(0x15a)}),_0xcdfae[_0x13828d(0x175)][_0x13828d(0x131)](_0x13828d(0x178))[_0x13828d(0x151)]({'model':{'key':_0x13828d(0x136),'value':_0x4cf32c=>_0x4cf32c[_0x13828d(0x13d)](_0x13828d(0x15a))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xa61752=_0xcdfae[_0x13828d(0x168)][_0x13828d(0x13c)](_0x13828d(0x166));_0xa61752&&this[_0x13828d(0x16f)](_0xa61752,_0x13828d(0x14c),(_0x5c338b,[_0x2e6a0a,_0x180c8c])=>{const _0x25cb9d=_0x13828d;_0x2e6a0a[_0x25cb9d(0x17e)](_0x25cb9d(0x136),_0x180c8c);});}[_0x460775(0x16d)](){const _0x4a4398=_0x460775,_0x499ec4=this[_0x4a4398(0x148)][_0x4a4398(0x144)][_0x4a4398(0x13c)](_0x4a4398(0x16a))||{},_0x4cb8fe=this[_0x4a4398(0x148)][_0x4a4398(0x144)][_0x4a4398(0x13c)](_0x4a4398(0x17a))||'';this[_0x4a4398(0x163)]=_0x5401b2(_0x18dad5[_0x4a4398(0x16e)],_0x4a4398(0x13e),{..._0x499ec4,'pubkey':_0x4cb8fe,'ctx-name':_0x4a4398(0x137),'sourceList':'','imgOnly':_0x4a4398(0x13a),'removeCopyright':_0x4a4398(0x13a),'localeName':this[_0x4a4398(0x148)][_0x4a4398(0x159)][_0x4a4398(0x12d)],'externalSourcesEmbedCss':_0x4a4398(0x130)}),this[_0x4a4398(0x163)][_0x4a4398(0x15f)]=_0x4a6ded=>{const _0x3f9f4c=_0x4a4398;if(_0x3f9f4c(0x158)==_0x4a6ded)return _0x3f9f4c(0x17c);},_0x18dad5[_0x4a4398(0x16e)][_0x4a4398(0x161)][_0x4a4398(0x152)](this[_0x4a4398(0x163)]);}[_0x460775(0x15e)](){const _0x2a07b9=_0x460775;this[_0x2a07b9(0x139)]=_0x5401b2(_0x18dad5[_0x2a07b9(0x16e)],_0x2a07b9(0x133),{'ctx-name':_0x2a07b9(0x137)}),_0x18dad5[_0x2a07b9(0x16e)][_0x2a07b9(0x161)][_0x2a07b9(0x152)](this[_0x2a07b9(0x139)]);}[_0x460775(0x150)](){const _0x5886ff=_0x460775,_0x1f0e0f=this[_0x5886ff(0x148)][_0x5886ff(0x168)][_0x5886ff(0x13c)](_0x5886ff(0x13f));_0x1f0e0f&&this[_0x5886ff(0x16f)](_0x1f0e0f,_0x5886ff(0x12f),()=>{const _0x5010f3=_0x5886ff,_0x43f4c1=this[_0x5010f3(0x148)][_0x5010f3(0x160)][_0x5010f3(0x16e)][_0x5010f3(0x156)][_0x5010f3(0x15b)]();_0x43f4c1&&_0x43f4c1[_0x5010f3(0x13d)](_0x5010f3(0x136))&&this[_0x5010f3(0x148)][_0x5010f3(0x14b)][_0x5010f3(0x14e)][_0x5010f3(0x174)](_0x5010f3(0x143),()=>{const _0x141e44=_0x5010f3;_0x10f413(this[_0x141e44(0x148)],_0x43f4c1);});});const _0x316de7=this[_0x5886ff(0x148)][_0x5886ff(0x168)][_0x5886ff(0x13c)](_0x5886ff(0x176));_0x316de7&&this[_0x5886ff(0x16f)](_0x316de7,_0x5886ff(0x12f),()=>{const _0x528dd7=_0x5886ff,_0x34732d=this[_0x528dd7(0x148)][_0x528dd7(0x160)][_0x528dd7(0x16e)][_0x528dd7(0x156)][_0x528dd7(0x15b)]();_0x34732d&&_0x34732d[_0x528dd7(0x13d)](_0x528dd7(0x136))&&this[_0x528dd7(0x148)][_0x528dd7(0x14b)][_0x528dd7(0x14e)][_0x528dd7(0x174)](_0x528dd7(0x143),()=>{const _0x688998=_0x528dd7;_0x10f413(this[_0x688998(0x148)],_0x34732d);});});}}function _0xb23f(){const _0x3fc512=['config','destroy','init','_initSchema','editor','45tZeGWF','imageBlock','editing','cleanupImage','join','view','300778LLREUD','_initImageProcessingIndicator','elementToAttribute','appendChild','4816736KTnXTn','extend','uploadcare','selection','input[uploadcare-file-input]','closeMax','locale','data-uc-image-id','getSelectedElement','isRegistered','9usmhXx','_initCtx','iconHrefResolver','model','body','fromCharCode','_configElement','954348OjWupt','configElement','replaceImageSource','PictureEditing','commands','add','uploadcare.uploader','4624340HjFQtr','downcast','_initConfig','document','listenTo','6007480SLpqwk','href','isOfficialPlugin','imageInline','once','conversion','uploadcareImageReplace','pluginName','upcast','map','uploadcare.pubkey','requires','#uc-icon-arrow-down','afterInit','removeAttribute','isPremiumPlugin','attributeToAttribute','contentLanguage','423324axUVUi','execute','\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','for','schema','uc-upload-ctx-provider','_initConversion','2ZTdIZA','uploadcareImageId','uploader','querySelector','_ctxElement','true','902808pIBfrF','get','getAttribute','uc-config','insertImage','UploadcareEditing','remove','ctxElement','render'];_0xb23f=function(){return _0x3fc512;};return _0xb23f();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x7bc484,ObservableMixin as _0x38770d}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x131690}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2cad65}from'ckeditor5/src/icons.js';import _0x2e8c60 from'./uploadcareimageeditformview.js';import _0x321497 from'../../utils/uploadutils.js';import{getImageUrls as _0x22e703,getImageDimension as _0x6f0497}from'../../utils/editingutils.js';import{isAncestor as _0x26d753}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x38770d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x384003,_0x83f49f,_0x34e01e){super(),this['_editor']=_0x384003,this['_dialog']=_0x83f49f,this['_imageElement']=_0x34e01e,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 _0x38222d=this['_imageElement'],_0x29130a=_0x38222d['getAttribute']('uploadcareImageId'),_0x2e0ba0=_0x38222d['getAttribute']('src');if(_0x29130a)await this['_loadImageInfo'](_0x29130a,_0x2e0ba0);else{if(this['_imageCache']['has'](_0x2e0ba0)){const _0x2e3e88=this['_imageCache']['get'](_0x2e0ba0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2e3e88['url'],this['imageDimension']=_0x2e3e88['dimension'],this['imageId']=_0x2e3e88['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x56639d}=this['_editor'],t=_0x56639d['t'],_0x54961a=new _0x2e8c60(_0x56639d,this['imageStatus'],this['_attributes']);_0x54961a['bind']('status')['to'](this,'imageStatus'),_0x54961a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x54961a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x54961a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x54961a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2cad65,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x54961a,'position':_0x131690['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x54961a['focus']();},'onHide':()=>{_0x54961a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1d8423=>!_0x26d753(_0x1d8423,_0x54961a['element'])}});}['_loadImageInfo'](_0x19d836,_0x3358ef){return _0x321497['getInfo'](_0x19d836,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5afa97=>{const {width:_0xb69f85,height:_0x2c7f77}=_0x5afa97['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3358ef,this['imageDimension']={'width':_0xb69f85,'height':_0x2c7f77},this['imageId']=_0x19d836;})['catch'](_0x15b696=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x15b696['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x15530f,_0x575e3f){return this['_getImageAsFile'](_0x15530f)['then'](_0x2ba47e=>_0x321497['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x575e3f['signal'],'file':_0x2ba47e,'onProgress':_0x3601d0=>{_0x3601d0&&_0x3601d0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3601d0['value']));}}))['then'](_0x891059=>{const {width:_0x28e589,height:_0xd94b45}=_0x891059['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x891059['cdnUrl'],this['imageDimension']={'width':_0x28e589,'height':_0xd94b45},this['imageId']=_0x891059['uuid'],this['imageUploadProgress']=null;const _0x321a5b=_0x15530f['getAttribute']('src');this['_imageCache']['set'](_0x321a5b,{'id':_0x891059['uuid'],'url':_0x891059['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xea0e5d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xea0e5d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x533dd9,_0x5e8bc3){_0x533dd9['on']('apply',(_0x1d1670,_0x599081)=>{this['_replaceImage'](_0x5e8bc3,_0x599081['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x533dd9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x533dd9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x30d37e,_0x246a7e,_0x2ad3c9){const _0xacf692=this['_editor'],{width:_0x71187,height:_0x3f449c}=_0x6f0497(_0x246a7e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x22ca58,imageSources:_0x125c75}=_0x22e703(_0x246a7e,_0x71187);_0xacf692['model']['change'](_0x2d07e1=>{if('$graveyard'===_0x30d37e['root']['rootName']){_0xacf692['execute']('insertImage',{'imageType':_0x30d37e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x30d37e['getAttributes']()),'uploadcareImageId':_0x2ad3c9,'src':_0x22ca58,'sources':_0x125c75,'width':_0x71187,'height':_0x3f449c}});const _0x24e37f=_0x30d37e['getChildren']();_0x30d37e=_0xacf692['model']['document']['selection']['getSelectedElement']();for(const _0xd6b60f of _0x24e37f)_0x2d07e1['append'](_0x2d07e1['cloneElement'](_0xd6b60f),_0x30d37e);}else _0x2d07e1['setSelection'](_0x30d37e,'on'),_0xacf692['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x30d37e['getAttributes']()),'uploadcareImageId':_0x2ad3c9,'src':_0x22ca58,'sources':_0x125c75,'width':_0x71187,'height':_0x3f449c},_0x30d37e);_0x2d07e1['setSelection'](_0x30d37e,'on');});}async['_getImageAsFile'](_0x2edd51){const _0x2cae87=_0x7bc484['window'],_0x31508c=_0x7bc484['document']['location']['href'],_0x5b91ae=new _0x2cae87['URL'](_0x2edd51['getAttribute']('src'),_0x31508c);if('data:'===_0x5b91ae['protocol']){const _0x451901=_0x5b91ae['href']['split'](','),_0x3044a1=_0x451901[0x0]['match'](/:(.*?);/)[0x1],_0x50738f=_0x3044a1['split']('/')[0x1],_0x2a49a8=_0x2cae87['atob'](_0x451901[_0x451901['length']-0x1]);let _0x6ba792=_0x2a49a8['length'];const _0x3b3765=new _0x2cae87['Uint8Array'](_0x6ba792);for(;_0x6ba792--;)_0x3b3765[_0x6ba792]=_0x2a49a8['charCodeAt'](_0x6ba792);return new _0x2cae87['File']([_0x3b3765],'image.'+_0x50738f,{'type':_0x3044a1});}const _0x8a1ffa=_0x5b91ae['href']['split']('/'),_0x2a0e75=_0x8a1ffa[_0x8a1ffa['length']-0x1],_0x3bf8b8=_0x2a0e75['split']('.')[0x1];return _0x2cae87['fetch'](_0x5b91ae['href'])['then'](_0x171b70=>_0x171b70['clone']()['blob']())['then'](_0x50bd7f=>new _0x2cae87['File']([_0x50bd7f],_0x2a0e75,{'type':'image/'+_0x3bf8b8}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x235c76,_0x2a7ccb){const _0x3e4007=_0x2dbc,_0xd2f027=_0x235c76();while(!![]){try{const _0x1051f6=-parseInt(_0x3e4007(0xcc))/0x1+parseInt(_0x3e4007(0xc9))/0x2+-parseInt(_0x3e4007(0xcb))/0x3*(-parseInt(_0x3e4007(0xd2))/0x4)+parseInt(_0x3e4007(0xca))/0x5+-parseInt(_0x3e4007(0xd4))/0x6+-parseInt(_0x3e4007(0xd3))/0x7+parseInt(_0x3e4007(0xc6))/0x8*(parseInt(_0x3e4007(0xd5))/0x9);if(_0x1051f6===_0x2a7ccb)break;else _0xd2f027['push'](_0xd2f027['shift']());}catch(_0x3a6477){_0xd2f027['push'](_0xd2f027['shift']());}}}(_0x5bcd,0x7579d));import{View as _0x446983}from'ckeditor5/src/ui.js';function _0x2dbc(_0x57f87e,_0x3db7aa){const _0x5bcd31=_0x5bcd();return _0x2dbc=function(_0x2dbc4a,_0x4f057e){_0x2dbc4a=_0x2dbc4a-0xc6;let _0x23c490=_0x5bcd31[_0x2dbc4a];return _0x23c490;},_0x2dbc(_0x57f87e,_0x3db7aa);}function _0x5bcd(){const _0x5dfcb6=['image-edit','386128jbTBxa','3550043FJyoJn','4226352aEMnLG','9UlOVFF','uc-cloud-image-editor','1147792DGkYOd','uc-light','ck-uploadcare-theme','341282QTJCFd','3696360CwQTus','24BCeaBX','132921ZWPLfk','bindTemplate','setTemplate','imageSrc','set'];_0x5bcd=function(){return _0x5dfcb6;};return _0x5bcd();}export default class tt extends _0x446983{constructor(_0xc5f80f,_0xb1f7c4){const _0x2e1d9b=_0x2dbc;super(_0xc5f80f);const _0x4bb8ec=this[_0x2e1d9b(0xcd)];this[_0x2e1d9b(0xd0)](_0x2e1d9b(0xcf),''),this[_0x2e1d9b(0xce)]({'tag':_0x2e1d9b(0xd6),'attributes':{..._0xb1f7c4,'class':[_0x2e1d9b(0xc7),_0x2e1d9b(0xc8)],'ctx-name':_0x2e1d9b(0xd1),'cdn-url':_0x4bb8ec['to'](_0x2e1d9b(0xcf))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x18a6fa,IconView as at,View as _0x1b9215}from'ckeditor5/src/ui.js';export default class rt extends _0x1b9215{constructor(_0x5af99f){super(_0x5af99f);const t=_0x5af99f['t'];this['set']('errorType',null);const _0x5ae7f0=new _0x18a6fa(_0x5af99f);_0x5ae7f0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5ae7f0['withText']=!0x0,_0x5ae7f0['class']='ck-button-action',_0x5ae7f0['on']('execute',()=>{this['fire']('retry');}),_0x5ae7f0['bind']('isVisible')['to'](this,'errorType',_0xe2964e=>'NotFound'!==_0xe2964e);const _0x437e80=new at();_0x437e80['content']=et,_0x437e80['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1311e7=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':[_0x437e80,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1311e7['to']('errorType',_0xe3e554=>t('NotFound'!==_0xe3e554?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5ae7f0]},{'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 _0x1fc6aa,View as _0x120e85}from'ckeditor5/src/ui.js';export default class ta extends _0x120e85{constructor(_0x13b319){super(_0x13b319);const t=_0x13b319['t'],_0x1e00bd=this['bindTemplate'],_0x3e0567=new _0x1fc6aa();_0x3e0567['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':[_0x3e0567,{'text':_0x1e00bd['to']('imageUploadProgress',_0x41d401=>t('Loading\x20image...')+'\x20('+(_0x41d401||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
|
-
|
|
23
|
+
const _0x1ae707=_0x439c;(function(_0x4fc019,_0x1610d9){const _0x44b69d=_0x439c,_0x246ce6=_0x4fc019();while(!![]){try{const _0x99888b=-parseInt(_0x44b69d(0x144))/0x1+parseInt(_0x44b69d(0x132))/0x2*(-parseInt(_0x44b69d(0x134))/0x3)+-parseInt(_0x44b69d(0x125))/0x4+parseInt(_0x44b69d(0x142))/0x5*(-parseInt(_0x44b69d(0x12b))/0x6)+-parseInt(_0x44b69d(0x12d))/0x7*(parseInt(_0x44b69d(0x12c))/0x8)+-parseInt(_0x44b69d(0x122))/0x9*(parseInt(_0x44b69d(0x11e))/0xa)+-parseInt(_0x44b69d(0x112))/0xb*(-parseInt(_0x44b69d(0x119))/0xc);if(_0x99888b===_0x1610d9)break;else _0x246ce6['push'](_0x246ce6['shift']());}catch(_0x31e16a){_0x246ce6['push'](_0x246ce6['shift']());}}}(_0x46bb,0x2f529));function _0x46bb(){const _0x523d50=['observe','addedNodes','2938668grvSHK','uploading','_errorView','detail','retry','249670decQmP','div','change:status','nodeName','117skOVIh','setTemplate','uc-cloud-image-editor','1064884BSNJvj','toLowerCase','_editingView','cdnUrl','_items','_setView','18MlFCEN','8zpYtev','1732591dAcXMS','fire','render','apply','addMany','508078sjwItM','_addUploadcareImageEditorListeners','3CynRWF','once','ck-uploadcare-form','focus','set','addEventListener','_addErrorViewListeners','getFocusableElement','disconnect','clear','length','error','querySelector','element','257930TlczMk','_waitForImageEditorComponent','28399TgFOMD','status','_focusableView','ck-reset_all-excluded','add','filter','ready','66LSWZCg','cancel','target','createCollection','_loadingView'];_0x46bb=function(){return _0x523d50;};return _0x46bb();}import{View as _0x40b07f}from'ckeditor5/src/ui.js';import _0x2cd700 from'./uploadcareimageeditformloadingview.js';import _0x34290b from'./uploadcareimageeditformerrorview.js';import _0x4b7631 from'./uploadcareimageeditformeditingview.js';import _0x198f6d from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x439c(_0x1022ee,_0x3a0e9b){const _0x46bbed=_0x46bb();return _0x439c=function(_0x439cec,_0x13b03a){_0x439cec=_0x439cec-0x111;let _0x13d195=_0x46bbed[_0x439cec];return _0x13d195;},_0x439c(_0x1022ee,_0x3a0e9b);}export default class Z extends _0x198f6d{[_0x1ae707(0x129)];[_0x1ae707(0x116)];[_0x1ae707(0x11b)];[_0x1ae707(0x127)];[_0x1ae707(0x146)];constructor(_0x17cfd9,_0x16d5cd,_0x48bfed){const _0x29c68c=_0x1ae707;super(_0x17cfd9),this[_0x29c68c(0x129)]=this[_0x29c68c(0x115)](),this[_0x29c68c(0x116)]=new _0x2cd700(_0x17cfd9),this[_0x29c68c(0x11b)]=new _0x34290b(_0x17cfd9),this[_0x29c68c(0x127)]=new _0x4b7631(_0x17cfd9,_0x48bfed),this[_0x29c68c(0x146)]=new _0x40b07f(_0x17cfd9),this[_0x29c68c(0x146)][_0x29c68c(0x123)](this[_0x29c68c(0x13b)]()),this[_0x29c68c(0x138)](_0x29c68c(0x145),_0x16d5cd),this[_0x29c68c(0x123)]({'tag':_0x29c68c(0x11f),'attributes':{'class':['ck',_0x29c68c(0x147),_0x29c68c(0x136)],'tabindex':'-1'},'children':this[_0x29c68c(0x129)]}),this[_0x29c68c(0x12a)](),this[_0x29c68c(0x135)](_0x29c68c(0x12f),()=>{const _0x467a7c=_0x29c68c;this[_0x467a7c(0x143)](this[_0x467a7c(0x141)],_0x2d4b1d=>{const _0x1dbfaa=_0x467a7c;this[_0x1dbfaa(0x133)](_0x2d4b1d);});}),this['on'](_0x29c68c(0x120),()=>{const _0x2ff447=_0x29c68c;this[_0x2ff447(0x12a)]();}),this[_0x29c68c(0x13a)]();}[_0x1ae707(0x137)](){const _0x29f2c2=_0x1ae707;this[_0x29f2c2(0x141)][_0x29f2c2(0x137)]();}[_0x1ae707(0x12a)](){const _0x528149=_0x1ae707;switch(this[_0x528149(0x129)][_0x528149(0x13d)](),this[_0x528149(0x145)]){case _0x528149(0x11a):this[_0x528149(0x129)][_0x528149(0x148)](this[_0x528149(0x116)]);break;case _0x528149(0x13f):this[_0x528149(0x129)][_0x528149(0x148)](this[_0x528149(0x11b)]);break;case _0x528149(0x111):this[_0x528149(0x129)][_0x528149(0x131)]([this[_0x528149(0x127)],this[_0x528149(0x146)]]);}}[_0x1ae707(0x143)](_0x350264,_0x421cb7){const _0x1209f8=_0x1ae707,_0x529271=_0x1209f8(0x124),_0x4fc04d=_0x350264[_0x1209f8(0x140)](_0x529271);if(_0x4fc04d)return _0x421cb7(_0x4fc04d);const _0x1b91e5=new MutationObserver(_0x2e0a32=>{const _0x2e8034=_0x1209f8,_0x1f5a1a=_0x2e0a32[_0x2e8034(0x149)](_0x2a2a8c=>_0x2a2a8c[_0x2e8034(0x114)]===_0x350264&&_0x2a2a8c[_0x2e8034(0x118)][_0x2e8034(0x13e)]>0x0&&_0x2a2a8c[_0x2e8034(0x118)][0x0][_0x2e8034(0x121)][_0x2e8034(0x126)]()===_0x529271);_0x1f5a1a[_0x2e8034(0x13e)]&&(_0x1b91e5[_0x2e8034(0x13c)](),_0x421cb7(_0x1f5a1a[0x0][_0x2e8034(0x118)][0x0]));});_0x1b91e5[_0x1209f8(0x117)](_0x350264,{'childList':!0x0,'subtree':!0x0});}[_0x1ae707(0x133)](_0x53d226){const _0x2d7497=_0x1ae707;_0x53d226[_0x2d7497(0x139)](_0x2d7497(0x130),_0x465f99=>{const _0x4ef5e5=_0x2d7497;this[_0x4ef5e5(0x12e)](_0x4ef5e5(0x130),{'imageSrc':_0x465f99[_0x4ef5e5(0x11c)][_0x4ef5e5(0x128)]});}),_0x53d226[_0x2d7497(0x139)](_0x2d7497(0x113),()=>{const _0x312636=_0x2d7497;this[_0x312636(0x12e)](_0x312636(0x113));});}[_0x1ae707(0x13a)](){const _0x32cda1=_0x1ae707;this[_0x32cda1(0x11b)]['on'](_0x32cda1(0x11d),()=>{const _0x21e881=_0x32cda1;this[_0x21e881(0x12e)](_0x21e881(0x11d));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16ddb4=_0x32af;(function(_0x5e2f0d,_0x1ec6b8){const _0x2e83de=_0x32af,_0x3db0ce=_0x5e2f0d();while(!![]){try{const _0x1d9bdd=-parseInt(_0x2e83de(0xc8))/0x1*(-parseInt(_0x2e83de(0xd6))/0x2)+-parseInt(_0x2e83de(0xdc))/0x3+parseInt(_0x2e83de(0xd0))/0x4+-parseInt(_0x2e83de(0xd5))/0x5*(parseInt(_0x2e83de(0xce))/0x6)+parseInt(_0x2e83de(0xcc))/0x7*(parseInt(_0x2e83de(0xc3))/0x8)+parseInt(_0x2e83de(0xc0))/0x9+parseInt(_0x2e83de(0xca))/0xa;if(_0x1d9bdd===_0x1ec6b8)break;else _0x3db0ce['push'](_0x3db0ce['shift']());}catch(_0xc46e5e){_0x3db0ce['push'](_0x3db0ce['shift']());}}}(_0x3cf0,0x7deb6));import{Command as _0xf65bc}from'ckeditor5/src/core.js';import{Dialog as _0x10ebbd}from'ckeditor5/src/ui.js';function _0x3cf0(){const _0x2a309a=['requires','get','141055Jnwgkw','386318bJCzAD','isActive','selection','refresh','imageBlock','editor','1574592eaFMuj','set','bind','uploadcare.allowExternalImagesEditing','2522340QXzjtQ','getSelectedElement','imageEditController','266824hFjcJM','execute','_isEditable','plugins','imageInline','3iBYHxK','config','5134730OHLrza','unbind','105svPmKg','document','186cJfAqC','element','166664DdOmmV','isEnabled','model'];_0x3cf0=function(){return _0x2a309a;};return _0x3cf0();}function _0x32af(_0x1a8354,_0x43b0ba){const _0x3cf0de=_0x3cf0();return _0x32af=function(_0x32af0c,_0x29649b){_0x32af0c=_0x32af0c-0xbd;let _0x4441a2=_0x3cf0de[_0x32af0c];return _0x4441a2;},_0x32af(_0x1a8354,_0x43b0ba);}import _0x413ca9 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x341df8}from'../utils/editingutils.js';export default class J extends _0xf65bc{[_0x16ddb4(0xc2)];static get[_0x16ddb4(0xd3)](){return[_0x10ebbd];}[_0x16ddb4(0xc5)];constructor(_0x568606){const _0x33a4fc=_0x16ddb4;super(_0x568606),this[_0x33a4fc(0xc2)]=void 0x0,this[_0x33a4fc(0xc5)]=_0x341df8(_0x568606[_0x33a4fc(0xc9)][_0x33a4fc(0xd4)](_0x33a4fc(0xbf))||[]),this[_0x33a4fc(0xbd)]({'isActive':!0x1});}[_0x16ddb4(0xd9)](){const _0x342d7e=_0x16ddb4,_0x2c7397=this[_0x342d7e(0xdb)][_0x342d7e(0xd2)][_0x342d7e(0xcd)][_0x342d7e(0xd8)][_0x342d7e(0xc1)]();this[_0x342d7e(0xd1)]=this[_0x342d7e(0xc5)](_0x2c7397);}[_0x16ddb4(0xc4)](){const _0x17bb2b=_0x16ddb4;this[_0x17bb2b(0xc2)]&&(this[_0x17bb2b(0xcb)](_0x17bb2b(0xd7)),this[_0x17bb2b(0xc2)]=void 0x0);const _0x2eabf2=this[_0x17bb2b(0xdb)][_0x17bb2b(0xd2)][_0x17bb2b(0xcd)][_0x17bb2b(0xd8)][_0x17bb2b(0xc1)]();_0x2eabf2&&(_0x2eabf2['is'](_0x17bb2b(0xcf),_0x17bb2b(0xda))||_0x2eabf2['is'](_0x17bb2b(0xcf),_0x17bb2b(0xc7)))&&(this[_0x17bb2b(0xc2)]=new _0x413ca9(this[_0x17bb2b(0xdb)],this[_0x17bb2b(0xdb)][_0x17bb2b(0xc6)][_0x17bb2b(0xd4)](_0x10ebbd),_0x2eabf2),this[_0x17bb2b(0xbe)](_0x17bb2b(0xd7))['to'](this[_0x17bb2b(0xc2)],_0x17bb2b(0xd7)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52a5c2=_0x2d32;(function(_0x4c13bb,_0x3c466c){const _0xe2b28e=_0x2d32,_0x119b67=_0x4c13bb();while(!![]){try{const _0x1eb085=-parseInt(_0xe2b28e(0x95))/0x1*(-parseInt(_0xe2b28e(0x99))/0x2)+-parseInt(_0xe2b28e(0x98))/0x3*(-parseInt(_0xe2b28e(0xac))/0x4)+-parseInt(_0xe2b28e(0xa3))/0x5*(-parseInt(_0xe2b28e(0xab))/0x6)+-parseInt(_0xe2b28e(0x9a))/0x7*(-parseInt(_0xe2b28e(0x9c))/0x8)+parseInt(_0xe2b28e(0x97))/0x9+-parseInt(_0xe2b28e(0xa7))/0xa+-parseInt(_0xe2b28e(0xa1))/0xb*(parseInt(_0xe2b28e(0x9f))/0xc);if(_0x1eb085===_0x3c466c)break;else _0x119b67['push'](_0x119b67['shift']());}catch(_0x4d5a77){_0x119b67['push'](_0x119b67['shift']());}}}(_0x5792,0x75dcc));import{Plugin as _0x50fa62}from'ckeditor5/src/core.js';import{Notification as _0x591b98}from'ckeditor5/src/ui.js';import _0x487b6d from'./uploadcareimageeditcommand.js';import _0x59685f from'./uploadcareimagereplacecommand.js';function _0x5792(){const _0x34ba96=['isPremiumPlugin','82184QrRzYh','add','ImageEditing','51132RiulVS','uploadcareImageEdit','7832GqXejC','requires','5305JVVmqc','ImageUtils','pluginName','isOfficialPlugin','4980820IvoPqg','init','UploadcareImageEditEditing','commands','5322vaqnbP','6188BBirHQ','8pzAmNm','uploadcareImageReplace','5600781cHjLqp','1311bQbqJx','220368pBiVqN','609hObNIg'];_0x5792=function(){return _0x34ba96;};return _0x5792();}function _0x2d32(_0x174f3d,_0x5519f6){const _0x579229=_0x5792();return _0x2d32=function(_0x2d3222,_0xfbea25){_0x2d3222=_0x2d3222-0x95;let _0x36a746=_0x579229[_0x2d3222];return _0x36a746;},_0x2d32(_0x174f3d,_0x5519f6);}import _0x58a132 from'../uploadcareediting.js';export default class g extends _0x50fa62{static get[_0x52a5c2(0xa5)](){const _0x3f9e14=_0x52a5c2;return _0x3f9e14(0xa9);}static get[_0x52a5c2(0xa2)](){const _0x385ef3=_0x52a5c2;return[_0x58a132,_0x591b98,_0x385ef3(0xa4),_0x385ef3(0x9e)];}static get[_0x52a5c2(0xa6)](){return!0x0;}static get[_0x52a5c2(0x9b)](){return!0x0;}[_0x52a5c2(0xa8)](){const _0x5031d9=_0x52a5c2,{editor:_0x4d5dd9}=this;_0x4d5dd9[_0x5031d9(0xaa)][_0x5031d9(0x9d)](_0x5031d9(0xa0),new _0x487b6d(_0x4d5dd9)),_0x4d5dd9[_0x5031d9(0xaa)][_0x5031d9(0x9d)](_0x5031d9(0x96),new _0x59685f(_0x4d5dd9));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4e49fc}from'ckeditor5/src/core.js';import{ButtonView as _0x1f8b9a}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3581df}from'ckeditor5/src/icons.js';import{createElement as _0x217118}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x4e49fc{['_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 _0xcfeb6=this['editor'];_0xcfeb6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x192820=>{const _0x22b88b=_0xcfeb6['commands']['get']('uploadcareImageEdit'),_0x55949f=new _0x1f8b9a(_0x192820),t=_0x192820['t'];return _0x55949f['set']({'icon':_0x3581df,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x55949f['bind']('isEnabled')['to'](_0x22b88b),_0x55949f['bind']('isOn')['to'](_0x22b88b,'isActive'),this['listenTo'](_0x55949f,'execute',()=>{_0xcfeb6['execute']('uploadcareImageEdit'),_0xcfeb6['editing']['view']['focus']();}),_0x55949f;}),this['_initConfig']();}['_initConfig'](){const _0x2fd1d0=_0x217118(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2fd1d0),this['listenTo'](this['editor'],'destroy',()=>{_0x2fd1d0['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d1677=_0x2c76;(function(_0xbbe555,_0x3c3b1a){const _0x183269=_0x2c76,_0x5c4d36=_0xbbe555();while(!![]){try{const _0x4541d0=parseInt(_0x183269(0xc6))/0x1*(parseInt(_0x183269(0xc1))/0x2)+-parseInt(_0x183269(0xc2))/0x3+-parseInt(_0x183269(0xd0))/0x4*(parseInt(_0x183269(0xce))/0x5)+parseInt(_0x183269(0xc5))/0x6+-parseInt(_0x183269(0xcc))/0x7+parseInt(_0x183269(0xc7))/0x8+parseInt(_0x183269(0xd1))/0x9*(-parseInt(_0x183269(0xd6))/0xa);if(_0x4541d0===_0x3c3b1a)break;else _0x5c4d36['push'](_0x5c4d36['shift']());}catch(_0x2e4747){_0x5c4d36['push'](_0x5c4d36['shift']());}}}(_0x3d32,0x3df1b));import{Command as _0x154339}from'ckeditor5/src/core.js';function _0x2c76(_0x58887a,_0x5a4a71){const _0x3d32bd=_0x3d32();return _0x2c76=function(_0x2c76d0,_0x45541e){_0x2c76d0=_0x2c76d0-0xbf;let _0x38de20=_0x3d32bd[_0x2c76d0];return _0x38de20;},_0x2c76(_0x58887a,_0x5a4a71);}export default class O extends _0x154339{[_0x4d1677(0xc4)](){const _0x1f3136=_0x4d1677,_0x29d55c=this[_0x1f3136(0xc0)][_0x1f3136(0xd5)][_0x1f3136(0xca)][_0x1f3136(0xcd)][_0x1f3136(0xcb)]();this[_0x1f3136(0xcf)]=Boolean(_0x29d55c&&(_0x29d55c['is'](_0x1f3136(0xc3),_0x1f3136(0xc9))||_0x29d55c['is'](_0x1f3136(0xc3),_0x1f3136(0xd2))));}[_0x4d1677(0xd8)](_0xe1154c){const _0x109e06=_0x4d1677,_0x25dba2=this[_0x109e06(0xc0)][_0x109e06(0xd5)][_0x109e06(0xca)][_0x109e06(0xcd)][_0x109e06(0xcb)]();this[_0x109e06(0xc0)][_0x109e06(0xd5)][_0x109e06(0xd4)](_0x56c43b=>{const _0x304052=_0x109e06;_0x56c43b[_0x304052(0xc8)](_0xe1154c,_0x25dba2),_0x56c43b[_0x304052(0xbf)](_0x304052(0xd7),_0x25dba2),_0x56c43b[_0x304052(0xbf)](_0x304052(0xd3),_0x25dba2);});}}function _0x3d32(){const _0x4a94b5=['editor','538326hXQCeh','341112rIrXcx','element','refresh','2054298uMVKRD','1jfhxGv','3827512ofbHdz','setAttributes','imageBlock','document','getSelectedElement','8176kRkpOH','selection','70fqSLor','isEnabled','81508lKSPuu','873VhszJg','imageInline','sizes','change','model','44960lQGfIT','srcset','execute','removeAttribute'];_0x3d32=function(){return _0x4a94b5;};return _0x3d32();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x30f312=_0x8ee5;(function(_0x5e274c,_0x4fc319){var _0x2ab4f2=_0x8ee5,_0x2957b0=_0x5e274c();while(!![]){try{var _0x472c3c=-parseInt(_0x2ab4f2(0x123))/0x1*(-parseInt(_0x2ab4f2(0x11d))/0x2)+-parseInt(_0x2ab4f2(0x122))/0x3+parseInt(_0x2ab4f2(0x11b))/0x4*(parseInt(_0x2ab4f2(0x117))/0x5)+-parseInt(_0x2ab4f2(0x119))/0x6+-parseInt(_0x2ab4f2(0x121))/0x7*(-parseInt(_0x2ab4f2(0x118))/0x8)+-parseInt(_0x2ab4f2(0x11f))/0x9+parseInt(_0x2ab4f2(0x11a))/0xa;if(_0x472c3c===_0x4fc319)break;else _0x2957b0['push'](_0x2957b0['shift']());}catch(_0x162b9e){_0x2957b0['push'](_0x2957b0['shift']());}}}(_0x58d6,0x7101e));import{Plugin as _0x1c5141}from'ckeditor5/src/core.js';import _0x44f9a0 from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x8ee5(_0x4b5332,_0xd38025){var _0x58d62b=_0x58d6();return _0x8ee5=function(_0x8ee5f6,_0x5cebef){_0x8ee5f6=_0x8ee5f6-0x116;var _0x5e96c8=_0x58d62b[_0x8ee5f6];return _0x5e96c8;},_0x8ee5(_0x4b5332,_0xd38025);}import _0x5c4490 from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x58d6(){var _0x59ad5c=['requires','5PmFefu','1123208AGaiDD','3688032qgyTyH','117580QpnHaR','3582548vRVmXw','isOfficialPlugin','72328wDZxZP','UploadcareImageEdit','1915047tuGHfK','isPremiumPlugin','7gkTZAF','1984689aQGapb','25ckgaTy','pluginName'];_0x58d6=function(){return _0x59ad5c;};return _0x58d6();}export default class P extends _0x1c5141{static get[_0x30f312(0x124)](){var _0x402f23=_0x30f312;return _0x402f23(0x11e);}static get[_0x30f312(0x116)](){return[_0x44f9a0,_0x5c4490];}static get[_0x30f312(0x11c)](){return!0x0;}static get[_0x30f312(0x120)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5dce42=_0x1668;(function(_0x44dbf6,_0x1646c1){const _0x2b76c2=_0x1668,_0x38afa7=_0x44dbf6();while(!![]){try{const _0x432a2e=-parseInt(_0x2b76c2(0xcb))/0x1+-parseInt(_0x2b76c2(0xca))/0x2+parseInt(_0x2b76c2(0xac))/0x3*(parseInt(_0x2b76c2(0xdb))/0x4)+parseInt(_0x2b76c2(0xee))/0x5*(parseInt(_0x2b76c2(0xdc))/0x6)+parseInt(_0x2b76c2(0xe3))/0x7*(-parseInt(_0x2b76c2(0xcc))/0x8)+parseInt(_0x2b76c2(0xe5))/0x9+parseInt(_0x2b76c2(0xe7))/0xa*(-parseInt(_0x2b76c2(0xc4))/0xb);if(_0x432a2e===_0x1646c1)break;else _0x38afa7['push'](_0x38afa7['shift']());}catch(_0x197926){_0x38afa7['push'](_0x38afa7['shift']());}}}(_0x1539,0xed52e));import{Plugin as _0x1d16e}from'ckeditor5/src/core.js';import{IconDropbox as _0x480ab9,IconFacebook as _0x2e7bc4,IconGoogleDrive as _0x2eb8fa,IconGooglePhotos as _0x10945b,IconUploadcareImageUpload as _0x5b44a7,IconUploadcareLink as _0xe74612,IconOneDrive as _0x552a4f}from'ckeditor5/src/icons.js';import{ButtonView as _0x1f36b8,MenuBarMenuListItemButtonView as _0x366783}from'ckeditor5/src/ui.js';function _0x1668(_0x64927c,_0x3e5025){const _0x15396c=_0x1539();return _0x1668=function(_0x16683a,_0x30602c){_0x16683a=_0x16683a-0xa4;let _0x28748c=_0x15396c[_0x16683a];return _0x28748c;},_0x1668(_0x64927c,_0x3e5025);}import{UploadcareSource as _0x4d4725}from'./uploadcareconfig.js';import{getTranslation as _0x446752}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x1539(){const _0x40d50e=['3758202jCIxAs','8915xuqcnU','2784YLGwgD','_createMenuBarButtons','evaluationLimit','registerIntegration','invalid','GDrive','get','uploadcareLicenseKeyInvalid','locale','push','UploadcareUI','_showLicenseError','uploadcare','map','_getIntegrationKey','4lmdFwK','18gKzYUa','uploadcareLicenseKeyUsageLimit','destroy','featureNotAllowed','ImageInsertUI','licenseKey','forEach','6475PubebR','isImageSelected','6174954FkHEbI','execute','9130670dfQsLA','isEnabled','icon','Replace','GPhotos','uploadcareLicenseKeyNotAllowed','label','3133910sukBaZ','entries','_createButton','bind','isOfficialPlugin','uploadcareLicenseKeyExpired','isPremiumPlugin','shortText','uploadcare.uploader.sourceList','afterInit','uploadcareLicenseKeyEvaluationLimit','Dropbox','OneDrive','URL','assetManager','_normalizeConfigSourceList','4585827YFsshv','pluginName','upload','Facebook','tooltip','withText','text','expired','domainLimit','trialLimit','_licenseKeyCheckInterval','_createToolbarButton','type','Local','init','url','uploadcareLicenseKeyTrialLimit','commands','Insert','usageLimit','plugins','has','uploadcareLicenseKeyDomainLimit','config','11RlXhmC','Uploadcare','uploadcareLicenseKeyValid','reduce','_createDropdownButtons','editor'];_0x1539=function(){return _0x40d50e;};return _0x1539();}import'../theme/uploadcareimageedit.css';export default class e extends _0x1d16e{[_0x5dce42(0xe1)];[_0x5dce42(0xb6)];static get[_0x5dce42(0xad)](){const _0x438a2a=_0x5dce42;return _0x438a2a(0xd6);}static get[_0x5dce42(0xf2)](){return!0x0;}static get[_0x5dce42(0xf4)](){return!0x0;}[_0x5dce42(0xba)](){const _0x58dbd7=_0x5dce42;this[_0x58dbd7(0xe1)]=this[_0x58dbd7(0xc9)][_0x58dbd7(0xc3)][_0x58dbd7(0xd2)](_0x58dbd7(0xe1));const _0x2825ef=this[_0x58dbd7(0xc9)];this[_0x58dbd7(0xb6)]=setInterval(()=>{const _0x8969dd=_0x58dbd7;let _0x1a84e3;for(const _0x28d7b5 in _0x2825ef){const _0x1680a5=_0x28d7b5,_0x271dd6=_0x2825ef[_0x1680a5];if(_0x8969dd(0xc6)==_0x271dd6||_0x8969dd(0xd3)==_0x271dd6||_0x8969dd(0xf3)==_0x271dd6||_0x8969dd(0xc2)==_0x271dd6||_0x8969dd(0xec)==_0x271dd6||_0x8969dd(0xa6)==_0x271dd6||_0x8969dd(0xbc)==_0x271dd6||_0x8969dd(0xdd)==_0x271dd6){delete _0x2825ef[_0x1680a5],_0x1a84e3=_0x271dd6,clearInterval(this[_0x8969dd(0xb6)]),this[_0x8969dd(0xb6)]=void 0x0;break;}}_0x8969dd(0xd3)==_0x1a84e3&&_0x2825ef[_0x8969dd(0xd7)](_0x8969dd(0xd0)),_0x8969dd(0xf3)==_0x1a84e3&&_0x2825ef[_0x8969dd(0xd7)](_0x8969dd(0xb3)),_0x8969dd(0xc2)==_0x1a84e3&&_0x2825ef[_0x8969dd(0xd7)](_0x8969dd(0xb4)),_0x8969dd(0xec)==_0x1a84e3&&_0x2825ef[_0x8969dd(0xd7)](_0x8969dd(0xdf),_0x8969dd(0xc5)),_0x8969dd(0xa6)==_0x1a84e3&&_0x2825ef[_0x8969dd(0xd7)](_0x8969dd(0xce)),_0x8969dd(0xbc)==_0x1a84e3&&_0x2825ef[_0x8969dd(0xd7)](_0x8969dd(0xb5)),_0x8969dd(0xdd)==_0x1a84e3&&_0x2825ef[_0x8969dd(0xd7)](_0x8969dd(0xbf));},0x3e8);}[_0x5dce42(0xa5)](){const _0x1d40da=_0x5dce42,{editor:_0x479e96}=this,_0x252846=_0x479e96[_0x1d40da(0xbd)][_0x1d40da(0xd2)](_0x1d40da(0xd8));if(!_0x252846)return;const _0x4d53a5=this[_0x1d40da(0xab)](_0x479e96[_0x1d40da(0xc3)][_0x1d40da(0xd2)](_0x1d40da(0xa4)))[_0x1d40da(0xc7)]((_0x51d48e,_0x5a81b4)=>{const _0x30ffa3=_0x1d40da,_0x138a4d=this[_0x30ffa3(0xda)](_0x5a81b4[_0x30ffa3(0xb8)]);return _0x51d48e[_0x138a4d]||(_0x51d48e[_0x138a4d]=[]),_0x51d48e[_0x138a4d][_0x30ffa3(0xd5)](_0x5a81b4),_0x51d48e;},{});_0x479e96[_0x1d40da(0xc0)][_0x1d40da(0xc1)](_0x1d40da(0xe0))&&_0x479e96[_0x1d40da(0xbd)][_0x1d40da(0xd2)](_0x1d40da(0xd8))&&Object[_0x1d40da(0xef)](_0x4d53a5)[_0x1d40da(0xe2)](([_0x57ff46,_0x2a9167])=>{const _0x417ac2=_0x1d40da;_0x479e96[_0x417ac2(0xc0)][_0x417ac2(0xd2)](_0x417ac2(0xe0))[_0x417ac2(0xcf)]({'name':_0x57ff46,'observable':()=>_0x252846,'buttonViewCreator':()=>this[_0x417ac2(0xb7)](_0x2a9167),'formViewCreator':()=>this[_0x417ac2(0xc8)](_0x2a9167),'menuBarButtonViewCreator':()=>this[_0x417ac2(0xcd)](_0x2a9167),'override':_0x417ac2(0xaa)!==_0x57ff46});});}[_0x5dce42(0xde)](){const _0x1070c9=_0x5dce42;super[_0x1070c9(0xde)](),this[_0x1070c9(0xb6)]&&clearInterval(this[_0x1070c9(0xb6)]);}[_0x5dce42(0xab)](_0x362083){const _0x106ad2=_0x5dce42,{locale:_0x46fc8e}=this[_0x106ad2(0xc9)];return _0x362083[_0x106ad2(0xd9)](_0x116b0a=>{const _0x14aa20=_0x106ad2,_0x1610c0=_0x446752(_0x46fc8e,_0x116b0a,_0x14aa20(0xbe));switch(_0x116b0a){case _0x4d4725[_0x14aa20(0xb9)]:return{'icon':_0x5b44a7,'type':_0x4d4725[_0x14aa20(0xb9)],..._0x1610c0};case _0x4d4725[_0x14aa20(0xa9)]:return{'icon':_0xe74612,'type':_0x4d4725[_0x14aa20(0xa9)],..._0x1610c0};case _0x4d4725[_0x14aa20(0xa7)]:return{'icon':_0x480ab9,'type':_0x4d4725[_0x14aa20(0xa7)],..._0x1610c0};case _0x4d4725[_0x14aa20(0xaf)]:return{'icon':_0x2e7bc4,'type':_0x4d4725[_0x14aa20(0xaf)],..._0x1610c0};case _0x4d4725[_0x14aa20(0xd1)]:return{'icon':_0x2eb8fa,'type':_0x4d4725[_0x14aa20(0xd1)],..._0x1610c0};case _0x4d4725[_0x14aa20(0xeb)]:return{'icon':_0x10945b,'type':_0x4d4725[_0x14aa20(0xeb)],..._0x1610c0};case _0x4d4725[_0x14aa20(0xa8)]:return{'icon':_0x552a4f,'type':_0x4d4725[_0x14aa20(0xa8)],..._0x1610c0};}});}[_0x5dce42(0xda)](_0x7f1cc9){const _0x100682=_0x5dce42;switch(_0x7f1cc9){case _0x4d4725[_0x100682(0xb9)]:return _0x100682(0xae);case _0x4d4725[_0x100682(0xa9)]:return _0x100682(0xbb);default:return _0x100682(0xaa);}}[_0x5dce42(0xf0)](_0x7d5eea,_0x710fee){const _0x153ffe=_0x5dce42,_0x1466c8=this[_0x153ffe(0xc9)],_0x654de2=new _0x7d5eea(_0x1466c8[_0x153ffe(0xd4)]),_0x48e091=_0x1466c8[_0x153ffe(0xbd)][_0x153ffe(0xd2)](_0x153ffe(0xd8));return _0x654de2[_0x153ffe(0xf1)](_0x153ffe(0xe8))['to'](_0x48e091),_0x654de2['on'](_0x153ffe(0xe6),()=>{const _0x37f8fd=_0x153ffe;_0x48e091[_0x37f8fd(0xe6)](_0x710fee);}),_0x654de2;}[_0x5dce42(0xb7)](_0x155c4e){const _0x2103ec=_0x5dce42,{locale:_0x2110c4}=this[_0x2103ec(0xc9)],_0x3b49a1=this[_0x2103ec(0xc9)][_0x2103ec(0xc0)][_0x2103ec(0xd2)](_0x2103ec(0xe0)),_0x4fea35=_0x155c4e[0x0],_0xf8a25=this[_0x2103ec(0xf0)](_0x1f36b8,_0x4fea35[_0x2103ec(0xb8)]);return _0xf8a25[_0x2103ec(0xe9)]=_0x4fea35[_0x2103ec(0xe9)],_0xf8a25[_0x2103ec(0xf1)](_0x2103ec(0xed))['to'](_0x3b49a1,_0x2103ec(0xe4),_0x1a0b09=>_0x446752(_0x2110c4,_0x4fea35[_0x2103ec(0xb8)],_0x1a0b09?_0x2103ec(0xea):_0x2103ec(0xbe))[_0x2103ec(0xb2)]),_0xf8a25[_0x2103ec(0xb0)]=!0x0,_0xf8a25;}[_0x5dce42(0xc8)](_0x164701){const _0x2beed8=_0x5dce42,{locale:_0x5a6a62}=this[_0x2beed8(0xc9)],_0x3f348a=this[_0x2beed8(0xc9)][_0x2beed8(0xc0)][_0x2beed8(0xd2)](_0x2beed8(0xe0));return _0x164701[_0x2beed8(0xd9)](_0x3184c8=>{const _0x38a1ca=_0x2beed8,_0x1be80b=this[_0x38a1ca(0xf0)](_0x1f36b8,_0x3184c8[_0x38a1ca(0xb8)]);return _0x1be80b[_0x38a1ca(0xb1)]=!0x0,_0x1be80b[_0x38a1ca(0xe9)]=_0x3184c8[_0x38a1ca(0xe9)],_0x1be80b[_0x38a1ca(0xf1)](_0x38a1ca(0xed))['to'](_0x3f348a,_0x38a1ca(0xe4),_0x4dacd8=>_0x446752(_0x5a6a62,_0x3184c8[_0x38a1ca(0xb8)],_0x4dacd8?_0x38a1ca(0xea):_0x38a1ca(0xbe))[_0x38a1ca(0xb2)]),_0x1be80b;});}[_0x5dce42(0xcd)](_0x3a8e73){const _0x46f487=_0x5dce42;return _0x3a8e73[_0x46f487(0xd9)](_0x18436b=>{const _0x58f60e=_0x46f487,_0x15cd1a=this[_0x58f60e(0xf0)](_0x366783,_0x18436b[_0x58f60e(0xb8)]);return _0x15cd1a[_0x58f60e(0xe9)]=_0x18436b[_0x58f60e(0xe9)],_0x15cd1a[_0x58f60e(0xed)]=_0x18436b[_0x58f60e(0xf5)],_0x15cd1a;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5f0a4a}from'ckeditor5/src/core.js';import{FileRepository as _0xdbdac7}from'ckeditor5/src/upload.js';import _0x4b9da6 from'./uploadcareediting.js';import _0x574cf2 from'./utils/uploadutils.js';import{getImageUrls as _0x46b932}from'./utils/editingutils.js';export default class p extends _0x5f0a4a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xdbdac7,_0x4b9da6];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x405b9f=this['editor'];if(!!!_0x405b9f['config']['get']('uploadcare'))return;_0x405b9f['plugins']['get'](_0xdbdac7)['createUploadAdapter']=_0x41bdc5=>new x(_0x41bdc5,_0x405b9f),_0x405b9f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x47271e,{imageElement:_0x209f61,data:_0x3123cb})=>{_0x405b9f['model']['change'](_0x51a51a=>{_0x51a51a['setAttribute']('uploadcareImageId',_0x3123cb['uploadcareImageId'],_0x209f61);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4200a4,_0x36e987){this['loader']=_0x4200a4,this['editor']=_0x36e987,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xae229e=this['editor']['config']['get']('uploadcare.pubkey'),_0x34b880=await this['loader']['file'];return _0x574cf2['upload']({'file':_0x34b880,'publicKey':_0xae229e,'signal':this['controller']['signal'],'onProgress':_0x442d1a=>{_0x442d1a&&_0x442d1a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x442d1a['value']);}})['then'](async _0x3d49b9=>{const {imageFallbackUrl:_0x3f4310,imageSources:_0x4e305f}=_0x46b932(_0x3d49b9['cdnUrl'],_0x3d49b9['imageInfo']['width']);return{'uploadcareImageId':_0x3d49b9['uuid'],'default':_0x3f4310,'sources':_0x4e305f};})['catch'](()=>{const _0x1883ef=t('Cannot\x20upload\x20file:')+('\x20'+_0x34b880['name']+'.');return Promise['reject'](_0x1883ef);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x165db8}from'../uploadcareconfig.js';export function getTranslation(_0x51249a,_0x37fde1,_0x16f94e){const t=_0x51249a['t'],_0x2dcd1e=_0x51249a['t'];switch(_0x37fde1){case _0x165db8['Local']:return{'text':_0x2dcd1e('Insert'===_0x16f94e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2dcd1e('From\x20computer')};case _0x165db8['URL']:return{'text':'Insert'===_0x16f94e?_0x2dcd1e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2dcd1e('Via\x20URL')};case _0x165db8['Dropbox']:return{'text':t('Insert'===_0x16f94e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x165db8['Facebook']:return{'text':t('Insert'===_0x16f94e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x165db8['GDrive']:return{'text':t('Insert'===_0x16f94e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x165db8['GPhotos']:return{'text':t('Insert'===_0x16f94e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x165db8['OneDrive']:return{'text':t('Insert'===_0x16f94e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x37fde1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x301b(){var _0x223145=['400644UrmIsH','557376NrjgAQ','focusTracker','fire','12313332ljlZJI','116970EkydCo','5387781PbrtNN','forwardCycle','div','130992EZKEmm','getFocusableElement','focusCycler','1340680ZPcLDe','bindTemplate','145mCtMSA','3ptZKRQ','true','createCollection'];_0x301b=function(){return _0x223145;};return _0x301b();}function _0x1a2c(_0x4fe33c,_0x5a5851){var _0x301bf5=_0x301b();return _0x1a2c=function(_0x1a2c00,_0x19f179){_0x1a2c00=_0x1a2c00-0xed;var _0x44603c=_0x301bf5[_0x1a2c00];return _0x44603c;},_0x1a2c(_0x4fe33c,_0x5a5851);}var _0xdff0f6=_0x1a2c;(function(_0x1693a2,_0x450301){var _0x3d667a=_0x1a2c,_0x2ff839=_0x1693a2();while(!![]){try{var _0x3dfe5b=-parseInt(_0x3d667a(0xef))/0x1+parseInt(_0x3d667a(0xf8))/0x2*(-parseInt(_0x3d667a(0xfe))/0x3)+-parseInt(_0x3d667a(0xf0))/0x4+-parseInt(_0x3d667a(0xfd))/0x5*(-parseInt(_0x3d667a(0xf4))/0x6)+-parseInt(_0x3d667a(0xf5))/0x7+-parseInt(_0x3d667a(0xfb))/0x8+parseInt(_0x3d667a(0xf3))/0x9;if(_0x3dfe5b===_0x450301)break;else _0x2ff839['push'](_0x2ff839['shift']());}catch(_0x46ca65){_0x2ff839['push'](_0x2ff839['shift']());}}}(_0x301b,0x5f65f));import{FocusTracker as _0x160329}from'ckeditor5/src/utils.js';import{View as _0x32d65f,FocusCycler as _0x1d281d}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x32d65f{[_0xdff0f6(0xf1)];[_0xdff0f6(0xfa)];constructor(_0x1633d6){var _0x482e09=_0xdff0f6;super(_0x1633d6),this[_0x482e09(0xf1)]=new _0x160329(),this[_0x482e09(0xfa)]=new _0x1d281d({'focusables':this[_0x482e09(0xee)](),'focusTracker':this[_0x482e09(0xf1)]});}[_0xdff0f6(0xf9)](){var _0x557889=_0xdff0f6;return{'tag':_0x557889(0xf7),'attributes':{'aria-hidden':_0x557889(0xed),'tabindex':'0'},'on':{'focus':this[_0x557889(0xfc)]['to'](()=>{var _0x1305ff=_0x557889;this[_0x1305ff(0xfa)][_0x1305ff(0xf2)](_0x1305ff(0xf6));})}};}}
|