@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251210.0 → 0.0.0-nightly-next-20251210.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x3a1a05,Command as _0x52bb4f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2f034a,IconGooglePhotos as _0x30f923,IconGoogleDrive as _0x2f1c9b,IconFacebook as _0xe15202,IconDropbox as _0x2d3392,IconUploadcareLink as _0x3d8e84,IconUploadcareImageUpload as _0x3b04ac,IconError as _0x55dab6,IconUploadcareImageEdit as _0x125b31}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4e4686,MenuBarMenuListItemButtonView as _0x3d3c7f,View as _0x248a7e,FocusCycler as _0x13a210,Dialog as _0x1e307c,DialogViewPosition as _0x2a0755,SpinnerView as _0x348c94,IconView as _0x2c122b,Notification as _0x2d41bd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x37cf0f,DomEmitterMixin as _0xf7d239,global as _0x818c6,getAncestors as _0x181be2,ObservableMixin as _0x40fb6a,uid as _0x4cb41b,createElement as _0x18e4f8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x879fab}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3fb043,info as _0x176ffe}from'@uploadcare/upload-client';import*as _0x5c02eb from'@uploadcare/file-uploader';var i=function(_0x2ae887){return _0x2ae887['Local']='local',_0x2ae887['URL']='url',_0x2ae887['Dropbox']='dropbox',_0x2ae887['GDrive']='gdrive',_0x2ae887['Facebook']='facebook',_0x2ae887['GPhotos']='gphotos',_0x2ae887['OneDrive']='onedrive',_0x2ae887;}({});function _(_0x575eda,_0x2f0727,_0x4d29fc){const t=_0x575eda['t'],_0x21cc5b=_0x575eda['t'];switch(_0x2f0727){case i['Local']:return{'text':_0x21cc5b('Insert'===_0x4d29fc?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x21cc5b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4d29fc?_0x21cc5b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x21cc5b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4d29fc?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4d29fc?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4d29fc?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4d29fc?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4d29fc?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2f0727;}}class e extends _0x3a1a05{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x25b718=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x18f59f;for(const _0x558878 in _0x25b718){const _0x452191=_0x558878,_0x519cc1=_0x25b718[_0x452191];if('uploadcareLicenseKeyValid'==_0x519cc1||'uploadcareLicenseKeyInvalid'==_0x519cc1||'uploadcareLicenseKeyExpired'==_0x519cc1||'uploadcareLicenseKeyDomainLimit'==_0x519cc1||'uploadcareLicenseKeyNotAllowed'==_0x519cc1||'uploadcareLicenseKeyEvaluationLimit'==_0x519cc1||'uploadcareLicenseKeyTrialLimit'==_0x519cc1||'uploadcareLicenseKeyUsageLimit'==_0x519cc1){delete _0x25b718[_0x452191],_0x18f59f=_0x519cc1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x18f59f&&_0x25b718['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x18f59f&&_0x25b718['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x18f59f&&_0x25b718['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x18f59f&&_0x25b718['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x18f59f&&_0x25b718['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x18f59f&&_0x25b718['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x18f59f&&_0x25b718['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x85031a}=this,_0x1d98a8=_0x85031a['commands']['get']('uploadcare');if(!_0x1d98a8)return;const _0x1085d2=this['_normalizeConfigSourceList'](_0x85031a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x291b48,_0x280950)=>{const _0x51d6d1=this['_getIntegrationKey'](_0x280950['type']);return _0x291b48[_0x51d6d1]||(_0x291b48[_0x51d6d1]=[]),_0x291b48[_0x51d6d1]['push'](_0x280950),_0x291b48;},{});_0x85031a['plugins']['has']('ImageInsertUI')&&_0x85031a['commands']['get']('uploadcare')&&Object['entries'](_0x1085d2)['forEach'](([_0xc5f01a,_0x9eeff3])=>{_0x85031a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xc5f01a,'observable':()=>_0x1d98a8,'buttonViewCreator':()=>this['_createToolbarButton'](_0x9eeff3),'formViewCreator':()=>this['_createDropdownButtons'](_0x9eeff3),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x9eeff3),'override':'assetManager'!==_0xc5f01a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x13e14d){const {locale:_0x2af9ba}=this['editor'];return _0x13e14d['map'](_0x3ee07b=>{const _0x5d6074=_(_0x2af9ba,_0x3ee07b,'Insert');switch(_0x3ee07b){case i['Local']:return{'icon':_0x3b04ac,'type':i['Local'],..._0x5d6074};case i['URL']:return{'icon':_0x3d8e84,'type':i['URL'],..._0x5d6074};case i['Dropbox']:return{'icon':_0x2d3392,'type':i['Dropbox'],..._0x5d6074};case i['Facebook']:return{'icon':_0xe15202,'type':i['Facebook'],..._0x5d6074};case i['GDrive']:return{'icon':_0x2f1c9b,'type':i['GDrive'],..._0x5d6074};case i['GPhotos']:return{'icon':_0x30f923,'type':i['GPhotos'],..._0x5d6074};case i['OneDrive']:return{'icon':_0x2f034a,'type':i['OneDrive'],..._0x5d6074};}});}['_getIntegrationKey'](_0x1e66e1){switch(_0x1e66e1){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x22334f,_0x4a979b){const _0x53ed53=this['editor'],_0x34ca2c=new _0x22334f(_0x53ed53['locale']),_0x33598c=_0x53ed53['commands']['get']('uploadcare');return _0x34ca2c['bind']('isEnabled')['to'](_0x33598c),_0x34ca2c['on']('execute',()=>{_0x33598c['execute'](_0x4a979b);}),_0x34ca2c;}['_createToolbarButton'](_0x5bebc5){const {locale:_0x3ff129}=this['editor'],_0x7c2512=this['editor']['plugins']['get']('ImageInsertUI'),_0x380a74=_0x5bebc5[0x0],_0x1051eb=this['_createButton'](_0x4e4686,_0x380a74['type']);return _0x1051eb['icon']=_0x380a74['icon'],_0x1051eb['bind']('label')['to'](_0x7c2512,'isImageSelected',_0x43344d=>_(_0x3ff129,_0x380a74['type'],_0x43344d?'Replace':'Insert')['text']),_0x1051eb['tooltip']=!0x0,_0x1051eb;}['_createDropdownButtons'](_0x786f67){const {locale:_0x1b8c16}=this['editor'],_0x850bb4=this['editor']['plugins']['get']('ImageInsertUI');return _0x786f67['map'](_0x3987c7=>{const _0x4d7e3f=this['_createButton'](_0x4e4686,_0x3987c7['type']);return _0x4d7e3f['withText']=!0x0,_0x4d7e3f['icon']=_0x3987c7['icon'],_0x4d7e3f['bind']('label')['to'](_0x850bb4,'isImageSelected',_0x3b2415=>_(_0x1b8c16,_0x3987c7['type'],_0x3b2415?'Replace':'Insert')['text']),_0x4d7e3f;});}['_createMenuBarButtons'](_0x51d585){return _0x51d585['map'](_0x5b5334=>{const _0x368906=this['_createButton'](_0x3d3c7f,_0x5b5334['type']);return _0x368906['icon']=_0x5b5334['icon'],_0x368906['label']=_0x5b5334['shortText'],_0x368906;});}}class F extends _0x248a7e{['focusTracker'];['focusCycler'];constructor(_0x5dc27c){super(_0x5dc27c),this['focusTracker']=new _0x37cf0f(),this['focusCycler']=new _0x13a210({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x47fd15,_0x5302c4){super(_0x47fd15),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x5302c4}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5090b7,_0x491a08){const _0x39cc89=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x599adb=>_0x599adb<=_0x491a08)['map'](_0x5c75c6=>_0x5090b7['replace'](/\/$/,'')+'/-/resize/'+_0x5c75c6+'x/\x20'+_0x5c75c6+'w');return{'imageFallbackUrl':_0x5090b7,'imageSources':[{'srcset':_0x39cc89['join'](',\x20'),'sizes':'(max-width:\x20'+_0x491a08+'px)\x20100vw,\x20'+_0x491a08+'px','type':'image/webp'}]};}function S(_0x21a0be,_0x206996,_0x57e252){const _0xa4d116=_0x21a0be['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xa4d116?parseInt(_0xa4d116[0x1],0xa):_0x206996,'height':_0xa4d116?parseInt(_0xa4d116[0x2],0xa):_0x57e252};}function p(_0x39f240,_0x232160){const _0x14c5f2=new(_0xf7d239())(),_0x49b309=_0x39f240['plugins']['get']('ImageUtils'),_0xd2b7e7=_0x39f240['editing']['mapper']['toViewElement'](_0x232160),_0x4d2839=_0x49b309['findViewImgElement'](_0xd2b7e7),_0x299101=_0x39f240['editing']['view']['domConverter']['viewToDom'](_0x4d2839),_0x41767b=_0x232160['getAttribute']('width'),_0x200987=_0x232160['getAttribute']('height'),_0x4f4c4a='image-processing';_0x39f240['editing']['view']['change'](_0xfbf5d1=>{_0xfbf5d1['addClass'](_0x4f4c4a,_0xd2b7e7),_0xfbf5d1['setStyle']('aspect-ratio',_0x41767b+'/'+_0x200987,_0x4d2839);}),_0x14c5f2['listenTo'](_0x299101,'load',()=>{_0x14c5f2['stopListening'](_0x299101,'load'),_0x39f240['editing']['view']['change'](_0x59026b=>{_0x59026b['removeClass'](_0x4f4c4a,_0xd2b7e7),_0x59026b['removeStyle']('aspect-ratio',_0x4d2839);});});}function G(_0x19f89d){if(Array['isArray'](_0x19f89d)){const _0x518f6f=_0x19f89d['map'](G);return _0x2a0250=>_0x518f6f['some'](_0x9ec002=>_0x9ec002(_0x2a0250));}if('origin'==_0x19f89d){const _0x279813=_0x818c6['window']['location']['origin'];return _0x4172ee=>new URL(_0x4172ee,_0x818c6['document']['baseURI'])['origin']==_0x279813;}return'function'==typeof _0x19f89d?_0x19f89d:_0x19f89d instanceof RegExp?_0x42c3cc=>!(!_0x42c3cc['match'](_0x19f89d)&&!_0x42c3cc['replace'](/^https?:\/\//,'')['match'](_0x19f89d)):()=>!0x1;}function A(_0x4ad735,_0x3824c6){return _0x181be2(_0x4ad735['target'])['includes'](_0x3824c6);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x40fb6a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xf51b84,_0x112bfc,_0x44f73a){super(),this['_editor']=_0xf51b84,this['_editing']=_0x112bfc,this['_dialog']=_0xf51b84['plugins']['get'](_0x1e307c),this['_api']=_0x112bfc['ctxElement']['getAPI'](),this['_type']=_0x44f73a,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x183e8a,model:_0x406cf6}=this['_editor'],_0x53c893=_0x406cf6['document']['selection']['getSelectedElement'](),_0xa024d0=_0x53c893&&(_0x53c893['is']('element','imageBlock')||_0x53c893['is']('element','imageInline'));this['_formView']=new x(_0x183e8a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3b04ac,'title':_(_0x183e8a,this['_type'],_0xa024d0?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2a0755['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4d74e3=>!A(_0x4d74e3,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x58f30e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x390ba3=>{const _0x3509da=_0x58f30e['length'];for(const _0x123f41 of _0x58f30e){const _0x591c4b=_0x123f41===_0x58f30e[_0x3509da-0x1],{cdnUrl:_0x31bc06,fileInfo:_0x563cd2}=_0x123f41;if(!_0x31bc06||!_0x563cd2)continue;const {width:_0x343d48,height:_0x4f9588}=_0x563cd2['imageInfo'],_0x2057da=S(_0x31bc06,_0x343d48,_0x4f9588),_0x105917=C(_0x31bc06,_0x2057da['width']),_0x2eec67={'id':_0x563cd2['uuid'],'type':'image','attributes':{'imageDimension':_0x2057da,..._0x105917}};this['_insertAsset'](_0x2eec67,_0x591c4b,_0x390ba3);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x95a51=>{'idle'===_0x95a51['detail']['status']&&!_0x95a51['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x108ff6,_0x12ecc9,_0x569616){const _0x8c91b2=this['_editor']['model']['document']['selection'],_0x997908=_0x8c91b2['getSelectedElement'](),_0x23edfd=!(!_0x997908||!_0x997908['is']('element','imageInline'));_0x569616['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x108ff6,_0x23edfd),_0x12ecc9||_0x569616['setSelection'](_0x8c91b2['getLastPosition']());}['_insertImage'](_0x5d231e,_0xdb7253){const _0x19e057=this['_editor'],{imageDimension:_0x216108,imageFallbackUrl:_0x40e0b9,imageSources:_0x3f00ba}=_0x5d231e['attributes'];_0x19e057['execute']('insertImage',{'imageType':_0xdb7253?'imageInline':null,'source':{'uploadcareImageId':_0x5d231e['id'],'src':_0x40e0b9,'sources':_0x3f00ba,..._0x216108}});}}class w extends _0x52bb4f{['_editing'];['_controller']=null;static get['requires'](){return[_0x1e307c,o];}constructor(_0x524527){super(_0x524527),this['_editing']=_0x524527['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x23e52e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x23e52e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x244ec4,..._0x451747}){return _0x3fb043(_0x244ec4,_0x451747);}static['getInfo'](_0x1821a7,_0x5ad5bd){return _0x176ffe(_0x1821a7,_0x5ad5bd);}}class f extends _0x3a1a05{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x879fab,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1d714a=this['editor'];if(!!!_0x1d714a['config']['get']('uploadcare'))return;_0x1d714a['plugins']['get'](_0x879fab)['createUploadAdapter']=_0x323f5e=>new k(_0x323f5e,_0x1d714a),_0x1d714a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2cc64e,{imageElement:_0xb488ff,data:_0x26efee})=>{_0x1d714a['model']['change'](_0x216519=>{_0x216519['setAttribute']('uploadcareImageId',_0x26efee['uploadcareImageId'],_0xb488ff);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x52e37b,_0x43d5fd){this['loader']=_0x52e37b,this['editor']=_0x43d5fd,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x50bc13=await this['loader']['file'];return j['upload']({'file':_0x50bc13,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1c0421=>{_0x1c0421&&_0x1c0421['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1c0421['value']);}})['then'](async _0x5a09db=>{const {imageFallbackUrl:_0x18f78a,imageSources:_0x14f8d7}=C(_0x5a09db['cdnUrl'],_0x5a09db['imageInfo']['width']);return{'uploadcareImageId':_0x5a09db['uuid'],'default':_0x18f78a,'sources':_0x14f8d7};})['catch'](()=>{const _0x298b3a=t('Cannot\x20upload\x20file:')+('\x20'+_0x50bc13['name']+'.');return Promise['reject'](_0x298b3a);});}['abort'](){this['controller']['abort']();}}class o extends _0x3a1a05{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1e307c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x18f4fe){super(_0x18f4fe),this['ucContextId']=_0x4cb41b();}['init'](){const _0x48ac32=this['editor'];_0x48ac32['commands']['add']('uploadcare',new w(_0x48ac32));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x53b3b2=_0x818c6['document']['querySelector']('input[uploadcare-file-input]');_0x53b3b2&&_0x53b3b2['remove']();}),async function(_0x4c2f23){const _0x10662a=_0x112285([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2a7598=0x535f8c3a,_0x2d635f=0x5358f7ba^_0x2a7598,_0x3353b3=window[_0x112285([0x44,0x61,0x74,0x65])][_0x112285([0x6e,0x6f,0x77])](),_0x4e5d3a=_0x4c2f23[_0x112285([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x7fa8a3=new window[(_0x112285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x473243=>{_0x4e5d3a[_0x112285([0x6f,0x6e,0x63,0x65])](_0x112285([0x72,0x65,0x61,0x64,0x79]),_0x473243);}),_0x2ae597={[_0x112285([0x6b,0x74,0x79])]:_0x112285([0x45,0x43]),[_0x112285([0x75,0x73,0x65])]:_0x112285([0x73,0x69,0x67]),[_0x112285([0x63,0x72,0x76])]:_0x112285([0x50,0x2d,0x32,0x35,0x36]),[_0x112285([0x78])]:_0x112285([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]),[_0x112285([0x79])]:_0x112285([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]),[_0x112285([0x61,0x6c,0x67])]:_0x112285([0x45,0x53,0x32,0x35,0x36])},_0x1067a5=_0x4e5d3a[_0x112285([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x112285([0x67,0x65,0x74])](_0x112285([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x20909a(){let _0x28e3af,_0x20c6c8=null,_0xf894af=null;try{if(_0x1067a5==_0x112285([0x47,0x50,0x4c]))return _0x112285([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x28e3af=_0x648811(),!_0x28e3af)return _0x112285([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x28e3af[_0x112285([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf894af=_0x185d29(_0x28e3af[_0x112285([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x28e3af[_0x112285([0x6a,0x74,0x69])])),await _0x410506()?_0x253ff3()?_0x231fa8()?_0x112285([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1facb8()?(_0x28e3af[_0x112285([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x112285([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x20c6c8=_0x1e8b5a(_0x112285([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x28e3af[_0x112285([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x112285([0x74,0x72,0x69,0x61,0x6c])&&(_0x20c6c8=_0x1e8b5a(_0x112285([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x25beea()):_0x112285([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x112285([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x112285([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x112285([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x231fa8(){const _0x2861d9=[_0x112285([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x112285([0x74,0x72,0x69,0x61,0x6c])][_0x112285([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28e3af[_0x112285([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3353b3/0x3e8:0xe10*_0x2d635f;return _0x28e3af[_0x112285([0x65,0x78,0x70])]<_0x2861d9;}function _0x253ff3(){const _0x3d29c9=_0x28e3af[_0x112285([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3d29c9&&(!!_0x3d29c9[_0x112285([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x112285([0x2a]))||!!_0x3d29c9[_0x112285([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x112285([0x55,0x50,0x4c,0x43])));}function _0x1facb8(){const _0x41eceb=_0x28e3af[_0x112285([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x41eceb||0x0==_0x41eceb[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x38f04f}=new URL(window[_0x112285([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x41eceb[_0x112285([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f04f))return!0x0;const _0x44958c=_0x38f04f[_0x112285([0x73,0x70,0x6c,0x69,0x74])](_0x112285([0x2e]));return _0x41eceb[_0x112285([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12a12c=>_0x12a12c[_0x112285([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x112285([0x2a])))[_0x112285([0x6d,0x61,0x70])](_0x1ad47c=>_0x1ad47c[_0x112285([0x73,0x70,0x6c,0x69,0x74])](_0x112285([0x2e])))[_0x112285([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59ba74=>_0x59ba74[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x44958c[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x112285([0x6d,0x61,0x70])](_0x4cf477=>Array(_0x44958c[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4cf477[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x112285([0x66,0x69,0x6c,0x6c])](_0x4cf477[0x0]===_0x112285([0x2a])?_0x112285([0x2a]):'')[_0x112285([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4cf477))[_0x112285([0x73,0x6f,0x6d,0x65])](_0x55d7a3=>_0x44958c[_0x112285([0x65,0x76,0x65,0x72,0x79])]((_0x2512c4,_0x312361)=>_0x55d7a3[_0x312361]===_0x2512c4||_0x55d7a3[_0x312361]===_0x112285([0x2a])));}function _0x25beea(){return _0x20c6c8&&_0xf894af?new window[(_0x112285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c1bc6,_0x1d446d)=>{_0x20c6c8[_0x112285([0x74,0x68,0x65,0x6e])](_0x2c1bc6,_0x1d446d),_0xf894af[_0x112285([0x74,0x68,0x65,0x6e])](_0x3774f1=>{_0x3774f1!=_0x112285([0x56,0x61,0x6c,0x69,0x64])&&_0x2c1bc6(_0x3774f1);},_0x1d446d);}):_0x20c6c8||_0xf894af||_0x112285([0x56,0x61,0x6c,0x69,0x64]);}}function _0x185d29(_0x59ce3b,_0x494f06){return new window[(_0x112285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfec0ac=>{if(_0x2e1a4f())return _0xfec0ac(_0x112285([0x56,0x61,0x6c,0x69,0x64]));_0x4724a8(),_0x4e5d3a[_0x112285([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x112285([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3b3dcb=!0x1;const _0x495046=_0x4cb41b();function _0x4ceed5(_0x4a0ce2){return!!_0x4a0ce2&&(typeof _0x4a0ce2===_0x112285([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a0ce2===_0x112285([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a0ce2[_0x112285([0x74,0x68,0x65,0x6e])]===_0x112285([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a0ce2[_0x112285([0x63,0x61,0x74,0x63,0x68])]===_0x112285([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29d12e(_0x4beac3){_0x45c7e5(_0x4beac3)[_0x112285([0x74,0x68,0x65,0x6e])](_0x59dfea=>{if(!_0x59dfea||_0x59dfea[_0x112285([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x112285([0x6f,0x6b]))return _0x112285([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x491e84(_0x48e136(_0x495046+_0x494f06))!=_0x59dfea[_0x112285([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x112285([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x112285([0x56,0x61,0x6c,0x69,0x64]);})[_0x112285([0x74,0x68,0x65,0x6e])](_0x45028c=>(_0x37c2c3(),_0x45028c),()=>{const _0x5463fa=_0x374f39();return null==_0x5463fa?(_0x37c2c3(),_0x112285([0x56,0x61,0x6c,0x69,0x64])):_0x112285(_0x3353b3-_0x5463fa>(0x7753083a^_0x2a7598)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x112285([0x74,0x68,0x65,0x6e])](_0xfec0ac)[_0x112285([0x63,0x61,0x74,0x63,0x68])](()=>{_0xfec0ac(_0x112285([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b91d2=0x536962ba^_0x2a7598;function _0x37c2c3(){const _0x527ecd=_0x112285([0x6c,0x6c,0x63,0x74,0x2d])+_0x491e84(_0x48e136(_0x59ce3b)),_0x31aff4=_0x3deeba(_0x491e84(window[_0x112285([0x4d,0x61,0x74,0x68])][_0x112285([0x63,0x65,0x69,0x6c])](_0x3353b3/_0x2b91d2)));window[_0x112285([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x112285([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x527ecd,_0x31aff4);}function _0x374f39(){const _0x369c16=_0x112285([0x6c,0x6c,0x63,0x74,0x2d])+_0x491e84(_0x48e136(_0x59ce3b)),_0x38be8a=window[_0x112285([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x112285([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x369c16);return _0x38be8a?window[_0x112285([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3deeba(_0x38be8a),0x10)*_0x2b91d2:null;}function _0x45c7e5(_0x14cc06){return new window[(_0x112285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a0409,_0x44fba1)=>{_0x14cc06[_0x112285([0x74,0x68,0x65,0x6e])](_0x5a0409,_0x44fba1),window[_0x112285([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x44fba1,0x535e58fa^_0x2a7598);});}}_0x4e5d3a[_0x112285([0x6f,0x6e])](_0x112285([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12a31c,_0x64d4d1)=>{if(_0x64d4d1[0x0]!=_0x59ce3b)return _0xfec0ac(_0x112285([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x64d4d1[0x1]={..._0x64d4d1[0x1],[_0x112285([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x495046};},{[_0x112285([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x112285([0x68,0x69,0x67,0x68])}),_0x4e5d3a[_0x112285([0x6f,0x6e])](_0x112285([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x224da8=>{_0x4ceed5(_0x224da8[_0x112285([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3b3dcb=!0x0,_0x29d12e(_0x224da8[_0x112285([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x112285([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x112285([0x6c,0x6f,0x77])}),_0x7fa8a3[_0x112285([0x74,0x68,0x65,0x6e])](()=>{_0x3b3dcb||_0xfec0ac(_0x112285([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e1a4f(){return _0x4e5d3a[_0x112285([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x112285([0x76,0x69,0x65,0x77])][_0x112285([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x112285([0x61,0x75,0x74,0x6f]);}function _0x4724a8(){_0x4e5d3a[_0x112285([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x112285([0x76,0x69,0x65,0x77])][_0x112285([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x112285([0x61,0x75,0x74,0x6f]);}}function _0x1e8b5a(_0x28d357){const _0x26593e=[new window[(_0x112285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29e03d=>setTimeout(_0x29e03d,0x5356b2f6^_0x2a7598)),_0x7fa8a3[_0x112285([0x74,0x68,0x65,0x6e])](()=>new window[(_0x112285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa42929=>{let _0x26abe7=0x0;_0x4e5d3a[_0x112285([0x6d,0x6f,0x64,0x65,0x6c])][_0x112285([0x6f,0x6e])](_0x112285([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d77af,_0x5bead1)=>{_0x5bead1[0x0][_0x112285([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x26abe7++,_0x26abe7==(0x535f8dc2^_0x2a7598)&&(_0xa42929(),_0x4d77af[_0x112285([0x6f,0x66,0x66])]());});}))];return window[_0x112285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x112285([0x72,0x61,0x63,0x65])](_0x26593e)[_0x112285([0x74,0x68,0x65,0x6e])](()=>_0x28d357);}async function _0x1b3255(){await _0x7fa8a3,_0x4e5d3a[_0x112285([0x6d,0x6f,0x64,0x65,0x6c])][_0x112285([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26b218,_0x4e5d3a[_0x112285([0x6d,0x6f,0x64,0x65,0x6c])][_0x112285([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26b218,_0x4e5d3a[_0x112285([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x112285([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x523805(_0x2e5d6d){const _0x4f6a2d=_0xe1b4d3();_0x4e5d3a[_0x4f6a2d]=_0x112285([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2e5d6d,_0x2e5d6d!=_0x112285([0x56,0x61,0x6c,0x69,0x64])&&_0x1b3255();}function _0xe1b4d3(){const _0x1f1e67=window[_0x112285([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x112285([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x112285([0x6e,0x6f,0x77])]())[_0x112285([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x112285([0x2e]),'');let _0x282052=_0x112285([0x68]);for(let _0x4568af=0x0;_0x4568af<_0x1f1e67[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4568af+=0x2){let _0x5c3ec9=window[_0x112285([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f1e67[_0x112285([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4568af,_0x4568af+0x2));_0x5c3ec9>=_0x10662a[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c3ec9-=_0x10662a[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x282052+=_0x10662a[_0x5c3ec9];}return _0x282052;}function _0x648811(){const _0x780a6=_0x1067a5[_0x112285([0x73,0x70,0x6c,0x69,0x74])](_0x112285([0x2e]));if(0x3!=_0x780a6[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a2cb4(_0x780a6[0x1]);function _0x1a2cb4(_0x27c315){const _0x412189=_0x23c291(_0x27c315);return _0x412189&&_0x4946eb()?_0x412189:null;function _0x4946eb(){const _0x570795=_0x412189[_0x112285([0x6a,0x74,0x69])],_0x2a1824=window[_0x112285([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x570795[_0x112285([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x570795[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x41b6f6={..._0x412189,[_0x112285([0x6a,0x74,0x69])]:_0x570795[_0x112285([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x570795[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x41b6f6[_0x112285([0x76,0x63])],_0x48e136(_0x41b6f6)==_0x2a1824;}}}async function _0x410506(){let _0x51eb88=!0x0;try{const _0x35506f=_0x1067a5[_0x112285([0x73,0x70,0x6c,0x69,0x74])](_0x112285([0x2e])),[_0x21d828,_0x293ef8,_0xa51040]=_0x35506f;return _0x1285e6(_0x21d828),await _0x1ff3a6(_0x21d828,_0x293ef8,_0xa51040),_0x51eb88;}catch{return!0x1;}function _0x1285e6(_0x11967e){const _0xaf82b5=_0x23c291(_0x11967e);_0xaf82b5&&_0xaf82b5[_0x112285([0x61,0x6c,0x67])]==_0x112285([0x45,0x53,0x32,0x35,0x36])||(_0x51eb88=!0x1);}async function _0x1ff3a6(_0x546260,_0x1f51c2,_0x3f0238){const _0x2cb67b=window[_0x112285([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x112285([0x66,0x72,0x6f,0x6d])](_0x3d2702(_0x3f0238),_0x3588c1=>_0x3588c1[_0x112285([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x398540=new window[(_0x112285([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x112285([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x546260+_0x112285([0x2e])+_0x1f51c2),_0x582cbd=window[_0x112285([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x112285([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x582cbd)return;const _0x50a897=await _0x582cbd[_0x112285([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x112285([0x6a,0x77,0x6b]),_0x2ae597,{[_0x112285([0x6e,0x61,0x6d,0x65])]:_0x112285([0x45,0x43,0x44,0x53,0x41]),[_0x112285([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x112285([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x112285([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x582cbd[_0x112285([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x112285([0x6e,0x61,0x6d,0x65])]:_0x112285([0x45,0x43,0x44,0x53,0x41]),[_0x112285([0x68,0x61,0x73,0x68])]:{[_0x112285([0x6e,0x61,0x6d,0x65])]:_0x112285([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x50a897,_0x2cb67b,_0x398540)||(_0x51eb88=!0x1);}}function _0x23c291(_0x45adad){return _0x45adad[_0x112285([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x112285([0x65,0x79]))?JSON[_0x112285([0x70,0x61,0x72,0x73,0x65])](_0x3d2702(_0x45adad)):null;}function _0x3d2702(_0x57a6bb){return window[_0x112285([0x61,0x74,0x6f,0x62])](_0x57a6bb[_0x112285([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x112285([0x2b]))[_0x112285([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x112285([0x2f])));}function _0x48e136(_0x42a9a3){let _0x302b86=0x1505;function _0x4b67d3(_0x5277e5){for(let _0x2938b2=0x0;_0x2938b2<_0x5277e5[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2938b2++){const _0x39e657=_0x5277e5[_0x112285([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2938b2);_0x302b86=(_0x302b86<<0x5)+_0x302b86+_0x39e657,_0x302b86&=_0x302b86;}}function _0x4f93ea(_0xdf705){Array[_0x112285([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xdf705)?_0xdf705[_0x112285([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f93ea):_0xdf705&&typeof _0xdf705==_0x112285([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x112285([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xdf705)[_0x112285([0x73,0x6f,0x72,0x74])]()[_0x112285([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59775e,_0x480a62])=>{_0x4b67d3(_0x59775e),_0x4f93ea(_0x480a62);}):_0x4b67d3(window[_0x112285([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xdf705));}return _0x4f93ea(_0x42a9a3),_0x302b86>>>0x0;}function _0x491e84(_0x4da661){return _0x4da661[_0x112285([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x112285([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x112285([0x30]));}function _0x3deeba(_0x543407){return _0x543407[_0x112285([0x73,0x70,0x6c,0x69,0x74])]('')[_0x112285([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x112285([0x6a,0x6f,0x69,0x6e])]('');}function _0x26b218(){}function _0x112285(_0x1e806a){return _0x1e806a['map'](_0xa7d0b5=>String['fromCharCode'](_0xa7d0b5))['join']('');}_0x523805(await _0x20909a());}(this);}['_initSchema'](){const _0x2b662d=this['editor']['model']['schema'];_0x2b662d['isRegistered']('imageBlock')&&_0x2b662d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2b662d['isRegistered']('imageInline')&&_0x2b662d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3c4b2e=this['editor'];_0x3c4b2e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3c4b2e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5bb3bb=>_0x5bb3bb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3a9716=_0x3c4b2e['commands']['get']('replaceImageSource');_0x3a9716&&this['listenTo'](_0x3a9716,'cleanupImage',(_0x4c0ef0,[_0x31cd8a,_0x38d93f])=>{_0x31cd8a['removeAttribute']('uploadcareImageId',_0x38d93f);});}['_initConfig'](){const _0x48e731=this['editor']['config']['get']('uploadcare.uploader')||{},_0x321da6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x18e4f8(_0x818c6['document'],'uc-config',{..._0x48e731,'pubkey':_0x321da6,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\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'}),this['_configElement']['iconHrefResolver']=_0x989e9e=>{if('closeMax'==_0x989e9e)return'#uc-icon-arrow-down';},_0x818c6['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x18e4f8(_0x818c6['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x818c6['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x26a901=this['editor']['commands']['get']('insertImage');_0x26a901&&this['listenTo'](_0x26a901,'execute',()=>{const _0x35d08b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x35d08b&&_0x35d08b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x35d08b);});});const _0x3ce456=this['editor']['commands']['get']('uploadcareImageReplace');_0x3ce456&&this['listenTo'](_0x3ce456,'execute',()=>{const _0x1bebae=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1bebae&&_0x1bebae['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1bebae);});});}}class tt extends _0x3a1a05{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ecc67){super(_0x2ecc67),_0x2ecc67['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5c02eb['defineComponents'](_0x5c02eb),this['_defineLocale']();}['_defineLocale'](){const _0x2be2e9=this['editor']['config']['get']('uploadcare.locale'),_0x47ffc5=this['editor']['locale']['contentLanguage'];_0x2be2e9&&_0x5c02eb['defineLocale'](_0x47ffc5,_0x2be2e9);}}class ii extends _0x248a7e{constructor(_0x2f3671){super(_0x2f3671);const t=_0x2f3671['t'],_0x5ec0c7=this['bindTemplate'],_0x55f956=new _0x348c94();_0x55f956['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':[_0x55f956,{'text':_0x5ec0c7['to']('imageUploadProgress',_0xd427c1=>t('Loading\x20image...')+'\x20('+(_0xd427c1||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'}]}]}]});}}class ti extends _0x248a7e{constructor(_0xd561b0){super(_0xd561b0);const t=_0xd561b0['t'];this['set']('errorType',null);const _0x381bae=new _0x4e4686(_0xd561b0);_0x381bae['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x381bae['withText']=!0x0,_0x381bae['class']='ck-button-action',_0x381bae['on']('execute',()=>{this['fire']('retry');}),_0x381bae['bind']('isVisible')['to'](this,'errorType',_0x1087f6=>'NotFound'!==_0x1087f6);const _0x78f9cc=new _0x2c122b();_0x78f9cc['content']=_0x55dab6,_0x78f9cc['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2fc70e=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':[_0x78f9cc,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2fc70e['to']('errorType',_0x502d67=>t('NotFound'!==_0x502d67?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x381bae]},{'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'}]}]}]});}}class ei extends _0x248a7e{constructor(_0x242f1e,_0x7ced54){super(_0x242f1e);const _0x4a6219=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x7ced54,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4a6219['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4b9dd6,_0x549459,_0x4924a2){super(_0x4b9dd6),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4b9dd6),this['_errorView']=new ti(_0x4b9dd6),this['_editingView']=new ei(_0x4b9dd6,_0x4924a2),this['_focusableView']=new _0x248a7e(_0x4b9dd6),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x549459),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x2493b5=>{this['_addUploadcareImageEditorListeners'](_0x2493b5);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x5b04aa,_0x4eb2a2){const _0x54a020='uc-cloud-image-editor',_0x4b2a61=_0x5b04aa['querySelector'](_0x54a020);if(_0x4b2a61)return _0x4eb2a2(_0x4b2a61);const _0x41c7b7=new MutationObserver(_0x1100c0=>{const _0x43584a=_0x1100c0['filter'](_0x543862=>_0x543862['target']===_0x5b04aa&&_0x543862['addedNodes']['length']>0x0&&_0x543862['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x54a020);_0x43584a['length']&&(_0x41c7b7['disconnect'](),_0x4eb2a2(_0x43584a[0x0]['addedNodes'][0x0]));});_0x41c7b7['observe'](_0x5b04aa,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x277635){_0x277635['addEventListener']('apply',_0x44bbb6=>{this['fire']('apply',{'imageSrc':_0x44bbb6['detail']['cdnUrl']});}),_0x277635['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x40fb6a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x32fe3c,_0x53d3b6,_0x234f39){super(),this['_editor']=_0x32fe3c,this['_dialog']=_0x53d3b6,this['_imageElement']=_0x234f39,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 _0x3536d7=this['_imageElement'],_0x348175=_0x3536d7['getAttribute']('uploadcareImageId'),_0x2ccc8b=_0x3536d7['getAttribute']('src');if(_0x348175)await this['_loadImageInfo'](_0x348175,_0x2ccc8b);else{if(this['_imageCache']['has'](_0x2ccc8b)){const _0x1a6272=this['_imageCache']['get'](_0x2ccc8b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1a6272['url'],this['imageDimension']=_0x1a6272['dimension'],this['imageId']=_0x1a6272['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x12e2a1}=this['_editor'],t=_0x12e2a1['t'],_0x292484=new X(_0x12e2a1,this['imageStatus'],this['_attributes']);_0x292484['bind']('status')['to'](this,'imageStatus'),_0x292484['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x292484['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x292484['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x292484,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x125b31,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x292484,'position':_0x2a0755['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x292484['focus']();},'onHide':()=>{_0x292484['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3c457c=>!A(_0x3c457c,_0x292484['element'])}});}['_loadImageInfo'](_0x3dbc7d,_0x3fbd10){return j['getInfo'](_0x3dbc7d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4e76bf=>{const {width:_0x363826,height:_0x45f378}=_0x4e76bf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3fbd10,this['imageDimension']={'width':_0x363826,'height':_0x45f378},this['imageId']=_0x3dbc7d;})['catch'](_0x3b1c52=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3b1c52['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4a2544,_0x3232a7){return this['_getImageAsFile'](_0x4a2544)['then'](_0x5115b1=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3232a7['signal'],'file':_0x5115b1,'onProgress':_0x47ea47=>{_0x47ea47&&_0x47ea47['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x47ea47['value']));}}))['then'](_0x4e3229=>{const {width:_0x22e685,height:_0x32e4bf}=_0x4e3229['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e3229['cdnUrl'],this['imageDimension']={'width':_0x22e685,'height':_0x32e4bf},this['imageId']=_0x4e3229['uuid'],this['imageUploadProgress']=null;const _0x509741=_0x4a2544['getAttribute']('src');this['_imageCache']['set'](_0x509741,{'id':_0x4e3229['uuid'],'url':_0x4e3229['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1bc9d3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1bc9d3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4f37f8,_0x3a4e0d){_0x4f37f8['on']('apply',(_0x55b078,_0x15bf89)=>{this['_replaceImage'](_0x3a4e0d,_0x15bf89['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4f37f8['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4f37f8['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x50fbec,_0x2b0e52,_0x116a63){const _0x31d818=this['_editor'],{width:_0x3beafa,height:_0x501606}=S(_0x2b0e52,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1783f1,imageSources:_0x5d381a}=C(_0x2b0e52,_0x3beafa);_0x31d818['model']['change'](_0x583780=>{if('$graveyard'===_0x50fbec['root']['rootName']){_0x31d818['execute']('insertImage',{'imageType':_0x50fbec['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x50fbec['getAttributes']()),'uploadcareImageId':_0x116a63,'src':_0x1783f1,'sources':_0x5d381a,'width':_0x3beafa,'height':_0x501606}});const _0x202afe=_0x50fbec['getChildren']();_0x50fbec=_0x31d818['model']['document']['selection']['getSelectedElement']();for(const _0x566218 of _0x202afe)_0x583780['append'](_0x583780['cloneElement'](_0x566218),_0x50fbec);}else _0x583780['setSelection'](_0x50fbec,'on'),_0x31d818['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x50fbec['getAttributes']()),'uploadcareImageId':_0x116a63,'src':_0x1783f1,'sources':_0x5d381a,'width':_0x3beafa,'height':_0x501606},_0x50fbec);_0x583780['setSelection'](_0x50fbec,'on');});}async['_getImageAsFile'](_0x4b3a24){const _0x374186=_0x818c6['window'],_0x155391=_0x818c6['document']['location']['href'],_0x3eca30=new _0x374186['URL'](_0x4b3a24['getAttribute']('src'),_0x155391);if('data:'===_0x3eca30['protocol']){const _0x2deb86=_0x3eca30['href']['split'](','),_0x15e2c1=_0x2deb86[0x0]['match'](/:(.*?);/)[0x1],_0x30a81b=_0x15e2c1['split']('/')[0x1],_0x2c0eef=_0x374186['atob'](_0x2deb86[_0x2deb86['length']-0x1]);let _0x319ce5=_0x2c0eef['length'];const _0x271c9e=new _0x374186['Uint8Array'](_0x319ce5);for(;_0x319ce5--;)_0x271c9e[_0x319ce5]=_0x2c0eef['charCodeAt'](_0x319ce5);return new _0x374186['File']([_0x271c9e],'image.'+_0x30a81b,{'type':_0x15e2c1});}const _0xf45323=_0x3eca30['href']['split']('/'),_0x57ed33=_0xf45323[_0xf45323['length']-0x1],_0x4da1e5=_0x57ed33['split']('.')[0x1];return _0x374186['fetch'](_0x3eca30['href'])['then'](_0x13f6a1=>_0x13f6a1['clone']()['blob']())['then'](_0x4f9351=>new _0x374186['File']([_0x4f9351],_0x57ed33,{'type':'image/'+_0x4da1e5}));}}class O extends _0x52bb4f{['imageEditController'];static get['requires'](){return[_0x1e307c];}['_isEditable'];constructor(_0x38c716){super(_0x38c716),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xfbb39e){const _0x5708c6=G(_0xfbb39e);return _0x47924a=>!(!_0x47924a||!_0x47924a['is']('element','imageBlock')&&!_0x47924a['is']('element','imageInline'))&&(!!_0x47924a['hasAttribute']('uploadcareImageId')||!!_0x47924a['hasAttribute']('src')&&_0x5708c6(_0x47924a['getAttribute']('src')));}(_0x38c716['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xb5e795=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xb5e795);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5642a2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5642a2&&(_0x5642a2['is']('element','imageBlock')||_0x5642a2['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1e307c),_0x5642a2),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x52bb4f{['refresh'](){const _0xa6466a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xa6466a&&(_0xa6466a['is']('element','imageBlock')||_0xa6466a['is']('element','imageInline')));}['execute'](_0x46197c){const _0x102335=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x239bf9=>{_0x239bf9['setAttributes'](_0x46197c,_0x102335),_0x239bf9['removeAttribute']('srcset',_0x102335),_0x239bf9['removeAttribute']('sizes',_0x102335);});}}class m extends _0x3a1a05{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2d41bd,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4e07d0}=this;_0x4e07d0['commands']['add']('uploadcareImageEdit',new O(_0x4e07d0)),_0x4e07d0['commands']['add']('uploadcareImageReplace',new R(_0x4e07d0));}}class g extends _0x3a1a05{['_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 _0x25411c=this['editor'];_0x25411c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2a2e82=>{const _0x42f7a8=_0x25411c['commands']['get']('uploadcareImageEdit'),_0x45ae35=new _0x4e4686(_0x2a2e82),t=_0x2a2e82['t'];return _0x45ae35['set']({'icon':_0x125b31,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x45ae35['bind']('isEnabled')['to'](_0x42f7a8),_0x45ae35['bind']('isOn')['to'](_0x42f7a8,'isActive'),this['listenTo'](_0x45ae35,'execute',()=>{_0x25411c['execute']('uploadcareImageEdit'),_0x25411c['editing']['view']['focus']();}),_0x45ae35;}),this['_initConfig']();}['_initConfig'](){const _0x4c91dc=_0x18e4f8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4c91dc),this['listenTo'](this['editor'],'destroy',()=>{_0x4c91dc['remove']();});}}class et extends _0x3a1a05{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x496d66,Command as _0x49bbc0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xb8d94e,IconGooglePhotos as _0x1e6ef5,IconGoogleDrive as _0x26a3b7,IconFacebook as _0x53fa87,IconDropbox as _0x166c68,IconUploadcareLink as _0x3201d7,IconUploadcareImageUpload as _0x7e39e0,IconError as _0x20e545,IconUploadcareImageEdit as _0x3db1e7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5b6d1b,MenuBarMenuListItemButtonView as _0x5282c4,View as _0x136462,FocusCycler as _0x372140,Dialog as _0x574d96,DialogViewPosition as _0x35c226,SpinnerView as _0xb51fca,IconView as _0x892fb9,Notification as _0x40a795}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1fa7f2,DomEmitterMixin as _0x5759e2,global as _0x7007fb,getAncestors as _0x34b239,ObservableMixin as _0x3c7c96,uid as _0x3f73f2,createElement as _0x2c3410}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x26ee08}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x57f6ce,info as _0x2961de}from'@uploadcare/upload-client';import*as _0x316cec from'@uploadcare/file-uploader';var i=function(_0x16d326){return _0x16d326['Local']='local',_0x16d326['URL']='url',_0x16d326['Dropbox']='dropbox',_0x16d326['GDrive']='gdrive',_0x16d326['Facebook']='facebook',_0x16d326['GPhotos']='gphotos',_0x16d326['OneDrive']='onedrive',_0x16d326;}({});function _(_0x1b04a9,_0x5dec86,_0x3b41c5){const t=_0x1b04a9['t'],_0x131d9b=_0x1b04a9['t'];switch(_0x5dec86){case i['Local']:return{'text':_0x131d9b('Insert'===_0x3b41c5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x131d9b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3b41c5?_0x131d9b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x131d9b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3b41c5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3b41c5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3b41c5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3b41c5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3b41c5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5dec86;}}class e extends _0x496d66{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5962a3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4d4ebe;for(const _0x1b81e3 in _0x5962a3){const _0x5bb87e=_0x1b81e3,_0x37ece7=_0x5962a3[_0x5bb87e];if('uploadcareLicenseKeyValid'==_0x37ece7||'uploadcareLicenseKeyInvalid'==_0x37ece7||'uploadcareLicenseKeyExpired'==_0x37ece7||'uploadcareLicenseKeyDomainLimit'==_0x37ece7||'uploadcareLicenseKeyNotAllowed'==_0x37ece7||'uploadcareLicenseKeyEvaluationLimit'==_0x37ece7||'uploadcareLicenseKeyTrialLimit'==_0x37ece7||'uploadcareLicenseKeyUsageLimit'==_0x37ece7){delete _0x5962a3[_0x5bb87e],_0x4d4ebe=_0x37ece7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xfd1634}=this,_0x7867ef=_0xfd1634['commands']['get']('uploadcare');if(!_0x7867ef)return;const _0x5598d5=this['_normalizeConfigSourceList'](_0xfd1634['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3861ea,_0x11e44c)=>{const _0x264f68=this['_getIntegrationKey'](_0x11e44c['type']);return _0x3861ea[_0x264f68]||(_0x3861ea[_0x264f68]=[]),_0x3861ea[_0x264f68]['push'](_0x11e44c),_0x3861ea;},{});_0xfd1634['plugins']['has']('ImageInsertUI')&&_0xfd1634['commands']['get']('uploadcare')&&Object['entries'](_0x5598d5)['forEach'](([_0x407c95,_0x42a63c])=>{_0xfd1634['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x407c95,'observable':()=>_0x7867ef,'buttonViewCreator':()=>this['_createToolbarButton'](_0x42a63c),'formViewCreator':()=>this['_createDropdownButtons'](_0x42a63c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x42a63c),'override':'assetManager'!==_0x407c95});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4e6598){const {locale:_0x5e2c80}=this['editor'];return _0x4e6598['map'](_0x4095e3=>{const _0xa3632a=_(_0x5e2c80,_0x4095e3,'Insert');switch(_0x4095e3){case i['Local']:return{'icon':_0x7e39e0,'type':i['Local'],..._0xa3632a};case i['URL']:return{'icon':_0x3201d7,'type':i['URL'],..._0xa3632a};case i['Dropbox']:return{'icon':_0x166c68,'type':i['Dropbox'],..._0xa3632a};case i['Facebook']:return{'icon':_0x53fa87,'type':i['Facebook'],..._0xa3632a};case i['GDrive']:return{'icon':_0x26a3b7,'type':i['GDrive'],..._0xa3632a};case i['GPhotos']:return{'icon':_0x1e6ef5,'type':i['GPhotos'],..._0xa3632a};case i['OneDrive']:return{'icon':_0xb8d94e,'type':i['OneDrive'],..._0xa3632a};}});}['_getIntegrationKey'](_0x1e30a3){switch(_0x1e30a3){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x16b3e5,_0x3eacb9){const _0xc77048=this['editor'],_0x2fbcda=new _0x16b3e5(_0xc77048['locale']),_0xaf883b=_0xc77048['commands']['get']('uploadcare');return _0x2fbcda['bind']('isEnabled')['to'](_0xaf883b),_0x2fbcda['on']('execute',()=>{_0xaf883b['execute'](_0x3eacb9);}),_0x2fbcda;}['_createToolbarButton'](_0x21f100){const {locale:_0x3916df}=this['editor'],_0x133716=this['editor']['plugins']['get']('ImageInsertUI'),_0x249932=_0x21f100[0x0],_0x42904a=this['_createButton'](_0x5b6d1b,_0x249932['type']);return _0x42904a['icon']=_0x249932['icon'],_0x42904a['bind']('label')['to'](_0x133716,'isImageSelected',_0x42155d=>_(_0x3916df,_0x249932['type'],_0x42155d?'Replace':'Insert')['text']),_0x42904a['tooltip']=!0x0,_0x42904a;}['_createDropdownButtons'](_0x1f1d10){const {locale:_0x465fed}=this['editor'],_0xa2d46=this['editor']['plugins']['get']('ImageInsertUI');return _0x1f1d10['map'](_0x4e3c14=>{const _0x184695=this['_createButton'](_0x5b6d1b,_0x4e3c14['type']);return _0x184695['withText']=!0x0,_0x184695['icon']=_0x4e3c14['icon'],_0x184695['bind']('label')['to'](_0xa2d46,'isImageSelected',_0x2f4546=>_(_0x465fed,_0x4e3c14['type'],_0x2f4546?'Replace':'Insert')['text']),_0x184695;});}['_createMenuBarButtons'](_0x30ab71){return _0x30ab71['map'](_0x5ed883=>{const _0x21bb2f=this['_createButton'](_0x5282c4,_0x5ed883['type']);return _0x21bb2f['icon']=_0x5ed883['icon'],_0x21bb2f['label']=_0x5ed883['shortText'],_0x21bb2f;});}}class F extends _0x136462{['focusTracker'];['focusCycler'];constructor(_0x87ce93){super(_0x87ce93),this['focusTracker']=new _0x1fa7f2(),this['focusCycler']=new _0x372140({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x58680e,_0x215c32){super(_0x58680e),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x215c32}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x20b61d,_0x179d1c){const _0x114140=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x368aec=>_0x368aec<=_0x179d1c)['map'](_0x4f3f1f=>_0x20b61d['replace'](/\/$/,'')+'/-/resize/'+_0x4f3f1f+'x/\x20'+_0x4f3f1f+'w');return{'imageFallbackUrl':_0x20b61d,'imageSources':[{'srcset':_0x114140['join'](',\x20'),'sizes':'(max-width:\x20'+_0x179d1c+'px)\x20100vw,\x20'+_0x179d1c+'px','type':'image/webp'}]};}function S(_0x21ecf5,_0x11371f,_0x20cfdb){const _0x49ed99=_0x21ecf5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x49ed99?parseInt(_0x49ed99[0x1],0xa):_0x11371f,'height':_0x49ed99?parseInt(_0x49ed99[0x2],0xa):_0x20cfdb};}function p(_0x57407b,_0x372322){const _0x583293=new(_0x5759e2())(),_0x399386=_0x57407b['plugins']['get']('ImageUtils'),_0x4e0613=_0x57407b['editing']['mapper']['toViewElement'](_0x372322),_0x29f161=_0x399386['findViewImgElement'](_0x4e0613),_0x6c14af=_0x57407b['editing']['view']['domConverter']['viewToDom'](_0x29f161),_0x407ffe=_0x372322['getAttribute']('width'),_0x1b6fb4=_0x372322['getAttribute']('height'),_0x386a14='image-processing';_0x57407b['editing']['view']['change'](_0x147743=>{_0x147743['addClass'](_0x386a14,_0x4e0613),_0x147743['setStyle']('aspect-ratio',_0x407ffe+'/'+_0x1b6fb4,_0x29f161);}),_0x583293['listenTo'](_0x6c14af,'load',()=>{_0x583293['stopListening'](_0x6c14af,'load'),_0x57407b['editing']['view']['change'](_0x1fbea9=>{_0x1fbea9['removeClass'](_0x386a14,_0x4e0613),_0x1fbea9['removeStyle']('aspect-ratio',_0x29f161);});});}function G(_0x4ca9d7){if(Array['isArray'](_0x4ca9d7)){const _0x2ab085=_0x4ca9d7['map'](G);return _0x563af4=>_0x2ab085['some'](_0x3714f8=>_0x3714f8(_0x563af4));}if('origin'==_0x4ca9d7){const _0x1924f7=_0x7007fb['window']['location']['origin'];return _0x4e60b6=>new URL(_0x4e60b6,_0x7007fb['document']['baseURI'])['origin']==_0x1924f7;}return'function'==typeof _0x4ca9d7?_0x4ca9d7:_0x4ca9d7 instanceof RegExp?_0x490e09=>!(!_0x490e09['match'](_0x4ca9d7)&&!_0x490e09['replace'](/^https?:\/\//,'')['match'](_0x4ca9d7)):()=>!0x1;}function A(_0x3853bc,_0x34d2b9){return _0x34b239(_0x3853bc['target'])['includes'](_0x34d2b9);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3c7c96(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x26cc50,_0x30f3b2,_0x26f549){super(),this['_editor']=_0x26cc50,this['_editing']=_0x30f3b2,this['_dialog']=_0x26cc50['plugins']['get'](_0x574d96),this['_api']=_0x30f3b2['ctxElement']['getAPI'](),this['_type']=_0x26f549,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x2091d0,model:_0x77f6ab}=this['_editor'],_0x29a483=_0x77f6ab['document']['selection']['getSelectedElement'](),_0x5cadde=_0x29a483&&(_0x29a483['is']('element','imageBlock')||_0x29a483['is']('element','imageInline'));this['_formView']=new x(_0x2091d0,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x7e39e0,'title':_(_0x2091d0,this['_type'],_0x5cadde?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x35c226['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x478d18=>!A(_0x478d18,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x20877c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4ba977=>{const _0x1af424=_0x20877c['length'];for(const _0xef02a4 of _0x20877c){const _0x1074b1=_0xef02a4===_0x20877c[_0x1af424-0x1],{cdnUrl:_0x1d88bb,fileInfo:_0x4d01cb}=_0xef02a4;if(!_0x1d88bb||!_0x4d01cb)continue;const {width:_0x4bfeed,height:_0x339a88}=_0x4d01cb['imageInfo'],_0x2acaea=S(_0x1d88bb,_0x4bfeed,_0x339a88),_0x501b83=C(_0x1d88bb,_0x2acaea['width']),_0x590c8c={'id':_0x4d01cb['uuid'],'type':'image','attributes':{'imageDimension':_0x2acaea,..._0x501b83}};this['_insertAsset'](_0x590c8c,_0x1074b1,_0x4ba977);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x18d934=>{'idle'===_0x18d934['detail']['status']&&!_0x18d934['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5178b2,_0x55e9ef,_0x35315a){const _0x1f5625=this['_editor']['model']['document']['selection'],_0x165918=_0x1f5625['getSelectedElement'](),_0x29cec2=!(!_0x165918||!_0x165918['is']('element','imageInline'));_0x35315a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5178b2,_0x29cec2),_0x55e9ef||_0x35315a['setSelection'](_0x1f5625['getLastPosition']());}['_insertImage'](_0x23b600,_0x5891d0){const _0x14f0b3=this['_editor'],{imageDimension:_0x1d6961,imageFallbackUrl:_0x2a5fc1,imageSources:_0x2ab9e1}=_0x23b600['attributes'];_0x14f0b3['execute']('insertImage',{'imageType':_0x5891d0?'imageInline':null,'source':{'uploadcareImageId':_0x23b600['id'],'src':_0x2a5fc1,'sources':_0x2ab9e1,..._0x1d6961}});}}class w extends _0x49bbc0{['_editing'];['_controller']=null;static get['requires'](){return[_0x574d96,o];}constructor(_0x46803e){super(_0x46803e),this['_editing']=_0x46803e['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x16fe89){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x16fe89);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x52416d,..._0x7b213e}){return _0x57f6ce(_0x52416d,_0x7b213e);}static['getInfo'](_0x102f0d,_0x2f8bc6){return _0x2961de(_0x102f0d,_0x2f8bc6);}}class f extends _0x496d66{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x26ee08,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1c5034=this['editor'];if(!!!_0x1c5034['config']['get']('uploadcare'))return;_0x1c5034['plugins']['get'](_0x26ee08)['createUploadAdapter']=_0x2f085d=>new k(_0x2f085d,_0x1c5034),_0x1c5034['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x241dd3,{imageElement:_0x1a827a,data:_0x813aae})=>{_0x1c5034['model']['change'](_0x376bef=>{_0x376bef['setAttribute']('uploadcareImageId',_0x813aae['uploadcareImageId'],_0x1a827a);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xb28a58,_0x344657){this['loader']=_0xb28a58,this['editor']=_0x344657,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1618e2=await this['loader']['file'];return j['upload']({'file':_0x1618e2,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x4962c8=>{_0x4962c8&&_0x4962c8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4962c8['value']);}})['then'](async _0x464d9c=>{const {imageFallbackUrl:_0x2967e1,imageSources:_0x4331c6}=C(_0x464d9c['cdnUrl'],_0x464d9c['imageInfo']['width']);return{'uploadcareImageId':_0x464d9c['uuid'],'default':_0x2967e1,'sources':_0x4331c6};})['catch'](()=>{const _0x139913=t('Cannot\x20upload\x20file:')+('\x20'+_0x1618e2['name']+'.');return Promise['reject'](_0x139913);});}['abort'](){this['controller']['abort']();}}class o extends _0x496d66{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x574d96];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2a2378){super(_0x2a2378),this['ucContextId']=_0x3f73f2();}['init'](){const _0x4b1115=this['editor'];_0x4b1115['commands']['add']('uploadcare',new w(_0x4b1115));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x4cb49c=_0x7007fb['document']['querySelector']('input[uploadcare-file-input]');_0x4cb49c&&_0x4cb49c['remove']();}),async function(_0x2ef6f4){const _0x528ad7=_0x5909b6([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x143c18=0x535f8c3a,_0x86abea=0x5358f7ba^_0x143c18,_0x188359=window[_0x5909b6([0x44,0x61,0x74,0x65])][_0x5909b6([0x6e,0x6f,0x77])](),_0x199a9c=_0x2ef6f4[_0x5909b6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1961b1=new window[(_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f0135=>{_0x199a9c[_0x5909b6([0x6f,0x6e,0x63,0x65])](_0x5909b6([0x72,0x65,0x61,0x64,0x79]),_0x5f0135);}),_0x4c9122={[_0x5909b6([0x6b,0x74,0x79])]:_0x5909b6([0x45,0x43]),[_0x5909b6([0x75,0x73,0x65])]:_0x5909b6([0x73,0x69,0x67]),[_0x5909b6([0x63,0x72,0x76])]:_0x5909b6([0x50,0x2d,0x32,0x35,0x36]),[_0x5909b6([0x78])]:_0x5909b6([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]),[_0x5909b6([0x79])]:_0x5909b6([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]),[_0x5909b6([0x61,0x6c,0x67])]:_0x5909b6([0x45,0x53,0x32,0x35,0x36])},_0x1498a1=_0x199a9c[_0x5909b6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5909b6([0x67,0x65,0x74])](_0x5909b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x20149d(){let _0x2686d2,_0x49a89f=null,_0xafa16b=null;try{if(_0x1498a1==_0x5909b6([0x47,0x50,0x4c]))return _0x5909b6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2686d2=_0x37a859(),!_0x2686d2)return _0x5909b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2686d2[_0x5909b6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xafa16b=_0x34114e(_0x2686d2[_0x5909b6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2686d2[_0x5909b6([0x6a,0x74,0x69])])),await _0x42f772()?_0x5c952a()?_0x86f8e2()?_0x5909b6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x317654()?(_0x2686d2[_0x5909b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5909b6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x49a89f=_0x512a02(_0x5909b6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2686d2[_0x5909b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5909b6([0x74,0x72,0x69,0x61,0x6c])&&(_0x49a89f=_0x512a02(_0x5909b6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e946a()):_0x5909b6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5909b6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5909b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5909b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x86f8e2(){const _0x2c0c4c=[_0x5909b6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5909b6([0x74,0x72,0x69,0x61,0x6c])][_0x5909b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2686d2[_0x5909b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x188359/0x3e8:0xe10*_0x86abea;return _0x2686d2[_0x5909b6([0x65,0x78,0x70])]<_0x2c0c4c;}function _0x5c952a(){const _0x42bf70=_0x2686d2[_0x5909b6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x42bf70&&(!!_0x42bf70[_0x5909b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5909b6([0x2a]))||!!_0x42bf70[_0x5909b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5909b6([0x55,0x50,0x4c,0x43])));}function _0x317654(){const _0x33ca22=_0x2686d2[_0x5909b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x33ca22||0x0==_0x33ca22[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x36e861}=new URL(window[_0x5909b6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x33ca22[_0x5909b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36e861))return!0x0;const _0x113e16=_0x36e861[_0x5909b6([0x73,0x70,0x6c,0x69,0x74])](_0x5909b6([0x2e]));return _0x33ca22[_0x5909b6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x401af1=>_0x401af1[_0x5909b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5909b6([0x2a])))[_0x5909b6([0x6d,0x61,0x70])](_0x403ddd=>_0x403ddd[_0x5909b6([0x73,0x70,0x6c,0x69,0x74])](_0x5909b6([0x2e])))[_0x5909b6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e1768=>_0x2e1768[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x113e16[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5909b6([0x6d,0x61,0x70])](_0x16a55e=>Array(_0x113e16[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x16a55e[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5909b6([0x66,0x69,0x6c,0x6c])](_0x16a55e[0x0]===_0x5909b6([0x2a])?_0x5909b6([0x2a]):'')[_0x5909b6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x16a55e))[_0x5909b6([0x73,0x6f,0x6d,0x65])](_0x279436=>_0x113e16[_0x5909b6([0x65,0x76,0x65,0x72,0x79])]((_0x1d2594,_0x48c543)=>_0x279436[_0x48c543]===_0x1d2594||_0x279436[_0x48c543]===_0x5909b6([0x2a])));}function _0x4e946a(){return _0x49a89f&&_0xafa16b?new window[(_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x202c28,_0x42cbaf)=>{_0x49a89f[_0x5909b6([0x74,0x68,0x65,0x6e])](_0x202c28,_0x42cbaf),_0xafa16b[_0x5909b6([0x74,0x68,0x65,0x6e])](_0x2edd16=>{_0x2edd16!=_0x5909b6([0x56,0x61,0x6c,0x69,0x64])&&_0x202c28(_0x2edd16);},_0x42cbaf);}):_0x49a89f||_0xafa16b||_0x5909b6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34114e(_0x3ba739,_0xa0e964){return new window[(_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x204928=>{if(_0x5e3177())return _0x204928(_0x5909b6([0x56,0x61,0x6c,0x69,0x64]));_0x95eb6e(),_0x199a9c[_0x5909b6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5909b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9e1dd4=!0x1;const _0x5b9956=_0x3f73f2();function _0x63c9b2(_0x4a1883){return!!_0x4a1883&&(typeof _0x4a1883===_0x5909b6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a1883===_0x5909b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a1883[_0x5909b6([0x74,0x68,0x65,0x6e])]===_0x5909b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a1883[_0x5909b6([0x63,0x61,0x74,0x63,0x68])]===_0x5909b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f0d24(_0x4c70bb){_0x3357ec(_0x4c70bb)[_0x5909b6([0x74,0x68,0x65,0x6e])](_0x3ef099=>{if(!_0x3ef099||_0x3ef099[_0x5909b6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5909b6([0x6f,0x6b]))return _0x5909b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x55ebb7(_0x5d95d7(_0x5b9956+_0xa0e964))!=_0x3ef099[_0x5909b6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5909b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5909b6([0x56,0x61,0x6c,0x69,0x64]);})[_0x5909b6([0x74,0x68,0x65,0x6e])](_0x126006=>(_0x43d0ac(),_0x126006),()=>{const _0x33d8fd=_0x596a25();return null==_0x33d8fd?(_0x43d0ac(),_0x5909b6([0x56,0x61,0x6c,0x69,0x64])):_0x5909b6(_0x188359-_0x33d8fd>(0x7753083a^_0x143c18)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5909b6([0x74,0x68,0x65,0x6e])](_0x204928)[_0x5909b6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x204928(_0x5909b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1b1221=0x536962ba^_0x143c18;function _0x43d0ac(){const _0x25002f=_0x5909b6([0x6c,0x6c,0x63,0x74,0x2d])+_0x55ebb7(_0x5d95d7(_0x3ba739)),_0x254814=_0x148159(_0x55ebb7(window[_0x5909b6([0x4d,0x61,0x74,0x68])][_0x5909b6([0x63,0x65,0x69,0x6c])](_0x188359/_0x1b1221)));window[_0x5909b6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5909b6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25002f,_0x254814);}function _0x596a25(){const _0x11fdde=_0x5909b6([0x6c,0x6c,0x63,0x74,0x2d])+_0x55ebb7(_0x5d95d7(_0x3ba739)),_0x1ad3be=window[_0x5909b6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5909b6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11fdde);return _0x1ad3be?window[_0x5909b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x148159(_0x1ad3be),0x10)*_0x1b1221:null;}function _0x3357ec(_0x2f3d0e){return new window[(_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8d4775,_0x22357f)=>{_0x2f3d0e[_0x5909b6([0x74,0x68,0x65,0x6e])](_0x8d4775,_0x22357f),window[_0x5909b6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22357f,0x535e58fa^_0x143c18);});}}_0x199a9c[_0x5909b6([0x6f,0x6e])](_0x5909b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ed353,_0x52e077)=>{if(_0x52e077[0x0]!=_0x3ba739)return _0x204928(_0x5909b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52e077[0x1]={..._0x52e077[0x1],[_0x5909b6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5b9956};},{[_0x5909b6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5909b6([0x68,0x69,0x67,0x68])}),_0x199a9c[_0x5909b6([0x6f,0x6e])](_0x5909b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xb0e806=>{_0x63c9b2(_0xb0e806[_0x5909b6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9e1dd4=!0x0,_0x1f0d24(_0xb0e806[_0x5909b6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5909b6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5909b6([0x6c,0x6f,0x77])}),_0x1961b1[_0x5909b6([0x74,0x68,0x65,0x6e])](()=>{_0x9e1dd4||_0x204928(_0x5909b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e3177(){return _0x199a9c[_0x5909b6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5909b6([0x76,0x69,0x65,0x77])][_0x5909b6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5909b6([0x61,0x75,0x74,0x6f]);}function _0x95eb6e(){_0x199a9c[_0x5909b6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5909b6([0x76,0x69,0x65,0x77])][_0x5909b6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5909b6([0x61,0x75,0x74,0x6f]);}}function _0x512a02(_0x3d9a29){const _0x2ce4b1=[new window[(_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26cc05=>setTimeout(_0x26cc05,0x5356b2f6^_0x143c18)),_0x1961b1[_0x5909b6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a6946=>{let _0x200bcb=0x0;_0x199a9c[_0x5909b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5909b6([0x6f,0x6e])](_0x5909b6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e8618,_0xc31720)=>{_0xc31720[0x0][_0x5909b6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x200bcb++,_0x200bcb==(0x535f8dc2^_0x143c18)&&(_0x3a6946(),_0x1e8618[_0x5909b6([0x6f,0x66,0x66])]());});}))];return window[_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5909b6([0x72,0x61,0x63,0x65])](_0x2ce4b1)[_0x5909b6([0x74,0x68,0x65,0x6e])](()=>_0x3d9a29);}async function _0x234395(){await _0x1961b1,_0x199a9c[_0x5909b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5909b6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x379ab9,_0x199a9c[_0x5909b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5909b6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x379ab9,_0x199a9c[_0x5909b6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5909b6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e8a25(_0x46f5f1){const _0x3a0ea1=_0x4016cb();_0x199a9c[_0x3a0ea1]=_0x5909b6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x46f5f1,_0x46f5f1!=_0x5909b6([0x56,0x61,0x6c,0x69,0x64])&&_0x234395();}function _0x4016cb(){const _0x438987=window[_0x5909b6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5909b6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5909b6([0x6e,0x6f,0x77])]())[_0x5909b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5909b6([0x2e]),'');let _0x380828=_0x5909b6([0x68]);for(let _0x1f9999=0x0;_0x1f9999<_0x438987[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f9999+=0x2){let _0x11cd4a=window[_0x5909b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x438987[_0x5909b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f9999,_0x1f9999+0x2));_0x11cd4a>=_0x528ad7[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11cd4a-=_0x528ad7[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x380828+=_0x528ad7[_0x11cd4a];}return _0x380828;}function _0x37a859(){const _0x1c3f76=_0x1498a1[_0x5909b6([0x73,0x70,0x6c,0x69,0x74])](_0x5909b6([0x2e]));if(0x3!=_0x1c3f76[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x494994(_0x1c3f76[0x1]);function _0x494994(_0xf111aa){const _0x4a4d8e=_0x540ca8(_0xf111aa);return _0x4a4d8e&&_0xc73055()?_0x4a4d8e:null;function _0xc73055(){const _0x3ae8d1=_0x4a4d8e[_0x5909b6([0x6a,0x74,0x69])],_0x37ccc9=window[_0x5909b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ae8d1[_0x5909b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ae8d1[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31da7f={..._0x4a4d8e,[_0x5909b6([0x6a,0x74,0x69])]:_0x3ae8d1[_0x5909b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ae8d1[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31da7f[_0x5909b6([0x76,0x63])],_0x5d95d7(_0x31da7f)==_0x37ccc9;}}}async function _0x42f772(){let _0x459652=!0x0;try{const _0x1252ad=_0x1498a1[_0x5909b6([0x73,0x70,0x6c,0x69,0x74])](_0x5909b6([0x2e])),[_0x187018,_0x287a51,_0x364572]=_0x1252ad;return _0x2d22e8(_0x187018),await _0x190968(_0x187018,_0x287a51,_0x364572),_0x459652;}catch{return!0x1;}function _0x2d22e8(_0x279bd9){const _0x33644c=_0x540ca8(_0x279bd9);_0x33644c&&_0x33644c[_0x5909b6([0x61,0x6c,0x67])]==_0x5909b6([0x45,0x53,0x32,0x35,0x36])||(_0x459652=!0x1);}async function _0x190968(_0x13b375,_0x3ab659,_0xfaf0b5){const _0xc3a513=window[_0x5909b6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5909b6([0x66,0x72,0x6f,0x6d])](_0x2aa753(_0xfaf0b5),_0x39e3a3=>_0x39e3a3[_0x5909b6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xf1bedf=new window[(_0x5909b6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5909b6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13b375+_0x5909b6([0x2e])+_0x3ab659),_0x41ebe3=window[_0x5909b6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5909b6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41ebe3)return;const _0xf6b14f=await _0x41ebe3[_0x5909b6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5909b6([0x6a,0x77,0x6b]),_0x4c9122,{[_0x5909b6([0x6e,0x61,0x6d,0x65])]:_0x5909b6([0x45,0x43,0x44,0x53,0x41]),[_0x5909b6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5909b6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5909b6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41ebe3[_0x5909b6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5909b6([0x6e,0x61,0x6d,0x65])]:_0x5909b6([0x45,0x43,0x44,0x53,0x41]),[_0x5909b6([0x68,0x61,0x73,0x68])]:{[_0x5909b6([0x6e,0x61,0x6d,0x65])]:_0x5909b6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf6b14f,_0xc3a513,_0xf1bedf)||(_0x459652=!0x1);}}function _0x540ca8(_0x4bf010){return _0x4bf010[_0x5909b6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5909b6([0x65,0x79]))?JSON[_0x5909b6([0x70,0x61,0x72,0x73,0x65])](_0x2aa753(_0x4bf010)):null;}function _0x2aa753(_0x302207){return window[_0x5909b6([0x61,0x74,0x6f,0x62])](_0x302207[_0x5909b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5909b6([0x2b]))[_0x5909b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5909b6([0x2f])));}function _0x5d95d7(_0x52fe3e){let _0x1e6080=0x1505;function _0x134b93(_0x56bf0a){for(let _0x4a3493=0x0;_0x4a3493<_0x56bf0a[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a3493++){const _0x574cc0=_0x56bf0a[_0x5909b6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4a3493);_0x1e6080=(_0x1e6080<<0x5)+_0x1e6080+_0x574cc0,_0x1e6080&=_0x1e6080;}}function _0x4440eb(_0x3f01e7){Array[_0x5909b6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3f01e7)?_0x3f01e7[_0x5909b6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4440eb):_0x3f01e7&&typeof _0x3f01e7==_0x5909b6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5909b6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3f01e7)[_0x5909b6([0x73,0x6f,0x72,0x74])]()[_0x5909b6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1435e2,_0x397051])=>{_0x134b93(_0x1435e2),_0x4440eb(_0x397051);}):_0x134b93(window[_0x5909b6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3f01e7));}return _0x4440eb(_0x52fe3e),_0x1e6080>>>0x0;}function _0x55ebb7(_0x3db309){return _0x3db309[_0x5909b6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5909b6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5909b6([0x30]));}function _0x148159(_0x8f4fde){return _0x8f4fde[_0x5909b6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5909b6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5909b6([0x6a,0x6f,0x69,0x6e])]('');}function _0x379ab9(){}function _0x5909b6(_0x5152b1){return _0x5152b1['map'](_0x12a2a5=>String['fromCharCode'](_0x12a2a5))['join']('');}_0x5e8a25(await _0x20149d());}(this);}['_initSchema'](){const _0x9ad844=this['editor']['model']['schema'];_0x9ad844['isRegistered']('imageBlock')&&_0x9ad844['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x9ad844['isRegistered']('imageInline')&&_0x9ad844['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3f2a8b=this['editor'];_0x3f2a8b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3f2a8b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x153f94=>_0x153f94['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x32efa5=_0x3f2a8b['commands']['get']('replaceImageSource');_0x32efa5&&this['listenTo'](_0x32efa5,'cleanupImage',(_0x92ebea,[_0x53fbe5,_0x3ae0f5])=>{_0x53fbe5['removeAttribute']('uploadcareImageId',_0x3ae0f5);});}['_initConfig'](){const _0x35f9d7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5a1433=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2c3410(_0x7007fb['document'],'uc-config',{..._0x35f9d7,'pubkey':_0x5a1433,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\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'}),this['_configElement']['iconHrefResolver']=_0x4ed1cc=>{if('closeMax'==_0x4ed1cc)return'#uc-icon-arrow-down';},_0x7007fb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2c3410(_0x7007fb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x7007fb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x33d9e3=this['editor']['commands']['get']('insertImage');_0x33d9e3&&this['listenTo'](_0x33d9e3,'execute',()=>{const _0x387bd2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x387bd2&&_0x387bd2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x387bd2);});});const _0x5a68ee=this['editor']['commands']['get']('uploadcareImageReplace');_0x5a68ee&&this['listenTo'](_0x5a68ee,'execute',()=>{const _0x1395c4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1395c4&&_0x1395c4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1395c4);});});}}class tt extends _0x496d66{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d4d29){super(_0x3d4d29),_0x3d4d29['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x316cec['defineComponents'](_0x316cec),this['_defineLocale']();}['_defineLocale'](){const _0x2e5917=this['editor']['config']['get']('uploadcare.locale'),_0x5bc76a=this['editor']['locale']['contentLanguage'];_0x2e5917&&_0x316cec['defineLocale'](_0x5bc76a,_0x2e5917);}}class ii extends _0x136462{constructor(_0x1ecfe5){super(_0x1ecfe5);const t=_0x1ecfe5['t'],_0x2cc556=this['bindTemplate'],_0x567ae8=new _0xb51fca();_0x567ae8['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':[_0x567ae8,{'text':_0x2cc556['to']('imageUploadProgress',_0x5363d2=>t('Loading\x20image...')+'\x20('+(_0x5363d2||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'}]}]}]});}}class ti extends _0x136462{constructor(_0xfb6900){super(_0xfb6900);const t=_0xfb6900['t'];this['set']('errorType',null);const _0x38b58c=new _0x5b6d1b(_0xfb6900);_0x38b58c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x38b58c['withText']=!0x0,_0x38b58c['class']='ck-button-action',_0x38b58c['on']('execute',()=>{this['fire']('retry');}),_0x38b58c['bind']('isVisible')['to'](this,'errorType',_0x552cca=>'NotFound'!==_0x552cca);const _0x2e1706=new _0x892fb9();_0x2e1706['content']=_0x20e545,_0x2e1706['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xce04fc=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':[_0x2e1706,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xce04fc['to']('errorType',_0xc8f8e4=>t('NotFound'!==_0xc8f8e4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x38b58c]},{'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'}]}]}]});}}class ei extends _0x136462{constructor(_0x405d1f,_0x47b0c2){super(_0x405d1f);const _0x4809a7=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x47b0c2,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4809a7['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x23573f,_0x4ac9fa,_0x38b2d6){super(_0x23573f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x23573f),this['_errorView']=new ti(_0x23573f),this['_editingView']=new ei(_0x23573f,_0x38b2d6),this['_focusableView']=new _0x136462(_0x23573f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4ac9fa),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x237058=>{this['_addUploadcareImageEditorListeners'](_0x237058);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x4c9cc7,_0x331638){const _0x223a0a='uc-cloud-image-editor',_0x154ace=_0x4c9cc7['querySelector'](_0x223a0a);if(_0x154ace)return _0x331638(_0x154ace);const _0x893022=new MutationObserver(_0x2250b1=>{const _0x327090=_0x2250b1['filter'](_0x759ab5=>_0x759ab5['target']===_0x4c9cc7&&_0x759ab5['addedNodes']['length']>0x0&&_0x759ab5['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x223a0a);_0x327090['length']&&(_0x893022['disconnect'](),_0x331638(_0x327090[0x0]['addedNodes'][0x0]));});_0x893022['observe'](_0x4c9cc7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2571b9){_0x2571b9['addEventListener']('apply',_0x5bb761=>{this['fire']('apply',{'imageSrc':_0x5bb761['detail']['cdnUrl']});}),_0x2571b9['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3c7c96(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3745d4,_0x4dbf89,_0xedc149){super(),this['_editor']=_0x3745d4,this['_dialog']=_0x4dbf89,this['_imageElement']=_0xedc149,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 _0x19a708=this['_imageElement'],_0x1134ca=_0x19a708['getAttribute']('uploadcareImageId'),_0x541222=_0x19a708['getAttribute']('src');if(_0x1134ca)await this['_loadImageInfo'](_0x1134ca,_0x541222);else{if(this['_imageCache']['has'](_0x541222)){const _0x49bce0=this['_imageCache']['get'](_0x541222);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x49bce0['url'],this['imageDimension']=_0x49bce0['dimension'],this['imageId']=_0x49bce0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3389c8}=this['_editor'],t=_0x3389c8['t'],_0x3c78b9=new X(_0x3389c8,this['imageStatus'],this['_attributes']);_0x3c78b9['bind']('status')['to'](this,'imageStatus'),_0x3c78b9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3c78b9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3c78b9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3c78b9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3db1e7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3c78b9,'position':_0x35c226['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3c78b9['focus']();},'onHide':()=>{_0x3c78b9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4beb44=>!A(_0x4beb44,_0x3c78b9['element'])}});}['_loadImageInfo'](_0x1f5245,_0x960414){return j['getInfo'](_0x1f5245,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xe0add4=>{const {width:_0x3589e7,height:_0x7c9559}=_0xe0add4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x960414,this['imageDimension']={'width':_0x3589e7,'height':_0x7c9559},this['imageId']=_0x1f5245;})['catch'](_0x2bfbc5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2bfbc5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x35985b,_0x125e1d){return this['_getImageAsFile'](_0x35985b)['then'](_0xcad21c=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x125e1d['signal'],'file':_0xcad21c,'onProgress':_0x56435f=>{_0x56435f&&_0x56435f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x56435f['value']));}}))['then'](_0xbd7846=>{const {width:_0x20376f,height:_0x1f64bd}=_0xbd7846['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xbd7846['cdnUrl'],this['imageDimension']={'width':_0x20376f,'height':_0x1f64bd},this['imageId']=_0xbd7846['uuid'],this['imageUploadProgress']=null;const _0x4dba44=_0x35985b['getAttribute']('src');this['_imageCache']['set'](_0x4dba44,{'id':_0xbd7846['uuid'],'url':_0xbd7846['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2da041=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2da041['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x540b92,_0x5008ec){_0x540b92['on']('apply',(_0x16f005,_0x503d27)=>{this['_replaceImage'](_0x5008ec,_0x503d27['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x540b92['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x540b92['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x277fe9,_0x3d9273,_0xef5c58){const _0x319d29=this['_editor'],{width:_0x56352a,height:_0xc40b1a}=S(_0x3d9273,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3a6db6,imageSources:_0x26a448}=C(_0x3d9273,_0x56352a);_0x319d29['model']['change'](_0x4168ec=>{if('$graveyard'===_0x277fe9['root']['rootName']){_0x319d29['execute']('insertImage',{'imageType':_0x277fe9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x277fe9['getAttributes']()),'uploadcareImageId':_0xef5c58,'src':_0x3a6db6,'sources':_0x26a448,'width':_0x56352a,'height':_0xc40b1a}});const _0x5096c0=_0x277fe9['getChildren']();_0x277fe9=_0x319d29['model']['document']['selection']['getSelectedElement']();for(const _0x187abf of _0x5096c0)_0x4168ec['append'](_0x4168ec['cloneElement'](_0x187abf),_0x277fe9);}else _0x4168ec['setSelection'](_0x277fe9,'on'),_0x319d29['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x277fe9['getAttributes']()),'uploadcareImageId':_0xef5c58,'src':_0x3a6db6,'sources':_0x26a448,'width':_0x56352a,'height':_0xc40b1a},_0x277fe9);_0x4168ec['setSelection'](_0x277fe9,'on');});}async['_getImageAsFile'](_0x1b993f){const _0x2e8e39=_0x7007fb['window'],_0x39ff97=_0x7007fb['document']['location']['href'],_0x1c8a0f=new _0x2e8e39['URL'](_0x1b993f['getAttribute']('src'),_0x39ff97);if('data:'===_0x1c8a0f['protocol']){const _0x4f88d5=_0x1c8a0f['href']['split'](','),_0x43ebc6=_0x4f88d5[0x0]['match'](/:(.*?);/)[0x1],_0x50f232=_0x43ebc6['split']('/')[0x1],_0x2ffd23=_0x2e8e39['atob'](_0x4f88d5[_0x4f88d5['length']-0x1]);let _0x6028d6=_0x2ffd23['length'];const _0x5c2d86=new _0x2e8e39['Uint8Array'](_0x6028d6);for(;_0x6028d6--;)_0x5c2d86[_0x6028d6]=_0x2ffd23['charCodeAt'](_0x6028d6);return new _0x2e8e39['File']([_0x5c2d86],'image.'+_0x50f232,{'type':_0x43ebc6});}const _0x53a53c=_0x1c8a0f['href']['split']('/'),_0x51ff31=_0x53a53c[_0x53a53c['length']-0x1],_0x3bcd76=_0x51ff31['split']('.')[0x1];return _0x2e8e39['fetch'](_0x1c8a0f['href'])['then'](_0x58e79b=>_0x58e79b['clone']()['blob']())['then'](_0x1156df=>new _0x2e8e39['File']([_0x1156df],_0x51ff31,{'type':'image/'+_0x3bcd76}));}}class O extends _0x49bbc0{['imageEditController'];static get['requires'](){return[_0x574d96];}['_isEditable'];constructor(_0x4da471){super(_0x4da471),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x47709e){const _0x1d3ee3=G(_0x47709e);return _0x4045c4=>!(!_0x4045c4||!_0x4045c4['is']('element','imageBlock')&&!_0x4045c4['is']('element','imageInline'))&&(!!_0x4045c4['hasAttribute']('uploadcareImageId')||!!_0x4045c4['hasAttribute']('src')&&_0x1d3ee3(_0x4045c4['getAttribute']('src')));}(_0x4da471['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x16d860=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x16d860);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x211f83=this['editor']['model']['document']['selection']['getSelectedElement']();_0x211f83&&(_0x211f83['is']('element','imageBlock')||_0x211f83['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x574d96),_0x211f83),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x49bbc0{['refresh'](){const _0x20940c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x20940c&&(_0x20940c['is']('element','imageBlock')||_0x20940c['is']('element','imageInline')));}['execute'](_0xa7797d){const _0x36b339=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x39036d=>{_0x39036d['setAttributes'](_0xa7797d,_0x36b339),_0x39036d['removeAttribute']('srcset',_0x36b339),_0x39036d['removeAttribute']('sizes',_0x36b339);});}}class m extends _0x496d66{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x40a795,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4b053d}=this;_0x4b053d['commands']['add']('uploadcareImageEdit',new O(_0x4b053d)),_0x4b053d['commands']['add']('uploadcareImageReplace',new R(_0x4b053d));}}class g extends _0x496d66{['_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 _0x54ecf7=this['editor'];_0x54ecf7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4a975d=>{const _0x513755=_0x54ecf7['commands']['get']('uploadcareImageEdit'),_0x2bfdfd=new _0x5b6d1b(_0x4a975d),t=_0x4a975d['t'];return _0x2bfdfd['set']({'icon':_0x3db1e7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2bfdfd['bind']('isEnabled')['to'](_0x513755),_0x2bfdfd['bind']('isOn')['to'](_0x513755,'isActive'),this['listenTo'](_0x2bfdfd,'execute',()=>{_0x54ecf7['execute']('uploadcareImageEdit'),_0x54ecf7['editing']['view']['focus']();}),_0x2bfdfd;}),this['_initConfig']();}['_initConfig'](){const _0xd1c7d5=_0x2c3410(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xd1c7d5),this['listenTo'](this['editor'],'destroy',()=>{_0xd1c7d5['remove']();});}}class et extends _0x496d66{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0xa857ab=>0x1!=_0xa857ab}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xfdd31f=>{const {af:{dictionary:_0x55279d,getPluralForm:_0x1cbfa5}}={'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x50d39a=>0x1!=_0x50d39a}};_0xfdd31f['af']||={'dictionary':{},'getPluralForm':null},_0xfdd31f['af']['dictionary']=Object['assign'](_0xfdd31f['af']['dictionary'],_0x55279d),_0xfdd31f['af']['getPluralForm']=_0x1cbfa5;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ar.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':
|
|
23
|
+
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x3b4c6a=>0x0==_0x3b4c6a?0x0:0x1==_0x3b4c6a?0x1:0x2==_0x3b4c6a?0x2:_0x3b4c6a%0x64>=0x3&&_0x3b4c6a%0x64<=0xa?0x3:_0x3b4c6a%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x246682=>{const {ar:{dictionary:_0x419cbe,getPluralForm:_0x2da7f}}={'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x2bd510=>0x0==_0x2bd510?0x0:0x1==_0x2bd510?0x1:0x2==_0x2bd510?0x2:_0x2bd510%0x64>=0x3&&_0x2bd510%0x64<=0xa?0x3:_0x2bd510%0x64>=0xb?0x4:0x5}};_0x246682['ar']||={'dictionary':{},'getPluralForm':null},_0x246682['ar']['dictionary']=Object['assign'](_0x246682['ar']['dictionary'],_0x419cbe),_0x246682['ar']['getPluralForm']=_0x2da7f;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ast.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x45e07b=>0x1!=_0x45e07b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5720fa=>{const {ast:{dictionary:_0x3e5b5a,getPluralForm:_0x4b6bd8}}={'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x2f00c3=>0x1!=_0x2f00c3}};_0x5720fa['ast']||={'dictionary':{},'getPluralForm':null},_0x5720fa['ast']['dictionary']=Object['assign'](_0x5720fa['ast']['dictionary'],_0x3e5b5a),_0x5720fa['ast']['getPluralForm']=_0x4b6bd8;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/az.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x19427b=>0x1!=_0x19427b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x203647=>{const {az:{dictionary:_0x24ac7e,getPluralForm:_0x3f8afe}}={'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x5ad3e5=>0x1!=_0x5ad3e5}};_0x203647['az']||={'dictionary':{},'getPluralForm':null},_0x203647['az']['dictionary']=Object['assign'](_0x203647['az']['dictionary'],_0x24ac7e),_0x203647['az']['getPluralForm']=_0x3f8afe;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x26fbf6=>_0x26fbf6%0xa==0x1&&_0x26fbf6%0x64!=0xb?0x0:_0x26fbf6%0xa>=0x2&&_0x26fbf6%0xa<=0x4&&(_0x26fbf6%0x64<0xa||_0x26fbf6%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1f2558=>{const {be:{dictionary:_0x5babdc,getPluralForm:_0x207fcc}}={'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x53f81c=>_0x53f81c%0xa==0x1&&_0x53f81c%0x64!=0xb?0x0:_0x53f81c%0xa>=0x2&&_0x53f81c%0xa<=0x4&&(_0x53f81c%0x64<0xa||_0x53f81c%0x64>=0x14)?0x1:0x2}};_0x1f2558['be']||={'dictionary':{},'getPluralForm':null},_0x1f2558['be']['dictionary']=Object['assign'](_0x1f2558['be']['dictionary'],_0x5babdc),_0x1f2558['be']['getPluralForm']=_0x207fcc;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bg.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':
|
|
23
|
+
export default{'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x623e5=>0x1!=_0x623e5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3eb807=>{const {bg:{dictionary:_0x253797,getPluralForm:_0x30d4ba}}={'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x2e28dd=>0x1!=_0x2e28dd}};_0x3eb807['bg']||={'dictionary':{},'getPluralForm':null},_0x3eb807['bg']['dictionary']=Object['assign'](_0x3eb807['bg']['dictionary'],_0x253797),_0x3eb807['bg']['getPluralForm']=_0x30d4ba;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bn.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':
|
|
23
|
+
export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0x20cd9c=>0x1!=_0x20cd9c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x30f35d=>{const {bn:{dictionary:_0x39caec,getPluralForm:_0x502f85}}={'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0x293fc8=>0x1!=_0x293fc8}};_0x30f35d['bn']||={'dictionary':{},'getPluralForm':null},_0x30f35d['bn']['dictionary']=Object['assign'](_0x30f35d['bn']['dictionary'],_0x39caec),_0x30f35d['bn']['getPluralForm']=_0x502f85;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bs.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bs':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'bs':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x4afa7e=>_0x4afa7e%0xa==0x1&&_0x4afa7e%0x64!=0xb?0x0:_0x4afa7e%0xa>=0x2&&_0x4afa7e%0xa<=0x4&&(_0x4afa7e%0x64<0xa||_0x4afa7e%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x378bd2=>{const {bs:{dictionary:_0x200823,getPluralForm:_0x5de6e0}}={'bs':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x12d95b=>_0x12d95b%0xa==0x1&&_0x12d95b%0x64!=0xb?0x0:_0x12d95b%0xa>=0x2&&_0x12d95b%0xa<=0x4&&(_0x12d95b%0x64<0xa||_0x12d95b%0x64>=0x14)?0x1:0x2}};_0x378bd2['bs']||={'dictionary':{},'getPluralForm':null},_0x378bd2['bs']['dictionary']=Object['assign'](_0x378bd2['bs']['dictionary'],_0x200823),_0x378bd2['bs']['getPluralForm']=_0x5de6e0;})(window['CKEDITOR_TRANSLATIONS']||={});
|