@ckeditor/ckeditor5-uploadcare 45.1.0 → 45.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x134633=_0x3a65;(function(_0xa7c1c7,_0x4e7751){const _0x1fe6df=_0x3a65,_0x5ddb4b=_0xa7c1c7();while(!![]){try{const _0x778c7b=-parseInt(_0x1fe6df(0xb9))/0x1+-parseInt(_0x1fe6df(0x9b))/0x2*(parseInt(_0x1fe6df(0xa1))/0x3)+-parseInt(_0x1fe6df(0xe4))/0x4*(-parseInt(_0x1fe6df(0xa8))/0x5)+-parseInt(_0x1fe6df(0xaa))/0x6*(parseInt(_0x1fe6df(0xe9))/0x7)+-parseInt(_0x1fe6df(0xce))/0x8*(-parseInt(_0x1fe6df(0xd4))/0x9)+-parseInt(_0x1fe6df(0xe0))/0xa*(-parseInt(_0x1fe6df(0x9e))/0xb)+-parseInt(_0x1fe6df(0x9a))/0xc;if(_0x778c7b===_0x4e7751)break;else _0x5ddb4b['push'](_0x5ddb4b['shift']());}catch(_0x641c21){_0x5ddb4b['push'](_0x5ddb4b['shift']());}}}(_0x4446,0x32951));import{Plugin as _0x39a3db}from'ckeditor5/src/core.js';import{Dialog as _0x7df7ca}from'ckeditor5/src/ui.js';import{createElement as _0x3d2b89,global as _0x418801,uid as _0x523551}from'ckeditor5/src/utils.js';import _0x5bd140 from'./uploadcarecommand.js';import _0x2749c9 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5c6305}from'./utils/editingutils.js';function _0x3a65(_0x3df17e,_0x18be4e){const _0x44467a=_0x4446();return _0x3a65=function(_0x3a656f,_0x24fe54){_0x3a656f=_0x3a656f-0x97;let _0xb20c98=_0x44467a[_0x3a656f];return _0xb20c98;},_0x3a65(_0x3df17e,_0x18be4e);}export default class i extends _0x39a3db{[_0x134633(0x99)]=null;[_0x134633(0x9c)]=null;static get[_0x134633(0xa3)](){const _0x2d2373=_0x134633;return _0x2d2373(0xb8);}static get[_0x134633(0xbe)](){const _0x10b33a=_0x134633;return[_0x10b33a(0xc5),_0x2749c9,_0x7df7ca];}static get[_0x134633(0xb2)](){return!0x0;}static get[_0x134633(0xd7)](){return!0x0;}get[_0x134633(0xba)](){const _0x3c759e=_0x134633;return this[_0x3c759e(0x99)];}get[_0x134633(0xd8)](){const _0x3c92a1=_0x134633;return this[_0x3c92a1(0x9c)];}[_0x134633(0xa7)](){const _0x2c260f=_0x134633,_0x7b6909=this[_0x2c260f(0xac)];_0x7b6909[_0x2c260f(0xc8)][_0x2c260f(0xcd)](_0x2c260f(0xbd),new _0x5bd140(_0x7b6909));}[_0x134633(0xdd)](){const _0x23cab9=_0x134633;this[_0x23cab9(0xa5)](),this[_0x23cab9(0xb5)](),this[_0x23cab9(0xcc)](),this[_0x23cab9(0xc4)](),this[_0x23cab9(0xd5)](),this[_0x23cab9(0xd2)](this[_0x23cab9(0xac)],_0x23cab9(0xd6),()=>{const _0x5b80af=_0x23cab9;this[_0x5b80af(0x99)]&&(this[_0x5b80af(0x99)][_0x5b80af(0xaf)](),this[_0x5b80af(0x99)]=null),this[_0x5b80af(0x9c)]&&(this[_0x5b80af(0x9c)][_0x5b80af(0xaf)](),this[_0x5b80af(0x9c)]=null);const _0x331309=_0x418801[_0x5b80af(0xd9)][_0x5b80af(0xa6)](_0x5b80af(0xc6));_0x331309&&_0x331309[_0x5b80af(0xaf)]();}),async function(_0x34baa2){const _0x2ca30c=_0x42c0b8([0x36,0x42,0x57,0x56,0x64,0x6b,0x49,0x43,0x4b,0x6f,0x45,0x4d,0x62,0x78,0x33,0x44,0x76,0x41,0x67,0x6c,0x37,0x75,0x53,0x54,0x34,0x65,0x6e,0x74,0x35,0x55,0x4a,0x32,0x51,0x6a,0x4e,0x52,0x48,0x73,0x6d,0x4f,0x31,0x72,0x71,0x5a,0x63,0x38,0x46,0x61,0x79,0x77,0x7a,0x47,0x4c,0x58,0x39,0x50,0x59,0x69,0x68,0x66,0x70,0x30]),_0x5be6b9=0x5fd169e0,_0x21684d=0x5fd60e30^_0x5be6b9,_0x5f5432=window[_0x42c0b8([0x44,0x61,0x74,0x65])][_0x42c0b8([0x6e,0x6f,0x77])](),_0x15a79e=_0x34baa2[_0x42c0b8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x461195=new window[(_0x42c0b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a56b8=>{_0x15a79e[_0x42c0b8([0x6f,0x6e,0x63,0x65])](_0x42c0b8([0x72,0x65,0x61,0x64,0x79]),_0x3a56b8);}),_0x266ab6={[_0x42c0b8([0x6b,0x74,0x79])]:_0x42c0b8([0x45,0x43]),[_0x42c0b8([0x75,0x73,0x65])]:_0x42c0b8([0x73,0x69,0x67]),[_0x42c0b8([0x63,0x72,0x76])]:_0x42c0b8([0x50,0x2d,0x32,0x35,0x36]),[_0x42c0b8([0x78])]:_0x42c0b8([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]),[_0x42c0b8([0x79])]:_0x42c0b8([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]),[_0x42c0b8([0x61,0x6c,0x67])]:_0x42c0b8([0x45,0x53,0x32,0x35,0x36])},_0x40ced9=_0x15a79e[_0x42c0b8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42c0b8([0x67,0x65,0x74])](_0x42c0b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6b0356(){let _0x49567a,_0x1b5515=null,_0x5eb8b9=null;try{if(_0x40ced9==_0x42c0b8([0x47,0x50,0x4c]))return _0x42c0b8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x49567a=_0x27aa2f(),!_0x49567a)return _0x42c0b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x49567a[_0x42c0b8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5eb8b9=_0x5218e5(_0x49567a[_0x42c0b8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x49567a[_0x42c0b8([0x6a,0x74,0x69])])),await _0x420c3c()?_0x504f4c()?_0x38a6fe()?_0x42c0b8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2593c9()?(_0x49567a[_0x42c0b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42c0b8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1b5515=_0xc9b946(_0x42c0b8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x49567a[_0x42c0b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42c0b8([0x74,0x72,0x69,0x61,0x6c])&&(_0x1b5515=_0xc9b946(_0x42c0b8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xe9689e()):_0x42c0b8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42c0b8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42c0b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2e3273){return _0x42c0b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38a6fe(){const _0xed4214=[_0x42c0b8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42c0b8([0x74,0x72,0x69,0x61,0x6c])][_0x42c0b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49567a[_0x42c0b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f5432/0x3e8:0xe10*_0x21684d;return _0x49567a[_0x42c0b8([0x65,0x78,0x70])]<_0xed4214;}function _0x504f4c(){const _0x35f0a6=_0x49567a[_0x42c0b8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x35f0a6&&(!!_0x35f0a6[_0x42c0b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42c0b8([0x2a]))||!!_0x35f0a6[_0x42c0b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42c0b8([0x55,0x50,0x4c,0x43])));}function _0x2593c9(){const _0x32af48=_0x3a65,_0x27694e=_0x49567a[_0x42c0b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x27694e||0x0==_0x27694e[_0x42c0b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5792c3}=new URL(window[_0x42c0b8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x32af48(0x97)]);if(_0x27694e[_0x42c0b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5792c3))return!0x0;const _0x1c74d4=_0x5792c3[_0x42c0b8([0x73,0x70,0x6c,0x69,0x74])](_0x42c0b8([0x2e]));return _0x27694e[_0x42c0b8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20a6a3=>_0x20a6a3[_0x42c0b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42c0b8([0x2a])))[_0x42c0b8([0x6d,0x61,0x70])](_0x29c784=>_0x29c784[_0x42c0b8([0x73,0x70,0x6c,0x69,0x74])](_0x42c0b8([0x2e])))[_0x42c0b8([0x73,0x6f,0x6d,0x65])](_0xcda4b6=>_0x1c74d4[_0x42c0b8([0x65,0x76,0x65,0x72,0x79])]((_0x261281,_0x14f1d4)=>_0xcda4b6[_0x14f1d4]===_0x261281||_0xcda4b6[_0x14f1d4]===_0x42c0b8([0x2a])));}function _0xe9689e(){return _0x1b5515&&_0x5eb8b9?new window[(_0x42c0b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40c214,_0x35aeea)=>{_0x1b5515[_0x42c0b8([0x74,0x68,0x65,0x6e])](_0x40c214,_0x35aeea),_0x5eb8b9[_0x42c0b8([0x74,0x68,0x65,0x6e])](_0x30073b=>{_0x30073b!=_0x42c0b8([0x56,0x61,0x6c,0x69,0x64])&&_0x40c214(_0x30073b);},_0x35aeea);}):_0x1b5515||_0x5eb8b9||_0x42c0b8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5218e5(_0x442097,_0x55a50a){return new window[(_0x42c0b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x301bb4=>{if(_0x59871d())return _0x301bb4(_0x42c0b8([0x56,0x61,0x6c,0x69,0x64]));_0x55c05c(),_0x15a79e[_0x42c0b8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42c0b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x54ec0f=!0x1;const _0x6fd43d=_0x523551();function _0x2ec1da(_0x357e9f){return!!_0x357e9f&&(typeof _0x357e9f===_0x42c0b8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x357e9f===_0x42c0b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x357e9f[_0x42c0b8([0x74,0x68,0x65,0x6e])]===_0x42c0b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x357e9f[_0x42c0b8([0x63,0x61,0x74,0x63,0x68])]===_0x42c0b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e197e(_0x1e86cc){_0x244ecc(_0x1e86cc)[_0x42c0b8([0x74,0x68,0x65,0x6e])](_0x11de14=>{if(!_0x11de14||_0x11de14[_0x42c0b8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42c0b8([0x6f,0x6b]))return _0x42c0b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2bad14(_0x4ed344(_0x6fd43d+_0x55a50a))!=_0x11de14[_0x42c0b8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42c0b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42c0b8([0x56,0x61,0x6c,0x69,0x64]);})[_0x42c0b8([0x74,0x68,0x65,0x6e])](_0x56c7be=>(_0x381a94(),_0x56c7be),()=>{const _0x255954=_0x57a2d4();return null==_0x255954?(_0x381a94(),_0x42c0b8([0x56,0x61,0x6c,0x69,0x64])):_0x42c0b8(_0x5f5432-_0x255954>(0x7bddede0^_0x5be6b9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42c0b8([0x74,0x68,0x65,0x6e])](_0x301bb4)[_0x42c0b8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x301bb4(_0x42c0b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1448d1=0x5fe78760^_0x5be6b9;function _0x381a94(){const _0x455383=_0x42c0b8([0x6c,0x6c,0x63,0x74,0x2d])+_0x2bad14(_0x4ed344(_0x442097)),_0x446d43=_0x5d8be3(_0x2bad14(window[_0x42c0b8([0x4d,0x61,0x74,0x68])][_0x42c0b8([0x63,0x65,0x69,0x6c])](_0x5f5432/_0x1448d1)));window[_0x42c0b8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42c0b8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x455383,_0x446d43);}function _0x57a2d4(){const _0x1b867f=_0x42c0b8([0x6c,0x6c,0x63,0x74,0x2d])+_0x2bad14(_0x4ed344(_0x442097)),_0x70132a=window[_0x42c0b8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42c0b8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b867f);return _0x70132a?window[_0x42c0b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d8be3(_0x70132a),0x10)*_0x1448d1:null;}function _0x244ecc(_0xbff657){return new window[(_0x42c0b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b4a17,_0x1271ab)=>{_0xbff657[_0x42c0b8([0x74,0x68,0x65,0x6e])](_0x5b4a17,_0x1271ab),window[_0x42c0b8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1271ab,0x5fd0bd20^_0x5be6b9);});}}_0x15a79e[_0x42c0b8([0x6f,0x6e])](_0x42c0b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x364ffd,_0x2ff41c)=>{if(_0x2ff41c[0x0]!=_0x442097)return _0x301bb4(_0x42c0b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ff41c[0x1]={..._0x2ff41c[0x1],[_0x42c0b8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x6fd43d};},{[_0x42c0b8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42c0b8([0x68,0x69,0x67,0x68])}),_0x15a79e[_0x42c0b8([0x6f,0x6e])](_0x42c0b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x116db6=>{_0x2ec1da(_0x116db6[_0x42c0b8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x54ec0f=!0x0,_0x1e197e(_0x116db6[_0x42c0b8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42c0b8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42c0b8([0x6c,0x6f,0x77])}),_0x461195[_0x42c0b8([0x74,0x68,0x65,0x6e])](()=>{_0x54ec0f||_0x301bb4(_0x42c0b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59871d(){return _0x15a79e[_0x42c0b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42c0b8([0x76,0x69,0x65,0x77])][_0x42c0b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42c0b8([0x61,0x75,0x74,0x6f]);}function _0x55c05c(){_0x15a79e[_0x42c0b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42c0b8([0x76,0x69,0x65,0x77])][_0x42c0b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42c0b8([0x61,0x75,0x74,0x6f]);}}function _0xc9b946(_0x678383){const _0x32eb76=[new window[(_0x42c0b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5aaf69=>setTimeout(_0x5aaf69,0x5fd8572c^_0x5be6b9)),_0x461195[_0x42c0b8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42c0b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x192dce=>{let _0x34f12b=0x0;_0x15a79e[_0x42c0b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x42c0b8([0x6f,0x6e])](_0x42c0b8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d614a,_0x56c73e)=>{_0x56c73e[0x0][_0x42c0b8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x34f12b++,_0x34f12b==(0x5fd16818^_0x5be6b9)&&(_0x192dce(),_0x5d614a[_0x42c0b8([0x6f,0x66,0x66])]());});}))];return window[_0x42c0b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42c0b8([0x72,0x61,0x63,0x65])](_0x32eb76)[_0x42c0b8([0x74,0x68,0x65,0x6e])](()=>_0x678383);}async function _0x54baeb(){await _0x461195,_0x15a79e[_0x42c0b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x42c0b8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1de3f5,_0x15a79e[_0x42c0b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x42c0b8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1de3f5,_0x15a79e[_0x42c0b8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42c0b8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x31b542(_0x10f3b9){const _0x25a56a=_0x325556();_0x15a79e[_0x25a56a]=_0x42c0b8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x10f3b9,_0x10f3b9!=_0x42c0b8([0x56,0x61,0x6c,0x69,0x64])&&_0x54baeb();}function _0x325556(){const _0x3793b3=window[_0x42c0b8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42c0b8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42c0b8([0x6e,0x6f,0x77])]())[_0x42c0b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42c0b8([0x2e]),'');let _0x56e105=_0x42c0b8([0x42]);for(let _0x53dc51=0x0;_0x53dc51<_0x3793b3[_0x42c0b8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53dc51+=0x2){let _0x57a854=window[_0x42c0b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3793b3[_0x42c0b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53dc51,_0x53dc51+0x2));_0x57a854>=_0x2ca30c[_0x42c0b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x57a854-=_0x2ca30c[_0x42c0b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x56e105+=_0x2ca30c[_0x57a854];}return _0x56e105;}function _0x27aa2f(){const _0x553f00=_0x40ced9[_0x42c0b8([0x73,0x70,0x6c,0x69,0x74])](_0x42c0b8([0x2e]));if(0x3!=_0x553f00[_0x42c0b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2324a2(_0x553f00[0x1]);function _0x2324a2(_0x56c55d){const _0x52d5e1=_0x5d60e9(_0x56c55d);return _0x52d5e1&&_0x5b36e5()?_0x52d5e1:null;function _0x5b36e5(){const _0x429755=_0x52d5e1[_0x42c0b8([0x6a,0x74,0x69])],_0x3077be=window[_0x42c0b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x429755[_0x42c0b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x429755[_0x42c0b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x23786e={..._0x52d5e1,[_0x42c0b8([0x6a,0x74,0x69])]:_0x429755[_0x42c0b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x429755[_0x42c0b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x23786e[_0x42c0b8([0x76,0x63])],_0x4ed344(_0x23786e)==_0x3077be;}}}async function _0x420c3c(){let _0x2fa38e=!0x0;try{const _0x324ec7=_0x40ced9[_0x42c0b8([0x73,0x70,0x6c,0x69,0x74])](_0x42c0b8([0x2e])),[_0x4ab517,_0x74f9c3,_0x4e2cec]=_0x324ec7;return _0x115517(_0x4ab517),await _0x415e58(_0x4ab517,_0x74f9c3,_0x4e2cec),_0x2fa38e;}catch(_0x3012d4){return!0x1;}function _0x115517(_0x52f718){const _0x474954=_0x5d60e9(_0x52f718);_0x474954&&_0x474954[_0x42c0b8([0x61,0x6c,0x67])]==_0x42c0b8([0x45,0x53,0x32,0x35,0x36])||(_0x2fa38e=!0x1);}async function _0x415e58(_0x13bfae,_0x3a87bd,_0x4e8b66){const _0x401197=window[_0x42c0b8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42c0b8([0x66,0x72,0x6f,0x6d])](_0x370aa2(_0x4e8b66),_0xea4a72=>_0xea4a72[_0x42c0b8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7b418c=new window[(_0x42c0b8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42c0b8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13bfae+_0x42c0b8([0x2e])+_0x3a87bd),_0x443937=window[_0x42c0b8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42c0b8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x443937)return;const _0x3176e1=await _0x443937[_0x42c0b8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42c0b8([0x6a,0x77,0x6b]),_0x266ab6,{[_0x42c0b8([0x6e,0x61,0x6d,0x65])]:_0x42c0b8([0x45,0x43,0x44,0x53,0x41]),[_0x42c0b8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42c0b8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42c0b8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x443937[_0x42c0b8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42c0b8([0x6e,0x61,0x6d,0x65])]:_0x42c0b8([0x45,0x43,0x44,0x53,0x41]),[_0x42c0b8([0x68,0x61,0x73,0x68])]:{[_0x42c0b8([0x6e,0x61,0x6d,0x65])]:_0x42c0b8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3176e1,_0x401197,_0x7b418c)||(_0x2fa38e=!0x1);}}function _0x5d60e9(_0x2b8d53){return _0x2b8d53[_0x42c0b8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42c0b8([0x65,0x79]))?JSON[_0x42c0b8([0x70,0x61,0x72,0x73,0x65])](_0x370aa2(_0x2b8d53)):null;}function _0x370aa2(_0x115932){return window[_0x42c0b8([0x61,0x74,0x6f,0x62])](_0x115932[_0x42c0b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42c0b8([0x2b]))[_0x42c0b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42c0b8([0x2f])));}function _0x4ed344(_0x1ce4c8){let _0x4b3f2f=0x1505;function _0x428a4e(_0x2c7b9d){for(let _0x133f79=0x0;_0x133f79<_0x2c7b9d[_0x42c0b8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x133f79++){const _0x2e2800=_0x2c7b9d[_0x42c0b8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x133f79);_0x4b3f2f=(_0x4b3f2f<<0x5)+_0x4b3f2f+_0x2e2800,_0x4b3f2f&=_0x4b3f2f;}}function _0x1aed0d(_0x44d134){Array[_0x42c0b8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x44d134)?_0x44d134[_0x42c0b8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1aed0d):_0x44d134&&typeof _0x44d134==_0x42c0b8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42c0b8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x44d134)[_0x42c0b8([0x73,0x6f,0x72,0x74])]()[_0x42c0b8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x8ee284,_0x4f75df])=>{_0x428a4e(_0x8ee284),_0x1aed0d(_0x4f75df);}):_0x428a4e(window[_0x42c0b8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x44d134));}return _0x1aed0d(_0x1ce4c8),_0x4b3f2f>>>0x0;}function _0x2bad14(_0x587197){return _0x587197[_0x42c0b8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42c0b8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42c0b8([0x30]));}function _0x5d8be3(_0x1646af){return _0x1646af[_0x42c0b8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42c0b8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42c0b8([0x6a,0x6f,0x69,0x6e])]('');}function _0x1de3f5(){}function _0x42c0b8(_0x2962b8){const _0x30ec2f=_0x3a65;return _0x2962b8[_0x30ec2f(0xec)](_0x28f8f4=>String[_0x30ec2f(0xb4)](_0x28f8f4))[_0x30ec2f(0xad)]('');}_0x31b542(await _0x6b0356());}(this);}[_0x134633(0xa5)](){const _0x275e8c=_0x134633,_0x2e8a29=this[_0x275e8c(0xac)][_0x275e8c(0xe1)][_0x275e8c(0xe7)];_0x2e8a29[_0x275e8c(0xdb)](_0x275e8c(0xbb))&&_0x2e8a29[_0x275e8c(0xc7)](_0x275e8c(0xbb),{'allowAttributes':[_0x275e8c(0xc0)]}),_0x2e8a29[_0x275e8c(0xdb)](_0x275e8c(0xa4))&&_0x2e8a29[_0x275e8c(0xc7)](_0x275e8c(0xa4),{'allowAttributes':[_0x275e8c(0xc0)]});}[_0x134633(0xb5)](){const _0x33caee=_0x134633,_0x54e0a7=this[_0x33caee(0xac)];_0x54e0a7[_0x33caee(0xb7)][_0x33caee(0xea)](_0x33caee(0xae))[_0x33caee(0xbf)]({'model':_0x33caee(0xc0),'view':_0x33caee(0xca)}),_0x54e0a7[_0x33caee(0xb7)][_0x33caee(0xea)](_0x33caee(0xc2))[_0x33caee(0xc1)]({'model':{'key':_0x33caee(0xc0),'value':_0x3fef70=>_0x3fef70[_0x33caee(0xb6)](_0x33caee(0xca))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x447024=_0x54e0a7[_0x33caee(0xc8)][_0x33caee(0x9d)](_0x33caee(0x98));_0x447024&&this[_0x33caee(0xd2)](_0x447024,_0x33caee(0xb1),(_0x257d2d,[_0x1336f7,_0x493c24])=>{const _0x4964ad=_0x33caee;_0x1336f7[_0x4964ad(0xc9)](_0x4964ad(0xc0),_0x493c24);});}[_0x134633(0xcc)](){const _0xc9e458=_0x134633,_0x472e68=this[_0xc9e458(0xac)][_0xc9e458(0xab)][_0xc9e458(0x9d)](_0xc9e458(0xcb))||{},_0x35303e=this[_0xc9e458(0xac)][_0xc9e458(0xab)][_0xc9e458(0x9d)](_0xc9e458(0xc3))||'';this[_0xc9e458(0x99)]=_0x3d2b89(_0x418801[_0xc9e458(0xd9)],_0xc9e458(0xd0),{..._0x472e68,'pubkey':_0x35303e,'ctx-name':_0xc9e458(0xb3),'sourceList':'','imgOnly':_0xc9e458(0xdc),'removeCopyright':_0xc9e458(0xdc),'localeName':this[_0xc9e458(0xac)][_0xc9e458(0xe2)][_0xc9e458(0xa2)],'externalSourcesEmbedCss':_0xc9e458(0xd3)}),this[_0xc9e458(0x99)][_0xc9e458(0xde)]=_0x64be24=>{const _0x319f39=_0xc9e458;if(_0x319f39(0xbc)==_0x64be24)return _0x319f39(0xe8);},_0x418801[_0xc9e458(0xd9)][_0xc9e458(0xcf)][_0xc9e458(0x9f)](this[_0xc9e458(0x99)]);}[_0x134633(0xc4)](){const _0x2ccb46=_0x134633;this[_0x2ccb46(0x9c)]=_0x3d2b89(_0x418801[_0x2ccb46(0xd9)],_0x2ccb46(0xa9),{'ctx-name':_0x2ccb46(0xb3)}),_0x418801[_0x2ccb46(0xd9)][_0x2ccb46(0xcf)][_0x2ccb46(0x9f)](this[_0x2ccb46(0x9c)]);}[_0x134633(0xd5)](){const _0x376d18=_0x134633,_0x35d003=this[_0x376d18(0xac)][_0x376d18(0xc8)][_0x376d18(0x9d)](_0x376d18(0xe6));_0x35d003&&this[_0x376d18(0xd2)](_0x35d003,_0x376d18(0xdf),()=>{const _0x1a7854=_0x376d18,_0x19953b=this[_0x1a7854(0xac)][_0x1a7854(0xe1)][_0x1a7854(0xd9)][_0x1a7854(0xb0)][_0x1a7854(0xd1)]();_0x19953b&&_0x19953b[_0x1a7854(0xb6)](_0x1a7854(0xc0))&&this[_0x1a7854(0xac)][_0x1a7854(0xda)][_0x1a7854(0xe5)][_0x1a7854(0xe3)](_0x1a7854(0xeb),()=>{const _0x2833e1=_0x1a7854;_0x5c6305(this[_0x2833e1(0xac)],_0x19953b);});});const _0x135af8=this[_0x376d18(0xac)][_0x376d18(0xc8)][_0x376d18(0x9d)](_0x376d18(0xa0));_0x135af8&&this[_0x376d18(0xd2)](_0x135af8,_0x376d18(0xdf),()=>{const _0x6265c0=_0x376d18,_0x5525c0=this[_0x6265c0(0xac)][_0x6265c0(0xe1)][_0x6265c0(0xd9)][_0x6265c0(0xb0)][_0x6265c0(0xd1)]();_0x5525c0&&_0x5525c0[_0x6265c0(0xb6)](_0x6265c0(0xc0))&&this[_0x6265c0(0xac)][_0x6265c0(0xda)][_0x6265c0(0xe5)][_0x6265c0(0xe3)](_0x6265c0(0xeb),()=>{const _0x49e757=_0x6265c0;_0x5c6305(this[_0x49e757(0xac)],_0x5525c0);});});}}function _0x4446(){const _0x1063ec=['data-uc-image-id','uploadcare.uploader','_initConfig','add','1352SvtWmL','body','uc-config','getSelectedElement','listenTo','\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','13077UIWOLd','_initImageProcessingIndicator','destroy','isPremiumPlugin','ctxElement','document','editing','isRegistered','true','afterInit','iconHrefResolver','execute','1129390Unyqxy','model','locale','once','268JNdTSN','view','insertImage','schema','#uc-icon-arrow-down','391349zLFIRd','for','render','map','href','replaceImageSource','_configElement','1436760EfngUB','112418fgzejW','_ctxElement','get','22hzudjG','appendChild','uploadcareImageReplace','3XNRovG','contentLanguage','pluginName','imageInline','_initSchema','querySelector','init','15095arLyen','uc-upload-ctx-provider','12quIgCu','config','editor','join','downcast','remove','selection','cleanupImage','isOfficialPlugin','uploader','fromCharCode','_initConversion','getAttribute','conversion','UploadcareEditing','178770wZZCVA','configElement','imageBlock','closeMax','uploadcare','requires','attributeToAttribute','uploadcareImageId','elementToAttribute','upcast','uploadcare.pubkey','_initCtx','PictureEditing','input[uploadcare-file-input]','extend','commands','removeAttribute'];_0x4446=function(){return _0x1063ec;};return _0x4446();}
|
|
23
|
+
const _0x56ce80=_0x3cba;(function(_0x9fcd22,_0x3e3219){const _0x9deab7=_0x3cba,_0x41247d=_0x9fcd22();while(!![]){try{const _0x42bf49=-parseInt(_0x9deab7(0x148))/0x1+-parseInt(_0x9deab7(0x159))/0x2*(parseInt(_0x9deab7(0x155))/0x3)+parseInt(_0x9deab7(0x149))/0x4*(-parseInt(_0x9deab7(0x175))/0x5)+parseInt(_0x9deab7(0x15c))/0x6*(-parseInt(_0x9deab7(0x143))/0x7)+parseInt(_0x9deab7(0x178))/0x8*(-parseInt(_0x9deab7(0x16c))/0x9)+parseInt(_0x9deab7(0x123))/0xa*(-parseInt(_0x9deab7(0x135))/0xb)+parseInt(_0x9deab7(0x15f))/0xc*(parseInt(_0x9deab7(0x12b))/0xd);if(_0x42bf49===_0x3e3219)break;else _0x41247d['push'](_0x41247d['shift']());}catch(_0x17075e){_0x41247d['push'](_0x41247d['shift']());}}}(_0x31b8,0x3d80a));import{Plugin as _0x160441}from'ckeditor5/src/core.js';import{Dialog as _0x3d15a0}from'ckeditor5/src/ui.js';import{createElement as _0x543443,global as _0x35a170,uid as _0x50d054}from'ckeditor5/src/utils.js';function _0x3cba(_0x480007,_0x317822){const _0x31b8d2=_0x31b8();return _0x3cba=function(_0x3cba08,_0x75e538){_0x3cba08=_0x3cba08-0x122;let _0x19d6b3=_0x31b8d2[_0x3cba08];return _0x19d6b3;},_0x3cba(_0x480007,_0x317822);}import _0x384f16 from'./uploadcarecommand.js';import _0x1cf7e3 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x28fc70}from'./utils/editingutils.js';function _0x31b8(){const _0x4b7b46=['afterInit','replaceImageSource','getAttribute','contentLanguage','render','uploader','extend','_initSchema','upcast','257509MCHQmF','imageBlock','document','uc-upload-ctx-provider','add','339880UTrnWw','1044surArX','closeMax','locale','cleanupImage','config','uploadcare.pubkey','_initImageProcessingIndicator','imageInline','_initConfig','uploadcare','commands','requires','636483FJGjkz','conversion','uploadcareImageReplace','input[uploadcare-file-input]','2zOCCan','_initConversion','map','78HhtnWH','removeAttribute','listenTo','32196yPQavX','_ctxElement','init','uploadcareImageId','selection','_initCtx','getSelectedElement','data-uc-image-id','remove','appendChild','insertImage','\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','isPremiumPlugin','306FmKlGW','configElement','view','#uc-icon-arrow-down','destroy','pluginName','href','get','attributeToAttribute','9260uscaYm','once','isRegistered','114008LgRzrL','uc-config','215690wkItAb','true','model','UploadcareEditing','for','uploadcare.uploader','querySelector','_configElement','11843kVSaYN','ctxElement','editor','join','editing','execute','schema','iconHrefResolver','PictureEditing','body','99rVSzsb','fromCharCode','elementToAttribute','downcast','isOfficialPlugin'];_0x31b8=function(){return _0x4b7b46;};return _0x31b8();}export default class i extends _0x160441{[_0x56ce80(0x12a)]=null;[_0x56ce80(0x160)]=null;static get[_0x56ce80(0x171)](){const _0xfd1633=_0x56ce80;return _0xfd1633(0x126);}static get[_0x56ce80(0x154)](){const _0x5c2bfe=_0x56ce80;return[_0x5c2bfe(0x133),_0x1cf7e3,_0x3d15a0];}static get[_0x56ce80(0x139)](){return!0x0;}static get[_0x56ce80(0x16b)](){return!0x0;}get[_0x56ce80(0x16d)](){const _0x4a529c=_0x56ce80;return this[_0x4a529c(0x12a)];}get[_0x56ce80(0x12c)](){const _0x444df9=_0x56ce80;return this[_0x444df9(0x160)];}[_0x56ce80(0x161)](){const _0x34058f=_0x56ce80,_0xd63085=this[_0x34058f(0x12d)];_0xd63085[_0x34058f(0x153)][_0x34058f(0x147)](_0x34058f(0x152),new _0x384f16(_0xd63085));}[_0x56ce80(0x13a)](){const _0x1e60cb=_0x56ce80;this[_0x1e60cb(0x141)](),this[_0x1e60cb(0x15a)](),this[_0x1e60cb(0x151)](),this[_0x1e60cb(0x164)](),this[_0x1e60cb(0x14f)](),this[_0x1e60cb(0x15e)](this[_0x1e60cb(0x12d)],_0x1e60cb(0x170),()=>{const _0x5b30f1=_0x1e60cb;this[_0x5b30f1(0x12a)]&&(this[_0x5b30f1(0x12a)][_0x5b30f1(0x167)](),this[_0x5b30f1(0x12a)]=null),this[_0x5b30f1(0x160)]&&(this[_0x5b30f1(0x160)][_0x5b30f1(0x167)](),this[_0x5b30f1(0x160)]=null);const _0x130697=_0x35a170[_0x5b30f1(0x145)][_0x5b30f1(0x129)](_0x5b30f1(0x158));_0x130697&&_0x130697[_0x5b30f1(0x167)]();}),async function(_0x33f80d){const _0x3bdc7f=_0x22ab0d([0x62,0x6b,0x34,0x6c,0x30,0x39,0x46,0x6e,0x76,0x48,0x71,0x50,0x54,0x5a,0x44,0x64,0x67,0x74,0x79,0x4c,0x6d,0x63,0x78,0x32,0x61,0x68,0x55,0x37,0x75,0x6a,0x4e,0x4b,0x59,0x70,0x33,0x58,0x38,0x69,0x65,0x57,0x73,0x36,0x53,0x56,0x4a,0x45,0x35,0x66,0x42,0x31,0x49,0x6f,0x41,0x51,0x4f,0x72,0x47,0x52,0x7a,0x4d,0x77,0x43]),_0x6fe101=0x28dd237e,_0x3c0d56=0x28da4a46^_0x6fe101,_0x5d1966=window[_0x22ab0d([0x44,0x61,0x74,0x65])][_0x22ab0d([0x6e,0x6f,0x77])](),_0x23f01c=_0x33f80d[_0x22ab0d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e52b1=new window[(_0x22ab0d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x242a63=>{_0x23f01c[_0x22ab0d([0x6f,0x6e,0x63,0x65])](_0x22ab0d([0x72,0x65,0x61,0x64,0x79]),_0x242a63);}),_0x4cbc66={[_0x22ab0d([0x6b,0x74,0x79])]:_0x22ab0d([0x45,0x43]),[_0x22ab0d([0x75,0x73,0x65])]:_0x22ab0d([0x73,0x69,0x67]),[_0x22ab0d([0x63,0x72,0x76])]:_0x22ab0d([0x50,0x2d,0x32,0x35,0x36]),[_0x22ab0d([0x78])]:_0x22ab0d([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]),[_0x22ab0d([0x79])]:_0x22ab0d([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]),[_0x22ab0d([0x61,0x6c,0x67])]:_0x22ab0d([0x45,0x53,0x32,0x35,0x36])},_0x36908c=_0x23f01c[_0x22ab0d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22ab0d([0x67,0x65,0x74])](_0x22ab0d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x447183(){let _0x1522e9,_0x53464d=null,_0x2e7e08=null;try{if(_0x36908c==_0x22ab0d([0x47,0x50,0x4c]))return _0x22ab0d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1522e9=_0x364b6d(),!_0x1522e9)return _0x22ab0d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1522e9[_0x22ab0d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e7e08=_0x80a621(_0x1522e9[_0x22ab0d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1522e9[_0x22ab0d([0x6a,0x74,0x69])])),await _0x4c8436()?_0x541361()?_0x331347()?_0x22ab0d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x10c983()?(_0x1522e9[_0x22ab0d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22ab0d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53464d=_0x105223(_0x22ab0d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1522e9[_0x22ab0d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22ab0d([0x74,0x72,0x69,0x61,0x6c])&&(_0x53464d=_0x105223(_0x22ab0d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x8b9ab9()):_0x22ab0d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22ab0d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22ab0d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x22ab0d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x331347(){const _0x149e2d=[_0x22ab0d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22ab0d([0x74,0x72,0x69,0x61,0x6c])][_0x22ab0d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1522e9[_0x22ab0d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d1966/0x3e8:0xe10*_0x3c0d56;return _0x1522e9[_0x22ab0d([0x65,0x78,0x70])]<_0x149e2d;}function _0x541361(){const _0x56ed3a=_0x1522e9[_0x22ab0d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x56ed3a&&(!!_0x56ed3a[_0x22ab0d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ab0d([0x2a]))||!!_0x56ed3a[_0x22ab0d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ab0d([0x55,0x50,0x4c,0x43])));}function _0x10c983(){const _0x11459c=_0x3cba,_0x1af184=_0x1522e9[_0x22ab0d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1af184||0x0==_0x1af184[_0x22ab0d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x162a41}=new URL(window[_0x22ab0d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x11459c(0x172)]);if(_0x1af184[_0x22ab0d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x162a41))return!0x0;const _0x15a15d=_0x162a41[_0x22ab0d([0x73,0x70,0x6c,0x69,0x74])](_0x22ab0d([0x2e]));return _0x1af184[_0x22ab0d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3eec9c=>_0x3eec9c[_0x22ab0d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ab0d([0x2a])))[_0x22ab0d([0x6d,0x61,0x70])](_0xbae353=>_0xbae353[_0x22ab0d([0x73,0x70,0x6c,0x69,0x74])](_0x22ab0d([0x2e])))[_0x22ab0d([0x73,0x6f,0x6d,0x65])](_0x2a7f8f=>_0x15a15d[_0x22ab0d([0x65,0x76,0x65,0x72,0x79])]((_0x839948,_0x9c58f1)=>_0x2a7f8f[_0x9c58f1]===_0x839948||_0x2a7f8f[_0x9c58f1]===_0x22ab0d([0x2a])));}function _0x8b9ab9(){return _0x53464d&&_0x2e7e08?new window[(_0x22ab0d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x469df2,_0x3a3b3e)=>{_0x53464d[_0x22ab0d([0x74,0x68,0x65,0x6e])](_0x469df2,_0x3a3b3e),_0x2e7e08[_0x22ab0d([0x74,0x68,0x65,0x6e])](_0x4cee72=>{_0x4cee72!=_0x22ab0d([0x56,0x61,0x6c,0x69,0x64])&&_0x469df2(_0x4cee72);},_0x3a3b3e);}):_0x53464d||_0x2e7e08||_0x22ab0d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x80a621(_0x484ccb,_0x1adb77){return new window[(_0x22ab0d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26f707=>{if(_0x4d4a46())return _0x26f707(_0x22ab0d([0x56,0x61,0x6c,0x69,0x64]));_0x2b9f94(),_0x23f01c[_0x22ab0d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22ab0d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x49066c=!0x1;const _0x4ee3f4=_0x50d054();function _0x4ea7b1(_0x393b73){return!!_0x393b73&&(typeof _0x393b73===_0x22ab0d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x393b73===_0x22ab0d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x393b73[_0x22ab0d([0x74,0x68,0x65,0x6e])]===_0x22ab0d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x393b73[_0x22ab0d([0x63,0x61,0x74,0x63,0x68])]===_0x22ab0d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41cdbf(_0xd55baa){_0x490000(_0xd55baa)[_0x22ab0d([0x74,0x68,0x65,0x6e])](_0x47ff87=>{if(!_0x47ff87||_0x47ff87[_0x22ab0d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22ab0d([0x6f,0x6b]))return _0x22ab0d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x288cc2(_0x220d2c(_0x4ee3f4+_0x1adb77))!=_0x47ff87[_0x22ab0d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22ab0d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22ab0d([0x56,0x61,0x6c,0x69,0x64]);})[_0x22ab0d([0x74,0x68,0x65,0x6e])](_0xb8c644=>(_0x52793c(),_0xb8c644),()=>{const _0x49da94=_0x233821();return null==_0x49da94?(_0x52793c(),_0x22ab0d([0x56,0x61,0x6c,0x69,0x64])):_0x22ab0d(_0x5d1966-_0x49da94>(0xcd1a77e^_0x6fe101)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22ab0d([0x74,0x68,0x65,0x6e])](_0x26f707)[_0x22ab0d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26f707(_0x22ab0d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ace0c=0x28ebcdfe^_0x6fe101;function _0x52793c(){const _0x5c5d1f=_0x22ab0d([0x6c,0x6c,0x63,0x74,0x2d])+_0x288cc2(_0x220d2c(_0x484ccb)),_0x18c353=_0x316acb(_0x288cc2(window[_0x22ab0d([0x4d,0x61,0x74,0x68])][_0x22ab0d([0x63,0x65,0x69,0x6c])](_0x5d1966/_0x5ace0c)));window[_0x22ab0d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22ab0d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c5d1f,_0x18c353);}function _0x233821(){const _0x5b6a69=_0x22ab0d([0x6c,0x6c,0x63,0x74,0x2d])+_0x288cc2(_0x220d2c(_0x484ccb)),_0x42ad80=window[_0x22ab0d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22ab0d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b6a69);return _0x42ad80?window[_0x22ab0d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x316acb(_0x42ad80),0x10)*_0x5ace0c:null;}function _0x490000(_0xad58df){return new window[(_0x22ab0d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c8a2e,_0xa3990f)=>{_0xad58df[_0x22ab0d([0x74,0x68,0x65,0x6e])](_0x3c8a2e,_0xa3990f),window[_0x22ab0d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa3990f,0x28dcf7be^_0x6fe101);});}}_0x23f01c[_0x22ab0d([0x6f,0x6e])](_0x22ab0d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xfff6b1,_0x4b6840)=>{if(_0x4b6840[0x0]!=_0x484ccb)return _0x26f707(_0x22ab0d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b6840[0x1]={..._0x4b6840[0x1],[_0x22ab0d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ee3f4};},{[_0x22ab0d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22ab0d([0x68,0x69,0x67,0x68])}),_0x23f01c[_0x22ab0d([0x6f,0x6e])](_0x22ab0d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x104d19=>{_0x4ea7b1(_0x104d19[_0x22ab0d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x49066c=!0x0,_0x41cdbf(_0x104d19[_0x22ab0d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22ab0d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22ab0d([0x6c,0x6f,0x77])}),_0x2e52b1[_0x22ab0d([0x74,0x68,0x65,0x6e])](()=>{_0x49066c||_0x26f707(_0x22ab0d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4d4a46(){return _0x23f01c[_0x22ab0d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22ab0d([0x76,0x69,0x65,0x77])][_0x22ab0d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22ab0d([0x61,0x75,0x74,0x6f]);}function _0x2b9f94(){_0x23f01c[_0x22ab0d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22ab0d([0x76,0x69,0x65,0x77])][_0x22ab0d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22ab0d([0x61,0x75,0x74,0x6f]);}}function _0x105223(_0x132b11){const _0x38b6b5=[new window[(_0x22ab0d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x574dbb=>setTimeout(_0x574dbb,0x28d41db2^_0x6fe101)),_0x2e52b1[_0x22ab0d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22ab0d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dfacb=>{let _0x1faa5d=0x0;_0x23f01c[_0x22ab0d([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ab0d([0x6f,0x6e])](_0x22ab0d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x29af4e,_0x74ba90)=>{_0x74ba90[0x0][_0x22ab0d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1faa5d++,_0x1faa5d==(0x28dd2286^_0x6fe101)&&(_0x1dfacb(),_0x29af4e[_0x22ab0d([0x6f,0x66,0x66])]());});}))];return window[_0x22ab0d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22ab0d([0x72,0x61,0x63,0x65])](_0x38b6b5)[_0x22ab0d([0x74,0x68,0x65,0x6e])](()=>_0x132b11);}async function _0x28f0ef(){await _0x2e52b1,_0x23f01c[_0x22ab0d([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ab0d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33d9f3,_0x23f01c[_0x22ab0d([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ab0d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33d9f3,_0x23f01c[_0x22ab0d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22ab0d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ca526(_0x45d9b0){const _0x2086aa=_0x5e6540();_0x23f01c[_0x2086aa]=_0x22ab0d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45d9b0,_0x45d9b0!=_0x22ab0d([0x56,0x61,0x6c,0x69,0x64])&&_0x28f0ef();}function _0x5e6540(){const _0x3ad9f4=window[_0x22ab0d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22ab0d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22ab0d([0x6e,0x6f,0x77])]())[_0x22ab0d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22ab0d([0x2e]),'');let _0x14ae91=_0x22ab0d([0x62]);for(let _0x12b71a=0x0;_0x12b71a<_0x3ad9f4[_0x22ab0d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12b71a+=0x2){let _0x19facc=window[_0x22ab0d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ad9f4[_0x22ab0d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12b71a,_0x12b71a+0x2));_0x19facc>=_0x3bdc7f[_0x22ab0d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x19facc-=_0x3bdc7f[_0x22ab0d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14ae91+=_0x3bdc7f[_0x19facc];}return _0x14ae91;}function _0x364b6d(){const _0x9437c1=_0x36908c[_0x22ab0d([0x73,0x70,0x6c,0x69,0x74])](_0x22ab0d([0x2e]));if(0x3!=_0x9437c1[_0x22ab0d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x246212(_0x9437c1[0x1]);function _0x246212(_0x48d070){const _0x202691=_0x5aaddf(_0x48d070);return _0x202691&&_0x144b8e()?_0x202691:null;function _0x144b8e(){const _0x28339b=_0x202691[_0x22ab0d([0x6a,0x74,0x69])],_0x4e1956=window[_0x22ab0d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28339b[_0x22ab0d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28339b[_0x22ab0d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x119218={..._0x202691,[_0x22ab0d([0x6a,0x74,0x69])]:_0x28339b[_0x22ab0d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x28339b[_0x22ab0d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x119218[_0x22ab0d([0x76,0x63])],_0x220d2c(_0x119218)==_0x4e1956;}}}async function _0x4c8436(){let _0x55d0e2=!0x0;try{const _0x5e8ffe=_0x36908c[_0x22ab0d([0x73,0x70,0x6c,0x69,0x74])](_0x22ab0d([0x2e])),[_0x11d326,_0x30fb07,_0x551efc]=_0x5e8ffe;return _0x290480(_0x11d326),await _0x2aa028(_0x11d326,_0x30fb07,_0x551efc),_0x55d0e2;}catch{return!0x1;}function _0x290480(_0x13a425){const _0x123ae4=_0x5aaddf(_0x13a425);_0x123ae4&&_0x123ae4[_0x22ab0d([0x61,0x6c,0x67])]==_0x22ab0d([0x45,0x53,0x32,0x35,0x36])||(_0x55d0e2=!0x1);}async function _0x2aa028(_0x19c177,_0x170811,_0x3d7990){const _0x442ccc=window[_0x22ab0d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22ab0d([0x66,0x72,0x6f,0x6d])](_0x25aea1(_0x3d7990),_0x425701=>_0x425701[_0x22ab0d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x73b871=new window[(_0x22ab0d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22ab0d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19c177+_0x22ab0d([0x2e])+_0x170811),_0x349268=window[_0x22ab0d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22ab0d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x349268)return;const _0x284c07=await _0x349268[_0x22ab0d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22ab0d([0x6a,0x77,0x6b]),_0x4cbc66,{[_0x22ab0d([0x6e,0x61,0x6d,0x65])]:_0x22ab0d([0x45,0x43,0x44,0x53,0x41]),[_0x22ab0d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22ab0d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22ab0d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x349268[_0x22ab0d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22ab0d([0x6e,0x61,0x6d,0x65])]:_0x22ab0d([0x45,0x43,0x44,0x53,0x41]),[_0x22ab0d([0x68,0x61,0x73,0x68])]:{[_0x22ab0d([0x6e,0x61,0x6d,0x65])]:_0x22ab0d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x284c07,_0x442ccc,_0x73b871)||(_0x55d0e2=!0x1);}}function _0x5aaddf(_0x35ea3e){return _0x35ea3e[_0x22ab0d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22ab0d([0x65,0x79]))?JSON[_0x22ab0d([0x70,0x61,0x72,0x73,0x65])](_0x25aea1(_0x35ea3e)):null;}function _0x25aea1(_0x2b5861){return window[_0x22ab0d([0x61,0x74,0x6f,0x62])](_0x2b5861[_0x22ab0d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22ab0d([0x2b]))[_0x22ab0d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22ab0d([0x2f])));}function _0x220d2c(_0x3c796c){let _0x696b5e=0x1505;function _0xc1fa9d(_0x1c1255){for(let _0x5dcd88=0x0;_0x5dcd88<_0x1c1255[_0x22ab0d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dcd88++){const _0x4dc3f2=_0x1c1255[_0x22ab0d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5dcd88);_0x696b5e=(_0x696b5e<<0x5)+_0x696b5e+_0x4dc3f2,_0x696b5e&=_0x696b5e;}}function _0x451004(_0x15aaf0){Array[_0x22ab0d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x15aaf0)?_0x15aaf0[_0x22ab0d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x451004):_0x15aaf0&&typeof _0x15aaf0==_0x22ab0d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22ab0d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x15aaf0)[_0x22ab0d([0x73,0x6f,0x72,0x74])]()[_0x22ab0d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x12a2fc,_0x5858c8])=>{_0xc1fa9d(_0x12a2fc),_0x451004(_0x5858c8);}):_0xc1fa9d(window[_0x22ab0d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x15aaf0));}return _0x451004(_0x3c796c),_0x696b5e>>>0x0;}function _0x288cc2(_0x6ea6a8){return _0x6ea6a8[_0x22ab0d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22ab0d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22ab0d([0x30]));}function _0x316acb(_0x144293){return _0x144293[_0x22ab0d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22ab0d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22ab0d([0x6a,0x6f,0x69,0x6e])]('');}function _0x33d9f3(){}function _0x22ab0d(_0x5b5dac){const _0x202b6c=_0x3cba;return _0x5b5dac[_0x202b6c(0x15b)](_0x1bc438=>String[_0x202b6c(0x136)](_0x1bc438))[_0x202b6c(0x12e)]('');}_0x3ca526(await _0x447183());}(this);}[_0x56ce80(0x141)](){const _0x4819b7=_0x56ce80,_0xf1cf43=this[_0x4819b7(0x12d)][_0x4819b7(0x125)][_0x4819b7(0x131)];_0xf1cf43[_0x4819b7(0x177)](_0x4819b7(0x144))&&_0xf1cf43[_0x4819b7(0x140)](_0x4819b7(0x144),{'allowAttributes':[_0x4819b7(0x162)]}),_0xf1cf43[_0x4819b7(0x177)](_0x4819b7(0x150))&&_0xf1cf43[_0x4819b7(0x140)](_0x4819b7(0x150),{'allowAttributes':[_0x4819b7(0x162)]});}[_0x56ce80(0x15a)](){const _0x5157ee=_0x56ce80,_0x17a97b=this[_0x5157ee(0x12d)];_0x17a97b[_0x5157ee(0x156)][_0x5157ee(0x127)](_0x5157ee(0x138))[_0x5157ee(0x174)]({'model':_0x5157ee(0x162),'view':_0x5157ee(0x166)}),_0x17a97b[_0x5157ee(0x156)][_0x5157ee(0x127)](_0x5157ee(0x142))[_0x5157ee(0x137)]({'model':{'key':_0x5157ee(0x162),'value':_0xcb7aad=>_0xcb7aad[_0x5157ee(0x13c)](_0x5157ee(0x166))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x48ed20=_0x17a97b[_0x5157ee(0x153)][_0x5157ee(0x173)](_0x5157ee(0x13b));_0x48ed20&&this[_0x5157ee(0x15e)](_0x48ed20,_0x5157ee(0x14c),(_0x4ff8b4,[_0x18858b,_0x383072])=>{const _0x17279b=_0x5157ee;_0x18858b[_0x17279b(0x15d)](_0x17279b(0x162),_0x383072);});}[_0x56ce80(0x151)](){const _0x4b4ed5=_0x56ce80,_0x40c30c=this[_0x4b4ed5(0x12d)][_0x4b4ed5(0x14d)][_0x4b4ed5(0x173)](_0x4b4ed5(0x128))||{},_0x5f2cc1=this[_0x4b4ed5(0x12d)][_0x4b4ed5(0x14d)][_0x4b4ed5(0x173)](_0x4b4ed5(0x14e))||'';this[_0x4b4ed5(0x12a)]=_0x543443(_0x35a170[_0x4b4ed5(0x145)],_0x4b4ed5(0x122),{..._0x40c30c,'pubkey':_0x5f2cc1,'ctx-name':_0x4b4ed5(0x13f),'sourceList':'','imgOnly':_0x4b4ed5(0x124),'removeCopyright':_0x4b4ed5(0x124),'localeName':this[_0x4b4ed5(0x12d)][_0x4b4ed5(0x14b)][_0x4b4ed5(0x13d)],'externalSourcesEmbedCss':_0x4b4ed5(0x16a)}),this[_0x4b4ed5(0x12a)][_0x4b4ed5(0x132)]=_0xda3af2=>{const _0x22dff5=_0x4b4ed5;if(_0x22dff5(0x14a)==_0xda3af2)return _0x22dff5(0x16f);},_0x35a170[_0x4b4ed5(0x145)][_0x4b4ed5(0x134)][_0x4b4ed5(0x168)](this[_0x4b4ed5(0x12a)]);}[_0x56ce80(0x164)](){const _0x42a7c3=_0x56ce80;this[_0x42a7c3(0x160)]=_0x543443(_0x35a170[_0x42a7c3(0x145)],_0x42a7c3(0x146),{'ctx-name':_0x42a7c3(0x13f)}),_0x35a170[_0x42a7c3(0x145)][_0x42a7c3(0x134)][_0x42a7c3(0x168)](this[_0x42a7c3(0x160)]);}[_0x56ce80(0x14f)](){const _0x217c8b=_0x56ce80,_0x5435ab=this[_0x217c8b(0x12d)][_0x217c8b(0x153)][_0x217c8b(0x173)](_0x217c8b(0x169));_0x5435ab&&this[_0x217c8b(0x15e)](_0x5435ab,_0x217c8b(0x130),()=>{const _0x624b1f=_0x217c8b,_0x292618=this[_0x624b1f(0x12d)][_0x624b1f(0x125)][_0x624b1f(0x145)][_0x624b1f(0x163)][_0x624b1f(0x165)]();_0x292618&&_0x292618[_0x624b1f(0x13c)](_0x624b1f(0x162))&&this[_0x624b1f(0x12d)][_0x624b1f(0x12f)][_0x624b1f(0x16e)][_0x624b1f(0x176)](_0x624b1f(0x13e),()=>{const _0x3c87a2=_0x624b1f;_0x28fc70(this[_0x3c87a2(0x12d)],_0x292618);});});const _0x167438=this[_0x217c8b(0x12d)][_0x217c8b(0x153)][_0x217c8b(0x173)](_0x217c8b(0x157));_0x167438&&this[_0x217c8b(0x15e)](_0x167438,_0x217c8b(0x130),()=>{const _0x397fa6=_0x217c8b,_0x1b5a5c=this[_0x397fa6(0x12d)][_0x397fa6(0x125)][_0x397fa6(0x145)][_0x397fa6(0x163)][_0x397fa6(0x165)]();_0x1b5a5c&&_0x1b5a5c[_0x397fa6(0x13c)](_0x397fa6(0x162))&&this[_0x397fa6(0x12d)][_0x397fa6(0x12f)][_0x397fa6(0x16e)][_0x397fa6(0x176)](_0x397fa6(0x13e),()=>{const _0x4ff872=_0x397fa6;_0x28fc70(this[_0x4ff872(0x12d)],_0x1b5a5c);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x264f3f,ObservableMixin as _0x24b77b}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x55b444}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5549fc}from'ckeditor5/src/icons.js';import _0x3dffa0 from'./uploadcareimageeditformview.js';import _0x4f4f76 from'../../utils/uploadutils.js';import{getImageUrls as _0x4ceeb7,getImageDimension as _0x3a412f}from'../../utils/editingutils.js';import{isAncestor as _0x4e377f}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x24b77b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3f4bfb,_0x3b285e,_0x12d790){super(),this['_editor']=_0x3f4bfb,this['_dialog']=_0x3b285e,this['_imageElement']=_0x12d790,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 _0x506089=this['_imageElement'],_0x54e0aa=_0x506089['getAttribute']('uploadcareImageId'),_0x339d62=_0x506089['getAttribute']('src');if(_0x54e0aa)await this['_loadImageInfo'](_0x54e0aa,_0x339d62);else{if(this['_imageCache']['has'](_0x339d62)){const _0x515cd1=this['_imageCache']['get'](_0x339d62);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x515cd1['url'],this['imageDimension']=_0x515cd1['dimension'],this['imageId']=_0x515cd1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x56a1d3}=this['_editor'],t=_0x56a1d3['t'],_0x166219=new _0x3dffa0(_0x56a1d3,this['imageStatus'],this['_attributes']);_0x166219['bind']('status')['to'](this,'imageStatus'),_0x166219['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x166219['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x166219['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x166219,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5549fc,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x166219,'position':_0x55b444['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x166219['focus']();},'onHide':()=>{_0x166219['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x110f19=>!_0x4e377f(_0x110f19,_0x166219['element'])}});}['_loadImageInfo'](_0x501605,_0x59c611){return _0x4f4f76['getInfo'](_0x501605,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x312dcb=>{const {width:_0x8d54f4,height:_0x4500c7}=_0x312dcb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x59c611,this['imageDimension']={'width':_0x8d54f4,'height':_0x4500c7},this['imageId']=_0x501605;})['catch'](_0x2c5939=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c5939['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4e7e76,_0x2397c4){return this['_getImageAsFile'](_0x4e7e76)['then'](_0x216c78=>_0x4f4f76['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2397c4['signal'],'file':_0x216c78,'onProgress':_0x406161=>{_0x406161&&_0x406161['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x406161['value']));}}))['then'](_0x19a828=>{const {width:_0x2b7ec9,height:_0x16075b}=_0x19a828['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x19a828['cdnUrl'],this['imageDimension']={'width':_0x2b7ec9,'height':_0x16075b},this['imageId']=_0x19a828['uuid'],this['imageUploadProgress']=null;const _0x2e3bb2=_0x4e7e76['getAttribute']('src');this['_imageCache']['set'](_0x2e3bb2,{'id':_0x19a828['uuid'],'url':_0x19a828['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x34009d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x34009d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x450ce1,_0x5c782d){_0x450ce1['on']('apply',(_0xe4841a,_0x3ccc33)=>{this['_replaceImage'](_0x5c782d,_0x3ccc33['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x450ce1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x450ce1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x23a321,_0x12d7b1,_0x266c52){const _0x546c16=this['_editor'],{width:_0x115a23,height:_0x53cf93}=_0x3a412f(_0x12d7b1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x209417,imageSources:_0x195021}=_0x4ceeb7(_0x12d7b1,_0x115a23);_0x546c16['model']['change'](_0x5f02bf=>{if('$graveyard'===_0x23a321['root']['rootName']){_0x546c16['execute']('insertImage',{'imageType':_0x23a321['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x23a321['getAttributes']()),'uploadcareImageId':_0x266c52,'src':_0x209417,'sources':_0x195021,'width':_0x115a23,'height':_0x53cf93}});const _0x285316=_0x23a321['getChildren']();_0x23a321=_0x546c16['model']['document']['selection']['getSelectedElement']();for(const _0x2c0639 of _0x285316)_0x5f02bf['append'](_0x5f02bf['cloneElement'](_0x2c0639),_0x23a321);}else _0x5f02bf['setSelection'](_0x23a321,'on'),_0x546c16['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x23a321['getAttributes']()),'uploadcareImageId':_0x266c52,'src':_0x209417,'sources':_0x195021,'width':_0x115a23,'height':_0x53cf93},_0x23a321);_0x5f02bf['setSelection'](_0x23a321,'on');});}async['_getImageAsFile'](_0x24970b){const _0x10c45a=_0x264f3f['window'],_0x48a675=_0x264f3f['document']['location']['href'],_0xf0d874=new _0x10c45a['URL'](_0x24970b['getAttribute']('src'),_0x48a675);if('data:'===_0xf0d874['protocol']){const _0x3d60de=_0xf0d874['href']['split'](','),_0x5466bb=_0x3d60de[0x0]['match'](/:(.*?);/)[0x1],_0x4b0bf9=_0x5466bb['split']('/')[0x1],_0x49257b=_0x10c45a['atob'](_0x3d60de[_0x3d60de['length']-0x1]);let _0x123a30=_0x49257b['length'];const _0xa62b25=new _0x10c45a['Uint8Array'](_0x123a30);for(;_0x123a30--;)_0xa62b25[_0x123a30]=_0x49257b['charCodeAt'](_0x123a30);return new _0x10c45a['File']([_0xa62b25],'image.'+_0x4b0bf9,{'type':_0x5466bb});}const _0x56ca9c=_0xf0d874['href']['split']('/'),_0x9eee49=_0x56ca9c[_0x56ca9c['length']-0x1],_0x56f37f=_0x9eee49['split']('.')[0x1];return _0x10c45a['fetch'](_0xf0d874['href'])['then'](_0x57732d=>_0x57732d['clone']()['blob']())['then'](_0x54c01b=>new _0x10c45a['File']([_0x54c01b],_0x9eee49,{'type':'image/'+_0x56f37f}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1fdf(_0x464454,_0x151e59){const _0x47a608=_0x47a6();return _0x1fdf=function(_0x1fdf75,_0x398ff0){_0x1fdf75=_0x1fdf75-0xfe;let _0x5eb971=_0x47a608[_0x1fdf75];return _0x5eb971;},_0x1fdf(_0x464454,_0x151e59);}function _0x47a6(){const _0x41ba37=['711nKZruE','imageSrc','24TFoVjh','1375992pPmOUL','485387NtfoQF','5IWLKMM','ck-uploadcare-theme','1806460ZPbSyz','uc-light','set','bindTemplate','setTemplate','635WFTLQS','uc-cloud-image-editor','48010NSxiIQ','13133725mCvPaC','image-edit','668aeeJnB','844110FKDhfv'];_0x47a6=function(){return _0x41ba37;};return _0x47a6();}(function(_0x269618,_0x52582a){const _0x4f510c=_0x1fdf,_0x8534e5=_0x269618();while(!![]){try{const _0x2981e3=-parseInt(_0x4f510c(0x102))/0x1*(parseInt(_0x4f510c(0x107))/0x2)+parseInt(_0x4f510c(0x10c))/0x3+-parseInt(_0x4f510c(0x110))/0x4+parseInt(_0x4f510c(0x10e))/0x5*(-parseInt(_0x4f510c(0x108))/0x6)+-parseInt(_0x4f510c(0x10d))/0x7*(parseInt(_0x4f510c(0x10b))/0x8)+-parseInt(_0x4f510c(0x109))/0x9*(parseInt(_0x4f510c(0x104))/0xa)+parseInt(_0x4f510c(0x105))/0xb;if(_0x2981e3===_0x52582a)break;else _0x8534e5['push'](_0x8534e5['shift']());}catch(_0x4a99dc){_0x8534e5['push'](_0x8534e5['shift']());}}}(_0x47a6,0x3fb53));import{View as _0x16de4f}from'ckeditor5/src/ui.js';export default class tt extends _0x16de4f{constructor(_0x588613,_0x4f85b7){const _0x3730b6=_0x1fdf;super(_0x588613);const _0x4c6a55=this[_0x3730b6(0x100)];this[_0x3730b6(0xff)](_0x3730b6(0x10a),''),this[_0x3730b6(0x101)]({'tag':_0x3730b6(0x103),'attributes':{..._0x4f85b7,'class':[_0x3730b6(0xfe),_0x3730b6(0x10f)],'ctx-name':_0x3730b6(0x106),'cdn-url':_0x4c6a55['to'](_0x3730b6(0x10a))}});}}
|
|
@@ -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 _0x40cf35,IconView as at,View as _0x25fd92}from'ckeditor5/src/ui.js';export default class rt extends _0x25fd92{constructor(_0x2f37df){super(_0x2f37df);const t=_0x2f37df['t'];this['set']('errorType',null);const _0x27f3db=new _0x40cf35(_0x2f37df);_0x27f3db['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x27f3db['withText']=!0x0,_0x27f3db['class']='ck-button-action',_0x27f3db['on']('execute',()=>{this['fire']('retry');}),_0x27f3db['bind']('isVisible')['to'](this,'errorType',_0x253354=>'NotFound'!==_0x253354);const _0x2eaaff=new at();_0x2eaaff['content']=et,_0x2eaaff['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x287f7d=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':[_0x2eaaff,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x287f7d['to']('errorType',_0x37f632=>t('NotFound'!==_0x37f632?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x27f3db]},{'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 _0x44718d,View as _0x2112a9}from'ckeditor5/src/ui.js';export default class ta extends _0x2112a9{constructor(_0x11d373){super(_0x11d373);const t=_0x11d373['t'],_0x51fb7e=this['bindTemplate'],_0x1745a1=new _0x44718d();_0x1745a1['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':[_0x1745a1,{'text':_0x51fb7e['to']('imageUploadProgress',_0x40fe10=>t('Loading\x20image...')+'\x20('+(_0x40fe10||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b170a=_0x43b5;(function(_0x2de387,_0x38e2b5){const _0x2657ce=_0x43b5,_0x576460=_0x2de387();while(!![]){try{const _0x17dc66=-parseInt(_0x2657ce(0x1c6))/0x1+-parseInt(_0x2657ce(0x1ba))/0x2*(-parseInt(_0x2657ce(0x1ce))/0x3)+-parseInt(_0x2657ce(0x1e4))/0x4+parseInt(_0x2657ce(0x1d0))/0x5*(parseInt(_0x2657ce(0x1cd))/0x6)+parseInt(_0x2657ce(0x1b2))/0x7*(-parseInt(_0x2657ce(0x1c5))/0x8)+-parseInt(_0x2657ce(0x1e9))/0x9*(parseInt(_0x2657ce(0x1b9))/0xa)+parseInt(_0x2657ce(0x1c3))/0xb;if(_0x17dc66===_0x38e2b5)break;else _0x576460['push'](_0x576460['shift']());}catch(_0x2185b7){_0x576460['push'](_0x576460['shift']());}}}(_0x4da6,0xb8474));import{View as _0x54baa8}from'ckeditor5/src/ui.js';function _0x43b5(_0x354a9e,_0x370bc8){const _0x4da67a=_0x4da6();return _0x43b5=function(_0x43b5e3,_0xc68995){_0x43b5e3=_0x43b5e3-0x1b2;let _0x51511e=_0x4da67a[_0x43b5e3];return _0x51511e;},_0x43b5(_0x354a9e,_0x370bc8);}import _0x22c985 from'./uploadcareimageeditformloadingview.js';function _0x4da6(){const _0x1d44cd=['_loadingView','5vjTfGq','toLowerCase','addedNodes','addEventListener','apply','uploading','disconnect','fire','_setView','render','length','div','_errorView','retry','_addErrorViewListeners','set','error','querySelector','add','_editingView','1550060mUeMWB','addMany','ck-reset_all-excluded','_items','_addUploadcareImageEditorListeners','1247364gQTNQH','7EhkGDW','target','filter','cancel','status','observe','uc-cloud-image-editor','10CaCDOi','4GKiCfK','_focusableView','focus','createCollection','ready','element','setTemplate','once','getFocusableElement','3990745Uotsvf','detail','6000536zMyDqe','633228zMSSbN','clear','ck-uploadcare-form','change:status','nodeName','cdnUrl','_waitForImageEditorComponent','4874574JipKNz','2233479WDAGbe'];_0x4da6=function(){return _0x1d44cd;};return _0x4da6();}import _0x4e4f7b from'./uploadcareimageeditformerrorview.js';import _0x1c5db3 from'./uploadcareimageeditformeditingview.js';import _0xf6f846 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0xf6f846{[_0x5b170a(0x1e7)];[_0x5b170a(0x1cf)];[_0x5b170a(0x1dc)];[_0x5b170a(0x1e3)];[_0x5b170a(0x1bb)];constructor(_0x408629,_0x2489d7,_0x50f868){const _0x91f888=_0x5b170a;super(_0x408629),this[_0x91f888(0x1e7)]=this[_0x91f888(0x1bd)](),this[_0x91f888(0x1cf)]=new _0x22c985(_0x408629),this[_0x91f888(0x1dc)]=new _0x4e4f7b(_0x408629),this[_0x91f888(0x1e3)]=new _0x1c5db3(_0x408629,_0x50f868),this[_0x91f888(0x1bb)]=new _0x54baa8(_0x408629),this[_0x91f888(0x1bb)][_0x91f888(0x1c0)](this[_0x91f888(0x1c2)]()),this[_0x91f888(0x1df)](_0x91f888(0x1b6),_0x2489d7),this[_0x91f888(0x1c0)]({'tag':_0x91f888(0x1db),'attributes':{'class':['ck',_0x91f888(0x1e6),_0x91f888(0x1c8)],'tabindex':'-1'},'children':this[_0x91f888(0x1e7)]}),this[_0x91f888(0x1d8)](),this[_0x91f888(0x1c1)](_0x91f888(0x1d9),()=>{const _0x32fcdb=_0x91f888;this[_0x32fcdb(0x1cc)](this[_0x32fcdb(0x1bf)],_0x665bec=>{const _0x2a5a9d=_0x32fcdb;this[_0x2a5a9d(0x1e8)](_0x665bec);});}),this['on'](_0x91f888(0x1c9),()=>{const _0x26feae=_0x91f888;this[_0x26feae(0x1d8)]();}),this[_0x91f888(0x1de)]();}[_0x5b170a(0x1bc)](){const _0x40a36c=_0x5b170a;this[_0x40a36c(0x1bf)][_0x40a36c(0x1bc)]();}[_0x5b170a(0x1d8)](){const _0x21c85b=_0x5b170a;switch(this[_0x21c85b(0x1e7)][_0x21c85b(0x1c7)](),this[_0x21c85b(0x1b6)]){case _0x21c85b(0x1d5):this[_0x21c85b(0x1e7)][_0x21c85b(0x1e2)](this[_0x21c85b(0x1cf)]);break;case _0x21c85b(0x1e0):this[_0x21c85b(0x1e7)][_0x21c85b(0x1e2)](this[_0x21c85b(0x1dc)]);break;case _0x21c85b(0x1be):this[_0x21c85b(0x1e7)][_0x21c85b(0x1e5)]([this[_0x21c85b(0x1e3)],this[_0x21c85b(0x1bb)]]);}}[_0x5b170a(0x1cc)](_0x3f156e,_0x29d793){const _0xfccddc=_0x5b170a,_0x5bf9ec=_0xfccddc(0x1b8),_0xa272b1=_0x3f156e[_0xfccddc(0x1e1)](_0x5bf9ec);if(_0xa272b1)return _0x29d793(_0xa272b1);const _0x51f120=new MutationObserver(_0x49e91a=>{const _0x354e19=_0xfccddc,_0xdcd5fe=_0x49e91a[_0x354e19(0x1b4)](_0x3b8c04=>_0x3b8c04[_0x354e19(0x1b3)]===_0x3f156e&&_0x3b8c04[_0x354e19(0x1d2)][_0x354e19(0x1da)]>0x0&&_0x3b8c04[_0x354e19(0x1d2)][0x0][_0x354e19(0x1ca)][_0x354e19(0x1d1)]()===_0x5bf9ec);_0xdcd5fe[_0x354e19(0x1da)]&&(_0x51f120[_0x354e19(0x1d6)](),_0x29d793(_0xdcd5fe[0x0][_0x354e19(0x1d2)][0x0]));});_0x51f120[_0xfccddc(0x1b7)](_0x3f156e,{'childList':!0x0,'subtree':!0x0});}[_0x5b170a(0x1e8)](_0x224537){const _0x58766d=_0x5b170a;_0x224537[_0x58766d(0x1d3)](_0x58766d(0x1d4),_0xc7b805=>{const _0x448e03=_0x58766d;this[_0x448e03(0x1d7)](_0x448e03(0x1d4),{'imageSrc':_0xc7b805[_0x448e03(0x1c4)][_0x448e03(0x1cb)]});}),_0x224537[_0x58766d(0x1d3)](_0x58766d(0x1b5),()=>{const _0x15b28b=_0x58766d;this[_0x15b28b(0x1d7)](_0x15b28b(0x1b5));});}[_0x5b170a(0x1de)](){const _0x33c0eb=_0x5b170a;this[_0x33c0eb(0x1dc)]['on'](_0x33c0eb(0x1dd),()=>{const _0x13c520=_0x33c0eb;this[_0x13c520(0x1d7)](_0x13c520(0x1dd));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e2cf2=_0x14ad;(function(_0x29ab25,_0x5f588e){const _0x7a46e4=_0x14ad,_0x3f513c=_0x29ab25();while(!![]){try{const _0x4becb1=parseInt(_0x7a46e4(0x17b))/0x1+parseInt(_0x7a46e4(0x172))/0x2+parseInt(_0x7a46e4(0x17d))/0x3+-parseInt(_0x7a46e4(0x16d))/0x4*(parseInt(_0x7a46e4(0x178))/0x5)+-parseInt(_0x7a46e4(0x16c))/0x6+-parseInt(_0x7a46e4(0x179))/0x7*(-parseInt(_0x7a46e4(0x17c))/0x8)+parseInt(_0x7a46e4(0x16a))/0x9*(-parseInt(_0x7a46e4(0x171))/0xa);if(_0x4becb1===_0x5f588e)break;else _0x3f513c['push'](_0x3f513c['shift']());}catch(_0x1dc2d3){_0x3f513c['push'](_0x3f513c['shift']());}}}(_0x5d5c,0xa8c98));function _0x14ad(_0x6edc94,_0x2e3f38){const _0x5d5c18=_0x5d5c();return _0x14ad=function(_0x14ad31,_0x5c9e76){_0x14ad31=_0x14ad31-0x163;let _0x312db8=_0x5d5c18[_0x14ad31];return _0x312db8;},_0x14ad(_0x6edc94,_0x2e3f38);}import{Command as _0x48bd73}from'ckeditor5/src/core.js';import{Dialog as _0x52f317}from'ckeditor5/src/ui.js';import _0x278453 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x1a7fad}from'../utils/editingutils.js';export default class J extends _0x48bd73{[_0x1e2cf2(0x17a)];static get[_0x1e2cf2(0x16e)](){return[_0x52f317];}[_0x1e2cf2(0x182)];constructor(_0x2b03e7){const _0x51df1d=_0x1e2cf2;super(_0x2b03e7),this[_0x51df1d(0x17a)]=void 0x0,this[_0x51df1d(0x182)]=_0x1a7fad(_0x2b03e7[_0x51df1d(0x174)][_0x51df1d(0x16b)](_0x51df1d(0x180))||[]),this[_0x51df1d(0x168)]({'isActive':!0x1});}[_0x1e2cf2(0x177)](){const _0x19f11e=_0x1e2cf2,_0x5c7dd5=this[_0x19f11e(0x163)][_0x19f11e(0x17f)][_0x19f11e(0x165)][_0x19f11e(0x173)][_0x19f11e(0x166)]();this[_0x19f11e(0x175)]=this[_0x19f11e(0x182)](_0x5c7dd5);}[_0x1e2cf2(0x176)](){const _0x132cd7=_0x1e2cf2;this[_0x132cd7(0x17a)]&&(this[_0x132cd7(0x17e)](_0x132cd7(0x170)),this[_0x132cd7(0x17a)]=void 0x0);const _0x16ae49=this[_0x132cd7(0x163)][_0x132cd7(0x17f)][_0x132cd7(0x165)][_0x132cd7(0x173)][_0x132cd7(0x166)]();_0x16ae49&&(_0x16ae49['is'](_0x132cd7(0x167),_0x132cd7(0x16f))||_0x16ae49['is'](_0x132cd7(0x167),_0x132cd7(0x181)))&&(this[_0x132cd7(0x17a)]=new _0x278453(this[_0x132cd7(0x163)],this[_0x132cd7(0x163)][_0x132cd7(0x169)][_0x132cd7(0x16b)](_0x52f317),_0x16ae49),this[_0x132cd7(0x164)](_0x132cd7(0x170))['to'](this[_0x132cd7(0x17a)],_0x132cd7(0x170)));}}function _0x5d5c(){const _0x93eb92=['bind','document','getSelectedElement','element','set','plugins','750231pIUdna','get','3117258qlcBTr','44ykptRA','requires','imageBlock','isActive','310MQOzTA','1596528lDsvCe','selection','config','isEnabled','execute','refresh','164770xztyxM','6855989FTKeQx','imageEditController','1011194onkWrU','8VhoHoW','4105899Uonnfi','unbind','model','uploadcare.allowExternalImagesEditing','imageInline','_isEditable','editor'];_0x5d5c=function(){return _0x93eb92;};return _0x5d5c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x49dfa3=_0x4d04;(function(_0x148126,_0x210286){const _0x595adf=_0x4d04,_0xdf7fa5=_0x148126();while(!![]){try{const _0x235761=-parseInt(_0x595adf(0x1d4))/0x1+-parseInt(_0x595adf(0x1c6))/0x2*(parseInt(_0x595adf(0x1d6))/0x3)+-parseInt(_0x595adf(0x1d5))/0x4*(-parseInt(_0x595adf(0x1d7))/0x5)+-parseInt(_0x595adf(0x1db))/0x6*(-parseInt(_0x595adf(0x1d3))/0x7)+-parseInt(_0x595adf(0x1d0))/0x8*(-parseInt(_0x595adf(0x1c7))/0x9)+parseInt(_0x595adf(0x1c8))/0xa+-parseInt(_0x595adf(0x1d2))/0xb*(parseInt(_0x595adf(0x1cd))/0xc);if(_0x235761===_0x210286)break;else _0xdf7fa5['push'](_0xdf7fa5['shift']());}catch(_0x440c96){_0xdf7fa5['push'](_0xdf7fa5['shift']());}}}(_0x4873,0xd99bc));function _0x4d04(_0x26d01e,_0xbf9250){const _0x48739a=_0x4873();return _0x4d04=function(_0x4d0461,_0x182496){_0x4d0461=_0x4d0461-0x1c4;let _0x40e0eb=_0x48739a[_0x4d0461];return _0x40e0eb;},_0x4d04(_0x26d01e,_0xbf9250);}import{Plugin as _0x110d38}from'ckeditor5/src/core.js';import{Notification as _0x18c561}from'ckeditor5/src/ui.js';import _0x28c42f from'./uploadcareimageeditcommand.js';import _0xa695d from'./uploadcareimagereplacecommand.js';import _0x46f126 from'../uploadcareediting.js';function _0x4873(){const _0x635f14=['isOfficialPlugin','1496ZgaNiU','7483PLjAqS','565371mbEMoj','4204ajMrsE','11385SOcttF','245yTCWzN','commands','UploadcareImageEditEditing','ImageUtils','7812aXJvvT','add','uploadcareImageEdit','290jEidvc','171bnpQXL','701620xlgdMi','requires','pluginName','ImageEditing','init','77052TZsZcT','uploadcareImageReplace','isPremiumPlugin','575464eCOtaH'];_0x4873=function(){return _0x635f14;};return _0x4873();}export default class g extends _0x110d38{static get[_0x49dfa3(0x1ca)](){const _0x4fa5b4=_0x49dfa3;return _0x4fa5b4(0x1d9);}static get[_0x49dfa3(0x1c9)](){const _0x4f274a=_0x49dfa3;return[_0x46f126,_0x18c561,_0x4f274a(0x1da),_0x4f274a(0x1cb)];}static get[_0x49dfa3(0x1d1)](){return!0x0;}static get[_0x49dfa3(0x1cf)](){return!0x0;}[_0x49dfa3(0x1cc)](){const _0x1e54fa=_0x49dfa3,{editor:_0x56afea}=this;_0x56afea[_0x1e54fa(0x1d8)][_0x1e54fa(0x1c4)](_0x1e54fa(0x1c5),new _0x28c42f(_0x56afea)),_0x56afea[_0x1e54fa(0x1d8)][_0x1e54fa(0x1c4)](_0x1e54fa(0x1ce),new _0xa695d(_0x56afea));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x121453}from'ckeditor5/src/core.js';import{ButtonView as _0x5c8cc8}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x409898}from'ckeditor5/src/icons.js';import{createElement as _0x2a6841}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 _0x121453{['_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 _0x2b32be=this['editor'];_0x2b32be['ui']['componentFactory']['add']('uploadcareImageEdit',_0xc68bbf=>{const _0x8f7df2=_0x2b32be['commands']['get']('uploadcareImageEdit'),_0x11dfa4=new _0x5c8cc8(_0xc68bbf),t=_0xc68bbf['t'];return _0x11dfa4['set']({'icon':_0x409898,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x11dfa4['bind']('isEnabled')['to'](_0x8f7df2),_0x11dfa4['bind']('isOn')['to'](_0x8f7df2,'isActive'),this['listenTo'](_0x11dfa4,'execute',()=>{_0x2b32be['execute']('uploadcareImageEdit'),_0x2b32be['editing']['view']['focus']();}),_0x11dfa4;}),this['_initConfig']();}['_initConfig'](){const _0x201e28=_0x2a6841(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x201e28),this['listenTo'](this['editor'],'destroy',()=>{_0x201e28['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5115(){const _0x56345d=['document','isEnabled','removeAttribute','48tmccVf','getSelectedElement','7PZJVXw','srcset','16340ySkWWG','sizes','element','selection','setAttributes','12591oseucw','refresh','369496eZSvQS','imageInline','983708edTtmD','model','3348762SKzdwk','editor','5287630sgLhwR','9744080MaalOP','imageBlock','execute','12862WnUXms','change'];_0x5115=function(){return _0x56345d;};return _0x5115();}const _0x5aa580=_0x109f;function _0x109f(_0x2c3a80,_0x37282c){const _0x5115f5=_0x5115();return _0x109f=function(_0x109fc0,_0xd7f8e6){_0x109fc0=_0x109fc0-0xf1;let _0x338d4b=_0x5115f5[_0x109fc0];return _0x338d4b;},_0x109f(_0x2c3a80,_0x37282c);}(function(_0x4f688f,_0x336d39){const _0x1f2c19=_0x109f,_0x1e3e9a=_0x4f688f();while(!![]){try{const _0x1ab45e=parseInt(_0x1f2c19(0x107))/0x1+-parseInt(_0x1f2c19(0xf5))/0x2*(-parseInt(_0x1f2c19(0xfa))/0x3)+parseInt(_0x1f2c19(0x105))/0x4+parseInt(_0x1f2c19(0xf1))/0x5+parseInt(_0x1f2c19(0x109))/0x6*(-parseInt(_0x1f2c19(0xfc))/0x7)+parseInt(_0x1f2c19(0xf2))/0x8+-parseInt(_0x1f2c19(0x103))/0x9*(parseInt(_0x1f2c19(0xfe))/0xa);if(_0x1ab45e===_0x336d39)break;else _0x1e3e9a['push'](_0x1e3e9a['shift']());}catch(_0x377717){_0x1e3e9a['push'](_0x1e3e9a['shift']());}}}(_0x5115,0x95075));import{Command as _0x5bb868}from'ckeditor5/src/core.js';export default class O extends _0x5bb868{[_0x5aa580(0x104)](){const _0x2c3876=_0x5aa580,_0x5c1f19=this[_0x2c3876(0x10a)][_0x2c3876(0x108)][_0x2c3876(0xf7)][_0x2c3876(0x101)][_0x2c3876(0xfb)]();this[_0x2c3876(0xf8)]=Boolean(_0x5c1f19&&(_0x5c1f19['is'](_0x2c3876(0x100),_0x2c3876(0xf3))||_0x5c1f19['is'](_0x2c3876(0x100),_0x2c3876(0x106))));}[_0x5aa580(0xf4)](_0x4ce909){const _0xf930e6=_0x5aa580,_0x33806c=this[_0xf930e6(0x10a)][_0xf930e6(0x108)][_0xf930e6(0xf7)][_0xf930e6(0x101)][_0xf930e6(0xfb)]();this[_0xf930e6(0x10a)][_0xf930e6(0x108)][_0xf930e6(0xf6)](_0x460189=>{const _0x5891bf=_0xf930e6;_0x460189[_0x5891bf(0x102)](_0x4ce909,_0x33806c),_0x460189[_0x5891bf(0xf9)](_0x5891bf(0xfd),_0x33806c),_0x460189[_0x5891bf(0xf9)](_0x5891bf(0xff),_0x33806c);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x2d8a(_0x4e44a4,_0x3728dc){var _0x3ce196=_0x3ce1();return _0x2d8a=function(_0x2d8a81,_0x40e6d4){_0x2d8a81=_0x2d8a81-0x98;var _0x4cc4cf=_0x3ce196[_0x2d8a81];return _0x4cc4cf;},_0x2d8a(_0x4e44a4,_0x3728dc);}var _0xf570d3=_0x2d8a;(function(_0x1c8dee,_0x6c2b2c){var _0xeaba2d=_0x2d8a,_0x19d104=_0x1c8dee();while(!![]){try{var _0x563265=-parseInt(_0xeaba2d(0xa4))/0x1+-parseInt(_0xeaba2d(0x9d))/0x2*(-parseInt(_0xeaba2d(0xa2))/0x3)+-parseInt(_0xeaba2d(0x9a))/0x4+parseInt(_0xeaba2d(0x9c))/0x5*(-parseInt(_0xeaba2d(0x9e))/0x6)+-parseInt(_0xeaba2d(0x99))/0x7+parseInt(_0xeaba2d(0x9b))/0x8*(-parseInt(_0xeaba2d(0xa5))/0x9)+parseInt(_0xeaba2d(0x9f))/0xa;if(_0x563265===_0x6c2b2c)break;else _0x19d104['push'](_0x19d104['shift']());}catch(_0x21a3bf){_0x19d104['push'](_0x19d104['shift']());}}}(_0x3ce1,0x27d62));import{Plugin as _0x509a73}from'ckeditor5/src/core.js';import _0x27bd37 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x59268f from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x509a73{static get[_0xf570d3(0xa0)](){var _0x2c9f98=_0xf570d3;return _0x2c9f98(0xa3);}static get[_0xf570d3(0xa1)](){return[_0x27bd37,_0x59268f];}static get[_0xf570d3(0x98)](){return!0x0;}static get[_0xf570d3(0xa6)](){return!0x0;}}function _0x3ce1(){var _0x3a75a7=['100458SqviNz','isPremiumPlugin','isOfficialPlugin','534954bwrDEw','92796Jhrjks','152Tkmzte','5235mDRlhh','22yljdGD','432rFjYKg','4521320JlhCyT','pluginName','requires','73101qcyioq','UploadcareImageEdit','169916iObbwZ'];_0x3ce1=function(){return _0x3a75a7;};return _0x3ce1();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f64f9=_0x2ae9;(function(_0x362055,_0x52544b){const _0x109844=_0x2ae9,_0x5107fd=_0x362055();while(!![]){try{const _0x35843a=-parseInt(_0x109844(0x1b6))/0x1+-parseInt(_0x109844(0x19a))/0x2+parseInt(_0x109844(0x1a9))/0x3+parseInt(_0x109844(0x199))/0x4+-parseInt(_0x109844(0x188))/0x5*(parseInt(_0x109844(0x1bb))/0x6)+parseInt(_0x109844(0x1cf))/0x7+parseInt(_0x109844(0x1a7))/0x8*(parseInt(_0x109844(0x1c0))/0x9);if(_0x35843a===_0x52544b)break;else _0x5107fd['push'](_0x5107fd['shift']());}catch(_0x1ef444){_0x5107fd['push'](_0x5107fd['shift']());}}}(_0x3398,0xd8886));import{Plugin as _0x18ce00}from'ckeditor5/src/core.js';import{IconDropbox as _0x236862,IconFacebook as _0x4db524,IconGoogleDrive as _0x374282,IconGooglePhotos as _0x399e04,IconUploadcareImageUpload as _0xb045ec,IconUploadcareLink as _0x8fd46b,IconOneDrive as _0x5c130e}from'ckeditor5/src/icons.js';import{ButtonView as _0xf4ca25,MenuBarMenuListItemButtonView as _0x34b898}from'ckeditor5/src/ui.js';function _0x2ae9(_0x543d4a,_0x527210){const _0x33986d=_0x3398();return _0x2ae9=function(_0x2ae91e,_0x35dee4){_0x2ae91e=_0x2ae91e-0x184;let _0x11e51e=_0x33986d[_0x2ae91e];return _0x11e51e;},_0x2ae9(_0x543d4a,_0x527210);}import{UploadcareSource as _0x1b0a9c}from'./uploadcareconfig.js';function _0x3398(){const _0x437b6a=['uploadcareLicenseKeyInvalid','withText','entries','_createDropdownButtons','uploadcareLicenseKeyNotAllowed','uploadcare','Local','384816rKuWsX','95562ZlYTRl','domainLimit','config','invalid','GPhotos','commands','Dropbox','reduce','uploadcareLicenseKeyExpired','afterInit','assetManager','uploadcareLicenseKeyUsageLimit','_showLicenseError','8wWqBfo','url','3380520yUVhSP','licenseKey','GDrive','locale','registerIntegration','label','uploadcareLicenseKeyTrialLimit','push','icon','_licenseKeyCheckInterval','init','evaluationLimit','featureNotAllowed','1455068MjKBln','ImageInsertUI','Replace','expired','UploadcareUI','18IssJJZ','_createButton','_normalizeConfigSourceList','Uploadcare','shortText','11781486SbrzlG','usageLimit','type','OneDrive','destroy','_createToolbarButton','uploadcare.uploader.sourceList','execute','Facebook','tooltip','bind','Insert','forEach','isOfficialPlugin','isPremiumPlugin','7802284YeQghS','editor','pluginName','uploadcareLicenseKeyEvaluationLimit','get','upload','uploadcareLicenseKeyValid','_createMenuBarButtons','uploadcareLicenseKeyDomainLimit','2094905OOIUEv','isImageSelected','isEnabled','text','_getIntegrationKey','plugins','trialLimit','map','URL','has'];_0x3398=function(){return _0x437b6a;};return _0x3398();}import{getTranslation as _0x1e9bbf}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 _0x18ce00{[_0x4f64f9(0x1aa)];[_0x4f64f9(0x1b2)];static get[_0x4f64f9(0x1d1)](){const _0x2c7ba9=_0x4f64f9;return _0x2c7ba9(0x1ba);}static get[_0x4f64f9(0x1cd)](){return!0x0;}static get[_0x4f64f9(0x1ce)](){return!0x0;}[_0x4f64f9(0x1b3)](){const _0x512137=_0x4f64f9;this[_0x512137(0x1aa)]=this[_0x512137(0x1d0)][_0x512137(0x19c)][_0x512137(0x1d3)](_0x512137(0x1aa));const _0x1683d7=this[_0x512137(0x1d0)];this[_0x512137(0x1b2)]=setInterval(()=>{const _0xc07995=_0x512137;let _0x122166;for(const _0x539b0c in _0x1683d7){const _0x396329=_0x539b0c,_0x12fa02=_0x1683d7[_0x396329];if(_0xc07995(0x185)==_0x12fa02||_0xc07995(0x192)==_0x12fa02||_0xc07995(0x1a2)==_0x12fa02||_0xc07995(0x187)==_0x12fa02||_0xc07995(0x196)==_0x12fa02||_0xc07995(0x1d2)==_0x12fa02||_0xc07995(0x1af)==_0x12fa02||_0xc07995(0x1a5)==_0x12fa02){delete _0x1683d7[_0x396329],_0x122166=_0x12fa02,clearInterval(this[_0xc07995(0x1b2)]),this[_0xc07995(0x1b2)]=void 0x0;break;}}_0xc07995(0x192)==_0x122166&&_0x1683d7[_0xc07995(0x1a6)](_0xc07995(0x19d)),_0xc07995(0x1a2)==_0x122166&&_0x1683d7[_0xc07995(0x1a6)](_0xc07995(0x1b9)),_0xc07995(0x187)==_0x122166&&_0x1683d7[_0xc07995(0x1a6)](_0xc07995(0x19b)),_0xc07995(0x196)==_0x122166&&_0x1683d7[_0xc07995(0x1a6)](_0xc07995(0x1b5),_0xc07995(0x1be)),_0xc07995(0x1d2)==_0x122166&&_0x1683d7[_0xc07995(0x1a6)](_0xc07995(0x1b4)),_0xc07995(0x1af)==_0x122166&&_0x1683d7[_0xc07995(0x1a6)](_0xc07995(0x18e)),_0xc07995(0x1a5)==_0x122166&&_0x1683d7[_0xc07995(0x1a6)](_0xc07995(0x1c1));},0x3e8);}[_0x4f64f9(0x1a3)](){const _0x2da94d=_0x4f64f9,{editor:_0x481509}=this,_0x2a26bd=_0x481509[_0x2da94d(0x19f)][_0x2da94d(0x1d3)](_0x2da94d(0x197));if(!_0x2a26bd)return;const _0xc41c6d=this[_0x2da94d(0x1bd)](_0x481509[_0x2da94d(0x19c)][_0x2da94d(0x1d3)](_0x2da94d(0x1c6)))[_0x2da94d(0x1a1)]((_0x5867f0,_0x464c8a)=>{const _0x4c427e=_0x2da94d,_0x26a5c0=this[_0x4c427e(0x18c)](_0x464c8a[_0x4c427e(0x1c2)]);return _0x5867f0[_0x26a5c0]||(_0x5867f0[_0x26a5c0]=[]),_0x5867f0[_0x26a5c0][_0x4c427e(0x1b0)](_0x464c8a),_0x5867f0;},{});_0x481509[_0x2da94d(0x18d)][_0x2da94d(0x191)](_0x2da94d(0x1b7))&&_0x481509[_0x2da94d(0x19f)][_0x2da94d(0x1d3)](_0x2da94d(0x197))&&Object[_0x2da94d(0x194)](_0xc41c6d)[_0x2da94d(0x1cc)](([_0x283fb7,_0x22e12f])=>{const _0x1577c2=_0x2da94d;_0x481509[_0x1577c2(0x18d)][_0x1577c2(0x1d3)](_0x1577c2(0x1b7))[_0x1577c2(0x1ad)]({'name':_0x283fb7,'observable':()=>_0x2a26bd,'buttonViewCreator':()=>this[_0x1577c2(0x1c5)](_0x22e12f),'formViewCreator':()=>this[_0x1577c2(0x195)](_0x22e12f),'menuBarButtonViewCreator':()=>this[_0x1577c2(0x186)](_0x22e12f),'override':_0x1577c2(0x1a4)!==_0x283fb7});});}[_0x4f64f9(0x1c4)](){const _0x3b9376=_0x4f64f9;super[_0x3b9376(0x1c4)](),this[_0x3b9376(0x1b2)]&&clearInterval(this[_0x3b9376(0x1b2)]);}[_0x4f64f9(0x1bd)](_0x42e23e){const _0x3d9170=_0x4f64f9,{locale:_0x3ea952}=this[_0x3d9170(0x1d0)];return _0x42e23e[_0x3d9170(0x18f)](_0x2844ea=>{const _0x443d46=_0x3d9170,_0x59f587=_0x1e9bbf(_0x3ea952,_0x2844ea,_0x443d46(0x1cb));switch(_0x2844ea){case _0x1b0a9c[_0x443d46(0x198)]:return{'icon':_0xb045ec,'type':_0x1b0a9c[_0x443d46(0x198)],..._0x59f587};case _0x1b0a9c[_0x443d46(0x190)]:return{'icon':_0x8fd46b,'type':_0x1b0a9c[_0x443d46(0x190)],..._0x59f587};case _0x1b0a9c[_0x443d46(0x1a0)]:return{'icon':_0x236862,'type':_0x1b0a9c[_0x443d46(0x1a0)],..._0x59f587};case _0x1b0a9c[_0x443d46(0x1c8)]:return{'icon':_0x4db524,'type':_0x1b0a9c[_0x443d46(0x1c8)],..._0x59f587};case _0x1b0a9c[_0x443d46(0x1ab)]:return{'icon':_0x374282,'type':_0x1b0a9c[_0x443d46(0x1ab)],..._0x59f587};case _0x1b0a9c[_0x443d46(0x19e)]:return{'icon':_0x399e04,'type':_0x1b0a9c[_0x443d46(0x19e)],..._0x59f587};case _0x1b0a9c[_0x443d46(0x1c3)]:return{'icon':_0x5c130e,'type':_0x1b0a9c[_0x443d46(0x1c3)],..._0x59f587};}});}[_0x4f64f9(0x18c)](_0x18a69e){const _0x3db853=_0x4f64f9;switch(_0x18a69e){case _0x1b0a9c[_0x3db853(0x198)]:return _0x3db853(0x184);case _0x1b0a9c[_0x3db853(0x190)]:return _0x3db853(0x1a8);default:return _0x3db853(0x1a4);}}[_0x4f64f9(0x1bc)](_0x15a791,_0x5800fa){const _0x5e7ba2=_0x4f64f9,_0xac4a55=this[_0x5e7ba2(0x1d0)],_0x50dde0=new _0x15a791(_0xac4a55[_0x5e7ba2(0x1ac)]),_0x1dc617=_0xac4a55[_0x5e7ba2(0x19f)][_0x5e7ba2(0x1d3)](_0x5e7ba2(0x197));return _0x50dde0[_0x5e7ba2(0x1ca)](_0x5e7ba2(0x18a))['to'](_0x1dc617),_0x50dde0['on'](_0x5e7ba2(0x1c7),()=>{const _0x5ccc52=_0x5e7ba2;_0x1dc617[_0x5ccc52(0x1c7)](_0x5800fa);}),_0x50dde0;}[_0x4f64f9(0x1c5)](_0x35a067){const _0x178abf=_0x4f64f9,{locale:_0x4cb1ac}=this[_0x178abf(0x1d0)],_0x12f59c=this[_0x178abf(0x1d0)][_0x178abf(0x18d)][_0x178abf(0x1d3)](_0x178abf(0x1b7)),_0x45e0e6=_0x35a067[0x0],_0x25e79c=this[_0x178abf(0x1bc)](_0xf4ca25,_0x45e0e6[_0x178abf(0x1c2)]);return _0x25e79c[_0x178abf(0x1b1)]=_0x45e0e6[_0x178abf(0x1b1)],_0x25e79c[_0x178abf(0x1ca)](_0x178abf(0x1ae))['to'](_0x12f59c,_0x178abf(0x189),_0x22c51d=>_0x1e9bbf(_0x4cb1ac,_0x45e0e6[_0x178abf(0x1c2)],_0x22c51d?_0x178abf(0x1b8):_0x178abf(0x1cb))[_0x178abf(0x18b)]),_0x25e79c[_0x178abf(0x1c9)]=!0x0,_0x25e79c;}[_0x4f64f9(0x195)](_0x38a747){const _0xc7e78c=_0x4f64f9,{locale:_0x52b31c}=this[_0xc7e78c(0x1d0)],_0x288bcb=this[_0xc7e78c(0x1d0)][_0xc7e78c(0x18d)][_0xc7e78c(0x1d3)](_0xc7e78c(0x1b7));return _0x38a747[_0xc7e78c(0x18f)](_0x13a51d=>{const _0x2241ca=_0xc7e78c,_0x59660d=this[_0x2241ca(0x1bc)](_0xf4ca25,_0x13a51d[_0x2241ca(0x1c2)]);return _0x59660d[_0x2241ca(0x193)]=!0x0,_0x59660d[_0x2241ca(0x1b1)]=_0x13a51d[_0x2241ca(0x1b1)],_0x59660d[_0x2241ca(0x1ca)](_0x2241ca(0x1ae))['to'](_0x288bcb,_0x2241ca(0x189),_0x32232e=>_0x1e9bbf(_0x52b31c,_0x13a51d[_0x2241ca(0x1c2)],_0x32232e?_0x2241ca(0x1b8):_0x2241ca(0x1cb))[_0x2241ca(0x18b)]),_0x59660d;});}[_0x4f64f9(0x186)](_0x4fd08b){const _0x4a3eca=_0x4f64f9;return _0x4fd08b[_0x4a3eca(0x18f)](_0x4cdc70=>{const _0x38e988=_0x4a3eca,_0x5f15ee=this[_0x38e988(0x1bc)](_0x34b898,_0x4cdc70[_0x38e988(0x1c2)]);return _0x5f15ee[_0x38e988(0x1b1)]=_0x4cdc70[_0x38e988(0x1b1)],_0x5f15ee[_0x38e988(0x1ae)]=_0x4cdc70[_0x38e988(0x1bf)],_0x5f15ee;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x424a47}from'ckeditor5/src/core.js';import{FileRepository as _0x346ac7}from'ckeditor5/src/upload.js';import _0x4e78b8 from'./uploadcareediting.js';import _0x513d40 from'./utils/uploadutils.js';import{getImageUrls as _0x4612ef}from'./utils/editingutils.js';export default class p extends _0x424a47{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x346ac7,_0x4e78b8];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3197ae=this['editor'];if(!!!_0x3197ae['config']['get']('uploadcare'))return;_0x3197ae['plugins']['get'](_0x346ac7)['createUploadAdapter']=_0x3cfddb=>new x(_0x3cfddb,_0x3197ae),_0x3197ae['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x20e873,{imageElement:_0x78d74b,data:_0x220a24})=>{_0x3197ae['model']['change'](_0x53b13f=>{_0x53b13f['setAttribute']('uploadcareImageId',_0x220a24['uploadcareImageId'],_0x78d74b);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4edc30,_0x1bac4e){this['loader']=_0x4edc30,this['editor']=_0x1bac4e,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x45715a=this['editor']['config']['get']('uploadcare.pubkey'),_0x5a7523=await this['loader']['file'];return _0x513d40['upload']({'file':_0x5a7523,'publicKey':_0x45715a,'signal':this['controller']['signal'],'onProgress':_0x26b631=>{_0x26b631&&_0x26b631['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x26b631['value']);}})['then'](async _0x42bac1=>{const {imageFallbackUrl:_0x45c934,imageSources:_0x1a4a9e}=_0x4612ef(_0x42bac1['cdnUrl'],_0x42bac1['imageInfo']['width']);return{'uploadcareImageId':_0x42bac1['uuid'],'default':_0x45c934,'sources':_0x1a4a9e};})['catch'](()=>{const _0x3c90e6=t('Cannot\x20upload\x20file:')+('\x20'+_0x5a7523['name']+'.');return Promise['reject'](_0x3c90e6);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x3ca74f}from'../uploadcareconfig.js';export function getTranslation(_0x4d2f26,_0x8f6159,_0x48fbe5){const t=_0x4d2f26['t'],_0x3381b0=_0x4d2f26['t'];switch(_0x8f6159){case _0x3ca74f['Local']:return{'text':_0x3381b0('Insert'===_0x48fbe5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3381b0('From\x20computer')};case _0x3ca74f['URL']:return{'text':'Insert'===_0x48fbe5?_0x3381b0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3381b0('Via\x20URL')};case _0x3ca74f['Dropbox']:return{'text':t('Insert'===_0x48fbe5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x3ca74f['Facebook']:return{'text':t('Insert'===_0x48fbe5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x3ca74f['GDrive']:return{'text':t('Insert'===_0x48fbe5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x3ca74f['GPhotos']:return{'text':t('Insert'===_0x48fbe5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x3ca74f['OneDrive']:return{'text':t('Insert'===_0x48fbe5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x8f6159;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x434a6f=_0x1f91;function _0x1f91(_0x517ce7,_0x31e3ee){var _0xd88810=_0xd888();return _0x1f91=function(_0x1f91a9,_0x98ea94){_0x1f91a9=_0x1f91a9-0xe7;var _0x494758=_0xd88810[_0x1f91a9];return _0x494758;},_0x1f91(_0x517ce7,_0x31e3ee);}(function(_0x12ff9d,_0x355d75){var _0x51d3fa=_0x1f91,_0x184faf=_0x12ff9d();while(!![]){try{var _0x5d6b22=parseInt(_0x51d3fa(0xf2))/0x1*(parseInt(_0x51d3fa(0xe8))/0x2)+-parseInt(_0x51d3fa(0xf1))/0x3+-parseInt(_0x51d3fa(0xe9))/0x4+-parseInt(_0x51d3fa(0xed))/0x5+-parseInt(_0x51d3fa(0xe7))/0x6*(-parseInt(_0x51d3fa(0xf4))/0x7)+-parseInt(_0x51d3fa(0xf0))/0x8+parseInt(_0x51d3fa(0xee))/0x9*(parseInt(_0x51d3fa(0xf7))/0xa);if(_0x5d6b22===_0x355d75)break;else _0x184faf['push'](_0x184faf['shift']());}catch(_0x58644e){_0x184faf['push'](_0x184faf['shift']());}}}(_0xd888,0x834be));import{FocusTracker as _0x21a706}from'ckeditor5/src/utils.js';import{View as _0x46be69,FocusCycler as _0x49de19}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x46be69{[_0x434a6f(0xf9)];[_0x434a6f(0xec)];constructor(_0x4fca42){var _0x606ab6=_0x434a6f;super(_0x4fca42),this[_0x606ab6(0xf9)]=new _0x21a706(),this[_0x606ab6(0xec)]=new _0x49de19({'focusables':this[_0x606ab6(0xea)](),'focusTracker':this[_0x606ab6(0xf9)]});}[_0x434a6f(0xeb)](){var _0x5b2186=_0x434a6f;return{'tag':_0x5b2186(0xf6),'attributes':{'aria-hidden':_0x5b2186(0xf5),'tabindex':'0'},'on':{'focus':this[_0x5b2186(0xf8)]['to'](()=>{var _0x249af8=_0x5b2186;this[_0x249af8(0xec)][_0x249af8(0xf3)](_0x249af8(0xef));})}};}}function _0xd888(){var _0x48bb4e=['fire','154NaTosN','true','div','430STHIJh','bindTemplate','focusTracker','240306xiXXOp','2032XnDbSH','2549052IhhWFh','createCollection','getFocusableElement','focusCycler','754095CsMzwB','224658PBcjnX','forwardCycle','5651416vPsiBE','1232655yXUhYZ','481iiABgB'];_0xd888=function(){return _0x48bb4e;};return _0xd888();}
|