@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260104.0 → 0.0.0-nightly-20260105.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/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 _0x376094=_0x55aa;(function(_0x46e3fb,_0x257f7e){const _0x4c14c2=_0x55aa,_0x2d3a87=_0x46e3fb();while(!![]){try{const _0x301b0c=parseInt(_0x4c14c2(0x184))/0x1+parseInt(_0x4c14c2(0x16a))/0x2+parseInt(_0x4c14c2(0x167))/0x3+-parseInt(_0x4c14c2(0x19a))/0x4*(parseInt(_0x4c14c2(0x1b2))/0x5)+parseInt(_0x4c14c2(0x164))/0x6*(parseInt(_0x4c14c2(0x19f))/0x7)+parseInt(_0x4c14c2(0x199))/0x8*(-parseInt(_0x4c14c2(0x1a0))/0x9)+-parseInt(_0x4c14c2(0x162))/0xa*(parseInt(_0x4c14c2(0x17c))/0xb);if(_0x301b0c===_0x257f7e)break;else _0x2d3a87['push'](_0x2d3a87['shift']());}catch(_0x56462f){_0x2d3a87['push'](_0x2d3a87['shift']());}}}(_0x39f7,0x8c002));import{Plugin as _0x57a6fa}from'ckeditor5/src/core.js';import{Dialog as _0x35c0df}from'ckeditor5/src/ui.js';function _0x39f7(){const _0x3eb80c=['uc-config','_initSchema','selection','96341yTfrAs','9270sXynqx','appendChild','input[uploadcare-file-input]','isOfficialPlugin','for','commands','document','ucContextId','data-uc-image-id','config','once','conversion','locale','destroy','_initConversion','attributeToAttribute','uc-upload-ctx-provider','_configElement','12605tRzHhd','elementToAttribute','requires','replaceImageSource','join','map','7459060TIofLL','upcast','474UfbDHe','imageBlock','querySelector','3089109FFkodM','uploadcare.uploader','\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','1838436ptSJVj','add','render','ctxElement','fromCharCode','uploadcare.pubkey','true','_initConfig','remove','schema','listenTo','_initCtx','isPremiumPlugin','init','href','configElement','editor','get','22GcLUOv','afterInit','getSelectedElement','isRegistered','_initImageProcessingIndicator','uploadcareImageId','execute','uploadcare','340997bkCwuv','downcast','_ctxElement','iconHrefResolver','getAttribute','UploadcareEditing','#uc-icon-arrow-down','contentLanguage','view','editing','insertImage','body','closeMax','uploadcareImageReplace','pluginName','uploader-','PictureEditing','extend','cleanupImage','removeAttribute','imageInline','8408kutKeh','364ztpzOY','model'];_0x39f7=function(){return _0x3eb80c;};return _0x39f7();}import{createElement as _0x3be59a,global as _0x70ec66,uid as _0x4d65ff}from'ckeditor5/src/utils.js';function _0x55aa(_0x21d10b,_0x21161a){const _0x39f708=_0x39f7();return _0x55aa=function(_0x55aadb,_0x19e4a3){_0x55aadb=_0x55aadb-0x160;let _0xab0807=_0x39f708[_0x55aadb];return _0xab0807;},_0x55aa(_0x21d10b,_0x21161a);}import{UploadcareCommand as _0x4bcb60}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2ad8d3}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4a2f34}from'./utils/editingutils.js';export class UploadcareEditing extends _0x57a6fa{[_0x376094(0x1b1)]=null;[_0x376094(0x186)]=null;static get[_0x376094(0x192)](){const _0x2b15a0=_0x376094;return _0x2b15a0(0x189);}static get[_0x376094(0x1b4)](){const _0xdc2a7c=_0x376094;return[_0xdc2a7c(0x194),_0x2ad8d3,_0x35c0df];}static get[_0x376094(0x1a3)](){return!0x0;}static get[_0x376094(0x176)](){return!0x0;}[_0x376094(0x1a7)];get[_0x376094(0x179)](){const _0x1ca3e0=_0x376094;return this[_0x1ca3e0(0x1b1)];}get[_0x376094(0x16d)](){const _0x14ded7=_0x376094;return this[_0x14ded7(0x186)];}constructor(_0x91767b){const _0x2fcdc7=_0x376094;super(_0x91767b),this[_0x2fcdc7(0x1a7)]=_0x4d65ff();}[_0x376094(0x177)](){const _0x3dd974=_0x376094,_0x1406ef=this[_0x3dd974(0x17a)];_0x1406ef[_0x3dd974(0x1a5)][_0x3dd974(0x16b)](_0x3dd974(0x183),new _0x4bcb60(_0x1406ef));}[_0x376094(0x17d)](){const _0x10d9b0=_0x376094;this[_0x10d9b0(0x19d)](),this[_0x10d9b0(0x1ae)](),this[_0x10d9b0(0x171)](),this[_0x10d9b0(0x175)](),this[_0x10d9b0(0x180)](),this[_0x10d9b0(0x174)](this[_0x10d9b0(0x17a)],_0x10d9b0(0x1ad),()=>{const _0x2b6253=_0x10d9b0;this[_0x2b6253(0x1b1)]&&(this[_0x2b6253(0x1b1)][_0x2b6253(0x172)](),this[_0x2b6253(0x1b1)]=null),this[_0x2b6253(0x186)]&&(this[_0x2b6253(0x186)][_0x2b6253(0x172)](),this[_0x2b6253(0x186)]=null);const _0x55d063=_0x70ec66[_0x2b6253(0x1a6)][_0x2b6253(0x166)](_0x2b6253(0x1a2));_0x55d063&&_0x55d063[_0x2b6253(0x172)]();}),async function(_0x38e05e){const _0x1d3690=_0x821afc([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x550aaa=0x535f8c3a,_0x2806a6=0x5358f1e2^_0x550aaa,_0x4ee221=window[_0x821afc([0x44,0x61,0x74,0x65])][_0x821afc([0x6e,0x6f,0x77])](),_0xc8ba29=_0x38e05e[_0x821afc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x512477=new window[(_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x572e9f=>{_0xc8ba29[_0x821afc([0x6f,0x6e,0x63,0x65])](_0x821afc([0x72,0x65,0x61,0x64,0x79]),_0x572e9f);}),_0x3d5f9b={[_0x821afc([0x6b,0x74,0x79])]:_0x821afc([0x45,0x43]),[_0x821afc([0x75,0x73,0x65])]:_0x821afc([0x73,0x69,0x67]),[_0x821afc([0x63,0x72,0x76])]:_0x821afc([0x50,0x2d,0x32,0x35,0x36]),[_0x821afc([0x78])]:_0x821afc([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]),[_0x821afc([0x79])]:_0x821afc([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]),[_0x821afc([0x61,0x6c,0x67])]:_0x821afc([0x45,0x53,0x32,0x35,0x36])},_0xa15b81=_0xc8ba29[_0x821afc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x821afc([0x67,0x65,0x74])](_0x821afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3967d4(){let _0x5232e4,_0x4034b1=null,_0x452393=null;try{if(_0xa15b81==_0x821afc([0x47,0x50,0x4c]))return _0x821afc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5232e4=_0x4fdd0b(),!_0x5232e4)return _0x821afc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5232e4[_0x821afc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x452393=_0x15a3af(_0x5232e4[_0x821afc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5232e4[_0x821afc([0x6a,0x74,0x69])])),await _0x331965()?_0x5126ab()?_0x135613()?_0x821afc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x38e7c5()?(_0x5232e4[_0x821afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x821afc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4034b1=_0x2bcf35(_0x821afc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5232e4[_0x821afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x821afc([0x74,0x72,0x69,0x61,0x6c])&&(_0x4034b1=_0x2bcf35(_0x821afc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e8541()):_0x821afc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x821afc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x821afc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x821afc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x135613(){const _0x52647a=[_0x821afc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x821afc([0x74,0x72,0x69,0x61,0x6c])][_0x821afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5232e4[_0x821afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4ee221/0x3e8:0xe10*_0x2806a6;return _0x5232e4[_0x821afc([0x65,0x78,0x70])]<_0x52647a;}function _0x5126ab(){const _0x289131=_0x5232e4[_0x821afc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x289131&&(!!_0x289131[_0x821afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x821afc([0x2a]))||!!_0x289131[_0x821afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x821afc([0x55,0x50,0x4c,0x43])));}function _0x38e7c5(){const _0x4719c9=_0x55aa,_0x5e563e=_0x5232e4[_0x821afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e563e||0x0==_0x5e563e[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b4680}=new URL(window[_0x821afc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4719c9(0x178)]);if(_0x5e563e[_0x821afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b4680))return!0x0;const _0x4168b5=_0x2b4680[_0x821afc([0x73,0x70,0x6c,0x69,0x74])](_0x821afc([0x2e]));return _0x5e563e[_0x821afc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x756ae7=>_0x756ae7[_0x821afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x821afc([0x2a])))[_0x821afc([0x6d,0x61,0x70])](_0xd5a3f9=>_0xd5a3f9[_0x821afc([0x73,0x70,0x6c,0x69,0x74])](_0x821afc([0x2e])))[_0x821afc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x410d55=>_0x410d55[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4168b5[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x821afc([0x6d,0x61,0x70])](_0x3295ac=>Array(_0x4168b5[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3295ac[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x821afc([0x66,0x69,0x6c,0x6c])](_0x3295ac[0x0]===_0x821afc([0x2a])?_0x821afc([0x2a]):'')[_0x821afc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3295ac))[_0x821afc([0x73,0x6f,0x6d,0x65])](_0xc2af84=>_0x4168b5[_0x821afc([0x65,0x76,0x65,0x72,0x79])]((_0x814bac,_0x46fef1)=>_0xc2af84[_0x46fef1]===_0x814bac||_0xc2af84[_0x46fef1]===_0x821afc([0x2a])));}function _0x4e8541(){return _0x4034b1&&_0x452393?new window[(_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x742172,_0x119867)=>{_0x4034b1[_0x821afc([0x74,0x68,0x65,0x6e])](_0x742172,_0x119867),_0x452393[_0x821afc([0x74,0x68,0x65,0x6e])](_0x3bc19f=>{_0x3bc19f!=_0x821afc([0x56,0x61,0x6c,0x69,0x64])&&_0x742172(_0x3bc19f);},_0x119867);}):_0x4034b1||_0x452393||_0x821afc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15a3af(_0x18e588,_0x69a7ce){return new window[(_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28847e=>{if(_0x4ba2ce())return _0x28847e(_0x821afc([0x56,0x61,0x6c,0x69,0x64]));_0x1f814a(),_0xc8ba29[_0x821afc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x821afc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3a7489=!0x1;const _0x440f1b=_0x4d65ff();function _0x4b0a08(_0x668c75){return!!_0x668c75&&(typeof _0x668c75===_0x821afc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x668c75===_0x821afc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x668c75[_0x821afc([0x74,0x68,0x65,0x6e])]===_0x821afc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x668c75[_0x821afc([0x63,0x61,0x74,0x63,0x68])]===_0x821afc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ff84c(_0x38daa1){_0x581e6b(_0x38daa1)[_0x821afc([0x74,0x68,0x65,0x6e])](_0x48291f=>{if(!_0x48291f||_0x48291f[_0x821afc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x821afc([0x6f,0x6b]))return _0x821afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28e8f5(_0x239ba5(_0x440f1b+_0x69a7ce))!=_0x48291f[_0x821afc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x821afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x821afc([0x56,0x61,0x6c,0x69,0x64]);})[_0x821afc([0x74,0x68,0x65,0x6e])](_0x18f3ac=>(_0x8cf220(),_0x18f3ac),()=>{const _0x6ab554=_0x311e72();return null==_0x6ab554?(_0x8cf220(),_0x821afc([0x56,0x61,0x6c,0x69,0x64])):_0x821afc(_0x4ee221-_0x6ab554>(0x7753083a^_0x550aaa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x821afc([0x74,0x68,0x65,0x6e])](_0x28847e)[_0x821afc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x28847e(_0x821afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d64f9=0x536962ba^_0x550aaa;function _0x8cf220(){const _0x5f3d04=_0x821afc([0x6c,0x6c,0x63,0x74,0x2d])+_0x28e8f5(_0x239ba5(_0x18e588)),_0x28c74a=_0x1d30f0(_0x28e8f5(window[_0x821afc([0x4d,0x61,0x74,0x68])][_0x821afc([0x63,0x65,0x69,0x6c])](_0x4ee221/_0x5d64f9)));window[_0x821afc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x821afc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f3d04,_0x28c74a);}function _0x311e72(){const _0x4f1b04=_0x821afc([0x6c,0x6c,0x63,0x74,0x2d])+_0x28e8f5(_0x239ba5(_0x18e588)),_0x5334b4=window[_0x821afc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x821afc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f1b04);return _0x5334b4?window[_0x821afc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d30f0(_0x5334b4),0x10)*_0x5d64f9:null;}function _0x581e6b(_0x4d826d){return new window[(_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38dc7b,_0x4605ea)=>{_0x4d826d[_0x821afc([0x74,0x68,0x65,0x6e])](_0x38dc7b,_0x4605ea),window[_0x821afc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4605ea,0x535e58fa^_0x550aaa);});}}_0xc8ba29[_0x821afc([0x6f,0x6e])](_0x821afc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb6b412,_0x4a0899)=>{if(_0x4a0899[0x0]!=_0x18e588)return _0x28847e(_0x821afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a0899[0x1]={..._0x4a0899[0x1],[_0x821afc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x440f1b};},{[_0x821afc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x821afc([0x68,0x69,0x67,0x68])}),_0xc8ba29[_0x821afc([0x6f,0x6e])](_0x821afc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4588b7=>{_0x4b0a08(_0x4588b7[_0x821afc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3a7489=!0x0,_0x4ff84c(_0x4588b7[_0x821afc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x821afc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x821afc([0x6c,0x6f,0x77])}),_0x512477[_0x821afc([0x74,0x68,0x65,0x6e])](()=>{_0x3a7489||_0x28847e(_0x821afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ba2ce(){return _0xc8ba29[_0x821afc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x821afc([0x76,0x69,0x65,0x77])][_0x821afc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x821afc([0x61,0x75,0x74,0x6f]);}function _0x1f814a(){_0xc8ba29[_0x821afc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x821afc([0x76,0x69,0x65,0x77])][_0x821afc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x821afc([0x61,0x75,0x74,0x6f]);}}function _0x2bcf35(_0x4979ac){const _0x5b3eed=[new window[(_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x131c5b=>setTimeout(_0x131c5b,0x5356b2f6^_0x550aaa)),_0x512477[_0x821afc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1833be=>{let _0x513bd1=0x0;_0xc8ba29[_0x821afc([0x6d,0x6f,0x64,0x65,0x6c])][_0x821afc([0x6f,0x6e])](_0x821afc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3a93e6,_0x596d90)=>{_0x596d90[0x0][_0x821afc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x513bd1++,_0x513bd1==(0x535f89d2^_0x550aaa)&&(_0x1833be(),_0x3a93e6[_0x821afc([0x6f,0x66,0x66])]());});}))];return window[_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x821afc([0x72,0x61,0x63,0x65])](_0x5b3eed)[_0x821afc([0x74,0x68,0x65,0x6e])](()=>_0x4979ac);}async function _0x40247b(){await _0x512477,_0xc8ba29[_0x821afc([0x6d,0x6f,0x64,0x65,0x6c])][_0x821afc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50ca84,_0xc8ba29[_0x821afc([0x6d,0x6f,0x64,0x65,0x6c])][_0x821afc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50ca84,_0xc8ba29[_0x821afc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x821afc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2979b4(_0x496432){const _0x5f2878=_0x5dfc2d();_0xc8ba29[_0x5f2878]=_0x821afc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x496432,_0x496432!=_0x821afc([0x56,0x61,0x6c,0x69,0x64])&&_0x40247b();}function _0x5dfc2d(){const _0x2cc63f=window[_0x821afc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x821afc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x821afc([0x6e,0x6f,0x77])]())[_0x821afc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x821afc([0x2e]),'');let _0x4f4c6a=_0x821afc([0x68]);for(let _0x43669d=0x0;_0x43669d<_0x2cc63f[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43669d+=0x2){let _0x9ede59=window[_0x821afc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cc63f[_0x821afc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43669d,_0x43669d+0x2));_0x9ede59>=_0x1d3690[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x9ede59-=_0x1d3690[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f4c6a+=_0x1d3690[_0x9ede59];}return _0x4f4c6a;}function _0x4fdd0b(){const _0x5468d0=_0xa15b81[_0x821afc([0x73,0x70,0x6c,0x69,0x74])](_0x821afc([0x2e]));if(0x3!=_0x5468d0[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x90b656(_0x5468d0[0x1]);function _0x90b656(_0x3f7d19){const _0x397bed=_0x5c6f34(_0x3f7d19);return _0x397bed&&_0x2e1d9a()?_0x397bed:null;function _0x2e1d9a(){const _0x480063=_0x397bed[_0x821afc([0x6a,0x74,0x69])],_0x22dada=window[_0x821afc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x480063[_0x821afc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x480063[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xbc24a2={..._0x397bed,[_0x821afc([0x6a,0x74,0x69])]:_0x480063[_0x821afc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x480063[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xbc24a2[_0x821afc([0x76,0x63])],_0x239ba5(_0xbc24a2)==_0x22dada;}}}async function _0x331965(){let _0x30feb0=!0x0;try{const _0x236c82=_0xa15b81[_0x821afc([0x73,0x70,0x6c,0x69,0x74])](_0x821afc([0x2e])),[_0x25f77b,_0x3de70c,_0x58d512]=_0x236c82;return _0x40d5d3(_0x25f77b),await _0x195961(_0x25f77b,_0x3de70c,_0x58d512),_0x30feb0;}catch{return!0x1;}function _0x40d5d3(_0x1082a7){const _0x5eb68c=_0x5c6f34(_0x1082a7);_0x5eb68c&&_0x5eb68c[_0x821afc([0x61,0x6c,0x67])]==_0x821afc([0x45,0x53,0x32,0x35,0x36])||(_0x30feb0=!0x1);}async function _0x195961(_0xcfd2bd,_0x27e5b7,_0x287efa){const _0x14d432=window[_0x821afc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x821afc([0x66,0x72,0x6f,0x6d])](_0x14f775(_0x287efa),_0x4dec12=>_0x4dec12[_0x821afc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2aa179=new window[(_0x821afc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x821afc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xcfd2bd+_0x821afc([0x2e])+_0x27e5b7),_0x4fd1a6=window[_0x821afc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x821afc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4fd1a6)return;const _0x4ec7c1=await _0x4fd1a6[_0x821afc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x821afc([0x6a,0x77,0x6b]),_0x3d5f9b,{[_0x821afc([0x6e,0x61,0x6d,0x65])]:_0x821afc([0x45,0x43,0x44,0x53,0x41]),[_0x821afc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x821afc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x821afc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4fd1a6[_0x821afc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x821afc([0x6e,0x61,0x6d,0x65])]:_0x821afc([0x45,0x43,0x44,0x53,0x41]),[_0x821afc([0x68,0x61,0x73,0x68])]:{[_0x821afc([0x6e,0x61,0x6d,0x65])]:_0x821afc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ec7c1,_0x14d432,_0x2aa179)||(_0x30feb0=!0x1);}}function _0x5c6f34(_0x2ac241){return _0x2ac241[_0x821afc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x821afc([0x65,0x79]))?JSON[_0x821afc([0x70,0x61,0x72,0x73,0x65])](_0x14f775(_0x2ac241)):null;}function _0x14f775(_0xf15433){return window[_0x821afc([0x61,0x74,0x6f,0x62])](_0xf15433[_0x821afc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x821afc([0x2b]))[_0x821afc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x821afc([0x2f])));}function _0x239ba5(_0x1d8a1c){let _0x346f89=0x1505;function _0x5eff99(_0x40259f){for(let _0x253b4a=0x0;_0x253b4a<_0x40259f[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x253b4a++){const _0x4624ad=_0x40259f[_0x821afc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x253b4a);_0x346f89=(_0x346f89<<0x5)+_0x346f89+_0x4624ad,_0x346f89&=_0x346f89;}}function _0x25c6f9(_0x357541){Array[_0x821afc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x357541)?_0x357541[_0x821afc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25c6f9):_0x357541&&typeof _0x357541==_0x821afc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x821afc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x357541)[_0x821afc([0x73,0x6f,0x72,0x74])]()[_0x821afc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b868f,_0x347758])=>{_0x5eff99(_0x4b868f),_0x25c6f9(_0x347758);}):_0x5eff99(window[_0x821afc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x357541));}return _0x25c6f9(_0x1d8a1c),_0x346f89>>>0x0;}function _0x28e8f5(_0x59e828){return _0x59e828[_0x821afc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x821afc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x821afc([0x30]));}function _0x1d30f0(_0x4564f3){return _0x4564f3[_0x821afc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x821afc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x821afc([0x6a,0x6f,0x69,0x6e])]('');}function _0x50ca84(){}function _0x821afc(_0x41e636){const _0x27d05a=_0x55aa;return _0x41e636[_0x27d05a(0x161)](_0x58a858=>String[_0x27d05a(0x16e)](_0x58a858))[_0x27d05a(0x160)]('');}_0x2979b4(await _0x3967d4());}(this);}[_0x376094(0x19d)](){const _0x3d1dc6=_0x376094,_0x2cc32d=this[_0x3d1dc6(0x17a)][_0x3d1dc6(0x19b)][_0x3d1dc6(0x173)];_0x2cc32d[_0x3d1dc6(0x17f)](_0x3d1dc6(0x165))&&_0x2cc32d[_0x3d1dc6(0x195)](_0x3d1dc6(0x165),{'allowAttributes':[_0x3d1dc6(0x181)]}),_0x2cc32d[_0x3d1dc6(0x17f)](_0x3d1dc6(0x198))&&_0x2cc32d[_0x3d1dc6(0x195)](_0x3d1dc6(0x198),{'allowAttributes':[_0x3d1dc6(0x181)]});}[_0x376094(0x1ae)](){const _0x287bca=_0x376094,_0x574fac=this[_0x287bca(0x17a)];_0x574fac[_0x287bca(0x1ab)][_0x287bca(0x1a4)](_0x287bca(0x185))[_0x287bca(0x1af)]({'model':_0x287bca(0x181),'view':_0x287bca(0x1a8)}),_0x574fac[_0x287bca(0x1ab)][_0x287bca(0x1a4)](_0x287bca(0x163))[_0x287bca(0x1b3)]({'model':{'key':_0x287bca(0x181),'value':_0x370b50=>_0x370b50[_0x287bca(0x188)](_0x287bca(0x1a8))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5d102e=_0x574fac[_0x287bca(0x1a5)][_0x287bca(0x17b)](_0x287bca(0x1b5));_0x5d102e&&this[_0x287bca(0x174)](_0x5d102e,_0x287bca(0x196),(_0x43a5c4,[_0x4043f0,_0x3bde62])=>{const _0x4d68ac=_0x287bca;_0x4043f0[_0x4d68ac(0x197)](_0x4d68ac(0x181),_0x3bde62);});}[_0x376094(0x171)](){const _0x35d5c5=_0x376094,_0x25b522=this[_0x35d5c5(0x17a)][_0x35d5c5(0x1a9)][_0x35d5c5(0x17b)](_0x35d5c5(0x168))||{},_0x445cf5=this[_0x35d5c5(0x17a)][_0x35d5c5(0x1a9)][_0x35d5c5(0x17b)](_0x35d5c5(0x16f))||'';this[_0x35d5c5(0x1b1)]=_0x3be59a(_0x70ec66[_0x35d5c5(0x1a6)],_0x35d5c5(0x19c),{..._0x25b522,'pubkey':_0x445cf5,'ctx-name':_0x35d5c5(0x193)+this[_0x35d5c5(0x1a7)],'sourceList':'','imgOnly':_0x35d5c5(0x170),'removeCopyright':_0x35d5c5(0x170),'localeName':this[_0x35d5c5(0x17a)][_0x35d5c5(0x1ac)][_0x35d5c5(0x18b)],'externalSourcesEmbedCss':_0x35d5c5(0x169)}),this[_0x35d5c5(0x1b1)][_0x35d5c5(0x187)]=_0x20db24=>{const _0x3c49ae=_0x35d5c5;if(_0x3c49ae(0x190)==_0x20db24)return _0x3c49ae(0x18a);},_0x70ec66[_0x35d5c5(0x1a6)][_0x35d5c5(0x18f)][_0x35d5c5(0x1a1)](this[_0x35d5c5(0x1b1)]);}[_0x376094(0x175)](){const _0x1b6166=_0x376094;this[_0x1b6166(0x186)]=_0x3be59a(_0x70ec66[_0x1b6166(0x1a6)],_0x1b6166(0x1b0),{'ctx-name':_0x1b6166(0x193)+this[_0x1b6166(0x1a7)]}),_0x70ec66[_0x1b6166(0x1a6)][_0x1b6166(0x18f)][_0x1b6166(0x1a1)](this[_0x1b6166(0x186)]);}[_0x376094(0x180)](){const _0x26b056=_0x376094,_0x250476=this[_0x26b056(0x17a)][_0x26b056(0x1a5)][_0x26b056(0x17b)](_0x26b056(0x18e));_0x250476&&this[_0x26b056(0x174)](_0x250476,_0x26b056(0x182),()=>{const _0x283afa=_0x26b056,_0x147eac=this[_0x283afa(0x17a)][_0x283afa(0x19b)][_0x283afa(0x1a6)][_0x283afa(0x19e)][_0x283afa(0x17e)]();_0x147eac&&_0x147eac[_0x283afa(0x188)](_0x283afa(0x181))&&this[_0x283afa(0x17a)][_0x283afa(0x18d)][_0x283afa(0x18c)][_0x283afa(0x1aa)](_0x283afa(0x16c),()=>{const _0x20e3cd=_0x283afa;_0x4a2f34(this[_0x20e3cd(0x17a)],_0x147eac);});});const _0x53ad32=this[_0x26b056(0x17a)][_0x26b056(0x1a5)][_0x26b056(0x17b)](_0x26b056(0x191));_0x53ad32&&this[_0x26b056(0x174)](_0x53ad32,_0x26b056(0x182),()=>{const _0x41ce65=_0x26b056,_0x7bf69c=this[_0x41ce65(0x17a)][_0x41ce65(0x19b)][_0x41ce65(0x1a6)][_0x41ce65(0x19e)][_0x41ce65(0x17e)]();_0x7bf69c&&_0x7bf69c[_0x41ce65(0x188)](_0x41ce65(0x181))&&this[_0x41ce65(0x17a)][_0x41ce65(0x18d)][_0x41ce65(0x18c)][_0x41ce65(0x1aa)](_0x41ce65(0x16c),()=>{const _0x587724=_0x41ce65;_0x4a2f34(this[_0x587724(0x17a)],_0x7bf69c);});});}}
|
|
23
|
+
const _0x3c776b=_0x46b7;(function(_0x1a6bb6,_0x367a04){const _0x15a621=_0x46b7,_0x564b46=_0x1a6bb6();while(!![]){try{const _0x3ab9ac=-parseInt(_0x15a621(0x1f0))/0x1+-parseInt(_0x15a621(0x1c1))/0x2*(parseInt(_0x15a621(0x201))/0x3)+parseInt(_0x15a621(0x20b))/0x4*(-parseInt(_0x15a621(0x1d4))/0x5)+parseInt(_0x15a621(0x1fb))/0x6*(-parseInt(_0x15a621(0x1f1))/0x7)+parseInt(_0x15a621(0x1da))/0x8*(-parseInt(_0x15a621(0x202))/0x9)+parseInt(_0x15a621(0x206))/0xa+parseInt(_0x15a621(0x1fe))/0xb;if(_0x3ab9ac===_0x367a04)break;else _0x564b46['push'](_0x564b46['shift']());}catch(_0x237277){_0x564b46['push'](_0x564b46['shift']());}}}(_0x1753,0xd3dd2));import{Plugin as _0x57e60d}from'ckeditor5/src/core.js';function _0x1753(){const _0x5555a=['replaceImageSource','imageInline','querySelector','_initSchema','for','appendChild','downcast','_initImageProcessingIndicator','1544431HJgqbY','434AMiSSL','uploadcare.pubkey','selection','editor','destroy','map','upcast','uploadcare.uploader','true','_initConversion','11292bXMyRQ','view','pluginName','53635263WfoYvA','data-uc-image-id','conversion','2510751twWnLo','50211uNWyvG','document','render','body','811130vkthFd','uc-config','_initCtx','get','uploadcareImageReplace','4BLdMlI','iconHrefResolver','join','isOfficialPlugin','uploadcareImageId','init','ucContextId','UploadcareEditing','_configElement','afterInit','#uc-icon-arrow-down','getSelectedElement','2VsrNBK','removeAttribute','commands','add','listenTo','imageBlock','cleanupImage','\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','model','extend','isPremiumPlugin','ctxElement','config','PictureEditing','configElement','elementToAttribute','once','schema','editing','5696605pEtIpg','closeMax','uploader-','input[uploadcare-file-input]','uploadcare','attributeToAttribute','648fYPUlI','contentLanguage','fromCharCode','locale','remove','isRegistered','_ctxElement','_initConfig','execute','requires','uc-upload-ctx-provider','insertImage','href','getAttribute'];_0x1753=function(){return _0x5555a;};return _0x1753();}import{Dialog as _0x468353}from'ckeditor5/src/ui.js';import{createElement as _0x10cb33,global as _0x365182,uid as _0x519bc3}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x234c49}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2e1967}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x401820}from'./utils/editingutils.js';function _0x46b7(_0x195295,_0x4eb1b6){const _0x175326=_0x1753();return _0x46b7=function(_0x46b7cf,_0x4301bc){_0x46b7cf=_0x46b7cf-0x1be;let _0x5305d6=_0x175326[_0x46b7cf];return _0x5305d6;},_0x46b7(_0x195295,_0x4eb1b6);}export class UploadcareEditing extends _0x57e60d{[_0x3c776b(0x213)]=null;[_0x3c776b(0x1e0)]=null;static get[_0x3c776b(0x1fd)](){const _0x1b1c3b=_0x3c776b;return _0x1b1c3b(0x212);}static get[_0x3c776b(0x1e3)](){const _0x136b3e=_0x3c776b;return[_0x136b3e(0x1ce),_0x2e1967,_0x468353];}static get[_0x3c776b(0x20e)](){return!0x0;}static get[_0x3c776b(0x1cb)](){return!0x0;}[_0x3c776b(0x211)];get[_0x3c776b(0x1cf)](){const _0x51f0bd=_0x3c776b;return this[_0x51f0bd(0x213)];}get[_0x3c776b(0x1cc)](){const _0x124e80=_0x3c776b;return this[_0x124e80(0x1e0)];}constructor(_0x5ca385){const _0x2eacd5=_0x3c776b;super(_0x5ca385),this[_0x2eacd5(0x211)]=_0x519bc3();}[_0x3c776b(0x210)](){const _0x1b1413=_0x3c776b,_0x3048ae=this[_0x1b1413(0x1f4)];_0x3048ae[_0x1b1413(0x1c3)][_0x1b1413(0x1c4)](_0x1b1413(0x1d8),new _0x234c49(_0x3048ae));}[_0x3c776b(0x1be)](){const _0x12517a=_0x3c776b;this[_0x12517a(0x1eb)](),this[_0x12517a(0x1fa)](),this[_0x12517a(0x1e1)](),this[_0x12517a(0x208)](),this[_0x12517a(0x1ef)](),this[_0x12517a(0x1c5)](this[_0x12517a(0x1f4)],_0x12517a(0x1f5),()=>{const _0x5ecc4d=_0x12517a;this[_0x5ecc4d(0x213)]&&(this[_0x5ecc4d(0x213)][_0x5ecc4d(0x1de)](),this[_0x5ecc4d(0x213)]=null),this[_0x5ecc4d(0x1e0)]&&(this[_0x5ecc4d(0x1e0)][_0x5ecc4d(0x1de)](),this[_0x5ecc4d(0x1e0)]=null);const _0x1968d9=_0x365182[_0x5ecc4d(0x203)][_0x5ecc4d(0x1ea)](_0x5ecc4d(0x1d7));_0x1968d9&&_0x1968d9[_0x5ecc4d(0x1de)]();}),async function(_0x2bb71a){const _0x20a6cb=_0x3172e7([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x245125=0x535f8c3a,_0x2e729a=0x5358f1ca^_0x245125,_0x5bdabf=window[_0x3172e7([0x44,0x61,0x74,0x65])][_0x3172e7([0x6e,0x6f,0x77])](),_0x1a5641=_0x2bb71a[_0x3172e7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47f5b7=new window[(_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x289ac7=>{_0x1a5641[_0x3172e7([0x6f,0x6e,0x63,0x65])](_0x3172e7([0x72,0x65,0x61,0x64,0x79]),_0x289ac7);}),_0x580cd6={[_0x3172e7([0x6b,0x74,0x79])]:_0x3172e7([0x45,0x43]),[_0x3172e7([0x75,0x73,0x65])]:_0x3172e7([0x73,0x69,0x67]),[_0x3172e7([0x63,0x72,0x76])]:_0x3172e7([0x50,0x2d,0x32,0x35,0x36]),[_0x3172e7([0x78])]:_0x3172e7([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]),[_0x3172e7([0x79])]:_0x3172e7([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]),[_0x3172e7([0x61,0x6c,0x67])]:_0x3172e7([0x45,0x53,0x32,0x35,0x36])},_0x58cb1f=_0x1a5641[_0x3172e7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3172e7([0x67,0x65,0x74])](_0x3172e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x482f57(){let _0x43f38d,_0x4d8d79=null,_0x1fd881=null;try{if(_0x58cb1f==_0x3172e7([0x47,0x50,0x4c]))return _0x3172e7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43f38d=_0x327137(),!_0x43f38d)return _0x3172e7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43f38d[_0x3172e7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1fd881=_0x2d0b93(_0x43f38d[_0x3172e7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43f38d[_0x3172e7([0x6a,0x74,0x69])])),await _0x409a0d()?_0x433359()?_0x1934af()?_0x3172e7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4cef20()?(_0x43f38d[_0x3172e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3172e7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d8d79=_0x15ffff(_0x3172e7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43f38d[_0x3172e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3172e7([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d8d79=_0x15ffff(_0x3172e7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x232700()):_0x3172e7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3172e7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3172e7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3172e7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1934af(){const _0x52740d=[_0x3172e7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3172e7([0x74,0x72,0x69,0x61,0x6c])][_0x3172e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f38d[_0x3172e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bdabf/0x3e8:0xe10*_0x2e729a;return _0x43f38d[_0x3172e7([0x65,0x78,0x70])]<_0x52740d;}function _0x433359(){const _0x317e07=_0x43f38d[_0x3172e7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x317e07&&(!!_0x317e07[_0x3172e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3172e7([0x2a]))||!!_0x317e07[_0x3172e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3172e7([0x55,0x50,0x4c,0x43])));}function _0x4cef20(){const _0x31b40c=_0x46b7,_0x16e934=_0x43f38d[_0x3172e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x16e934||0x0==_0x16e934[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37512e}=new URL(window[_0x3172e7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x31b40c(0x1e6)]);if(_0x16e934[_0x3172e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37512e))return!0x0;const _0x12d857=_0x37512e[_0x3172e7([0x73,0x70,0x6c,0x69,0x74])](_0x3172e7([0x2e]));return _0x16e934[_0x3172e7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12eba4=>_0x12eba4[_0x3172e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3172e7([0x2a])))[_0x3172e7([0x6d,0x61,0x70])](_0x3bc265=>_0x3bc265[_0x3172e7([0x73,0x70,0x6c,0x69,0x74])](_0x3172e7([0x2e])))[_0x3172e7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9c2cfe=>_0x9c2cfe[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x12d857[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3172e7([0x6d,0x61,0x70])](_0x1e65cb=>Array(_0x12d857[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1e65cb[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3172e7([0x66,0x69,0x6c,0x6c])](_0x1e65cb[0x0]===_0x3172e7([0x2a])?_0x3172e7([0x2a]):'')[_0x3172e7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1e65cb))[_0x3172e7([0x73,0x6f,0x6d,0x65])](_0x246490=>_0x12d857[_0x3172e7([0x65,0x76,0x65,0x72,0x79])]((_0x420bf4,_0x10886f)=>_0x246490[_0x10886f]===_0x420bf4||_0x246490[_0x10886f]===_0x3172e7([0x2a])));}function _0x232700(){return _0x4d8d79&&_0x1fd881?new window[(_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x389d62,_0x365086)=>{_0x4d8d79[_0x3172e7([0x74,0x68,0x65,0x6e])](_0x389d62,_0x365086),_0x1fd881[_0x3172e7([0x74,0x68,0x65,0x6e])](_0x495908=>{_0x495908!=_0x3172e7([0x56,0x61,0x6c,0x69,0x64])&&_0x389d62(_0x495908);},_0x365086);}):_0x4d8d79||_0x1fd881||_0x3172e7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d0b93(_0xade74e,_0x5cf74c){return new window[(_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x561791=>{if(_0x23760f())return _0x561791(_0x3172e7([0x56,0x61,0x6c,0x69,0x64]));_0x2ab2e9(),_0x1a5641[_0x3172e7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3172e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c40ca=!0x1;const _0x449ca5=_0x519bc3();function _0x412ca3(_0x2632e6){return!!_0x2632e6&&(typeof _0x2632e6===_0x3172e7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2632e6===_0x3172e7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2632e6[_0x3172e7([0x74,0x68,0x65,0x6e])]===_0x3172e7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2632e6[_0x3172e7([0x63,0x61,0x74,0x63,0x68])]===_0x3172e7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x419c62(_0x1851a2){_0x42c926(_0x1851a2)[_0x3172e7([0x74,0x68,0x65,0x6e])](_0x5e995b=>{if(!_0x5e995b||_0x5e995b[_0x3172e7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3172e7([0x6f,0x6b]))return _0x3172e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x536463(_0x59c2ee(_0x449ca5+_0x5cf74c))!=_0x5e995b[_0x3172e7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3172e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3172e7([0x56,0x61,0x6c,0x69,0x64]);})[_0x3172e7([0x74,0x68,0x65,0x6e])](_0x3f3fd6=>(_0x4ba8af(),_0x3f3fd6),()=>{const _0x10d0ee=_0x2fb474();return null==_0x10d0ee?(_0x4ba8af(),_0x3172e7([0x56,0x61,0x6c,0x69,0x64])):_0x3172e7(_0x5bdabf-_0x10d0ee>(0x7753083a^_0x245125)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3172e7([0x74,0x68,0x65,0x6e])](_0x561791)[_0x3172e7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x561791(_0x3172e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x380fac=0x536962ba^_0x245125;function _0x4ba8af(){const _0x124e64=_0x3172e7([0x6c,0x6c,0x63,0x74,0x2d])+_0x536463(_0x59c2ee(_0xade74e)),_0xdb9e61=_0x151267(_0x536463(window[_0x3172e7([0x4d,0x61,0x74,0x68])][_0x3172e7([0x63,0x65,0x69,0x6c])](_0x5bdabf/_0x380fac)));window[_0x3172e7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3172e7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x124e64,_0xdb9e61);}function _0x2fb474(){const _0x2a2887=_0x3172e7([0x6c,0x6c,0x63,0x74,0x2d])+_0x536463(_0x59c2ee(_0xade74e)),_0x1b381c=window[_0x3172e7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3172e7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a2887);return _0x1b381c?window[_0x3172e7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x151267(_0x1b381c),0x10)*_0x380fac:null;}function _0x42c926(_0xe7b15){return new window[(_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31e6ae,_0x22a4df)=>{_0xe7b15[_0x3172e7([0x74,0x68,0x65,0x6e])](_0x31e6ae,_0x22a4df),window[_0x3172e7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22a4df,0x535e58fa^_0x245125);});}}_0x1a5641[_0x3172e7([0x6f,0x6e])](_0x3172e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x48c270,_0x40556d)=>{if(_0x40556d[0x0]!=_0xade74e)return _0x561791(_0x3172e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40556d[0x1]={..._0x40556d[0x1],[_0x3172e7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x449ca5};},{[_0x3172e7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3172e7([0x68,0x69,0x67,0x68])}),_0x1a5641[_0x3172e7([0x6f,0x6e])](_0x3172e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x354776=>{_0x412ca3(_0x354776[_0x3172e7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c40ca=!0x0,_0x419c62(_0x354776[_0x3172e7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3172e7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3172e7([0x6c,0x6f,0x77])}),_0x47f5b7[_0x3172e7([0x74,0x68,0x65,0x6e])](()=>{_0x5c40ca||_0x561791(_0x3172e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x23760f(){return _0x1a5641[_0x3172e7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3172e7([0x76,0x69,0x65,0x77])][_0x3172e7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3172e7([0x61,0x75,0x74,0x6f]);}function _0x2ab2e9(){_0x1a5641[_0x3172e7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3172e7([0x76,0x69,0x65,0x77])][_0x3172e7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3172e7([0x61,0x75,0x74,0x6f]);}}function _0x15ffff(_0x491830){const _0x3e9d22=[new window[(_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a8e18=>setTimeout(_0x4a8e18,0x5356b2f6^_0x245125)),_0x47f5b7[_0x3172e7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cf68d=>{let _0x4150c3=0x0;_0x1a5641[_0x3172e7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3172e7([0x6f,0x6e])](_0x3172e7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b5715,_0x596d8e)=>{_0x596d8e[0x0][_0x3172e7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4150c3++,_0x4150c3==(0x535f89d2^_0x245125)&&(_0x4cf68d(),_0x1b5715[_0x3172e7([0x6f,0x66,0x66])]());});}))];return window[_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3172e7([0x72,0x61,0x63,0x65])](_0x3e9d22)[_0x3172e7([0x74,0x68,0x65,0x6e])](()=>_0x491830);}async function _0x3761f7(){await _0x47f5b7,_0x1a5641[_0x3172e7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3172e7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa5e5dd,_0x1a5641[_0x3172e7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3172e7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa5e5dd,_0x1a5641[_0x3172e7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3172e7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x23b57f(_0x3dbcec){const _0x4e9535=_0x4ecb18();_0x1a5641[_0x4e9535]=_0x3172e7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3dbcec,_0x3dbcec!=_0x3172e7([0x56,0x61,0x6c,0x69,0x64])&&_0x3761f7();}function _0x4ecb18(){const _0x34c933=window[_0x3172e7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3172e7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3172e7([0x6e,0x6f,0x77])]())[_0x3172e7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3172e7([0x2e]),'');let _0x4e8fac=_0x3172e7([0x68]);for(let _0x2086b7=0x0;_0x2086b7<_0x34c933[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2086b7+=0x2){let _0x325451=window[_0x3172e7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34c933[_0x3172e7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2086b7,_0x2086b7+0x2));_0x325451>=_0x20a6cb[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x325451-=_0x20a6cb[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4e8fac+=_0x20a6cb[_0x325451];}return _0x4e8fac;}function _0x327137(){const _0x447795=_0x58cb1f[_0x3172e7([0x73,0x70,0x6c,0x69,0x74])](_0x3172e7([0x2e]));if(0x3!=_0x447795[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ae8dd(_0x447795[0x1]);function _0x5ae8dd(_0x600d3c){const _0x5e3d12=_0x252645(_0x600d3c);return _0x5e3d12&&_0x93192e()?_0x5e3d12:null;function _0x93192e(){const _0x30989c=_0x5e3d12[_0x3172e7([0x6a,0x74,0x69])],_0x1a55d9=window[_0x3172e7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30989c[_0x3172e7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30989c[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1329cc={..._0x5e3d12,[_0x3172e7([0x6a,0x74,0x69])]:_0x30989c[_0x3172e7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x30989c[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1329cc[_0x3172e7([0x76,0x63])],_0x59c2ee(_0x1329cc)==_0x1a55d9;}}}async function _0x409a0d(){let _0x317517=!0x0;try{const _0x2dbfbc=_0x58cb1f[_0x3172e7([0x73,0x70,0x6c,0x69,0x74])](_0x3172e7([0x2e])),[_0x2519a1,_0x1a3f0f,_0x4d84a0]=_0x2dbfbc;return _0x137edb(_0x2519a1),await _0x383c6d(_0x2519a1,_0x1a3f0f,_0x4d84a0),_0x317517;}catch{return!0x1;}function _0x137edb(_0x506b0c){const _0x2f6a33=_0x252645(_0x506b0c);_0x2f6a33&&_0x2f6a33[_0x3172e7([0x61,0x6c,0x67])]==_0x3172e7([0x45,0x53,0x32,0x35,0x36])||(_0x317517=!0x1);}async function _0x383c6d(_0x4fa268,_0x37d548,_0x59cbdd){const _0x4a30e8=window[_0x3172e7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3172e7([0x66,0x72,0x6f,0x6d])](_0xb20dcf(_0x59cbdd),_0x39feed=>_0x39feed[_0x3172e7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x153a4f=new window[(_0x3172e7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3172e7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4fa268+_0x3172e7([0x2e])+_0x37d548),_0x4ac306=window[_0x3172e7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3172e7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ac306)return;const _0x40ab55=await _0x4ac306[_0x3172e7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3172e7([0x6a,0x77,0x6b]),_0x580cd6,{[_0x3172e7([0x6e,0x61,0x6d,0x65])]:_0x3172e7([0x45,0x43,0x44,0x53,0x41]),[_0x3172e7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3172e7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3172e7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ac306[_0x3172e7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3172e7([0x6e,0x61,0x6d,0x65])]:_0x3172e7([0x45,0x43,0x44,0x53,0x41]),[_0x3172e7([0x68,0x61,0x73,0x68])]:{[_0x3172e7([0x6e,0x61,0x6d,0x65])]:_0x3172e7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40ab55,_0x4a30e8,_0x153a4f)||(_0x317517=!0x1);}}function _0x252645(_0x57a3d0){return _0x57a3d0[_0x3172e7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3172e7([0x65,0x79]))?JSON[_0x3172e7([0x70,0x61,0x72,0x73,0x65])](_0xb20dcf(_0x57a3d0)):null;}function _0xb20dcf(_0x459d83){return window[_0x3172e7([0x61,0x74,0x6f,0x62])](_0x459d83[_0x3172e7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3172e7([0x2b]))[_0x3172e7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3172e7([0x2f])));}function _0x59c2ee(_0x2a7613){let _0x2a706c=0x1505;function _0x274031(_0x23f0d0){for(let _0x5ae0a6=0x0;_0x5ae0a6<_0x23f0d0[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ae0a6++){const _0x576d66=_0x23f0d0[_0x3172e7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ae0a6);_0x2a706c=(_0x2a706c<<0x5)+_0x2a706c+_0x576d66,_0x2a706c&=_0x2a706c;}}function _0x50c897(_0x511a76){Array[_0x3172e7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x511a76)?_0x511a76[_0x3172e7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50c897):_0x511a76&&typeof _0x511a76==_0x3172e7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3172e7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x511a76)[_0x3172e7([0x73,0x6f,0x72,0x74])]()[_0x3172e7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55b21f,_0x3c6458])=>{_0x274031(_0x55b21f),_0x50c897(_0x3c6458);}):_0x274031(window[_0x3172e7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x511a76));}return _0x50c897(_0x2a7613),_0x2a706c>>>0x0;}function _0x536463(_0x106beb){return _0x106beb[_0x3172e7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3172e7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3172e7([0x30]));}function _0x151267(_0x396a99){return _0x396a99[_0x3172e7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3172e7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3172e7([0x6a,0x6f,0x69,0x6e])]('');}function _0xa5e5dd(){}function _0x3172e7(_0x4145e5){const _0x49b5fb=_0x46b7;return _0x4145e5[_0x49b5fb(0x1f6)](_0x26f6d0=>String[_0x49b5fb(0x1dc)](_0x26f6d0))[_0x49b5fb(0x20d)]('');}_0x23b57f(await _0x482f57());}(this);}[_0x3c776b(0x1eb)](){const _0x442520=_0x3c776b,_0x45a268=this[_0x442520(0x1f4)][_0x442520(0x1c9)][_0x442520(0x1d2)];_0x45a268[_0x442520(0x1df)](_0x442520(0x1c6))&&_0x45a268[_0x442520(0x1ca)](_0x442520(0x1c6),{'allowAttributes':[_0x442520(0x20f)]}),_0x45a268[_0x442520(0x1df)](_0x442520(0x1e9))&&_0x45a268[_0x442520(0x1ca)](_0x442520(0x1e9),{'allowAttributes':[_0x442520(0x20f)]});}[_0x3c776b(0x1fa)](){const _0x4d67b0=_0x3c776b,_0x4dae5d=this[_0x4d67b0(0x1f4)];_0x4dae5d[_0x4d67b0(0x200)][_0x4d67b0(0x1ec)](_0x4d67b0(0x1ee))[_0x4d67b0(0x1d9)]({'model':_0x4d67b0(0x20f),'view':_0x4d67b0(0x1ff)}),_0x4dae5d[_0x4d67b0(0x200)][_0x4d67b0(0x1ec)](_0x4d67b0(0x1f7))[_0x4d67b0(0x1d0)]({'model':{'key':_0x4d67b0(0x20f),'value':_0x89c082=>_0x89c082[_0x4d67b0(0x1e7)](_0x4d67b0(0x1ff))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x20804c=_0x4dae5d[_0x4d67b0(0x1c3)][_0x4d67b0(0x209)](_0x4d67b0(0x1e8));_0x20804c&&this[_0x4d67b0(0x1c5)](_0x20804c,_0x4d67b0(0x1c7),(_0x3cea6c,[_0x34e950,_0x508362])=>{const _0xb9638f=_0x4d67b0;_0x34e950[_0xb9638f(0x1c2)](_0xb9638f(0x20f),_0x508362);});}[_0x3c776b(0x1e1)](){const _0x35ad2a=_0x3c776b,_0x46b20c=this[_0x35ad2a(0x1f4)][_0x35ad2a(0x1cd)][_0x35ad2a(0x209)](_0x35ad2a(0x1f8))||{},_0x515bbe=this[_0x35ad2a(0x1f4)][_0x35ad2a(0x1cd)][_0x35ad2a(0x209)](_0x35ad2a(0x1f2))||'';this[_0x35ad2a(0x213)]=_0x10cb33(_0x365182[_0x35ad2a(0x203)],_0x35ad2a(0x207),{..._0x46b20c,'pubkey':_0x515bbe,'ctx-name':_0x35ad2a(0x1d6)+this[_0x35ad2a(0x211)],'sourceList':'','imgOnly':_0x35ad2a(0x1f9),'removeCopyright':_0x35ad2a(0x1f9),'localeName':this[_0x35ad2a(0x1f4)][_0x35ad2a(0x1dd)][_0x35ad2a(0x1db)],'externalSourcesEmbedCss':_0x35ad2a(0x1c8)}),this[_0x35ad2a(0x213)][_0x35ad2a(0x20c)]=_0x1ce8b1=>{const _0x2cde45=_0x35ad2a;if(_0x2cde45(0x1d5)==_0x1ce8b1)return _0x2cde45(0x1bf);},_0x365182[_0x35ad2a(0x203)][_0x35ad2a(0x205)][_0x35ad2a(0x1ed)](this[_0x35ad2a(0x213)]);}[_0x3c776b(0x208)](){const _0x152f59=_0x3c776b;this[_0x152f59(0x1e0)]=_0x10cb33(_0x365182[_0x152f59(0x203)],_0x152f59(0x1e4),{'ctx-name':_0x152f59(0x1d6)+this[_0x152f59(0x211)]}),_0x365182[_0x152f59(0x203)][_0x152f59(0x205)][_0x152f59(0x1ed)](this[_0x152f59(0x1e0)]);}[_0x3c776b(0x1ef)](){const _0x456f5b=_0x3c776b,_0x5bc739=this[_0x456f5b(0x1f4)][_0x456f5b(0x1c3)][_0x456f5b(0x209)](_0x456f5b(0x1e5));_0x5bc739&&this[_0x456f5b(0x1c5)](_0x5bc739,_0x456f5b(0x1e2),()=>{const _0x216b67=_0x456f5b,_0x2015ba=this[_0x216b67(0x1f4)][_0x216b67(0x1c9)][_0x216b67(0x203)][_0x216b67(0x1f3)][_0x216b67(0x1c0)]();_0x2015ba&&_0x2015ba[_0x216b67(0x1e7)](_0x216b67(0x20f))&&this[_0x216b67(0x1f4)][_0x216b67(0x1d3)][_0x216b67(0x1fc)][_0x216b67(0x1d1)](_0x216b67(0x204),()=>{const _0x2fe63c=_0x216b67;_0x401820(this[_0x2fe63c(0x1f4)],_0x2015ba);});});const _0x2f64f5=this[_0x456f5b(0x1f4)][_0x456f5b(0x1c3)][_0x456f5b(0x209)](_0x456f5b(0x20a));_0x2f64f5&&this[_0x456f5b(0x1c5)](_0x2f64f5,_0x456f5b(0x1e2),()=>{const _0x13cbae=_0x456f5b,_0x30919b=this[_0x13cbae(0x1f4)][_0x13cbae(0x1c9)][_0x13cbae(0x203)][_0x13cbae(0x1f3)][_0x13cbae(0x1c0)]();_0x30919b&&_0x30919b[_0x13cbae(0x1e7)](_0x13cbae(0x20f))&&this[_0x13cbae(0x1f4)][_0x13cbae(0x1d3)][_0x13cbae(0x1fc)][_0x13cbae(0x1d1)](_0x13cbae(0x204),()=>{const _0x2d144a=_0x13cbae;_0x401820(this[_0x2d144a(0x1f4)],_0x30919b);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x1db50c,ObservableMixin as _0x45f95f}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3453e4}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x42fb45}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x2fade0}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x2bacf2}from'../../utils/uploadutils.js';import{getImageUrls as _0x835e86,getImageDimension as _0x3905f9}from'../../utils/editingutils.js';import{isAncestor as _0x5726c4}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x45f95f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x14944b,_0x36f6da,_0x1141fd){super(),this['_editor']=_0x14944b,this['_dialog']=_0x36f6da,this['_imageElement']=_0x1141fd,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 _0x135da8=this['_imageElement'],_0xbe52b5=_0x135da8['getAttribute']('uploadcareImageId'),_0x17856b=_0x135da8['getAttribute']('src');if(_0xbe52b5)await this['_loadImageInfo'](_0xbe52b5,_0x17856b);else{if(this['_imageCache']['has'](_0x17856b)){const _0x13062d=this['_imageCache']['get'](_0x17856b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13062d['url'],this['imageDimension']=_0x13062d['dimension'],this['imageId']=_0x13062d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x478d91}=this['_editor'],t=_0x478d91['t'],_0x2feca5=new _0x2fade0(_0x478d91,this['imageStatus'],this['_attributes']);_0x2feca5['bind']('status')['to'](this,'imageStatus'),_0x2feca5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2feca5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2feca5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2feca5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x42fb45,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2feca5,'position':_0x3453e4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2feca5['focus']();},'onHide':()=>{_0x2feca5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x187f28=>!_0x5726c4(_0x187f28,_0x2feca5['element'])}});}['_loadImageInfo'](_0x2ad621,_0x3c2ca1){return _0x2bacf2['getInfo'](_0x2ad621,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x175d0b=>{const {width:_0x1c61c3,height:_0x12eda1}=_0x175d0b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c2ca1,this['imageDimension']={'width':_0x1c61c3,'height':_0x12eda1},this['imageId']=_0x2ad621;})['catch'](_0x1bf04f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1bf04f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1f6d5b,_0x37ab11){return this['_getImageAsFile'](_0x1f6d5b)['then'](_0x326454=>_0x2bacf2['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x37ab11['signal'],'file':_0x326454,'onProgress':_0x14a087=>{_0x14a087&&_0x14a087['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x14a087['value']));}}))['then'](_0x205123=>{const {width:_0x557a8c,height:_0x3c1a4d}=_0x205123['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x205123['cdnUrl'],this['imageDimension']={'width':_0x557a8c,'height':_0x3c1a4d},this['imageId']=_0x205123['uuid'],this['imageUploadProgress']=null;const _0x231b0c=_0x1f6d5b['getAttribute']('src');this['_imageCache']['set'](_0x231b0c,{'id':_0x205123['uuid'],'url':_0x205123['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x79516f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x79516f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x58878c,_0x19437a){_0x58878c['on']('apply',(_0x516bd3,_0x1d027c)=>{this['_replaceImage'](_0x19437a,_0x1d027c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x58878c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x58878c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x560a5d,_0x4b4764,_0x258c70){const _0xd58617=this['_editor'],{width:_0x4092b5,height:_0x496e4b}=_0x3905f9(_0x4b4764,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x54e24e,imageSources:_0x8a9bf}=_0x835e86(_0x4b4764,_0x4092b5);_0xd58617['model']['change'](_0x9a5e06=>{if('$graveyard'===_0x560a5d['root']['rootName']){_0xd58617['execute']('insertImage',{'imageType':_0x560a5d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x560a5d['getAttributes']()),'uploadcareImageId':_0x258c70,'src':_0x54e24e,'sources':_0x8a9bf,'width':_0x4092b5,'height':_0x496e4b}});const _0x113f55=_0x560a5d['getChildren']();_0x560a5d=_0xd58617['model']['document']['selection']['getSelectedElement']();for(const _0x4c0865 of _0x113f55)_0x9a5e06['append'](_0x9a5e06['cloneElement'](_0x4c0865),_0x560a5d);}else _0x9a5e06['setSelection'](_0x560a5d,'on'),_0xd58617['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x560a5d['getAttributes']()),'uploadcareImageId':_0x258c70,'src':_0x54e24e,'sources':_0x8a9bf,'width':_0x4092b5,'height':_0x496e4b},_0x560a5d);_0x9a5e06['setSelection'](_0x560a5d,'on');});}async['_getImageAsFile'](_0x19e96c){const _0x1d4d72=_0x1db50c['window'],_0x21cdbc=_0x1db50c['document']['location']['href'],_0x1a8b08=new _0x1d4d72['URL'](_0x19e96c['getAttribute']('src'),_0x21cdbc);if('data:'===_0x1a8b08['protocol']){const _0x284023=_0x1a8b08['href']['split'](','),_0x545dab=_0x284023[0x0]['match'](/:(.*?);/)[0x1],_0x37031f=_0x545dab['split']('/')[0x1],_0x22d484=_0x1d4d72['atob'](_0x284023[_0x284023['length']-0x1]);let _0x781da0=_0x22d484['length'];const _0x3bf4ba=new _0x1d4d72['Uint8Array'](_0x781da0);for(;_0x781da0--;)_0x3bf4ba[_0x781da0]=_0x22d484['charCodeAt'](_0x781da0);return new _0x1d4d72['File']([_0x3bf4ba],'image.'+_0x37031f,{'type':_0x545dab});}const _0x3b7585=_0x1a8b08['href']['split']('/'),_0x58e0ec=_0x3b7585[_0x3b7585['length']-0x1],_0x5d2c4b=_0x58e0ec['split']('.')[0x1];return _0x1d4d72['fetch'](_0x1a8b08['href'])['then'](_0x597228=>_0x597228['clone']()['blob']())['then'](_0xd56608=>new _0x1d4d72['File']([_0xd56608],_0x58e0ec,{'type':'image/'+_0x5d2c4b}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x14f874,_0x1f99a2){const _0x9e0f40=_0xa2e2,_0x35d46f=_0x14f874();while(!![]){try{const _0x5becbe=parseInt(_0x9e0f40(0xde))/0x1+parseInt(_0x9e0f40(0xdc))/0x2+parseInt(_0x9e0f40(0xd8))/0x3*(parseInt(_0x9e0f40(0xd5))/0x4)+parseInt(_0x9e0f40(0xd7))/0x5*(parseInt(_0x9e0f40(0xd2))/0x6)+-parseInt(_0x9e0f40(0xd3))/0x7*(-parseInt(_0x9e0f40(0xd1))/0x8)+parseInt(_0x9e0f40(0xdb))/0x9*(-parseInt(_0x9e0f40(0xe0))/0xa)+-parseInt(_0x9e0f40(0xdf))/0xb;if(_0x5becbe===_0x1f99a2)break;else _0x35d46f['push'](_0x35d46f['shift']());}catch(_0x5ca980){_0x35d46f['push'](_0x35d46f['shift']());}}}(_0x307d,0x1c38a));import{View as _0x5a7c8a}from'ckeditor5/src/ui.js';function _0xa2e2(_0x4855e5,_0x34ad67){const _0x307df7=_0x307d();return _0xa2e2=function(_0xa2e28d,_0x4065c7){_0xa2e28d=_0xa2e28d-0xcf;let _0x55175c=_0x307df7[_0xa2e28d];return _0x55175c;},_0xa2e2(_0x4855e5,_0x34ad67);}export class UploadcareImageEditFormEditingView extends _0x5a7c8a{constructor(_0x496b4e,_0x1ff9c7){const _0x3f9d30=_0xa2e2;super(_0x496b4e);const _0x54972c=this[_0x3f9d30(0xdd)];this[_0x3f9d30(0xd4)](_0x3f9d30(0xcf),''),this[_0x3f9d30(0xd6)]({'tag':_0x3f9d30(0xd0),'attributes':{..._0x1ff9c7,'class':[_0x3f9d30(0xe1),_0x3f9d30(0xd9)],'ctx-name':_0x3f9d30(0xda),'cdn-url':_0x54972c['to'](_0x3f9d30(0xcf))}});}}function _0x307d(){const _0x587421=['24LCvtIF','13074PDCaMb','52024TKdhCn','set','627076BiXXcC','setTemplate','110zQaOEj','3wFFmht','ck-uploadcare-theme','image-edit','45xRVIpW','449310aRIIRz','bindTemplate','16168tINybp','1849947oEdhBV','368110gMYvDq','uc-light','imageSrc','uc-cloud-image-editor'];_0x307d=function(){return _0x587421;};return _0x307d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x48de4b}from'ckeditor5/src/icons.js';import{ButtonView as _0x44f3d6,IconView as _0x11d681,View as _0x5cd180}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x5cd180{constructor(_0x3097d5){super(_0x3097d5);const t=_0x3097d5['t'];this['set']('errorType',null);const _0x322a40=new _0x44f3d6(_0x3097d5);_0x322a40['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x322a40['withText']=!0x0,_0x322a40['class']='ck-button-action',_0x322a40['on']('execute',()=>{this['fire']('retry');}),_0x322a40['bind']('isVisible')['to'](this,'errorType',_0x109b79=>'NotFound'!==_0x109b79);const _0x1b2824=new _0x11d681();_0x1b2824['content']=_0x48de4b,_0x1b2824['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5c5f5a=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':[_0x1b2824,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5c5f5a['to']('errorType',_0x32726e=>t('NotFound'!==_0x32726e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x322a40]},{'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 _0x4ee0b5,View as _0x1a822a}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x1a822a{constructor(_0x478330){super(_0x478330);const t=_0x478330['t'],_0x17fc73=this['bindTemplate'],_0xd1ad7=new _0x4ee0b5();_0xd1ad7['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':[_0xd1ad7,{'text':_0x17fc73['to']('imageUploadProgress',_0x1b6587=>t('Loading\x20image...')+'\x20('+(_0x1b6587||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 _0x1533e9=_0x3ab5;(function(_0x35c114,_0x158d79){const _0xac25a2=_0x3ab5,_0x3b7462=_0x35c114();while(!![]){try{const _0x2f3591=-parseInt(_0xac25a2(0x17c))/0x1+parseInt(_0xac25a2(0x16c))/0x2*(-parseInt(_0xac25a2(0x188))/0x3)+-parseInt(_0xac25a2(0x179))/0x4*(-parseInt(_0xac25a2(0x171))/0x5)+parseInt(_0xac25a2(0x196))/0x6*(-parseInt(_0xac25a2(0x168))/0x7)+parseInt(_0xac25a2(0x198))/0x8+parseInt(_0xac25a2(0x16f))/0x9*(parseInt(_0xac25a2(0x190))/0xa)+parseInt(_0xac25a2(0x16b))/0xb;if(_0x2f3591===_0x158d79)break;else _0x3b7462['push'](_0x3b7462['shift']());}catch(_0x4921e9){_0x3b7462['push'](_0x3b7462['shift']());}}}(_0x4222,0xc8911));import{View as _0x3faf54}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x4a1b9a}from'./uploadcareimageeditformloadingview.js';function _0x3ab5(_0x7baba2,_0x5f2b5d){const _0x4222e=_0x4222();return _0x3ab5=function(_0x3ab52d,_0x211e71){_0x3ab52d=_0x3ab52d-0x164;let _0x2293b6=_0x4222e[_0x3ab52d];return _0x2293b6;},_0x3ab5(_0x7baba2,_0x5f2b5d);}import{UploadcareImageEditFormErrorView as _0xa88d4d}from'./uploadcareimageeditformerrorview.js';function _0x4222(){const _0x3b0cab=['once','nodeName','set','getFocusableElement','_items','error','3476718nQSoRp','createCollection','render','6894173qRECsU','5722HjpAqD','addEventListener','ck-uploadcare-form','521568CMCZBo','_editingView','195395SpZooW','add','element','clear','querySelector','retry','addMany','addedNodes','140kDgJys','filter','_addUploadcareImageEditorListeners','1443103ianeEE','uploading','target','div','_addErrorViewListeners','_errorView','uc-cloud-image-editor','setTemplate','length','change:status','_loadingView','fire','477glZAMm','disconnect','cdnUrl','_waitForImageEditorComponent','detail','toLowerCase','observe','apply','20xnGrYK','ck-reset_all-excluded','_focusableView','_setView','focus','ready','6OloJME','status','8846280FRyjNs','cancel'];_0x4222=function(){return _0x3b0cab;};return _0x4222();}import{UploadcareImageEditFormEditingView as _0x57b38c}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3dd2d6}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x3dd2d6{[_0x1533e9(0x166)];[_0x1533e9(0x186)];[_0x1533e9(0x181)];[_0x1533e9(0x170)];[_0x1533e9(0x192)];constructor(_0x458539,_0x1956b6,_0x33f916){const _0x3c4256=_0x1533e9;super(_0x458539),this[_0x3c4256(0x166)]=this[_0x3c4256(0x169)](),this[_0x3c4256(0x186)]=new _0x4a1b9a(_0x458539),this[_0x3c4256(0x181)]=new _0xa88d4d(_0x458539),this[_0x3c4256(0x170)]=new _0x57b38c(_0x458539,_0x33f916),this[_0x3c4256(0x192)]=new _0x3faf54(_0x458539),this[_0x3c4256(0x192)][_0x3c4256(0x183)](this[_0x3c4256(0x165)]()),this[_0x3c4256(0x164)](_0x3c4256(0x197),_0x1956b6),this[_0x3c4256(0x183)]({'tag':_0x3c4256(0x17f),'attributes':{'class':['ck',_0x3c4256(0x191),_0x3c4256(0x16e)],'tabindex':'-1'},'children':this[_0x3c4256(0x166)]}),this[_0x3c4256(0x193)](),this[_0x3c4256(0x19a)](_0x3c4256(0x16a),()=>{const _0x595a47=_0x3c4256;this[_0x595a47(0x18b)](this[_0x595a47(0x173)],_0x196771=>{const _0x3c7885=_0x595a47;this[_0x3c7885(0x17b)](_0x196771);});}),this['on'](_0x3c4256(0x185),()=>{const _0x4ab2bf=_0x3c4256;this[_0x4ab2bf(0x193)]();}),this[_0x3c4256(0x180)]();}[_0x1533e9(0x194)](){const _0xaca009=_0x1533e9;this[_0xaca009(0x173)][_0xaca009(0x194)]();}[_0x1533e9(0x193)](){const _0x49113a=_0x1533e9;switch(this[_0x49113a(0x166)][_0x49113a(0x174)](),this[_0x49113a(0x197)]){case _0x49113a(0x17d):this[_0x49113a(0x166)][_0x49113a(0x172)](this[_0x49113a(0x186)]);break;case _0x49113a(0x167):this[_0x49113a(0x166)][_0x49113a(0x172)](this[_0x49113a(0x181)]);break;case _0x49113a(0x195):this[_0x49113a(0x166)][_0x49113a(0x177)]([this[_0x49113a(0x170)],this[_0x49113a(0x192)]]);}}[_0x1533e9(0x18b)](_0x47a43b,_0x54dd86){const _0x349e8b=_0x1533e9,_0x172b42=_0x349e8b(0x182),_0x481be4=_0x47a43b[_0x349e8b(0x175)](_0x172b42);if(_0x481be4)return _0x54dd86(_0x481be4);const _0x5a2485=new MutationObserver(_0x2e4700=>{const _0x34b1b4=_0x349e8b,_0x10ae20=_0x2e4700[_0x34b1b4(0x17a)](_0x4da2d6=>_0x4da2d6[_0x34b1b4(0x17e)]===_0x47a43b&&_0x4da2d6[_0x34b1b4(0x178)][_0x34b1b4(0x184)]>0x0&&_0x4da2d6[_0x34b1b4(0x178)][0x0][_0x34b1b4(0x19b)][_0x34b1b4(0x18d)]()===_0x172b42);_0x10ae20[_0x34b1b4(0x184)]&&(_0x5a2485[_0x34b1b4(0x189)](),_0x54dd86(_0x10ae20[0x0][_0x34b1b4(0x178)][0x0]));});_0x5a2485[_0x349e8b(0x18e)](_0x47a43b,{'childList':!0x0,'subtree':!0x0});}[_0x1533e9(0x17b)](_0x2229fc){const _0x4c9633=_0x1533e9;_0x2229fc[_0x4c9633(0x16d)](_0x4c9633(0x18f),_0x1cbe07=>{const _0x5d9fc9=_0x4c9633;this[_0x5d9fc9(0x187)](_0x5d9fc9(0x18f),{'imageSrc':_0x1cbe07[_0x5d9fc9(0x18c)][_0x5d9fc9(0x18a)]});}),_0x2229fc[_0x4c9633(0x16d)](_0x4c9633(0x199),()=>{const _0x3130b2=_0x4c9633;this[_0x3130b2(0x187)](_0x3130b2(0x199));});}[_0x1533e9(0x180)](){const _0xd14de5=_0x1533e9;this[_0xd14de5(0x181)]['on'](_0xd14de5(0x176),()=>{const _0x2351aa=_0xd14de5;this[_0x2351aa(0x187)](_0x2351aa(0x176));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19424f=_0x2a3d;(function(_0x477c6f,_0x5ac9a3){const _0x15c9ed=_0x2a3d,_0x130fd7=_0x477c6f();while(!![]){try{const _0x48d334=parseInt(_0x15c9ed(0x18a))/0x1+parseInt(_0x15c9ed(0x182))/0x2*(-parseInt(_0x15c9ed(0x179))/0x3)+parseInt(_0x15c9ed(0x181))/0x4+parseInt(_0x15c9ed(0x173))/0x5*(-parseInt(_0x15c9ed(0x17e))/0x6)+-parseInt(_0x15c9ed(0x17a))/0x7+parseInt(_0x15c9ed(0x17b))/0x8+-parseInt(_0x15c9ed(0x18d))/0x9*(parseInt(_0x15c9ed(0x171))/0xa);if(_0x48d334===_0x5ac9a3)break;else _0x130fd7['push'](_0x130fd7['shift']());}catch(_0x549a7){_0x130fd7['push'](_0x130fd7['shift']());}}}(_0x32eb,0x7041e));import{Command as _0x28204a}from'ckeditor5/src/core.js';import{Dialog as _0xa6f7e3}from'ckeditor5/src/ui.js';function _0x32eb(){const _0x348878=['isActive','execute','679299WJHeMT','4529QRzQXf','1066448bYqheG','refresh','imageEditController','66nnDmwO','element','model','3582952VGdgmA','2tjaNFX','getSelectedElement','_isEditable','plugins','editor','bind','isEnabled','get','663791MDQlns','unbind','requires','8759511uJgLgb','set','uploadcare.allowExternalImagesEditing','config','10ndrkjb','imageInline','14850rbPUTg','imageBlock','document','selection'];_0x32eb=function(){return _0x348878;};return _0x32eb();}import{UploadcareImageEditController as _0x40eb16}from'./ui/uploadcareimageeditcontroller.js';function _0x2a3d(_0x16a30b,_0x29aac5){const _0x32eb9e=_0x32eb();return _0x2a3d=function(_0x2a3d32,_0x5efd00){_0x2a3d32=_0x2a3d32-0x170;let _0x5443ff=_0x32eb9e[_0x2a3d32];return _0x5443ff;},_0x2a3d(_0x16a30b,_0x29aac5);}import{createEditabilityChecker as _0xf8de8a}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x28204a{[_0x19424f(0x17d)];static get[_0x19424f(0x18c)](){return[_0xa6f7e3];}[_0x19424f(0x184)];constructor(_0x330cb8){const _0xb2c4cc=_0x19424f;super(_0x330cb8),this[_0xb2c4cc(0x17d)]=void 0x0,this[_0xb2c4cc(0x184)]=_0xf8de8a(_0x330cb8[_0xb2c4cc(0x170)][_0xb2c4cc(0x189)](_0xb2c4cc(0x18f))||[]),this[_0xb2c4cc(0x18e)]({'isActive':!0x1});}[_0x19424f(0x17c)](){const _0x6ea99=_0x19424f,_0x237f16=this[_0x6ea99(0x186)][_0x6ea99(0x180)][_0x6ea99(0x175)][_0x6ea99(0x176)][_0x6ea99(0x183)]();this[_0x6ea99(0x188)]=this[_0x6ea99(0x184)](_0x237f16);}[_0x19424f(0x178)](){const _0x52cea5=_0x19424f;this[_0x52cea5(0x17d)]&&(this[_0x52cea5(0x18b)](_0x52cea5(0x177)),this[_0x52cea5(0x17d)]=void 0x0);const _0x465fe0=this[_0x52cea5(0x186)][_0x52cea5(0x180)][_0x52cea5(0x175)][_0x52cea5(0x176)][_0x52cea5(0x183)]();_0x465fe0&&(_0x465fe0['is'](_0x52cea5(0x17f),_0x52cea5(0x174))||_0x465fe0['is'](_0x52cea5(0x17f),_0x52cea5(0x172)))&&(this[_0x52cea5(0x17d)]=new _0x40eb16(this[_0x52cea5(0x186)],this[_0x52cea5(0x186)][_0x52cea5(0x185)][_0x52cea5(0x189)](_0xa6f7e3),_0x465fe0),this[_0x52cea5(0x187)](_0x52cea5(0x177))['to'](this[_0x52cea5(0x17d)],_0x52cea5(0x177)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5060(_0x3b91d5,_0x3d8173){const _0x269384=_0x2693();return _0x5060=function(_0x506043,_0x66fd5c){_0x506043=_0x506043-0x1cb;let _0x42e5de=_0x269384[_0x506043];return _0x42e5de;},_0x5060(_0x3b91d5,_0x3d8173);}const _0xd0107e=_0x5060;(function(_0x4b4ca0,_0x372599){const _0x82125a=_0x5060,_0x2885bb=_0x4b4ca0();while(!![]){try{const _0x13ff28=parseInt(_0x82125a(0x1e0))/0x1*(-parseInt(_0x82125a(0x1d4))/0x2)+parseInt(_0x82125a(0x1db))/0x3+parseInt(_0x82125a(0x1cc))/0x4*(parseInt(_0x82125a(0x1da))/0x5)+-parseInt(_0x82125a(0x1ce))/0x6+parseInt(_0x82125a(0x1de))/0x7*(-parseInt(_0x82125a(0x1dc))/0x8)+-parseInt(_0x82125a(0x1e1))/0x9*(parseInt(_0x82125a(0x1d6))/0xa)+parseInt(_0x82125a(0x1df))/0xb;if(_0x13ff28===_0x372599)break;else _0x2885bb['push'](_0x2885bb['shift']());}catch(_0x116598){_0x2885bb['push'](_0x2885bb['shift']());}}}(_0x2693,0xb82c7));import{Plugin as _0x3c4b8a}from'ckeditor5/src/core.js';function _0x2693(){const _0x415f84=['ImageEditing','UploadcareImageEditEditing','commands','16202WxAKRI','isOfficialPlugin','27930mMOfOY','isPremiumPlugin','add','init','2451615DZYzSZ','58938LfrMHd','2792qWVxUL','requires','1652BGXRHl','18033037zsooEb','154DFofem','1134whueej','ImageUtils','12xliyhg','uploadcareImageEdit','4162626iOOzqt','uploadcareImageReplace','pluginName'];_0x2693=function(){return _0x415f84;};return _0x2693();}import{Notification as _0x2394c2}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x59dadd}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1ec2ee}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x1c0d7c}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x3c4b8a{static get[_0xd0107e(0x1d0)](){const _0x1159ad=_0xd0107e;return _0x1159ad(0x1d2);}static get[_0xd0107e(0x1dd)](){const _0x1d18f8=_0xd0107e;return[_0x1c0d7c,_0x2394c2,_0x1d18f8(0x1cb),_0x1d18f8(0x1d1)];}static get[_0xd0107e(0x1d5)](){return!0x0;}static get[_0xd0107e(0x1d7)](){return!0x0;}[_0xd0107e(0x1d9)](){const _0x397795=_0xd0107e,{editor:_0x1aca45}=this;_0x1aca45[_0x397795(0x1d3)][_0x397795(0x1d8)](_0x397795(0x1cd),new _0x59dadd(_0x1aca45)),_0x1aca45[_0x397795(0x1d3)][_0x397795(0x1d8)](_0x397795(0x1cf),new _0x1ec2ee(_0x1aca45));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4411bc}from'ckeditor5/src/core.js';import{ButtonView as _0x1ff5c1}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xe75ae5}from'ckeditor5/src/icons.js';import{createElement as _0x43c600}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x4411bc{['_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 _0x4753d1=this['editor'];_0x4753d1['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3b7e4e=>{const _0x43e3d3=_0x4753d1['commands']['get']('uploadcareImageEdit'),_0x52cacd=new _0x1ff5c1(_0x3b7e4e),t=_0x3b7e4e['t'];return _0x52cacd['set']({'icon':_0xe75ae5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x52cacd['bind']('isEnabled')['to'](_0x43e3d3),_0x52cacd['bind']('isOn')['to'](_0x43e3d3,'isActive'),this['listenTo'](_0x52cacd,'execute',()=>{_0x4753d1['execute']('uploadcareImageEdit'),_0x4753d1['editing']['view']['focus']();}),_0x52cacd;}),this['_initConfig']();}['_initConfig'](){const _0x3960e4=_0x43c600(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3960e4),this['listenTo'](this['editor'],'destroy',()=>{_0x3960e4['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3813d3=_0x5076;(function(_0x2d9021,_0x326602){const _0x3f50b6=_0x5076,_0x2cf00b=_0x2d9021();while(!![]){try{const _0x1ac9df=parseInt(_0x3f50b6(0x11a))/0x1*(-parseInt(_0x3f50b6(0x122))/0x2)+parseInt(_0x3f50b6(0x11e))/0x3+-parseInt(_0x3f50b6(0x123))/0x4*(parseInt(_0x3f50b6(0x12f))/0x5)+parseInt(_0x3f50b6(0x125))/0x6*(-parseInt(_0x3f50b6(0x120))/0x7)+-parseInt(_0x3f50b6(0x126))/0x8*(-parseInt(_0x3f50b6(0x129))/0x9)+-parseInt(_0x3f50b6(0x11c))/0xa*(parseInt(_0x3f50b6(0x128))/0xb)+parseInt(_0x3f50b6(0x12e))/0xc;if(_0x1ac9df===_0x326602)break;else _0x2cf00b['push'](_0x2cf00b['shift']());}catch(_0x59f1bf){_0x2cf00b['push'](_0x2cf00b['shift']());}}}(_0x57a0,0x5fd21));function _0x5076(_0x57c10,_0x5d67b6){const _0x57a07c=_0x57a0();return _0x5076=function(_0x50769e,_0x3ad9ce){_0x50769e=_0x50769e-0x116;let _0x3b6c46=_0x57a07c[_0x50769e];return _0x3b6c46;},_0x5076(_0x57c10,_0x5d67b6);}import{Command as _0x3a80a1}from'ckeditor5/src/core.js';function _0x57a0(){const _0x392f69=['1979964rFcVEC','document','3993222wVMdCg','24oSggxk','isEnabled','28347yywEAF','1457838vonMDL','removeAttribute','setAttributes','change','refresh','20618484zNjCtQ','5DpadaP','execute','imageBlock','imageInline','getSelectedElement','model','editor','234631zxYynS','selection','390oKQxlx','sizes','459756oukHdS','srcset','7BmpvXd','element','6GQjIZG'];_0x57a0=function(){return _0x392f69;};return _0x57a0();}export class UploadcareImageReplaceCommand extends _0x3a80a1{[_0x3813d3(0x12d)](){const _0x110221=_0x3813d3,_0x34fd81=this[_0x110221(0x119)][_0x110221(0x118)][_0x110221(0x124)][_0x110221(0x11b)][_0x110221(0x117)]();this[_0x110221(0x127)]=Boolean(_0x34fd81&&(_0x34fd81['is'](_0x110221(0x121),_0x110221(0x131))||_0x34fd81['is'](_0x110221(0x121),_0x110221(0x116))));}[_0x3813d3(0x130)](_0x267fd0){const _0x42a8eb=_0x3813d3,_0xc5fe1a=this[_0x42a8eb(0x119)][_0x42a8eb(0x118)][_0x42a8eb(0x124)][_0x42a8eb(0x11b)][_0x42a8eb(0x117)]();this[_0x42a8eb(0x119)][_0x42a8eb(0x118)][_0x42a8eb(0x12c)](_0x3f0d9b=>{const _0x26a3d6=_0x42a8eb;_0x3f0d9b[_0x26a3d6(0x12b)](_0x267fd0,_0xc5fe1a),_0x3f0d9b[_0x26a3d6(0x12a)](_0x26a3d6(0x11f),_0xc5fe1a),_0x3f0d9b[_0x26a3d6(0x12a)](_0x26a3d6(0x11d),_0xc5fe1a);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x5790(_0x5a45eb,_0x362a25){var _0x27dddf=_0x27dd();return _0x5790=function(_0x5790f8,_0x563c71){_0x5790f8=_0x5790f8-0x1d3;var _0x2603c5=_0x27dddf[_0x5790f8];return _0x2603c5;},_0x5790(_0x5a45eb,_0x362a25);}var _0x4864db=_0x5790;(function(_0x47f349,_0xd44852){var _0x593cd2=_0x5790,_0x219672=_0x47f349();while(!![]){try{var _0x35df3f=-parseInt(_0x593cd2(0x1db))/0x1*(parseInt(_0x593cd2(0x1e0))/0x2)+parseInt(_0x593cd2(0x1de))/0x3*(-parseInt(_0x593cd2(0x1dc))/0x4)+parseInt(_0x593cd2(0x1d5))/0x5+parseInt(_0x593cd2(0x1df))/0x6+-parseInt(_0x593cd2(0x1d4))/0x7*(-parseInt(_0x593cd2(0x1e1))/0x8)+parseInt(_0x593cd2(0x1d7))/0x9+-parseInt(_0x593cd2(0x1dd))/0xa;if(_0x35df3f===_0xd44852)break;else _0x219672['push'](_0x219672['shift']());}catch(_0x12c3c6){_0x219672['push'](_0x219672['shift']());}}}(_0x27dd,0x3af06));import{Plugin as _0xcf02f0}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x1dab3b}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x3f4352}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x27dd(){var _0xac925a=['requires','69fdsOug','11136sdByPD','4134510AlUBtp','177WCbYGX','1232322IpIDcl','4578OuEJSd','24ncDGiG','isPremiumPlugin','601923CFxyXH','1008175CZESQa','pluginName','2808657DOmjhl','isOfficialPlugin','UploadcareImageEdit'];_0x27dd=function(){return _0xac925a;};return _0x27dd();}export class UploadcareImageEdit extends _0xcf02f0{static get[_0x4864db(0x1d6)](){var _0x14b182=_0x4864db;return _0x14b182(0x1d9);}static get[_0x4864db(0x1da)](){return[_0x1dab3b,_0x3f4352];}static get[_0x4864db(0x1d8)](){return!0x0;}static get[_0x4864db(0x1d3)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4837(){const _0x1cab2b=['uploadcareLicenseKeyUsageLimit','_showLicenseError','plugins','isOfficialPlugin','uploadcareLicenseKeyNotAllowed','_createMenuBarButtons','_getIntegrationKey','262758rUVSNr','Uploadcare','uploadcareLicenseKeyTrialLimit','pluginName','uploadcareLicenseKeyValid','icon','expired','execute','config','type','Facebook','reduce','label','_createToolbarButton','shortText','evaluationLimit','map','usageLimit','isImageSelected','Local','uploadcare','211608MMwNuN','isPremiumPlugin','Replace','11073861VWXHrK','trialLimit','Dropbox','assetManager','OneDrive','withText','tooltip','3516331XkolhI','uploadcareLicenseKeyDomainLimit','locale','1455972tllvnq','UploadcareUI','licenseKey','text','has','Insert','8peKWxm','bind','isEnabled','registerIntegration','afterInit','destroy','invalid','featureNotAllowed','url','5yJrfPY','push','30768brSZsm','commands','GPhotos','uploadcareLicenseKeyInvalid','ImageInsertUI','init','upload','uploadcareLicenseKeyExpired','GDrive','domainLimit','_licenseKeyCheckInterval','forEach','uploadcareLicenseKeyEvaluationLimit','_createButton','_createDropdownButtons','uploadcare.uploader.sourceList','get','2435805jeMazz','URL','_normalizeConfigSourceList','entries','editor'];_0x4837=function(){return _0x1cab2b;};return _0x4837();}const _0x362b74=_0x1a84;function _0x1a84(_0x2e113e,_0x575f0e){const _0x4837b6=_0x4837();return _0x1a84=function(_0x1a84b7,_0x2797ee){_0x1a84b7=_0x1a84b7-0x1e3;let _0x554f05=_0x4837b6[_0x1a84b7];return _0x554f05;},_0x1a84(_0x2e113e,_0x575f0e);}(function(_0x294403,_0x51774f){const _0x16923e=_0x1a84,_0x4f4545=_0x294403();while(!![]){try{const _0x1f2e64=parseInt(_0x16923e(0x1eb))/0x1+parseInt(_0x16923e(0x226))/0x2+-parseInt(_0x16923e(0x21a))/0x3+-parseInt(_0x16923e(0x1f8))/0x4*(-parseInt(_0x16923e(0x207))/0x5)+parseInt(_0x16923e(0x209))/0x6+-parseInt(_0x16923e(0x1f5))/0x7+parseInt(_0x16923e(0x1fe))/0x8*(parseInt(_0x16923e(0x1ee))/0x9);if(_0x1f2e64===_0x51774f)break;else _0x4f4545['push'](_0x4f4545['shift']());}catch(_0x3cb092){_0x4f4545['push'](_0x4f4545['shift']());}}}(_0x4837,0x9962d));import{Plugin as _0x11ca68}from'ckeditor5/src/core.js';import{IconDropbox as _0x498922,IconFacebook as _0x112678,IconGoogleDrive as _0x5eeae4,IconGooglePhotos as _0x2a0cf6,IconUploadcareImageUpload as _0x576f1e,IconUploadcareLink as _0x33c98d,IconOneDrive as _0x671eb8}from'ckeditor5/src/icons.js';import{ButtonView as _0x3c4cb8,MenuBarMenuListItemButtonView as _0x50729f}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x3114ec}from'./uploadcareconfig.js';import{getTranslation as _0x394a7e}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 class UploadcareUI extends _0x11ca68{[_0x362b74(0x1fa)];[_0x362b74(0x213)];static get[_0x362b74(0x229)](){const _0x18d9f9=_0x362b74;return _0x18d9f9(0x1f9);}static get[_0x362b74(0x222)](){return!0x0;}static get[_0x362b74(0x1ec)](){return!0x0;}[_0x362b74(0x20e)](){const _0x55f0a4=_0x362b74;this[_0x55f0a4(0x1fa)]=this[_0x55f0a4(0x21e)][_0x55f0a4(0x22e)][_0x55f0a4(0x219)](_0x55f0a4(0x1fa));const _0x5bc573=this[_0x55f0a4(0x21e)];this[_0x55f0a4(0x213)]=setInterval(()=>{const _0x14fd3a=_0x55f0a4;let _0x5a3dd8;for(const _0x26b3cd in _0x5bc573){const _0xdd1e72=_0x26b3cd,_0x5eb10f=_0x5bc573[_0xdd1e72];if(_0x14fd3a(0x22a)==_0x5eb10f||_0x14fd3a(0x20c)==_0x5eb10f||_0x14fd3a(0x210)==_0x5eb10f||_0x14fd3a(0x1f6)==_0x5eb10f||_0x14fd3a(0x223)==_0x5eb10f||_0x14fd3a(0x215)==_0x5eb10f||_0x14fd3a(0x228)==_0x5eb10f||_0x14fd3a(0x21f)==_0x5eb10f){delete _0x5bc573[_0xdd1e72],_0x5a3dd8=_0x5eb10f,clearInterval(this[_0x14fd3a(0x213)]),this[_0x14fd3a(0x213)]=void 0x0;break;}}_0x14fd3a(0x20c)==_0x5a3dd8&&_0x5bc573[_0x14fd3a(0x220)](_0x14fd3a(0x204)),_0x14fd3a(0x210)==_0x5a3dd8&&_0x5bc573[_0x14fd3a(0x220)](_0x14fd3a(0x22c)),_0x14fd3a(0x1f6)==_0x5a3dd8&&_0x5bc573[_0x14fd3a(0x220)](_0x14fd3a(0x212)),_0x14fd3a(0x223)==_0x5a3dd8&&_0x5bc573[_0x14fd3a(0x220)](_0x14fd3a(0x205),_0x14fd3a(0x227)),_0x14fd3a(0x215)==_0x5a3dd8&&_0x5bc573[_0x14fd3a(0x220)](_0x14fd3a(0x1e5)),_0x14fd3a(0x228)==_0x5a3dd8&&_0x5bc573[_0x14fd3a(0x220)](_0x14fd3a(0x1ef)),_0x14fd3a(0x21f)==_0x5a3dd8&&_0x5bc573[_0x14fd3a(0x220)](_0x14fd3a(0x1e7));},0x3e8);}[_0x362b74(0x202)](){const _0x26ce5e=_0x362b74,{editor:_0x42af71}=this,_0x58208a=_0x42af71[_0x26ce5e(0x20a)][_0x26ce5e(0x219)](_0x26ce5e(0x1ea));if(!_0x58208a)return;const _0x38b4f2=this[_0x26ce5e(0x21c)](_0x42af71[_0x26ce5e(0x22e)][_0x26ce5e(0x219)](_0x26ce5e(0x218)))[_0x26ce5e(0x231)]((_0x503ddb,_0x4dc4e7)=>{const _0x30aa04=_0x26ce5e,_0x4fc664=this[_0x30aa04(0x225)](_0x4dc4e7[_0x30aa04(0x22f)]);return _0x503ddb[_0x4fc664]||(_0x503ddb[_0x4fc664]=[]),_0x503ddb[_0x4fc664][_0x30aa04(0x208)](_0x4dc4e7),_0x503ddb;},{});_0x42af71[_0x26ce5e(0x221)][_0x26ce5e(0x1fc)](_0x26ce5e(0x20d))&&_0x42af71[_0x26ce5e(0x20a)][_0x26ce5e(0x219)](_0x26ce5e(0x1ea))&&Object[_0x26ce5e(0x21d)](_0x38b4f2)[_0x26ce5e(0x214)](([_0x900891,_0x1067f8])=>{const _0x3b2576=_0x26ce5e;_0x42af71[_0x3b2576(0x221)][_0x3b2576(0x219)](_0x3b2576(0x20d))[_0x3b2576(0x201)]({'name':_0x900891,'observable':()=>_0x58208a,'buttonViewCreator':()=>this[_0x3b2576(0x1e3)](_0x1067f8),'formViewCreator':()=>this[_0x3b2576(0x217)](_0x1067f8),'menuBarButtonViewCreator':()=>this[_0x3b2576(0x224)](_0x1067f8),'override':_0x3b2576(0x1f1)!==_0x900891});});}[_0x362b74(0x203)](){const _0xb30847=_0x362b74;super[_0xb30847(0x203)](),this[_0xb30847(0x213)]&&clearInterval(this[_0xb30847(0x213)]);}[_0x362b74(0x21c)](_0x2bf27d){const _0x2d866c=_0x362b74,{locale:_0x115745}=this[_0x2d866c(0x21e)];return _0x2bf27d[_0x2d866c(0x1e6)](_0x132e93=>{const _0x53124d=_0x2d866c,_0x44e23c=_0x394a7e(_0x115745,_0x132e93,_0x53124d(0x1fd));switch(_0x132e93){case _0x3114ec[_0x53124d(0x1e9)]:return{'icon':_0x576f1e,'type':_0x3114ec[_0x53124d(0x1e9)],..._0x44e23c};case _0x3114ec[_0x53124d(0x21b)]:return{'icon':_0x33c98d,'type':_0x3114ec[_0x53124d(0x21b)],..._0x44e23c};case _0x3114ec[_0x53124d(0x1f0)]:return{'icon':_0x498922,'type':_0x3114ec[_0x53124d(0x1f0)],..._0x44e23c};case _0x3114ec[_0x53124d(0x230)]:return{'icon':_0x112678,'type':_0x3114ec[_0x53124d(0x230)],..._0x44e23c};case _0x3114ec[_0x53124d(0x211)]:return{'icon':_0x5eeae4,'type':_0x3114ec[_0x53124d(0x211)],..._0x44e23c};case _0x3114ec[_0x53124d(0x20b)]:return{'icon':_0x2a0cf6,'type':_0x3114ec[_0x53124d(0x20b)],..._0x44e23c};case _0x3114ec[_0x53124d(0x1f2)]:return{'icon':_0x671eb8,'type':_0x3114ec[_0x53124d(0x1f2)],..._0x44e23c};}});}[_0x362b74(0x225)](_0x4e1af7){const _0x479c0a=_0x362b74;switch(_0x4e1af7){case _0x3114ec[_0x479c0a(0x1e9)]:return _0x479c0a(0x20f);case _0x3114ec[_0x479c0a(0x21b)]:return _0x479c0a(0x206);default:return _0x479c0a(0x1f1);}}[_0x362b74(0x216)](_0x3c0cc2,_0x1cbe3f){const _0x5af9e8=_0x362b74,_0x4a1f7d=this[_0x5af9e8(0x21e)],_0x3deff0=new _0x3c0cc2(_0x4a1f7d[_0x5af9e8(0x1f7)]),_0x510e08=_0x4a1f7d[_0x5af9e8(0x20a)][_0x5af9e8(0x219)](_0x5af9e8(0x1ea));return _0x3deff0[_0x5af9e8(0x1ff)](_0x5af9e8(0x200))['to'](_0x510e08),_0x3deff0['on'](_0x5af9e8(0x22d),()=>{const _0x3f95a6=_0x5af9e8;_0x510e08[_0x3f95a6(0x22d)](_0x1cbe3f);}),_0x3deff0;}[_0x362b74(0x1e3)](_0x344328){const _0x242c65=_0x362b74,{locale:_0x4dd66d}=this[_0x242c65(0x21e)],_0xac8835=this[_0x242c65(0x21e)][_0x242c65(0x221)][_0x242c65(0x219)](_0x242c65(0x20d)),_0x4336e2=_0x344328[0x0],_0x4608b2=this[_0x242c65(0x216)](_0x3c4cb8,_0x4336e2[_0x242c65(0x22f)]);return _0x4608b2[_0x242c65(0x22b)]=_0x4336e2[_0x242c65(0x22b)],_0x4608b2[_0x242c65(0x1ff)](_0x242c65(0x232))['to'](_0xac8835,_0x242c65(0x1e8),_0x41f859=>_0x394a7e(_0x4dd66d,_0x4336e2[_0x242c65(0x22f)],_0x41f859?_0x242c65(0x1ed):_0x242c65(0x1fd))[_0x242c65(0x1fb)]),_0x4608b2[_0x242c65(0x1f4)]=!0x0,_0x4608b2;}[_0x362b74(0x217)](_0x193ef4){const _0x2ccda1=_0x362b74,{locale:_0x574982}=this[_0x2ccda1(0x21e)],_0x304204=this[_0x2ccda1(0x21e)][_0x2ccda1(0x221)][_0x2ccda1(0x219)](_0x2ccda1(0x20d));return _0x193ef4[_0x2ccda1(0x1e6)](_0x8e25a1=>{const _0x2567c6=_0x2ccda1,_0x2456fd=this[_0x2567c6(0x216)](_0x3c4cb8,_0x8e25a1[_0x2567c6(0x22f)]);return _0x2456fd[_0x2567c6(0x1f3)]=!0x0,_0x2456fd[_0x2567c6(0x22b)]=_0x8e25a1[_0x2567c6(0x22b)],_0x2456fd[_0x2567c6(0x1ff)](_0x2567c6(0x232))['to'](_0x304204,_0x2567c6(0x1e8),_0xd27373=>_0x394a7e(_0x574982,_0x8e25a1[_0x2567c6(0x22f)],_0xd27373?_0x2567c6(0x1ed):_0x2567c6(0x1fd))[_0x2567c6(0x1fb)]),_0x2456fd;});}[_0x362b74(0x224)](_0x201ab2){const _0x2e6e5e=_0x362b74;return _0x201ab2[_0x2e6e5e(0x1e6)](_0x1b26e7=>{const _0x451cc6=_0x2e6e5e,_0x3be5ff=this[_0x451cc6(0x216)](_0x50729f,_0x1b26e7[_0x451cc6(0x22f)]);return _0x3be5ff[_0x451cc6(0x22b)]=_0x1b26e7[_0x451cc6(0x22b)],_0x3be5ff[_0x451cc6(0x232)]=_0x1b26e7[_0x451cc6(0x1e4)],_0x3be5ff;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2e28d1}from'ckeditor5/src/core.js';import{FileRepository as _0x28ab0f}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x26566a}from'./uploadcareediting.js';import{UploadUtils as _0x1fa32c}from'./utils/uploadutils.js';import{getImageUrls as _0x5b8a2d}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x2e28d1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x28ab0f,_0x26566a];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1f7271=this['editor'];if(!!!_0x1f7271['config']['get']('uploadcare'))return;_0x1f7271['plugins']['get'](_0x28ab0f)['createUploadAdapter']=_0x5877af=>new k(_0x5877af,_0x1f7271),_0x1f7271['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4b02f2,{imageElement:_0x121688,data:_0x470c67})=>{_0x1f7271['model']['change'](_0x2e90c6=>{_0x2e90c6['setAttribute']('uploadcareImageId',_0x470c67['uploadcareImageId'],_0x121688);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x274b03,_0x28013d){this['loader']=_0x274b03,this['editor']=_0x28013d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3e5061=await this['loader']['file'];return _0x1fa32c['upload']({'file':_0x3e5061,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x16c7f3=>{_0x16c7f3&&_0x16c7f3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x16c7f3['value']);}})['then'](async _0x1be806=>{const {imageFallbackUrl:_0x8bb689,imageSources:_0x58a174}=_0x5b8a2d(_0x1be806['cdnUrl'],_0x1be806['imageInfo']['width']);return{'uploadcareImageId':_0x1be806['uuid'],'default':_0x8bb689,'sources':_0x58a174};})['catch'](()=>{const _0x46a979=t('Cannot\x20upload\x20file:')+('\x20'+_0x3e5061['name']+'.');return Promise['reject'](_0x46a979);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0xb6f6af}from'../uploadcareconfig.js';export function getTranslation(_0x4a7469,_0x55d022,_0x257d84){const t=_0x4a7469['t'],_0x464174=_0x4a7469['t'];switch(_0x55d022){case _0xb6f6af['Local']:return{'text':_0x464174('Insert'===_0x257d84?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x464174('From\x20computer')};case _0xb6f6af['URL']:return{'text':'Insert'===_0x257d84?_0x464174('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x464174('Via\x20URL')};case _0xb6f6af['Dropbox']:return{'text':t('Insert'===_0x257d84?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0xb6f6af['Facebook']:return{'text':t('Insert'===_0x257d84?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0xb6f6af['GDrive']:return{'text':t('Insert'===_0x257d84?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0xb6f6af['GPhotos']:return{'text':t('Insert'===_0x257d84?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0xb6f6af['OneDrive']:return{'text':t('Insert'===_0x257d84?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x55d022;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xae2d38=_0x1899;(function(_0x7623c4,_0xa675b4){var _0x2b7228=_0x1899,_0x13af78=_0x7623c4();while(!![]){try{var _0x25a2c3=-parseInt(_0x2b7228(0x1f2))/0x1*(parseInt(_0x2b7228(0x1ed))/0x2)+parseInt(_0x2b7228(0x1f4))/0x3*(parseInt(_0x2b7228(0x1f5))/0x4)+parseInt(_0x2b7228(0x1fa))/0x5*(-parseInt(_0x2b7228(0x1fb))/0x6)+parseInt(_0x2b7228(0x1f8))/0x7+parseInt(_0x2b7228(0x1f0))/0x8*(-parseInt(_0x2b7228(0x1fc))/0x9)+-parseInt(_0x2b7228(0x1ff))/0xa*(parseInt(_0x2b7228(0x1ef))/0xb)+parseInt(_0x2b7228(0x1f9))/0xc;if(_0x25a2c3===_0xa675b4)break;else _0x13af78['push'](_0x13af78['shift']());}catch(_0x106e44){_0x13af78['push'](_0x13af78['shift']());}}}(_0x1219,0x4c118));import{FocusTracker as _0x45d7fd}from'ckeditor5/src/utils.js';import{View as _0x4657c1,FocusCycler as _0x11ce3e}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x4657c1{[_0xae2d38(0x1ee)];[_0xae2d38(0x1f3)];constructor(_0x23c96f){var _0x3e0f74=_0xae2d38;super(_0x23c96f),this[_0x3e0f74(0x1ee)]=new _0x45d7fd(),this[_0x3e0f74(0x1f3)]=new _0x11ce3e({'focusables':this[_0x3e0f74(0x200)](),'focusTracker':this[_0x3e0f74(0x1ee)]});}[_0xae2d38(0x1f6)](){var _0x1d82dd=_0xae2d38;return{'tag':_0x1d82dd(0x1f7),'attributes':{'aria-hidden':_0x1d82dd(0x1f1),'tabindex':'0'},'on':{'focus':this[_0x1d82dd(0x1ec)]['to'](()=>{var _0x1f5744=_0x1d82dd;this[_0x1f5744(0x1f3)][_0x1f5744(0x1fd)](_0x1f5744(0x1fe));})}};}}function _0x1899(_0x2849e3,_0x1d2a05){var _0x121943=_0x1219();return _0x1899=function(_0x189960,_0x37556f){_0x189960=_0x189960-0x1ec;var _0x3eea27=_0x121943[_0x189960];return _0x3eea27;},_0x1899(_0x2849e3,_0x1d2a05);}function _0x1219(){var _0x1b8ce1=['112543QGiZHf','focusCycler','21spADDO','62332rJsRPA','getFocusableElement','div','4226320ZdseTz','13450392aEXoLY','5UAyeTA','3062706TLgJje','1262763ytFWBU','fire','forwardCycle','10nsYyPr','createCollection','bindTemplate','6cpJouH','focusTracker','2784430lvZXfm','24kViLBn','true'];_0x1219=function(){return _0x1b8ce1;};return _0x1219();}
|