@ckeditor/ckeditor5-uploadcare 46.0.2 → 46.1.0-alpha.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-editor.css +1 -1
- package/dist/index.css +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 +10 -10
- 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 _0x4f7446,Command as _0x3ee3d2}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x424d88,IconGooglePhotos as _0x3c9c60,IconGoogleDrive as _0x32ebc5,IconFacebook as _0x51676f,IconDropbox as _0x385a84,IconUploadcareLink as _0x19db34,IconUploadcareImageUpload as _0x49ed03,IconError as _0xca020d,IconUploadcareImageEdit as _0x4fa5d8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4dd829,MenuBarMenuListItemButtonView as _0x1c3f18,View as _0x109d61,FocusCycler as _0x5c0dff,Dialog as _0xe36578,DialogViewPosition as _0x3d1f50,SpinnerView as _0xd149cf,IconView as _0x47ff6a,Notification as _0x50e187}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3018b3,DomEmitterMixin as _0x4b432f,global as _0x155dda,getAncestors as _0x5bacdc,ObservableMixin as _0x28aecd,uid as _0x782983,createElement as _0x38b357}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1b56fb}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2b215d,info as _0x23d54c}from'@uploadcare/upload-client';import*as _0xbf4ebd from'@uploadcare/file-uploader';var i=function(_0x548a4f){return _0x548a4f['Local']='local',_0x548a4f['URL']='url',_0x548a4f['Dropbox']='dropbox',_0x548a4f['GDrive']='gdrive',_0x548a4f['Facebook']='facebook',_0x548a4f['GPhotos']='gphotos',_0x548a4f['OneDrive']='onedrive',_0x548a4f;}({});function _(_0x14b957,_0x199e86,_0x33d21e){const t=_0x14b957['t'],_0x11e91b=_0x14b957['t'];switch(_0x199e86){case i['Local']:return{'text':_0x11e91b('Insert'===_0x33d21e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x11e91b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x33d21e?_0x11e91b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x11e91b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x33d21e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x33d21e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x33d21e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x33d21e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x33d21e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x199e86;}}class e extends _0x4f7446{['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 _0x275f96=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x25ff3b;for(const _0x36c1c7 in _0x275f96){const _0x57ed42=_0x36c1c7,_0x40b47d=_0x275f96[_0x57ed42];if('uploadcareLicenseKeyValid'==_0x40b47d||'uploadcareLicenseKeyInvalid'==_0x40b47d||'uploadcareLicenseKeyExpired'==_0x40b47d||'uploadcareLicenseKeyDomainLimit'==_0x40b47d||'uploadcareLicenseKeyNotAllowed'==_0x40b47d||'uploadcareLicenseKeyEvaluationLimit'==_0x40b47d||'uploadcareLicenseKeyTrialLimit'==_0x40b47d||'uploadcareLicenseKeyUsageLimit'==_0x40b47d){delete _0x275f96[_0x57ed42],_0x25ff3b=_0x40b47d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x25ff3b&&_0x275f96['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x25ff3b&&_0x275f96['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x25ff3b&&_0x275f96['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x25ff3b&&_0x275f96['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x25ff3b&&_0x275f96['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x25ff3b&&_0x275f96['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x25ff3b&&_0x275f96['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x56b99e}=this,_0x4c6388=_0x56b99e['commands']['get']('uploadcare');if(!_0x4c6388)return;const _0x1d2058=this['_normalizeConfigSourceList'](_0x56b99e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4dcae5,_0x18df8c)=>{const _0x20150a=this['_getIntegrationKey'](_0x18df8c['type']);return _0x4dcae5[_0x20150a]||(_0x4dcae5[_0x20150a]=[]),_0x4dcae5[_0x20150a]['push'](_0x18df8c),_0x4dcae5;},{});_0x56b99e['plugins']['has']('ImageInsertUI')&&_0x56b99e['commands']['get']('uploadcare')&&Object['entries'](_0x1d2058)['forEach'](([_0x5bb816,_0x42c486])=>{_0x56b99e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5bb816,'observable':()=>_0x4c6388,'buttonViewCreator':()=>this['_createToolbarButton'](_0x42c486),'formViewCreator':()=>this['_createDropdownButtons'](_0x42c486),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x42c486),'override':'assetManager'!==_0x5bb816});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x142dd5){const {locale:_0x443ebb}=this['editor'];return _0x142dd5['map'](_0x5249a2=>{const _0x17eb44=_(_0x443ebb,_0x5249a2,'Insert');switch(_0x5249a2){case i['Local']:return{'icon':_0x49ed03,'type':i['Local'],..._0x17eb44};case i['URL']:return{'icon':_0x19db34,'type':i['URL'],..._0x17eb44};case i['Dropbox']:return{'icon':_0x385a84,'type':i['Dropbox'],..._0x17eb44};case i['Facebook']:return{'icon':_0x51676f,'type':i['Facebook'],..._0x17eb44};case i['GDrive']:return{'icon':_0x32ebc5,'type':i['GDrive'],..._0x17eb44};case i['GPhotos']:return{'icon':_0x3c9c60,'type':i['GPhotos'],..._0x17eb44};case i['OneDrive']:return{'icon':_0x424d88,'type':i['OneDrive'],..._0x17eb44};}});}['_getIntegrationKey'](_0x2a456e){switch(_0x2a456e){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x39bb3e,_0x5d64b3){const _0x2dac9f=this['editor'],_0x1a0a65=new _0x39bb3e(_0x2dac9f['locale']),_0x56c31a=_0x2dac9f['commands']['get']('uploadcare');return _0x1a0a65['bind']('isEnabled')['to'](_0x56c31a),_0x1a0a65['on']('execute',()=>{_0x56c31a['execute'](_0x5d64b3);}),_0x1a0a65;}['_createToolbarButton'](_0x282459){const {locale:_0x1acaae}=this['editor'],_0x516e80=this['editor']['plugins']['get']('ImageInsertUI'),_0x1afaa2=_0x282459[0x0],_0x3a489d=this['_createButton'](_0x4dd829,_0x1afaa2['type']);return _0x3a489d['icon']=_0x1afaa2['icon'],_0x3a489d['bind']('label')['to'](_0x516e80,'isImageSelected',_0x156dd6=>_(_0x1acaae,_0x1afaa2['type'],_0x156dd6?'Replace':'Insert')['text']),_0x3a489d['tooltip']=!0x0,_0x3a489d;}['_createDropdownButtons'](_0x48bfd0){const {locale:_0x568614}=this['editor'],_0x44811e=this['editor']['plugins']['get']('ImageInsertUI');return _0x48bfd0['map'](_0x23327b=>{const _0x522bcc=this['_createButton'](_0x4dd829,_0x23327b['type']);return _0x522bcc['withText']=!0x0,_0x522bcc['icon']=_0x23327b['icon'],_0x522bcc['bind']('label')['to'](_0x44811e,'isImageSelected',_0x690e9d=>_(_0x568614,_0x23327b['type'],_0x690e9d?'Replace':'Insert')['text']),_0x522bcc;});}['_createMenuBarButtons'](_0x39ca7f){return _0x39ca7f['map'](_0x1963cd=>{const _0x2d8860=this['_createButton'](_0x1c3f18,_0x1963cd['type']);return _0x2d8860['icon']=_0x1963cd['icon'],_0x2d8860['label']=_0x1963cd['shortText'],_0x2d8860;});}}class F extends _0x109d61{['focusTracker'];['focusCycler'];constructor(_0x19f593){super(_0x19f593),this['focusTracker']=new _0x3018b3(),this['focusCycler']=new _0x5c0dff({'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(_0x1b4562,_0x20bbd7){super(_0x1b4562),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-'+_0x20bbd7}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x58ca2b,_0x4515f6){const _0x13cb89=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x26babe=>_0x26babe<=_0x4515f6)['map'](_0x18d7d9=>_0x58ca2b['replace'](/\/$/,'')+'/-/resize/'+_0x18d7d9+'x/\x20'+_0x18d7d9+'w');return{'imageFallbackUrl':_0x58ca2b,'imageSources':[{'srcset':_0x13cb89['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4515f6+'px)\x20100vw,\x20'+_0x4515f6+'px','type':'image/webp'}]};}function C(_0x309708,_0x3324b9,_0x166377){const _0x3795ab=_0x309708['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3795ab?parseInt(_0x3795ab[0x1],0xa):_0x3324b9,'height':_0x3795ab?parseInt(_0x3795ab[0x2],0xa):_0x166377};}function p(_0xf48e36,_0x32f3b4){const _0x37315c=new(_0x4b432f())(),_0xfbd63b=_0xf48e36['plugins']['get']('ImageUtils'),_0x5d7033=_0xf48e36['editing']['mapper']['toViewElement'](_0x32f3b4),_0x2610eb=_0xfbd63b['findViewImgElement'](_0x5d7033),_0x5b21aa=_0xf48e36['editing']['view']['domConverter']['viewToDom'](_0x2610eb),_0x4bdaa4=_0x32f3b4['getAttribute']('width'),_0x49e044=_0x32f3b4['getAttribute']('height'),_0x4d166b='image-processing';_0xf48e36['editing']['view']['change'](_0x5040e5=>{_0x5040e5['addClass'](_0x4d166b,_0x5d7033),_0x5040e5['setStyle']('aspect-ratio',_0x4bdaa4+'/'+_0x49e044,_0x2610eb);}),_0x37315c['listenTo'](_0x5b21aa,'load',()=>{_0x37315c['stopListening'](_0x5b21aa,'load'),_0xf48e36['editing']['view']['change'](_0x2785d6=>{_0x2785d6['removeClass'](_0x4d166b,_0x5d7033),_0x2785d6['removeStyle']('aspect-ratio',_0x2610eb);});});}function z(_0x37bf84){if(Array['isArray'](_0x37bf84)){const _0x543612=_0x37bf84['map'](z);return _0x148cb6=>_0x543612['some'](_0x3e5ed4=>_0x3e5ed4(_0x148cb6));}if('origin'==_0x37bf84){const _0x489e56=_0x155dda['window']['location']['origin'];return _0x561f10=>new URL(_0x561f10,_0x155dda['document']['baseURI'])['origin']==_0x489e56;}return'function'==typeof _0x37bf84?_0x37bf84:_0x37bf84 instanceof RegExp?_0x5dbdd6=>!(!_0x5dbdd6['match'](_0x37bf84)&&!_0x5dbdd6['replace'](/^https?:\/\//,'')['match'](_0x37bf84)):()=>!0x1;}function S(_0x9c85a5,_0x3578a6){return _0x5bacdc(_0x9c85a5['target'])['includes'](_0x3578a6);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x28aecd(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2a45fd,_0x21eca5,_0x207b25){super(),this['_editor']=_0x2a45fd,this['_editing']=_0x21eca5,this['_dialog']=_0x2a45fd['plugins']['get'](_0xe36578),this['_api']=_0x21eca5['ctxElement']['getAPI'](),this['_type']=_0x207b25,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:_0x1a25e3,model:_0xf1092c}=this['_editor'],_0x5c8a4f=_0xf1092c['document']['selection']['getSelectedElement'](),_0x3b2609=_0x5c8a4f&&(_0x5c8a4f['is']('element','imageBlock')||_0x5c8a4f['is']('element','imageInline'));this['_formView']=new x(_0x1a25e3,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x49ed03,'title':_(_0x1a25e3,this['_type'],_0x3b2609?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3d1f50['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2408af=>!S(_0x2408af,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2e1515}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4bb3cf=>{const _0x33d1a6=_0x2e1515['length'];for(const _0x166803 of _0x2e1515){const _0x27dc0a=_0x166803===_0x2e1515[_0x33d1a6-0x1],{cdnUrl:_0x9da278,fileInfo:_0xb563df}=_0x166803;if(!_0x9da278||!_0xb563df)continue;const {width:_0xfea1d1,height:_0x4e84e9}=_0xb563df['imageInfo'],_0x1129fa=C(_0x9da278,_0xfea1d1,_0x4e84e9),_0xfd1151=k(_0x9da278,_0x1129fa['width']),_0xc77bc8={'id':_0xb563df['uuid'],'type':'image','attributes':{'imageDimension':_0x1129fa,..._0xfd1151}};this['_insertAsset'](_0xc77bc8,_0x27dc0a,_0x4bb3cf);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5bc72d=>{'idle'===_0x5bc72d['detail']['status']&&!_0x5bc72d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x384090,_0x136654,_0x24c4a8){const _0x5b7ccd=this['_editor']['model']['document']['selection'],_0x4b58ef=_0x5b7ccd['getSelectedElement'](),_0x243c04=!(!_0x4b58ef||!_0x4b58ef['is']('element','imageInline'));_0x24c4a8['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x384090,_0x243c04),_0x136654||_0x24c4a8['setSelection'](_0x5b7ccd['getLastPosition']());}['_insertImage'](_0x1dd9fe,_0x37bf4d){const _0x5eef01=this['_editor'],{imageDimension:_0x3a678a,imageFallbackUrl:_0x15be5e,imageSources:_0x24fee1}=_0x1dd9fe['attributes'];_0x5eef01['execute']('insertImage',{'imageType':_0x37bf4d?'imageInline':null,'source':{'uploadcareImageId':_0x1dd9fe['id'],'src':_0x15be5e,'sources':_0x24fee1,..._0x3a678a}});}}class w extends _0x3ee3d2{['_editing'];['_controller']=null;static get['requires'](){return[_0xe36578,o];}constructor(_0x1d231d){super(_0x1d231d),this['_editing']=_0x1d231d['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3d54dd){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3d54dd);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x520c39,publicKey:_0x5f5c54,signal:_0x182c84,onProgress:_0x134b65}){return _0x2b215d(_0x520c39,{'publicKey':_0x5f5c54,'store':'auto','signal':_0x182c84,'onProgress':_0x134b65});}static['getInfo'](_0x144f06,_0x2f0f32){return _0x23d54c(_0x144f06,_0x2f0f32);}}class f extends _0x4f7446{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1b56fb,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x587dbe=this['editor'];if(!!!_0x587dbe['config']['get']('uploadcare'))return;_0x587dbe['plugins']['get'](_0x1b56fb)['createUploadAdapter']=_0x125e70=>new A(_0x125e70,_0x587dbe),_0x587dbe['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x564550,{imageElement:_0x3c5a48,data:_0x5100a1})=>{_0x587dbe['model']['change'](_0x45ec2c=>{_0x45ec2c['setAttribute']('uploadcareImageId',_0x5100a1['uploadcareImageId'],_0x3c5a48);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x37d78d,_0x546754){this['loader']=_0x37d78d,this['editor']=_0x546754,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x107e7d=this['editor']['config']['get']('uploadcare.pubkey'),_0x59f611=await this['loader']['file'];return j['upload']({'file':_0x59f611,'publicKey':_0x107e7d,'signal':this['controller']['signal'],'onProgress':_0x3c0114=>{_0x3c0114&&_0x3c0114['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3c0114['value']);}})['then'](async _0x2e39e8=>{const {imageFallbackUrl:_0x4c6f33,imageSources:_0x2ea054}=k(_0x2e39e8['cdnUrl'],_0x2e39e8['imageInfo']['width']);return{'uploadcareImageId':_0x2e39e8['uuid'],'default':_0x4c6f33,'sources':_0x2ea054};})['catch'](()=>{const _0x186a52=t('Cannot\x20upload\x20file:')+('\x20'+_0x59f611['name']+'.');return Promise['reject'](_0x186a52);});}['abort'](){this['controller']['abort']();}}class o extends _0x4f7446{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0xe36578];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x276076){super(_0x276076),this['ucContextId']=_0x782983();}['init'](){const _0x1206b7=this['editor'];_0x1206b7['commands']['add']('uploadcare',new w(_0x1206b7));}['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 _0x5141a3=_0x155dda['document']['querySelector']('input[uploadcare-file-input]');_0x5141a3&&_0x5141a3['remove']();}),async function(_0x3a926a){const _0x2cb628=_0x321ff3([0x46,0x73,0x79,0x69,0x71,0x61,0x30,0x72,0x62,0x58,0x45,0x47,0x4f,0x67,0x52,0x55,0x38,0x6d,0x59,0x32,0x76,0x65,0x51,0x77,0x43,0x78,0x4d,0x66,0x6e,0x4b,0x36,0x63,0x31,0x39,0x6b,0x74,0x7a,0x34,0x57,0x44,0x6a,0x37,0x48,0x5a,0x4e,0x54,0x6f,0x33,0x64,0x50,0x49,0x41,0x68,0x35,0x6c,0x53,0x75,0x4c,0x4a,0x56,0x42,0x70]),_0x585fa7=0x2cbbfe0c,_0x12e8f0=0x2cbc8ee4^_0x585fa7,_0x11d4cd=window[_0x321ff3([0x44,0x61,0x74,0x65])][_0x321ff3([0x6e,0x6f,0x77])](),_0x495465=_0x3a926a[_0x321ff3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x543dac=new window[(_0x321ff3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2060bf=>{_0x495465[_0x321ff3([0x6f,0x6e,0x63,0x65])](_0x321ff3([0x72,0x65,0x61,0x64,0x79]),_0x2060bf);}),_0xb8959b={[_0x321ff3([0x6b,0x74,0x79])]:_0x321ff3([0x45,0x43]),[_0x321ff3([0x75,0x73,0x65])]:_0x321ff3([0x73,0x69,0x67]),[_0x321ff3([0x63,0x72,0x76])]:_0x321ff3([0x50,0x2d,0x32,0x35,0x36]),[_0x321ff3([0x78])]:_0x321ff3([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]),[_0x321ff3([0x79])]:_0x321ff3([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]),[_0x321ff3([0x61,0x6c,0x67])]:_0x321ff3([0x45,0x53,0x32,0x35,0x36])},_0x377520=_0x495465[_0x321ff3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x321ff3([0x67,0x65,0x74])](_0x321ff3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x54f51a(){let _0x3d8c96,_0x487c31=null,_0x13c5bf=null;try{if(_0x377520==_0x321ff3([0x47,0x50,0x4c]))return _0x321ff3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3d8c96=_0x127be6(),!_0x3d8c96)return _0x321ff3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3d8c96[_0x321ff3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x13c5bf=_0x3ac1f0(_0x3d8c96[_0x321ff3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3d8c96[_0x321ff3([0x6a,0x74,0x69])])),await _0x3df6ba()?_0x1862de()?_0x45a187()?_0x321ff3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x412ece()?(_0x3d8c96[_0x321ff3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x321ff3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x487c31=_0x364531(_0x321ff3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3d8c96[_0x321ff3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x321ff3([0x74,0x72,0x69,0x61,0x6c])&&(_0x487c31=_0x364531(_0x321ff3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x510da5()):_0x321ff3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x321ff3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x321ff3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x321ff3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x45a187(){const _0x5c54d8=[_0x321ff3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x321ff3([0x74,0x72,0x69,0x61,0x6c])][_0x321ff3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d8c96[_0x321ff3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11d4cd/0x3e8:0xe10*_0x12e8f0;return _0x3d8c96[_0x321ff3([0x65,0x78,0x70])]<_0x5c54d8;}function _0x1862de(){const _0x1383e5=_0x3d8c96[_0x321ff3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1383e5&&(!!_0x1383e5[_0x321ff3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x321ff3([0x2a]))||!!_0x1383e5[_0x321ff3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x321ff3([0x55,0x50,0x4c,0x43])));}function _0x412ece(){const _0x4bb961=_0x3d8c96[_0x321ff3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4bb961||0x0==_0x4bb961[_0x321ff3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c883e}=new URL(window[_0x321ff3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4bb961[_0x321ff3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c883e))return!0x0;const _0xc5b2cd=_0x2c883e[_0x321ff3([0x73,0x70,0x6c,0x69,0x74])](_0x321ff3([0x2e]));return _0x4bb961[_0x321ff3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xeb2623=>_0xeb2623[_0x321ff3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x321ff3([0x2a])))[_0x321ff3([0x6d,0x61,0x70])](_0x24f380=>_0x24f380[_0x321ff3([0x73,0x70,0x6c,0x69,0x74])](_0x321ff3([0x2e])))[_0x321ff3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30df76=>_0x30df76[_0x321ff3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xc5b2cd[_0x321ff3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x321ff3([0x6d,0x61,0x70])](_0x16baef=>Array(_0xc5b2cd[_0x321ff3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x16baef[_0x321ff3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x321ff3([0x66,0x69,0x6c,0x6c])](_0x16baef[0x0]===_0x321ff3([0x2a])?_0x321ff3([0x2a]):'')[_0x321ff3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x16baef))[_0x321ff3([0x73,0x6f,0x6d,0x65])](_0x352516=>_0xc5b2cd[_0x321ff3([0x65,0x76,0x65,0x72,0x79])]((_0x27a84d,_0x4fbce6)=>_0x352516[_0x4fbce6]===_0x27a84d||_0x352516[_0x4fbce6]===_0x321ff3([0x2a])));}function _0x510da5(){return _0x487c31&&_0x13c5bf?new window[(_0x321ff3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x74197,_0x4a15b6)=>{_0x487c31[_0x321ff3([0x74,0x68,0x65,0x6e])](_0x74197,_0x4a15b6),_0x13c5bf[_0x321ff3([0x74,0x68,0x65,0x6e])](_0x1858aa=>{_0x1858aa!=_0x321ff3([0x56,0x61,0x6c,0x69,0x64])&&_0x74197(_0x1858aa);},_0x4a15b6);}):_0x487c31||_0x13c5bf||_0x321ff3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ac1f0(_0x54f846,_0x663429){return new window[(_0x321ff3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e73a9=>{if(_0x3c0f56())return _0x2e73a9(_0x321ff3([0x56,0x61,0x6c,0x69,0x64]));_0x2aa54b(),_0x495465[_0x321ff3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x321ff3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5deac3=!0x1;const _0x45b7d2=_0x782983();function _0x3fd66a(_0x2cc3dc){return!!_0x2cc3dc&&(typeof _0x2cc3dc===_0x321ff3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2cc3dc===_0x321ff3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2cc3dc[_0x321ff3([0x74,0x68,0x65,0x6e])]===_0x321ff3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2cc3dc[_0x321ff3([0x63,0x61,0x74,0x63,0x68])]===_0x321ff3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x431c72(_0x1d9e68){_0x5f5bdf(_0x1d9e68)[_0x321ff3([0x74,0x68,0x65,0x6e])](_0x1fab78=>{if(!_0x1fab78||_0x1fab78[_0x321ff3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x321ff3([0x6f,0x6b]))return _0x321ff3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x318851(_0x57cfbf(_0x45b7d2+_0x663429))!=_0x1fab78[_0x321ff3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x321ff3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x321ff3([0x56,0x61,0x6c,0x69,0x64]);})[_0x321ff3([0x74,0x68,0x65,0x6e])](_0x3b90b0=>(_0x490d1b(),_0x3b90b0),()=>{const _0x5a2299=_0x485154();return null==_0x5a2299?(_0x490d1b(),_0x321ff3([0x56,0x61,0x6c,0x69,0x64])):_0x321ff3(_0x11d4cd-_0x5a2299>(0x8b77a0c^_0x585fa7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x321ff3([0x74,0x68,0x65,0x6e])](_0x2e73a9)[_0x321ff3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2e73a9(_0x321ff3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5cfdbf=0x2c8d108c^_0x585fa7;function _0x490d1b(){const _0x490390=_0x321ff3([0x6c,0x6c,0x63,0x74,0x2d])+_0x318851(_0x57cfbf(_0x54f846)),_0x17656a=_0x2c6179(_0x318851(window[_0x321ff3([0x4d,0x61,0x74,0x68])][_0x321ff3([0x63,0x65,0x69,0x6c])](_0x11d4cd/_0x5cfdbf)));window[_0x321ff3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x321ff3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x490390,_0x17656a);}function _0x485154(){const _0x293dba=_0x321ff3([0x6c,0x6c,0x63,0x74,0x2d])+_0x318851(_0x57cfbf(_0x54f846)),_0x4e51d1=window[_0x321ff3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x321ff3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x293dba);return _0x4e51d1?window[_0x321ff3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c6179(_0x4e51d1),0x10)*_0x5cfdbf:null;}function _0x5f5bdf(_0x190f02){return new window[(_0x321ff3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x135bed,_0x465cc4)=>{_0x190f02[_0x321ff3([0x74,0x68,0x65,0x6e])](_0x135bed,_0x465cc4),window[_0x321ff3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x465cc4,0x2cba2acc^_0x585fa7);});}}_0x495465[_0x321ff3([0x6f,0x6e])](_0x321ff3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x31da2b,_0x4b66cd)=>{if(_0x4b66cd[0x0]!=_0x54f846)return _0x2e73a9(_0x321ff3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b66cd[0x1]={..._0x4b66cd[0x1],[_0x321ff3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45b7d2};},{[_0x321ff3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x321ff3([0x68,0x69,0x67,0x68])}),_0x495465[_0x321ff3([0x6f,0x6e])](_0x321ff3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x122871=>{_0x3fd66a(_0x122871[_0x321ff3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5deac3=!0x0,_0x431c72(_0x122871[_0x321ff3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x321ff3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x321ff3([0x6c,0x6f,0x77])}),_0x543dac[_0x321ff3([0x74,0x68,0x65,0x6e])](()=>{_0x5deac3||_0x2e73a9(_0x321ff3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c0f56(){return _0x495465[_0x321ff3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x321ff3([0x76,0x69,0x65,0x77])][_0x321ff3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x321ff3([0x61,0x75,0x74,0x6f]);}function _0x2aa54b(){_0x495465[_0x321ff3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x321ff3([0x76,0x69,0x65,0x77])][_0x321ff3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x321ff3([0x61,0x75,0x74,0x6f]);}}function _0x364531(_0x2a2110){const _0x1a6c6e=[new window[(_0x321ff3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21a110=>setTimeout(_0x21a110,0x2cb2c0c0^_0x585fa7)),_0x543dac[_0x321ff3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x321ff3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x348876=>{let _0xfbc017=0x0;_0x495465[_0x321ff3([0x6d,0x6f,0x64,0x65,0x6c])][_0x321ff3([0x6f,0x6e])](_0x321ff3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x304994,_0x5ca642)=>{_0x5ca642[0x0][_0x321ff3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xfbc017++,_0xfbc017==(0x2cbbfff4^_0x585fa7)&&(_0x348876(),_0x304994[_0x321ff3([0x6f,0x66,0x66])]());});}))];return window[_0x321ff3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x321ff3([0x72,0x61,0x63,0x65])](_0x1a6c6e)[_0x321ff3([0x74,0x68,0x65,0x6e])](()=>_0x2a2110);}async function _0x551dd5(){await _0x543dac,_0x495465[_0x321ff3([0x6d,0x6f,0x64,0x65,0x6c])][_0x321ff3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x17b49c,_0x495465[_0x321ff3([0x6d,0x6f,0x64,0x65,0x6c])][_0x321ff3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x17b49c,_0x495465[_0x321ff3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x321ff3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35109e(_0x92bfcd){const _0x4aca0f=_0x598d70();_0x495465[_0x4aca0f]=_0x321ff3([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x92bfcd,_0x92bfcd!=_0x321ff3([0x56,0x61,0x6c,0x69,0x64])&&_0x551dd5();}function _0x598d70(){const _0x2a9aeb=window[_0x321ff3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x321ff3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x321ff3([0x6e,0x6f,0x77])]())[_0x321ff3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x321ff3([0x2e]),'');let _0x17cab2=_0x321ff3([0x46]);for(let _0x2a2ee8=0x0;_0x2a2ee8<_0x2a9aeb[_0x321ff3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a2ee8+=0x2){let _0x400d89=window[_0x321ff3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a9aeb[_0x321ff3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a2ee8,_0x2a2ee8+0x2));_0x400d89>=_0x2cb628[_0x321ff3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x400d89-=_0x2cb628[_0x321ff3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17cab2+=_0x2cb628[_0x400d89];}return _0x17cab2;}function _0x127be6(){const _0x528477=_0x377520[_0x321ff3([0x73,0x70,0x6c,0x69,0x74])](_0x321ff3([0x2e]));if(0x3!=_0x528477[_0x321ff3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x454fe4(_0x528477[0x1]);function _0x454fe4(_0x26eb3f){const _0x1ffa85=_0x4aef29(_0x26eb3f);return _0x1ffa85&&_0x585e63()?_0x1ffa85:null;function _0x585e63(){const _0x5952c6=_0x1ffa85[_0x321ff3([0x6a,0x74,0x69])],_0x371878=window[_0x321ff3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5952c6[_0x321ff3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5952c6[_0x321ff3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57fa17={..._0x1ffa85,[_0x321ff3([0x6a,0x74,0x69])]:_0x5952c6[_0x321ff3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5952c6[_0x321ff3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57fa17[_0x321ff3([0x76,0x63])],_0x57cfbf(_0x57fa17)==_0x371878;}}}async function _0x3df6ba(){let _0x150aa2=!0x0;try{const _0x2fa834=_0x377520[_0x321ff3([0x73,0x70,0x6c,0x69,0x74])](_0x321ff3([0x2e])),[_0x252f8a,_0x5a4347,_0x11a622]=_0x2fa834;return _0x5a3a1c(_0x252f8a),await _0x42d90b(_0x252f8a,_0x5a4347,_0x11a622),_0x150aa2;}catch{return!0x1;}function _0x5a3a1c(_0x5460c5){const _0x1f98a8=_0x4aef29(_0x5460c5);_0x1f98a8&&_0x1f98a8[_0x321ff3([0x61,0x6c,0x67])]==_0x321ff3([0x45,0x53,0x32,0x35,0x36])||(_0x150aa2=!0x1);}async function _0x42d90b(_0x469552,_0x4b454e,_0x470d4b){const _0x389f41=window[_0x321ff3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x321ff3([0x66,0x72,0x6f,0x6d])](_0x5411a3(_0x470d4b),_0x32e182=>_0x32e182[_0x321ff3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1d3ce6=new window[(_0x321ff3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x321ff3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x469552+_0x321ff3([0x2e])+_0x4b454e),_0x32522d=window[_0x321ff3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x321ff3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x32522d)return;const _0x13c52f=await _0x32522d[_0x321ff3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x321ff3([0x6a,0x77,0x6b]),_0xb8959b,{[_0x321ff3([0x6e,0x61,0x6d,0x65])]:_0x321ff3([0x45,0x43,0x44,0x53,0x41]),[_0x321ff3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x321ff3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x321ff3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x32522d[_0x321ff3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x321ff3([0x6e,0x61,0x6d,0x65])]:_0x321ff3([0x45,0x43,0x44,0x53,0x41]),[_0x321ff3([0x68,0x61,0x73,0x68])]:{[_0x321ff3([0x6e,0x61,0x6d,0x65])]:_0x321ff3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x13c52f,_0x389f41,_0x1d3ce6)||(_0x150aa2=!0x1);}}function _0x4aef29(_0x52252a){return _0x52252a[_0x321ff3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x321ff3([0x65,0x79]))?JSON[_0x321ff3([0x70,0x61,0x72,0x73,0x65])](_0x5411a3(_0x52252a)):null;}function _0x5411a3(_0x323b86){return window[_0x321ff3([0x61,0x74,0x6f,0x62])](_0x323b86[_0x321ff3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x321ff3([0x2b]))[_0x321ff3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x321ff3([0x2f])));}function _0x57cfbf(_0x4b4ce6){let _0x4ab10b=0x1505;function _0x337953(_0x1355fc){for(let _0x1ee764=0x0;_0x1ee764<_0x1355fc[_0x321ff3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ee764++){const _0x1e27a4=_0x1355fc[_0x321ff3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ee764);_0x4ab10b=(_0x4ab10b<<0x5)+_0x4ab10b+_0x1e27a4,_0x4ab10b&=_0x4ab10b;}}function _0x4e0bb8(_0x4e275d){Array[_0x321ff3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e275d)?_0x4e275d[_0x321ff3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e0bb8):_0x4e275d&&typeof _0x4e275d==_0x321ff3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x321ff3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e275d)[_0x321ff3([0x73,0x6f,0x72,0x74])]()[_0x321ff3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1335d0,_0x3f4d11])=>{_0x337953(_0x1335d0),_0x4e0bb8(_0x3f4d11);}):_0x337953(window[_0x321ff3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e275d));}return _0x4e0bb8(_0x4b4ce6),_0x4ab10b>>>0x0;}function _0x318851(_0x30b358){return _0x30b358[_0x321ff3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x321ff3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x321ff3([0x30]));}function _0x2c6179(_0x43793a){return _0x43793a[_0x321ff3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x321ff3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x321ff3([0x6a,0x6f,0x69,0x6e])]('');}function _0x17b49c(){}function _0x321ff3(_0x308ae5){return _0x308ae5['map'](_0x5ca83f=>String['fromCharCode'](_0x5ca83f))['join']('');}_0x35109e(await _0x54f51a());}(this);}['_initSchema'](){const _0x44347a=this['editor']['model']['schema'];_0x44347a['isRegistered']('imageBlock')&&_0x44347a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x44347a['isRegistered']('imageInline')&&_0x44347a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x26a730=this['editor'];_0x26a730['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x26a730['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5da6ba=>_0x5da6ba['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5c9f0c=_0x26a730['commands']['get']('replaceImageSource');_0x5c9f0c&&this['listenTo'](_0x5c9f0c,'cleanupImage',(_0xa21c66,[_0x4e9f2b,_0x358ea2])=>{_0x4e9f2b['removeAttribute']('uploadcareImageId',_0x358ea2);});}['_initConfig'](){const _0x35786b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4cfeca=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x38b357(_0x155dda['document'],'uc-config',{..._0x35786b,'pubkey':_0x4cfeca,'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']=_0x43c413=>{if('closeMax'==_0x43c413)return'#uc-icon-arrow-down';},_0x155dda['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x38b357(_0x155dda['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x155dda['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x356e1b=this['editor']['commands']['get']('insertImage');_0x356e1b&&this['listenTo'](_0x356e1b,'execute',()=>{const _0x507ed9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x507ed9&&_0x507ed9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x507ed9);});});const _0x40a1cc=this['editor']['commands']['get']('uploadcareImageReplace');_0x40a1cc&&this['listenTo'](_0x40a1cc,'execute',()=>{const _0x5b273=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5b273&&_0x5b273['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5b273);});});}}class tt extends _0x4f7446{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2596a6){super(_0x2596a6),_0x2596a6['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xbf4ebd['defineComponents'](_0xbf4ebd);}}class ii extends _0x109d61{constructor(_0x1911ee){super(_0x1911ee);const t=_0x1911ee['t'],_0x512612=this['bindTemplate'],_0xe678e1=new _0xd149cf();_0xe678e1['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':[_0xe678e1,{'text':_0x512612['to']('imageUploadProgress',_0x15e9ea=>t('Loading\x20image...')+'\x20('+(_0x15e9ea||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 _0x109d61{constructor(_0x491780){super(_0x491780);const t=_0x491780['t'];this['set']('errorType',null);const _0x26a485=new _0x4dd829(_0x491780);_0x26a485['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x26a485['withText']=!0x0,_0x26a485['class']='ck-button-action',_0x26a485['on']('execute',()=>{this['fire']('retry');}),_0x26a485['bind']('isVisible')['to'](this,'errorType',_0x5d4ae8=>'NotFound'!==_0x5d4ae8);const _0x157ca6=new _0x47ff6a();_0x157ca6['content']=_0xca020d,_0x157ca6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x57d178=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':[_0x157ca6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x57d178['to']('errorType',_0x2128e2=>t('NotFound'!==_0x2128e2?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x26a485]},{'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 _0x109d61{constructor(_0xfee2cb,_0x432315){super(_0xfee2cb);const _0x4dc115=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x432315,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4dc115['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1e7308,_0x119b0a,_0xd1577e){super(_0x1e7308),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1e7308),this['_errorView']=new ti(_0x1e7308),this['_editingView']=new ei(_0x1e7308,_0xd1577e),this['_focusableView']=new _0x109d61(_0x1e7308),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x119b0a),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'],_0x37de51=>{this['_addUploadcareImageEditorListeners'](_0x37de51);});}),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'](_0x4bfd4d,_0x12d8e5){const _0x5243e9='uc-cloud-image-editor',_0x5601a1=_0x4bfd4d['querySelector'](_0x5243e9);if(_0x5601a1)return _0x12d8e5(_0x5601a1);const _0x2c3fb3=new MutationObserver(_0x4404ea=>{const _0x456094=_0x4404ea['filter'](_0x365808=>_0x365808['target']===_0x4bfd4d&&_0x365808['addedNodes']['length']>0x0&&_0x365808['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5243e9);_0x456094['length']&&(_0x2c3fb3['disconnect'](),_0x12d8e5(_0x456094[0x0]['addedNodes'][0x0]));});_0x2c3fb3['observe'](_0x4bfd4d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x450c0b){_0x450c0b['addEventListener']('apply',_0x37f93b=>{this['fire']('apply',{'imageSrc':_0x37f93b['detail']['cdnUrl']});}),_0x450c0b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x28aecd(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x10116a,_0x3f4cd9,_0xfdc25d){super(),this['_editor']=_0x10116a,this['_dialog']=_0x3f4cd9,this['_imageElement']=_0xfdc25d,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 _0xf3759c=this['_imageElement'],_0x4195a7=_0xf3759c['getAttribute']('uploadcareImageId'),_0x1a76aa=_0xf3759c['getAttribute']('src');if(_0x4195a7)await this['_loadImageInfo'](_0x4195a7,_0x1a76aa);else{if(this['_imageCache']['has'](_0x1a76aa)){const _0x13c6fb=this['_imageCache']['get'](_0x1a76aa);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13c6fb['url'],this['imageDimension']=_0x13c6fb['dimension'],this['imageId']=_0x13c6fb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x57eace}=this['_editor'],t=_0x57eace['t'],_0x2debfa=new X(_0x57eace,this['imageStatus'],this['_attributes']);_0x2debfa['bind']('status')['to'](this,'imageStatus'),_0x2debfa['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2debfa['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2debfa['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2debfa,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4fa5d8,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2debfa,'position':_0x3d1f50['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2debfa['focus']();},'onHide':()=>{_0x2debfa['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x38c8d3=>!S(_0x38c8d3,_0x2debfa['element'])}});}['_loadImageInfo'](_0x516d6d,_0x55b5de){return j['getInfo'](_0x516d6d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x177f04=>{const {width:_0x2f4b9e,height:_0x47d736}=_0x177f04['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x55b5de,this['imageDimension']={'width':_0x2f4b9e,'height':_0x47d736},this['imageId']=_0x516d6d;})['catch'](_0x5225fa=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5225fa['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2fe3ff,_0x4ea8b9){return this['_getImageAsFile'](_0x2fe3ff)['then'](_0x495025=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4ea8b9['signal'],'file':_0x495025,'onProgress':_0x3f9a52=>{_0x3f9a52&&_0x3f9a52['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3f9a52['value']));}}))['then'](_0x109f1f=>{const {width:_0x30d2c3,height:_0x3936c2}=_0x109f1f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x109f1f['cdnUrl'],this['imageDimension']={'width':_0x30d2c3,'height':_0x3936c2},this['imageId']=_0x109f1f['uuid'],this['imageUploadProgress']=null;const _0xc0731b=_0x2fe3ff['getAttribute']('src');this['_imageCache']['set'](_0xc0731b,{'id':_0x109f1f['uuid'],'url':_0x109f1f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x29767e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x29767e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5bf64f,_0x27a686){_0x5bf64f['on']('apply',(_0x30b61a,_0x14781d)=>{this['_replaceImage'](_0x27a686,_0x14781d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5bf64f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5bf64f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3c8c61,_0x1ae745,_0x534784){const _0x38aa05=this['_editor'],{width:_0x12e3d6,height:_0x9e0e03}=C(_0x1ae745,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2c55cf,imageSources:_0x30bbfe}=k(_0x1ae745,_0x12e3d6);_0x38aa05['model']['change'](_0x580954=>{if('$graveyard'===_0x3c8c61['root']['rootName']){_0x38aa05['execute']('insertImage',{'imageType':_0x3c8c61['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3c8c61['getAttributes']()),'uploadcareImageId':_0x534784,'src':_0x2c55cf,'sources':_0x30bbfe,'width':_0x12e3d6,'height':_0x9e0e03}});const _0x11a2a9=_0x3c8c61['getChildren']();_0x3c8c61=_0x38aa05['model']['document']['selection']['getSelectedElement']();for(const _0x2c79f7 of _0x11a2a9)_0x580954['append'](_0x580954['cloneElement'](_0x2c79f7),_0x3c8c61);}else _0x580954['setSelection'](_0x3c8c61,'on'),_0x38aa05['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3c8c61['getAttributes']()),'uploadcareImageId':_0x534784,'src':_0x2c55cf,'sources':_0x30bbfe,'width':_0x12e3d6,'height':_0x9e0e03},_0x3c8c61);_0x580954['setSelection'](_0x3c8c61,'on');});}async['_getImageAsFile'](_0x519dea){const _0x45f318=_0x155dda['window'],_0x16f280=_0x155dda['document']['location']['href'],_0x442390=new _0x45f318['URL'](_0x519dea['getAttribute']('src'),_0x16f280);if('data:'===_0x442390['protocol']){const _0x2265dc=_0x442390['href']['split'](','),_0x1f7034=_0x2265dc[0x0]['match'](/:(.*?);/)[0x1],_0x1d0795=_0x1f7034['split']('/')[0x1],_0x56cb76=_0x45f318['atob'](_0x2265dc[_0x2265dc['length']-0x1]);let _0x5269be=_0x56cb76['length'];const _0x1b17f0=new _0x45f318['Uint8Array'](_0x5269be);for(;_0x5269be--;)_0x1b17f0[_0x5269be]=_0x56cb76['charCodeAt'](_0x5269be);return new _0x45f318['File']([_0x1b17f0],'image.'+_0x1d0795,{'type':_0x1f7034});}const _0x14a63e=_0x442390['href']['split']('/'),_0x4209c9=_0x14a63e[_0x14a63e['length']-0x1],_0x25dcfc=_0x4209c9['split']('.')[0x1];return _0x45f318['fetch'](_0x442390['href'])['then'](_0x2241c1=>_0x2241c1['clone']()['blob']())['then'](_0x4643b7=>new _0x45f318['File']([_0x4643b7],_0x4209c9,{'type':'image/'+_0x25dcfc}));}}class Q extends _0x3ee3d2{['imageEditController'];static get['requires'](){return[_0xe36578];}['_isEditable'];constructor(_0x1ba7c1){super(_0x1ba7c1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x393abd){const _0x1fb108=z(_0x393abd);return _0x15eb30=>!(!_0x15eb30||!_0x15eb30['is']('element','imageBlock')&&!_0x15eb30['is']('element','imageInline'))&&(!!_0x15eb30['hasAttribute']('uploadcareImageId')||!!_0x15eb30['hasAttribute']('src')&&_0x1fb108(_0x15eb30['getAttribute']('src')));}(_0x1ba7c1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2c7ab0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2c7ab0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4d6712=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4d6712&&(_0x4d6712['is']('element','imageBlock')||_0x4d6712['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0xe36578),_0x4d6712),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x3ee3d2{['refresh'](){const _0x518cf7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x518cf7&&(_0x518cf7['is']('element','imageBlock')||_0x518cf7['is']('element','imageInline')));}['execute'](_0x31cb4f){const _0x39fc76=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x23d8a1=>{_0x23d8a1['setAttributes'](_0x31cb4f,_0x39fc76),_0x23d8a1['removeAttribute']('srcset',_0x39fc76),_0x23d8a1['removeAttribute']('sizes',_0x39fc76);});}}class m extends _0x4f7446{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x50e187,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x31939b}=this;_0x31939b['commands']['add']('uploadcareImageEdit',new Q(_0x31939b)),_0x31939b['commands']['add']('uploadcareImageReplace',new V(_0x31939b));}}class g extends _0x4f7446{['_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 _0x1bf299=this['editor'];_0x1bf299['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3ce6e2=>{const _0x337a95=_0x1bf299['commands']['get']('uploadcareImageEdit'),_0x39640c=new _0x4dd829(_0x3ce6e2),t=_0x3ce6e2['t'];return _0x39640c['set']({'icon':_0x4fa5d8,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x39640c['bind']('isEnabled')['to'](_0x337a95),_0x39640c['bind']('isOn')['to'](_0x337a95,'isActive'),this['listenTo'](_0x39640c,'execute',()=>{_0x1bf299['execute']('uploadcareImageEdit'),_0x1bf299['editing']['view']['focus']();}),_0x39640c;}),this['_initConfig']();}['_initConfig'](){const _0x19e98d=_0x38b357(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x19e98d),this['listenTo'](this['editor'],'destroy',()=>{_0x19e98d['remove']();});}}class et extends _0x4f7446{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,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x1eeb22,Command as _0x940cc1}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3c6891,IconGooglePhotos as _0x596bde,IconGoogleDrive as _0x3c305e,IconFacebook as _0x18f5be,IconDropbox as _0x38b25a,IconUploadcareLink as _0x54c721,IconUploadcareImageUpload as _0x2d5458,IconError as _0x3d0e10,IconUploadcareImageEdit as _0x44824d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x592f78,MenuBarMenuListItemButtonView as _0x51ffb8,View as _0x4e0d6d,FocusCycler as _0xf137da,Dialog as _0x56f5bd,DialogViewPosition as _0x396cf5,SpinnerView as _0x8e3a63,IconView as _0x48dad0,Notification as _0x5a03b9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3f21c2,DomEmitterMixin as _0x107494,global as _0x43cd07,getAncestors as _0x14d343,ObservableMixin as _0x2ab45c,uid as _0x30f90e,createElement as _0x4b9e6b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x291163}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2da731,info as _0x98704e}from'@uploadcare/upload-client';import*as _0x407fee from'@uploadcare/file-uploader';var i=function(_0x4dfe8c){return _0x4dfe8c['Local']='local',_0x4dfe8c['URL']='url',_0x4dfe8c['Dropbox']='dropbox',_0x4dfe8c['GDrive']='gdrive',_0x4dfe8c['Facebook']='facebook',_0x4dfe8c['GPhotos']='gphotos',_0x4dfe8c['OneDrive']='onedrive',_0x4dfe8c;}({});function _(_0x28c82c,_0x2b703b,_0x429cc6){const t=_0x28c82c['t'],_0x1c20c4=_0x28c82c['t'];switch(_0x2b703b){case i['Local']:return{'text':_0x1c20c4('Insert'===_0x429cc6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1c20c4('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x429cc6?_0x1c20c4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1c20c4('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x429cc6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x429cc6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x429cc6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x429cc6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x429cc6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2b703b;}}class e extends _0x1eeb22{['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 _0x4ba0a6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x320fdc;for(const _0x3289e0 in _0x4ba0a6){const _0x31ff0b=_0x3289e0,_0x536690=_0x4ba0a6[_0x31ff0b];if('uploadcareLicenseKeyValid'==_0x536690||'uploadcareLicenseKeyInvalid'==_0x536690||'uploadcareLicenseKeyExpired'==_0x536690||'uploadcareLicenseKeyDomainLimit'==_0x536690||'uploadcareLicenseKeyNotAllowed'==_0x536690||'uploadcareLicenseKeyEvaluationLimit'==_0x536690||'uploadcareLicenseKeyTrialLimit'==_0x536690||'uploadcareLicenseKeyUsageLimit'==_0x536690){delete _0x4ba0a6[_0x31ff0b],_0x320fdc=_0x536690,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x320fdc&&_0x4ba0a6['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x320fdc&&_0x4ba0a6['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x320fdc&&_0x4ba0a6['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x320fdc&&_0x4ba0a6['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x320fdc&&_0x4ba0a6['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x320fdc&&_0x4ba0a6['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x320fdc&&_0x4ba0a6['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1c2c5b}=this,_0x23f980=_0x1c2c5b['commands']['get']('uploadcare');if(!_0x23f980)return;const _0x2b1ddb=this['_normalizeConfigSourceList'](_0x1c2c5b['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x13e0cc,_0x163a52)=>{const _0x1d28b9=this['_getIntegrationKey'](_0x163a52['type']);return _0x13e0cc[_0x1d28b9]||(_0x13e0cc[_0x1d28b9]=[]),_0x13e0cc[_0x1d28b9]['push'](_0x163a52),_0x13e0cc;},{});_0x1c2c5b['plugins']['has']('ImageInsertUI')&&_0x1c2c5b['commands']['get']('uploadcare')&&Object['entries'](_0x2b1ddb)['forEach'](([_0x2433ae,_0x2ecade])=>{_0x1c2c5b['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2433ae,'observable':()=>_0x23f980,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2ecade),'formViewCreator':()=>this['_createDropdownButtons'](_0x2ecade),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2ecade),'override':'assetManager'!==_0x2433ae});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1a6b97){const {locale:_0x526c31}=this['editor'];return _0x1a6b97['map'](_0x179177=>{const _0x34c03e=_(_0x526c31,_0x179177,'Insert');switch(_0x179177){case i['Local']:return{'icon':_0x2d5458,'type':i['Local'],..._0x34c03e};case i['URL']:return{'icon':_0x54c721,'type':i['URL'],..._0x34c03e};case i['Dropbox']:return{'icon':_0x38b25a,'type':i['Dropbox'],..._0x34c03e};case i['Facebook']:return{'icon':_0x18f5be,'type':i['Facebook'],..._0x34c03e};case i['GDrive']:return{'icon':_0x3c305e,'type':i['GDrive'],..._0x34c03e};case i['GPhotos']:return{'icon':_0x596bde,'type':i['GPhotos'],..._0x34c03e};case i['OneDrive']:return{'icon':_0x3c6891,'type':i['OneDrive'],..._0x34c03e};}});}['_getIntegrationKey'](_0x3ce53b){switch(_0x3ce53b){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xdf8e98,_0x238b0f){const _0xed5dbf=this['editor'],_0x599d83=new _0xdf8e98(_0xed5dbf['locale']),_0x596f93=_0xed5dbf['commands']['get']('uploadcare');return _0x599d83['bind']('isEnabled')['to'](_0x596f93),_0x599d83['on']('execute',()=>{_0x596f93['execute'](_0x238b0f);}),_0x599d83;}['_createToolbarButton'](_0x2e6759){const {locale:_0x5d02f7}=this['editor'],_0x2cbb4d=this['editor']['plugins']['get']('ImageInsertUI'),_0x2311d1=_0x2e6759[0x0],_0x3ae149=this['_createButton'](_0x592f78,_0x2311d1['type']);return _0x3ae149['icon']=_0x2311d1['icon'],_0x3ae149['bind']('label')['to'](_0x2cbb4d,'isImageSelected',_0x4b7d27=>_(_0x5d02f7,_0x2311d1['type'],_0x4b7d27?'Replace':'Insert')['text']),_0x3ae149['tooltip']=!0x0,_0x3ae149;}['_createDropdownButtons'](_0x316422){const {locale:_0x273bd3}=this['editor'],_0x152f30=this['editor']['plugins']['get']('ImageInsertUI');return _0x316422['map'](_0x4c96ab=>{const _0x56b75f=this['_createButton'](_0x592f78,_0x4c96ab['type']);return _0x56b75f['withText']=!0x0,_0x56b75f['icon']=_0x4c96ab['icon'],_0x56b75f['bind']('label')['to'](_0x152f30,'isImageSelected',_0x9ad26d=>_(_0x273bd3,_0x4c96ab['type'],_0x9ad26d?'Replace':'Insert')['text']),_0x56b75f;});}['_createMenuBarButtons'](_0x487685){return _0x487685['map'](_0x2aa2f3=>{const _0x52553a=this['_createButton'](_0x51ffb8,_0x2aa2f3['type']);return _0x52553a['icon']=_0x2aa2f3['icon'],_0x52553a['label']=_0x2aa2f3['shortText'],_0x52553a;});}}class F extends _0x4e0d6d{['focusTracker'];['focusCycler'];constructor(_0x230343){super(_0x230343),this['focusTracker']=new _0x3f21c2(),this['focusCycler']=new _0xf137da({'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(_0x53287a,_0x25867a){super(_0x53287a),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-'+_0x25867a}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5b1cd2,_0x4c7171){const _0x259863=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1b0f59=>_0x1b0f59<=_0x4c7171)['map'](_0x453a27=>_0x5b1cd2['replace'](/\/$/,'')+'/-/resize/'+_0x453a27+'x/\x20'+_0x453a27+'w');return{'imageFallbackUrl':_0x5b1cd2,'imageSources':[{'srcset':_0x259863['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4c7171+'px)\x20100vw,\x20'+_0x4c7171+'px','type':'image/webp'}]};}function S(_0x4a9fe5,_0x59c746,_0x48a2e3){const _0x3e0977=_0x4a9fe5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3e0977?parseInt(_0x3e0977[0x1],0xa):_0x59c746,'height':_0x3e0977?parseInt(_0x3e0977[0x2],0xa):_0x48a2e3};}function p(_0x4d6935,_0x5f2bb8){const _0x5efc30=new(_0x107494())(),_0x1111bc=_0x4d6935['plugins']['get']('ImageUtils'),_0x16909b=_0x4d6935['editing']['mapper']['toViewElement'](_0x5f2bb8),_0x20dc41=_0x1111bc['findViewImgElement'](_0x16909b),_0x2aa868=_0x4d6935['editing']['view']['domConverter']['viewToDom'](_0x20dc41),_0x1ff697=_0x5f2bb8['getAttribute']('width'),_0x23de17=_0x5f2bb8['getAttribute']('height'),_0x4dd725='image-processing';_0x4d6935['editing']['view']['change'](_0x4e98e1=>{_0x4e98e1['addClass'](_0x4dd725,_0x16909b),_0x4e98e1['setStyle']('aspect-ratio',_0x1ff697+'/'+_0x23de17,_0x20dc41);}),_0x5efc30['listenTo'](_0x2aa868,'load',()=>{_0x5efc30['stopListening'](_0x2aa868,'load'),_0x4d6935['editing']['view']['change'](_0x1f69e8=>{_0x1f69e8['removeClass'](_0x4dd725,_0x16909b),_0x1f69e8['removeStyle']('aspect-ratio',_0x20dc41);});});}function G(_0x3b895e){if(Array['isArray'](_0x3b895e)){const _0x15fc8b=_0x3b895e['map'](G);return _0x1a5859=>_0x15fc8b['some'](_0x22bc29=>_0x22bc29(_0x1a5859));}if('origin'==_0x3b895e){const _0x265e34=_0x43cd07['window']['location']['origin'];return _0x18c1a3=>new URL(_0x18c1a3,_0x43cd07['document']['baseURI'])['origin']==_0x265e34;}return'function'==typeof _0x3b895e?_0x3b895e:_0x3b895e instanceof RegExp?_0x5f14f3=>!(!_0x5f14f3['match'](_0x3b895e)&&!_0x5f14f3['replace'](/^https?:\/\//,'')['match'](_0x3b895e)):()=>!0x1;}function A(_0x311474,_0x5463dc){return _0x14d343(_0x311474['target'])['includes'](_0x5463dc);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2ab45c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x48e9e3,_0x61db27,_0x139a51){super(),this['_editor']=_0x48e9e3,this['_editing']=_0x61db27,this['_dialog']=_0x48e9e3['plugins']['get'](_0x56f5bd),this['_api']=_0x61db27['ctxElement']['getAPI'](),this['_type']=_0x139a51,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:_0x1080d8,model:_0x2accce}=this['_editor'],_0x22cb54=_0x2accce['document']['selection']['getSelectedElement'](),_0x563b92=_0x22cb54&&(_0x22cb54['is']('element','imageBlock')||_0x22cb54['is']('element','imageInline'));this['_formView']=new x(_0x1080d8,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2d5458,'title':_(_0x1080d8,this['_type'],_0x563b92?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x396cf5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2b5a96=>!A(_0x2b5a96,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x38dc29}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1b003f=>{const _0x253ab2=_0x38dc29['length'];for(const _0xd2ccd8 of _0x38dc29){const _0x43ebea=_0xd2ccd8===_0x38dc29[_0x253ab2-0x1],{cdnUrl:_0x23a7e7,fileInfo:_0xb206b}=_0xd2ccd8;if(!_0x23a7e7||!_0xb206b)continue;const {width:_0x3e687a,height:_0x201ec4}=_0xb206b['imageInfo'],_0x3b46a9=S(_0x23a7e7,_0x3e687a,_0x201ec4),_0x1bb875=C(_0x23a7e7,_0x3b46a9['width']),_0xffda8e={'id':_0xb206b['uuid'],'type':'image','attributes':{'imageDimension':_0x3b46a9,..._0x1bb875}};this['_insertAsset'](_0xffda8e,_0x43ebea,_0x1b003f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x21177a=>{'idle'===_0x21177a['detail']['status']&&!_0x21177a['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x37ecb5,_0x119075,_0x3c32f4){const _0x5b29fb=this['_editor']['model']['document']['selection'],_0x46f6ed=_0x5b29fb['getSelectedElement'](),_0x399976=!(!_0x46f6ed||!_0x46f6ed['is']('element','imageInline'));_0x3c32f4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x37ecb5,_0x399976),_0x119075||_0x3c32f4['setSelection'](_0x5b29fb['getLastPosition']());}['_insertImage'](_0x4ffe16,_0x12e745){const _0x2183f7=this['_editor'],{imageDimension:_0x46eeed,imageFallbackUrl:_0x3a3743,imageSources:_0x3ccf60}=_0x4ffe16['attributes'];_0x2183f7['execute']('insertImage',{'imageType':_0x12e745?'imageInline':null,'source':{'uploadcareImageId':_0x4ffe16['id'],'src':_0x3a3743,'sources':_0x3ccf60,..._0x46eeed}});}}class w extends _0x940cc1{['_editing'];['_controller']=null;static get['requires'](){return[_0x56f5bd,o];}constructor(_0xb9a523){super(_0xb9a523),this['_editing']=_0xb9a523['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1fb710){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1fb710);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x25b8c0,..._0x12dc0b}){return _0x2da731(_0x25b8c0,_0x12dc0b);}static['getInfo'](_0x4808b0,_0x1cda96){return _0x98704e(_0x4808b0,_0x1cda96);}}class f extends _0x1eeb22{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x291163,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x23784c=this['editor'];if(!!!_0x23784c['config']['get']('uploadcare'))return;_0x23784c['plugins']['get'](_0x291163)['createUploadAdapter']=_0x21b918=>new k(_0x21b918,_0x23784c),_0x23784c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3cfe4d,{imageElement:_0x7b6926,data:_0x3dc0cd})=>{_0x23784c['model']['change'](_0x3b0a11=>{_0x3b0a11['setAttribute']('uploadcareImageId',_0x3dc0cd['uploadcareImageId'],_0x7b6926);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x175051,_0x109b53){this['loader']=_0x175051,this['editor']=_0x109b53,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4a4479=await this['loader']['file'];return j['upload']({'file':_0x4a4479,'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':_0x21cf9f=>{_0x21cf9f&&_0x21cf9f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x21cf9f['value']);}})['then'](async _0x3683fe=>{const {imageFallbackUrl:_0x12528a,imageSources:_0x27602f}=C(_0x3683fe['cdnUrl'],_0x3683fe['imageInfo']['width']);return{'uploadcareImageId':_0x3683fe['uuid'],'default':_0x12528a,'sources':_0x27602f};})['catch'](()=>{const _0x505879=t('Cannot\x20upload\x20file:')+('\x20'+_0x4a4479['name']+'.');return Promise['reject'](_0x505879);});}['abort'](){this['controller']['abort']();}}class o extends _0x1eeb22{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x56f5bd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5f2b33){super(_0x5f2b33),this['ucContextId']=_0x30f90e();}['init'](){const _0x23233d=this['editor'];_0x23233d['commands']['add']('uploadcare',new w(_0x23233d));}['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 _0x5e6a87=_0x43cd07['document']['querySelector']('input[uploadcare-file-input]');_0x5e6a87&&_0x5e6a87['remove']();}),async function(_0x553f87){const _0x58636b=_0x52f04f([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x2eed0f=0x3d8d0df,_0x522a66=0x3dfa2b7^_0x2eed0f,_0x9011e3=window[_0x52f04f([0x44,0x61,0x74,0x65])][_0x52f04f([0x6e,0x6f,0x77])](),_0x545f58=_0x553f87[_0x52f04f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x258d09=new window[(_0x52f04f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5844c0=>{_0x545f58[_0x52f04f([0x6f,0x6e,0x63,0x65])](_0x52f04f([0x72,0x65,0x61,0x64,0x79]),_0x5844c0);}),_0x2650a9={[_0x52f04f([0x6b,0x74,0x79])]:_0x52f04f([0x45,0x43]),[_0x52f04f([0x75,0x73,0x65])]:_0x52f04f([0x73,0x69,0x67]),[_0x52f04f([0x63,0x72,0x76])]:_0x52f04f([0x50,0x2d,0x32,0x35,0x36]),[_0x52f04f([0x78])]:_0x52f04f([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]),[_0x52f04f([0x79])]:_0x52f04f([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]),[_0x52f04f([0x61,0x6c,0x67])]:_0x52f04f([0x45,0x53,0x32,0x35,0x36])},_0x27b31a=_0x545f58[_0x52f04f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52f04f([0x67,0x65,0x74])](_0x52f04f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x20a3f2(){let _0x562e25,_0x4d273a=null,_0xbd5f3c=null;try{if(_0x27b31a==_0x52f04f([0x47,0x50,0x4c]))return _0x52f04f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x562e25=_0x48b318(),!_0x562e25)return _0x52f04f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x562e25[_0x52f04f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbd5f3c=_0x5280ce(_0x562e25[_0x52f04f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x562e25[_0x52f04f([0x6a,0x74,0x69])])),await _0x45c8c2()?_0xe8eda()?_0x398024()?_0x52f04f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xe14676()?(_0x562e25[_0x52f04f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52f04f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d273a=_0x460e1b(_0x52f04f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x562e25[_0x52f04f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52f04f([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d273a=_0x460e1b(_0x52f04f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x486edc()):_0x52f04f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52f04f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52f04f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x52f04f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x398024(){const _0x3a115c=[_0x52f04f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52f04f([0x74,0x72,0x69,0x61,0x6c])][_0x52f04f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x562e25[_0x52f04f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9011e3/0x3e8:0xe10*_0x522a66;return _0x562e25[_0x52f04f([0x65,0x78,0x70])]<_0x3a115c;}function _0xe8eda(){const _0x457195=_0x562e25[_0x52f04f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x457195&&(!!_0x457195[_0x52f04f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52f04f([0x2a]))||!!_0x457195[_0x52f04f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52f04f([0x55,0x50,0x4c,0x43])));}function _0xe14676(){const _0x12e43c=_0x562e25[_0x52f04f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x12e43c||0x0==_0x12e43c[_0x52f04f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2fc96c}=new URL(window[_0x52f04f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x12e43c[_0x52f04f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fc96c))return!0x0;const _0x3925a7=_0x2fc96c[_0x52f04f([0x73,0x70,0x6c,0x69,0x74])](_0x52f04f([0x2e]));return _0x12e43c[_0x52f04f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4eaaaa=>_0x4eaaaa[_0x52f04f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52f04f([0x2a])))[_0x52f04f([0x6d,0x61,0x70])](_0x29f8f7=>_0x29f8f7[_0x52f04f([0x73,0x70,0x6c,0x69,0x74])](_0x52f04f([0x2e])))[_0x52f04f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20df2b=>_0x20df2b[_0x52f04f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3925a7[_0x52f04f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52f04f([0x6d,0x61,0x70])](_0x15bd34=>Array(_0x3925a7[_0x52f04f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x15bd34[_0x52f04f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52f04f([0x66,0x69,0x6c,0x6c])](_0x15bd34[0x0]===_0x52f04f([0x2a])?_0x52f04f([0x2a]):'')[_0x52f04f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x15bd34))[_0x52f04f([0x73,0x6f,0x6d,0x65])](_0x47230a=>_0x3925a7[_0x52f04f([0x65,0x76,0x65,0x72,0x79])]((_0x1e1375,_0x36508d)=>_0x47230a[_0x36508d]===_0x1e1375||_0x47230a[_0x36508d]===_0x52f04f([0x2a])));}function _0x486edc(){return _0x4d273a&&_0xbd5f3c?new window[(_0x52f04f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9d39bd,_0x486fea)=>{_0x4d273a[_0x52f04f([0x74,0x68,0x65,0x6e])](_0x9d39bd,_0x486fea),_0xbd5f3c[_0x52f04f([0x74,0x68,0x65,0x6e])](_0x15cab9=>{_0x15cab9!=_0x52f04f([0x56,0x61,0x6c,0x69,0x64])&&_0x9d39bd(_0x15cab9);},_0x486fea);}):_0x4d273a||_0xbd5f3c||_0x52f04f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5280ce(_0x5f207b,_0x1cb14e){return new window[(_0x52f04f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1173d0=>{if(_0xfe550f())return _0x1173d0(_0x52f04f([0x56,0x61,0x6c,0x69,0x64]));_0x30247f(),_0x545f58[_0x52f04f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52f04f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4cffdf=!0x1;const _0x326e83=_0x30f90e();function _0x3113e4(_0xe87a41){return!!_0xe87a41&&(typeof _0xe87a41===_0x52f04f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe87a41===_0x52f04f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe87a41[_0x52f04f([0x74,0x68,0x65,0x6e])]===_0x52f04f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe87a41[_0x52f04f([0x63,0x61,0x74,0x63,0x68])]===_0x52f04f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf1e7ed(_0x4d6f91){_0xc5dee6(_0x4d6f91)[_0x52f04f([0x74,0x68,0x65,0x6e])](_0x2c489e=>{if(!_0x2c489e||_0x2c489e[_0x52f04f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52f04f([0x6f,0x6b]))return _0x52f04f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2fc31c(_0x3a0127(_0x326e83+_0x1cb14e))!=_0x2c489e[_0x52f04f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52f04f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52f04f([0x56,0x61,0x6c,0x69,0x64]);})[_0x52f04f([0x74,0x68,0x65,0x6e])](_0x2af32b=>(_0x354e15(),_0x2af32b),()=>{const _0x360673=_0x282411();return null==_0x360673?(_0x354e15(),_0x52f04f([0x56,0x61,0x6c,0x69,0x64])):_0x52f04f(_0x9011e3-_0x360673>(0x27d454df^_0x2eed0f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52f04f([0x74,0x68,0x65,0x6e])](_0x1173d0)[_0x52f04f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1173d0(_0x52f04f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x455865=0x3ee3e5f^_0x2eed0f;function _0x354e15(){const _0x6a34c4=_0x52f04f([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fc31c(_0x3a0127(_0x5f207b)),_0x3c5473=_0x3793b7(_0x2fc31c(window[_0x52f04f([0x4d,0x61,0x74,0x68])][_0x52f04f([0x63,0x65,0x69,0x6c])](_0x9011e3/_0x455865)));window[_0x52f04f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52f04f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6a34c4,_0x3c5473);}function _0x282411(){const _0x4db3f2=_0x52f04f([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fc31c(_0x3a0127(_0x5f207b)),_0x154c6f=window[_0x52f04f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52f04f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4db3f2);return _0x154c6f?window[_0x52f04f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3793b7(_0x154c6f),0x10)*_0x455865:null;}function _0xc5dee6(_0x594c72){return new window[(_0x52f04f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c60e5,_0x250e40)=>{_0x594c72[_0x52f04f([0x74,0x68,0x65,0x6e])](_0x3c60e5,_0x250e40),window[_0x52f04f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x250e40,0x3d9041f^_0x2eed0f);});}}_0x545f58[_0x52f04f([0x6f,0x6e])](_0x52f04f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3136f4,_0x363659)=>{if(_0x363659[0x0]!=_0x5f207b)return _0x1173d0(_0x52f04f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x363659[0x1]={..._0x363659[0x1],[_0x52f04f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x326e83};},{[_0x52f04f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52f04f([0x68,0x69,0x67,0x68])}),_0x545f58[_0x52f04f([0x6f,0x6e])](_0x52f04f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e94f6=>{_0x3113e4(_0x1e94f6[_0x52f04f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4cffdf=!0x0,_0xf1e7ed(_0x1e94f6[_0x52f04f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52f04f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52f04f([0x6c,0x6f,0x77])}),_0x258d09[_0x52f04f([0x74,0x68,0x65,0x6e])](()=>{_0x4cffdf||_0x1173d0(_0x52f04f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xfe550f(){return _0x545f58[_0x52f04f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52f04f([0x76,0x69,0x65,0x77])][_0x52f04f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52f04f([0x61,0x75,0x74,0x6f]);}function _0x30247f(){_0x545f58[_0x52f04f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52f04f([0x76,0x69,0x65,0x77])][_0x52f04f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52f04f([0x61,0x75,0x74,0x6f]);}}function _0x460e1b(_0x993319){const _0x1a7549=[new window[(_0x52f04f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57bfda=>setTimeout(_0x57bfda,0x3d1ee13^_0x2eed0f)),_0x258d09[_0x52f04f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52f04f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d9032=>{let _0x99562a=0x0;_0x545f58[_0x52f04f([0x6d,0x6f,0x64,0x65,0x6c])][_0x52f04f([0x6f,0x6e])](_0x52f04f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xcba58a,_0x266090)=>{_0x266090[0x0][_0x52f04f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x99562a++,_0x99562a==(0x3d8d127^_0x2eed0f)&&(_0x2d9032(),_0xcba58a[_0x52f04f([0x6f,0x66,0x66])]());});}))];return window[_0x52f04f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52f04f([0x72,0x61,0x63,0x65])](_0x1a7549)[_0x52f04f([0x74,0x68,0x65,0x6e])](()=>_0x993319);}async function _0x40cd51(){await _0x258d09,_0x545f58[_0x52f04f([0x6d,0x6f,0x64,0x65,0x6c])][_0x52f04f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c94b9,_0x545f58[_0x52f04f([0x6d,0x6f,0x64,0x65,0x6c])][_0x52f04f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c94b9,_0x545f58[_0x52f04f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52f04f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x59ee8c(_0x432cba){const _0x10d8ca=_0x55e437();_0x545f58[_0x10d8ca]=_0x52f04f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x432cba,_0x432cba!=_0x52f04f([0x56,0x61,0x6c,0x69,0x64])&&_0x40cd51();}function _0x55e437(){const _0x391f44=window[_0x52f04f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52f04f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52f04f([0x6e,0x6f,0x77])]())[_0x52f04f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52f04f([0x2e]),'');let _0x187ae0=_0x52f04f([0x52]);for(let _0x2397c0=0x0;_0x2397c0<_0x391f44[_0x52f04f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2397c0+=0x2){let _0x39777d=window[_0x52f04f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x391f44[_0x52f04f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2397c0,_0x2397c0+0x2));_0x39777d>=_0x58636b[_0x52f04f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x39777d-=_0x58636b[_0x52f04f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x187ae0+=_0x58636b[_0x39777d];}return _0x187ae0;}function _0x48b318(){const _0x339f61=_0x27b31a[_0x52f04f([0x73,0x70,0x6c,0x69,0x74])](_0x52f04f([0x2e]));if(0x3!=_0x339f61[_0x52f04f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x39d7d1(_0x339f61[0x1]);function _0x39d7d1(_0x2edb8d){const _0x2a61c2=_0xda45fb(_0x2edb8d);return _0x2a61c2&&_0x207c40()?_0x2a61c2:null;function _0x207c40(){const _0x1904f4=_0x2a61c2[_0x52f04f([0x6a,0x74,0x69])],_0x46f6ca=window[_0x52f04f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1904f4[_0x52f04f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1904f4[_0x52f04f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ec7fe={..._0x2a61c2,[_0x52f04f([0x6a,0x74,0x69])]:_0x1904f4[_0x52f04f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1904f4[_0x52f04f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ec7fe[_0x52f04f([0x76,0x63])],_0x3a0127(_0x3ec7fe)==_0x46f6ca;}}}async function _0x45c8c2(){let _0x5a7a25=!0x0;try{const _0x25a64d=_0x27b31a[_0x52f04f([0x73,0x70,0x6c,0x69,0x74])](_0x52f04f([0x2e])),[_0x4b9f13,_0x1dc4cb,_0x30b73d]=_0x25a64d;return _0x162107(_0x4b9f13),await _0x42ff56(_0x4b9f13,_0x1dc4cb,_0x30b73d),_0x5a7a25;}catch{return!0x1;}function _0x162107(_0x58cee5){const _0x22e354=_0xda45fb(_0x58cee5);_0x22e354&&_0x22e354[_0x52f04f([0x61,0x6c,0x67])]==_0x52f04f([0x45,0x53,0x32,0x35,0x36])||(_0x5a7a25=!0x1);}async function _0x42ff56(_0x2f0075,_0x3d8c0b,_0x20bebb){const _0x4076f1=window[_0x52f04f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52f04f([0x66,0x72,0x6f,0x6d])](_0x4aefe4(_0x20bebb),_0x4b1d10=>_0x4b1d10[_0x52f04f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5e9562=new window[(_0x52f04f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52f04f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f0075+_0x52f04f([0x2e])+_0x3d8c0b),_0x17200e=window[_0x52f04f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52f04f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x17200e)return;const _0x25e81b=await _0x17200e[_0x52f04f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52f04f([0x6a,0x77,0x6b]),_0x2650a9,{[_0x52f04f([0x6e,0x61,0x6d,0x65])]:_0x52f04f([0x45,0x43,0x44,0x53,0x41]),[_0x52f04f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52f04f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52f04f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x17200e[_0x52f04f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52f04f([0x6e,0x61,0x6d,0x65])]:_0x52f04f([0x45,0x43,0x44,0x53,0x41]),[_0x52f04f([0x68,0x61,0x73,0x68])]:{[_0x52f04f([0x6e,0x61,0x6d,0x65])]:_0x52f04f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x25e81b,_0x4076f1,_0x5e9562)||(_0x5a7a25=!0x1);}}function _0xda45fb(_0x1681bf){return _0x1681bf[_0x52f04f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52f04f([0x65,0x79]))?JSON[_0x52f04f([0x70,0x61,0x72,0x73,0x65])](_0x4aefe4(_0x1681bf)):null;}function _0x4aefe4(_0x18282f){return window[_0x52f04f([0x61,0x74,0x6f,0x62])](_0x18282f[_0x52f04f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52f04f([0x2b]))[_0x52f04f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52f04f([0x2f])));}function _0x3a0127(_0x52ff6a){let _0x1aa59e=0x1505;function _0x406621(_0x25637e){for(let _0x46e731=0x0;_0x46e731<_0x25637e[_0x52f04f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46e731++){const _0x48a3db=_0x25637e[_0x52f04f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x46e731);_0x1aa59e=(_0x1aa59e<<0x5)+_0x1aa59e+_0x48a3db,_0x1aa59e&=_0x1aa59e;}}function _0x93128d(_0x16da5e){Array[_0x52f04f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x16da5e)?_0x16da5e[_0x52f04f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x93128d):_0x16da5e&&typeof _0x16da5e==_0x52f04f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52f04f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x16da5e)[_0x52f04f([0x73,0x6f,0x72,0x74])]()[_0x52f04f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x51df6f,_0x235ebd])=>{_0x406621(_0x51df6f),_0x93128d(_0x235ebd);}):_0x406621(window[_0x52f04f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x16da5e));}return _0x93128d(_0x52ff6a),_0x1aa59e>>>0x0;}function _0x2fc31c(_0x26cf25){return _0x26cf25[_0x52f04f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52f04f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52f04f([0x30]));}function _0x3793b7(_0x5abb13){return _0x5abb13[_0x52f04f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52f04f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52f04f([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c94b9(){}function _0x52f04f(_0x2b848f){return _0x2b848f['map'](_0x3b3f38=>String['fromCharCode'](_0x3b3f38))['join']('');}_0x59ee8c(await _0x20a3f2());}(this);}['_initSchema'](){const _0x5e083a=this['editor']['model']['schema'];_0x5e083a['isRegistered']('imageBlock')&&_0x5e083a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5e083a['isRegistered']('imageInline')&&_0x5e083a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x30f1a3=this['editor'];_0x30f1a3['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x30f1a3['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x48f18d=>_0x48f18d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x248175=_0x30f1a3['commands']['get']('replaceImageSource');_0x248175&&this['listenTo'](_0x248175,'cleanupImage',(_0xc7f343,[_0x40f3bf,_0x2929e9])=>{_0x40f3bf['removeAttribute']('uploadcareImageId',_0x2929e9);});}['_initConfig'](){const _0x431614=this['editor']['config']['get']('uploadcare.uploader')||{},_0x331259=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4b9e6b(_0x43cd07['document'],'uc-config',{..._0x431614,'pubkey':_0x331259,'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']=_0x2d47df=>{if('closeMax'==_0x2d47df)return'#uc-icon-arrow-down';},_0x43cd07['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4b9e6b(_0x43cd07['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x43cd07['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2a9a7d=this['editor']['commands']['get']('insertImage');_0x2a9a7d&&this['listenTo'](_0x2a9a7d,'execute',()=>{const _0x4df9e2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4df9e2&&_0x4df9e2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4df9e2);});});const _0x283e80=this['editor']['commands']['get']('uploadcareImageReplace');_0x283e80&&this['listenTo'](_0x283e80,'execute',()=>{const _0x4b780c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4b780c&&_0x4b780c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4b780c);});});}}class tt extends _0x1eeb22{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5351cb){super(_0x5351cb),_0x5351cb['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x407fee['defineComponents'](_0x407fee);}}class ii extends _0x4e0d6d{constructor(_0x4a51f3){super(_0x4a51f3);const t=_0x4a51f3['t'],_0x2e4fd1=this['bindTemplate'],_0xd1505a=new _0x8e3a63();_0xd1505a['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':[_0xd1505a,{'text':_0x2e4fd1['to']('imageUploadProgress',_0x5b7e6f=>t('Loading\x20image...')+'\x20('+(_0x5b7e6f||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 _0x4e0d6d{constructor(_0x25fe5d){super(_0x25fe5d);const t=_0x25fe5d['t'];this['set']('errorType',null);const _0x288eb8=new _0x592f78(_0x25fe5d);_0x288eb8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x288eb8['withText']=!0x0,_0x288eb8['class']='ck-button-action',_0x288eb8['on']('execute',()=>{this['fire']('retry');}),_0x288eb8['bind']('isVisible')['to'](this,'errorType',_0x930f1c=>'NotFound'!==_0x930f1c);const _0x420ca5=new _0x48dad0();_0x420ca5['content']=_0x3d0e10,_0x420ca5['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x31bacd=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':[_0x420ca5,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x31bacd['to']('errorType',_0x69e1b9=>t('NotFound'!==_0x69e1b9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x288eb8]},{'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 _0x4e0d6d{constructor(_0x36831f,_0x6cbb4){super(_0x36831f);const _0x2276ea=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x6cbb4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2276ea['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1819b0,_0x1a0dd2,_0x129996){super(_0x1819b0),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1819b0),this['_errorView']=new ti(_0x1819b0),this['_editingView']=new ei(_0x1819b0,_0x129996),this['_focusableView']=new _0x4e0d6d(_0x1819b0),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1a0dd2),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'],_0x479738=>{this['_addUploadcareImageEditorListeners'](_0x479738);});}),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'](_0x925852,_0x4db66d){const _0x3a13ac='uc-cloud-image-editor',_0x376130=_0x925852['querySelector'](_0x3a13ac);if(_0x376130)return _0x4db66d(_0x376130);const _0x11f6cc=new MutationObserver(_0x46f060=>{const _0x24c09a=_0x46f060['filter'](_0xc7ced3=>_0xc7ced3['target']===_0x925852&&_0xc7ced3['addedNodes']['length']>0x0&&_0xc7ced3['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3a13ac);_0x24c09a['length']&&(_0x11f6cc['disconnect'](),_0x4db66d(_0x24c09a[0x0]['addedNodes'][0x0]));});_0x11f6cc['observe'](_0x925852,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1535e3){_0x1535e3['addEventListener']('apply',_0x509adb=>{this['fire']('apply',{'imageSrc':_0x509adb['detail']['cdnUrl']});}),_0x1535e3['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2ab45c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2f4526,_0x3e44e8,_0x3c52a6){super(),this['_editor']=_0x2f4526,this['_dialog']=_0x3e44e8,this['_imageElement']=_0x3c52a6,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 _0x512d03=this['_imageElement'],_0x3702d2=_0x512d03['getAttribute']('uploadcareImageId'),_0x5d6476=_0x512d03['getAttribute']('src');if(_0x3702d2)await this['_loadImageInfo'](_0x3702d2,_0x5d6476);else{if(this['_imageCache']['has'](_0x5d6476)){const _0x51419d=this['_imageCache']['get'](_0x5d6476);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51419d['url'],this['imageDimension']=_0x51419d['dimension'],this['imageId']=_0x51419d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x25a861}=this['_editor'],t=_0x25a861['t'],_0x594647=new X(_0x25a861,this['imageStatus'],this['_attributes']);_0x594647['bind']('status')['to'](this,'imageStatus'),_0x594647['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x594647['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x594647['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x594647,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x44824d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x594647,'position':_0x396cf5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x594647['focus']();},'onHide':()=>{_0x594647['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1cf2a5=>!A(_0x1cf2a5,_0x594647['element'])}});}['_loadImageInfo'](_0x4975b6,_0x4d1f3e){return j['getInfo'](_0x4975b6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x121880=>{const {width:_0x2a954a,height:_0x7b828}=_0x121880['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d1f3e,this['imageDimension']={'width':_0x2a954a,'height':_0x7b828},this['imageId']=_0x4975b6;})['catch'](_0x45df1e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x45df1e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x38a091,_0x3ed484){return this['_getImageAsFile'](_0x38a091)['then'](_0x54cff3=>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':_0x3ed484['signal'],'file':_0x54cff3,'onProgress':_0x54183a=>{_0x54183a&&_0x54183a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x54183a['value']));}}))['then'](_0x5ebf34=>{const {width:_0x12ceae,height:_0x5758f5}=_0x5ebf34['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5ebf34['cdnUrl'],this['imageDimension']={'width':_0x12ceae,'height':_0x5758f5},this['imageId']=_0x5ebf34['uuid'],this['imageUploadProgress']=null;const _0x3908a6=_0x38a091['getAttribute']('src');this['_imageCache']['set'](_0x3908a6,{'id':_0x5ebf34['uuid'],'url':_0x5ebf34['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x390694=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x390694['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x25bc82,_0x5128e9){_0x25bc82['on']('apply',(_0x5e68c5,_0x283d79)=>{this['_replaceImage'](_0x5128e9,_0x283d79['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x25bc82['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x25bc82['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x458143,_0x27051f,_0x3552a0){const _0x25141a=this['_editor'],{width:_0x55e382,height:_0x5167b6}=S(_0x27051f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5f2747,imageSources:_0xa25cd5}=C(_0x27051f,_0x55e382);_0x25141a['model']['change'](_0x49abff=>{if('$graveyard'===_0x458143['root']['rootName']){_0x25141a['execute']('insertImage',{'imageType':_0x458143['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x458143['getAttributes']()),'uploadcareImageId':_0x3552a0,'src':_0x5f2747,'sources':_0xa25cd5,'width':_0x55e382,'height':_0x5167b6}});const _0x42a74d=_0x458143['getChildren']();_0x458143=_0x25141a['model']['document']['selection']['getSelectedElement']();for(const _0xe21383 of _0x42a74d)_0x49abff['append'](_0x49abff['cloneElement'](_0xe21383),_0x458143);}else _0x49abff['setSelection'](_0x458143,'on'),_0x25141a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x458143['getAttributes']()),'uploadcareImageId':_0x3552a0,'src':_0x5f2747,'sources':_0xa25cd5,'width':_0x55e382,'height':_0x5167b6},_0x458143);_0x49abff['setSelection'](_0x458143,'on');});}async['_getImageAsFile'](_0x4f52e4){const _0x23b609=_0x43cd07['window'],_0xef8193=_0x43cd07['document']['location']['href'],_0x2d35cb=new _0x23b609['URL'](_0x4f52e4['getAttribute']('src'),_0xef8193);if('data:'===_0x2d35cb['protocol']){const _0x4fbea7=_0x2d35cb['href']['split'](','),_0x40c4a3=_0x4fbea7[0x0]['match'](/:(.*?);/)[0x1],_0x32d942=_0x40c4a3['split']('/')[0x1],_0x1444bb=_0x23b609['atob'](_0x4fbea7[_0x4fbea7['length']-0x1]);let _0x44ac1e=_0x1444bb['length'];const _0x49555e=new _0x23b609['Uint8Array'](_0x44ac1e);for(;_0x44ac1e--;)_0x49555e[_0x44ac1e]=_0x1444bb['charCodeAt'](_0x44ac1e);return new _0x23b609['File']([_0x49555e],'image.'+_0x32d942,{'type':_0x40c4a3});}const _0x42fed9=_0x2d35cb['href']['split']('/'),_0x1a84e8=_0x42fed9[_0x42fed9['length']-0x1],_0x597a72=_0x1a84e8['split']('.')[0x1];return _0x23b609['fetch'](_0x2d35cb['href'])['then'](_0x52b312=>_0x52b312['clone']()['blob']())['then'](_0x453215=>new _0x23b609['File']([_0x453215],_0x1a84e8,{'type':'image/'+_0x597a72}));}}class O extends _0x940cc1{['imageEditController'];static get['requires'](){return[_0x56f5bd];}['_isEditable'];constructor(_0x429410){super(_0x429410),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x44336e){const _0x21fec7=G(_0x44336e);return _0x369229=>!(!_0x369229||!_0x369229['is']('element','imageBlock')&&!_0x369229['is']('element','imageInline'))&&(!!_0x369229['hasAttribute']('uploadcareImageId')||!!_0x369229['hasAttribute']('src')&&_0x21fec7(_0x369229['getAttribute']('src')));}(_0x429410['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x19bb9e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x19bb9e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x20afd5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x20afd5&&(_0x20afd5['is']('element','imageBlock')||_0x20afd5['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x56f5bd),_0x20afd5),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x940cc1{['refresh'](){const _0x52b662=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x52b662&&(_0x52b662['is']('element','imageBlock')||_0x52b662['is']('element','imageInline')));}['execute'](_0x3cd764){const _0x4974b6=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4319d1=>{_0x4319d1['setAttributes'](_0x3cd764,_0x4974b6),_0x4319d1['removeAttribute']('srcset',_0x4974b6),_0x4319d1['removeAttribute']('sizes',_0x4974b6);});}}class m extends _0x1eeb22{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5a03b9,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2ba332}=this;_0x2ba332['commands']['add']('uploadcareImageEdit',new O(_0x2ba332)),_0x2ba332['commands']['add']('uploadcareImageReplace',new R(_0x2ba332));}}class g extends _0x1eeb22{['_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 _0x69aeb4=this['editor'];_0x69aeb4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x19122a=>{const _0x58de2f=_0x69aeb4['commands']['get']('uploadcareImageEdit'),_0x419a48=new _0x592f78(_0x19122a),t=_0x19122a['t'];return _0x419a48['set']({'icon':_0x44824d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x419a48['bind']('isEnabled')['to'](_0x58de2f),_0x419a48['bind']('isOn')['to'](_0x58de2f,'isActive'),this['listenTo'](_0x419a48,'execute',()=>{_0x69aeb4['execute']('uploadcareImageEdit'),_0x69aeb4['editing']['view']['focus']();}),_0x419a48;}),this['_initConfig']();}['_initConfig'](){const _0x582e26=_0x4b9e6b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x582e26),this['listenTo'](this['editor'],'destroy',()=>{_0x582e26['remove']();});}}class et extends _0x1eeb22{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':_0x24f9fc=>0x1!=_0x24f9fc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x47fcdf=>{const {af:{dictionary:_0x3603db,getPluralForm:_0x169b64}}={'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':_0x2eeceb=>0x1!=_0x2eeceb}};_0x47fcdf['af']||={'dictionary':{},'getPluralForm':null},_0x47fcdf['af']['dictionary']=Object['assign'](_0x47fcdf['af']['dictionary'],_0x3603db),_0x47fcdf['af']['getPluralForm']=_0x169b64;})(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':_0xbe4906=>0x0==_0xbe4906?0x0:0x1==_0xbe4906?0x1:0x2==_0xbe4906?0x2:_0xbe4906%0x64>=0x3&&_0xbe4906%0x64<=0xa?0x3:_0xbe4906%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x428162=>{const {ar:{dictionary:_0x3d8e49,getPluralForm:_0x21afbb}}={'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':_0x1fa0ee=>0x0==_0x1fa0ee?0x0:0x1==_0x1fa0ee?0x1:0x2==_0x1fa0ee?0x2:_0x1fa0ee%0x64>=0x3&&_0x1fa0ee%0x64<=0xa?0x3:_0x1fa0ee%0x64>=0xb?0x4:0x5}};_0x428162['ar']||={'dictionary':{},'getPluralForm':null},_0x428162['ar']['dictionary']=Object['assign'](_0x428162['ar']['dictionary'],_0x3d8e49),_0x428162['ar']['getPluralForm']=_0x21afbb;})(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':_0x3c6e13=>0x1!=_0x3c6e13}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3162ca=>{const {ast:{dictionary:_0x20cddf,getPluralForm:_0x2ff574}}={'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':_0x90c483=>0x1!=_0x90c483}};_0x3162ca['ast']||={'dictionary':{},'getPluralForm':null},_0x3162ca['ast']['dictionary']=Object['assign'](_0x3162ca['ast']['dictionary'],_0x20cddf),_0x3162ca['ast']['getPluralForm']=_0x2ff574;})(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':_0x2be7fc=>0x1!=_0x2be7fc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x31b69e=>{const {az:{dictionary:_0x3fdf8e,getPluralForm:_0x2ba707}}={'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':_0x3c992c=>0x1!=_0x3c992c}};_0x31b69e['az']||={'dictionary':{},'getPluralForm':null},_0x31b69e['az']['dictionary']=Object['assign'](_0x31b69e['az']['dictionary'],_0x3fdf8e),_0x31b69e['az']['getPluralForm']=_0x2ba707;})(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':_0x5cb90a=>_0x5cb90a%0xa==0x1&&_0x5cb90a%0x64!=0xb?0x0:_0x5cb90a%0xa>=0x2&&_0x5cb90a%0xa<=0x4&&(_0x5cb90a%0x64<0xa||_0x5cb90a%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5b3bf3=>{const {be:{dictionary:_0x249a99,getPluralForm:_0x375c0c}}={'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':_0x42ef0d=>_0x42ef0d%0xa==0x1&&_0x42ef0d%0x64!=0xb?0x0:_0x42ef0d%0xa>=0x2&&_0x42ef0d%0xa<=0x4&&(_0x42ef0d%0x64<0xa||_0x42ef0d%0x64>=0x14)?0x1:0x2}};_0x5b3bf3['be']||={'dictionary':{},'getPluralForm':null},_0x5b3bf3['be']['dictionary']=Object['assign'](_0x5b3bf3['be']['dictionary'],_0x249a99),_0x5b3bf3['be']['getPluralForm']=_0x375c0c;})(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':_0xe10402=>0x1!=_0xe10402}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x261550=>{const {bg:{dictionary:_0x5a857a,getPluralForm:_0x50dfff}}={'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':_0x2efbb3=>0x1!=_0x2efbb3}};_0x261550['bg']||={'dictionary':{},'getPluralForm':null},_0x261550['bg']['dictionary']=Object['assign'](_0x261550['bg']['dictionary'],_0x5a857a),_0x261550['bg']['getPluralForm']=_0x50dfff;})(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':_0x462e62=>0x1!=_0x462e62}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4cc9db=>{const {bn:{dictionary:_0x22cd0a,getPluralForm:_0x522d11}}={'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':_0x2919d7=>0x1!=_0x2919d7}};_0x4cc9db['bn']||={'dictionary':{},'getPluralForm':null},_0x4cc9db['bn']['dictionary']=Object['assign'](_0x4cc9db['bn']['dictionary'],_0x22cd0a),_0x4cc9db['bn']['getPluralForm']=_0x522d11;})(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':_0x1d091f=>_0x1d091f%0xa==0x1&&_0x1d091f%0x64!=0xb?0x0:_0x1d091f%0xa>=0x2&&_0x1d091f%0xa<=0x4&&(_0x1d091f%0x64<0xa||_0x1d091f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x48b955=>{const {bs:{dictionary:_0x18e8a6,getPluralForm:_0x418f7f}}={'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':_0x3b39d4=>_0x3b39d4%0xa==0x1&&_0x3b39d4%0x64!=0xb?0x0:_0x3b39d4%0xa>=0x2&&_0x3b39d4%0xa<=0x4&&(_0x3b39d4%0x64<0xa||_0x3b39d4%0x64>=0x14)?0x1:0x2}};_0x48b955['bs']||={'dictionary':{},'getPluralForm':null},_0x48b955['bs']['dictionary']=Object['assign'](_0x48b955['bs']['dictionary'],_0x18e8a6),_0x48b955['bs']['getPluralForm']=_0x418f7f;})(window['CKEDITOR_TRANSLATIONS']||={});
|