@ckeditor/ckeditor5-uploadcare 47.0.0-alpha.8 → 47.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x5b3252,Command as _0x51088a}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4b8692,IconGooglePhotos as _0x2188d8,IconGoogleDrive as _0x5da1a0,IconFacebook as _0x5780b7,IconDropbox as _0x1d2a19,IconUploadcareLink as _0x2de732,IconUploadcareImageUpload as _0x1b9c01,IconError as _0x556094,IconUploadcareImageEdit as _0x4fbc92}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2679db,MenuBarMenuListItemButtonView as _0x16ba3b,View as _0x281da0,FocusCycler as _0x2b6869,Dialog as _0x57a1f8,DialogViewPosition as _0x3221f2,SpinnerView as _0x5d8721,IconView as _0x4dc333,Notification as _0x1fb909}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5ef9e0,DomEmitterMixin as _0x3dbd8d,global as _0x41c64d,getAncestors as _0xbaa7b7,ObservableMixin as _0x198e2b,uid as _0x51a436,createElement as _0x555aa7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3356de}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x502222,info as _0x73c3a4}from'@uploadcare/upload-client';import*as _0x910881 from'@uploadcare/file-uploader';var i=function(_0x373bbe){return _0x373bbe['Local']='local',_0x373bbe['URL']='url',_0x373bbe['Dropbox']='dropbox',_0x373bbe['GDrive']='gdrive',_0x373bbe['Facebook']='facebook',_0x373bbe['GPhotos']='gphotos',_0x373bbe['OneDrive']='onedrive',_0x373bbe;}({});function _(_0x44e7b2,_0x10d90d,_0x1cf958){const t=_0x44e7b2['t'],_0x3c1d56=_0x44e7b2['t'];switch(_0x10d90d){case i['Local']:return{'text':_0x3c1d56('Insert'===_0x1cf958?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3c1d56('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1cf958?_0x3c1d56('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3c1d56('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1cf958?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1cf958?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1cf958?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1cf958?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1cf958?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x10d90d;}}class e extends _0x5b3252{['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 _0x45349c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x101791;for(const _0x36e0af in _0x45349c){const _0x3ff131=_0x36e0af,_0x1f2e23=_0x45349c[_0x3ff131];if('uploadcareLicenseKeyValid'==_0x1f2e23||'uploadcareLicenseKeyInvalid'==_0x1f2e23||'uploadcareLicenseKeyExpired'==_0x1f2e23||'uploadcareLicenseKeyDomainLimit'==_0x1f2e23||'uploadcareLicenseKeyNotAllowed'==_0x1f2e23||'uploadcareLicenseKeyEvaluationLimit'==_0x1f2e23||'uploadcareLicenseKeyTrialLimit'==_0x1f2e23||'uploadcareLicenseKeyUsageLimit'==_0x1f2e23){delete _0x45349c[_0x3ff131],_0x101791=_0x1f2e23,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x101791&&_0x45349c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x101791&&_0x45349c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x101791&&_0x45349c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x101791&&_0x45349c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x101791&&_0x45349c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x101791&&_0x45349c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x101791&&_0x45349c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x171904}=this,_0x36941c=_0x171904['commands']['get']('uploadcare');if(!_0x36941c)return;const _0x26264b=this['_normalizeConfigSourceList'](_0x171904['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2c6ae4,_0x413504)=>{const _0x494c82=this['_getIntegrationKey'](_0x413504['type']);return _0x2c6ae4[_0x494c82]||(_0x2c6ae4[_0x494c82]=[]),_0x2c6ae4[_0x494c82]['push'](_0x413504),_0x2c6ae4;},{});_0x171904['plugins']['has']('ImageInsertUI')&&_0x171904['commands']['get']('uploadcare')&&Object['entries'](_0x26264b)['forEach'](([_0x1564b5,_0x49805b])=>{_0x171904['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1564b5,'observable':()=>_0x36941c,'buttonViewCreator':()=>this['_createToolbarButton'](_0x49805b),'formViewCreator':()=>this['_createDropdownButtons'](_0x49805b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x49805b),'override':'assetManager'!==_0x1564b5});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x594f59){const {locale:_0x5ecc5a}=this['editor'];return _0x594f59['map'](_0x10855e=>{const _0x387277=_(_0x5ecc5a,_0x10855e,'Insert');switch(_0x10855e){case i['Local']:return{'icon':_0x1b9c01,'type':i['Local'],..._0x387277};case i['URL']:return{'icon':_0x2de732,'type':i['URL'],..._0x387277};case i['Dropbox']:return{'icon':_0x1d2a19,'type':i['Dropbox'],..._0x387277};case i['Facebook']:return{'icon':_0x5780b7,'type':i['Facebook'],..._0x387277};case i['GDrive']:return{'icon':_0x5da1a0,'type':i['GDrive'],..._0x387277};case i['GPhotos']:return{'icon':_0x2188d8,'type':i['GPhotos'],..._0x387277};case i['OneDrive']:return{'icon':_0x4b8692,'type':i['OneDrive'],..._0x387277};}});}['_getIntegrationKey'](_0x2370b4){switch(_0x2370b4){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x21cc3b,_0x2c36d4){const _0x279022=this['editor'],_0x1f673e=new _0x21cc3b(_0x279022['locale']),_0x234824=_0x279022['commands']['get']('uploadcare');return _0x1f673e['bind']('isEnabled')['to'](_0x234824),_0x1f673e['on']('execute',()=>{_0x234824['execute'](_0x2c36d4);}),_0x1f673e;}['_createToolbarButton'](_0x3de30b){const {locale:_0x2bab13}=this['editor'],_0x529cd9=this['editor']['plugins']['get']('ImageInsertUI'),_0x325954=_0x3de30b[0x0],_0x12d0e1=this['_createButton'](_0x2679db,_0x325954['type']);return _0x12d0e1['icon']=_0x325954['icon'],_0x12d0e1['bind']('label')['to'](_0x529cd9,'isImageSelected',_0xe6383c=>_(_0x2bab13,_0x325954['type'],_0xe6383c?'Replace':'Insert')['text']),_0x12d0e1['tooltip']=!0x0,_0x12d0e1;}['_createDropdownButtons'](_0x1cc8b3){const {locale:_0x24abed}=this['editor'],_0x1b4f23=this['editor']['plugins']['get']('ImageInsertUI');return _0x1cc8b3['map'](_0xb9fabc=>{const _0x25080d=this['_createButton'](_0x2679db,_0xb9fabc['type']);return _0x25080d['withText']=!0x0,_0x25080d['icon']=_0xb9fabc['icon'],_0x25080d['bind']('label')['to'](_0x1b4f23,'isImageSelected',_0x48918d=>_(_0x24abed,_0xb9fabc['type'],_0x48918d?'Replace':'Insert')['text']),_0x25080d;});}['_createMenuBarButtons'](_0x5254ca){return _0x5254ca['map'](_0x4a223b=>{const _0x55e58d=this['_createButton'](_0x16ba3b,_0x4a223b['type']);return _0x55e58d['icon']=_0x4a223b['icon'],_0x55e58d['label']=_0x4a223b['shortText'],_0x55e58d;});}}class F extends _0x281da0{['focusTracker'];['focusCycler'];constructor(_0x515d40){super(_0x515d40),this['focusTracker']=new _0x5ef9e0(),this['focusCycler']=new _0x2b6869({'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(_0x3f9a54,_0x514e48){super(_0x3f9a54),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-'+_0x514e48}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1a53c5,_0x604593){const _0x2ce818=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5a0279=>_0x5a0279<=_0x604593)['map'](_0x45dd1c=>_0x1a53c5['replace'](/\/$/,'')+'/-/resize/'+_0x45dd1c+'x/\x20'+_0x45dd1c+'w');return{'imageFallbackUrl':_0x1a53c5,'imageSources':[{'srcset':_0x2ce818['join'](',\x20'),'sizes':'(max-width:\x20'+_0x604593+'px)\x20100vw,\x20'+_0x604593+'px','type':'image/webp'}]};}function S(_0x450cb1,_0x56cfd0,_0x54bd05){const _0x329107=_0x450cb1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x329107?parseInt(_0x329107[0x1],0xa):_0x56cfd0,'height':_0x329107?parseInt(_0x329107[0x2],0xa):_0x54bd05};}function p(_0xa2bbff,_0x16bbfa){const _0x382836=new(_0x3dbd8d())(),_0x37e53b=_0xa2bbff['plugins']['get']('ImageUtils'),_0x4a23d3=_0xa2bbff['editing']['mapper']['toViewElement'](_0x16bbfa),_0x4a9091=_0x37e53b['findViewImgElement'](_0x4a23d3),_0x45c1c9=_0xa2bbff['editing']['view']['domConverter']['viewToDom'](_0x4a9091),_0x1b73a7=_0x16bbfa['getAttribute']('width'),_0x37f20e=_0x16bbfa['getAttribute']('height'),_0x5c7cd6='image-processing';_0xa2bbff['editing']['view']['change'](_0x1985f1=>{_0x1985f1['addClass'](_0x5c7cd6,_0x4a23d3),_0x1985f1['setStyle']('aspect-ratio',_0x1b73a7+'/'+_0x37f20e,_0x4a9091);}),_0x382836['listenTo'](_0x45c1c9,'load',()=>{_0x382836['stopListening'](_0x45c1c9,'load'),_0xa2bbff['editing']['view']['change'](_0x4c90fb=>{_0x4c90fb['removeClass'](_0x5c7cd6,_0x4a23d3),_0x4c90fb['removeStyle']('aspect-ratio',_0x4a9091);});});}function G(_0x36dbe2){if(Array['isArray'](_0x36dbe2)){const _0x587b12=_0x36dbe2['map'](G);return _0xf9e177=>_0x587b12['some'](_0x34efe2=>_0x34efe2(_0xf9e177));}if('origin'==_0x36dbe2){const _0x2da779=_0x41c64d['window']['location']['origin'];return _0x411f3c=>new URL(_0x411f3c,_0x41c64d['document']['baseURI'])['origin']==_0x2da779;}return'function'==typeof _0x36dbe2?_0x36dbe2:_0x36dbe2 instanceof RegExp?_0x131238=>!(!_0x131238['match'](_0x36dbe2)&&!_0x131238['replace'](/^https?:\/\//,'')['match'](_0x36dbe2)):()=>!0x1;}function A(_0x5d4689,_0x1cf017){return _0xbaa7b7(_0x5d4689['target'])['includes'](_0x1cf017);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x198e2b(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x6733a7,_0x284e13,_0xea04f0){super(),this['_editor']=_0x6733a7,this['_editing']=_0x284e13,this['_dialog']=_0x6733a7['plugins']['get'](_0x57a1f8),this['_api']=_0x284e13['ctxElement']['getAPI'](),this['_type']=_0xea04f0,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:_0x3ccdd3,model:_0x50466a}=this['_editor'],_0x42e2bf=_0x50466a['document']['selection']['getSelectedElement'](),_0x48d8d2=_0x42e2bf&&(_0x42e2bf['is']('element','imageBlock')||_0x42e2bf['is']('element','imageInline'));this['_formView']=new x(_0x3ccdd3,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1b9c01,'title':_(_0x3ccdd3,this['_type'],_0x48d8d2?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3221f2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1eac88=>!A(_0x1eac88,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x856fff}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xb7d37e=>{const _0x38b784=_0x856fff['length'];for(const _0x3e51f4 of _0x856fff){const _0x3f8dc3=_0x3e51f4===_0x856fff[_0x38b784-0x1],{cdnUrl:_0x592a3d,fileInfo:_0x4f16d6}=_0x3e51f4;if(!_0x592a3d||!_0x4f16d6)continue;const {width:_0x5a5676,height:_0x20d146}=_0x4f16d6['imageInfo'],_0x4531e2=S(_0x592a3d,_0x5a5676,_0x20d146),_0x4f625a=C(_0x592a3d,_0x4531e2['width']),_0x1ac519={'id':_0x4f16d6['uuid'],'type':'image','attributes':{'imageDimension':_0x4531e2,..._0x4f625a}};this['_insertAsset'](_0x1ac519,_0x3f8dc3,_0xb7d37e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x11658c=>{'idle'===_0x11658c['detail']['status']&&!_0x11658c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x45d671,_0x319630,_0x5d8a6f){const _0x305c83=this['_editor']['model']['document']['selection'],_0x440183=_0x305c83['getSelectedElement'](),_0x451f44=!(!_0x440183||!_0x440183['is']('element','imageInline'));_0x5d8a6f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x45d671,_0x451f44),_0x319630||_0x5d8a6f['setSelection'](_0x305c83['getLastPosition']());}['_insertImage'](_0x1cdcf4,_0x267dcf){const _0x30f775=this['_editor'],{imageDimension:_0x357b13,imageFallbackUrl:_0x1ac384,imageSources:_0x453bee}=_0x1cdcf4['attributes'];_0x30f775['execute']('insertImage',{'imageType':_0x267dcf?'imageInline':null,'source':{'uploadcareImageId':_0x1cdcf4['id'],'src':_0x1ac384,'sources':_0x453bee,..._0x357b13}});}}class w extends _0x51088a{['_editing'];['_controller']=null;static get['requires'](){return[_0x57a1f8,o];}constructor(_0x5ee181){super(_0x5ee181),this['_editing']=_0x5ee181['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4b1afd){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4b1afd);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3ab1a7,..._0x4da59e}){return _0x502222(_0x3ab1a7,_0x4da59e);}static['getInfo'](_0x1d8342,_0x4f04a4){return _0x73c3a4(_0x1d8342,_0x4f04a4);}}class f extends _0x5b3252{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3356de,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xb74d39=this['editor'];if(!!!_0xb74d39['config']['get']('uploadcare'))return;_0xb74d39['plugins']['get'](_0x3356de)['createUploadAdapter']=_0x3c444c=>new k(_0x3c444c,_0xb74d39),_0xb74d39['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2ef92f,{imageElement:_0x5c78ed,data:_0x19d98b})=>{_0xb74d39['model']['change'](_0xe7f57d=>{_0xe7f57d['setAttribute']('uploadcareImageId',_0x19d98b['uploadcareImageId'],_0x5c78ed);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x556c3e,_0x1b27c5){this['loader']=_0x556c3e,this['editor']=_0x1b27c5,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x529a6f=await this['loader']['file'];return j['upload']({'file':_0x529a6f,'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':_0x3a5706=>{_0x3a5706&&_0x3a5706['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3a5706['value']);}})['then'](async _0x351f75=>{const {imageFallbackUrl:_0x5b29be,imageSources:_0x3366d9}=C(_0x351f75['cdnUrl'],_0x351f75['imageInfo']['width']);return{'uploadcareImageId':_0x351f75['uuid'],'default':_0x5b29be,'sources':_0x3366d9};})['catch'](()=>{const _0x105b85=t('Cannot\x20upload\x20file:')+('\x20'+_0x529a6f['name']+'.');return Promise['reject'](_0x105b85);});}['abort'](){this['controller']['abort']();}}class o extends _0x5b3252{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x57a1f8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2c6b07){super(_0x2c6b07),this['ucContextId']=_0x51a436();}['init'](){const _0x506e00=this['editor'];_0x506e00['commands']['add']('uploadcare',new w(_0x506e00));}['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 _0x3fda20=_0x41c64d['document']['querySelector']('input[uploadcare-file-input]');_0x3fda20&&_0x3fda20['remove']();}),async function(_0x211be0){const _0x543691=_0x2b034f([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]),_0x4cf02c=0x3d8d0df,_0x39c7a8=0x3dfa42f^_0x4cf02c,_0x5180aa=window[_0x2b034f([0x44,0x61,0x74,0x65])][_0x2b034f([0x6e,0x6f,0x77])](),_0x46983e=_0x211be0[_0x2b034f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54d0d5=new window[(_0x2b034f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x476e19=>{_0x46983e[_0x2b034f([0x6f,0x6e,0x63,0x65])](_0x2b034f([0x72,0x65,0x61,0x64,0x79]),_0x476e19);}),_0x5a680f={[_0x2b034f([0x6b,0x74,0x79])]:_0x2b034f([0x45,0x43]),[_0x2b034f([0x75,0x73,0x65])]:_0x2b034f([0x73,0x69,0x67]),[_0x2b034f([0x63,0x72,0x76])]:_0x2b034f([0x50,0x2d,0x32,0x35,0x36]),[_0x2b034f([0x78])]:_0x2b034f([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]),[_0x2b034f([0x79])]:_0x2b034f([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]),[_0x2b034f([0x61,0x6c,0x67])]:_0x2b034f([0x45,0x53,0x32,0x35,0x36])},_0x4e803e=_0x46983e[_0x2b034f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b034f([0x67,0x65,0x74])](_0x2b034f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e046b(){let _0x4c00c3,_0x405f0f=null,_0xf1739a=null;try{if(_0x4e803e==_0x2b034f([0x47,0x50,0x4c]))return _0x2b034f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c00c3=_0x66ed68(),!_0x4c00c3)return _0x2b034f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c00c3[_0x2b034f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf1739a=_0x2a97f7(_0x4c00c3[_0x2b034f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c00c3[_0x2b034f([0x6a,0x74,0x69])])),await _0x4a60ec()?_0x475f74()?_0x4b57bd()?_0x2b034f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x49a9e6()?(_0x4c00c3[_0x2b034f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b034f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x405f0f=_0x47881e(_0x2b034f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c00c3[_0x2b034f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b034f([0x74,0x72,0x69,0x61,0x6c])&&(_0x405f0f=_0x47881e(_0x2b034f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2b478f()):_0x2b034f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b034f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b034f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b034f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b57bd(){const _0x225564=[_0x2b034f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b034f([0x74,0x72,0x69,0x61,0x6c])][_0x2b034f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c00c3[_0x2b034f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5180aa/0x3e8:0xe10*_0x39c7a8;return _0x4c00c3[_0x2b034f([0x65,0x78,0x70])]<_0x225564;}function _0x475f74(){const _0x3c58ea=_0x4c00c3[_0x2b034f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c58ea&&(!!_0x3c58ea[_0x2b034f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b034f([0x2a]))||!!_0x3c58ea[_0x2b034f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b034f([0x55,0x50,0x4c,0x43])));}function _0x49a9e6(){const _0x5af890=_0x4c00c3[_0x2b034f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5af890||0x0==_0x5af890[_0x2b034f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x88afe0}=new URL(window[_0x2b034f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5af890[_0x2b034f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x88afe0))return!0x0;const _0x43c68e=_0x88afe0[_0x2b034f([0x73,0x70,0x6c,0x69,0x74])](_0x2b034f([0x2e]));return _0x5af890[_0x2b034f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xad0615=>_0xad0615[_0x2b034f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b034f([0x2a])))[_0x2b034f([0x6d,0x61,0x70])](_0x593c6e=>_0x593c6e[_0x2b034f([0x73,0x70,0x6c,0x69,0x74])](_0x2b034f([0x2e])))[_0x2b034f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25ef12=>_0x25ef12[_0x2b034f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x43c68e[_0x2b034f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b034f([0x6d,0x61,0x70])](_0x49f9a3=>Array(_0x43c68e[_0x2b034f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x49f9a3[_0x2b034f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b034f([0x66,0x69,0x6c,0x6c])](_0x49f9a3[0x0]===_0x2b034f([0x2a])?_0x2b034f([0x2a]):'')[_0x2b034f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x49f9a3))[_0x2b034f([0x73,0x6f,0x6d,0x65])](_0x28a3fd=>_0x43c68e[_0x2b034f([0x65,0x76,0x65,0x72,0x79])]((_0x2f6146,_0x651b28)=>_0x28a3fd[_0x651b28]===_0x2f6146||_0x28a3fd[_0x651b28]===_0x2b034f([0x2a])));}function _0x2b478f(){return _0x405f0f&&_0xf1739a?new window[(_0x2b034f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50ee8a,_0xdb6d55)=>{_0x405f0f[_0x2b034f([0x74,0x68,0x65,0x6e])](_0x50ee8a,_0xdb6d55),_0xf1739a[_0x2b034f([0x74,0x68,0x65,0x6e])](_0x2f43ce=>{_0x2f43ce!=_0x2b034f([0x56,0x61,0x6c,0x69,0x64])&&_0x50ee8a(_0x2f43ce);},_0xdb6d55);}):_0x405f0f||_0xf1739a||_0x2b034f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a97f7(_0x29affc,_0x355bdc){return new window[(_0x2b034f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x167c7d=>{if(_0x2e57b1())return _0x167c7d(_0x2b034f([0x56,0x61,0x6c,0x69,0x64]));_0x56f26d(),_0x46983e[_0x2b034f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b034f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5e9814=!0x1;const _0x2d552e=_0x51a436();function _0x403dcb(_0x3f4b30){return!!_0x3f4b30&&(typeof _0x3f4b30===_0x2b034f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3f4b30===_0x2b034f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3f4b30[_0x2b034f([0x74,0x68,0x65,0x6e])]===_0x2b034f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3f4b30[_0x2b034f([0x63,0x61,0x74,0x63,0x68])]===_0x2b034f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x44d109(_0xbdb3d4){_0x3d6556(_0xbdb3d4)[_0x2b034f([0x74,0x68,0x65,0x6e])](_0x34c3f8=>{if(!_0x34c3f8||_0x34c3f8[_0x2b034f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b034f([0x6f,0x6b]))return _0x2b034f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3fe849(_0x1f9ff0(_0x2d552e+_0x355bdc))!=_0x34c3f8[_0x2b034f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b034f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b034f([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b034f([0x74,0x68,0x65,0x6e])](_0xc1fcae=>(_0x5b7f27(),_0xc1fcae),()=>{const _0xfc7af7=_0x267f76();return null==_0xfc7af7?(_0x5b7f27(),_0x2b034f([0x56,0x61,0x6c,0x69,0x64])):_0x2b034f(_0x5180aa-_0xfc7af7>(0x27d454df^_0x4cf02c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b034f([0x74,0x68,0x65,0x6e])](_0x167c7d)[_0x2b034f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x167c7d(_0x2b034f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1983eb=0x3ee3e5f^_0x4cf02c;function _0x5b7f27(){const _0x39c517=_0x2b034f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fe849(_0x1f9ff0(_0x29affc)),_0x350b7c=_0x4a2519(_0x3fe849(window[_0x2b034f([0x4d,0x61,0x74,0x68])][_0x2b034f([0x63,0x65,0x69,0x6c])](_0x5180aa/_0x1983eb)));window[_0x2b034f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b034f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39c517,_0x350b7c);}function _0x267f76(){const _0x45384e=_0x2b034f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fe849(_0x1f9ff0(_0x29affc)),_0x59a415=window[_0x2b034f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b034f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x45384e);return _0x59a415?window[_0x2b034f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a2519(_0x59a415),0x10)*_0x1983eb:null;}function _0x3d6556(_0x13b714){return new window[(_0x2b034f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36b762,_0x4e6c56)=>{_0x13b714[_0x2b034f([0x74,0x68,0x65,0x6e])](_0x36b762,_0x4e6c56),window[_0x2b034f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e6c56,0x3d9041f^_0x4cf02c);});}}_0x46983e[_0x2b034f([0x6f,0x6e])](_0x2b034f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e7b9d,_0x1cdf7c)=>{if(_0x1cdf7c[0x0]!=_0x29affc)return _0x167c7d(_0x2b034f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1cdf7c[0x1]={..._0x1cdf7c[0x1],[_0x2b034f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d552e};},{[_0x2b034f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b034f([0x68,0x69,0x67,0x68])}),_0x46983e[_0x2b034f([0x6f,0x6e])](_0x2b034f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x526224=>{_0x403dcb(_0x526224[_0x2b034f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5e9814=!0x0,_0x44d109(_0x526224[_0x2b034f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b034f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b034f([0x6c,0x6f,0x77])}),_0x54d0d5[_0x2b034f([0x74,0x68,0x65,0x6e])](()=>{_0x5e9814||_0x167c7d(_0x2b034f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e57b1(){return _0x46983e[_0x2b034f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b034f([0x76,0x69,0x65,0x77])][_0x2b034f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b034f([0x61,0x75,0x74,0x6f]);}function _0x56f26d(){_0x46983e[_0x2b034f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b034f([0x76,0x69,0x65,0x77])][_0x2b034f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b034f([0x61,0x75,0x74,0x6f]);}}function _0x47881e(_0x156305){const _0x43927f=[new window[(_0x2b034f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x458d8a=>setTimeout(_0x458d8a,0x3d1ee13^_0x4cf02c)),_0x54d0d5[_0x2b034f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b034f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39d5ad=>{let _0x236136=0x0;_0x46983e[_0x2b034f([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b034f([0x6f,0x6e])](_0x2b034f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5b4bbc,_0x3115d4)=>{_0x3115d4[0x0][_0x2b034f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x236136++,_0x236136==(0x3d8d127^_0x4cf02c)&&(_0x39d5ad(),_0x5b4bbc[_0x2b034f([0x6f,0x66,0x66])]());});}))];return window[_0x2b034f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b034f([0x72,0x61,0x63,0x65])](_0x43927f)[_0x2b034f([0x74,0x68,0x65,0x6e])](()=>_0x156305);}async function _0x555c11(){await _0x54d0d5,_0x46983e[_0x2b034f([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b034f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4dd80f,_0x46983e[_0x2b034f([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b034f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4dd80f,_0x46983e[_0x2b034f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b034f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4d1838(_0x2bd6ca){const _0x139802=_0x3bf37b();_0x46983e[_0x139802]=_0x2b034f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2bd6ca,_0x2bd6ca!=_0x2b034f([0x56,0x61,0x6c,0x69,0x64])&&_0x555c11();}function _0x3bf37b(){const _0x7da766=window[_0x2b034f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b034f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b034f([0x6e,0x6f,0x77])]())[_0x2b034f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b034f([0x2e]),'');let _0x5f07a4=_0x2b034f([0x52]);for(let _0x279a79=0x0;_0x279a79<_0x7da766[_0x2b034f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x279a79+=0x2){let _0x4bbccb=window[_0x2b034f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7da766[_0x2b034f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x279a79,_0x279a79+0x2));_0x4bbccb>=_0x543691[_0x2b034f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4bbccb-=_0x543691[_0x2b034f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5f07a4+=_0x543691[_0x4bbccb];}return _0x5f07a4;}function _0x66ed68(){const _0xb4525=_0x4e803e[_0x2b034f([0x73,0x70,0x6c,0x69,0x74])](_0x2b034f([0x2e]));if(0x3!=_0xb4525[_0x2b034f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xc8e0d2(_0xb4525[0x1]);function _0xc8e0d2(_0x4fb1cb){const _0x4152f6=_0x315ae6(_0x4fb1cb);return _0x4152f6&&_0x530a13()?_0x4152f6:null;function _0x530a13(){const _0x3080c6=_0x4152f6[_0x2b034f([0x6a,0x74,0x69])],_0x36a484=window[_0x2b034f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3080c6[_0x2b034f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3080c6[_0x2b034f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x42b87b={..._0x4152f6,[_0x2b034f([0x6a,0x74,0x69])]:_0x3080c6[_0x2b034f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3080c6[_0x2b034f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x42b87b[_0x2b034f([0x76,0x63])],_0x1f9ff0(_0x42b87b)==_0x36a484;}}}async function _0x4a60ec(){let _0x4eb435=!0x0;try{const _0x4e0f69=_0x4e803e[_0x2b034f([0x73,0x70,0x6c,0x69,0x74])](_0x2b034f([0x2e])),[_0x167688,_0x2ce6b6,_0x6c6b47]=_0x4e0f69;return _0x30ca01(_0x167688),await _0x48ff87(_0x167688,_0x2ce6b6,_0x6c6b47),_0x4eb435;}catch{return!0x1;}function _0x30ca01(_0x40e6ea){const _0x65990d=_0x315ae6(_0x40e6ea);_0x65990d&&_0x65990d[_0x2b034f([0x61,0x6c,0x67])]==_0x2b034f([0x45,0x53,0x32,0x35,0x36])||(_0x4eb435=!0x1);}async function _0x48ff87(_0x3104c9,_0x36743c,_0x2583c8){const _0x5a896f=window[_0x2b034f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b034f([0x66,0x72,0x6f,0x6d])](_0xaa4886(_0x2583c8),_0x15b525=>_0x15b525[_0x2b034f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xef973=new window[(_0x2b034f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b034f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3104c9+_0x2b034f([0x2e])+_0x36743c),_0x43cea1=window[_0x2b034f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b034f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43cea1)return;const _0x5c2562=await _0x43cea1[_0x2b034f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b034f([0x6a,0x77,0x6b]),_0x5a680f,{[_0x2b034f([0x6e,0x61,0x6d,0x65])]:_0x2b034f([0x45,0x43,0x44,0x53,0x41]),[_0x2b034f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b034f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b034f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43cea1[_0x2b034f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b034f([0x6e,0x61,0x6d,0x65])]:_0x2b034f([0x45,0x43,0x44,0x53,0x41]),[_0x2b034f([0x68,0x61,0x73,0x68])]:{[_0x2b034f([0x6e,0x61,0x6d,0x65])]:_0x2b034f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c2562,_0x5a896f,_0xef973)||(_0x4eb435=!0x1);}}function _0x315ae6(_0x16b6c1){return _0x16b6c1[_0x2b034f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b034f([0x65,0x79]))?JSON[_0x2b034f([0x70,0x61,0x72,0x73,0x65])](_0xaa4886(_0x16b6c1)):null;}function _0xaa4886(_0x46f7b5){return window[_0x2b034f([0x61,0x74,0x6f,0x62])](_0x46f7b5[_0x2b034f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b034f([0x2b]))[_0x2b034f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b034f([0x2f])));}function _0x1f9ff0(_0x124ca9){let _0x281f36=0x1505;function _0x1330d1(_0x19d2c3){for(let _0x3fa287=0x0;_0x3fa287<_0x19d2c3[_0x2b034f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fa287++){const _0xa2e1d4=_0x19d2c3[_0x2b034f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3fa287);_0x281f36=(_0x281f36<<0x5)+_0x281f36+_0xa2e1d4,_0x281f36&=_0x281f36;}}function _0x1a386c(_0x314390){Array[_0x2b034f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x314390)?_0x314390[_0x2b034f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a386c):_0x314390&&typeof _0x314390==_0x2b034f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b034f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x314390)[_0x2b034f([0x73,0x6f,0x72,0x74])]()[_0x2b034f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1fc6a7,_0x11cf2d])=>{_0x1330d1(_0x1fc6a7),_0x1a386c(_0x11cf2d);}):_0x1330d1(window[_0x2b034f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x314390));}return _0x1a386c(_0x124ca9),_0x281f36>>>0x0;}function _0x3fe849(_0x18167d){return _0x18167d[_0x2b034f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b034f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b034f([0x30]));}function _0x4a2519(_0x2598a6){return _0x2598a6[_0x2b034f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b034f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b034f([0x6a,0x6f,0x69,0x6e])]('');}function _0x4dd80f(){}function _0x2b034f(_0xb29807){return _0xb29807['map'](_0x436334=>String['fromCharCode'](_0x436334))['join']('');}_0x4d1838(await _0x5e046b());}(this);}['_initSchema'](){const _0xc8cd77=this['editor']['model']['schema'];_0xc8cd77['isRegistered']('imageBlock')&&_0xc8cd77['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xc8cd77['isRegistered']('imageInline')&&_0xc8cd77['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x36caec=this['editor'];_0x36caec['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x36caec['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x10a712=>_0x10a712['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3d3373=_0x36caec['commands']['get']('replaceImageSource');_0x3d3373&&this['listenTo'](_0x3d3373,'cleanupImage',(_0x96e16b,[_0x431962,_0x176790])=>{_0x431962['removeAttribute']('uploadcareImageId',_0x176790);});}['_initConfig'](){const _0x550e22=this['editor']['config']['get']('uploadcare.uploader')||{},_0x375224=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x555aa7(_0x41c64d['document'],'uc-config',{..._0x550e22,'pubkey':_0x375224,'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']=_0x434b65=>{if('closeMax'==_0x434b65)return'#uc-icon-arrow-down';},_0x41c64d['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x555aa7(_0x41c64d['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x41c64d['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x301234=this['editor']['commands']['get']('insertImage');_0x301234&&this['listenTo'](_0x301234,'execute',()=>{const _0x577555=this['editor']['model']['document']['selection']['getSelectedElement']();_0x577555&&_0x577555['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x577555);});});const _0x457a04=this['editor']['commands']['get']('uploadcareImageReplace');_0x457a04&&this['listenTo'](_0x457a04,'execute',()=>{const _0x29922f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x29922f&&_0x29922f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x29922f);});});}}class tt extends _0x5b3252{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x58ff03){super(_0x58ff03),_0x58ff03['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x910881['defineComponents'](_0x910881);}}class ii extends _0x281da0{constructor(_0x502cae){super(_0x502cae);const t=_0x502cae['t'],_0x193c10=this['bindTemplate'],_0x4d1cbc=new _0x5d8721();_0x4d1cbc['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':[_0x4d1cbc,{'text':_0x193c10['to']('imageUploadProgress',_0x588a0d=>t('Loading\x20image...')+'\x20('+(_0x588a0d||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 _0x281da0{constructor(_0x53a5b3){super(_0x53a5b3);const t=_0x53a5b3['t'];this['set']('errorType',null);const _0x6c6c9c=new _0x2679db(_0x53a5b3);_0x6c6c9c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x6c6c9c['withText']=!0x0,_0x6c6c9c['class']='ck-button-action',_0x6c6c9c['on']('execute',()=>{this['fire']('retry');}),_0x6c6c9c['bind']('isVisible')['to'](this,'errorType',_0x4e7e6f=>'NotFound'!==_0x4e7e6f);const _0x4c82d4=new _0x4dc333();_0x4c82d4['content']=_0x556094,_0x4c82d4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x6a4e57=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':[_0x4c82d4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x6a4e57['to']('errorType',_0x57319c=>t('NotFound'!==_0x57319c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x6c6c9c]},{'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 _0x281da0{constructor(_0x4410d7,_0xf90bde){super(_0x4410d7);const _0x3f2f4b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xf90bde,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3f2f4b['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2e0c00,_0x26e7d0,_0x3fe17f){super(_0x2e0c00),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2e0c00),this['_errorView']=new ti(_0x2e0c00),this['_editingView']=new ei(_0x2e0c00,_0x3fe17f),this['_focusableView']=new _0x281da0(_0x2e0c00),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x26e7d0),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'],_0x573171=>{this['_addUploadcareImageEditorListeners'](_0x573171);});}),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'](_0x2eba88,_0x680cb8){const _0x133e4f='uc-cloud-image-editor',_0x22db52=_0x2eba88['querySelector'](_0x133e4f);if(_0x22db52)return _0x680cb8(_0x22db52);const _0x48b99d=new MutationObserver(_0x4e9153=>{const _0x43f47d=_0x4e9153['filter'](_0x1ce7e8=>_0x1ce7e8['target']===_0x2eba88&&_0x1ce7e8['addedNodes']['length']>0x0&&_0x1ce7e8['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x133e4f);_0x43f47d['length']&&(_0x48b99d['disconnect'](),_0x680cb8(_0x43f47d[0x0]['addedNodes'][0x0]));});_0x48b99d['observe'](_0x2eba88,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x365092){_0x365092['addEventListener']('apply',_0x4665ae=>{this['fire']('apply',{'imageSrc':_0x4665ae['detail']['cdnUrl']});}),_0x365092['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x198e2b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5e4698,_0x524602,_0x1ae45b){super(),this['_editor']=_0x5e4698,this['_dialog']=_0x524602,this['_imageElement']=_0x1ae45b,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 _0x4855ac=this['_imageElement'],_0x5ce69d=_0x4855ac['getAttribute']('uploadcareImageId'),_0xf301de=_0x4855ac['getAttribute']('src');if(_0x5ce69d)await this['_loadImageInfo'](_0x5ce69d,_0xf301de);else{if(this['_imageCache']['has'](_0xf301de)){const _0xe3f1eb=this['_imageCache']['get'](_0xf301de);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe3f1eb['url'],this['imageDimension']=_0xe3f1eb['dimension'],this['imageId']=_0xe3f1eb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5ee143}=this['_editor'],t=_0x5ee143['t'],_0x17154d=new X(_0x5ee143,this['imageStatus'],this['_attributes']);_0x17154d['bind']('status')['to'](this,'imageStatus'),_0x17154d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x17154d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x17154d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x17154d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4fbc92,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x17154d,'position':_0x3221f2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x17154d['focus']();},'onHide':()=>{_0x17154d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x47ede5=>!A(_0x47ede5,_0x17154d['element'])}});}['_loadImageInfo'](_0x56bc9a,_0x2f68df){return j['getInfo'](_0x56bc9a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4bb40b=>{const {width:_0x48f080,height:_0x500f00}=_0x4bb40b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2f68df,this['imageDimension']={'width':_0x48f080,'height':_0x500f00},this['imageId']=_0x56bc9a;})['catch'](_0x218a88=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x218a88['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2c54f0,_0x2b7550){return this['_getImageAsFile'](_0x2c54f0)['then'](_0x8d3445=>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':_0x2b7550['signal'],'file':_0x8d3445,'onProgress':_0x803415=>{_0x803415&&_0x803415['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x803415['value']));}}))['then'](_0x2743fd=>{const {width:_0x218645,height:_0x5e5785}=_0x2743fd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2743fd['cdnUrl'],this['imageDimension']={'width':_0x218645,'height':_0x5e5785},this['imageId']=_0x2743fd['uuid'],this['imageUploadProgress']=null;const _0x49ef0f=_0x2c54f0['getAttribute']('src');this['_imageCache']['set'](_0x49ef0f,{'id':_0x2743fd['uuid'],'url':_0x2743fd['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4a2a8f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4a2a8f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1e6d70,_0x4e613b){_0x1e6d70['on']('apply',(_0x355c4c,_0x89691c)=>{this['_replaceImage'](_0x4e613b,_0x89691c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1e6d70['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1e6d70['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x31e961,_0x14667f,_0x49234c){const _0xd8b1f=this['_editor'],{width:_0x5f576a,height:_0x58e402}=S(_0x14667f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x494810,imageSources:_0x1446e0}=C(_0x14667f,_0x5f576a);_0xd8b1f['model']['change'](_0x1a29dd=>{if('$graveyard'===_0x31e961['root']['rootName']){_0xd8b1f['execute']('insertImage',{'imageType':_0x31e961['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x31e961['getAttributes']()),'uploadcareImageId':_0x49234c,'src':_0x494810,'sources':_0x1446e0,'width':_0x5f576a,'height':_0x58e402}});const _0x462914=_0x31e961['getChildren']();_0x31e961=_0xd8b1f['model']['document']['selection']['getSelectedElement']();for(const _0x11d1aa of _0x462914)_0x1a29dd['append'](_0x1a29dd['cloneElement'](_0x11d1aa),_0x31e961);}else _0x1a29dd['setSelection'](_0x31e961,'on'),_0xd8b1f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x31e961['getAttributes']()),'uploadcareImageId':_0x49234c,'src':_0x494810,'sources':_0x1446e0,'width':_0x5f576a,'height':_0x58e402},_0x31e961);_0x1a29dd['setSelection'](_0x31e961,'on');});}async['_getImageAsFile'](_0x5a4680){const _0x3922a=_0x41c64d['window'],_0x5e602b=_0x41c64d['document']['location']['href'],_0x3859dc=new _0x3922a['URL'](_0x5a4680['getAttribute']('src'),_0x5e602b);if('data:'===_0x3859dc['protocol']){const _0x3935c4=_0x3859dc['href']['split'](','),_0x572ce6=_0x3935c4[0x0]['match'](/:(.*?);/)[0x1],_0x244090=_0x572ce6['split']('/')[0x1],_0x12c8b9=_0x3922a['atob'](_0x3935c4[_0x3935c4['length']-0x1]);let _0x2da066=_0x12c8b9['length'];const _0x385c20=new _0x3922a['Uint8Array'](_0x2da066);for(;_0x2da066--;)_0x385c20[_0x2da066]=_0x12c8b9['charCodeAt'](_0x2da066);return new _0x3922a['File']([_0x385c20],'image.'+_0x244090,{'type':_0x572ce6});}const _0x527750=_0x3859dc['href']['split']('/'),_0x508643=_0x527750[_0x527750['length']-0x1],_0x5924b0=_0x508643['split']('.')[0x1];return _0x3922a['fetch'](_0x3859dc['href'])['then'](_0x301bdb=>_0x301bdb['clone']()['blob']())['then'](_0x4e06b5=>new _0x3922a['File']([_0x4e06b5],_0x508643,{'type':'image/'+_0x5924b0}));}}class O extends _0x51088a{['imageEditController'];static get['requires'](){return[_0x57a1f8];}['_isEditable'];constructor(_0x83442f){super(_0x83442f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3bc56a){const _0x90615=G(_0x3bc56a);return _0xdf4918=>!(!_0xdf4918||!_0xdf4918['is']('element','imageBlock')&&!_0xdf4918['is']('element','imageInline'))&&(!!_0xdf4918['hasAttribute']('uploadcareImageId')||!!_0xdf4918['hasAttribute']('src')&&_0x90615(_0xdf4918['getAttribute']('src')));}(_0x83442f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5b343c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5b343c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x504b51=this['editor']['model']['document']['selection']['getSelectedElement']();_0x504b51&&(_0x504b51['is']('element','imageBlock')||_0x504b51['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x57a1f8),_0x504b51),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x51088a{['refresh'](){const _0xd6563d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xd6563d&&(_0xd6563d['is']('element','imageBlock')||_0xd6563d['is']('element','imageInline')));}['execute'](_0x37616f){const _0x54ea3b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x216d2e=>{_0x216d2e['setAttributes'](_0x37616f,_0x54ea3b),_0x216d2e['removeAttribute']('srcset',_0x54ea3b),_0x216d2e['removeAttribute']('sizes',_0x54ea3b);});}}class m extends _0x5b3252{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1fb909,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2f8d41}=this;_0x2f8d41['commands']['add']('uploadcareImageEdit',new O(_0x2f8d41)),_0x2f8d41['commands']['add']('uploadcareImageReplace',new R(_0x2f8d41));}}class g extends _0x5b3252{['_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 _0x339432=this['editor'];_0x339432['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4bfc6d=>{const _0x49a5ba=_0x339432['commands']['get']('uploadcareImageEdit'),_0x3424e0=new _0x2679db(_0x4bfc6d),t=_0x4bfc6d['t'];return _0x3424e0['set']({'icon':_0x4fbc92,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3424e0['bind']('isEnabled')['to'](_0x49a5ba),_0x3424e0['bind']('isOn')['to'](_0x49a5ba,'isActive'),this['listenTo'](_0x3424e0,'execute',()=>{_0x339432['execute']('uploadcareImageEdit'),_0x339432['editing']['view']['focus']();}),_0x3424e0;}),this['_initConfig']();}['_initConfig'](){const _0x1785bd=_0x555aa7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1785bd),this['listenTo'](this['editor'],'destroy',()=>{_0x1785bd['remove']();});}}class et extends _0x5b3252{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x2aa699,Command as _0x3fdc80}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x54b6c1,IconGooglePhotos as _0x5397ba,IconGoogleDrive as _0x4aaab2,IconFacebook as _0x2a31b2,IconDropbox as _0x30aad0,IconUploadcareLink as _0x3717cd,IconUploadcareImageUpload as _0x49f1fb,IconError as _0x1c947e,IconUploadcareImageEdit as _0x2153b2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1d4c82,MenuBarMenuListItemButtonView as _0x194f88,View as _0x3ac5a1,FocusCycler as _0x4aa2de,Dialog as _0x5c5bbd,DialogViewPosition as _0x56a80f,SpinnerView as _0x1190d8,IconView as _0x3da4cd,Notification as _0x4efee3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x34a38c,DomEmitterMixin as _0x18c5d3,global as _0x578c48,getAncestors as _0x6dfb64,ObservableMixin as _0x3a4d80,uid as _0x3ef480,createElement as _0x88f93b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xb3e91b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2c0bec,info as _0x58cd99}from'@uploadcare/upload-client';import*as _0x3f147d from'@uploadcare/file-uploader';var i=function(_0x2a4cbc){return _0x2a4cbc['Local']='local',_0x2a4cbc['URL']='url',_0x2a4cbc['Dropbox']='dropbox',_0x2a4cbc['GDrive']='gdrive',_0x2a4cbc['Facebook']='facebook',_0x2a4cbc['GPhotos']='gphotos',_0x2a4cbc['OneDrive']='onedrive',_0x2a4cbc;}({});function _(_0x546a05,_0x4b6cde,_0x4061f0){const t=_0x546a05['t'],_0x43faa5=_0x546a05['t'];switch(_0x4b6cde){case i['Local']:return{'text':_0x43faa5('Insert'===_0x4061f0?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x43faa5('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4061f0?_0x43faa5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x43faa5('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4061f0?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4061f0?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4061f0?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4061f0?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4061f0?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4b6cde;}}class e extends _0x2aa699{['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 _0x4e069b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x6b956c;for(const _0x11402b in _0x4e069b){const _0x2fb836=_0x11402b,_0x1ad9a7=_0x4e069b[_0x2fb836];if('uploadcareLicenseKeyValid'==_0x1ad9a7||'uploadcareLicenseKeyInvalid'==_0x1ad9a7||'uploadcareLicenseKeyExpired'==_0x1ad9a7||'uploadcareLicenseKeyDomainLimit'==_0x1ad9a7||'uploadcareLicenseKeyNotAllowed'==_0x1ad9a7||'uploadcareLicenseKeyEvaluationLimit'==_0x1ad9a7||'uploadcareLicenseKeyTrialLimit'==_0x1ad9a7||'uploadcareLicenseKeyUsageLimit'==_0x1ad9a7){delete _0x4e069b[_0x2fb836],_0x6b956c=_0x1ad9a7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x6b956c&&_0x4e069b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x6b956c&&_0x4e069b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x6b956c&&_0x4e069b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x6b956c&&_0x4e069b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x6b956c&&_0x4e069b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x6b956c&&_0x4e069b['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x6b956c&&_0x4e069b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x313959}=this,_0x23db65=_0x313959['commands']['get']('uploadcare');if(!_0x23db65)return;const _0xc292df=this['_normalizeConfigSourceList'](_0x313959['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4edb1c,_0x31aaf8)=>{const _0x4a60e6=this['_getIntegrationKey'](_0x31aaf8['type']);return _0x4edb1c[_0x4a60e6]||(_0x4edb1c[_0x4a60e6]=[]),_0x4edb1c[_0x4a60e6]['push'](_0x31aaf8),_0x4edb1c;},{});_0x313959['plugins']['has']('ImageInsertUI')&&_0x313959['commands']['get']('uploadcare')&&Object['entries'](_0xc292df)['forEach'](([_0x3e33bb,_0x1ed3ba])=>{_0x313959['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3e33bb,'observable':()=>_0x23db65,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1ed3ba),'formViewCreator':()=>this['_createDropdownButtons'](_0x1ed3ba),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1ed3ba),'override':'assetManager'!==_0x3e33bb});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2b6150){const {locale:_0xc5d8e3}=this['editor'];return _0x2b6150['map'](_0x277887=>{const _0x40dfcf=_(_0xc5d8e3,_0x277887,'Insert');switch(_0x277887){case i['Local']:return{'icon':_0x49f1fb,'type':i['Local'],..._0x40dfcf};case i['URL']:return{'icon':_0x3717cd,'type':i['URL'],..._0x40dfcf};case i['Dropbox']:return{'icon':_0x30aad0,'type':i['Dropbox'],..._0x40dfcf};case i['Facebook']:return{'icon':_0x2a31b2,'type':i['Facebook'],..._0x40dfcf};case i['GDrive']:return{'icon':_0x4aaab2,'type':i['GDrive'],..._0x40dfcf};case i['GPhotos']:return{'icon':_0x5397ba,'type':i['GPhotos'],..._0x40dfcf};case i['OneDrive']:return{'icon':_0x54b6c1,'type':i['OneDrive'],..._0x40dfcf};}});}['_getIntegrationKey'](_0x4ecf6f){switch(_0x4ecf6f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3e8e6e,_0x195330){const _0x5b42ee=this['editor'],_0x2176b5=new _0x3e8e6e(_0x5b42ee['locale']),_0x2a527e=_0x5b42ee['commands']['get']('uploadcare');return _0x2176b5['bind']('isEnabled')['to'](_0x2a527e),_0x2176b5['on']('execute',()=>{_0x2a527e['execute'](_0x195330);}),_0x2176b5;}['_createToolbarButton'](_0x2ab985){const {locale:_0x4a2e57}=this['editor'],_0x20b4d5=this['editor']['plugins']['get']('ImageInsertUI'),_0x3f961c=_0x2ab985[0x0],_0x315e72=this['_createButton'](_0x1d4c82,_0x3f961c['type']);return _0x315e72['icon']=_0x3f961c['icon'],_0x315e72['bind']('label')['to'](_0x20b4d5,'isImageSelected',_0x9a1317=>_(_0x4a2e57,_0x3f961c['type'],_0x9a1317?'Replace':'Insert')['text']),_0x315e72['tooltip']=!0x0,_0x315e72;}['_createDropdownButtons'](_0x563aa4){const {locale:_0x2e132c}=this['editor'],_0x174058=this['editor']['plugins']['get']('ImageInsertUI');return _0x563aa4['map'](_0x36e40e=>{const _0xac4780=this['_createButton'](_0x1d4c82,_0x36e40e['type']);return _0xac4780['withText']=!0x0,_0xac4780['icon']=_0x36e40e['icon'],_0xac4780['bind']('label')['to'](_0x174058,'isImageSelected',_0x40319e=>_(_0x2e132c,_0x36e40e['type'],_0x40319e?'Replace':'Insert')['text']),_0xac4780;});}['_createMenuBarButtons'](_0x43244e){return _0x43244e['map'](_0x36fe63=>{const _0x1a6094=this['_createButton'](_0x194f88,_0x36fe63['type']);return _0x1a6094['icon']=_0x36fe63['icon'],_0x1a6094['label']=_0x36fe63['shortText'],_0x1a6094;});}}class F extends _0x3ac5a1{['focusTracker'];['focusCycler'];constructor(_0x56b7bf){super(_0x56b7bf),this['focusTracker']=new _0x34a38c(),this['focusCycler']=new _0x4aa2de({'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(_0x510a5c,_0x45168c){super(_0x510a5c),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-'+_0x45168c}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x303aea,_0x445beb){const _0x19f42e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1e09a7=>_0x1e09a7<=_0x445beb)['map'](_0x1776a5=>_0x303aea['replace'](/\/$/,'')+'/-/resize/'+_0x1776a5+'x/\x20'+_0x1776a5+'w');return{'imageFallbackUrl':_0x303aea,'imageSources':[{'srcset':_0x19f42e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x445beb+'px)\x20100vw,\x20'+_0x445beb+'px','type':'image/webp'}]};}function S(_0x3598f2,_0xf16784,_0x1fc3eb){const _0x27b265=_0x3598f2['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x27b265?parseInt(_0x27b265[0x1],0xa):_0xf16784,'height':_0x27b265?parseInt(_0x27b265[0x2],0xa):_0x1fc3eb};}function p(_0x5ee30e,_0x2e37cf){const _0x556989=new(_0x18c5d3())(),_0x2622e3=_0x5ee30e['plugins']['get']('ImageUtils'),_0xb4b33f=_0x5ee30e['editing']['mapper']['toViewElement'](_0x2e37cf),_0x230a81=_0x2622e3['findViewImgElement'](_0xb4b33f),_0x59ca56=_0x5ee30e['editing']['view']['domConverter']['viewToDom'](_0x230a81),_0x23c91a=_0x2e37cf['getAttribute']('width'),_0x53250b=_0x2e37cf['getAttribute']('height'),_0x33c9ee='image-processing';_0x5ee30e['editing']['view']['change'](_0x4084c1=>{_0x4084c1['addClass'](_0x33c9ee,_0xb4b33f),_0x4084c1['setStyle']('aspect-ratio',_0x23c91a+'/'+_0x53250b,_0x230a81);}),_0x556989['listenTo'](_0x59ca56,'load',()=>{_0x556989['stopListening'](_0x59ca56,'load'),_0x5ee30e['editing']['view']['change'](_0x567302=>{_0x567302['removeClass'](_0x33c9ee,_0xb4b33f),_0x567302['removeStyle']('aspect-ratio',_0x230a81);});});}function G(_0x2cb499){if(Array['isArray'](_0x2cb499)){const _0x4733c9=_0x2cb499['map'](G);return _0x4c446b=>_0x4733c9['some'](_0x6b3f1d=>_0x6b3f1d(_0x4c446b));}if('origin'==_0x2cb499){const _0x4d3d39=_0x578c48['window']['location']['origin'];return _0x1241db=>new URL(_0x1241db,_0x578c48['document']['baseURI'])['origin']==_0x4d3d39;}return'function'==typeof _0x2cb499?_0x2cb499:_0x2cb499 instanceof RegExp?_0x2cc830=>!(!_0x2cc830['match'](_0x2cb499)&&!_0x2cc830['replace'](/^https?:\/\//,'')['match'](_0x2cb499)):()=>!0x1;}function A(_0x25920b,_0x4a46d1){return _0x6dfb64(_0x25920b['target'])['includes'](_0x4a46d1);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3a4d80(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5eca26,_0x150e5c,_0x115d2f){super(),this['_editor']=_0x5eca26,this['_editing']=_0x150e5c,this['_dialog']=_0x5eca26['plugins']['get'](_0x5c5bbd),this['_api']=_0x150e5c['ctxElement']['getAPI'](),this['_type']=_0x115d2f,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:_0x55b521,model:_0x1696ec}=this['_editor'],_0x2894f7=_0x1696ec['document']['selection']['getSelectedElement'](),_0x2aa976=_0x2894f7&&(_0x2894f7['is']('element','imageBlock')||_0x2894f7['is']('element','imageInline'));this['_formView']=new x(_0x55b521,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x49f1fb,'title':_(_0x55b521,this['_type'],_0x2aa976?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x56a80f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2ce253=>!A(_0x2ce253,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3d9532}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x253deb=>{const _0x2da16f=_0x3d9532['length'];for(const _0x465273 of _0x3d9532){const _0x7c5db3=_0x465273===_0x3d9532[_0x2da16f-0x1],{cdnUrl:_0x5d2421,fileInfo:_0x30eb3f}=_0x465273;if(!_0x5d2421||!_0x30eb3f)continue;const {width:_0x3c1ad9,height:_0x5e1996}=_0x30eb3f['imageInfo'],_0x9a7558=S(_0x5d2421,_0x3c1ad9,_0x5e1996),_0x2689c0=C(_0x5d2421,_0x9a7558['width']),_0x4fdb9b={'id':_0x30eb3f['uuid'],'type':'image','attributes':{'imageDimension':_0x9a7558,..._0x2689c0}};this['_insertAsset'](_0x4fdb9b,_0x7c5db3,_0x253deb);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x474c6b=>{'idle'===_0x474c6b['detail']['status']&&!_0x474c6b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x583381,_0x117827,_0x5b564d){const _0x4e2755=this['_editor']['model']['document']['selection'],_0xfb6c8e=_0x4e2755['getSelectedElement'](),_0x23a0e3=!(!_0xfb6c8e||!_0xfb6c8e['is']('element','imageInline'));_0x5b564d['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x583381,_0x23a0e3),_0x117827||_0x5b564d['setSelection'](_0x4e2755['getLastPosition']());}['_insertImage'](_0x50e94d,_0xa325e7){const _0x16a304=this['_editor'],{imageDimension:_0x20a80c,imageFallbackUrl:_0x5158f2,imageSources:_0x437ecc}=_0x50e94d['attributes'];_0x16a304['execute']('insertImage',{'imageType':_0xa325e7?'imageInline':null,'source':{'uploadcareImageId':_0x50e94d['id'],'src':_0x5158f2,'sources':_0x437ecc,..._0x20a80c}});}}class w extends _0x3fdc80{['_editing'];['_controller']=null;static get['requires'](){return[_0x5c5bbd,o];}constructor(_0x2e0190){super(_0x2e0190),this['_editing']=_0x2e0190['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x228551){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x228551);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x285dd2,..._0x411590}){return _0x2c0bec(_0x285dd2,_0x411590);}static['getInfo'](_0x5c1c90,_0x34c53f){return _0x58cd99(_0x5c1c90,_0x34c53f);}}class f extends _0x2aa699{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xb3e91b,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5d65aa=this['editor'];if(!!!_0x5d65aa['config']['get']('uploadcare'))return;_0x5d65aa['plugins']['get'](_0xb3e91b)['createUploadAdapter']=_0x5af586=>new k(_0x5af586,_0x5d65aa),_0x5d65aa['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x255b28,{imageElement:_0x48d84e,data:_0x419f26})=>{_0x5d65aa['model']['change'](_0x39c3c0=>{_0x39c3c0['setAttribute']('uploadcareImageId',_0x419f26['uploadcareImageId'],_0x48d84e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4ca6c8,_0xef60ff){this['loader']=_0x4ca6c8,this['editor']=_0xef60ff,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x21a174=await this['loader']['file'];return j['upload']({'file':_0x21a174,'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':_0x37d2f1=>{_0x37d2f1&&_0x37d2f1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x37d2f1['value']);}})['then'](async _0x78882d=>{const {imageFallbackUrl:_0x44fa17,imageSources:_0x5d4c44}=C(_0x78882d['cdnUrl'],_0x78882d['imageInfo']['width']);return{'uploadcareImageId':_0x78882d['uuid'],'default':_0x44fa17,'sources':_0x5d4c44};})['catch'](()=>{const _0x2ea058=t('Cannot\x20upload\x20file:')+('\x20'+_0x21a174['name']+'.');return Promise['reject'](_0x2ea058);});}['abort'](){this['controller']['abort']();}}class o extends _0x2aa699{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x5c5bbd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x30e69d){super(_0x30e69d),this['ucContextId']=_0x3ef480();}['init'](){const _0x4108be=this['editor'];_0x4108be['commands']['add']('uploadcare',new w(_0x4108be));}['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 _0x195c4d=_0x578c48['document']['querySelector']('input[uploadcare-file-input]');_0x195c4d&&_0x195c4d['remove']();}),async function(_0xaad78e){const _0x42a3d8=_0x327443([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]),_0x48c88b=0x3d8d0df,_0x16e5ea=0x3dfa42f^_0x48c88b,_0x56ca5c=window[_0x327443([0x44,0x61,0x74,0x65])][_0x327443([0x6e,0x6f,0x77])](),_0x55ee9a=_0xaad78e[_0x327443([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x324f1e=new window[(_0x327443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5427d7=>{_0x55ee9a[_0x327443([0x6f,0x6e,0x63,0x65])](_0x327443([0x72,0x65,0x61,0x64,0x79]),_0x5427d7);}),_0x2beaaf={[_0x327443([0x6b,0x74,0x79])]:_0x327443([0x45,0x43]),[_0x327443([0x75,0x73,0x65])]:_0x327443([0x73,0x69,0x67]),[_0x327443([0x63,0x72,0x76])]:_0x327443([0x50,0x2d,0x32,0x35,0x36]),[_0x327443([0x78])]:_0x327443([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]),[_0x327443([0x79])]:_0x327443([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]),[_0x327443([0x61,0x6c,0x67])]:_0x327443([0x45,0x53,0x32,0x35,0x36])},_0x55e535=_0x55ee9a[_0x327443([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x327443([0x67,0x65,0x74])](_0x327443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x51ab72(){let _0x3e507e,_0x3a04c7=null,_0x160bdc=null;try{if(_0x55e535==_0x327443([0x47,0x50,0x4c]))return _0x327443([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e507e=_0xc49e6(),!_0x3e507e)return _0x327443([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e507e[_0x327443([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x160bdc=_0x363a1e(_0x3e507e[_0x327443([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e507e[_0x327443([0x6a,0x74,0x69])])),await _0x3d597b()?_0xce5e15()?_0x550634()?_0x327443([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x210545()?(_0x3e507e[_0x327443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x327443([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a04c7=_0x37982a(_0x327443([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e507e[_0x327443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x327443([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a04c7=_0x37982a(_0x327443([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x240434()):_0x327443([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x327443([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x327443([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x327443([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x550634(){const _0x3896da=[_0x327443([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x327443([0x74,0x72,0x69,0x61,0x6c])][_0x327443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e507e[_0x327443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56ca5c/0x3e8:0xe10*_0x16e5ea;return _0x3e507e[_0x327443([0x65,0x78,0x70])]<_0x3896da;}function _0xce5e15(){const _0x5659ae=_0x3e507e[_0x327443([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5659ae&&(!!_0x5659ae[_0x327443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x327443([0x2a]))||!!_0x5659ae[_0x327443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x327443([0x55,0x50,0x4c,0x43])));}function _0x210545(){const _0x3a1b3a=_0x3e507e[_0x327443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a1b3a||0x0==_0x3a1b3a[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xbe472a}=new URL(window[_0x327443([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3a1b3a[_0x327443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbe472a))return!0x0;const _0x561316=_0xbe472a[_0x327443([0x73,0x70,0x6c,0x69,0x74])](_0x327443([0x2e]));return _0x3a1b3a[_0x327443([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48cf0e=>_0x48cf0e[_0x327443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x327443([0x2a])))[_0x327443([0x6d,0x61,0x70])](_0x3aaf1b=>_0x3aaf1b[_0x327443([0x73,0x70,0x6c,0x69,0x74])](_0x327443([0x2e])))[_0x327443([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d3fb0=>_0x3d3fb0[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x561316[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x327443([0x6d,0x61,0x70])](_0x293dc6=>Array(_0x561316[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x293dc6[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x327443([0x66,0x69,0x6c,0x6c])](_0x293dc6[0x0]===_0x327443([0x2a])?_0x327443([0x2a]):'')[_0x327443([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x293dc6))[_0x327443([0x73,0x6f,0x6d,0x65])](_0x5d2cd6=>_0x561316[_0x327443([0x65,0x76,0x65,0x72,0x79])]((_0x2055f8,_0x615b73)=>_0x5d2cd6[_0x615b73]===_0x2055f8||_0x5d2cd6[_0x615b73]===_0x327443([0x2a])));}function _0x240434(){return _0x3a04c7&&_0x160bdc?new window[(_0x327443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa25047,_0x4b6f22)=>{_0x3a04c7[_0x327443([0x74,0x68,0x65,0x6e])](_0xa25047,_0x4b6f22),_0x160bdc[_0x327443([0x74,0x68,0x65,0x6e])](_0x18b576=>{_0x18b576!=_0x327443([0x56,0x61,0x6c,0x69,0x64])&&_0xa25047(_0x18b576);},_0x4b6f22);}):_0x3a04c7||_0x160bdc||_0x327443([0x56,0x61,0x6c,0x69,0x64]);}}function _0x363a1e(_0x2447d7,_0x2332f8){return new window[(_0x327443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ec7cd=>{if(_0x3e18a6())return _0x3ec7cd(_0x327443([0x56,0x61,0x6c,0x69,0x64]));_0x4c879b(),_0x55ee9a[_0x327443([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x327443([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5cc117=!0x1;const _0x57b8e8=_0x3ef480();function _0x10767c(_0x59527f){return!!_0x59527f&&(typeof _0x59527f===_0x327443([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x59527f===_0x327443([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x59527f[_0x327443([0x74,0x68,0x65,0x6e])]===_0x327443([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x59527f[_0x327443([0x63,0x61,0x74,0x63,0x68])]===_0x327443([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2cc882(_0x8297f){_0x8e6338(_0x8297f)[_0x327443([0x74,0x68,0x65,0x6e])](_0x4d8df9=>{if(!_0x4d8df9||_0x4d8df9[_0x327443([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x327443([0x6f,0x6b]))return _0x327443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x52cb51(_0x391cf1(_0x57b8e8+_0x2332f8))!=_0x4d8df9[_0x327443([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x327443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x327443([0x56,0x61,0x6c,0x69,0x64]);})[_0x327443([0x74,0x68,0x65,0x6e])](_0x187c80=>(_0x3a3e88(),_0x187c80),()=>{const _0x5c8028=_0x3b4d52();return null==_0x5c8028?(_0x3a3e88(),_0x327443([0x56,0x61,0x6c,0x69,0x64])):_0x327443(_0x56ca5c-_0x5c8028>(0x27d454df^_0x48c88b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x327443([0x74,0x68,0x65,0x6e])](_0x3ec7cd)[_0x327443([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ec7cd(_0x327443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b5154=0x3ee3e5f^_0x48c88b;function _0x3a3e88(){const _0x490e00=_0x327443([0x6c,0x6c,0x63,0x74,0x2d])+_0x52cb51(_0x391cf1(_0x2447d7)),_0x56f37d=_0x5e06f8(_0x52cb51(window[_0x327443([0x4d,0x61,0x74,0x68])][_0x327443([0x63,0x65,0x69,0x6c])](_0x56ca5c/_0x5b5154)));window[_0x327443([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x327443([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x490e00,_0x56f37d);}function _0x3b4d52(){const _0xa13b8a=_0x327443([0x6c,0x6c,0x63,0x74,0x2d])+_0x52cb51(_0x391cf1(_0x2447d7)),_0x2e27b3=window[_0x327443([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x327443([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa13b8a);return _0x2e27b3?window[_0x327443([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e06f8(_0x2e27b3),0x10)*_0x5b5154:null;}function _0x8e6338(_0x155dd3){return new window[(_0x327443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x312b82,_0x369357)=>{_0x155dd3[_0x327443([0x74,0x68,0x65,0x6e])](_0x312b82,_0x369357),window[_0x327443([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x369357,0x3d9041f^_0x48c88b);});}}_0x55ee9a[_0x327443([0x6f,0x6e])](_0x327443([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15b15f,_0x3f3bac)=>{if(_0x3f3bac[0x0]!=_0x2447d7)return _0x3ec7cd(_0x327443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3f3bac[0x1]={..._0x3f3bac[0x1],[_0x327443([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x57b8e8};},{[_0x327443([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x327443([0x68,0x69,0x67,0x68])}),_0x55ee9a[_0x327443([0x6f,0x6e])](_0x327443([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x25c5f6=>{_0x10767c(_0x25c5f6[_0x327443([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5cc117=!0x0,_0x2cc882(_0x25c5f6[_0x327443([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x327443([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x327443([0x6c,0x6f,0x77])}),_0x324f1e[_0x327443([0x74,0x68,0x65,0x6e])](()=>{_0x5cc117||_0x3ec7cd(_0x327443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e18a6(){return _0x55ee9a[_0x327443([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x327443([0x76,0x69,0x65,0x77])][_0x327443([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x327443([0x61,0x75,0x74,0x6f]);}function _0x4c879b(){_0x55ee9a[_0x327443([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x327443([0x76,0x69,0x65,0x77])][_0x327443([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x327443([0x61,0x75,0x74,0x6f]);}}function _0x37982a(_0x55ece3){const _0x4ec9ed=[new window[(_0x327443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x88d64d=>setTimeout(_0x88d64d,0x3d1ee13^_0x48c88b)),_0x324f1e[_0x327443([0x74,0x68,0x65,0x6e])](()=>new window[(_0x327443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44976e=>{let _0x34f6bd=0x0;_0x55ee9a[_0x327443([0x6d,0x6f,0x64,0x65,0x6c])][_0x327443([0x6f,0x6e])](_0x327443([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b6b85,_0x15e225)=>{_0x15e225[0x0][_0x327443([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x34f6bd++,_0x34f6bd==(0x3d8d127^_0x48c88b)&&(_0x44976e(),_0x2b6b85[_0x327443([0x6f,0x66,0x66])]());});}))];return window[_0x327443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x327443([0x72,0x61,0x63,0x65])](_0x4ec9ed)[_0x327443([0x74,0x68,0x65,0x6e])](()=>_0x55ece3);}async function _0xb66c80(){await _0x324f1e,_0x55ee9a[_0x327443([0x6d,0x6f,0x64,0x65,0x6c])][_0x327443([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1caf1d,_0x55ee9a[_0x327443([0x6d,0x6f,0x64,0x65,0x6c])][_0x327443([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1caf1d,_0x55ee9a[_0x327443([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x327443([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x22e1ac(_0x5e887f){const _0xe3e125=_0x5bfad0();_0x55ee9a[_0xe3e125]=_0x327443([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e887f,_0x5e887f!=_0x327443([0x56,0x61,0x6c,0x69,0x64])&&_0xb66c80();}function _0x5bfad0(){const _0x175cef=window[_0x327443([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x327443([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x327443([0x6e,0x6f,0x77])]())[_0x327443([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x327443([0x2e]),'');let _0x3ad0d7=_0x327443([0x52]);for(let _0x53280d=0x0;_0x53280d<_0x175cef[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53280d+=0x2){let _0x56581e=window[_0x327443([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x175cef[_0x327443([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53280d,_0x53280d+0x2));_0x56581e>=_0x42a3d8[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56581e-=_0x42a3d8[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ad0d7+=_0x42a3d8[_0x56581e];}return _0x3ad0d7;}function _0xc49e6(){const _0x3942f7=_0x55e535[_0x327443([0x73,0x70,0x6c,0x69,0x74])](_0x327443([0x2e]));if(0x3!=_0x3942f7[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5f15d7(_0x3942f7[0x1]);function _0x5f15d7(_0x564736){const _0x445feb=_0x3b68e4(_0x564736);return _0x445feb&&_0x57777d()?_0x445feb:null;function _0x57777d(){const _0x4e3bb2=_0x445feb[_0x327443([0x6a,0x74,0x69])],_0x403623=window[_0x327443([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e3bb2[_0x327443([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e3bb2[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x105b12={..._0x445feb,[_0x327443([0x6a,0x74,0x69])]:_0x4e3bb2[_0x327443([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e3bb2[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x105b12[_0x327443([0x76,0x63])],_0x391cf1(_0x105b12)==_0x403623;}}}async function _0x3d597b(){let _0x560e46=!0x0;try{const _0x4eb9e6=_0x55e535[_0x327443([0x73,0x70,0x6c,0x69,0x74])](_0x327443([0x2e])),[_0x2f8064,_0x10c287,_0x254eac]=_0x4eb9e6;return _0x53e630(_0x2f8064),await _0x551db3(_0x2f8064,_0x10c287,_0x254eac),_0x560e46;}catch{return!0x1;}function _0x53e630(_0x36ae0b){const _0x5ae363=_0x3b68e4(_0x36ae0b);_0x5ae363&&_0x5ae363[_0x327443([0x61,0x6c,0x67])]==_0x327443([0x45,0x53,0x32,0x35,0x36])||(_0x560e46=!0x1);}async function _0x551db3(_0x55d578,_0x3f9da6,_0x51ccdc){const _0x417f17=window[_0x327443([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x327443([0x66,0x72,0x6f,0x6d])](_0x28ed04(_0x51ccdc),_0x2a93f0=>_0x2a93f0[_0x327443([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1536dc=new window[(_0x327443([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x327443([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55d578+_0x327443([0x2e])+_0x3f9da6),_0x59a0a4=window[_0x327443([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x327443([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x59a0a4)return;const _0x3a0055=await _0x59a0a4[_0x327443([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x327443([0x6a,0x77,0x6b]),_0x2beaaf,{[_0x327443([0x6e,0x61,0x6d,0x65])]:_0x327443([0x45,0x43,0x44,0x53,0x41]),[_0x327443([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x327443([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x327443([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x59a0a4[_0x327443([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x327443([0x6e,0x61,0x6d,0x65])]:_0x327443([0x45,0x43,0x44,0x53,0x41]),[_0x327443([0x68,0x61,0x73,0x68])]:{[_0x327443([0x6e,0x61,0x6d,0x65])]:_0x327443([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a0055,_0x417f17,_0x1536dc)||(_0x560e46=!0x1);}}function _0x3b68e4(_0x4159be){return _0x4159be[_0x327443([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x327443([0x65,0x79]))?JSON[_0x327443([0x70,0x61,0x72,0x73,0x65])](_0x28ed04(_0x4159be)):null;}function _0x28ed04(_0x2c304d){return window[_0x327443([0x61,0x74,0x6f,0x62])](_0x2c304d[_0x327443([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x327443([0x2b]))[_0x327443([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x327443([0x2f])));}function _0x391cf1(_0x14d045){let _0x1ffff1=0x1505;function _0x534d30(_0x48fa22){for(let _0xdda9ef=0x0;_0xdda9ef<_0x48fa22[_0x327443([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdda9ef++){const _0x14241f=_0x48fa22[_0x327443([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xdda9ef);_0x1ffff1=(_0x1ffff1<<0x5)+_0x1ffff1+_0x14241f,_0x1ffff1&=_0x1ffff1;}}function _0x200c48(_0x2b5887){Array[_0x327443([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b5887)?_0x2b5887[_0x327443([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x200c48):_0x2b5887&&typeof _0x2b5887==_0x327443([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x327443([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b5887)[_0x327443([0x73,0x6f,0x72,0x74])]()[_0x327443([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x92c5b7,_0x55409d])=>{_0x534d30(_0x92c5b7),_0x200c48(_0x55409d);}):_0x534d30(window[_0x327443([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b5887));}return _0x200c48(_0x14d045),_0x1ffff1>>>0x0;}function _0x52cb51(_0x235c2e){return _0x235c2e[_0x327443([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x327443([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x327443([0x30]));}function _0x5e06f8(_0x55bfc0){return _0x55bfc0[_0x327443([0x73,0x70,0x6c,0x69,0x74])]('')[_0x327443([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x327443([0x6a,0x6f,0x69,0x6e])]('');}function _0x1caf1d(){}function _0x327443(_0x48de42){return _0x48de42['map'](_0x1b0a44=>String['fromCharCode'](_0x1b0a44))['join']('');}_0x22e1ac(await _0x51ab72());}(this);}['_initSchema'](){const _0x4e86a7=this['editor']['model']['schema'];_0x4e86a7['isRegistered']('imageBlock')&&_0x4e86a7['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4e86a7['isRegistered']('imageInline')&&_0x4e86a7['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x152f76=this['editor'];_0x152f76['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x152f76['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5dda18=>_0x5dda18['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xa78628=_0x152f76['commands']['get']('replaceImageSource');_0xa78628&&this['listenTo'](_0xa78628,'cleanupImage',(_0x5ebea8,[_0x262c63,_0x4e7f9f])=>{_0x262c63['removeAttribute']('uploadcareImageId',_0x4e7f9f);});}['_initConfig'](){const _0x1333ad=this['editor']['config']['get']('uploadcare.uploader')||{},_0x8cdaac=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x88f93b(_0x578c48['document'],'uc-config',{..._0x1333ad,'pubkey':_0x8cdaac,'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']=_0x464644=>{if('closeMax'==_0x464644)return'#uc-icon-arrow-down';},_0x578c48['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x88f93b(_0x578c48['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x578c48['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x33316c=this['editor']['commands']['get']('insertImage');_0x33316c&&this['listenTo'](_0x33316c,'execute',()=>{const _0x1ef99c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1ef99c&&_0x1ef99c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1ef99c);});});const _0x38c66f=this['editor']['commands']['get']('uploadcareImageReplace');_0x38c66f&&this['listenTo'](_0x38c66f,'execute',()=>{const _0x3d592d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3d592d&&_0x3d592d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3d592d);});});}}class tt extends _0x2aa699{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20b43d){super(_0x20b43d),_0x20b43d['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3f147d['defineComponents'](_0x3f147d);}}class ii extends _0x3ac5a1{constructor(_0x2309b8){super(_0x2309b8);const t=_0x2309b8['t'],_0x1844ac=this['bindTemplate'],_0x3e796f=new _0x1190d8();_0x3e796f['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':[_0x3e796f,{'text':_0x1844ac['to']('imageUploadProgress',_0x139fac=>t('Loading\x20image...')+'\x20('+(_0x139fac||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 _0x3ac5a1{constructor(_0x91d0c0){super(_0x91d0c0);const t=_0x91d0c0['t'];this['set']('errorType',null);const _0x33efd1=new _0x1d4c82(_0x91d0c0);_0x33efd1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x33efd1['withText']=!0x0,_0x33efd1['class']='ck-button-action',_0x33efd1['on']('execute',()=>{this['fire']('retry');}),_0x33efd1['bind']('isVisible')['to'](this,'errorType',_0x559dc0=>'NotFound'!==_0x559dc0);const _0x3efdb0=new _0x3da4cd();_0x3efdb0['content']=_0x1c947e,_0x3efdb0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4c3a82=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':[_0x3efdb0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4c3a82['to']('errorType',_0x181590=>t('NotFound'!==_0x181590?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x33efd1]},{'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 _0x3ac5a1{constructor(_0x317b35,_0x5f8f4d){super(_0x317b35);const _0xc66aec=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5f8f4d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xc66aec['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xaa0039,_0x2ea23e,_0x484e25){super(_0xaa0039),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xaa0039),this['_errorView']=new ti(_0xaa0039),this['_editingView']=new ei(_0xaa0039,_0x484e25),this['_focusableView']=new _0x3ac5a1(_0xaa0039),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2ea23e),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'],_0xa0c1eb=>{this['_addUploadcareImageEditorListeners'](_0xa0c1eb);});}),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'](_0x158dbe,_0x590938){const _0x336103='uc-cloud-image-editor',_0x50be4f=_0x158dbe['querySelector'](_0x336103);if(_0x50be4f)return _0x590938(_0x50be4f);const _0x1e60b4=new MutationObserver(_0x5d4399=>{const _0x1a8447=_0x5d4399['filter'](_0x58b88a=>_0x58b88a['target']===_0x158dbe&&_0x58b88a['addedNodes']['length']>0x0&&_0x58b88a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x336103);_0x1a8447['length']&&(_0x1e60b4['disconnect'](),_0x590938(_0x1a8447[0x0]['addedNodes'][0x0]));});_0x1e60b4['observe'](_0x158dbe,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x464a49){_0x464a49['addEventListener']('apply',_0x201481=>{this['fire']('apply',{'imageSrc':_0x201481['detail']['cdnUrl']});}),_0x464a49['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3a4d80(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5cc185,_0x55d531,_0x3ae9ab){super(),this['_editor']=_0x5cc185,this['_dialog']=_0x55d531,this['_imageElement']=_0x3ae9ab,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 _0x45bb5b=this['_imageElement'],_0x82361b=_0x45bb5b['getAttribute']('uploadcareImageId'),_0x7e94f4=_0x45bb5b['getAttribute']('src');if(_0x82361b)await this['_loadImageInfo'](_0x82361b,_0x7e94f4);else{if(this['_imageCache']['has'](_0x7e94f4)){const _0x2f4bf3=this['_imageCache']['get'](_0x7e94f4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2f4bf3['url'],this['imageDimension']=_0x2f4bf3['dimension'],this['imageId']=_0x2f4bf3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x10dc32}=this['_editor'],t=_0x10dc32['t'],_0x56ba30=new X(_0x10dc32,this['imageStatus'],this['_attributes']);_0x56ba30['bind']('status')['to'](this,'imageStatus'),_0x56ba30['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x56ba30['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x56ba30['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x56ba30,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2153b2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x56ba30,'position':_0x56a80f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x56ba30['focus']();},'onHide':()=>{_0x56ba30['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x424530=>!A(_0x424530,_0x56ba30['element'])}});}['_loadImageInfo'](_0x31edfd,_0xbe50e9){return j['getInfo'](_0x31edfd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2abe83=>{const {width:_0x81d2d4,height:_0x471242}=_0x2abe83['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xbe50e9,this['imageDimension']={'width':_0x81d2d4,'height':_0x471242},this['imageId']=_0x31edfd;})['catch'](_0x36e4f5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x36e4f5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x482206,_0x2c031f){return this['_getImageAsFile'](_0x482206)['then'](_0x4ed43c=>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':_0x2c031f['signal'],'file':_0x4ed43c,'onProgress':_0x1c97c0=>{_0x1c97c0&&_0x1c97c0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1c97c0['value']));}}))['then'](_0x2c974e=>{const {width:_0x36fe50,height:_0x2919a5}=_0x2c974e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2c974e['cdnUrl'],this['imageDimension']={'width':_0x36fe50,'height':_0x2919a5},this['imageId']=_0x2c974e['uuid'],this['imageUploadProgress']=null;const _0x4f5533=_0x482206['getAttribute']('src');this['_imageCache']['set'](_0x4f5533,{'id':_0x2c974e['uuid'],'url':_0x2c974e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1918fe=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1918fe['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x14d799,_0x89e6f9){_0x14d799['on']('apply',(_0x2d0428,_0x47a130)=>{this['_replaceImage'](_0x89e6f9,_0x47a130['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x14d799['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x14d799['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1abd2e,_0x5958ac,_0x238962){const _0x660cc2=this['_editor'],{width:_0x4958c3,height:_0x42a214}=S(_0x5958ac,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x58c5d6,imageSources:_0x22e46b}=C(_0x5958ac,_0x4958c3);_0x660cc2['model']['change'](_0x1921e7=>{if('$graveyard'===_0x1abd2e['root']['rootName']){_0x660cc2['execute']('insertImage',{'imageType':_0x1abd2e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1abd2e['getAttributes']()),'uploadcareImageId':_0x238962,'src':_0x58c5d6,'sources':_0x22e46b,'width':_0x4958c3,'height':_0x42a214}});const _0x53b06a=_0x1abd2e['getChildren']();_0x1abd2e=_0x660cc2['model']['document']['selection']['getSelectedElement']();for(const _0x3800ea of _0x53b06a)_0x1921e7['append'](_0x1921e7['cloneElement'](_0x3800ea),_0x1abd2e);}else _0x1921e7['setSelection'](_0x1abd2e,'on'),_0x660cc2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1abd2e['getAttributes']()),'uploadcareImageId':_0x238962,'src':_0x58c5d6,'sources':_0x22e46b,'width':_0x4958c3,'height':_0x42a214},_0x1abd2e);_0x1921e7['setSelection'](_0x1abd2e,'on');});}async['_getImageAsFile'](_0x41ac85){const _0x5e7234=_0x578c48['window'],_0x4c181d=_0x578c48['document']['location']['href'],_0x6959af=new _0x5e7234['URL'](_0x41ac85['getAttribute']('src'),_0x4c181d);if('data:'===_0x6959af['protocol']){const _0x171ca9=_0x6959af['href']['split'](','),_0x446d8d=_0x171ca9[0x0]['match'](/:(.*?);/)[0x1],_0xf7b571=_0x446d8d['split']('/')[0x1],_0x1d372f=_0x5e7234['atob'](_0x171ca9[_0x171ca9['length']-0x1]);let _0x484225=_0x1d372f['length'];const _0x54c5ac=new _0x5e7234['Uint8Array'](_0x484225);for(;_0x484225--;)_0x54c5ac[_0x484225]=_0x1d372f['charCodeAt'](_0x484225);return new _0x5e7234['File']([_0x54c5ac],'image.'+_0xf7b571,{'type':_0x446d8d});}const _0x24f53c=_0x6959af['href']['split']('/'),_0x36f212=_0x24f53c[_0x24f53c['length']-0x1],_0x2f7280=_0x36f212['split']('.')[0x1];return _0x5e7234['fetch'](_0x6959af['href'])['then'](_0xae7144=>_0xae7144['clone']()['blob']())['then'](_0x3baba0=>new _0x5e7234['File']([_0x3baba0],_0x36f212,{'type':'image/'+_0x2f7280}));}}class O extends _0x3fdc80{['imageEditController'];static get['requires'](){return[_0x5c5bbd];}['_isEditable'];constructor(_0x2481b5){super(_0x2481b5),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1c5a95){const _0x4da9b0=G(_0x1c5a95);return _0x2b0ea9=>!(!_0x2b0ea9||!_0x2b0ea9['is']('element','imageBlock')&&!_0x2b0ea9['is']('element','imageInline'))&&(!!_0x2b0ea9['hasAttribute']('uploadcareImageId')||!!_0x2b0ea9['hasAttribute']('src')&&_0x4da9b0(_0x2b0ea9['getAttribute']('src')));}(_0x2481b5['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x560113=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x560113);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x42e4e8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x42e4e8&&(_0x42e4e8['is']('element','imageBlock')||_0x42e4e8['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x5c5bbd),_0x42e4e8),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3fdc80{['refresh'](){const _0x4ed54d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4ed54d&&(_0x4ed54d['is']('element','imageBlock')||_0x4ed54d['is']('element','imageInline')));}['execute'](_0x569602){const _0x38ab93=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x211354=>{_0x211354['setAttributes'](_0x569602,_0x38ab93),_0x211354['removeAttribute']('srcset',_0x38ab93),_0x211354['removeAttribute']('sizes',_0x38ab93);});}}class m extends _0x2aa699{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4efee3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x204a93}=this;_0x204a93['commands']['add']('uploadcareImageEdit',new O(_0x204a93)),_0x204a93['commands']['add']('uploadcareImageReplace',new R(_0x204a93));}}class g extends _0x2aa699{['_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 _0x79e536=this['editor'];_0x79e536['ui']['componentFactory']['add']('uploadcareImageEdit',_0x30ee2d=>{const _0x39a6f2=_0x79e536['commands']['get']('uploadcareImageEdit'),_0x3a9f34=new _0x1d4c82(_0x30ee2d),t=_0x30ee2d['t'];return _0x3a9f34['set']({'icon':_0x2153b2,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3a9f34['bind']('isEnabled')['to'](_0x39a6f2),_0x3a9f34['bind']('isOn')['to'](_0x39a6f2,'isActive'),this['listenTo'](_0x3a9f34,'execute',()=>{_0x79e536['execute']('uploadcareImageEdit'),_0x79e536['editing']['view']['focus']();}),_0x3a9f34;}),this['_initConfig']();}['_initConfig'](){const _0x3a1596=_0x88f93b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3a1596),this['listenTo'](this['editor'],'destroy',()=>{_0x3a1596['remove']();});}}class et extends _0x2aa699{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':_0x58a0fb=>0x1!=_0x58a0fb}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x46e206=>{const {af:{dictionary:_0x44ce98,getPluralForm:_0x27ee1c}}={'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':_0x2c4486=>0x1!=_0x2c4486}};_0x46e206['af']||={'dictionary':{},'getPluralForm':null},_0x46e206['af']['dictionary']=Object['assign'](_0x46e206['af']['dictionary'],_0x44ce98),_0x46e206['af']['getPluralForm']=_0x27ee1c;})(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':_0x1fa2b8=>0x0==_0x1fa2b8?0x0:0x1==_0x1fa2b8?0x1:0x2==_0x1fa2b8?0x2:_0x1fa2b8%0x64>=0x3&&_0x1fa2b8%0x64<=0xa?0x3:_0x1fa2b8%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1d4e03=>{const {ar:{dictionary:_0x48e2a0,getPluralForm:_0x43ca60}}={'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':_0x4aef14=>0x0==_0x4aef14?0x0:0x1==_0x4aef14?0x1:0x2==_0x4aef14?0x2:_0x4aef14%0x64>=0x3&&_0x4aef14%0x64<=0xa?0x3:_0x4aef14%0x64>=0xb?0x4:0x5}};_0x1d4e03['ar']||={'dictionary':{},'getPluralForm':null},_0x1d4e03['ar']['dictionary']=Object['assign'](_0x1d4e03['ar']['dictionary'],_0x48e2a0),_0x1d4e03['ar']['getPluralForm']=_0x43ca60;})(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':_0x4789c9=>0x1!=_0x4789c9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x22f77b=>{const {ast:{dictionary:_0x52875f,getPluralForm:_0x64d0dd}}={'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':_0x2c9ad9=>0x1!=_0x2c9ad9}};_0x22f77b['ast']||={'dictionary':{},'getPluralForm':null},_0x22f77b['ast']['dictionary']=Object['assign'](_0x22f77b['ast']['dictionary'],_0x52875f),_0x22f77b['ast']['getPluralForm']=_0x64d0dd;})(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':_0x1dcec6=>0x1!=_0x1dcec6}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xb1e9be=>{const {az:{dictionary:_0x4b8dd2,getPluralForm:_0x4eb925}}={'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':_0x51833b=>0x1!=_0x51833b}};_0xb1e9be['az']||={'dictionary':{},'getPluralForm':null},_0xb1e9be['az']['dictionary']=Object['assign'](_0xb1e9be['az']['dictionary'],_0x4b8dd2),_0xb1e9be['az']['getPluralForm']=_0x4eb925;})(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':_0x46cdcf=>_0x46cdcf%0xa==0x1&&_0x46cdcf%0x64!=0xb?0x0:_0x46cdcf%0xa>=0x2&&_0x46cdcf%0xa<=0x4&&(_0x46cdcf%0x64<0xa||_0x46cdcf%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x280705=>{const {be:{dictionary:_0x242cee,getPluralForm:_0x36bbbd}}={'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':_0xf629d5=>_0xf629d5%0xa==0x1&&_0xf629d5%0x64!=0xb?0x0:_0xf629d5%0xa>=0x2&&_0xf629d5%0xa<=0x4&&(_0xf629d5%0x64<0xa||_0xf629d5%0x64>=0x14)?0x1:0x2}};_0x280705['be']||={'dictionary':{},'getPluralForm':null},_0x280705['be']['dictionary']=Object['assign'](_0x280705['be']['dictionary'],_0x242cee),_0x280705['be']['getPluralForm']=_0x36bbbd;})(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':_0x15d427=>0x1!=_0x15d427}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1d696a=>{const {bg:{dictionary:_0x40be19,getPluralForm:_0x44789d}}={'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':_0x342ab4=>0x1!=_0x342ab4}};_0x1d696a['bg']||={'dictionary':{},'getPluralForm':null},_0x1d696a['bg']['dictionary']=Object['assign'](_0x1d696a['bg']['dictionary'],_0x40be19),_0x1d696a['bg']['getPluralForm']=_0x44789d;})(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':_0x14cc4b=>0x1!=_0x14cc4b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x379902=>{const {bn:{dictionary:_0x55e582,getPluralForm:_0x351faa}}={'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':_0x46be5b=>0x1!=_0x46be5b}};_0x379902['bn']||={'dictionary':{},'getPluralForm':null},_0x379902['bn']['dictionary']=Object['assign'](_0x379902['bn']['dictionary'],_0x55e582),_0x379902['bn']['getPluralForm']=_0x351faa;})(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':_0x25674=>_0x25674%0xa==0x1&&_0x25674%0x64!=0xb?0x0:_0x25674%0xa>=0x2&&_0x25674%0xa<=0x4&&(_0x25674%0x64<0xa||_0x25674%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x33ea96=>{const {bs:{dictionary:_0x22b32c,getPluralForm:_0x3e719b}}={'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':_0x1a91e6=>_0x1a91e6%0xa==0x1&&_0x1a91e6%0x64!=0xb?0x0:_0x1a91e6%0xa>=0x2&&_0x1a91e6%0xa<=0x4&&(_0x1a91e6%0x64<0xa||_0x1a91e6%0x64>=0x14)?0x1:0x2}};_0x33ea96['bs']||={'dictionary':{},'getPluralForm':null},_0x33ea96['bs']['dictionary']=Object['assign'](_0x33ea96['bs']['dictionary'],_0x22b32c),_0x33ea96['bs']['getPluralForm']=_0x3e719b;})(window['CKEDITOR_TRANSLATIONS']||={});
|