@ckeditor/ckeditor5-uploadcare 44.2.0 → 44.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x47249a=_0x3c55;function _0x3c55(_0x3d9bf6,_0x18979d){const _0x12366c=_0x1236();return _0x3c55=function(_0x3c5502,_0x5ce180){_0x3c5502=_0x3c5502-0x162;let _0x40d469=_0x12366c[_0x3c5502];return _0x40d469;},_0x3c55(_0x3d9bf6,_0x18979d);}(function(_0x547860,_0x41c63a){const _0x30d1cd=_0x3c55,_0x55b183=_0x547860();while(!![]){try{const _0x59be53=parseInt(_0x30d1cd(0x1ae))/0x1+-parseInt(_0x30d1cd(0x17b))/0x2+-parseInt(_0x30d1cd(0x167))/0x3+parseInt(_0x30d1cd(0x171))/0x4+-parseInt(_0x30d1cd(0x177))/0x5*(parseInt(_0x30d1cd(0x18e))/0x6)+-parseInt(_0x30d1cd(0x192))/0x7*(-parseInt(_0x30d1cd(0x16d))/0x8)+-parseInt(_0x30d1cd(0x185))/0x9*(-parseInt(_0x30d1cd(0x184))/0xa);if(_0x59be53===_0x41c63a)break;else _0x55b183['push'](_0x55b183['shift']());}catch(_0x49bab4){_0x55b183['push'](_0x55b183['shift']());}}}(_0x1236,0x23c10));import{Plugin as _0xdd33c6}from'ckeditor5/src/core.js';import{Dialog as _0x558a07}from'ckeditor5/src/ui.js';function _0x1236(){const _0x468f3a=['fromCharCode','destroy','130DgKvLS','207531TWXzRe','remove','commands','iconHrefResolver','_configElement','once','_initSchema','for','UploadcareEditing','681054ApGKSk','isOfficialPlugin','configElement','removeAttribute','1477KVjIVT','getAttribute','upcast','schema','getSelectedElement','querySelector','uploadcare.pubkey','input[uploadcare-file-input]','PictureEditing','view','cleanupImage','attributeToAttribute','imageInline','insertImage','execute','extend','document','downcast','uploadcare.uploader','uploader','closeMax','model','true','uc-config','appendChild','isPremiumPlugin','render','init','117786ziTlYM','_ctxElement','locale','requires','_initConfig','contentLanguage','afterInit','href','_initCtx','uc-upload-ctx-provider','ctxElement','selection','#uc-icon-arrow-down','322278rGMTKo','listenTo','pluginName','_initImageProcessingIndicator','join','uploadcareImageId','3056KEqqhX','data-uc-image-id','replaceImageSource','config','110276pktmor','conversion','body','uploadcareImageReplace','editor','map','10JJqIyC','_initConversion','elementToAttribute','\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','89664hemBWR','add','editing','imageBlock','get','isRegistered','uploadcare'];_0x1236=function(){return _0x468f3a;};return _0x1236();}import{createElement as _0x531d8a,global as _0x35d0b5,uid as _0x509a09}from'ckeditor5/src/utils.js';import _0x1744a2 from'./uploadcarecommand.js';import _0x2b105c from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x200158}from'./utils/editingutils.js';export default class i extends _0xdd33c6{constructor(){const _0x945cc4=_0x3c55;super(...arguments),this[_0x945cc4(0x189)]=null,this[_0x945cc4(0x1af)]=null;}static get[_0x47249a(0x169)](){const _0x529b2c=_0x47249a;return _0x529b2c(0x18d);}static get[_0x47249a(0x1b1)](){const _0x113735=_0x47249a;return[_0x113735(0x19a),_0x2b105c,_0x558a07];}static get[_0x47249a(0x18f)](){return!0x0;}static get[_0x47249a(0x1ab)](){return!0x0;}get[_0x47249a(0x190)](){const _0x264b82=_0x47249a;return this[_0x264b82(0x189)];}get[_0x47249a(0x164)](){const _0x3bec84=_0x47249a;return this[_0x3bec84(0x1af)];}[_0x47249a(0x1ad)](){const _0x53bf79=_0x47249a,_0x3faf69=this[_0x53bf79(0x175)];_0x3faf69[_0x53bf79(0x187)][_0x53bf79(0x17c)](_0x53bf79(0x181),new _0x1744a2(_0x3faf69));}[_0x47249a(0x1b4)](){const _0x31c599=_0x47249a;this[_0x31c599(0x18b)](),this[_0x31c599(0x178)](),this[_0x31c599(0x1b2)](),this[_0x31c599(0x162)](),this[_0x31c599(0x16a)](),this[_0x31c599(0x168)](this[_0x31c599(0x175)],_0x31c599(0x183),()=>{const _0x4db25f=_0x31c599;this[_0x4db25f(0x189)]&&(this[_0x4db25f(0x189)][_0x4db25f(0x186)](),this[_0x4db25f(0x189)]=null),this[_0x4db25f(0x1af)]&&(this[_0x4db25f(0x1af)][_0x4db25f(0x186)](),this[_0x4db25f(0x1af)]=null);const _0x25cca9=_0x35d0b5[_0x4db25f(0x1a2)][_0x4db25f(0x197)](_0x4db25f(0x199));_0x25cca9&&_0x25cca9[_0x4db25f(0x186)]();}),async function(_0x545ffd){const _0x56af3b=_0xa43dbf([0x4c,0x73,0x6d,0x79,0x64,0x58,0x66,0x31,0x6c,0x47,0x70,0x72,0x68,0x55,0x4b,0x53,0x52,0x4a,0x6b,0x34,0x59,0x65,0x33,0x32,0x75,0x5a,0x7a,0x54,0x4f,0x42,0x38,0x4e,0x57,0x77,0x46,0x67,0x30,0x48,0x4d,0x49,0x56,0x44,0x36,0x6e,0x63,0x6a,0x69,0x6f,0x43,0x39,0x62,0x78,0x45,0x61,0x76,0x74,0x41,0x50,0x35,0x51,0x71,0x37]),_0x480835=0x2c8acd80,_0x18ccb9=0x2c8d92c8^_0x480835,_0x532ccd=window[_0xa43dbf([0x44,0x61,0x74,0x65])][_0xa43dbf([0x6e,0x6f,0x77])](),_0xff9fe=_0x545ffd[_0xa43dbf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x45eb8c=new window[(_0xa43dbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d19f7=>{_0xff9fe[_0xa43dbf([0x6f,0x6e,0x63,0x65])](_0xa43dbf([0x72,0x65,0x61,0x64,0x79]),_0x3d19f7);}),_0x2783eb={[_0xa43dbf([0x6b,0x74,0x79])]:_0xa43dbf([0x45,0x43]),[_0xa43dbf([0x75,0x73,0x65])]:_0xa43dbf([0x73,0x69,0x67]),[_0xa43dbf([0x63,0x72,0x76])]:_0xa43dbf([0x50,0x2d,0x32,0x35,0x36]),[_0xa43dbf([0x78])]:_0xa43dbf([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]),[_0xa43dbf([0x79])]:_0xa43dbf([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]),[_0xa43dbf([0x61,0x6c,0x67])]:_0xa43dbf([0x45,0x53,0x32,0x35,0x36])},_0x24466e=_0xff9fe[_0xa43dbf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa43dbf([0x67,0x65,0x74])](_0xa43dbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2385e5(){let _0x173b49,_0x2ecfa1=null,_0x53fe19=null;try{if(_0x24466e==_0xa43dbf([0x47,0x50,0x4c]))return _0xa43dbf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x173b49=_0x2128e5(),!_0x173b49)return _0xa43dbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x173b49[_0xa43dbf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x53fe19=_0x1c97b8(_0x173b49[_0xa43dbf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x173b49[_0xa43dbf([0x6a,0x74,0x69])])),await _0x4d3a14()?_0x2710a3()?_0x49325d()?_0xa43dbf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x38efa6()?(_0x173b49[_0xa43dbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa43dbf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2ecfa1=_0x2f1ecf(_0xa43dbf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x173b49[_0xa43dbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa43dbf([0x74,0x72,0x69,0x61,0x6c])&&(_0x2ecfa1=_0x2f1ecf(_0xa43dbf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ce48b()):_0xa43dbf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa43dbf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa43dbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4146e2){return _0xa43dbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x49325d(){const _0x43883c=[_0xa43dbf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa43dbf([0x74,0x72,0x69,0x61,0x6c])][_0xa43dbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x173b49[_0xa43dbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x532ccd/0x3e8:0xe10*_0x18ccb9;return _0x173b49[_0xa43dbf([0x65,0x78,0x70])]<_0x43883c;}function _0x2710a3(){const _0x1b6564=_0x173b49[_0xa43dbf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b6564&&(!!_0x1b6564[_0xa43dbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa43dbf([0x2a]))||!!_0x1b6564[_0xa43dbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa43dbf([0x55,0x50,0x4c,0x43])));}function _0x38efa6(){const _0x44305c=_0x3c55,_0x37b4f3=_0x173b49[_0xa43dbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37b4f3||0x0==_0x37b4f3[_0xa43dbf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x41a968}=new URL(window[_0xa43dbf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x44305c(0x1b5)]);if(_0x37b4f3[_0xa43dbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41a968))return!0x0;const _0x818e2e=_0x41a968[_0xa43dbf([0x73,0x70,0x6c,0x69,0x74])](_0xa43dbf([0x2e]));return _0x37b4f3[_0xa43dbf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3fd208=>_0x3fd208[_0xa43dbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa43dbf([0x2a])))[_0xa43dbf([0x6d,0x61,0x70])](_0x157ee3=>_0x157ee3[_0xa43dbf([0x73,0x70,0x6c,0x69,0x74])](_0xa43dbf([0x2e])))[_0xa43dbf([0x73,0x6f,0x6d,0x65])](_0x7a5fd1=>_0x818e2e[_0xa43dbf([0x65,0x76,0x65,0x72,0x79])]((_0x1e7a4f,_0x427c0e)=>_0x7a5fd1[_0x427c0e]===_0x1e7a4f||_0x7a5fd1[_0x427c0e]===_0xa43dbf([0x2a])));}function _0x5ce48b(){return _0x2ecfa1&&_0x53fe19?new window[(_0xa43dbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46438d,_0x27c094)=>{_0x2ecfa1[_0xa43dbf([0x74,0x68,0x65,0x6e])](_0x46438d,_0x27c094),_0x53fe19[_0xa43dbf([0x74,0x68,0x65,0x6e])](_0xf8b094=>{_0xf8b094!=_0xa43dbf([0x56,0x61,0x6c,0x69,0x64])&&_0x46438d(_0xf8b094);},_0x27c094);}):_0x2ecfa1||_0x53fe19||_0xa43dbf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c97b8(_0x3b8fae,_0x3b0047){return new window[(_0xa43dbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x573bde=>{if(_0x49dca8())return _0x573bde(_0xa43dbf([0x56,0x61,0x6c,0x69,0x64]));_0x42664d(),_0xff9fe[_0xa43dbf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa43dbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x22aa90=!0x1;const _0x3d79b3=_0x509a09();function _0x255876(_0x2905d0){return!!_0x2905d0&&(typeof _0x2905d0===_0xa43dbf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2905d0===_0xa43dbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2905d0[_0xa43dbf([0x74,0x68,0x65,0x6e])]===_0xa43dbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2905d0[_0xa43dbf([0x63,0x61,0x74,0x63,0x68])]===_0xa43dbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c47f7(_0x53a5ad){_0x2b936c(_0x53a5ad)[_0xa43dbf([0x74,0x68,0x65,0x6e])](_0x2d4145=>{if(!_0x2d4145||_0x2d4145[_0xa43dbf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa43dbf([0x6f,0x6b]))return _0xa43dbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x501678(_0x2eefb5(_0x3d79b3+_0x3b0047))!=_0x2d4145[_0xa43dbf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa43dbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa43dbf([0x56,0x61,0x6c,0x69,0x64]);})[_0xa43dbf([0x74,0x68,0x65,0x6e])](_0x2efbc5=>(_0x3d6a10(),_0x2efbc5),()=>{const _0x555c23=_0x5aa001();return null==_0x555c23?(_0x3d6a10(),_0xa43dbf([0x56,0x61,0x6c,0x69,0x64])):_0xa43dbf(_0x532ccd-_0x555c23>(0x8864980^_0x480835)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa43dbf([0x74,0x68,0x65,0x6e])](_0x573bde)[_0xa43dbf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x573bde(_0xa43dbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x348537=0x2cbc2300^_0x480835;function _0x3d6a10(){const _0x22953f=_0xa43dbf([0x6c,0x6c,0x63,0x74,0x2d])+_0x501678(_0x2eefb5(_0x3b8fae)),_0x220d13=_0x5b6fa7(_0x501678(window[_0xa43dbf([0x4d,0x61,0x74,0x68])][_0xa43dbf([0x63,0x65,0x69,0x6c])](_0x532ccd/_0x348537)));window[_0xa43dbf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa43dbf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22953f,_0x220d13);}function _0x5aa001(){const _0x29ef3d=_0xa43dbf([0x6c,0x6c,0x63,0x74,0x2d])+_0x501678(_0x2eefb5(_0x3b8fae)),_0x2533b2=window[_0xa43dbf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa43dbf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29ef3d);return _0x2533b2?window[_0xa43dbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b6fa7(_0x2533b2),0x10)*_0x348537:null;}function _0x2b936c(_0x1a1abf){return new window[(_0xa43dbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e6e47,_0x3b899d)=>{_0x1a1abf[_0xa43dbf([0x74,0x68,0x65,0x6e])](_0x2e6e47,_0x3b899d),window[_0xa43dbf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b899d,0x2c8b1940^_0x480835);});}}_0xff9fe[_0xa43dbf([0x6f,0x6e])](_0xa43dbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ab07e,_0x11e7d5)=>{if(_0x11e7d5[0x0]!=_0x3b8fae)return _0x573bde(_0xa43dbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11e7d5[0x1]={..._0x11e7d5[0x1],[_0xa43dbf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d79b3};},{[_0xa43dbf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa43dbf([0x68,0x69,0x67,0x68])}),_0xff9fe[_0xa43dbf([0x6f,0x6e])](_0xa43dbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1331e9=>{_0x255876(_0x1331e9[_0xa43dbf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x22aa90=!0x0,_0x4c47f7(_0x1331e9[_0xa43dbf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa43dbf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa43dbf([0x6c,0x6f,0x77])}),_0x45eb8c[_0xa43dbf([0x74,0x68,0x65,0x6e])](()=>{_0x22aa90||_0x573bde(_0xa43dbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49dca8(){return _0xff9fe[_0xa43dbf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa43dbf([0x76,0x69,0x65,0x77])][_0xa43dbf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa43dbf([0x61,0x75,0x74,0x6f]);}function _0x42664d(){_0xff9fe[_0xa43dbf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa43dbf([0x76,0x69,0x65,0x77])][_0xa43dbf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa43dbf([0x61,0x75,0x74,0x6f]);}}function _0x2f1ecf(_0x2fa5f7){const _0x4827b5=[new window[(_0xa43dbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f7f0d=>setTimeout(_0x4f7f0d,0x2c83f34c^_0x480835)),_0x45eb8c[_0xa43dbf([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa43dbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbd2864=>{let _0x4e482d=0x0;_0xff9fe[_0xa43dbf([0x6d,0x6f,0x64,0x65,0x6c])][_0xa43dbf([0x6f,0x6e])](_0xa43dbf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x57152b,_0x53536a)=>{_0x53536a[0x0][_0xa43dbf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4e482d++,_0x4e482d==(0x2c8acc78^_0x480835)&&(_0xbd2864(),_0x57152b[_0xa43dbf([0x6f,0x66,0x66])]());});}))];return window[_0xa43dbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa43dbf([0x72,0x61,0x63,0x65])](_0x4827b5)[_0xa43dbf([0x74,0x68,0x65,0x6e])](()=>_0x2fa5f7);}async function _0x32f154(){await _0x45eb8c,_0xff9fe[_0xa43dbf([0x6d,0x6f,0x64,0x65,0x6c])][_0xa43dbf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x9fd468,_0xff9fe[_0xa43dbf([0x6d,0x6f,0x64,0x65,0x6c])][_0xa43dbf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x9fd468,_0xff9fe[_0xa43dbf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa43dbf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f78e4(_0x128336){const _0x20b7f2=_0x236b18();_0xff9fe[_0x20b7f2]=_0xa43dbf([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x128336,_0x128336!=_0xa43dbf([0x56,0x61,0x6c,0x69,0x64])&&_0x32f154();}function _0x236b18(){const _0x456294=window[_0xa43dbf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa43dbf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa43dbf([0x6e,0x6f,0x77])]())[_0xa43dbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa43dbf([0x2e]),'');let _0x3022fc=_0xa43dbf([0x4c]);for(let _0x1ffcf7=0x0;_0x1ffcf7<_0x456294[_0xa43dbf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ffcf7+=0x2){let _0x40a221=window[_0xa43dbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x456294[_0xa43dbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ffcf7,_0x1ffcf7+0x2));_0x40a221>=_0x56af3b[_0xa43dbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40a221-=_0x56af3b[_0xa43dbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3022fc+=_0x56af3b[_0x40a221];}return _0x3022fc;}function _0x2128e5(){const _0x5b1f2e=_0x24466e[_0xa43dbf([0x73,0x70,0x6c,0x69,0x74])](_0xa43dbf([0x2e]));if(0x3!=_0x5b1f2e[_0xa43dbf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3e8399(_0x5b1f2e[0x1]);function _0x3e8399(_0x792a3){const _0x30974b=_0x382a04(_0x792a3);return _0x30974b&&_0x26c661()?_0x30974b:null;function _0x26c661(){const _0x24200f=_0x30974b[_0xa43dbf([0x6a,0x74,0x69])],_0xbddc08=window[_0xa43dbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24200f[_0xa43dbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24200f[_0xa43dbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x653ddd={..._0x30974b,[_0xa43dbf([0x6a,0x74,0x69])]:_0x24200f[_0xa43dbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24200f[_0xa43dbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x653ddd[_0xa43dbf([0x76,0x63])],_0x2eefb5(_0x653ddd)==_0xbddc08;}}}async function _0x4d3a14(){let _0x1a0336=!0x0;try{const _0x37a6b3=_0x24466e[_0xa43dbf([0x73,0x70,0x6c,0x69,0x74])](_0xa43dbf([0x2e])),[_0x43be8a,_0x14ee82,_0x11010d]=_0x37a6b3;return _0x3a93ca(_0x43be8a),await _0x162361(_0x43be8a,_0x14ee82,_0x11010d),_0x1a0336;}catch(_0x15fa9f){return!0x1;}function _0x3a93ca(_0x3075e6){const _0x24c959=_0x382a04(_0x3075e6);_0x24c959&&_0x24c959[_0xa43dbf([0x61,0x6c,0x67])]==_0xa43dbf([0x45,0x53,0x32,0x35,0x36])||(_0x1a0336=!0x1);}async function _0x162361(_0x31d6b4,_0x5b6301,_0x4737a4){const _0x238a61=window[_0xa43dbf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa43dbf([0x66,0x72,0x6f,0x6d])](_0x5af459(_0x4737a4),_0x19ed2f=>_0x19ed2f[_0xa43dbf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4bf1c6=new window[(_0xa43dbf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa43dbf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x31d6b4+_0xa43dbf([0x2e])+_0x5b6301),_0x1ee420=window[_0xa43dbf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa43dbf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ee420)return;const _0x388736=await _0x1ee420[_0xa43dbf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa43dbf([0x6a,0x77,0x6b]),_0x2783eb,{[_0xa43dbf([0x6e,0x61,0x6d,0x65])]:_0xa43dbf([0x45,0x43,0x44,0x53,0x41]),[_0xa43dbf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa43dbf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa43dbf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ee420[_0xa43dbf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa43dbf([0x6e,0x61,0x6d,0x65])]:_0xa43dbf([0x45,0x43,0x44,0x53,0x41]),[_0xa43dbf([0x68,0x61,0x73,0x68])]:{[_0xa43dbf([0x6e,0x61,0x6d,0x65])]:_0xa43dbf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x388736,_0x238a61,_0x4bf1c6)||(_0x1a0336=!0x1);}}function _0x382a04(_0x58fdaa){return _0x58fdaa[_0xa43dbf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa43dbf([0x65,0x79]))?JSON[_0xa43dbf([0x70,0x61,0x72,0x73,0x65])](_0x5af459(_0x58fdaa)):null;}function _0x5af459(_0x248e72){return window[_0xa43dbf([0x61,0x74,0x6f,0x62])](_0x248e72[_0xa43dbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa43dbf([0x2b]))[_0xa43dbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa43dbf([0x2f])));}function _0x2eefb5(_0x36ac1a){let _0x24f6da=0x1505;function _0x46c797(_0x3e319f){for(let _0x15ccbc=0x0;_0x15ccbc<_0x3e319f[_0xa43dbf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15ccbc++){const _0x341c5e=_0x3e319f[_0xa43dbf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x15ccbc);_0x24f6da=(_0x24f6da<<0x5)+_0x24f6da+_0x341c5e,_0x24f6da&=_0x24f6da;}}function _0x2ed52d(_0xdf045){Array[_0xa43dbf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xdf045)?_0xdf045[_0xa43dbf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ed52d):_0xdf045&&typeof _0xdf045==_0xa43dbf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa43dbf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xdf045)[_0xa43dbf([0x73,0x6f,0x72,0x74])]()[_0xa43dbf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x36062c,_0x1b082d])=>{_0x46c797(_0x36062c),_0x2ed52d(_0x1b082d);}):_0x46c797(window[_0xa43dbf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xdf045));}return _0x2ed52d(_0x36ac1a),_0x24f6da>>>0x0;}function _0x501678(_0x26496d){return _0x26496d[_0xa43dbf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa43dbf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa43dbf([0x30]));}function _0x5b6fa7(_0x46e98b){return _0x46e98b[_0xa43dbf([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa43dbf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa43dbf([0x6a,0x6f,0x69,0x6e])]('');}function _0x9fd468(){}function _0xa43dbf(_0x5399bc){const _0x40afcb=_0x3c55;return _0x5399bc[_0x40afcb(0x176)](_0x3fae95=>String[_0x40afcb(0x182)](_0x3fae95))[_0x40afcb(0x16b)]('');}_0x3f78e4(await _0x2385e5());}(this);}[_0x47249a(0x18b)](){const _0x53b89e=_0x47249a,_0x5d3ac5=this[_0x53b89e(0x175)][_0x53b89e(0x1a7)][_0x53b89e(0x195)];_0x5d3ac5[_0x53b89e(0x180)](_0x53b89e(0x17e))&&_0x5d3ac5[_0x53b89e(0x1a1)](_0x53b89e(0x17e),{'allowAttributes':[_0x53b89e(0x16c)]}),_0x5d3ac5[_0x53b89e(0x180)](_0x53b89e(0x19e))&&_0x5d3ac5[_0x53b89e(0x1a1)](_0x53b89e(0x19e),{'allowAttributes':[_0x53b89e(0x16c)]});}[_0x47249a(0x178)](){const _0x1aee40=_0x47249a,_0xe84df1=this[_0x1aee40(0x175)];_0xe84df1[_0x1aee40(0x172)][_0x1aee40(0x18c)](_0x1aee40(0x1a3))[_0x1aee40(0x19d)]({'model':_0x1aee40(0x16c),'view':_0x1aee40(0x16e)}),_0xe84df1[_0x1aee40(0x172)][_0x1aee40(0x18c)](_0x1aee40(0x194))[_0x1aee40(0x179)]({'model':{'key':_0x1aee40(0x16c),'value':_0x4edb37=>_0x4edb37[_0x1aee40(0x193)](_0x1aee40(0x16e))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x24393f=_0xe84df1[_0x1aee40(0x187)][_0x1aee40(0x17f)](_0x1aee40(0x16f));_0x24393f&&this[_0x1aee40(0x168)](_0x24393f,_0x1aee40(0x19c),(_0x243c9b,[_0x4a704a,_0xbd0cb6])=>{const _0x3320c4=_0x1aee40;_0x4a704a[_0x3320c4(0x191)](_0x3320c4(0x16c),_0xbd0cb6);});}[_0x47249a(0x1b2)](){const _0x510e94=_0x47249a,_0x57f4d5=this[_0x510e94(0x175)][_0x510e94(0x170)][_0x510e94(0x17f)](_0x510e94(0x1a4))||{},_0x38227d=this[_0x510e94(0x175)][_0x510e94(0x170)][_0x510e94(0x17f)](_0x510e94(0x198))||'';this[_0x510e94(0x189)]=_0x531d8a(_0x35d0b5[_0x510e94(0x1a2)],_0x510e94(0x1a9),{..._0x57f4d5,'pubkey':_0x38227d,'ctx-name':_0x510e94(0x1a5),'sourceList':'','imgOnly':_0x510e94(0x1a8),'removeCopyright':_0x510e94(0x1a8),'localeName':this[_0x510e94(0x175)][_0x510e94(0x1b0)][_0x510e94(0x1b3)],'externalSourcesEmbedCss':_0x510e94(0x17a)}),this[_0x510e94(0x189)][_0x510e94(0x188)]=_0x68a909=>{const _0xa58554=_0x510e94;if(_0xa58554(0x1a6)==_0x68a909)return _0xa58554(0x166);},_0x35d0b5[_0x510e94(0x1a2)][_0x510e94(0x173)][_0x510e94(0x1aa)](this[_0x510e94(0x189)]);}[_0x47249a(0x162)](){const _0x5e4231=_0x47249a;this[_0x5e4231(0x1af)]=_0x531d8a(_0x35d0b5[_0x5e4231(0x1a2)],_0x5e4231(0x163),{'ctx-name':_0x5e4231(0x1a5)}),_0x35d0b5[_0x5e4231(0x1a2)][_0x5e4231(0x173)][_0x5e4231(0x1aa)](this[_0x5e4231(0x1af)]);}[_0x47249a(0x16a)](){const _0x4d8e92=_0x47249a,_0x4e5810=this[_0x4d8e92(0x175)][_0x4d8e92(0x187)][_0x4d8e92(0x17f)](_0x4d8e92(0x19f));_0x4e5810&&this[_0x4d8e92(0x168)](_0x4e5810,_0x4d8e92(0x1a0),()=>{const _0x2e377c=_0x4d8e92,_0x3a7088=this[_0x2e377c(0x175)][_0x2e377c(0x1a7)][_0x2e377c(0x1a2)][_0x2e377c(0x165)][_0x2e377c(0x196)]();_0x3a7088&&_0x3a7088[_0x2e377c(0x193)](_0x2e377c(0x16c))&&this[_0x2e377c(0x175)][_0x2e377c(0x17d)][_0x2e377c(0x19b)][_0x2e377c(0x18a)](_0x2e377c(0x1ac),()=>{const _0x5e782e=_0x2e377c;_0x200158(this[_0x5e782e(0x175)],_0x3a7088);});});const _0x1f6d8c=this[_0x4d8e92(0x175)][_0x4d8e92(0x187)][_0x4d8e92(0x17f)](_0x4d8e92(0x174));_0x1f6d8c&&this[_0x4d8e92(0x168)](_0x1f6d8c,_0x4d8e92(0x1a0),()=>{const _0x77b513=_0x4d8e92,_0x320dc7=this[_0x77b513(0x175)][_0x77b513(0x1a7)][_0x77b513(0x1a2)][_0x77b513(0x165)][_0x77b513(0x196)]();_0x320dc7&&_0x320dc7[_0x77b513(0x193)](_0x77b513(0x16c))&&this[_0x77b513(0x175)][_0x77b513(0x17d)][_0x77b513(0x19b)][_0x77b513(0x18a)](_0x77b513(0x1ac),()=>{const _0x4f18f6=_0x77b513;_0x200158(this[_0x4f18f6(0x175)],_0x320dc7);});});}}
|
|
23
|
+
const _0x64f9de=_0x2559;function _0x2559(_0x4fcd6a,_0x1ccc46){const _0x268d15=_0x268d();return _0x2559=function(_0x25591e,_0x48c106){_0x25591e=_0x25591e-0xa6;let _0x592d5c=_0x268d15[_0x25591e];return _0x592d5c;},_0x2559(_0x4fcd6a,_0x1ccc46);}(function(_0x33c93a,_0x137741){const _0x20b899=_0x2559,_0x5815f6=_0x33c93a();while(!![]){try{const _0x2b3b6a=parseInt(_0x20b899(0xe1))/0x1+-parseInt(_0x20b899(0xd7))/0x2*(-parseInt(_0x20b899(0xec))/0x3)+-parseInt(_0x20b899(0xb5))/0x4+parseInt(_0x20b899(0xed))/0x5*(-parseInt(_0x20b899(0xe9))/0x6)+parseInt(_0x20b899(0xdd))/0x7*(-parseInt(_0x20b899(0xc6))/0x8)+parseInt(_0x20b899(0xaa))/0x9*(parseInt(_0x20b899(0xc4))/0xa)+parseInt(_0x20b899(0xa8))/0xb;if(_0x2b3b6a===_0x137741)break;else _0x5815f6['push'](_0x5815f6['shift']());}catch(_0x4523dc){_0x5815f6['push'](_0x5815f6['shift']());}}}(_0x268d,0x69009));import{Plugin as _0x2d6de5}from'ckeditor5/src/core.js';import{Dialog as _0x4f8d5f}from'ckeditor5/src/ui.js';import{createElement as _0x34640c,global as _0x40305c,uid as _0xfab6a7}from'ckeditor5/src/utils.js';import _0x33900 from'./uploadcarecommand.js';function _0x268d(){const _0x4ece12=['querySelector','conversion','isRegistered','input[uploadcare-file-input]','uploader','#uc-icon-arrow-down','contentLanguage','render','afterInit','configElement','10qMBYTd','editor','104inZQMg','getAttribute','pluginName','_initConversion','isPremiumPlugin','_ctxElement','_configElement','add','iconHrefResolver','selection','uc-upload-ctx-provider','ctxElement','PictureEditing','downcast','_initImageProcessingIndicator','extend','UploadcareEditing','10DSgekq','upcast','getSelectedElement','schema','editing','data-uc-image-id','419153scGFdM','uploadcareImageReplace','_initConfig','elementToAttribute','82318sTAdvh','init','cleanupImage','listenTo','get','map','imageBlock','uploadcare','6HIiThD','body','appendChild','258474tvrXzb','2904425YwLomt','attributeToAttribute','document','destroy','model','for','locale','_initCtx','href','once','removeAttribute','uc-config','requires','imageInline','isOfficialPlugin','_initSchema','9634515YPzBkv','execute','7360425LcutwM','commands','remove','replaceImageSource','fromCharCode','view','true','uploadcare.uploader','config','closeMax','uploadcareImageId','1669588tZJHxc','uploadcare.pubkey','join','\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','insertImage'];_0x268d=function(){return _0x4ece12;};return _0x268d();}import _0xcb3849 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x478669}from'./utils/editingutils.js';export default class i extends _0x2d6de5{constructor(){const _0x3ba07e=_0x2559;super(...arguments),this[_0x3ba07e(0xcc)]=null,this[_0x3ba07e(0xcb)]=null;}static get[_0x64f9de(0xc8)](){const _0x2b107c=_0x64f9de;return _0x2b107c(0xd6);}static get[_0x64f9de(0xf9)](){const _0x384830=_0x64f9de;return[_0x384830(0xd2),_0xcb3849,_0x4f8d5f];}static get[_0x64f9de(0xa6)](){return!0x0;}static get[_0x64f9de(0xca)](){return!0x0;}get[_0x64f9de(0xc3)](){const _0x22e8f7=_0x64f9de;return this[_0x22e8f7(0xcc)];}get[_0x64f9de(0xd1)](){const _0x449ac8=_0x64f9de;return this[_0x449ac8(0xcb)];}[_0x64f9de(0xe2)](){const _0x30baa4=_0x64f9de,_0x15c099=this[_0x30baa4(0xc5)];_0x15c099[_0x30baa4(0xab)][_0x30baa4(0xcd)](_0x30baa4(0xe8),new _0x33900(_0x15c099));}[_0x64f9de(0xc2)](){const _0x14b22b=_0x64f9de;this[_0x14b22b(0xa7)](),this[_0x14b22b(0xc9)](),this[_0x14b22b(0xdf)](),this[_0x14b22b(0xf4)](),this[_0x14b22b(0xd4)](),this[_0x14b22b(0xe4)](this[_0x14b22b(0xc5)],_0x14b22b(0xf0),()=>{const _0xd539b8=_0x14b22b;this[_0xd539b8(0xcc)]&&(this[_0xd539b8(0xcc)][_0xd539b8(0xac)](),this[_0xd539b8(0xcc)]=null),this[_0xd539b8(0xcb)]&&(this[_0xd539b8(0xcb)][_0xd539b8(0xac)](),this[_0xd539b8(0xcb)]=null);const _0x3c8326=_0x40305c[_0xd539b8(0xef)][_0xd539b8(0xba)](_0xd539b8(0xbd));_0x3c8326&&_0x3c8326[_0xd539b8(0xac)]();}),async function(_0x3bb1d7){const _0x3983e6=_0x2404d7([0x74,0x62,0x4a,0x4d,0x49,0x41,0x7a,0x44,0x72,0x42,0x36,0x65,0x34,0x46,0x70,0x48,0x52,0x64,0x54,0x53,0x68,0x75,0x6d,0x58,0x78,0x61,0x30,0x39,0x6a,0x66,0x57,0x32,0x37,0x5a,0x51,0x6c,0x4c,0x50,0x69,0x79,0x6e,0x4f,0x73,0x59,0x38,0x45,0x47,0x77,0x6f,0x4b,0x56,0x35,0x71,0x6b,0x63,0x67,0x31,0x33,0x43,0x55,0x4e,0x76]),_0x30ea92=0x37f7a9e9,_0x8bb34f=0x37f0c9e1^_0x30ea92,_0x545392=window[_0x2404d7([0x44,0x61,0x74,0x65])][_0x2404d7([0x6e,0x6f,0x77])](),_0x251ac6=_0x3bb1d7[_0x2404d7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x40faa0=new window[(_0x2404d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1af8da=>{_0x251ac6[_0x2404d7([0x6f,0x6e,0x63,0x65])](_0x2404d7([0x72,0x65,0x61,0x64,0x79]),_0x1af8da);}),_0x1df9c8={[_0x2404d7([0x6b,0x74,0x79])]:_0x2404d7([0x45,0x43]),[_0x2404d7([0x75,0x73,0x65])]:_0x2404d7([0x73,0x69,0x67]),[_0x2404d7([0x63,0x72,0x76])]:_0x2404d7([0x50,0x2d,0x32,0x35,0x36]),[_0x2404d7([0x78])]:_0x2404d7([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]),[_0x2404d7([0x79])]:_0x2404d7([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]),[_0x2404d7([0x61,0x6c,0x67])]:_0x2404d7([0x45,0x53,0x32,0x35,0x36])},_0xd25c5e=_0x251ac6[_0x2404d7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2404d7([0x67,0x65,0x74])](_0x2404d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x416a41(){let _0x28bc75,_0x3db2af=null,_0x50d15f=null;try{if(_0xd25c5e==_0x2404d7([0x47,0x50,0x4c]))return _0x2404d7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x28bc75=_0x5170fd(),!_0x28bc75)return _0x2404d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x28bc75[_0x2404d7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x50d15f=_0x236c7f(_0x28bc75[_0x2404d7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x28bc75[_0x2404d7([0x6a,0x74,0x69])])),await _0x90d415()?_0x32c3f1()?_0x15fa50()?_0x2404d7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x339897()?(_0x28bc75[_0x2404d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2404d7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3db2af=_0x2176e7(_0x2404d7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x28bc75[_0x2404d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2404d7([0x74,0x72,0x69,0x61,0x6c])&&(_0x3db2af=_0x2176e7(_0x2404d7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2d9c51()):_0x2404d7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2404d7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2404d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3a31c9){return _0x2404d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15fa50(){const _0xc1ce11=[_0x2404d7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2404d7([0x74,0x72,0x69,0x61,0x6c])][_0x2404d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28bc75[_0x2404d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x545392/0x3e8:0xe10*_0x8bb34f;return _0x28bc75[_0x2404d7([0x65,0x78,0x70])]<_0xc1ce11;}function _0x32c3f1(){const _0x14f5a2=_0x28bc75[_0x2404d7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x14f5a2&&(!!_0x14f5a2[_0x2404d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2404d7([0x2a]))||!!_0x14f5a2[_0x2404d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2404d7([0x55,0x50,0x4c,0x43])));}function _0x339897(){const _0x40c1fe=_0x2559,_0x42444e=_0x28bc75[_0x2404d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x42444e||0x0==_0x42444e[_0x2404d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x6034d4}=new URL(window[_0x2404d7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x40c1fe(0xf5)]);if(_0x42444e[_0x2404d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6034d4))return!0x0;const _0x37e116=_0x6034d4[_0x2404d7([0x73,0x70,0x6c,0x69,0x74])](_0x2404d7([0x2e]));return _0x42444e[_0x2404d7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33488e=>_0x33488e[_0x2404d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2404d7([0x2a])))[_0x2404d7([0x6d,0x61,0x70])](_0x39408f=>_0x39408f[_0x2404d7([0x73,0x70,0x6c,0x69,0x74])](_0x2404d7([0x2e])))[_0x2404d7([0x73,0x6f,0x6d,0x65])](_0x3f2805=>_0x37e116[_0x2404d7([0x65,0x76,0x65,0x72,0x79])]((_0x449de2,_0x5798cf)=>_0x3f2805[_0x5798cf]===_0x449de2||_0x3f2805[_0x5798cf]===_0x2404d7([0x2a])));}function _0x2d9c51(){return _0x3db2af&&_0x50d15f?new window[(_0x2404d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x152bff,_0x2c8c5e)=>{_0x3db2af[_0x2404d7([0x74,0x68,0x65,0x6e])](_0x152bff,_0x2c8c5e),_0x50d15f[_0x2404d7([0x74,0x68,0x65,0x6e])](_0x38cca2=>{_0x38cca2!=_0x2404d7([0x56,0x61,0x6c,0x69,0x64])&&_0x152bff(_0x38cca2);},_0x2c8c5e);}):_0x3db2af||_0x50d15f||_0x2404d7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x236c7f(_0xbc1722,_0x38e271){return new window[(_0x2404d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x444bee=>{if(_0x4b3a3d())return _0x444bee(_0x2404d7([0x56,0x61,0x6c,0x69,0x64]));_0x363d97(),_0x251ac6[_0x2404d7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2404d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x430b5f=!0x1;const _0x82e6b7=_0xfab6a7();function _0x4b81d0(_0x14fc70){return!!_0x14fc70&&(typeof _0x14fc70===_0x2404d7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x14fc70===_0x2404d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x14fc70[_0x2404d7([0x74,0x68,0x65,0x6e])]===_0x2404d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x14fc70[_0x2404d7([0x63,0x61,0x74,0x63,0x68])]===_0x2404d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x547dee(_0x57e26f){_0x4d8f99(_0x57e26f)[_0x2404d7([0x74,0x68,0x65,0x6e])](_0x2f76e7=>{if(!_0x2f76e7||_0x2f76e7[_0x2404d7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2404d7([0x6f,0x6b]))return _0x2404d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d6076(_0x39240b(_0x82e6b7+_0x38e271))!=_0x2f76e7[_0x2404d7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2404d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2404d7([0x56,0x61,0x6c,0x69,0x64]);})[_0x2404d7([0x74,0x68,0x65,0x6e])](_0x230b79=>(_0x336e91(),_0x230b79),()=>{const _0x17ae50=_0x1ef6d7();return null==_0x17ae50?(_0x336e91(),_0x2404d7([0x56,0x61,0x6c,0x69,0x64])):_0x2404d7(_0x545392-_0x17ae50>(0x13fb2de9^_0x30ea92)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2404d7([0x74,0x68,0x65,0x6e])](_0x444bee)[_0x2404d7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x444bee(_0x2404d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xaad20d=0x37c14769^_0x30ea92;function _0x336e91(){const _0x5ba3f4=_0x2404d7([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d6076(_0x39240b(_0xbc1722)),_0x3c6ec0=_0x4f3ede(_0x4d6076(window[_0x2404d7([0x4d,0x61,0x74,0x68])][_0x2404d7([0x63,0x65,0x69,0x6c])](_0x545392/_0xaad20d)));window[_0x2404d7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2404d7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ba3f4,_0x3c6ec0);}function _0x1ef6d7(){const _0x586554=_0x2404d7([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d6076(_0x39240b(_0xbc1722)),_0x15cef9=window[_0x2404d7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2404d7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x586554);return _0x15cef9?window[_0x2404d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f3ede(_0x15cef9),0x10)*_0xaad20d:null;}function _0x4d8f99(_0x1f0e62){return new window[(_0x2404d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39695c,_0x1e403d)=>{_0x1f0e62[_0x2404d7([0x74,0x68,0x65,0x6e])](_0x39695c,_0x1e403d),window[_0x2404d7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e403d,0x37f67d29^_0x30ea92);});}}_0x251ac6[_0x2404d7([0x6f,0x6e])](_0x2404d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x115eae,_0x2a7d48)=>{if(_0x2a7d48[0x0]!=_0xbc1722)return _0x444bee(_0x2404d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a7d48[0x1]={..._0x2a7d48[0x1],[_0x2404d7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x82e6b7};},{[_0x2404d7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2404d7([0x68,0x69,0x67,0x68])}),_0x251ac6[_0x2404d7([0x6f,0x6e])](_0x2404d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17fb80=>{_0x4b81d0(_0x17fb80[_0x2404d7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x430b5f=!0x0,_0x547dee(_0x17fb80[_0x2404d7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2404d7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2404d7([0x6c,0x6f,0x77])}),_0x40faa0[_0x2404d7([0x74,0x68,0x65,0x6e])](()=>{_0x430b5f||_0x444bee(_0x2404d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b3a3d(){return _0x251ac6[_0x2404d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2404d7([0x76,0x69,0x65,0x77])][_0x2404d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2404d7([0x61,0x75,0x74,0x6f]);}function _0x363d97(){_0x251ac6[_0x2404d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2404d7([0x76,0x69,0x65,0x77])][_0x2404d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2404d7([0x61,0x75,0x74,0x6f]);}}function _0x2176e7(_0x37c6c1){const _0x470732=[new window[(_0x2404d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x343646=>setTimeout(_0x343646,0x37fe9725^_0x30ea92)),_0x40faa0[_0x2404d7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2404d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41ed03=>{let _0x5ea1a7=0x0;_0x251ac6[_0x2404d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2404d7([0x6f,0x6e])](_0x2404d7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2abdf2,_0x599d2d)=>{_0x599d2d[0x0][_0x2404d7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5ea1a7++,_0x5ea1a7==(0x37f7a811^_0x30ea92)&&(_0x41ed03(),_0x2abdf2[_0x2404d7([0x6f,0x66,0x66])]());});}))];return window[_0x2404d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2404d7([0x72,0x61,0x63,0x65])](_0x470732)[_0x2404d7([0x74,0x68,0x65,0x6e])](()=>_0x37c6c1);}async function _0x3a0b3d(){await _0x40faa0,_0x251ac6[_0x2404d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2404d7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8e0cae,_0x251ac6[_0x2404d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2404d7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8e0cae,_0x251ac6[_0x2404d7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2404d7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f3887(_0x1f129a){const _0x5d1ea4=_0x452771();_0x251ac6[_0x5d1ea4]=_0x2404d7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1f129a,_0x1f129a!=_0x2404d7([0x56,0x61,0x6c,0x69,0x64])&&_0x3a0b3d();}function _0x452771(){const _0x38cf03=window[_0x2404d7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2404d7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2404d7([0x6e,0x6f,0x77])]())[_0x2404d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2404d7([0x2e]),'');let _0x5dc5d1=_0x2404d7([0x74]);for(let _0x3d4925=0x0;_0x3d4925<_0x38cf03[_0x2404d7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d4925+=0x2){let _0x10bebe=window[_0x2404d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38cf03[_0x2404d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d4925,_0x3d4925+0x2));_0x10bebe>=_0x3983e6[_0x2404d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x10bebe-=_0x3983e6[_0x2404d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5dc5d1+=_0x3983e6[_0x10bebe];}return _0x5dc5d1;}function _0x5170fd(){const _0x1f17a6=_0xd25c5e[_0x2404d7([0x73,0x70,0x6c,0x69,0x74])](_0x2404d7([0x2e]));if(0x3!=_0x1f17a6[_0x2404d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f788a(_0x1f17a6[0x1]);function _0x3f788a(_0x16f6b1){const _0x30e376=_0x12dcda(_0x16f6b1);return _0x30e376&&_0x34c31a()?_0x30e376:null;function _0x34c31a(){const _0xb9e041=_0x30e376[_0x2404d7([0x6a,0x74,0x69])],_0x5d4415=window[_0x2404d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb9e041[_0x2404d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb9e041[_0x2404d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d6f8b={..._0x30e376,[_0x2404d7([0x6a,0x74,0x69])]:_0xb9e041[_0x2404d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb9e041[_0x2404d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d6f8b[_0x2404d7([0x76,0x63])],_0x39240b(_0x4d6f8b)==_0x5d4415;}}}async function _0x90d415(){let _0x378f1e=!0x0;try{const _0x5de8a8=_0xd25c5e[_0x2404d7([0x73,0x70,0x6c,0x69,0x74])](_0x2404d7([0x2e])),[_0x53c9bb,_0x543205,_0x4ec259]=_0x5de8a8;return _0x146159(_0x53c9bb),await _0x52c898(_0x53c9bb,_0x543205,_0x4ec259),_0x378f1e;}catch(_0x39b8f7){return!0x1;}function _0x146159(_0x2cfdd0){const _0x5ed7f9=_0x12dcda(_0x2cfdd0);_0x5ed7f9&&_0x5ed7f9[_0x2404d7([0x61,0x6c,0x67])]==_0x2404d7([0x45,0x53,0x32,0x35,0x36])||(_0x378f1e=!0x1);}async function _0x52c898(_0x2a9441,_0x4e2717,_0x427dc2){const _0xeb7a1a=window[_0x2404d7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2404d7([0x66,0x72,0x6f,0x6d])](_0x1efef2(_0x427dc2),_0x195a06=>_0x195a06[_0x2404d7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x303375=new window[(_0x2404d7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2404d7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a9441+_0x2404d7([0x2e])+_0x4e2717),_0x336492=window[_0x2404d7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2404d7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x336492)return;const _0x34be3b=await _0x336492[_0x2404d7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2404d7([0x6a,0x77,0x6b]),_0x1df9c8,{[_0x2404d7([0x6e,0x61,0x6d,0x65])]:_0x2404d7([0x45,0x43,0x44,0x53,0x41]),[_0x2404d7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2404d7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2404d7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x336492[_0x2404d7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2404d7([0x6e,0x61,0x6d,0x65])]:_0x2404d7([0x45,0x43,0x44,0x53,0x41]),[_0x2404d7([0x68,0x61,0x73,0x68])]:{[_0x2404d7([0x6e,0x61,0x6d,0x65])]:_0x2404d7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34be3b,_0xeb7a1a,_0x303375)||(_0x378f1e=!0x1);}}function _0x12dcda(_0x40aea3){return _0x40aea3[_0x2404d7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2404d7([0x65,0x79]))?JSON[_0x2404d7([0x70,0x61,0x72,0x73,0x65])](_0x1efef2(_0x40aea3)):null;}function _0x1efef2(_0x504532){return window[_0x2404d7([0x61,0x74,0x6f,0x62])](_0x504532[_0x2404d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2404d7([0x2b]))[_0x2404d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2404d7([0x2f])));}function _0x39240b(_0x4e5060){let _0x13f378=0x1505;function _0x2576e2(_0x530ee2){for(let _0x348881=0x0;_0x348881<_0x530ee2[_0x2404d7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x348881++){const _0x22f0c3=_0x530ee2[_0x2404d7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x348881);_0x13f378=(_0x13f378<<0x5)+_0x13f378+_0x22f0c3,_0x13f378&=_0x13f378;}}function _0x2db830(_0x5c18d4){Array[_0x2404d7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5c18d4)?_0x5c18d4[_0x2404d7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2db830):_0x5c18d4&&typeof _0x5c18d4==_0x2404d7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2404d7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5c18d4)[_0x2404d7([0x73,0x6f,0x72,0x74])]()[_0x2404d7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf1f38d,_0x153678])=>{_0x2576e2(_0xf1f38d),_0x2db830(_0x153678);}):_0x2576e2(window[_0x2404d7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5c18d4));}return _0x2db830(_0x4e5060),_0x13f378>>>0x0;}function _0x4d6076(_0x109d1d){return _0x109d1d[_0x2404d7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2404d7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2404d7([0x30]));}function _0x4f3ede(_0x230747){return _0x230747[_0x2404d7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2404d7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2404d7([0x6a,0x6f,0x69,0x6e])]('');}function _0x8e0cae(){}function _0x2404d7(_0x42f2bb){const _0x2a3d00=_0x2559;return _0x42f2bb[_0x2a3d00(0xe6)](_0x55b16a=>String[_0x2a3d00(0xae)](_0x55b16a))[_0x2a3d00(0xb7)]('');}_0x1f3887(await _0x416a41());}(this);}[_0x64f9de(0xa7)](){const _0x43d45f=_0x64f9de,_0x32989c=this[_0x43d45f(0xc5)][_0x43d45f(0xf1)][_0x43d45f(0xda)];_0x32989c[_0x43d45f(0xbc)](_0x43d45f(0xe7))&&_0x32989c[_0x43d45f(0xd5)](_0x43d45f(0xe7),{'allowAttributes':[_0x43d45f(0xb4)]}),_0x32989c[_0x43d45f(0xbc)](_0x43d45f(0xfa))&&_0x32989c[_0x43d45f(0xd5)](_0x43d45f(0xfa),{'allowAttributes':[_0x43d45f(0xb4)]});}[_0x64f9de(0xc9)](){const _0x4a6877=_0x64f9de,_0x3c6202=this[_0x4a6877(0xc5)];_0x3c6202[_0x4a6877(0xbb)][_0x4a6877(0xf2)](_0x4a6877(0xd3))[_0x4a6877(0xee)]({'model':_0x4a6877(0xb4),'view':_0x4a6877(0xdc)}),_0x3c6202[_0x4a6877(0xbb)][_0x4a6877(0xf2)](_0x4a6877(0xd8))[_0x4a6877(0xe0)]({'model':{'key':_0x4a6877(0xb4),'value':_0x51e5f6=>_0x51e5f6[_0x4a6877(0xc7)](_0x4a6877(0xdc))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xb2a0aa=_0x3c6202[_0x4a6877(0xab)][_0x4a6877(0xe5)](_0x4a6877(0xad));_0xb2a0aa&&this[_0x4a6877(0xe4)](_0xb2a0aa,_0x4a6877(0xe3),(_0x39004b,[_0x200b33,_0x12285b])=>{const _0x3e57c8=_0x4a6877;_0x200b33[_0x3e57c8(0xf7)](_0x3e57c8(0xb4),_0x12285b);});}[_0x64f9de(0xdf)](){const _0x3928fd=_0x64f9de,_0x23d1ac=this[_0x3928fd(0xc5)][_0x3928fd(0xb2)][_0x3928fd(0xe5)](_0x3928fd(0xb1))||{},_0x33373a=this[_0x3928fd(0xc5)][_0x3928fd(0xb2)][_0x3928fd(0xe5)](_0x3928fd(0xb6))||'';this[_0x3928fd(0xcc)]=_0x34640c(_0x40305c[_0x3928fd(0xef)],_0x3928fd(0xf8),{..._0x23d1ac,'pubkey':_0x33373a,'ctx-name':_0x3928fd(0xbe),'sourceList':'','imgOnly':_0x3928fd(0xb0),'removeCopyright':_0x3928fd(0xb0),'localeName':this[_0x3928fd(0xc5)][_0x3928fd(0xf3)][_0x3928fd(0xc0)],'externalSourcesEmbedCss':_0x3928fd(0xb8)}),this[_0x3928fd(0xcc)][_0x3928fd(0xce)]=_0x5cc6ce=>{const _0x29eac8=_0x3928fd;if(_0x29eac8(0xb3)==_0x5cc6ce)return _0x29eac8(0xbf);},_0x40305c[_0x3928fd(0xef)][_0x3928fd(0xea)][_0x3928fd(0xeb)](this[_0x3928fd(0xcc)]);}[_0x64f9de(0xf4)](){const _0x4f278f=_0x64f9de;this[_0x4f278f(0xcb)]=_0x34640c(_0x40305c[_0x4f278f(0xef)],_0x4f278f(0xd0),{'ctx-name':_0x4f278f(0xbe)}),_0x40305c[_0x4f278f(0xef)][_0x4f278f(0xea)][_0x4f278f(0xeb)](this[_0x4f278f(0xcb)]);}[_0x64f9de(0xd4)](){const _0x5ab346=_0x64f9de,_0x9150ca=this[_0x5ab346(0xc5)][_0x5ab346(0xab)][_0x5ab346(0xe5)](_0x5ab346(0xb9));_0x9150ca&&this[_0x5ab346(0xe4)](_0x9150ca,_0x5ab346(0xa9),()=>{const _0x718bcc=_0x5ab346,_0x303e2c=this[_0x718bcc(0xc5)][_0x718bcc(0xf1)][_0x718bcc(0xef)][_0x718bcc(0xcf)][_0x718bcc(0xd9)]();_0x303e2c&&_0x303e2c[_0x718bcc(0xc7)](_0x718bcc(0xb4))&&this[_0x718bcc(0xc5)][_0x718bcc(0xdb)][_0x718bcc(0xaf)][_0x718bcc(0xf6)](_0x718bcc(0xc1),()=>{const _0x5ac875=_0x718bcc;_0x478669(this[_0x5ac875(0xc5)],_0x303e2c);});});const _0x2d3148=this[_0x5ab346(0xc5)][_0x5ab346(0xab)][_0x5ab346(0xe5)](_0x5ab346(0xde));_0x2d3148&&this[_0x5ab346(0xe4)](_0x2d3148,_0x5ab346(0xa9),()=>{const _0x47908e=_0x5ab346,_0x570289=this[_0x47908e(0xc5)][_0x47908e(0xf1)][_0x47908e(0xef)][_0x47908e(0xcf)][_0x47908e(0xd9)]();_0x570289&&_0x570289[_0x47908e(0xc7)](_0x47908e(0xb4))&&this[_0x47908e(0xc5)][_0x47908e(0xdb)][_0x47908e(0xaf)][_0x47908e(0xf6)](_0x47908e(0xc1),()=>{const _0x3c7b80=_0x47908e;_0x478669(this[_0x3c7b80(0xc5)],_0x570289);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x20386b,ObservableMixin as _0x5008c2}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x49bde7}from'ckeditor5/src/ui.js';import _0x35908e from'./uploadcareimageeditformview.js';import _0x2fcd6d from'../../utils/uploadutils.js';import _0x4a4e52 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x41bc68,getImageDimension as _0x3926a7}from'../../utils/editingutils.js';import{isAncestor as _0x9ed589}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5008c2(){constructor(_0x177dc7,_0x430945,_0x2868ac){super(),this['_editor']=_0x177dc7,this['_dialog']=_0x430945,this['_imageElement']=_0x2868ac,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 _0x9afb5f=this['_imageElement'],_0x24118f=_0x9afb5f['getAttribute']('uploadcareImageId'),_0x4829c3=_0x9afb5f['getAttribute']('src');if(_0x24118f)await this['_loadImageInfo'](_0x24118f,_0x4829c3);else{if(this['_imageCache']['has'](_0x4829c3)){const _0x26baf3=this['_imageCache']['get'](_0x4829c3);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x26baf3['url'],this['imageDimension']=_0x26baf3['dimension'],this['imageId']=_0x26baf3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x477f2d}=this['_editor'],t=_0x477f2d['t'],_0x225295=new _0x35908e(_0x477f2d,this['imageStatus'],this['_attributes']);_0x225295['bind']('status')['to'](this,'imageStatus'),_0x225295['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x225295['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x225295['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x225295,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4a4e52,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x225295,'position':_0x49bde7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x225295['focus']();},'onHide':()=>{_0x225295['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2619f4=>!_0x9ed589(_0x2619f4,_0x225295['element'])}});}['_loadImageInfo'](_0x3808ea,_0xb9fe52){return _0x2fcd6d['getInfo'](_0x3808ea,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xd2da7a=>{const {width:_0x629d93,height:_0x220eff}=_0xd2da7a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xb9fe52,this['imageDimension']={'width':_0x629d93,'height':_0x220eff},this['imageId']=_0x3808ea;})['catch'](_0x357c65=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x357c65['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x481db1,_0x1912cf){return this['_getImageAsFile'](_0x481db1)['then'](_0x25063f=>_0x2fcd6d['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1912cf['signal'],'file':_0x25063f,'onProgress':_0x165f0d=>{_0x165f0d&&_0x165f0d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x165f0d['value']));}}))['then'](_0xb9c4ec=>{const {width:_0x23f9df,height:_0x4d8afc}=_0xb9c4ec['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xb9c4ec['cdnUrl'],this['imageDimension']={'width':_0x23f9df,'height':_0x4d8afc},this['imageId']=_0xb9c4ec['uuid'],this['imageUploadProgress']=null;const _0x38208b=_0x481db1['getAttribute']('src');this['_imageCache']['set'](_0x38208b,{'id':_0xb9c4ec['uuid'],'url':_0xb9c4ec['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x393fa3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x393fa3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3a0411,_0x3d12d5){_0x3a0411['on']('apply',(_0x1306cb,_0x108198)=>{this['_replaceImage'](_0x3d12d5,_0x108198['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3a0411['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3a0411['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2ce599,_0x5415a5,_0x12f06f){const _0x5cec09=this['_editor'],{width:_0x37772a,height:_0x2e6cf2}=_0x3926a7(_0x5415a5,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5a8699,imageSources:_0x2941f4}=_0x41bc68(_0x5415a5,_0x37772a);_0x5cec09['model']['change'](_0x211b55=>{if('$graveyard'===_0x2ce599['root']['rootName']){_0x5cec09['execute']('insertImage',{'imageType':_0x2ce599['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2ce599['getAttributes']()),'uploadcareImageId':_0x12f06f,'src':_0x5a8699,'sources':_0x2941f4,'width':_0x37772a,'height':_0x2e6cf2}});const _0x21564d=_0x2ce599['getChildren']();_0x2ce599=_0x5cec09['model']['document']['selection']['getSelectedElement']();for(const _0x4b9131 of _0x21564d)_0x211b55['append'](_0x211b55['cloneElement'](_0x4b9131),_0x2ce599);}else _0x211b55['setSelection'](_0x2ce599,'on'),_0x5cec09['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2ce599['getAttributes']()),'uploadcareImageId':_0x12f06f,'src':_0x5a8699,'sources':_0x2941f4,'width':_0x37772a,'height':_0x2e6cf2},_0x2ce599);_0x211b55['setSelection'](_0x2ce599,'on');});}async['_getImageAsFile'](_0x45f2fe){const _0x5a54ad=_0x20386b['window'],_0xdb05c3=_0x20386b['document']['location']['href'],_0x25d0b8=new _0x5a54ad['URL'](_0x45f2fe['getAttribute']('src'),_0xdb05c3);if('data:'===_0x25d0b8['protocol']){const _0x4f69ed=_0x25d0b8['href']['split'](','),_0x1e3cbf=_0x4f69ed[0x0]['match'](/:(.*?);/)[0x1],_0x3d6b18=_0x1e3cbf['split']('/')[0x1],_0x783c1e=_0x5a54ad['atob'](_0x4f69ed[_0x4f69ed['length']-0x1]);let _0x22dd97=_0x783c1e['length'];const _0x49b785=new _0x5a54ad['Uint8Array'](_0x22dd97);for(;_0x22dd97--;)_0x49b785[_0x22dd97]=_0x783c1e['charCodeAt'](_0x22dd97);return new _0x5a54ad['File']([_0x49b785],'image.'+_0x3d6b18,{'type':_0x1e3cbf});}const _0x4c5a76=_0x25d0b8['href']['split']('/'),_0x33a4e3=_0x4c5a76[_0x4c5a76['length']-0x1],_0x357029=_0x33a4e3['split']('.')[0x1];return _0x5a54ad['fetch'](_0x25d0b8['href'])['then'](_0x308788=>_0x308788['clone']()['blob']())['then'](_0x334564=>new _0x5a54ad['File']([_0x334564],_0x33a4e3,{'type':'image/'+_0x357029}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x15f60b,_0x3a0058){const _0x32c5d9=_0x1a84,_0xaf6066=_0x15f60b();while(!![]){try{const _0x408a4c=parseInt(_0x32c5d9(0x1c5))/0x1+-parseInt(_0x32c5d9(0x1c3))/0x2*(-parseInt(_0x32c5d9(0x1bd))/0x3)+parseInt(_0x32c5d9(0x1be))/0x4+parseInt(_0x32c5d9(0x1ce))/0x5+parseInt(_0x32c5d9(0x1c6))/0x6*(parseInt(_0x32c5d9(0x1c4))/0x7)+parseInt(_0x32c5d9(0x1c0))/0x8*(parseInt(_0x32c5d9(0x1cb))/0x9)+-parseInt(_0x32c5d9(0x1cd))/0xa*(parseInt(_0x32c5d9(0x1cc))/0xb);if(_0x408a4c===_0x3a0058)break;else _0xaf6066['push'](_0xaf6066['shift']());}catch(_0x5730bc){_0xaf6066['push'](_0xaf6066['shift']());}}}(_0x48c7,0x70437));import{View as _0x14c8a2}from'ckeditor5/src/ui.js';export default class tt extends _0x14c8a2{constructor(_0x120285,_0x4c90f4){const _0x1fc165=_0x1a84;super(_0x120285);const _0x2e49ef=this[_0x1fc165(0x1bf)];this[_0x1fc165(0x1c2)](_0x1fc165(0x1ca),''),this[_0x1fc165(0x1bc)]({'tag':_0x1fc165(0x1c7),'attributes':{..._0x4c90f4,'class':[_0x1fc165(0x1c1),_0x1fc165(0x1c9)],'ctx-name':_0x1fc165(0x1c8),'cdn-url':_0x2e49ef['to'](_0x1fc165(0x1ca))}});}}function _0x1a84(_0x1d5abc,_0x29fa45){const _0x48c743=_0x48c7();return _0x1a84=function(_0x1a845f,_0xb826bf){_0x1a845f=_0x1a845f-0x1bc;let _0x2f241e=_0x48c743[_0x1a845f];return _0x2f241e;},_0x1a84(_0x1d5abc,_0x29fa45);}function _0x48c7(){const _0x487385=['set','9404yqHInh','168035YioGUP','380406qhQLbj','186XbtpNK','uc-cloud-image-editor','image-edit','ck-uploadcare-theme','imageSrc','11034xAuYaF','448943CMOQWB','580Pzekhy','2521465LoOTrE','setTemplate','87qZUNdU','3006380syMMPn','bindTemplate','2024dFwJuq','uc-light'];_0x48c7=function(){return _0x487385;};return _0x48c7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x59f6d3,IconView as et,View as _0x236d3c}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x236d3c{constructor(_0x47fa19){super(_0x47fa19);const t=_0x47fa19['t'];this['set']('errorType',null);const _0x35a872=new _0x59f6d3(_0x47fa19);_0x35a872['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x35a872['withText']=!0x0,_0x35a872['class']='ck-button-action',_0x35a872['on']('execute',()=>{this['fire']('retry');}),_0x35a872['bind']('isVisible')['to'](this,'errorType',_0xdab939=>'NotFound'!==_0xdab939);const _0x3360f2=new et();_0x3360f2['content']=at,_0x3360f2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4c1e22=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':[_0x3360f2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4c1e22['to']('errorType',_0x478067=>t('NotFound'!==_0x478067?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x35a872]},{'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 _0x5e511e,View as _0x205614}from'ckeditor5/src/ui.js';export default class ta extends _0x205614{constructor(_0x2c03cf){super(_0x2c03cf);const t=_0x2c03cf['t'],_0x4c1060=this['bindTemplate'],_0x3d9492=new _0x5e511e();_0x3d9492['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':[_0x3d9492,{'text':_0x4c1060['to']('imageUploadProgress',_0x317613=>t('Loading\x20image...')+'\x20('+(_0x317613||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 _0x2769cd=_0x33ab;(function(_0x22b6e9,_0x4cef76){const _0x3efdfc=_0x33ab,_0x4997ec=_0x22b6e9();while(!![]){try{const _0x42e59d=-parseInt(_0x3efdfc(0xfb))/0x1*(-parseInt(_0x3efdfc(0xfe))/0x2)+parseInt(_0x3efdfc(0xe5))/0x3+-parseInt(_0x3efdfc(0x10a))/0x4*(-parseInt(_0x3efdfc(0xfa))/0x5)+parseInt(_0x3efdfc(0x108))/0x6*(-parseInt(_0x3efdfc(0x10e))/0x7)+-parseInt(_0x3efdfc(0x119))/0x8*(parseInt(_0x3efdfc(0xfd))/0x9)+-parseInt(_0x3efdfc(0x117))/0xa+parseInt(_0x3efdfc(0x11b))/0xb;if(_0x42e59d===_0x4cef76)break;else _0x4997ec['push'](_0x4997ec['shift']());}catch(_0x3488d9){_0x4997ec['push'](_0x4997ec['shift']());}}}(_0x24c8,0xb14de));import{View as _0x5b3150}from'ckeditor5/src/ui.js';import _0x57c0f2 from'./uploadcareimageeditformloadingview.js';import _0x2a6cc6 from'./uploadcareimageeditformerrorview.js';import _0x5ffa59 from'./uploadcareimageeditformeditingview.js';import _0x3e241b from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x33ab(_0x5ca784,_0x563266){const _0x24c846=_0x24c8();return _0x33ab=function(_0x33ab96,_0x185a16){_0x33ab96=_0x33ab96-0xe5;let _0x212f39=_0x24c846[_0x33ab96];return _0x212f39;},_0x33ab(_0x5ca784,_0x563266);}function _0x24c8(){const _0x14d087=['length','cancel','focus','detail','div','add','filter','uc-cloud-image-editor','clear','toLowerCase','addMany','getFocusableElement','_setView','observe','retry','_addErrorViewListeners','nodeName','set','68125rFWgfW','134243xavGtm','disconnect','2358333EhoKXh','2gjnejt','ready','createCollection','setTemplate','_addUploadcareImageEditorListeners','addEventListener','apply','once','uploading','addedNodes','138iKYHkt','_errorView','208mTGukI','fire','_items','change:status','86611CPjugV','_focusableView','cdnUrl','error','ck-uploadcare-form','status','render','_loadingView','element','10350930mXpoRf','_waitForImageEditorComponent','24FToncr','target','10488467oZToJx','_editingView','3107343mogQen','ck-reset_all-excluded','querySelector'];_0x24c8=function(){return _0x14d087;};return _0x24c8();}export default class Z extends _0x3e241b{constructor(_0x2ddbb6,_0x23a9f2,_0x4e53ec){const _0x287c6c=_0x33ab;super(_0x2ddbb6),this[_0x287c6c(0x10c)]=this[_0x287c6c(0x100)](),this[_0x287c6c(0x115)]=new _0x57c0f2(_0x2ddbb6),this[_0x287c6c(0x109)]=new _0x2a6cc6(_0x2ddbb6),this[_0x287c6c(0x11c)]=new _0x5ffa59(_0x2ddbb6,_0x4e53ec),this[_0x287c6c(0x10f)]=new _0x5b3150(_0x2ddbb6),this[_0x287c6c(0x10f)][_0x287c6c(0x101)](this[_0x287c6c(0xf3)]()),this[_0x287c6c(0xf9)](_0x287c6c(0x113),_0x23a9f2),this[_0x287c6c(0x101)]({'tag':_0x287c6c(0xec),'attributes':{'class':['ck',_0x287c6c(0xe6),_0x287c6c(0x112)],'tabindex':'-1'},'children':this[_0x287c6c(0x10c)]}),this[_0x287c6c(0xf4)](),this[_0x287c6c(0x105)](_0x287c6c(0x114),()=>{const _0xab9676=_0x287c6c;this[_0xab9676(0x118)](this[_0xab9676(0x116)],_0x5902f4=>{const _0x2792fc=_0xab9676;this[_0x2792fc(0x102)](_0x5902f4);});}),this['on'](_0x287c6c(0x10d),()=>{const _0x26f187=_0x287c6c;this[_0x26f187(0xf4)]();}),this[_0x287c6c(0xf7)]();}[_0x2769cd(0xea)](){const _0xa548ab=_0x2769cd;this[_0xa548ab(0x116)][_0xa548ab(0xea)]();}[_0x2769cd(0xf4)](){const _0x53cfc1=_0x2769cd;switch(this[_0x53cfc1(0x10c)][_0x53cfc1(0xf0)](),this[_0x53cfc1(0x113)]){case _0x53cfc1(0x106):this[_0x53cfc1(0x10c)][_0x53cfc1(0xed)](this[_0x53cfc1(0x115)]);break;case _0x53cfc1(0x111):this[_0x53cfc1(0x10c)][_0x53cfc1(0xed)](this[_0x53cfc1(0x109)]);break;case _0x53cfc1(0xff):this[_0x53cfc1(0x10c)][_0x53cfc1(0xf2)]([this[_0x53cfc1(0x11c)],this[_0x53cfc1(0x10f)]]);}}[_0x2769cd(0x118)](_0x568e8e,_0x5860b5){const _0x393330=_0x2769cd,_0x2c6852=_0x393330(0xef),_0x13f5ea=_0x568e8e[_0x393330(0xe7)](_0x2c6852);if(_0x13f5ea)return _0x5860b5(_0x13f5ea);const _0x382beb=new MutationObserver(_0x193f46=>{const _0x130536=_0x393330,_0x205fd8=_0x193f46[_0x130536(0xee)](_0x21feb9=>_0x21feb9[_0x130536(0x11a)]===_0x568e8e&&_0x21feb9[_0x130536(0x107)][_0x130536(0xe8)]>0x0&&_0x21feb9[_0x130536(0x107)][0x0][_0x130536(0xf8)][_0x130536(0xf1)]()===_0x2c6852);_0x205fd8[_0x130536(0xe8)]&&(_0x382beb[_0x130536(0xfc)](),_0x5860b5(_0x205fd8[0x0][_0x130536(0x107)][0x0]));});_0x382beb[_0x393330(0xf5)](_0x568e8e,{'childList':!0x0,'subtree':!0x0});}[_0x2769cd(0x102)](_0x36d274){const _0x26e055=_0x2769cd;_0x36d274[_0x26e055(0x103)](_0x26e055(0x104),_0x23c5c2=>{const _0x4e30a2=_0x26e055;this[_0x4e30a2(0x10b)](_0x4e30a2(0x104),{'imageSrc':_0x23c5c2[_0x4e30a2(0xeb)][_0x4e30a2(0x110)]});}),_0x36d274[_0x26e055(0x103)](_0x26e055(0xe9),()=>{const _0x235c3c=_0x26e055;this[_0x235c3c(0x10b)](_0x235c3c(0xe9));});}[_0x2769cd(0xf7)](){const _0x6733da=_0x2769cd;this[_0x6733da(0x109)]['on'](_0x6733da(0xf6),()=>{const _0x19cc27=_0x6733da;this[_0x19cc27(0x10b)](_0x19cc27(0xf6));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2ca6(){const _0x13ce1f=['isActive','uploadcare.allowExternalImagesEditing','model','_isEditable','editor','execute','refresh','element','123302RVTCiv','get','unbind','imageEditController','document','1051113Vrccjd','1712862GCCgwk','bind','590766EiTbSt','plugins','config','1760992FXcDGI','imageBlock','requires','selection','set','566945Kekxtp','getSelectedElement','11688ocTHjk','isEnabled','imageInline','354qEoZWi'];_0x2ca6=function(){return _0x13ce1f;};return _0x2ca6();}const _0x1b2431=_0x2597;function _0x2597(_0x460ce3,_0x15455b){const _0x2ca6e2=_0x2ca6();return _0x2597=function(_0x2597b8,_0x155c10){_0x2597b8=_0x2597b8-0xc0;let _0x175602=_0x2ca6e2[_0x2597b8];return _0x175602;},_0x2597(_0x460ce3,_0x15455b);}(function(_0xdb16f0,_0x1cd5dd){const _0x41a2c5=_0x2597,_0x3a3cca=_0xdb16f0();while(!![]){try{const _0x16c640=parseInt(_0x41a2c5(0xc1))/0x1+-parseInt(_0x41a2c5(0xc9))/0x2+-parseInt(_0x41a2c5(0xd6))/0x3*(-parseInt(_0x41a2c5(0xd3))/0x4)+parseInt(_0x41a2c5(0xd1))/0x5+parseInt(_0x41a2c5(0xc7))/0x6+-parseInt(_0x41a2c5(0xc6))/0x7+-parseInt(_0x41a2c5(0xcc))/0x8;if(_0x16c640===_0x1cd5dd)break;else _0x3a3cca['push'](_0x3a3cca['shift']());}catch(_0x5a2eeb){_0x3a3cca['push'](_0x3a3cca['shift']());}}}(_0x2ca6,0x31252));import{Command as _0x111302}from'ckeditor5/src/core.js';import{Dialog as _0xdf1520}from'ckeditor5/src/ui.js';import _0x43a041 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x45a9b2}from'../utils/editingutils.js';export default class J extends _0x111302{static get[_0x1b2431(0xce)](){return[_0xdf1520];}constructor(_0x242a37){const _0x23c914=_0x1b2431;super(_0x242a37),this[_0x23c914(0xc4)]=void 0x0,this[_0x23c914(0xda)]=_0x45a9b2(_0x242a37[_0x23c914(0xcb)][_0x23c914(0xc2)](_0x23c914(0xd8))||[]),this[_0x23c914(0xd0)]({'isActive':!0x1});}[_0x1b2431(0xdd)](){const _0x23cd47=_0x1b2431,_0x4fe42d=this[_0x23cd47(0xdb)][_0x23cd47(0xd9)][_0x23cd47(0xc5)][_0x23cd47(0xcf)][_0x23cd47(0xd2)]();this[_0x23cd47(0xd4)]=this[_0x23cd47(0xda)](_0x4fe42d);}[_0x1b2431(0xdc)](){const _0x2a552e=_0x1b2431;this[_0x2a552e(0xc4)]&&(this[_0x2a552e(0xc3)](_0x2a552e(0xd7)),this[_0x2a552e(0xc4)]=void 0x0);const _0x1807d1=this[_0x2a552e(0xdb)][_0x2a552e(0xd9)][_0x2a552e(0xc5)][_0x2a552e(0xcf)][_0x2a552e(0xd2)]();_0x1807d1&&(_0x1807d1['is'](_0x2a552e(0xc0),_0x2a552e(0xcd))||_0x1807d1['is'](_0x2a552e(0xc0),_0x2a552e(0xd5)))&&(this[_0x2a552e(0xc4)]=new _0x43a041(this[_0x2a552e(0xdb)],this[_0x2a552e(0xdb)][_0x2a552e(0xca)][_0x2a552e(0xc2)](_0xdf1520),_0x1807d1),this[_0x2a552e(0xc8)](_0x2a552e(0xd7))['to'](this[_0x2a552e(0xc4)],_0x2a552e(0xd7)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d6bf6=_0x1dad;(function(_0x3e43a1,_0x312305){const _0x3ef6e9=_0x1dad,_0x1eea66=_0x3e43a1();while(!![]){try{const _0x7ddabe=parseInt(_0x3ef6e9(0x73))/0x1*(parseInt(_0x3ef6e9(0x77))/0x2)+-parseInt(_0x3ef6e9(0x82))/0x3+parseInt(_0x3ef6e9(0x72))/0x4+-parseInt(_0x3ef6e9(0x76))/0x5+-parseInt(_0x3ef6e9(0x70))/0x6+-parseInt(_0x3ef6e9(0x75))/0x7+parseInt(_0x3ef6e9(0x7c))/0x8;if(_0x7ddabe===_0x312305)break;else _0x1eea66['push'](_0x1eea66['shift']());}catch(_0x511afa){_0x1eea66['push'](_0x1eea66['shift']());}}}(_0x7cc6,0x4f8d5));import{Plugin as _0x1c0ffb}from'ckeditor5/src/core.js';function _0x1dad(_0x34fc6f,_0x2e8442){const _0x7cc662=_0x7cc6();return _0x1dad=function(_0x1dad29,_0x3640ce){_0x1dad29=_0x1dad29-0x70;let _0x40a208=_0x7cc662[_0x1dad29];return _0x40a208;},_0x1dad(_0x34fc6f,_0x2e8442);}import{Notification as _0x260414}from'ckeditor5/src/ui.js';function _0x7cc6(){const _0x5c9297=['isOfficialPlugin','2390906YQOKGe','2574255fONQaS','4806nhFpdo','init','ImageEditing','commands','isPremiumPlugin','8734472nWCOYE','UploadcareImageEditEditing','add','requires','uploadcareImageReplace','pluginName','823974flYDHs','ImageUtils','1994988OsgThN','uploadcareImageEdit','762272LouIhM','211tLDalw'];_0x7cc6=function(){return _0x5c9297;};return _0x7cc6();}import _0x19c3d0 from'./uploadcareimageeditcommand.js';import _0x25dc01 from'./uploadcareimagereplacecommand.js';import _0x4589f8 from'../uploadcareediting.js';export default class m extends _0x1c0ffb{static get[_0x2d6bf6(0x81)](){const _0x484ca3=_0x2d6bf6;return _0x484ca3(0x7d);}static get[_0x2d6bf6(0x7f)](){const _0x45e88c=_0x2d6bf6;return[_0x4589f8,_0x260414,_0x45e88c(0x83),_0x45e88c(0x79)];}static get[_0x2d6bf6(0x74)](){return!0x0;}static get[_0x2d6bf6(0x7b)](){return!0x0;}[_0x2d6bf6(0x78)](){const _0x44a5a0=_0x2d6bf6,{editor:_0x9e97fe}=this;_0x9e97fe[_0x44a5a0(0x7a)][_0x44a5a0(0x7e)](_0x44a5a0(0x71),new _0x19c3d0(_0x9e97fe)),_0x9e97fe[_0x44a5a0(0x7a)][_0x44a5a0(0x7e)](_0x44a5a0(0x80),new _0x25dc01(_0x9e97fe));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x420ec7}from'ckeditor5/src/core.js';import{ButtonView as _0x531bd9}from'ckeditor5/src/ui.js';import{createElement as _0x2459bf}from'ckeditor5/src/utils.js';import _0x152f5e from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x420ec7{constructor(){super(...arguments),this['_imageCache']=new Map();}static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x2fa20e=this['editor'];_0x2fa20e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x23a7b2=>{const _0x122673=_0x2fa20e['commands']['get']('uploadcareImageEdit'),_0x28912f=new _0x531bd9(_0x23a7b2),t=_0x23a7b2['t'];return _0x28912f['set']({'icon':_0x152f5e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x28912f['bind']('isEnabled')['to'](_0x122673),_0x28912f['bind']('isOn')['to'](_0x122673,'isActive'),this['listenTo'](_0x28912f,'execute',()=>{_0x2fa20e['execute']('uploadcareImageEdit'),_0x2fa20e['editing']['view']['focus']();}),_0x28912f;}),this['_initConfig']();}['_initConfig'](){const _0x1d7e29=_0x2459bf(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1d7e29),this['listenTo'](this['editor'],'destroy',()=>{_0x1d7e29['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0xc67c(_0x9ab9c6,_0x29076f){const _0x5d54e4=_0x5d54();return _0xc67c=function(_0xc67c2e,_0x47af4f){_0xc67c2e=_0xc67c2e-0xfa;let _0x1449fc=_0x5d54e4[_0xc67c2e];return _0x1449fc;},_0xc67c(_0x9ab9c6,_0x29076f);}const _0x4b55a5=_0xc67c;(function(_0x3ced27,_0x2ac97f){const _0x5cde6d=_0xc67c,_0xd38046=_0x3ced27();while(!![]){try{const _0x247a51=-parseInt(_0x5cde6d(0x10f))/0x1*(-parseInt(_0x5cde6d(0x10c))/0x2)+parseInt(_0x5cde6d(0x103))/0x3+parseInt(_0x5cde6d(0x109))/0x4+parseInt(_0x5cde6d(0x10b))/0x5*(parseInt(_0x5cde6d(0x105))/0x6)+-parseInt(_0x5cde6d(0x101))/0x7*(parseInt(_0x5cde6d(0x10d))/0x8)+parseInt(_0x5cde6d(0x10e))/0x9*(parseInt(_0x5cde6d(0x110))/0xa)+-parseInt(_0x5cde6d(0x108))/0xb;if(_0x247a51===_0x2ac97f)break;else _0xd38046['push'](_0xd38046['shift']());}catch(_0x44b6fd){_0xd38046['push'](_0xd38046['shift']());}}}(_0x5d54,0x1e701));function _0x5d54(){const _0xaf2fb2=['5346616rvFfLI','741552NJfbVp','execute','1120695vjXwrU','127690kKiZzr','1751336XUzoFW','1922796CwIGsi','1eqdQRu','10iCqANc','document','sizes','setAttributes','element','editor','selection','model','imageBlock','imageInline','srcset','removeAttribute','7jsdtAs','refresh','427890OKquDR','change','6IdFQWk','getSelectedElement','isEnabled'];_0x5d54=function(){return _0xaf2fb2;};return _0x5d54();}import{Command as _0x524dd4}from'ckeditor5/src/core.js';export default class O extends _0x524dd4{[_0x4b55a5(0x102)](){const _0x28c17b=_0x4b55a5,_0x2f23a4=this[_0x28c17b(0xfa)][_0x28c17b(0xfc)][_0x28c17b(0x111)][_0x28c17b(0xfb)][_0x28c17b(0x106)]();this[_0x28c17b(0x107)]=Boolean(_0x2f23a4&&(_0x2f23a4['is'](_0x28c17b(0x114),_0x28c17b(0xfd))||_0x2f23a4['is'](_0x28c17b(0x114),_0x28c17b(0xfe))));}[_0x4b55a5(0x10a)](_0x2970c6){const _0x5232fa=_0x4b55a5,_0x652730=this[_0x5232fa(0xfa)][_0x5232fa(0xfc)][_0x5232fa(0x111)][_0x5232fa(0xfb)][_0x5232fa(0x106)]();this[_0x5232fa(0xfa)][_0x5232fa(0xfc)][_0x5232fa(0x104)](_0x206969=>{const _0x24c19a=_0x5232fa;_0x206969[_0x24c19a(0x113)](_0x2970c6,_0x652730),_0x206969[_0x24c19a(0x100)](_0x24c19a(0xff),_0x652730),_0x206969[_0x24c19a(0x100)](_0x24c19a(0x112),_0x652730);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5efe5c=_0x24d1;(function(_0x3bcfc5,_0x112939){var _0x56809a=_0x24d1,_0x3f5449=_0x3bcfc5();while(!![]){try{var _0x45ed79=-parseInt(_0x56809a(0x11f))/0x1+-parseInt(_0x56809a(0x116))/0x2*(-parseInt(_0x56809a(0x115))/0x3)+-parseInt(_0x56809a(0x119))/0x4+-parseInt(_0x56809a(0x11d))/0x5*(parseInt(_0x56809a(0x113))/0x6)+-parseInt(_0x56809a(0x11a))/0x7*(-parseInt(_0x56809a(0x120))/0x8)+-parseInt(_0x56809a(0x121))/0x9+parseInt(_0x56809a(0x114))/0xa*(parseInt(_0x56809a(0x117))/0xb);if(_0x45ed79===_0x112939)break;else _0x3f5449['push'](_0x3f5449['shift']());}catch(_0x204419){_0x3f5449['push'](_0x3f5449['shift']());}}}(_0x2e55,0x503c4));import{Plugin as _0x419af2}from'ckeditor5/src/core.js';import _0x8ef5cb from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x24d1(_0x1ac827,_0x53c9dc){var _0x2e551b=_0x2e55();return _0x24d1=function(_0x24d179,_0x430a22){_0x24d179=_0x24d179-0x112;var _0x276c0d=_0x2e551b[_0x24d179];return _0x276c0d;},_0x24d1(_0x1ac827,_0x53c9dc);}import _0x142829 from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x2e55(){var _0x587331=['48204RbNYsJ','53392KQaAEa','1314819NXKTmD','pluginName','24774FHceac','670nEEcAB','75EVavMO','12798IZvGpF','147862oComoG','isOfficialPlugin','1430656FMDxZl','175uhbrSI','requires','isPremiumPlugin','420UClJhu','UploadcareImageEdit'];_0x2e55=function(){return _0x587331;};return _0x2e55();}export default class j extends _0x419af2{static get[_0x5efe5c(0x112)](){var _0x2fbfe1=_0x5efe5c;return _0x2fbfe1(0x11e);}static get[_0x5efe5c(0x11b)](){return[_0x8ef5cb,_0x142829];}static get[_0x5efe5c(0x118)](){return!0x0;}static get[_0x5efe5c(0x11c)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4768c9=_0x5cd8;(function(_0x4b9b5d,_0x58e67f){const _0x491700=_0x5cd8,_0x2f0d3e=_0x4b9b5d();while(!![]){try{const _0xb323cd=-parseInt(_0x491700(0x8c))/0x1*(-parseInt(_0x491700(0x93))/0x2)+-parseInt(_0x491700(0x9c))/0x3*(-parseInt(_0x491700(0x9a))/0x4)+parseInt(_0x491700(0xab))/0x5*(-parseInt(_0x491700(0x8a))/0x6)+-parseInt(_0x491700(0xc2))/0x7*(-parseInt(_0x491700(0xdb))/0x8)+-parseInt(_0x491700(0xae))/0x9*(-parseInt(_0x491700(0x89))/0xa)+-parseInt(_0x491700(0x8f))/0xb*(parseInt(_0x491700(0xbd))/0xc)+-parseInt(_0x491700(0x8d))/0xd*(parseInt(_0x491700(0xad))/0xe);if(_0xb323cd===_0x58e67f)break;else _0x2f0d3e['push'](_0x2f0d3e['shift']());}catch(_0x5fabe6){_0x2f0d3e['push'](_0x2f0d3e['shift']());}}}(_0x47ca,0x5bf34));import{Plugin as _0x2579a4,icons as _0x4fa790}from'ckeditor5/src/core.js';import{ButtonView as _0x227f11,MenuBarMenuListItemButtonView as _0xa59eca}from'ckeditor5/src/ui.js';import _0x164c47 from'../theme/icons/dropbox.svg';import _0x9cee40 from'../theme/icons/facebook.svg';import _0x2e0854 from'../theme/icons/google-drive.svg';import _0x2f522c from'../theme/icons/google-photos.svg';import _0x577d0a from'../theme/icons/link.svg';import _0x4a70dc from'../theme/icons/onedrive.svg';function _0x47ca(){const _0x4a6c35=['assetManager','afterInit','16QantTM','withText','domainLimit','_getIntegrationKey','GPhotos','isEnabled','forEach','32GFdTrN','push','133446KDuXXp','uploadcareLicenseKeyExpired','_createDropdownButtons','uploadcareLicenseKeyDomainLimit','isOfficialPlugin','uploadcare','OneDrive','upload','registerIntegration','UploadcareUI','imageUpload','usageLimit','commands','icon','Local','42515VdiaXU','URL','728588KDnoRp','1308735rQPKGC','ImageInsertUI','uploadcareLicenseKeyNotAllowed','locale','url','uploadcare.uploader.sourceList','type','entries','isPremiumPlugin','GDrive','_createMenuBarButtons','_createButton','execute','text','pluginName','26256OTkYGj','destroy','trialLimit','map','Uploadcare','781298IfjWeB','bind','Facebook','has','uploadcareLicenseKeyValid','uploadcareLicenseKeyEvaluationLimit','Replace','invalid','editor','uploadcareLicenseKeyTrialLimit','label','_createToolbarButton','init','licenseKey','Dropbox','isImageSelected','_normalizeConfigSourceList','get','tooltip','uploadcareLicenseKeyInvalid','Insert','shortText','uploadcareLicenseKeyUsageLimit','_showLicenseError','reduce','8qpBUUm','featureNotAllowed','config','expired','40WlGcRl','156LsxcHO','_licenseKeyCheckInterval','9992iHHVAv','130xXwTLr','evaluationLimit','55SdzCMi','plugins'];_0x47ca=function(){return _0x4a6c35;};return _0x47ca();}import{UploadcareSource as _0x178d33}from'./uploadcareconfig.js';import{getTranslation as _0x15a4e5}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x5cd8(_0x281610,_0x4a2f7f){const _0x47ca55=_0x47ca();return _0x5cd8=function(_0x5cd875,_0x10b0b3){_0x5cd875=_0x5cd875-0x88;let _0x155bb6=_0x47ca55[_0x5cd875];return _0x155bb6;},_0x5cd8(_0x281610,_0x4a2f7f);}import'../theme/uploadcareimageedit.css';export default class e extends _0x2579a4{static get[_0x4768c9(0xbc)](){const _0x51b382=_0x4768c9;return _0x51b382(0xa5);}static get[_0x4768c9(0xa0)](){return!0x0;}static get[_0x4768c9(0xb6)](){return!0x0;}[_0x4768c9(0xce)](){const _0x360787=_0x4768c9;this[_0x360787(0xcf)]=this[_0x360787(0xca)][_0x360787(0xdd)][_0x360787(0xd3)](_0x360787(0xcf));const _0x29fe2b=this[_0x360787(0xca)];this[_0x360787(0x8b)]=setInterval(()=>{const _0x7eb55a=_0x360787;let _0x2ddf57;for(const _0x344bea in _0x29fe2b){const _0xab766a=_0x344bea,_0x19ee43=_0x29fe2b[_0xab766a];if(_0x7eb55a(0xc6)==_0x19ee43||_0x7eb55a(0xd5)==_0x19ee43||_0x7eb55a(0x9d)==_0x19ee43||_0x7eb55a(0x9f)==_0x19ee43||_0x7eb55a(0xb0)==_0x19ee43||_0x7eb55a(0xc7)==_0x19ee43||_0x7eb55a(0xcb)==_0x19ee43||_0x7eb55a(0xd8)==_0x19ee43){delete _0x29fe2b[_0xab766a],_0x2ddf57=_0x19ee43,clearInterval(this[_0x7eb55a(0x8b)]),this[_0x7eb55a(0x8b)]=void 0x0;break;}}_0x7eb55a(0xd5)==_0x2ddf57&&_0x29fe2b[_0x7eb55a(0xd9)](_0x7eb55a(0xc9)),_0x7eb55a(0x9d)==_0x2ddf57&&_0x29fe2b[_0x7eb55a(0xd9)](_0x7eb55a(0x88)),_0x7eb55a(0x9f)==_0x2ddf57&&_0x29fe2b[_0x7eb55a(0xd9)](_0x7eb55a(0x95)),_0x7eb55a(0xb0)==_0x2ddf57&&_0x29fe2b[_0x7eb55a(0xd9)](_0x7eb55a(0xdc),_0x7eb55a(0xc1)),_0x7eb55a(0xc7)==_0x2ddf57&&_0x29fe2b[_0x7eb55a(0xd9)](_0x7eb55a(0x8e)),_0x7eb55a(0xcb)==_0x2ddf57&&_0x29fe2b[_0x7eb55a(0xd9)](_0x7eb55a(0xbf)),_0x7eb55a(0xd8)==_0x2ddf57&&_0x29fe2b[_0x7eb55a(0xd9)](_0x7eb55a(0xa7));},0x3e8);}[_0x4768c9(0x92)](){const _0x2347c2=_0x4768c9,{editor:_0xc32d76}=this,_0x5e75ff=_0xc32d76[_0x2347c2(0xa8)][_0x2347c2(0xd3)](_0x2347c2(0xa1));if(!_0x5e75ff)return;const _0x3a9126=this[_0x2347c2(0xd2)](_0xc32d76[_0x2347c2(0xdd)][_0x2347c2(0xd3)](_0x2347c2(0xb3)))[_0x2347c2(0xda)]((_0x43c108,_0x3734e7)=>{const _0x3b4cc5=_0x2347c2,_0x13ec84=this[_0x3b4cc5(0x96)](_0x3734e7[_0x3b4cc5(0xb4)]);return _0x43c108[_0x13ec84]||(_0x43c108[_0x13ec84]=[]),_0x43c108[_0x13ec84][_0x3b4cc5(0x9b)](_0x3734e7),_0x43c108;},{});_0xc32d76[_0x2347c2(0x90)][_0x2347c2(0xc5)](_0x2347c2(0xaf))&&_0xc32d76[_0x2347c2(0xa8)][_0x2347c2(0xd3)](_0x2347c2(0xa1))&&Object[_0x2347c2(0xb5)](_0x3a9126)[_0x2347c2(0x99)](([_0x3123ed,_0x3cceaa])=>{const _0x3a46db=_0x2347c2;_0xc32d76[_0x3a46db(0x90)][_0x3a46db(0xd3)](_0x3a46db(0xaf))[_0x3a46db(0xa4)]({'name':_0x3123ed,'observable':()=>_0x5e75ff,'buttonViewCreator':()=>this[_0x3a46db(0xcd)](_0x3cceaa),'formViewCreator':()=>this[_0x3a46db(0x9e)](_0x3cceaa),'menuBarButtonViewCreator':()=>this[_0x3a46db(0xb8)](_0x3cceaa),'override':_0x3a46db(0x91)!==_0x3123ed});});}[_0x4768c9(0xbe)](){const _0x973217=_0x4768c9;super[_0x973217(0xbe)](),this[_0x973217(0x8b)]&&clearInterval(this[_0x973217(0x8b)]);}[_0x4768c9(0xd2)](_0x9690ed){const _0x4c0ebb=_0x4768c9,{locale:_0x1b8906}=this[_0x4c0ebb(0xca)];return _0x9690ed[_0x4c0ebb(0xc0)](_0x5e0f3c=>{const _0x354f9c=_0x4c0ebb,_0x2e58c2=_0x15a4e5(_0x1b8906,_0x5e0f3c,_0x354f9c(0xd6));switch(_0x5e0f3c){case _0x178d33[_0x354f9c(0xaa)]:return{'icon':_0x4fa790[_0x354f9c(0xa6)],'type':_0x178d33[_0x354f9c(0xaa)],..._0x2e58c2};case _0x178d33[_0x354f9c(0xac)]:return{'icon':_0x577d0a,'type':_0x178d33[_0x354f9c(0xac)],..._0x2e58c2};case _0x178d33[_0x354f9c(0xd0)]:return{'icon':_0x164c47,'type':_0x178d33[_0x354f9c(0xd0)],..._0x2e58c2};case _0x178d33[_0x354f9c(0xc4)]:return{'icon':_0x9cee40,'type':_0x178d33[_0x354f9c(0xc4)],..._0x2e58c2};case _0x178d33[_0x354f9c(0xb7)]:return{'icon':_0x2e0854,'type':_0x178d33[_0x354f9c(0xb7)],..._0x2e58c2};case _0x178d33[_0x354f9c(0x97)]:return{'icon':_0x2f522c,'type':_0x178d33[_0x354f9c(0x97)],..._0x2e58c2};case _0x178d33[_0x354f9c(0xa2)]:return{'icon':_0x4a70dc,'type':_0x178d33[_0x354f9c(0xa2)],..._0x2e58c2};}});}[_0x4768c9(0x96)](_0x2282d3){const _0x19b858=_0x4768c9;switch(_0x2282d3){case _0x178d33[_0x19b858(0xaa)]:return _0x19b858(0xa3);case _0x178d33[_0x19b858(0xac)]:return _0x19b858(0xb2);default:return _0x19b858(0x91);}}[_0x4768c9(0xb9)](_0x418084,_0x34d20f){const _0x3f8b2a=_0x4768c9,_0x22a857=this[_0x3f8b2a(0xca)],_0x529f13=new _0x418084(_0x22a857[_0x3f8b2a(0xb1)]),_0x2c4bde=_0x22a857[_0x3f8b2a(0xa8)][_0x3f8b2a(0xd3)](_0x3f8b2a(0xa1));return _0x529f13[_0x3f8b2a(0xc3)](_0x3f8b2a(0x98))['to'](_0x2c4bde),_0x529f13['on'](_0x3f8b2a(0xba),()=>{const _0x509758=_0x3f8b2a;_0x2c4bde[_0x509758(0xba)](_0x34d20f);}),_0x529f13;}[_0x4768c9(0xcd)](_0x480cfe){const _0x5ded04=_0x4768c9,{locale:_0x2bdb8a}=this[_0x5ded04(0xca)],_0x569227=this[_0x5ded04(0xca)][_0x5ded04(0x90)][_0x5ded04(0xd3)](_0x5ded04(0xaf)),_0x51bc63=_0x480cfe[0x0],_0x230d1a=this[_0x5ded04(0xb9)](_0x227f11,_0x51bc63[_0x5ded04(0xb4)]);return _0x230d1a[_0x5ded04(0xa9)]=_0x51bc63[_0x5ded04(0xa9)],_0x230d1a[_0x5ded04(0xc3)](_0x5ded04(0xcc))['to'](_0x569227,_0x5ded04(0xd1),_0x15e4d2=>_0x15a4e5(_0x2bdb8a,_0x51bc63[_0x5ded04(0xb4)],_0x15e4d2?_0x5ded04(0xc8):_0x5ded04(0xd6))[_0x5ded04(0xbb)]),_0x230d1a[_0x5ded04(0xd4)]=!0x0,_0x230d1a;}[_0x4768c9(0x9e)](_0x3842e1){const _0xe45c9d=_0x4768c9,{locale:_0x13368b}=this[_0xe45c9d(0xca)],_0x5464a3=this[_0xe45c9d(0xca)][_0xe45c9d(0x90)][_0xe45c9d(0xd3)](_0xe45c9d(0xaf));return _0x3842e1[_0xe45c9d(0xc0)](_0x470426=>{const _0x1777d7=_0xe45c9d,_0x7567d7=this[_0x1777d7(0xb9)](_0x227f11,_0x470426[_0x1777d7(0xb4)]);return _0x7567d7[_0x1777d7(0x94)]=!0x0,_0x7567d7[_0x1777d7(0xa9)]=_0x470426[_0x1777d7(0xa9)],_0x7567d7[_0x1777d7(0xc3)](_0x1777d7(0xcc))['to'](_0x5464a3,_0x1777d7(0xd1),_0x55ebf2=>_0x15a4e5(_0x13368b,_0x470426[_0x1777d7(0xb4)],_0x55ebf2?_0x1777d7(0xc8):_0x1777d7(0xd6))[_0x1777d7(0xbb)]),_0x7567d7;});}[_0x4768c9(0xb8)](_0x513b2a){const _0x2f7f24=_0x4768c9;return _0x513b2a[_0x2f7f24(0xc0)](_0x10d163=>{const _0x4f3e76=_0x2f7f24,_0x2e51aa=this[_0x4f3e76(0xb9)](_0xa59eca,_0x10d163[_0x4f3e76(0xb4)]);return _0x2e51aa[_0x4f3e76(0xa9)]=_0x10d163[_0x4f3e76(0xa9)],_0x2e51aa[_0x4f3e76(0xcc)]=_0x10d163[_0x4f3e76(0xd7)],_0x2e51aa;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xa609fd}from'ckeditor5/src/core.js';import{FileRepository as _0x19afa4}from'ckeditor5/src/upload.js';import _0x4a4934 from'./uploadcareediting.js';import _0x5938d2 from'./utils/uploadutils.js';import{getImageUrls as _0x3516a1}from'./utils/editingutils.js';export default class f extends _0xa609fd{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x19afa4,_0x4a4934];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1e0453=this['editor'];if(!!!_0x1e0453['config']['get']('uploadcare'))return;_0x1e0453['plugins']['get'](_0x19afa4)['createUploadAdapter']=_0x864111=>new E(_0x864111,_0x1e0453),_0x1e0453['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x43ed45,{imageElement:_0x3079c8,data:_0x380c0c})=>{_0x1e0453['model']['change'](_0x41cb45=>{_0x41cb45['setAttribute']('uploadcareImageId',_0x380c0c['uploadcareImageId'],_0x3079c8);});});}}class E{constructor(_0x389c97,_0x2955fc){this['loader']=_0x389c97,this['editor']=_0x2955fc,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2db32a=this['editor']['config']['get']('uploadcare.pubkey'),_0x540c04=await this['loader']['file'];return _0x5938d2['upload']({'file':_0x540c04,'publicKey':_0x2db32a,'signal':this['controller']['signal'],'onProgress':_0x14d8a8=>{_0x14d8a8&&_0x14d8a8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x14d8a8['value']);}})['then'](async _0x4e9a30=>{const {imageFallbackUrl:_0x4bcefb,imageSources:_0x422985}=_0x3516a1(_0x4e9a30['cdnUrl'],_0x4e9a30['imageInfo']['width']);return{'uploadcareImageId':_0x4e9a30['uuid'],'default':_0x4bcefb,'sources':_0x422985};})['catch'](()=>{const _0x42940d=t('Cannot\x20upload\x20file:')+('\x20'+_0x540c04['name']+'.');return Promise['reject'](_0x42940d);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x3ec0fd}from'../uploadcareconfig.js';export function getTranslation(_0x18b334,_0x4e5823,_0x3621b1){const t=_0x18b334['t'],_0x35c443=_0x18b334['t'];switch(_0x4e5823){case _0x3ec0fd['Local']:return{'text':_0x35c443('Insert'===_0x3621b1?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x35c443('From\x20computer')};case _0x3ec0fd['URL']:return{'text':'Insert'===_0x3621b1?_0x35c443('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x35c443('Via\x20URL')};case _0x3ec0fd['Dropbox']:return{'text':t('Insert'===_0x3621b1?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x3ec0fd['Facebook']:return{'text':t('Insert'===_0x3621b1?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x3ec0fd['GDrive']:return{'text':t('Insert'===_0x3621b1?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x3ec0fd['GPhotos']:return{'text':t('Insert'===_0x3621b1?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x3ec0fd['OneDrive']:return{'text':t('Insert'===_0x3621b1?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4e5823;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3ef24d=_0x11d5;(function(_0x2cbca3,_0x2be683){var _0x126ffe=_0x11d5,_0xb5fd64=_0x2cbca3();while(!![]){try{var _0x102fc1=parseInt(_0x126ffe(0x111))/0x1*(-parseInt(_0x126ffe(0x10c))/0x2)+parseInt(_0x126ffe(0x11e))/0x3*(parseInt(_0x126ffe(0x117))/0x4)+parseInt(_0x126ffe(0x11b))/0x5*(-parseInt(_0x126ffe(0x114))/0x6)+parseInt(_0x126ffe(0x10a))/0x7*(parseInt(_0x126ffe(0x11a))/0x8)+parseInt(_0x126ffe(0x11d))/0x9+parseInt(_0x126ffe(0x113))/0xa+-parseInt(_0x126ffe(0x10f))/0xb*(parseInt(_0x126ffe(0x115))/0xc);if(_0x102fc1===_0x2be683)break;else _0xb5fd64['push'](_0xb5fd64['shift']());}catch(_0x54062c){_0xb5fd64['push'](_0xb5fd64['shift']());}}}(_0x1b2a,0xa5084));import{FocusTracker as _0x243896}from'ckeditor5/src/utils.js';function _0x1b2a(){var _0xe2d130=['95412IiElsr','bindTemplate','6812yZiGwg','forwardCycle','focusCycler','1349416vegCRa','670zSUYej','getFocusableElement','9350424IhSuJg','255rbGtmI','35CtLeGV','true','59250cEfCKp','fire','div','88ejhqKo','focusTracker','37ACksfl','createCollection','4975230PRxVZs','30846eeNpFE'];_0x1b2a=function(){return _0xe2d130;};return _0x1b2a();}import{View as _0x4fb43c,FocusCycler as _0x1bc249}from'ckeditor5/src/ui.js';function _0x11d5(_0x10f7e7,_0x4b3de6){var _0x1b2a1f=_0x1b2a();return _0x11d5=function(_0x11d5a0,_0x339a40){_0x11d5a0=_0x11d5a0-0x10a;var _0x11e441=_0x1b2a1f[_0x11d5a0];return _0x11e441;},_0x11d5(_0x10f7e7,_0x4b3de6);}import'../../theme/uploadcare-form.css';export default class q extends _0x4fb43c{constructor(_0x37211e){var _0x2e1f76=_0x11d5;super(_0x37211e),this[_0x2e1f76(0x110)]=new _0x243896(),this[_0x2e1f76(0x119)]=new _0x1bc249({'focusables':this[_0x2e1f76(0x112)](),'focusTracker':this[_0x2e1f76(0x110)]});}[_0x3ef24d(0x11c)](){var _0x20f2d8=_0x3ef24d;return{'tag':_0x20f2d8(0x10e),'attributes':{'aria-hidden':_0x20f2d8(0x10b),'tabindex':'0'},'on':{'focus':this[_0x20f2d8(0x116)]['to'](()=>{var _0x16edd=_0x20f2d8;this[_0x16edd(0x119)][_0x16edd(0x10d)](_0x16edd(0x118));})}};}}
|