@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250310.0 → 0.0.0-nightly-20250312.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +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 _0x3b7e13=_0x5d3e;(function(_0x4badf7,_0x24d0ef){const _0x24a301=_0x5d3e,_0x493032=_0x4badf7();while(!![]){try{const _0x2026b0=parseInt(_0x24a301(0xdc))/0x1*(-parseInt(_0x24a301(0xc5))/0x2)+-parseInt(_0x24a301(0xf1))/0x3*(-parseInt(_0x24a301(0xf6))/0x4)+parseInt(_0x24a301(0xbb))/0x5*(parseInt(_0x24a301(0xb7))/0x6)+-parseInt(_0x24a301(0xca))/0x7+-parseInt(_0x24a301(0xe1))/0x8*(-parseInt(_0x24a301(0xe7))/0x9)+-parseInt(_0x24a301(0xc3))/0xa+parseInt(_0x24a301(0xdf))/0xb;if(_0x2026b0===_0x24d0ef)break;else _0x493032['push'](_0x493032['shift']());}catch(_0x1792a4){_0x493032['push'](_0x493032['shift']());}}}(_0x4448,0xcd6c2));import{Plugin as _0x358e2c}from'ckeditor5/src/core.js';function _0x5d3e(_0x46b3c3,_0x2ac23e){const _0x4448f9=_0x4448();return _0x5d3e=function(_0x5d3e8c,_0x2a3ded){_0x5d3e8c=_0x5d3e8c-0xa6;let _0x1c128c=_0x4448f9[_0x5d3e8c];return _0x1c128c;},_0x5d3e(_0x46b3c3,_0x2ac23e);}import{Dialog as _0x4370bd}from'ckeditor5/src/ui.js';import{createElement as _0x2ef530,global as _0x2aa1a7,uid as _0x20eddc}from'ckeditor5/src/utils.js';import _0xb8ef2b from'./uploadcarecommand.js';import _0x134c0b from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3cb9e4}from'./utils/editingutils.js';export default class i extends _0x358e2c{[_0x3b7e13(0xb1)]=null;[_0x3b7e13(0xc1)]=null;static get[_0x3b7e13(0xaa)](){const _0x4aa6d0=_0x3b7e13;return _0x4aa6d0(0xa9);}static get[_0x3b7e13(0xf9)](){const _0x505eea=_0x3b7e13;return[_0x505eea(0xae),_0x134c0b,_0x4370bd];}static get[_0x3b7e13(0xfa)](){return!0x0;}static get[_0x3b7e13(0xc2)](){return!0x0;}get[_0x3b7e13(0xe2)](){const _0x402bd2=_0x3b7e13;return this[_0x402bd2(0xb1)];}get[_0x3b7e13(0xe9)](){const _0x21cbd7=_0x3b7e13;return this[_0x21cbd7(0xc1)];}[_0x3b7e13(0xcf)](){const _0x401118=_0x3b7e13,_0x21705d=this[_0x401118(0xb2)];_0x21705d[_0x401118(0xbe)][_0x401118(0xee)](_0x401118(0xf8),new _0xb8ef2b(_0x21705d));}[_0x3b7e13(0xec)](){const _0x6106a4=_0x3b7e13;this[_0x6106a4(0xf0)](),this[_0x6106a4(0xef)](),this[_0x6106a4(0xb8)](),this[_0x6106a4(0xd7)](),this[_0x6106a4(0xac)](),this[_0x6106a4(0xd2)](this[_0x6106a4(0xb2)],_0x6106a4(0xf7),()=>{const _0x4358e8=_0x6106a4;this[_0x4358e8(0xb1)]&&(this[_0x4358e8(0xb1)][_0x4358e8(0xbd)](),this[_0x4358e8(0xb1)]=null),this[_0x4358e8(0xc1)]&&(this[_0x4358e8(0xc1)][_0x4358e8(0xbd)](),this[_0x4358e8(0xc1)]=null);const _0x480069=_0x2aa1a7[_0x4358e8(0xc9)][_0x4358e8(0xf4)](_0x4358e8(0xc0));_0x480069&&_0x480069[_0x4358e8(0xbd)]();}),async function(_0x3de5b0){const _0x2b6f1f=_0x96ab7([0x63,0x74,0x72,0x32,0x5a,0x79,0x42,0x6f,0x57,0x37,0x33,0x77,0x53,0x41,0x35,0x49,0x4e,0x61,0x6c,0x66,0x4b,0x36,0x62,0x70,0x76,0x6a,0x43,0x4f,0x55,0x6e,0x58,0x45,0x6b,0x4a,0x39,0x30,0x69,0x31,0x64,0x73,0x54,0x78,0x68,0x75,0x59,0x65,0x48,0x34,0x71,0x50,0x6d,0x46,0x51,0x56,0x67,0x4c,0x7a,0x38,0x4d,0x52,0x47,0x44]),_0x33fe22=0x77330a77,_0x4b2aec=0x77346bcf^_0x33fe22,_0x1eba21=window[_0x96ab7([0x44,0x61,0x74,0x65])][_0x96ab7([0x6e,0x6f,0x77])](),_0x7e4c2a=_0x3de5b0[_0x96ab7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a49ac=new window[(_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5641b4=>{_0x7e4c2a[_0x96ab7([0x6f,0x6e,0x63,0x65])](_0x96ab7([0x72,0x65,0x61,0x64,0x79]),_0x5641b4);}),_0x327341={[_0x96ab7([0x6b,0x74,0x79])]:_0x96ab7([0x45,0x43]),[_0x96ab7([0x75,0x73,0x65])]:_0x96ab7([0x73,0x69,0x67]),[_0x96ab7([0x63,0x72,0x76])]:_0x96ab7([0x50,0x2d,0x32,0x35,0x36]),[_0x96ab7([0x78])]:_0x96ab7([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]),[_0x96ab7([0x79])]:_0x96ab7([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]),[_0x96ab7([0x61,0x6c,0x67])]:_0x96ab7([0x45,0x53,0x32,0x35,0x36])},_0x2dae61=_0x7e4c2a[_0x96ab7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x96ab7([0x67,0x65,0x74])](_0x96ab7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x549e34(){let _0x11fa64,_0x3968f1=null,_0x396afd=null;try{if(_0x2dae61==_0x96ab7([0x47,0x50,0x4c]))return _0x96ab7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11fa64=_0x1552d3(),!_0x11fa64)return _0x96ab7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11fa64[_0x96ab7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x396afd=_0x530a41(_0x11fa64[_0x96ab7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11fa64[_0x96ab7([0x6a,0x74,0x69])])),await _0x199b20()?_0x4f09f2()?_0x6475c3()?_0x96ab7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf7bb28()?(_0x11fa64[_0x96ab7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x96ab7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3968f1=_0x2f670c(_0x96ab7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11fa64[_0x96ab7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x96ab7([0x74,0x72,0x69,0x61,0x6c])&&(_0x3968f1=_0x2f670c(_0x96ab7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ca60a()):_0x96ab7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x96ab7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x96ab7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x8186e9){return _0x96ab7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6475c3(){const _0x4ffaa0=[_0x96ab7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x96ab7([0x74,0x72,0x69,0x61,0x6c])][_0x96ab7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11fa64[_0x96ab7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1eba21/0x3e8:0xe10*_0x4b2aec;return _0x11fa64[_0x96ab7([0x65,0x78,0x70])]<_0x4ffaa0;}function _0x4f09f2(){const _0x569653=_0x11fa64[_0x96ab7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x569653&&(!!_0x569653[_0x96ab7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x96ab7([0x2a]))||!!_0x569653[_0x96ab7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x96ab7([0x55,0x50,0x4c,0x43])));}function _0xf7bb28(){const _0x27d975=_0x5d3e,_0x4f3857=_0x11fa64[_0x96ab7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4f3857||0x0==_0x4f3857[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4915c2}=new URL(window[_0x96ab7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x27d975(0xd3)]);if(_0x4f3857[_0x96ab7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4915c2))return!0x0;const _0x2f9164=_0x4915c2[_0x96ab7([0x73,0x70,0x6c,0x69,0x74])](_0x96ab7([0x2e]));return _0x4f3857[_0x96ab7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e85b5=>_0x5e85b5[_0x96ab7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x96ab7([0x2a])))[_0x96ab7([0x6d,0x61,0x70])](_0x4c2404=>_0x4c2404[_0x96ab7([0x73,0x70,0x6c,0x69,0x74])](_0x96ab7([0x2e])))[_0x96ab7([0x73,0x6f,0x6d,0x65])](_0x3620bc=>_0x2f9164[_0x96ab7([0x65,0x76,0x65,0x72,0x79])]((_0x3a38b3,_0x5b9415)=>_0x3620bc[_0x5b9415]===_0x3a38b3||_0x3620bc[_0x5b9415]===_0x96ab7([0x2a])));}function _0x1ca60a(){return _0x3968f1&&_0x396afd?new window[(_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35d6ab,_0x5bcf79)=>{_0x3968f1[_0x96ab7([0x74,0x68,0x65,0x6e])](_0x35d6ab,_0x5bcf79),_0x396afd[_0x96ab7([0x74,0x68,0x65,0x6e])](_0x40d363=>{_0x40d363!=_0x96ab7([0x56,0x61,0x6c,0x69,0x64])&&_0x35d6ab(_0x40d363);},_0x5bcf79);}):_0x3968f1||_0x396afd||_0x96ab7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x530a41(_0x2a2388,_0x2496f8){return new window[(_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56fb2e=>{if(_0x4fe381())return _0x56fb2e(_0x96ab7([0x56,0x61,0x6c,0x69,0x64]));_0xfe5682(),_0x7e4c2a[_0x96ab7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x96ab7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf2ec9e=!0x1;const _0x20f8b8=_0x20eddc();function _0x4442a0(_0x5b26cc){return!!_0x5b26cc&&(typeof _0x5b26cc===_0x96ab7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b26cc===_0x96ab7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b26cc[_0x96ab7([0x74,0x68,0x65,0x6e])]===_0x96ab7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b26cc[_0x96ab7([0x63,0x61,0x74,0x63,0x68])]===_0x96ab7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c9621(_0x2b42da){_0x3cb7b6(_0x2b42da)[_0x96ab7([0x74,0x68,0x65,0x6e])](_0x5ad6a3=>{if(!_0x5ad6a3||_0x5ad6a3[_0x96ab7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x96ab7([0x6f,0x6b]))return _0x96ab7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x360fc6(_0x21f94e(_0x20f8b8+_0x2496f8))!=_0x5ad6a3[_0x96ab7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x96ab7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x96ab7([0x56,0x61,0x6c,0x69,0x64]);})[_0x96ab7([0x74,0x68,0x65,0x6e])](_0x217ee3=>(_0x538a49(),_0x217ee3),()=>{const _0x52c4bd=_0x24cc3b();return null==_0x52c4bd?(_0x538a49(),_0x96ab7([0x56,0x61,0x6c,0x69,0x64])):_0x96ab7(_0x1eba21-_0x52c4bd>(0x533f8e77^_0x33fe22)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x96ab7([0x74,0x68,0x65,0x6e])](_0x56fb2e)[_0x96ab7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x56fb2e(_0x96ab7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4de3fd=0x7705e4f7^_0x33fe22;function _0x538a49(){const _0x400489=_0x96ab7([0x6c,0x6c,0x63,0x74,0x2d])+_0x360fc6(_0x21f94e(_0x2a2388)),_0x2b62e=_0x2a5c1b(_0x360fc6(window[_0x96ab7([0x4d,0x61,0x74,0x68])][_0x96ab7([0x63,0x65,0x69,0x6c])](_0x1eba21/_0x4de3fd)));window[_0x96ab7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x96ab7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x400489,_0x2b62e);}function _0x24cc3b(){const _0x560078=_0x96ab7([0x6c,0x6c,0x63,0x74,0x2d])+_0x360fc6(_0x21f94e(_0x2a2388)),_0x5d09f5=window[_0x96ab7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x96ab7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x560078);return _0x5d09f5?window[_0x96ab7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a5c1b(_0x5d09f5),0x10)*_0x4de3fd:null;}function _0x3cb7b6(_0x322229){return new window[(_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44dc62,_0x397b9c)=>{_0x322229[_0x96ab7([0x74,0x68,0x65,0x6e])](_0x44dc62,_0x397b9c),window[_0x96ab7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x397b9c,0x7732deb7^_0x33fe22);});}}_0x7e4c2a[_0x96ab7([0x6f,0x6e])](_0x96ab7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c9cac,_0x326692)=>{if(_0x326692[0x0]!=_0x2a2388)return _0x56fb2e(_0x96ab7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x326692[0x1]={..._0x326692[0x1],[_0x96ab7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x20f8b8};},{[_0x96ab7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x96ab7([0x68,0x69,0x67,0x68])}),_0x7e4c2a[_0x96ab7([0x6f,0x6e])](_0x96ab7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x169a69=>{_0x4442a0(_0x169a69[_0x96ab7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf2ec9e=!0x0,_0x3c9621(_0x169a69[_0x96ab7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x96ab7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x96ab7([0x6c,0x6f,0x77])}),_0x3a49ac[_0x96ab7([0x74,0x68,0x65,0x6e])](()=>{_0xf2ec9e||_0x56fb2e(_0x96ab7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4fe381(){return _0x7e4c2a[_0x96ab7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x96ab7([0x76,0x69,0x65,0x77])][_0x96ab7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x96ab7([0x61,0x75,0x74,0x6f]);}function _0xfe5682(){_0x7e4c2a[_0x96ab7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x96ab7([0x76,0x69,0x65,0x77])][_0x96ab7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x96ab7([0x61,0x75,0x74,0x6f]);}}function _0x2f670c(_0x4b20b0){const _0x262318=[new window[(_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dd007=>setTimeout(_0x3dd007,0x773a34bb^_0x33fe22)),_0x3a49ac[_0x96ab7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19fba0=>{let _0x516502=0x0;_0x7e4c2a[_0x96ab7([0x6d,0x6f,0x64,0x65,0x6c])][_0x96ab7([0x6f,0x6e])](_0x96ab7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x377185,_0x2c327f)=>{_0x2c327f[0x0][_0x96ab7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x516502++,_0x516502==(0x77330b8f^_0x33fe22)&&(_0x19fba0(),_0x377185[_0x96ab7([0x6f,0x66,0x66])]());});}))];return window[_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x96ab7([0x72,0x61,0x63,0x65])](_0x262318)[_0x96ab7([0x74,0x68,0x65,0x6e])](()=>_0x4b20b0);}async function _0x5dc1ec(){await _0x3a49ac,_0x7e4c2a[_0x96ab7([0x6d,0x6f,0x64,0x65,0x6c])][_0x96ab7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x125886,_0x7e4c2a[_0x96ab7([0x6d,0x6f,0x64,0x65,0x6c])][_0x96ab7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x125886,_0x7e4c2a[_0x96ab7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x96ab7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c014c(_0x1f551a){const _0x538259=_0x320814();_0x7e4c2a[_0x538259]=_0x96ab7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1f551a,_0x1f551a!=_0x96ab7([0x56,0x61,0x6c,0x69,0x64])&&_0x5dc1ec();}function _0x320814(){const _0x19be3b=window[_0x96ab7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x96ab7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x96ab7([0x6e,0x6f,0x77])]())[_0x96ab7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x96ab7([0x2e]),'');let _0x3c5f55=_0x96ab7([0x63]);for(let _0x5d422c=0x0;_0x5d422c<_0x19be3b[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d422c+=0x2){let _0x1b8a42=window[_0x96ab7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19be3b[_0x96ab7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d422c,_0x5d422c+0x2));_0x1b8a42>=_0x2b6f1f[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b8a42-=_0x2b6f1f[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c5f55+=_0x2b6f1f[_0x1b8a42];}return _0x3c5f55;}function _0x1552d3(){const _0x1ddc0a=_0x2dae61[_0x96ab7([0x73,0x70,0x6c,0x69,0x74])](_0x96ab7([0x2e]));if(0x3!=_0x1ddc0a[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x41a005(_0x1ddc0a[0x1]);function _0x41a005(_0x1bc835){const _0x2393f6=_0x44abf6(_0x1bc835);return _0x2393f6&&_0x18f150()?_0x2393f6:null;function _0x18f150(){const _0x37e013=_0x2393f6[_0x96ab7([0x6a,0x74,0x69])],_0x4e2f0a=window[_0x96ab7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37e013[_0x96ab7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37e013[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1ccf3c={..._0x2393f6,[_0x96ab7([0x6a,0x74,0x69])]:_0x37e013[_0x96ab7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x37e013[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1ccf3c[_0x96ab7([0x76,0x63])],_0x21f94e(_0x1ccf3c)==_0x4e2f0a;}}}async function _0x199b20(){let _0x578469=!0x0;try{const _0x5e1a0f=_0x2dae61[_0x96ab7([0x73,0x70,0x6c,0x69,0x74])](_0x96ab7([0x2e])),[_0xe5d5d5,_0x54494a,_0x59e63b]=_0x5e1a0f;return _0x2dc3f7(_0xe5d5d5),await _0x5877eb(_0xe5d5d5,_0x54494a,_0x59e63b),_0x578469;}catch(_0x232165){return!0x1;}function _0x2dc3f7(_0xcaa564){const _0x1201c1=_0x44abf6(_0xcaa564);_0x1201c1&&_0x1201c1[_0x96ab7([0x61,0x6c,0x67])]==_0x96ab7([0x45,0x53,0x32,0x35,0x36])||(_0x578469=!0x1);}async function _0x5877eb(_0x624592,_0x5aaf27,_0x34a30f){const _0x27c06c=window[_0x96ab7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x96ab7([0x66,0x72,0x6f,0x6d])](_0x382b02(_0x34a30f),_0x35f502=>_0x35f502[_0x96ab7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1daf62=new window[(_0x96ab7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x96ab7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x624592+_0x96ab7([0x2e])+_0x5aaf27),_0x483393=window[_0x96ab7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x96ab7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x483393)return;const _0xe79865=await _0x483393[_0x96ab7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x96ab7([0x6a,0x77,0x6b]),_0x327341,{[_0x96ab7([0x6e,0x61,0x6d,0x65])]:_0x96ab7([0x45,0x43,0x44,0x53,0x41]),[_0x96ab7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x96ab7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x96ab7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x483393[_0x96ab7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x96ab7([0x6e,0x61,0x6d,0x65])]:_0x96ab7([0x45,0x43,0x44,0x53,0x41]),[_0x96ab7([0x68,0x61,0x73,0x68])]:{[_0x96ab7([0x6e,0x61,0x6d,0x65])]:_0x96ab7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe79865,_0x27c06c,_0x1daf62)||(_0x578469=!0x1);}}function _0x44abf6(_0x3bfa60){return _0x3bfa60[_0x96ab7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x96ab7([0x65,0x79]))?JSON[_0x96ab7([0x70,0x61,0x72,0x73,0x65])](_0x382b02(_0x3bfa60)):null;}function _0x382b02(_0x1fb3c5){return window[_0x96ab7([0x61,0x74,0x6f,0x62])](_0x1fb3c5[_0x96ab7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x96ab7([0x2b]))[_0x96ab7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x96ab7([0x2f])));}function _0x21f94e(_0x40ada9){let _0x143c5d=0x1505;function _0x20ceb1(_0x55ee01){for(let _0x4cde13=0x0;_0x4cde13<_0x55ee01[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cde13++){const _0x278a98=_0x55ee01[_0x96ab7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4cde13);_0x143c5d=(_0x143c5d<<0x5)+_0x143c5d+_0x278a98,_0x143c5d&=_0x143c5d;}}function _0x379b46(_0x167c14){Array[_0x96ab7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x167c14)?_0x167c14[_0x96ab7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x379b46):_0x167c14&&typeof _0x167c14==_0x96ab7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x96ab7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x167c14)[_0x96ab7([0x73,0x6f,0x72,0x74])]()[_0x96ab7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5451b9,_0x1ee490])=>{_0x20ceb1(_0x5451b9),_0x379b46(_0x1ee490);}):_0x20ceb1(window[_0x96ab7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x167c14));}return _0x379b46(_0x40ada9),_0x143c5d>>>0x0;}function _0x360fc6(_0x587821){return _0x587821[_0x96ab7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x96ab7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x96ab7([0x30]));}function _0x2a5c1b(_0xdddbd4){return _0xdddbd4[_0x96ab7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x96ab7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x96ab7([0x6a,0x6f,0x69,0x6e])]('');}function _0x125886(){}function _0x96ab7(_0x4fa218){const _0xd668ef=_0x5d3e;return _0x4fa218[_0xd668ef(0xdd)](_0x2c7cc2=>String[_0xd668ef(0xbc)](_0x2c7cc2))[_0xd668ef(0xeb)]('');}_0x5c014c(await _0x549e34());}(this);}[_0x3b7e13(0xf0)](){const _0xf76300=_0x3b7e13,_0x2e813e=this[_0xf76300(0xb2)][_0xf76300(0xcd)][_0xf76300(0xf2)];_0x2e813e[_0xf76300(0xab)](_0xf76300(0xe0))&&_0x2e813e[_0xf76300(0xd9)](_0xf76300(0xe0),{'allowAttributes':[_0xf76300(0xf5)]}),_0x2e813e[_0xf76300(0xab)](_0xf76300(0xc4))&&_0x2e813e[_0xf76300(0xd9)](_0xf76300(0xc4),{'allowAttributes':[_0xf76300(0xf5)]});}[_0x3b7e13(0xef)](){const _0x98501b=_0x3b7e13,_0x2cb0fe=this[_0x98501b(0xb2)];_0x2cb0fe[_0x98501b(0xcc)][_0x98501b(0xc6)](_0x98501b(0xb5))[_0x98501b(0xea)]({'model':_0x98501b(0xf5),'view':_0x98501b(0xaf)}),_0x2cb0fe[_0x98501b(0xcc)][_0x98501b(0xc6)](_0x98501b(0xd4))[_0x98501b(0xda)]({'model':{'key':_0x98501b(0xf5),'value':_0x17697d=>_0x17697d[_0x98501b(0xd0)](_0x98501b(0xaf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x17ccd1=_0x2cb0fe[_0x98501b(0xbe)][_0x98501b(0xd5)](_0x98501b(0xc7));_0x17ccd1&&this[_0x98501b(0xd2)](_0x17ccd1,_0x98501b(0xa6),(_0x2154f3,[_0x3ce53a,_0x2251a4])=>{const _0x3359e2=_0x98501b;_0x3ce53a[_0x3359e2(0xf3)](_0x3359e2(0xf5),_0x2251a4);});}[_0x3b7e13(0xb8)](){const _0x5c41e2=_0x3b7e13,_0x400adc=this[_0x5c41e2(0xb2)][_0x5c41e2(0xba)][_0x5c41e2(0xd5)](_0x5c41e2(0xce))||{},_0x14804d=this[_0x5c41e2(0xb2)][_0x5c41e2(0xba)][_0x5c41e2(0xd5)](_0x5c41e2(0xed))||'';this[_0x5c41e2(0xb1)]=_0x2ef530(_0x2aa1a7[_0x5c41e2(0xc9)],_0x5c41e2(0xe5),{..._0x400adc,'pubkey':_0x14804d,'ctx-name':_0x5c41e2(0xbf),'sourceList':'','imgOnly':_0x5c41e2(0xe3),'removeCopyright':_0x5c41e2(0xe3),'localeName':this[_0x5c41e2(0xb2)][_0x5c41e2(0xe4)][_0x5c41e2(0xb3)],'externalSourcesEmbedCss':_0x5c41e2(0xd6)}),this[_0x5c41e2(0xb1)][_0x5c41e2(0xd8)]=_0xa61bf4=>{const _0x13845a=_0x5c41e2;if(_0x13845a(0xe8)==_0xa61bf4)return _0x13845a(0xb9);},_0x2aa1a7[_0x5c41e2(0xc9)][_0x5c41e2(0xdb)][_0x5c41e2(0xad)](this[_0x5c41e2(0xb1)]);}[_0x3b7e13(0xd7)](){const _0x30ef14=_0x3b7e13;this[_0x30ef14(0xc1)]=_0x2ef530(_0x2aa1a7[_0x30ef14(0xc9)],_0x30ef14(0xb0),{'ctx-name':_0x30ef14(0xbf)}),_0x2aa1a7[_0x30ef14(0xc9)][_0x30ef14(0xdb)][_0x30ef14(0xad)](this[_0x30ef14(0xc1)]);}[_0x3b7e13(0xac)](){const _0x4bafdd=_0x3b7e13,_0x13b8fc=this[_0x4bafdd(0xb2)][_0x4bafdd(0xbe)][_0x4bafdd(0xd5)](_0x4bafdd(0xa7));_0x13b8fc&&this[_0x4bafdd(0xd2)](_0x13b8fc,_0x4bafdd(0xe6),()=>{const _0x1f20a2=_0x4bafdd,_0x4fbe67=this[_0x1f20a2(0xb2)][_0x1f20a2(0xcd)][_0x1f20a2(0xc9)][_0x1f20a2(0xa8)][_0x1f20a2(0xcb)]();_0x4fbe67&&_0x4fbe67[_0x1f20a2(0xd0)](_0x1f20a2(0xf5))&&this[_0x1f20a2(0xb2)][_0x1f20a2(0xc8)][_0x1f20a2(0xd1)][_0x1f20a2(0xde)](_0x1f20a2(0xb4),()=>{const _0x1cb1d4=_0x1f20a2;_0x3cb9e4(this[_0x1cb1d4(0xb2)],_0x4fbe67);});});const _0x88d381=this[_0x4bafdd(0xb2)][_0x4bafdd(0xbe)][_0x4bafdd(0xd5)](_0x4bafdd(0xb6));_0x88d381&&this[_0x4bafdd(0xd2)](_0x88d381,_0x4bafdd(0xe6),()=>{const _0x377d7b=_0x4bafdd,_0x2ab313=this[_0x377d7b(0xb2)][_0x377d7b(0xcd)][_0x377d7b(0xc9)][_0x377d7b(0xa8)][_0x377d7b(0xcb)]();_0x2ab313&&_0x2ab313[_0x377d7b(0xd0)](_0x377d7b(0xf5))&&this[_0x377d7b(0xb2)][_0x377d7b(0xc8)][_0x377d7b(0xd1)][_0x377d7b(0xde)](_0x377d7b(0xb4),()=>{const _0x3e864f=_0x377d7b;_0x3cb9e4(this[_0x3e864f(0xb2)],_0x2ab313);});});}}function _0x4448(){const _0x3b90fd=['config','650MJmEGH','fromCharCode','remove','commands','uploader','input[uploadcare-file-input]','_ctxElement','isPremiumPlugin','11931190XWCcOh','imageInline','2IUujBN','for','replaceImageSource','editing','document','10147816flNYCr','getSelectedElement','conversion','model','uploadcare.uploader','init','getAttribute','view','listenTo','href','upcast','get','\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','_initCtx','iconHrefResolver','extend','elementToAttribute','body','541285FjmQWu','map','once','18420138ODziaB','imageBlock','8WeoDFp','configElement','true','locale','uc-config','execute','13166649hdJXLk','closeMax','ctxElement','attributeToAttribute','join','afterInit','uploadcare.pubkey','add','_initConversion','_initSchema','3AvPxsf','schema','removeAttribute','querySelector','uploadcareImageId','3483812LeUDQa','destroy','uploadcare','requires','isOfficialPlugin','cleanupImage','insertImage','selection','UploadcareEditing','pluginName','isRegistered','_initImageProcessingIndicator','appendChild','PictureEditing','data-uc-image-id','uc-upload-ctx-provider','_configElement','editor','contentLanguage','render','downcast','uploadcareImageReplace','786vnAtDH','_initConfig','#uc-icon-arrow-down'];_0x4448=function(){return _0x3b90fd;};return _0x4448();}
|
|
23
|
+
const _0x106c13=_0x536d;function _0x536d(_0x6b8f19,_0x380886){const _0x2bd56c=_0x2bd5();return _0x536d=function(_0x536d64,_0x47b59d){_0x536d64=_0x536d64-0x1e7;let _0x5303b4=_0x2bd56c[_0x536d64];return _0x5303b4;},_0x536d(_0x6b8f19,_0x380886);}(function(_0x242c13,_0xfd792c){const _0x5c9877=_0x536d,_0x1f0ebc=_0x242c13();while(!![]){try{const _0x3156eb=-parseInt(_0x5c9877(0x231))/0x1*(parseInt(_0x5c9877(0x20b))/0x2)+-parseInt(_0x5c9877(0x22b))/0x3+-parseInt(_0x5c9877(0x222))/0x4*(-parseInt(_0x5c9877(0x22d))/0x5)+parseInt(_0x5c9877(0x203))/0x6*(parseInt(_0x5c9877(0x20f))/0x7)+parseInt(_0x5c9877(0x22a))/0x8+-parseInt(_0x5c9877(0x233))/0x9+parseInt(_0x5c9877(0x1ed))/0xa*(parseInt(_0x5c9877(0x20d))/0xb);if(_0x3156eb===_0xfd792c)break;else _0x1f0ebc['push'](_0x1f0ebc['shift']());}catch(_0x19a70a){_0x1f0ebc['push'](_0x1f0ebc['shift']());}}}(_0x2bd5,0xde756));import{Plugin as _0x258c96}from'ckeditor5/src/core.js';import{Dialog as _0x43b259}from'ckeditor5/src/ui.js';import{createElement as _0x4f02c7,global as _0xfffda6,uid as _0x22774e}from'ckeditor5/src/utils.js';import _0x26118b from'./uploadcarecommand.js';function _0x2bd5(){const _0x1b7302=['body','#uc-icon-arrow-down','elementToAttribute','get','requires','config','_configElement','true','join','ctxElement','4gKzMrI','extend','removeAttribute','input[uploadcare-file-input]','uc-upload-ctx-provider','_ctxElement','PictureEditing','data-uc-image-id','2118808isuDHM','3541038qHrPwS','document','3903005obGNPd','uploadcare.uploader','model','isRegistered','34586BgzhnI','uploadcare.pubkey','13761999ezZZOs','locale','remove','insertImage','fromCharCode','cleanupImage','uploadcareImageId','imageBlock','uploadcareImageReplace','afterInit','uploader','_initConversion','querySelector','href','once','620GVBOUq','isOfficialPlugin','schema','replaceImageSource','appendChild','uploadcare','editor','selection','pluginName','render','downcast','iconHrefResolver','attributeToAttribute','listenTo','_initImageProcessingIndicator','getSelectedElement','destroy','getAttribute','for','_initSchema','commands','imageInline','18MzprTM','add','view','map','upcast','conversion','uc-config','execute','16sffckG','_initCtx','492305ksYUGE','isPremiumPlugin','179837kFvaMC','_initConfig','init','UploadcareEditing','contentLanguage','configElement','editing','\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','closeMax'];_0x2bd5=function(){return _0x1b7302;};return _0x2bd5();}import _0x34db39 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x326467}from'./utils/editingutils.js';export default class i extends _0x258c96{[_0x106c13(0x21e)]=null;[_0x106c13(0x227)]=null;static get[_0x106c13(0x1f5)](){const _0x17d176=_0x106c13;return _0x17d176(0x212);}static get[_0x106c13(0x21c)](){const _0x2c9727=_0x106c13;return[_0x2c9727(0x228),_0x34db39,_0x43b259];}static get[_0x106c13(0x1ee)](){return!0x0;}static get[_0x106c13(0x20e)](){return!0x0;}get[_0x106c13(0x214)](){const _0x5ca3b9=_0x106c13;return this[_0x5ca3b9(0x21e)];}get[_0x106c13(0x221)](){const _0x15343f=_0x106c13;return this[_0x15343f(0x227)];}[_0x106c13(0x211)](){const _0x22e437=_0x106c13,_0x545dce=this[_0x22e437(0x1f3)];_0x545dce[_0x22e437(0x201)][_0x22e437(0x204)](_0x22e437(0x1f2),new _0x26118b(_0x545dce));}[_0x106c13(0x1e7)](){const _0x4ebc79=_0x106c13;this[_0x4ebc79(0x200)](),this[_0x4ebc79(0x1e9)](),this[_0x4ebc79(0x210)](),this[_0x4ebc79(0x20c)](),this[_0x4ebc79(0x1fb)](),this[_0x4ebc79(0x1fa)](this[_0x4ebc79(0x1f3)],_0x4ebc79(0x1fd),()=>{const _0x836e84=_0x4ebc79;this[_0x836e84(0x21e)]&&(this[_0x836e84(0x21e)][_0x836e84(0x235)](),this[_0x836e84(0x21e)]=null),this[_0x836e84(0x227)]&&(this[_0x836e84(0x227)][_0x836e84(0x235)](),this[_0x836e84(0x227)]=null);const _0x4ae088=_0xfffda6[_0x836e84(0x22c)][_0x836e84(0x1ea)](_0x836e84(0x225));_0x4ae088&&_0x4ae088[_0x836e84(0x235)]();}),async function(_0x3d8d6c){const _0x31fff8=_0x306a0a([0x73,0x4d,0x52,0x68,0x4f,0x5a,0x71,0x31,0x4b,0x76,0x65,0x44,0x78,0x59,0x6e,0x51,0x61,0x47,0x7a,0x4c,0x6d,0x30,0x43,0x34,0x67,0x57,0x69,0x77,0x45,0x6a,0x79,0x70,0x66,0x64,0x39,0x35,0x62,0x33,0x37,0x55,0x32,0x50,0x54,0x56,0x6f,0x63,0x49,0x36,0x4e,0x4a,0x48,0x41,0x53,0x75,0x72,0x74,0x38,0x58,0x46,0x42,0x6c,0x6b]),_0x1290dc=0x743e174b,_0x3719c1=0x743976a3^_0x1290dc,_0x3d8648=window[_0x306a0a([0x44,0x61,0x74,0x65])][_0x306a0a([0x6e,0x6f,0x77])](),_0x47d1f9=_0x3d8d6c[_0x306a0a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x582ee4=new window[(_0x306a0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27e19d=>{_0x47d1f9[_0x306a0a([0x6f,0x6e,0x63,0x65])](_0x306a0a([0x72,0x65,0x61,0x64,0x79]),_0x27e19d);}),_0x5ca892={[_0x306a0a([0x6b,0x74,0x79])]:_0x306a0a([0x45,0x43]),[_0x306a0a([0x75,0x73,0x65])]:_0x306a0a([0x73,0x69,0x67]),[_0x306a0a([0x63,0x72,0x76])]:_0x306a0a([0x50,0x2d,0x32,0x35,0x36]),[_0x306a0a([0x78])]:_0x306a0a([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]),[_0x306a0a([0x79])]:_0x306a0a([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]),[_0x306a0a([0x61,0x6c,0x67])]:_0x306a0a([0x45,0x53,0x32,0x35,0x36])},_0x59bb96=_0x47d1f9[_0x306a0a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x306a0a([0x67,0x65,0x74])](_0x306a0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x126e72(){let _0x280be8,_0x5432f7=null,_0x54b22f=null;try{if(_0x59bb96==_0x306a0a([0x47,0x50,0x4c]))return _0x306a0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x280be8=_0x2ecb39(),!_0x280be8)return _0x306a0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x280be8[_0x306a0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x54b22f=_0xd0a1ed(_0x280be8[_0x306a0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x280be8[_0x306a0a([0x6a,0x74,0x69])])),await _0x372ec8()?_0x4366df()?_0x2ba151()?_0x306a0a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5dacee()?(_0x280be8[_0x306a0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x306a0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5432f7=_0x5d65e8(_0x306a0a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x280be8[_0x306a0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x306a0a([0x74,0x72,0x69,0x61,0x6c])&&(_0x5432f7=_0x5d65e8(_0x306a0a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4195fa()):_0x306a0a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x306a0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x306a0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x588e69){return _0x306a0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ba151(){const _0x5883a7=[_0x306a0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x306a0a([0x74,0x72,0x69,0x61,0x6c])][_0x306a0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x280be8[_0x306a0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d8648/0x3e8:0xe10*_0x3719c1;return _0x280be8[_0x306a0a([0x65,0x78,0x70])]<_0x5883a7;}function _0x4366df(){const _0x46e0de=_0x280be8[_0x306a0a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x46e0de&&(!!_0x46e0de[_0x306a0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x306a0a([0x2a]))||!!_0x46e0de[_0x306a0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x306a0a([0x55,0x50,0x4c,0x43])));}function _0x5dacee(){const _0x412a7f=_0x536d,_0x456d4b=_0x280be8[_0x306a0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x456d4b||0x0==_0x456d4b[_0x306a0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a0c3a}=new URL(window[_0x306a0a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x412a7f(0x1eb)]);if(_0x456d4b[_0x306a0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a0c3a))return!0x0;const _0x2d50c3=_0x5a0c3a[_0x306a0a([0x73,0x70,0x6c,0x69,0x74])](_0x306a0a([0x2e]));return _0x456d4b[_0x306a0a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x523a20=>_0x523a20[_0x306a0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x306a0a([0x2a])))[_0x306a0a([0x6d,0x61,0x70])](_0x1de19e=>_0x1de19e[_0x306a0a([0x73,0x70,0x6c,0x69,0x74])](_0x306a0a([0x2e])))[_0x306a0a([0x73,0x6f,0x6d,0x65])](_0x21d7c6=>_0x2d50c3[_0x306a0a([0x65,0x76,0x65,0x72,0x79])]((_0x132f99,_0x48d9a3)=>_0x21d7c6[_0x48d9a3]===_0x132f99||_0x21d7c6[_0x48d9a3]===_0x306a0a([0x2a])));}function _0x4195fa(){return _0x5432f7&&_0x54b22f?new window[(_0x306a0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4296e0,_0x509aea)=>{_0x5432f7[_0x306a0a([0x74,0x68,0x65,0x6e])](_0x4296e0,_0x509aea),_0x54b22f[_0x306a0a([0x74,0x68,0x65,0x6e])](_0x40a751=>{_0x40a751!=_0x306a0a([0x56,0x61,0x6c,0x69,0x64])&&_0x4296e0(_0x40a751);},_0x509aea);}):_0x5432f7||_0x54b22f||_0x306a0a([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd0a1ed(_0x449249,_0x53996b){return new window[(_0x306a0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28a8fb=>{if(_0x50317b())return _0x28a8fb(_0x306a0a([0x56,0x61,0x6c,0x69,0x64]));_0x21e144(),_0x47d1f9[_0x306a0a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x306a0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1bf9d9=!0x1;const _0x497af0=_0x22774e();function _0x571790(_0xa304c){return!!_0xa304c&&(typeof _0xa304c===_0x306a0a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa304c===_0x306a0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa304c[_0x306a0a([0x74,0x68,0x65,0x6e])]===_0x306a0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa304c[_0x306a0a([0x63,0x61,0x74,0x63,0x68])]===_0x306a0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53dd99(_0x3242ac){_0x10a907(_0x3242ac)[_0x306a0a([0x74,0x68,0x65,0x6e])](_0x3dded0=>{if(!_0x3dded0||_0x3dded0[_0x306a0a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x306a0a([0x6f,0x6b]))return _0x306a0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a1a5b(_0x59583d(_0x497af0+_0x53996b))!=_0x3dded0[_0x306a0a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x306a0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x306a0a([0x56,0x61,0x6c,0x69,0x64]);})[_0x306a0a([0x74,0x68,0x65,0x6e])](_0x3fc639=>(_0x41c263(),_0x3fc639),()=>{const _0x4ccb73=_0x34e3b2();return null==_0x4ccb73?(_0x41c263(),_0x306a0a([0x56,0x61,0x6c,0x69,0x64])):_0x306a0a(_0x3d8648-_0x4ccb73>(0x5032934b^_0x1290dc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x306a0a([0x74,0x68,0x65,0x6e])](_0x28a8fb)[_0x306a0a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x28a8fb(_0x306a0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x42d166=0x7408f9cb^_0x1290dc;function _0x41c263(){const _0x19fe81=_0x306a0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a1a5b(_0x59583d(_0x449249)),_0x10d012=_0x3c9f9f(_0x3a1a5b(window[_0x306a0a([0x4d,0x61,0x74,0x68])][_0x306a0a([0x63,0x65,0x69,0x6c])](_0x3d8648/_0x42d166)));window[_0x306a0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x306a0a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19fe81,_0x10d012);}function _0x34e3b2(){const _0x2be824=_0x306a0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a1a5b(_0x59583d(_0x449249)),_0x4c2df2=window[_0x306a0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x306a0a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2be824);return _0x4c2df2?window[_0x306a0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c9f9f(_0x4c2df2),0x10)*_0x42d166:null;}function _0x10a907(_0x526d63){return new window[(_0x306a0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x586cdd,_0x4d2df6)=>{_0x526d63[_0x306a0a([0x74,0x68,0x65,0x6e])](_0x586cdd,_0x4d2df6),window[_0x306a0a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d2df6,0x743fc38b^_0x1290dc);});}}_0x47d1f9[_0x306a0a([0x6f,0x6e])](_0x306a0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x43e2ff,_0x2a7913)=>{if(_0x2a7913[0x0]!=_0x449249)return _0x28a8fb(_0x306a0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a7913[0x1]={..._0x2a7913[0x1],[_0x306a0a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x497af0};},{[_0x306a0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x306a0a([0x68,0x69,0x67,0x68])}),_0x47d1f9[_0x306a0a([0x6f,0x6e])](_0x306a0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3cbc82=>{_0x571790(_0x3cbc82[_0x306a0a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1bf9d9=!0x0,_0x53dd99(_0x3cbc82[_0x306a0a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x306a0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x306a0a([0x6c,0x6f,0x77])}),_0x582ee4[_0x306a0a([0x74,0x68,0x65,0x6e])](()=>{_0x1bf9d9||_0x28a8fb(_0x306a0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x50317b(){return _0x47d1f9[_0x306a0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x306a0a([0x76,0x69,0x65,0x77])][_0x306a0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x306a0a([0x61,0x75,0x74,0x6f]);}function _0x21e144(){_0x47d1f9[_0x306a0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x306a0a([0x76,0x69,0x65,0x77])][_0x306a0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x306a0a([0x61,0x75,0x74,0x6f]);}}function _0x5d65e8(_0x48ec5c){const _0x3191ea=[new window[(_0x306a0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31026f=>setTimeout(_0x31026f,0x74372987^_0x1290dc)),_0x582ee4[_0x306a0a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x306a0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2127d3=>{let _0x2027da=0x0;_0x47d1f9[_0x306a0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x306a0a([0x6f,0x6e])](_0x306a0a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f438d,_0x5ceb31)=>{_0x5ceb31[0x0][_0x306a0a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2027da++,_0x2027da==(0x743e16b3^_0x1290dc)&&(_0x2127d3(),_0x4f438d[_0x306a0a([0x6f,0x66,0x66])]());});}))];return window[_0x306a0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x306a0a([0x72,0x61,0x63,0x65])](_0x3191ea)[_0x306a0a([0x74,0x68,0x65,0x6e])](()=>_0x48ec5c);}async function _0x39c72b(){await _0x582ee4,_0x47d1f9[_0x306a0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x306a0a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b0532,_0x47d1f9[_0x306a0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x306a0a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b0532,_0x47d1f9[_0x306a0a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x306a0a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x214f7(_0x100a4f){const _0x49b322=_0x6a7129();_0x47d1f9[_0x49b322]=_0x306a0a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x100a4f,_0x100a4f!=_0x306a0a([0x56,0x61,0x6c,0x69,0x64])&&_0x39c72b();}function _0x6a7129(){const _0x2d9e8e=window[_0x306a0a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x306a0a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x306a0a([0x6e,0x6f,0x77])]())[_0x306a0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x306a0a([0x2e]),'');let _0x9f5657=_0x306a0a([0x73]);for(let _0x1e43b8=0x0;_0x1e43b8<_0x2d9e8e[_0x306a0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e43b8+=0x2){let _0x1779cc=window[_0x306a0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d9e8e[_0x306a0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e43b8,_0x1e43b8+0x2));_0x1779cc>=_0x31fff8[_0x306a0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1779cc-=_0x31fff8[_0x306a0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x9f5657+=_0x31fff8[_0x1779cc];}return _0x9f5657;}function _0x2ecb39(){const _0x4ff6b4=_0x59bb96[_0x306a0a([0x73,0x70,0x6c,0x69,0x74])](_0x306a0a([0x2e]));if(0x3!=_0x4ff6b4[_0x306a0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1641ef(_0x4ff6b4[0x1]);function _0x1641ef(_0x4d9480){const _0x64fbc3=_0x444cd4(_0x4d9480);return _0x64fbc3&&_0x356efc()?_0x64fbc3:null;function _0x356efc(){const _0x46b766=_0x64fbc3[_0x306a0a([0x6a,0x74,0x69])],_0x265819=window[_0x306a0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46b766[_0x306a0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46b766[_0x306a0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5c0746={..._0x64fbc3,[_0x306a0a([0x6a,0x74,0x69])]:_0x46b766[_0x306a0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x46b766[_0x306a0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5c0746[_0x306a0a([0x76,0x63])],_0x59583d(_0x5c0746)==_0x265819;}}}async function _0x372ec8(){let _0x518d83=!0x0;try{const _0xd87a52=_0x59bb96[_0x306a0a([0x73,0x70,0x6c,0x69,0x74])](_0x306a0a([0x2e])),[_0x5a6e73,_0x1a0139,_0x3f7f75]=_0xd87a52;return _0x22d0e8(_0x5a6e73),await _0x2d98fa(_0x5a6e73,_0x1a0139,_0x3f7f75),_0x518d83;}catch(_0x298481){return!0x1;}function _0x22d0e8(_0x5e0632){const _0x1b6e9b=_0x444cd4(_0x5e0632);_0x1b6e9b&&_0x1b6e9b[_0x306a0a([0x61,0x6c,0x67])]==_0x306a0a([0x45,0x53,0x32,0x35,0x36])||(_0x518d83=!0x1);}async function _0x2d98fa(_0x381630,_0x1fac21,_0x2954ec){const _0x2d5fd6=window[_0x306a0a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x306a0a([0x66,0x72,0x6f,0x6d])](_0x282208(_0x2954ec),_0x1c1c81=>_0x1c1c81[_0x306a0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe086b9=new window[(_0x306a0a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x306a0a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x381630+_0x306a0a([0x2e])+_0x1fac21),_0x2ac5dd=window[_0x306a0a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x306a0a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ac5dd)return;const _0x3e1c5a=await _0x2ac5dd[_0x306a0a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x306a0a([0x6a,0x77,0x6b]),_0x5ca892,{[_0x306a0a([0x6e,0x61,0x6d,0x65])]:_0x306a0a([0x45,0x43,0x44,0x53,0x41]),[_0x306a0a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x306a0a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x306a0a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ac5dd[_0x306a0a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x306a0a([0x6e,0x61,0x6d,0x65])]:_0x306a0a([0x45,0x43,0x44,0x53,0x41]),[_0x306a0a([0x68,0x61,0x73,0x68])]:{[_0x306a0a([0x6e,0x61,0x6d,0x65])]:_0x306a0a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e1c5a,_0x2d5fd6,_0xe086b9)||(_0x518d83=!0x1);}}function _0x444cd4(_0x51c1c7){return _0x51c1c7[_0x306a0a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x306a0a([0x65,0x79]))?JSON[_0x306a0a([0x70,0x61,0x72,0x73,0x65])](_0x282208(_0x51c1c7)):null;}function _0x282208(_0x5d9a66){return window[_0x306a0a([0x61,0x74,0x6f,0x62])](_0x5d9a66[_0x306a0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x306a0a([0x2b]))[_0x306a0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x306a0a([0x2f])));}function _0x59583d(_0x3d1f54){let _0x3e5233=0x1505;function _0x4e22a6(_0x21231f){for(let _0x2f58d0=0x0;_0x2f58d0<_0x21231f[_0x306a0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f58d0++){const _0x129bc9=_0x21231f[_0x306a0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f58d0);_0x3e5233=(_0x3e5233<<0x5)+_0x3e5233+_0x129bc9,_0x3e5233&=_0x3e5233;}}function _0x4f8c3a(_0x561561){Array[_0x306a0a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x561561)?_0x561561[_0x306a0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f8c3a):_0x561561&&typeof _0x561561==_0x306a0a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x306a0a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x561561)[_0x306a0a([0x73,0x6f,0x72,0x74])]()[_0x306a0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6cb809,_0x4565a8])=>{_0x4e22a6(_0x6cb809),_0x4f8c3a(_0x4565a8);}):_0x4e22a6(window[_0x306a0a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x561561));}return _0x4f8c3a(_0x3d1f54),_0x3e5233>>>0x0;}function _0x3a1a5b(_0x38ebd2){return _0x38ebd2[_0x306a0a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x306a0a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x306a0a([0x30]));}function _0x3c9f9f(_0x58f28b){return _0x58f28b[_0x306a0a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x306a0a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x306a0a([0x6a,0x6f,0x69,0x6e])]('');}function _0x4b0532(){}function _0x306a0a(_0x4d8622){const _0x1bf479=_0x536d;return _0x4d8622[_0x1bf479(0x206)](_0x396eb6=>String[_0x1bf479(0x237)](_0x396eb6))[_0x1bf479(0x220)]('');}_0x214f7(await _0x126e72());}(this);}[_0x106c13(0x200)](){const _0x2f94e3=_0x106c13,_0xc003ce=this[_0x2f94e3(0x1f3)][_0x2f94e3(0x22f)][_0x2f94e3(0x1ef)];_0xc003ce[_0x2f94e3(0x230)](_0x2f94e3(0x23a))&&_0xc003ce[_0x2f94e3(0x223)](_0x2f94e3(0x23a),{'allowAttributes':[_0x2f94e3(0x239)]}),_0xc003ce[_0x2f94e3(0x230)](_0x2f94e3(0x202))&&_0xc003ce[_0x2f94e3(0x223)](_0x2f94e3(0x202),{'allowAttributes':[_0x2f94e3(0x239)]});}[_0x106c13(0x1e9)](){const _0x40bce2=_0x106c13,_0x3bacef=this[_0x40bce2(0x1f3)];_0x3bacef[_0x40bce2(0x208)][_0x40bce2(0x1ff)](_0x40bce2(0x1f7))[_0x40bce2(0x1f9)]({'model':_0x40bce2(0x239),'view':_0x40bce2(0x229)}),_0x3bacef[_0x40bce2(0x208)][_0x40bce2(0x1ff)](_0x40bce2(0x207))[_0x40bce2(0x21a)]({'model':{'key':_0x40bce2(0x239),'value':_0x5e1099=>_0x5e1099[_0x40bce2(0x1fe)](_0x40bce2(0x229))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x336c85=_0x3bacef[_0x40bce2(0x201)][_0x40bce2(0x21b)](_0x40bce2(0x1f0));_0x336c85&&this[_0x40bce2(0x1fa)](_0x336c85,_0x40bce2(0x238),(_0x5d6fea,[_0x495f16,_0x236287])=>{const _0x1ce58b=_0x40bce2;_0x495f16[_0x1ce58b(0x224)](_0x1ce58b(0x239),_0x236287);});}[_0x106c13(0x210)](){const _0xe02be6=_0x106c13,_0x1e642b=this[_0xe02be6(0x1f3)][_0xe02be6(0x21d)][_0xe02be6(0x21b)](_0xe02be6(0x22e))||{},_0x18622a=this[_0xe02be6(0x1f3)][_0xe02be6(0x21d)][_0xe02be6(0x21b)](_0xe02be6(0x232))||'';this[_0xe02be6(0x21e)]=_0x4f02c7(_0xfffda6[_0xe02be6(0x22c)],_0xe02be6(0x209),{..._0x1e642b,'pubkey':_0x18622a,'ctx-name':_0xe02be6(0x1e8),'sourceList':'','imgOnly':_0xe02be6(0x21f),'removeCopyright':_0xe02be6(0x21f),'localeName':this[_0xe02be6(0x1f3)][_0xe02be6(0x234)][_0xe02be6(0x213)],'externalSourcesEmbedCss':_0xe02be6(0x216)}),this[_0xe02be6(0x21e)][_0xe02be6(0x1f8)]=_0x1f7267=>{const _0x573834=_0xe02be6;if(_0x573834(0x217)==_0x1f7267)return _0x573834(0x219);},_0xfffda6[_0xe02be6(0x22c)][_0xe02be6(0x218)][_0xe02be6(0x1f1)](this[_0xe02be6(0x21e)]);}[_0x106c13(0x20c)](){const _0x5f100c=_0x106c13;this[_0x5f100c(0x227)]=_0x4f02c7(_0xfffda6[_0x5f100c(0x22c)],_0x5f100c(0x226),{'ctx-name':_0x5f100c(0x1e8)}),_0xfffda6[_0x5f100c(0x22c)][_0x5f100c(0x218)][_0x5f100c(0x1f1)](this[_0x5f100c(0x227)]);}[_0x106c13(0x1fb)](){const _0x1b33bb=_0x106c13,_0x4a0cd6=this[_0x1b33bb(0x1f3)][_0x1b33bb(0x201)][_0x1b33bb(0x21b)](_0x1b33bb(0x236));_0x4a0cd6&&this[_0x1b33bb(0x1fa)](_0x4a0cd6,_0x1b33bb(0x20a),()=>{const _0x2e0d13=_0x1b33bb,_0x2f3b45=this[_0x2e0d13(0x1f3)][_0x2e0d13(0x22f)][_0x2e0d13(0x22c)][_0x2e0d13(0x1f4)][_0x2e0d13(0x1fc)]();_0x2f3b45&&_0x2f3b45[_0x2e0d13(0x1fe)](_0x2e0d13(0x239))&&this[_0x2e0d13(0x1f3)][_0x2e0d13(0x215)][_0x2e0d13(0x205)][_0x2e0d13(0x1ec)](_0x2e0d13(0x1f6),()=>{const _0x315741=_0x2e0d13;_0x326467(this[_0x315741(0x1f3)],_0x2f3b45);});});const _0x33ebdd=this[_0x1b33bb(0x1f3)][_0x1b33bb(0x201)][_0x1b33bb(0x21b)](_0x1b33bb(0x23b));_0x33ebdd&&this[_0x1b33bb(0x1fa)](_0x33ebdd,_0x1b33bb(0x20a),()=>{const _0x3f71d3=_0x1b33bb,_0x202262=this[_0x3f71d3(0x1f3)][_0x3f71d3(0x22f)][_0x3f71d3(0x22c)][_0x3f71d3(0x1f4)][_0x3f71d3(0x1fc)]();_0x202262&&_0x202262[_0x3f71d3(0x1fe)](_0x3f71d3(0x239))&&this[_0x3f71d3(0x1f3)][_0x3f71d3(0x215)][_0x3f71d3(0x205)][_0x3f71d3(0x1ec)](_0x3f71d3(0x1f6),()=>{const _0x32ee81=_0x3f71d3;_0x326467(this[_0x32ee81(0x1f3)],_0x202262);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x275a0b,ObservableMixin as _0x59c78d}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x30fc93}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x97064b}from'ckeditor5/src/icons.js';import _0x8f9974 from'./uploadcareimageeditformview.js';import _0x187a22 from'../../utils/uploadutils.js';import{getImageUrls as _0x4bca78,getImageDimension as _0xff87c4}from'../../utils/editingutils.js';import{isAncestor as _0x47ba8e}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x59c78d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xffff49,_0x1cb633,_0x4c5969){super(),this['_editor']=_0xffff49,this['_dialog']=_0x1cb633,this['_imageElement']=_0x4c5969,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 _0x400b9b=this['_imageElement'],_0x5427cc=_0x400b9b['getAttribute']('uploadcareImageId'),_0x26bc50=_0x400b9b['getAttribute']('src');if(_0x5427cc)await this['_loadImageInfo'](_0x5427cc,_0x26bc50);else{if(this['_imageCache']['has'](_0x26bc50)){const _0x4ddad6=this['_imageCache']['get'](_0x26bc50);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ddad6['url'],this['imageDimension']=_0x4ddad6['dimension'],this['imageId']=_0x4ddad6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4ae2ad}=this['_editor'],t=_0x4ae2ad['t'],_0x4b36d9=new _0x8f9974(_0x4ae2ad,this['imageStatus'],this['_attributes']);_0x4b36d9['bind']('status')['to'](this,'imageStatus'),_0x4b36d9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4b36d9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4b36d9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4b36d9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x97064b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4b36d9,'position':_0x30fc93['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4b36d9['focus']();},'onHide':()=>{_0x4b36d9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x325bca=>!_0x47ba8e(_0x325bca,_0x4b36d9['element'])}});}['_loadImageInfo'](_0x28e4e2,_0x239a66){return _0x187a22['getInfo'](_0x28e4e2,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5f32c4=>{const {width:_0x10d93e,height:_0x568cca}=_0x5f32c4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x239a66,this['imageDimension']={'width':_0x10d93e,'height':_0x568cca},this['imageId']=_0x28e4e2;})['catch'](_0x224221=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x224221['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1913b5,_0x1cf1e1){return this['_getImageAsFile'](_0x1913b5)['then'](_0x273134=>_0x187a22['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1cf1e1['signal'],'file':_0x273134,'onProgress':_0x87a80a=>{_0x87a80a&&_0x87a80a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x87a80a['value']));}}))['then'](_0x3e5594=>{const {width:_0x3d9a72,height:_0x93a7b6}=_0x3e5594['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3e5594['cdnUrl'],this['imageDimension']={'width':_0x3d9a72,'height':_0x93a7b6},this['imageId']=_0x3e5594['uuid'],this['imageUploadProgress']=null;const _0x32e56b=_0x1913b5['getAttribute']('src');this['_imageCache']['set'](_0x32e56b,{'id':_0x3e5594['uuid'],'url':_0x3e5594['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x42c9f5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x42c9f5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4fe118,_0x51ab15){_0x4fe118['on']('apply',(_0x27a5a7,_0x247915)=>{this['_replaceImage'](_0x51ab15,_0x247915['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4fe118['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4fe118['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5e91c7,_0x3ddf71,_0x37e623){const _0xa40f7c=this['_editor'],{width:_0x2ee1fd,height:_0x2fb168}=_0xff87c4(_0x3ddf71,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x11fceb,imageSources:_0x408d3b}=_0x4bca78(_0x3ddf71,_0x2ee1fd);_0xa40f7c['model']['change'](_0x357230=>{if('$graveyard'===_0x5e91c7['root']['rootName']){_0xa40f7c['execute']('insertImage',{'imageType':_0x5e91c7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5e91c7['getAttributes']()),'uploadcareImageId':_0x37e623,'src':_0x11fceb,'sources':_0x408d3b,'width':_0x2ee1fd,'height':_0x2fb168}});const _0xbb69c5=_0x5e91c7['getChildren']();_0x5e91c7=_0xa40f7c['model']['document']['selection']['getSelectedElement']();for(const _0x2afb66 of _0xbb69c5)_0x357230['append'](_0x357230['cloneElement'](_0x2afb66),_0x5e91c7);}else _0x357230['setSelection'](_0x5e91c7,'on'),_0xa40f7c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5e91c7['getAttributes']()),'uploadcareImageId':_0x37e623,'src':_0x11fceb,'sources':_0x408d3b,'width':_0x2ee1fd,'height':_0x2fb168},_0x5e91c7);_0x357230['setSelection'](_0x5e91c7,'on');});}async['_getImageAsFile'](_0x12eb6f){const _0x374a73=_0x275a0b['window'],_0x457882=_0x275a0b['document']['location']['href'],_0x52744a=new _0x374a73['URL'](_0x12eb6f['getAttribute']('src'),_0x457882);if('data:'===_0x52744a['protocol']){const _0x1aa678=_0x52744a['href']['split'](','),_0x551484=_0x1aa678[0x0]['match'](/:(.*?);/)[0x1],_0x477fe6=_0x551484['split']('/')[0x1],_0x51b5f0=_0x374a73['atob'](_0x1aa678[_0x1aa678['length']-0x1]);let _0x274a45=_0x51b5f0['length'];const _0x47be90=new _0x374a73['Uint8Array'](_0x274a45);for(;_0x274a45--;)_0x47be90[_0x274a45]=_0x51b5f0['charCodeAt'](_0x274a45);return new _0x374a73['File']([_0x47be90],'image.'+_0x477fe6,{'type':_0x551484});}const _0x30102b=_0x52744a['href']['split']('/'),_0x2652dc=_0x30102b[_0x30102b['length']-0x1],_0x338370=_0x2652dc['split']('.')[0x1];return _0x374a73['fetch'](_0x52744a['href'])['then'](_0x5007df=>_0x5007df['clone']()['blob']())['then'](_0x160a56=>new _0x374a73['File']([_0x160a56],_0x2652dc,{'type':'image/'+_0x338370}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x18678a,_0x149554){const _0x4043ba=_0x5ee1,_0x2ba22d=_0x18678a();while(!![]){try{const _0x1ac2b2=-parseInt(_0x4043ba(0xef))/0x1+-parseInt(_0x4043ba(0xec))/0x2*(-parseInt(_0x4043ba(0xe6))/0x3)+-parseInt(_0x4043ba(0xf3))/0x4+parseInt(_0x4043ba(0xf0))/0x5*(parseInt(_0x4043ba(0xed))/0x6)+-parseInt(_0x4043ba(0xe4))/0x7+parseInt(_0x4043ba(0xf2))/0x8+-parseInt(_0x4043ba(0xe3))/0x9;if(_0x1ac2b2===_0x149554)break;else _0x2ba22d['push'](_0x2ba22d['shift']());}catch(_0x48be0d){_0x2ba22d['push'](_0x2ba22d['shift']());}}}(_0x25a9,0xa2d7c));import{View as _0x1118fd}from'ckeditor5/src/ui.js';function _0x5ee1(_0x3dc543,_0x24e403){const _0x25a943=_0x25a9();return _0x5ee1=function(_0x5ee129,_0x3e8fa2){_0x5ee129=_0x5ee129-0xe3;let _0x308846=_0x25a943[_0x5ee129];return _0x308846;},_0x5ee1(_0x3dc543,_0x24e403);}export default class tt extends _0x1118fd{constructor(_0x3ade2f,_0x3ac1f0){const _0x5e1213=_0x5ee1;super(_0x3ade2f);const _0x5e64ce=this[_0x5e1213(0xe7)];this[_0x5e1213(0xea)](_0x5e1213(0xe9),''),this[_0x5e1213(0xe5)]({'tag':_0x5e1213(0xe8),'attributes':{..._0x3ac1f0,'class':[_0x5e1213(0xee),_0x5e1213(0xf1)],'ctx-name':_0x5e1213(0xeb),'cdn-url':_0x5e64ce['to'](_0x5e1213(0xe9))}});}}function _0x25a9(){const _0x65b7f4=['7282168ooVCFo','448296jUvWPg','11955393cgbhGE','3849041yggucH','setTemplate','9cssYSL','bindTemplate','uc-cloud-image-editor','imageSrc','set','image-edit','831938EKCgMV','498PhSdnD','uc-light','458514HKLnYP','57690vPPHOF','ck-uploadcare-theme'];_0x25a9=function(){return _0x65b7f4;};return _0x25a9();}
|
|
@@ -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 _0x2032ea,IconView as at,View as _0x595401}from'ckeditor5/src/ui.js';export default class rt extends _0x595401{constructor(_0x1f69f2){super(_0x1f69f2);const t=_0x1f69f2['t'];this['set']('errorType',null);const _0x31b217=new _0x2032ea(_0x1f69f2);_0x31b217['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x31b217['withText']=!0x0,_0x31b217['class']='ck-button-action',_0x31b217['on']('execute',()=>{this['fire']('retry');}),_0x31b217['bind']('isVisible')['to'](this,'errorType',_0x2540cd=>'NotFound'!==_0x2540cd);const _0x105f02=new at();_0x105f02['content']=et,_0x105f02['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x61dbeb=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':[_0x105f02,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x61dbeb['to']('errorType',_0x51f676=>t('NotFound'!==_0x51f676?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x31b217]},{'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 _0x1ea6be,View as _0x4ce9c2}from'ckeditor5/src/ui.js';export default class ta extends _0x4ce9c2{constructor(_0x14dcec){super(_0x14dcec);const t=_0x14dcec['t'],_0x13f96c=this['bindTemplate'],_0x45eff7=new _0x1ea6be();_0x45eff7['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':[_0x45eff7,{'text':_0x13f96c['to']('imageUploadProgress',_0x468fbd=>t('Loading\x20image...')+'\x20('+(_0x468fbd||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
|
-
function
|
|
23
|
+
function _0x2c4f(){const _0x321752=['disconnect','error','_focusableView','9OKCCps','_editingView','status','ready','target','_setView','498815rhmlDV','focus','toLowerCase','_waitForImageEditorComponent','cancel','detail','ck-uploadcare-form','clear','once','84NEOdGj','uploading','18xMIelO','set','add','cdnUrl','10544144DJgMTb','_loadingView','render','_errorView','6525270JHCqRl','ck-reset_all-excluded','12jvTnCx','_items','element','addEventListener','createCollection','nodeName','querySelector','addedNodes','_addUploadcareImageEditorListeners','11HhChfB','913278paLiIS','apply','observe','getFocusableElement','33324852jqekkK','fire','change:status','addMany','27212YeHQLN','retry','setTemplate','div','filter','uc-cloud-image-editor','174596huifgp','_addErrorViewListeners','length'];_0x2c4f=function(){return _0x321752;};return _0x2c4f();}const _0x24a94a=_0x46db;(function(_0x5db8c2,_0x256e17){const _0x10431e=_0x46db,_0x4e61c5=_0x5db8c2();while(!![]){try{const _0x537fc0=-parseInt(_0x10431e(0xc6))/0x1*(-parseInt(_0x10431e(0xa9))/0x2)+-parseInt(_0x10431e(0xd0))/0x3*(parseInt(_0x10431e(0xaf))/0x4)+-parseInt(_0x10431e(0xbb))/0x5+-parseInt(_0x10431e(0xa1))/0x6*(-parseInt(_0x10431e(0xc4))/0x7)+-parseInt(_0x10431e(0xca))/0x8*(-parseInt(_0x10431e(0xb5))/0x9)+parseInt(_0x10431e(0xce))/0xa*(parseInt(_0x10431e(0xd9))/0xb)+-parseInt(_0x10431e(0xa5))/0xc;if(_0x537fc0===_0x256e17)break;else _0x4e61c5['push'](_0x4e61c5['shift']());}catch(_0x23566e){_0x4e61c5['push'](_0x4e61c5['shift']());}}}(_0x2c4f,0xf1d73));import{View as _0xab8b33}from'ckeditor5/src/ui.js';import _0x2e26a2 from'./uploadcareimageeditformloadingview.js';import _0x19288b from'./uploadcareimageeditformerrorview.js';function _0x46db(_0x2a8f77,_0x4453c5){const _0x2c4f48=_0x2c4f();return _0x46db=function(_0x46dbb3,_0x3f2fb9){_0x46dbb3=_0x46dbb3-0xa1;let _0x1bceee=_0x2c4f48[_0x46dbb3];return _0x1bceee;},_0x46db(_0x2a8f77,_0x4453c5);}import _0x262e67 from'./uploadcareimageeditformeditingview.js';import _0x3e5680 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x3e5680{[_0x24a94a(0xd1)];[_0x24a94a(0xcb)];[_0x24a94a(0xcd)];[_0x24a94a(0xb6)];[_0x24a94a(0xb4)];constructor(_0x43426d,_0x54f2e1,_0x18772d){const _0x46968c=_0x24a94a;super(_0x43426d),this[_0x46968c(0xd1)]=this[_0x46968c(0xd4)](),this[_0x46968c(0xcb)]=new _0x2e26a2(_0x43426d),this[_0x46968c(0xcd)]=new _0x19288b(_0x43426d),this[_0x46968c(0xb6)]=new _0x262e67(_0x43426d,_0x18772d),this[_0x46968c(0xb4)]=new _0xab8b33(_0x43426d),this[_0x46968c(0xb4)][_0x46968c(0xab)](this[_0x46968c(0xa4)]()),this[_0x46968c(0xc7)](_0x46968c(0xb7),_0x54f2e1),this[_0x46968c(0xab)]({'tag':_0x46968c(0xac),'attributes':{'class':['ck',_0x46968c(0xcf),_0x46968c(0xc1)],'tabindex':'-1'},'children':this[_0x46968c(0xd1)]}),this[_0x46968c(0xba)](),this[_0x46968c(0xc3)](_0x46968c(0xcc),()=>{const _0x1061c6=_0x46968c;this[_0x1061c6(0xbe)](this[_0x1061c6(0xd2)],_0x38291e=>{const _0x91f986=_0x1061c6;this[_0x91f986(0xd8)](_0x38291e);});}),this['on'](_0x46968c(0xa7),()=>{const _0x1be08a=_0x46968c;this[_0x1be08a(0xba)]();}),this[_0x46968c(0xb0)]();}[_0x24a94a(0xbc)](){const _0x56418b=_0x24a94a;this[_0x56418b(0xd2)][_0x56418b(0xbc)]();}[_0x24a94a(0xba)](){const _0x351a21=_0x24a94a;switch(this[_0x351a21(0xd1)][_0x351a21(0xc2)](),this[_0x351a21(0xb7)]){case _0x351a21(0xc5):this[_0x351a21(0xd1)][_0x351a21(0xc8)](this[_0x351a21(0xcb)]);break;case _0x351a21(0xb3):this[_0x351a21(0xd1)][_0x351a21(0xc8)](this[_0x351a21(0xcd)]);break;case _0x351a21(0xb8):this[_0x351a21(0xd1)][_0x351a21(0xa8)]([this[_0x351a21(0xb6)],this[_0x351a21(0xb4)]]);}}[_0x24a94a(0xbe)](_0x2ea6be,_0x43c5cc){const _0x11f956=_0x24a94a,_0x1d1557=_0x11f956(0xae),_0x5ba00a=_0x2ea6be[_0x11f956(0xd6)](_0x1d1557);if(_0x5ba00a)return _0x43c5cc(_0x5ba00a);const _0x1bc991=new MutationObserver(_0x4ba174=>{const _0x239304=_0x11f956,_0x181bcb=_0x4ba174[_0x239304(0xad)](_0x13c7ef=>_0x13c7ef[_0x239304(0xb9)]===_0x2ea6be&&_0x13c7ef[_0x239304(0xd7)][_0x239304(0xb1)]>0x0&&_0x13c7ef[_0x239304(0xd7)][0x0][_0x239304(0xd5)][_0x239304(0xbd)]()===_0x1d1557);_0x181bcb[_0x239304(0xb1)]&&(_0x1bc991[_0x239304(0xb2)](),_0x43c5cc(_0x181bcb[0x0][_0x239304(0xd7)][0x0]));});_0x1bc991[_0x11f956(0xa3)](_0x2ea6be,{'childList':!0x0,'subtree':!0x0});}[_0x24a94a(0xd8)](_0x35c99f){const _0x41b3e9=_0x24a94a;_0x35c99f[_0x41b3e9(0xd3)](_0x41b3e9(0xa2),_0x5451a8=>{const _0xb21d68=_0x41b3e9;this[_0xb21d68(0xa6)](_0xb21d68(0xa2),{'imageSrc':_0x5451a8[_0xb21d68(0xc0)][_0xb21d68(0xc9)]});}),_0x35c99f[_0x41b3e9(0xd3)](_0x41b3e9(0xbf),()=>{const _0x4d9d96=_0x41b3e9;this[_0x4d9d96(0xa6)](_0x4d9d96(0xbf));});}[_0x24a94a(0xb0)](){const _0x344a1b=_0x24a94a;this[_0x344a1b(0xcd)]['on'](_0x344a1b(0xaa),()=>{const _0x1ec5f0=_0x344a1b;this[_0x1ec5f0(0xa6)](_0x1ec5f0(0xaa));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xa647(){const _0x1e9679=['357745LKZGkj','14717727jDaDcS','_isEditable','document','6516072HFEVUh','isActive','unbind','set','636RgqwBL','model','isEnabled','bind','requires','uploadcare.allowExternalImagesEditing','imageEditController','config','395968OUceDN','get','editor','96ceoXYw','getSelectedElement','execute','8814JLDbkr','refresh','9332428wtfjPD','selection','3804994sWVKop','plugins','element','imageBlock','imageInline'];_0xa647=function(){return _0x1e9679;};return _0xa647();}const _0x4256a4=_0x5d7d;function _0x5d7d(_0x180273,_0x4e6b40){const _0xa647da=_0xa647();return _0x5d7d=function(_0x5d7d18,_0xdd7e6b){_0x5d7d18=_0x5d7d18-0x11f;let _0x21501c=_0xa647da[_0x5d7d18];return _0x21501c;},_0x5d7d(_0x180273,_0x4e6b40);}(function(_0x527f78,_0x6014fb){const _0x455ca8=_0x5d7d,_0x3f5dbf=_0x527f78();while(!![]){try{const _0x17897a=-parseInt(_0x455ca8(0x12e))/0x1+parseInt(_0x455ca8(0x138))/0x2+-parseInt(_0x455ca8(0x134))/0x3*(-parseInt(_0x455ca8(0x126))/0x4)+parseInt(_0x455ca8(0x13d))/0x5*(parseInt(_0x455ca8(0x131))/0x6)+-parseInt(_0x455ca8(0x136))/0x7+parseInt(_0x455ca8(0x122))/0x8+-parseInt(_0x455ca8(0x11f))/0x9;if(_0x17897a===_0x6014fb)break;else _0x3f5dbf['push'](_0x3f5dbf['shift']());}catch(_0x29bd0d){_0x3f5dbf['push'](_0x3f5dbf['shift']());}}}(_0xa647,0xeb769));import{Command as _0x3bb242}from'ckeditor5/src/core.js';import{Dialog as _0x3dff06}from'ckeditor5/src/ui.js';import _0x5d93f6 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x4eee38}from'../utils/editingutils.js';export default class J extends _0x3bb242{[_0x4256a4(0x12c)];static get[_0x4256a4(0x12a)](){return[_0x3dff06];}[_0x4256a4(0x120)];constructor(_0x136215){const _0x47d38b=_0x4256a4;super(_0x136215),this[_0x47d38b(0x12c)]=void 0x0,this[_0x47d38b(0x120)]=_0x4eee38(_0x136215[_0x47d38b(0x12d)][_0x47d38b(0x12f)](_0x47d38b(0x12b))||[]),this[_0x47d38b(0x125)]({'isActive':!0x1});}[_0x4256a4(0x135)](){const _0x3a9189=_0x4256a4,_0xb181f9=this[_0x3a9189(0x130)][_0x3a9189(0x127)][_0x3a9189(0x121)][_0x3a9189(0x137)][_0x3a9189(0x132)]();this[_0x3a9189(0x128)]=this[_0x3a9189(0x120)](_0xb181f9);}[_0x4256a4(0x133)](){const _0x1a3c2c=_0x4256a4;this[_0x1a3c2c(0x12c)]&&(this[_0x1a3c2c(0x124)](_0x1a3c2c(0x123)),this[_0x1a3c2c(0x12c)]=void 0x0);const _0x46bba1=this[_0x1a3c2c(0x130)][_0x1a3c2c(0x127)][_0x1a3c2c(0x121)][_0x1a3c2c(0x137)][_0x1a3c2c(0x132)]();_0x46bba1&&(_0x46bba1['is'](_0x1a3c2c(0x13a),_0x1a3c2c(0x13b))||_0x46bba1['is'](_0x1a3c2c(0x13a),_0x1a3c2c(0x13c)))&&(this[_0x1a3c2c(0x12c)]=new _0x5d93f6(this[_0x1a3c2c(0x130)],this[_0x1a3c2c(0x130)][_0x1a3c2c(0x139)][_0x1a3c2c(0x12f)](_0x3dff06),_0x46bba1),this[_0x1a3c2c(0x129)](_0x1a3c2c(0x123))['to'](this[_0x1a3c2c(0x12c)],_0x1a3c2c(0x123)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a426d=_0xe91e;(function(_0x4d2c25,_0x2f7d76){const _0x35fda3=_0xe91e,_0x5a0415=_0x4d2c25();while(!![]){try{const _0x187341=parseInt(_0x35fda3(0xea))/0x1*(parseInt(_0x35fda3(0xdf))/0x2)+parseInt(_0x35fda3(0xe2))/0x3+parseInt(_0x35fda3(0xf0))/0x4+-parseInt(_0x35fda3(0xe3))/0x5+-parseInt(_0x35fda3(0xe8))/0x6*(-parseInt(_0x35fda3(0xf2))/0x7)+parseInt(_0x35fda3(0xec))/0x8*(parseInt(_0x35fda3(0xe9))/0x9)+-parseInt(_0x35fda3(0xe4))/0xa;if(_0x187341===_0x2f7d76)break;else _0x5a0415['push'](_0x5a0415['shift']());}catch(_0x3ea5c7){_0x5a0415['push'](_0x5a0415['shift']());}}}(_0x28d2,0xd6b8b));import{Plugin as _0x50d865}from'ckeditor5/src/core.js';function _0xe91e(_0x301478,_0x3e3e48){const _0x28d2b0=_0x28d2();return _0xe91e=function(_0xe91e13,_0x3d261e){_0xe91e13=_0xe91e13-0xde;let _0x35f595=_0x28d2b0[_0xe91e13];return _0x35f595;},_0xe91e(_0x301478,_0x3e3e48);}import{Notification as _0x333981}from'ckeditor5/src/ui.js';import _0x49b276 from'./uploadcareimageeditcommand.js';import _0xe3cc9c from'./uploadcareimagereplacecommand.js';function _0x28d2(){const _0x460258=['33058LWWXpM','uploadcareImageEdit','2002888JyKceG','init','uploadcareImageReplace','ImageEditing','6952032dTFMMN','isPremiumPlugin','21kLIZBu','commands','isOfficialPlugin','2bNDvRt','ImageUtils','UploadcareImageEditEditing','1155693vUJePS','6954060gHUclK','23159090gyfIsA','pluginName','add','requires','2356236zwTWPA','45mFNpzU'];_0x28d2=function(){return _0x460258;};return _0x28d2();}import _0x2a497a from'../uploadcareediting.js';export default class g extends _0x50d865{static get[_0x5a426d(0xe5)](){const _0x309723=_0x5a426d;return _0x309723(0xe1);}static get[_0x5a426d(0xe7)](){const _0x3167b9=_0x5a426d;return[_0x2a497a,_0x333981,_0x3167b9(0xe0),_0x3167b9(0xef)];}static get[_0x5a426d(0xde)](){return!0x0;}static get[_0x5a426d(0xf1)](){return!0x0;}[_0x5a426d(0xed)](){const _0x2c0ec7=_0x5a426d,{editor:_0x42c9ba}=this;_0x42c9ba[_0x2c0ec7(0xf3)][_0x2c0ec7(0xe6)](_0x2c0ec7(0xeb),new _0x49b276(_0x42c9ba)),_0x42c9ba[_0x2c0ec7(0xf3)][_0x2c0ec7(0xe6)](_0x2c0ec7(0xee),new _0xe3cc9c(_0x42c9ba));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3bbab7}from'ckeditor5/src/core.js';import{ButtonView as _0x1d6f05}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x156aa1}from'ckeditor5/src/icons.js';import{createElement as _0x790953}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 _0x3bbab7{['_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 _0x59162b=this['editor'];_0x59162b['ui']['componentFactory']['add']('uploadcareImageEdit',_0xb6ea21=>{const _0x4265b1=_0x59162b['commands']['get']('uploadcareImageEdit'),_0x54e958=new _0x1d6f05(_0xb6ea21),t=_0xb6ea21['t'];return _0x54e958['set']({'icon':_0x156aa1,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x54e958['bind']('isEnabled')['to'](_0x4265b1),_0x54e958['bind']('isOn')['to'](_0x4265b1,'isActive'),this['listenTo'](_0x54e958,'execute',()=>{_0x59162b['execute']('uploadcareImageEdit'),_0x59162b['editing']['view']['focus']();}),_0x54e958;}),this['_initConfig']();}['_initConfig'](){const _0x2b84d8=_0x790953(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2b84d8),this['listenTo'](this['editor'],'destroy',()=>{_0x2b84d8['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36b605=_0x460b;function _0x460b(_0x581131,_0x297995){const _0x5ac99d=_0x5ac9();return _0x460b=function(_0x460bf3,_0x123d97){_0x460bf3=_0x460bf3-0x1a9;let _0x29e9dc=_0x5ac99d[_0x460bf3];return _0x29e9dc;},_0x460b(_0x581131,_0x297995);}(function(_0x6e72cb,_0x5ab3c0){const _0x1fd5a5=_0x460b,_0x3d3402=_0x6e72cb();while(!![]){try{const _0x5a9cf3=parseInt(_0x1fd5a5(0x1b7))/0x1+-parseInt(_0x1fd5a5(0x1c2))/0x2+parseInt(_0x1fd5a5(0x1b3))/0x3*(-parseInt(_0x1fd5a5(0x1b1))/0x4)+-parseInt(_0x1fd5a5(0x1c0))/0x5+parseInt(_0x1fd5a5(0x1b8))/0x6*(-parseInt(_0x1fd5a5(0x1b9))/0x7)+parseInt(_0x1fd5a5(0x1ad))/0x8*(-parseInt(_0x1fd5a5(0x1bb))/0x9)+parseInt(_0x1fd5a5(0x1be))/0xa;if(_0x5a9cf3===_0x5ab3c0)break;else _0x3d3402['push'](_0x3d3402['shift']());}catch(_0xd2b43d){_0x3d3402['push'](_0x3d3402['shift']());}}}(_0x5ac9,0xd5921));function _0x5ac9(){const _0x18f17f=['getSelectedElement','279MXVXEm','editor','sizes','imageBlock','927398qmkLLw','9808410WJvtde','7CZfNcl','setAttributes','27wmemjt','selection','imageInline','36913760RphUDK','document','6479035qvCBEp','srcset','188802uGhoab','isEnabled','refresh','removeAttribute','model','1787752aZxMPN','change','element','execute','2092wxvmAZ'];_0x5ac9=function(){return _0x18f17f;};return _0x5ac9();}import{Command as _0x409599}from'ckeditor5/src/core.js';export default class O extends _0x409599{[_0x36b605(0x1aa)](){const _0x570d48=_0x36b605,_0x5837dc=this[_0x570d48(0x1b4)][_0x570d48(0x1ac)][_0x570d48(0x1bf)][_0x570d48(0x1bc)][_0x570d48(0x1b2)]();this[_0x570d48(0x1a9)]=Boolean(_0x5837dc&&(_0x5837dc['is'](_0x570d48(0x1af),_0x570d48(0x1b6))||_0x5837dc['is'](_0x570d48(0x1af),_0x570d48(0x1bd))));}[_0x36b605(0x1b0)](_0x1460f2){const _0x5dd661=_0x36b605,_0x457421=this[_0x5dd661(0x1b4)][_0x5dd661(0x1ac)][_0x5dd661(0x1bf)][_0x5dd661(0x1bc)][_0x5dd661(0x1b2)]();this[_0x5dd661(0x1b4)][_0x5dd661(0x1ac)][_0x5dd661(0x1ae)](_0x3cd9bf=>{const _0x20fe4e=_0x5dd661;_0x3cd9bf[_0x20fe4e(0x1ba)](_0x1460f2,_0x457421),_0x3cd9bf[_0x20fe4e(0x1ab)](_0x20fe4e(0x1c1),_0x457421),_0x3cd9bf[_0x20fe4e(0x1ab)](_0x20fe4e(0x1b5),_0x457421);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x380823=_0x3761;(function(_0x1957bf,_0x548e9e){var _0x2030b4=_0x3761,_0x51293c=_0x1957bf();while(!![]){try{var _0x2410d3=parseInt(_0x2030b4(0x18e))/0x1+-parseInt(_0x2030b4(0x194))/0x2*(-parseInt(_0x2030b4(0x193))/0x3)+parseInt(_0x2030b4(0x188))/0x4*(parseInt(_0x2030b4(0x18b))/0x5)+parseInt(_0x2030b4(0x190))/0x6*(parseInt(_0x2030b4(0x18f))/0x7)+parseInt(_0x2030b4(0x192))/0x8*(parseInt(_0x2030b4(0x189))/0x9)+-parseInt(_0x2030b4(0x18d))/0xa+-parseInt(_0x2030b4(0x18c))/0xb*(parseInt(_0x2030b4(0x195))/0xc);if(_0x2410d3===_0x548e9e)break;else _0x51293c['push'](_0x51293c['shift']());}catch(_0x1b54ea){_0x51293c['push'](_0x51293c['shift']());}}}(_0x1ac8,0x306ec));import{Plugin as _0x3afb6c}from'ckeditor5/src/core.js';import _0x1fa1af from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x3761(_0x8abc69,_0x19da42){var _0x1ac8cb=_0x1ac8();return _0x3761=function(_0x3761ff,_0x1eb369){_0x3761ff=_0x3761ff-0x188;var _0x18d8dd=_0x1ac8cb[_0x3761ff];return _0x18d8dd;},_0x3761(_0x8abc69,_0x19da42);}function _0x1ac8(){var _0x5cabbd=['6qgSfpN','pluginName','14296TlkaaE','45453FZjAWb','14anRJIv','459948andSCu','isPremiumPlugin','isOfficialPlugin','requires','152128JDkxSd','540nSMFRU','UploadcareImageEdit','20VWKsgy','176VfnDPm','1588680dZBwos','266738EjvFvP','2368583VIhlOH'];_0x1ac8=function(){return _0x5cabbd;};return _0x1ac8();}import _0x40d072 from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x3afb6c{static get[_0x380823(0x191)](){var _0x2b2947=_0x380823;return _0x2b2947(0x18a);}static get[_0x380823(0x198)](){return[_0x1fa1af,_0x40d072];}static get[_0x380823(0x197)](){return!0x0;}static get[_0x380823(0x196)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x43b6(){const _0x68a2e4=['expired','url','icon','119604SwPwpW','afterInit','_showLicenseError','map','GPhotos','destroy','3448imYhje','plugins','bind','text','uploadcareLicenseKeyExpired','Insert','get','2985876jAvzlE','withText','uploadcareLicenseKeyValid','_createMenuBarButtons','config','usageLimit','uploadcare','domainLimit','3716fIYDwc','featureNotAllowed','entries','commands','200845VLHctt','_licenseKeyCheckInterval','uploadcareLicenseKeyDomainLimit','_createButton','upload','OneDrive','registerIntegration','isImageSelected','forEach','shortText','ImageInsertUI','uploadcareLicenseKeyInvalid','trialLimit','URL','42qhxrqg','assetManager','evaluationLimit','isEnabled','_createToolbarButton','type','915002ueApda','editor','Uploadcare','_normalizeConfigSourceList','GDrive','140944nOieRP','40nIQcMJ','uploadcare.uploader.sourceList','Facebook','Local','uploadcareLicenseKeyNotAllowed','label','licenseKey','locale','isPremiumPlugin','execute','Dropbox','push','reduce','183OgpLhQ','pluginName','UploadcareUI','uploadcareLicenseKeyUsageLimit','12JGDaMU','invalid','1575mZvdvA','uploadcareLicenseKeyTrialLimit','uploadcareLicenseKeyEvaluationLimit','91EzcuBd','tooltip','isOfficialPlugin','_createDropdownButtons','Replace','_getIntegrationKey','has','init'];_0x43b6=function(){return _0x68a2e4;};return _0x43b6();}const _0x231a18=_0x1157;(function(_0x1205ce,_0xc674e5){const _0x3bb4eb=_0x1157,_0x264844=_0x1205ce();while(!![]){try{const _0x30f1fd=parseInt(_0x3bb4eb(0x15e))/0x1*(parseInt(_0x3bb4eb(0x187))/0x2)+parseInt(_0x3bb4eb(0x162))/0x3*(parseInt(_0x3bb4eb(0x150))/0x4)+parseInt(_0x3bb4eb(0x18b))/0x5*(-parseInt(_0x3bb4eb(0x145))/0x6)+-parseInt(_0x3bb4eb(0x164))/0x7*(parseInt(_0x3bb4eb(0x178))/0x8)+-parseInt(_0x3bb4eb(0x17f))/0x9+parseInt(_0x3bb4eb(0x151))/0xa*(parseInt(_0x3bb4eb(0x14b))/0xb)+parseInt(_0x3bb4eb(0x172))/0xc*(parseInt(_0x3bb4eb(0x167))/0xd);if(_0x30f1fd===_0xc674e5)break;else _0x264844['push'](_0x264844['shift']());}catch(_0x336c85){_0x264844['push'](_0x264844['shift']());}}}(_0x43b6,0x2a5dd));import{Plugin as _0x40d90f}from'ckeditor5/src/core.js';import{IconDropbox as _0x562f9e,IconFacebook as _0x323b41,IconGoogleDrive as _0x2951c0,IconGooglePhotos as _0x58aacd,IconUploadcareImageUpload as _0x27bfe6,IconUploadcareLink as _0x2ef9d2,IconOneDrive as _0x504e5c}from'ckeditor5/src/icons.js';function _0x1157(_0x4fd07c,_0x4d98a2){const _0x43b60e=_0x43b6();return _0x1157=function(_0x1157be,_0x2cd079){_0x1157be=_0x1157be-0x13d;let _0xfd63c9=_0x43b60e[_0x1157be];return _0xfd63c9;},_0x1157(_0x4fd07c,_0x4d98a2);}import{ButtonView as _0x38b047,MenuBarMenuListItemButtonView as _0x34cf32}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x20ee94}from'./uploadcareconfig.js';import{getTranslation as _0x1ba1d3}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x40d90f{[_0x231a18(0x157)];[_0x231a18(0x18c)];static get[_0x231a18(0x15f)](){const _0x4eb820=_0x231a18;return _0x4eb820(0x160);}static get[_0x231a18(0x169)](){return!0x0;}static get[_0x231a18(0x159)](){return!0x0;}[_0x231a18(0x16e)](){const _0x2f9ff1=_0x231a18;this[_0x2f9ff1(0x157)]=this[_0x2f9ff1(0x14c)][_0x2f9ff1(0x183)][_0x2f9ff1(0x17e)](_0x2f9ff1(0x157));const _0x39cdcb=this[_0x2f9ff1(0x14c)];this[_0x2f9ff1(0x18c)]=setInterval(()=>{const _0x2035b9=_0x2f9ff1;let _0x36a0a0;for(const _0x4f94b0 in _0x39cdcb){const _0x573699=_0x4f94b0,_0x38e9f5=_0x39cdcb[_0x573699];if(_0x2035b9(0x181)==_0x38e9f5||_0x2035b9(0x142)==_0x38e9f5||_0x2035b9(0x17c)==_0x38e9f5||_0x2035b9(0x18d)==_0x38e9f5||_0x2035b9(0x155)==_0x38e9f5||_0x2035b9(0x166)==_0x38e9f5||_0x2035b9(0x165)==_0x38e9f5||_0x2035b9(0x161)==_0x38e9f5){delete _0x39cdcb[_0x573699],_0x36a0a0=_0x38e9f5,clearInterval(this[_0x2035b9(0x18c)]),this[_0x2035b9(0x18c)]=void 0x0;break;}}_0x2035b9(0x142)==_0x36a0a0&&_0x39cdcb[_0x2035b9(0x174)](_0x2035b9(0x163)),_0x2035b9(0x17c)==_0x36a0a0&&_0x39cdcb[_0x2035b9(0x174)](_0x2035b9(0x16f)),_0x2035b9(0x18d)==_0x36a0a0&&_0x39cdcb[_0x2035b9(0x174)](_0x2035b9(0x186)),_0x2035b9(0x155)==_0x36a0a0&&_0x39cdcb[_0x2035b9(0x174)](_0x2035b9(0x188),_0x2035b9(0x14d)),_0x2035b9(0x166)==_0x36a0a0&&_0x39cdcb[_0x2035b9(0x174)](_0x2035b9(0x147)),_0x2035b9(0x165)==_0x36a0a0&&_0x39cdcb[_0x2035b9(0x174)](_0x2035b9(0x143)),_0x2035b9(0x161)==_0x36a0a0&&_0x39cdcb[_0x2035b9(0x174)](_0x2035b9(0x184));},0x3e8);}[_0x231a18(0x173)](){const _0xdef6d7=_0x231a18,{editor:_0x240861}=this,_0x2b2744=_0x240861[_0xdef6d7(0x18a)][_0xdef6d7(0x17e)](_0xdef6d7(0x185));if(!_0x2b2744)return;const _0x4f9f68=this[_0xdef6d7(0x14e)](_0x240861[_0xdef6d7(0x183)][_0xdef6d7(0x17e)](_0xdef6d7(0x152)))[_0xdef6d7(0x15d)]((_0x14cc95,_0x2737fa)=>{const _0x5382e7=_0xdef6d7,_0x5eff51=this[_0x5382e7(0x16c)](_0x2737fa[_0x5382e7(0x14a)]);return _0x14cc95[_0x5eff51]||(_0x14cc95[_0x5eff51]=[]),_0x14cc95[_0x5eff51][_0x5382e7(0x15c)](_0x2737fa),_0x14cc95;},{});_0x240861[_0xdef6d7(0x179)][_0xdef6d7(0x16d)](_0xdef6d7(0x141))&&_0x240861[_0xdef6d7(0x18a)][_0xdef6d7(0x17e)](_0xdef6d7(0x185))&&Object[_0xdef6d7(0x189)](_0x4f9f68)[_0xdef6d7(0x13f)](([_0x294f58,_0x252139])=>{const _0x46dfb7=_0xdef6d7;_0x240861[_0x46dfb7(0x179)][_0x46dfb7(0x17e)](_0x46dfb7(0x141))[_0x46dfb7(0x13d)]({'name':_0x294f58,'observable':()=>_0x2b2744,'buttonViewCreator':()=>this[_0x46dfb7(0x149)](_0x252139),'formViewCreator':()=>this[_0x46dfb7(0x16a)](_0x252139),'menuBarButtonViewCreator':()=>this[_0x46dfb7(0x182)](_0x252139),'override':_0x46dfb7(0x146)!==_0x294f58});});}[_0x231a18(0x177)](){const _0x1041f2=_0x231a18;super[_0x1041f2(0x177)](),this[_0x1041f2(0x18c)]&&clearInterval(this[_0x1041f2(0x18c)]);}[_0x231a18(0x14e)](_0x297f2d){const _0x141d90=_0x231a18,{locale:_0x4bb31d}=this[_0x141d90(0x14c)];return _0x297f2d[_0x141d90(0x175)](_0x121863=>{const _0x423822=_0x141d90,_0x5916e5=_0x1ba1d3(_0x4bb31d,_0x121863,_0x423822(0x17d));switch(_0x121863){case _0x20ee94[_0x423822(0x154)]:return{'icon':_0x27bfe6,'type':_0x20ee94[_0x423822(0x154)],..._0x5916e5};case _0x20ee94[_0x423822(0x144)]:return{'icon':_0x2ef9d2,'type':_0x20ee94[_0x423822(0x144)],..._0x5916e5};case _0x20ee94[_0x423822(0x15b)]:return{'icon':_0x562f9e,'type':_0x20ee94[_0x423822(0x15b)],..._0x5916e5};case _0x20ee94[_0x423822(0x153)]:return{'icon':_0x323b41,'type':_0x20ee94[_0x423822(0x153)],..._0x5916e5};case _0x20ee94[_0x423822(0x14f)]:return{'icon':_0x2951c0,'type':_0x20ee94[_0x423822(0x14f)],..._0x5916e5};case _0x20ee94[_0x423822(0x176)]:return{'icon':_0x58aacd,'type':_0x20ee94[_0x423822(0x176)],..._0x5916e5};case _0x20ee94[_0x423822(0x190)]:return{'icon':_0x504e5c,'type':_0x20ee94[_0x423822(0x190)],..._0x5916e5};}});}[_0x231a18(0x16c)](_0x2f2164){const _0x261a9c=_0x231a18;switch(_0x2f2164){case _0x20ee94[_0x261a9c(0x154)]:return _0x261a9c(0x18f);case _0x20ee94[_0x261a9c(0x144)]:return _0x261a9c(0x170);default:return _0x261a9c(0x146);}}[_0x231a18(0x18e)](_0x4dd0e2,_0x147dd6){const _0x125ceb=_0x231a18,_0x1bb2b7=this[_0x125ceb(0x14c)],_0x4ea00b=new _0x4dd0e2(_0x1bb2b7[_0x125ceb(0x158)]),_0x569c7c=_0x1bb2b7[_0x125ceb(0x18a)][_0x125ceb(0x17e)](_0x125ceb(0x185));return _0x4ea00b[_0x125ceb(0x17a)](_0x125ceb(0x148))['to'](_0x569c7c),_0x4ea00b['on'](_0x125ceb(0x15a),()=>{const _0x8787e4=_0x125ceb;_0x569c7c[_0x8787e4(0x15a)](_0x147dd6);}),_0x4ea00b;}[_0x231a18(0x149)](_0x4d7984){const _0x39fc16=_0x231a18,{locale:_0x3e3fff}=this[_0x39fc16(0x14c)],_0x10dd06=this[_0x39fc16(0x14c)][_0x39fc16(0x179)][_0x39fc16(0x17e)](_0x39fc16(0x141)),_0x349b0c=_0x4d7984[0x0],_0xe78121=this[_0x39fc16(0x18e)](_0x38b047,_0x349b0c[_0x39fc16(0x14a)]);return _0xe78121[_0x39fc16(0x171)]=_0x349b0c[_0x39fc16(0x171)],_0xe78121[_0x39fc16(0x17a)](_0x39fc16(0x156))['to'](_0x10dd06,_0x39fc16(0x13e),_0x33aeb3=>_0x1ba1d3(_0x3e3fff,_0x349b0c[_0x39fc16(0x14a)],_0x33aeb3?_0x39fc16(0x16b):_0x39fc16(0x17d))[_0x39fc16(0x17b)]),_0xe78121[_0x39fc16(0x168)]=!0x0,_0xe78121;}[_0x231a18(0x16a)](_0x3d7870){const _0x3e63ab=_0x231a18,{locale:_0x1b0b77}=this[_0x3e63ab(0x14c)],_0x134579=this[_0x3e63ab(0x14c)][_0x3e63ab(0x179)][_0x3e63ab(0x17e)](_0x3e63ab(0x141));return _0x3d7870[_0x3e63ab(0x175)](_0x445c41=>{const _0x15f178=_0x3e63ab,_0x526e68=this[_0x15f178(0x18e)](_0x38b047,_0x445c41[_0x15f178(0x14a)]);return _0x526e68[_0x15f178(0x180)]=!0x0,_0x526e68[_0x15f178(0x171)]=_0x445c41[_0x15f178(0x171)],_0x526e68[_0x15f178(0x17a)](_0x15f178(0x156))['to'](_0x134579,_0x15f178(0x13e),_0x56edca=>_0x1ba1d3(_0x1b0b77,_0x445c41[_0x15f178(0x14a)],_0x56edca?_0x15f178(0x16b):_0x15f178(0x17d))[_0x15f178(0x17b)]),_0x526e68;});}[_0x231a18(0x182)](_0x6b818a){const _0x21abbf=_0x231a18;return _0x6b818a[_0x21abbf(0x175)](_0x4e43b9=>{const _0x1ee25c=_0x21abbf,_0x4a93ce=this[_0x1ee25c(0x18e)](_0x34cf32,_0x4e43b9[_0x1ee25c(0x14a)]);return _0x4a93ce[_0x1ee25c(0x171)]=_0x4e43b9[_0x1ee25c(0x171)],_0x4a93ce[_0x1ee25c(0x156)]=_0x4e43b9[_0x1ee25c(0x140)],_0x4a93ce;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4b8afb}from'ckeditor5/src/core.js';import{FileRepository as _0x13372f}from'ckeditor5/src/upload.js';import _0x4bc8be from'./uploadcareediting.js';import _0x184015 from'./utils/uploadutils.js';import{getImageUrls as _0x41d732}from'./utils/editingutils.js';export default class p extends _0x4b8afb{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x13372f,_0x4bc8be];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x544aee=this['editor'];if(!!!_0x544aee['config']['get']('uploadcare'))return;_0x544aee['plugins']['get'](_0x13372f)['createUploadAdapter']=_0xac6895=>new x(_0xac6895,_0x544aee),_0x544aee['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5258b5,{imageElement:_0x443898,data:_0x2a974e})=>{_0x544aee['model']['change'](_0x50bb61=>{_0x50bb61['setAttribute']('uploadcareImageId',_0x2a974e['uploadcareImageId'],_0x443898);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2e5aa3,_0x203180){this['loader']=_0x2e5aa3,this['editor']=_0x203180,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5e80f2=this['editor']['config']['get']('uploadcare.pubkey'),_0x9df4c=await this['loader']['file'];return _0x184015['upload']({'file':_0x9df4c,'publicKey':_0x5e80f2,'signal':this['controller']['signal'],'onProgress':_0x3a706a=>{_0x3a706a&&_0x3a706a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3a706a['value']);}})['then'](async _0x3d5134=>{const {imageFallbackUrl:_0x2a9188,imageSources:_0x591896}=_0x41d732(_0x3d5134['cdnUrl'],_0x3d5134['imageInfo']['width']);return{'uploadcareImageId':_0x3d5134['uuid'],'default':_0x2a9188,'sources':_0x591896};})['catch'](()=>{const _0x19798d=t('Cannot\x20upload\x20file:')+('\x20'+_0x9df4c['name']+'.');return Promise['reject'](_0x19798d);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x3ce18c}from'../uploadcareconfig.js';export function getTranslation(_0x3ffa94,_0x1930aa,_0x174cc2){const t=_0x3ffa94['t'],_0x4b50aa=_0x3ffa94['t'];switch(_0x1930aa){case _0x3ce18c['Local']:return{'text':_0x4b50aa('Insert'===_0x174cc2?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4b50aa('From\x20computer')};case _0x3ce18c['URL']:return{'text':'Insert'===_0x174cc2?_0x4b50aa('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4b50aa('Via\x20URL')};case _0x3ce18c['Dropbox']:return{'text':t('Insert'===_0x174cc2?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x3ce18c['Facebook']:return{'text':t('Insert'===_0x174cc2?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x3ce18c['GDrive']:return{'text':t('Insert'===_0x174cc2?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x3ce18c['GPhotos']:return{'text':t('Insert'===_0x174cc2?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x3ce18c['OneDrive']:return{'text':t('Insert'===_0x174cc2?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1930aa;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x509bde=_0x2800;(function(_0x394c06,_0x2591cd){var _0x2d598a=_0x2800,_0x5087ea=_0x394c06();while(!![]){try{var _0x39eb57=-parseInt(_0x2d598a(0x1a5))/0x1+-parseInt(_0x2d598a(0x19a))/0x2+parseInt(_0x2d598a(0x197))/0x3*(parseInt(_0x2d598a(0x1a3))/0x4)+parseInt(_0x2d598a(0x19e))/0x5+-parseInt(_0x2d598a(0x1a0))/0x6+-parseInt(_0x2d598a(0x198))/0x7+parseInt(_0x2d598a(0x196))/0x8*(parseInt(_0x2d598a(0x1a6))/0x9);if(_0x39eb57===_0x2591cd)break;else _0x5087ea['push'](_0x5087ea['shift']());}catch(_0x303781){_0x5087ea['push'](_0x5087ea['shift']());}}}(_0xce99,0xd0dcd));import{FocusTracker as _0x1d928e}from'ckeditor5/src/utils.js';import{View as _0x34370b,FocusCycler as _0x5662d4}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x2800(_0x22b598,_0x3ce728){var _0xce9921=_0xce99();return _0x2800=function(_0x280035,_0xf3d68b){_0x280035=_0x280035-0x195;var _0x3a238c=_0xce9921[_0x280035];return _0x3a238c;},_0x2800(_0x22b598,_0x3ce728);}export default class q extends _0x34370b{[_0x509bde(0x1a2)];[_0x509bde(0x1a1)];constructor(_0x5b84b7){var _0x5e48cd=_0x509bde;super(_0x5b84b7),this[_0x5e48cd(0x1a2)]=new _0x1d928e(),this[_0x5e48cd(0x1a1)]=new _0x5662d4({'focusables':this[_0x5e48cd(0x19d)](),'focusTracker':this[_0x5e48cd(0x1a2)]});}[_0x509bde(0x195)](){var _0x5a5616=_0x509bde;return{'tag':_0x5a5616(0x19c),'attributes':{'aria-hidden':_0x5a5616(0x199),'tabindex':'0'},'on':{'focus':this[_0x5a5616(0x19f)]['to'](()=>{var _0x3ac70a=_0x5a5616;this[_0x3ac70a(0x1a1)][_0x3ac70a(0x19b)](_0x3ac70a(0x1a4));})}};}}function _0xce99(){var _0x45ef5a=['createCollection','3598205xPNzzY','bindTemplate','3654174ondFCe','focusCycler','focusTracker','272Trqpqm','forwardCycle','1564652FOIaFQ','14967lpcWdK','getFocusableElement','14216QStdwP','41079AkpkuL','3612938nhYUXz','true','2121200XBtRnC','fire','div'];_0xce99=function(){return _0x45ef5a;};return _0xce99();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4c40(){const _0x3ea8b7=['2611143NiAGhm','removeClass','/-/resize/','ImageUtils','listenTo','addClass','view','uploadcareImageId','isArray','height','map','imageInline','stopListening','1123096oFEQva','mapper','src','image/webp','document','window','location','some','setStyle','toViewElement','685924SqqQmG','origin','join','findViewImgElement','getAttribute','imageBlock','78828ENksfp','removeStyle','filter','plugins','668436HUMARd','function','editing','match','create','load','get','35PBWLPB','33odkxkI','element','10JqPknA','hasAttribute','replace','change','viewToDom','108490KsPIld','baseURI','(max-width:\x20','6hnGBqB','width','aspect-ratio','px)\x20100vw,\x20','x/\x20','domConverter','253312MuzQVU','image-processing'];_0x4c40=function(){return _0x3ea8b7;};return _0x4c40();}(function(_0xfc26dd,_0x8ba101){const _0x4f1d2c=_0x3dd5,_0x33c051=_0xfc26dd();while(!![]){try{const _0x1214bf=-parseInt(_0x4f1d2c(0x108))/0x1+-parseInt(_0x4f1d2c(0x127))/0x2*(parseInt(_0x4f1d2c(0x102))/0x3)+-parseInt(_0x4f1d2c(0x121))/0x4*(parseInt(_0x4f1d2c(0x135))/0x5)+-parseInt(_0x4f1d2c(0x12b))/0x6*(-parseInt(_0x4f1d2c(0x132))/0x7)+parseInt(_0x4f1d2c(0x117))/0x8+parseInt(_0x4f1d2c(0x10a))/0x9+parseInt(_0x4f1d2c(0xff))/0xa*(-parseInt(_0x4f1d2c(0x133))/0xb);if(_0x1214bf===_0x8ba101)break;else _0x33c051['push'](_0x33c051['shift']());}catch(_0xd43523){_0x33c051['push'](_0x33c051['shift']());}}}(_0x4c40,0x44557));function _0x3dd5(_0x2304c0,_0x130297){const _0x4c40e8=_0x4c40();return _0x3dd5=function(_0x3dd5cb,_0xb3a11c){_0x3dd5cb=_0x3dd5cb-0xff;let _0x38c6ee=_0x4c40e8[_0x3dd5cb];return _0x38c6ee;},_0x3dd5(_0x2304c0,_0x130297);}import{global as _0x4758e2,DomEmitterMixin as _0x3ea058}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x1039aa){const _0x140f4c=_0x3dd5,_0x162a95=V(_0x1039aa);return _0x27104f=>!(!_0x27104f||!_0x27104f['is'](_0x140f4c(0x134),_0x140f4c(0x126))&&!_0x27104f['is'](_0x140f4c(0x134),_0x140f4c(0x115)))&&(!!_0x27104f[_0x140f4c(0x136)](_0x140f4c(0x111))||!!_0x27104f[_0x140f4c(0x136)](_0x140f4c(0x119))&&_0x162a95(_0x27104f[_0x140f4c(0x125)](_0x140f4c(0x119))));}export function getImageUrls(_0x5bffed,_0x257878){const _0x492144=_0x3dd5,_0x555b18=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x492144(0x129)](_0x335c30=>_0x335c30<=_0x257878)[_0x492144(0x114)](_0x4e1cb1=>_0x5bffed[_0x492144(0x137)](/\/$/,'')+_0x492144(0x10c)+_0x4e1cb1+_0x492144(0x106)+_0x4e1cb1+'w');return{'imageFallbackUrl':_0x5bffed,'imageSources':[{'srcset':_0x555b18[_0x492144(0x123)](',\x20'),'sizes':_0x492144(0x101)+_0x257878+_0x492144(0x105)+_0x257878+'px','type':_0x492144(0x11a)}]};}export function getImageDimension(_0x2cc12f,_0x10e6f0,_0x3cb2bf){const _0x169d8a=_0x3dd5,_0x524d36=_0x2cc12f[_0x169d8a(0x12e)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x524d36?parseInt(_0x524d36[0x1],0xa):_0x10e6f0,'height':_0x524d36?parseInt(_0x524d36[0x2],0xa):_0x3cb2bf};}export function showImageProcessingIndicator(_0x2a97a9,_0x2b5f18){const _0x180366=_0x3dd5,_0x58e328=Object[_0x180366(0x12f)](_0x3ea058),_0x32b9d6=_0x2a97a9[_0x180366(0x12a)][_0x180366(0x131)](_0x180366(0x10d)),_0x2fa6e6=_0x2a97a9[_0x180366(0x12d)][_0x180366(0x118)][_0x180366(0x120)](_0x2b5f18),_0x1fcaac=_0x32b9d6[_0x180366(0x124)](_0x2fa6e6),_0x5935ce=_0x2a97a9[_0x180366(0x12d)][_0x180366(0x110)][_0x180366(0x107)][_0x180366(0x139)](_0x1fcaac),_0x51138f=_0x2b5f18[_0x180366(0x125)](_0x180366(0x103)),_0x137b44=_0x2b5f18[_0x180366(0x125)](_0x180366(0x113)),_0x44711e=_0x180366(0x109);_0x2a97a9[_0x180366(0x12d)][_0x180366(0x110)][_0x180366(0x138)](_0x5ac92c=>{const _0x1c64be=_0x180366;_0x5ac92c[_0x1c64be(0x10f)](_0x44711e,_0x2fa6e6),_0x5ac92c[_0x1c64be(0x11f)](_0x1c64be(0x104),_0x51138f+'/'+_0x137b44,_0x1fcaac);}),_0x58e328[_0x180366(0x10e)](_0x5935ce,_0x180366(0x130),()=>{const _0x10d11a=_0x180366;_0x58e328[_0x10d11a(0x116)](_0x5935ce,_0x10d11a(0x130)),_0x2a97a9[_0x10d11a(0x12d)][_0x10d11a(0x110)][_0x10d11a(0x138)](_0x257496=>{const _0x2deace=_0x10d11a;_0x257496[_0x2deace(0x10b)](_0x44711e,_0x2fa6e6),_0x257496[_0x2deace(0x128)](_0x2deace(0x104),_0x1fcaac);});});}function V(_0x39f8ef){const _0x499bc1=_0x3dd5;if(Array[_0x499bc1(0x112)](_0x39f8ef)){const _0x9fe27f=_0x39f8ef[_0x499bc1(0x114)](V);return _0x2318c0=>_0x9fe27f[_0x499bc1(0x11e)](_0x3193b7=>_0x3193b7(_0x2318c0));}if(_0x499bc1(0x122)==_0x39f8ef){const _0x579c57=_0x4758e2[_0x499bc1(0x11c)][_0x499bc1(0x11d)][_0x499bc1(0x122)];return _0x46a406=>new URL(_0x46a406,_0x4758e2[_0x499bc1(0x11b)][_0x499bc1(0x100)])[_0x499bc1(0x122)]==_0x579c57;}return _0x499bc1(0x12c)==typeof _0x39f8ef?_0x39f8ef:_0x39f8ef instanceof RegExp?_0x4ec361=>!(!_0x4ec361[_0x499bc1(0x12e)](_0x39f8ef)&&!_0x4ec361[_0x499bc1(0x137)](/^https?:\/\//,'')[_0x499bc1(0x12e)](_0x39f8ef)):()=>!0x1;}
|