@ckeditor/ckeditor5-uploadcare 47.7.2 → 47.7.3
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 _0x255482,Command as _0x3c0480}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2d0ffa,IconGooglePhotos as _0x1fd628,IconGoogleDrive as _0x5deb37,IconFacebook as _0x20c02a,IconDropbox as _0x579233,IconUploadcareLink as _0x246722,IconUploadcareImageUpload as _0x4fae08,IconError as _0x4d52d3,IconUploadcareImageEdit as _0x4df171}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x47f1bc,MenuBarMenuListItemButtonView as _0x55db95,View as _0xbf8bdc,FocusCycler as _0x4af3ea,Dialog as _0x4a275e,DialogViewPosition as _0x45ce63,SpinnerView as _0x16704e,IconView as _0x3be545,Notification as _0x497dbb}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4b3fd8,DomEmitterMixin as _0xed2d6a,global as _0x26e9f1,getAncestors as _0x3171d0,ObservableMixin as _0x371542,uid as _0x3d2a50,createElement as _0x4f923f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3ee90c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xcb0f29,info as _0x2b89ec}from'@uploadcare/upload-client';import*as _0x393298 from'@uploadcare/file-uploader';var i=function(_0x46e6a6){return _0x46e6a6['Local']='local',_0x46e6a6['URL']='url',_0x46e6a6['Dropbox']='dropbox',_0x46e6a6['GDrive']='gdrive',_0x46e6a6['Facebook']='facebook',_0x46e6a6['GPhotos']='gphotos',_0x46e6a6['OneDrive']='onedrive',_0x46e6a6;}({});function _(_0x17f0a9,_0x27883e,_0x399956){const t=_0x17f0a9['t'],_0x3031a8=_0x17f0a9['t'];switch(_0x27883e){case i['Local']:return{'text':_0x3031a8('Insert'===_0x399956?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3031a8('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x399956?_0x3031a8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3031a8('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x399956?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x399956?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x399956?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x399956?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x399956?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x27883e;}}class e extends _0x255482{['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 _0x19dd3a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5ee6ad;for(const _0xea6092 in _0x19dd3a){const _0x4b029f=_0xea6092,_0x2027ac=_0x19dd3a[_0x4b029f];if('uploadcareLicenseKeyValid'==_0x2027ac||'uploadcareLicenseKeyInvalid'==_0x2027ac||'uploadcareLicenseKeyExpired'==_0x2027ac||'uploadcareLicenseKeyDomainLimit'==_0x2027ac||'uploadcareLicenseKeyNotAllowed'==_0x2027ac||'uploadcareLicenseKeyEvaluationLimit'==_0x2027ac||'uploadcareLicenseKeyUsageLimit'==_0x2027ac){delete _0x19dd3a[_0x4b029f],_0x5ee6ad=_0x2027ac,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5ee6ad&&_0x19dd3a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5ee6ad&&_0x19dd3a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5ee6ad&&_0x19dd3a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5ee6ad&&_0x19dd3a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5ee6ad&&_0x19dd3a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5ee6ad&&_0x19dd3a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x25f5a4}=this,_0x32ef0a=_0x25f5a4['commands']['get']('uploadcare');if(!_0x32ef0a)return;const _0x13aa0f=this['_normalizeConfigSourceList'](_0x25f5a4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x478c66,_0x1d4f77)=>{const _0x4881ed=this['_getIntegrationKey'](_0x1d4f77['type']);return _0x478c66[_0x4881ed]||(_0x478c66[_0x4881ed]=[]),_0x478c66[_0x4881ed]['push'](_0x1d4f77),_0x478c66;},{});_0x25f5a4['plugins']['has']('ImageInsertUI')&&_0x25f5a4['commands']['get']('uploadcare')&&Object['entries'](_0x13aa0f)['forEach'](([_0xb3c3b1,_0x12477b])=>{_0x25f5a4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xb3c3b1,'observable':()=>_0x32ef0a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x12477b),'formViewCreator':()=>this['_createDropdownButtons'](_0x12477b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x12477b),'override':'assetManager'!==_0xb3c3b1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1a9c6b){const {locale:_0x12cb7d}=this['editor'];return _0x1a9c6b['map'](_0xa2ffb9=>{const _0x544766=_(_0x12cb7d,_0xa2ffb9,'Insert');switch(_0xa2ffb9){case i['Local']:return{'icon':_0x4fae08,'type':i['Local'],..._0x544766};case i['URL']:return{'icon':_0x246722,'type':i['URL'],..._0x544766};case i['Dropbox']:return{'icon':_0x579233,'type':i['Dropbox'],..._0x544766};case i['Facebook']:return{'icon':_0x20c02a,'type':i['Facebook'],..._0x544766};case i['GDrive']:return{'icon':_0x5deb37,'type':i['GDrive'],..._0x544766};case i['GPhotos']:return{'icon':_0x1fd628,'type':i['GPhotos'],..._0x544766};case i['OneDrive']:return{'icon':_0x2d0ffa,'type':i['OneDrive'],..._0x544766};}});}['_getIntegrationKey'](_0x22335f){switch(_0x22335f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x27172e,_0x1c5b9b){const _0x383f19=this['editor'],_0x19bf73=new _0x27172e(_0x383f19['locale']),_0x1481c6=_0x383f19['commands']['get']('uploadcare');return _0x19bf73['bind']('isEnabled')['to'](_0x1481c6),_0x19bf73['on']('execute',()=>{_0x1481c6['execute'](_0x1c5b9b);}),_0x19bf73;}['_createToolbarButton'](_0x5cd697){const {locale:_0x229550}=this['editor'],_0x1245a4=this['editor']['plugins']['get']('ImageInsertUI'),_0x53b05f=_0x5cd697[0x0],_0x30a06d=this['_createButton'](_0x47f1bc,_0x53b05f['type']);return _0x30a06d['icon']=_0x53b05f['icon'],_0x30a06d['bind']('label')['to'](_0x1245a4,'isImageSelected',_0x407620=>_(_0x229550,_0x53b05f['type'],_0x407620?'Replace':'Insert')['text']),_0x30a06d['tooltip']=!0x0,_0x30a06d;}['_createDropdownButtons'](_0x45692b){const {locale:_0x2ef03d}=this['editor'],_0x5c0e3e=this['editor']['plugins']['get']('ImageInsertUI');return _0x45692b['map'](_0x5c5f6a=>{const _0x259ee3=this['_createButton'](_0x47f1bc,_0x5c5f6a['type']);return _0x259ee3['withText']=!0x0,_0x259ee3['icon']=_0x5c5f6a['icon'],_0x259ee3['bind']('label')['to'](_0x5c0e3e,'isImageSelected',_0x23c42b=>_(_0x2ef03d,_0x5c5f6a['type'],_0x23c42b?'Replace':'Insert')['text']),_0x259ee3;});}['_createMenuBarButtons'](_0x21686c){return _0x21686c['map'](_0x15506f=>{const _0x372738=this['_createButton'](_0x55db95,_0x15506f['type']);return _0x372738['icon']=_0x15506f['icon'],_0x372738['label']=_0x15506f['shortText'],_0x372738;});}}class F extends _0xbf8bdc{['focusTracker'];['focusCycler'];constructor(_0x2dd2cb){super(_0x2dd2cb),this['focusTracker']=new _0x4b3fd8(),this['focusCycler']=new _0x4af3ea({'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 H extends F{constructor(_0xfc7e08,_0x4e71b0){super(_0xfc7e08),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-'+_0x4e71b0}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function A(_0x288360,_0x137f1e){const _0x1421e9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x416988=>_0x416988<=_0x137f1e)['map'](_0x1ad994=>_0x288360['replace'](/\/$/,'')+'/-/resize/'+_0x1ad994+'x/\x20'+_0x1ad994+'w');return{'imageFallbackUrl':_0x288360,'imageSources':[{'srcset':_0x1421e9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x137f1e+'px)\x20100vw,\x20'+_0x137f1e+'px','type':'image/webp'}]};}function x(_0x346045,_0x3d6509,_0x2d8f5e){const _0x30e90f=_0x346045['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x30e90f?parseInt(_0x30e90f[0x1],0xa):_0x3d6509,'height':_0x30e90f?parseInt(_0x30e90f[0x2],0xa):_0x2d8f5e};}function p(_0x4375f1,_0x93e68d){const _0x475300=new(_0xed2d6a())(),_0x25a963=_0x4375f1['plugins']['get']('ImageUtils'),_0x20dea8=_0x4375f1['editing']['mapper']['toViewElement'](_0x93e68d),_0x16e964=_0x25a963['findViewImgElement'](_0x20dea8),_0x5f1ecb=_0x4375f1['editing']['view']['domConverter']['viewToDom'](_0x16e964),_0x329efe=_0x93e68d['getAttribute']('width'),_0x5d00fe=_0x93e68d['getAttribute']('height'),_0x6f074d='image-processing';_0x4375f1['editing']['view']['change'](_0x52190f=>{_0x52190f['addClass'](_0x6f074d,_0x20dea8),_0x52190f['setStyle']('aspect-ratio',_0x329efe+'/'+_0x5d00fe,_0x16e964);}),_0x475300['listenTo'](_0x5f1ecb,'load',()=>{_0x475300['stopListening'](_0x5f1ecb,'load'),_0x4375f1['editing']['view']['change'](_0x15e532=>{_0x15e532['removeClass'](_0x6f074d,_0x20dea8),_0x15e532['removeStyle']('aspect-ratio',_0x16e964);});});}function z(_0x53d153){if(Array['isArray'](_0x53d153)){const _0x45bef7=_0x53d153['map'](z);return _0x13533e=>_0x45bef7['some'](_0xbd667d=>_0xbd667d(_0x13533e));}if('origin'==_0x53d153){const _0x396a63=_0x26e9f1['window']['location']['origin'];return _0x56b2f7=>new URL(_0x56b2f7,_0x26e9f1['document']['baseURI'])['origin']==_0x396a63;}return'function'==typeof _0x53d153?_0x53d153:_0x53d153 instanceof RegExp?_0x1da886=>!(!_0x1da886['match'](_0x53d153)&&!_0x1da886['replace'](/^https?:\/\//,'')['match'](_0x53d153)):()=>!0x1;}function C(_0x54e068,_0x15b8ae){return _0x3171d0(_0x54e068['target'])['includes'](_0x15b8ae);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x371542(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xeebced,_0x50cc27,_0x55ab83){super(),this['_editor']=_0xeebced,this['_editing']=_0x50cc27,this['_dialog']=_0xeebced['plugins']['get'](_0x4a275e),this['_api']=_0x50cc27['ctxElement']['getAPI'](),this['_type']=_0x55ab83,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:_0x2ce743,model:_0x3d1210}=this['_editor'],_0x3fe736=_0x3d1210['document']['selection']['getSelectedElement'](),_0x442e80=_0x3fe736&&(_0x3fe736['is']('element','imageBlock')||_0x3fe736['is']('element','imageInline'));this['_formView']=new H(_0x2ce743,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4fae08,'title':_(_0x2ce743,this['_type'],_0x442e80?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x45ce63['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x57dd5c=>!C(_0x57dd5c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3fa9c2}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x525d72=>{const _0x2b079a=_0x3fa9c2['length'];for(const _0x455fa8 of _0x3fa9c2){const _0x458a11=_0x455fa8===_0x3fa9c2[_0x2b079a-0x1],{cdnUrl:_0x163ea4,fileInfo:_0x579851}=_0x455fa8;if(!_0x163ea4||!_0x579851)continue;const {width:_0x5e635b,height:_0x214d3f}=_0x579851['imageInfo'],_0x30d695=x(_0x163ea4,_0x5e635b,_0x214d3f),_0x1adc26=A(_0x163ea4,_0x30d695['width']),_0x51f798={'id':_0x579851['uuid'],'type':'image','attributes':{'imageDimension':_0x30d695,..._0x1adc26}};this['_insertAsset'](_0x51f798,_0x458a11,_0x525d72);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2a09e4=>{'idle'===_0x2a09e4['detail']['status']&&!_0x2a09e4['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x19008d,_0x26052a,_0x3f0875){const _0x4ba9cc=this['_editor']['model']['document']['selection'],_0x3a5067=_0x4ba9cc['getSelectedElement'](),_0x165f4c=!(!_0x3a5067||!_0x3a5067['is']('element','imageInline'));_0x3f0875['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x19008d,_0x165f4c),_0x26052a||_0x3f0875['setSelection'](_0x4ba9cc['getLastPosition']());}['_insertImage'](_0x150003,_0x326c08){const _0x2cbea9=this['_editor'],{imageDimension:_0x5467d4,imageFallbackUrl:_0x1a14b6,imageSources:_0x4fd9e9}=_0x150003['attributes'];_0x2cbea9['execute']('insertImage',{'imageType':_0x326c08?'imageInline':null,'source':{'uploadcareImageId':_0x150003['id'],'src':_0x1a14b6,'sources':_0x4fd9e9,..._0x5467d4}});}}class w extends _0x3c0480{['_editing'];['_controller']=null;static get['requires'](){return[_0x4a275e,o];}constructor(_0x354b50){super(_0x354b50),this['_editing']=_0x354b50['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x19c06c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x19c06c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5f36f0,..._0x29cc96}){return _0xcb0f29(_0x5f36f0,_0x29cc96);}static['getInfo'](_0x55cf70,_0xf3df54){return _0x2b89ec(_0x55cf70,_0xf3df54);}}class f extends _0x255482{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3ee90c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4ccacc=this['editor'];if(!!!_0x4ccacc['config']['get']('uploadcare'))return;_0x4ccacc['plugins']['get'](_0x3ee90c)['createUploadAdapter']=_0x5b9de7=>new Adapter(_0x5b9de7,_0x4ccacc),_0x4ccacc['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x52c57e,{imageElement:_0x402adf,data:_0x2032e6})=>{_0x4ccacc['model']['change'](_0xe1d5cd=>{_0xe1d5cd['setAttribute']('uploadcareImageId',_0x2032e6['uploadcareImageId'],_0x402adf);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x59af05,_0x63c85b){this['loader']=_0x59af05,this['editor']=_0x63c85b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2b1ca5=await this['loader']['file'];return j['upload']({'file':_0x2b1ca5,'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':_0x293ce1=>{_0x293ce1&&_0x293ce1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x293ce1['value']);}})['then'](async _0x2244a5=>{const {imageFallbackUrl:_0x3e3688,imageSources:_0x1541ad}=A(_0x2244a5['cdnUrl'],_0x2244a5['imageInfo']['width']);return{'uploadcareImageId':_0x2244a5['uuid'],'default':_0x3e3688,'sources':_0x1541ad};})['catch'](()=>{const _0x127ccf=t('Cannot\x20upload\x20file:')+('\x20'+_0x2b1ca5['name']+'.');return Promise['reject'](_0x127ccf);});}['abort'](){this['controller']['abort']();}}class o extends _0x255482{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4a275e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x163085){super(_0x163085),this['ucContextId']=_0x3d2a50();}['init'](){const _0x4ad17a=this['editor'];_0x4ad17a['commands']['add']('uploadcare',new w(_0x4ad17a));}['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 _0x73a63e=_0x26e9f1['document']['querySelector']('input[uploadcare-file-input]');_0x73a63e&&_0x73a63e['remove']();}),async function(_0xe4542b){const _0x3fa003=_0x34c840([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1ab817=0x535f8c3a,_0x491b1a=0x53580652^_0x1ab817,_0x175d91=window[_0x34c840([0x44,0x61,0x74,0x65])][_0x34c840([0x6e,0x6f,0x77])](),_0x61d584=_0xe4542b[_0x34c840([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1cb464=new window[(_0x34c840([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xae9617=>{_0x61d584[_0x34c840([0x6f,0x6e,0x63,0x65])](_0x34c840([0x72,0x65,0x61,0x64,0x79]),_0xae9617);}),_0x1d6585={[_0x34c840([0x6b,0x74,0x79])]:_0x34c840([0x45,0x43]),[_0x34c840([0x75,0x73,0x65])]:_0x34c840([0x73,0x69,0x67]),[_0x34c840([0x63,0x72,0x76])]:_0x34c840([0x50,0x2d,0x32,0x35,0x36]),[_0x34c840([0x78])]:_0x34c840([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]),[_0x34c840([0x79])]:_0x34c840([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]),[_0x34c840([0x61,0x6c,0x67])]:_0x34c840([0x45,0x53,0x32,0x35,0x36])},_0x10f102=_0x61d584[_0x34c840([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x34c840([0x67,0x65,0x74])](_0x34c840([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3044e4(){let _0x3509ca,_0x2c239b=null,_0x44de80=null;try{if(_0x10f102==_0x34c840([0x47,0x50,0x4c]))return _0x34c840([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3509ca=_0x3a492c(),!_0x3509ca)return _0x34c840([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3509ca[_0x34c840([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x44de80=_0x4a0576(_0x3509ca[_0x34c840([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3509ca[_0x34c840([0x6a,0x74,0x69])])),await _0xbca152()?_0x87033e()?_0x121958()?_0x34c840([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xec1964()?(_0x3509ca[_0x34c840([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34c840([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2c239b=_0x50ca6b(_0x34c840([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x48c266()):_0x34c840([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x34c840([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x34c840([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x34c840([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x121958(){const _0x16eaae=[_0x34c840([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x34c840([0x74,0x72,0x69,0x61,0x6c])][_0x34c840([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3509ca[_0x34c840([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x175d91/0x3e8:0xe10*_0x491b1a;return _0x3509ca[_0x34c840([0x65,0x78,0x70])]<_0x16eaae;}function _0x87033e(){const _0x1dcc25=_0x3509ca[_0x34c840([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1dcc25&&(!!_0x1dcc25[_0x34c840([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34c840([0x2a]))||!!_0x1dcc25[_0x34c840([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34c840([0x55,0x50,0x4c,0x43])));}function _0xec1964(){const _0x42a256=_0x3509ca[_0x34c840([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x42a256||0x0==_0x42a256[_0x34c840([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x39298a}=new URL(window[_0x34c840([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x42a256[_0x34c840([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39298a))return!0x0;const _0x54b031=_0x39298a[_0x34c840([0x73,0x70,0x6c,0x69,0x74])](_0x34c840([0x2e]));return _0x42a256[_0x34c840([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x227865=>_0x227865[_0x34c840([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34c840([0x2a])))[_0x34c840([0x6d,0x61,0x70])](_0x2f84e1=>_0x2f84e1[_0x34c840([0x73,0x70,0x6c,0x69,0x74])](_0x34c840([0x2e])))[_0x34c840([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x404d78=>_0x404d78[_0x34c840([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x54b031[_0x34c840([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34c840([0x6d,0x61,0x70])](_0x5017bc=>Array(_0x54b031[_0x34c840([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5017bc[_0x34c840([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34c840([0x66,0x69,0x6c,0x6c])](_0x5017bc[0x0]===_0x34c840([0x2a])?_0x34c840([0x2a]):'')[_0x34c840([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5017bc))[_0x34c840([0x73,0x6f,0x6d,0x65])](_0x5e0358=>_0x54b031[_0x34c840([0x65,0x76,0x65,0x72,0x79])]((_0x5105e5,_0x2a38b9)=>_0x5e0358[_0x2a38b9]===_0x5105e5||_0x5e0358[_0x2a38b9]===_0x34c840([0x2a])));}function _0x48c266(){return _0x2c239b&&_0x44de80?new window[(_0x34c840([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5eac4c,_0x22a72e)=>{_0x2c239b[_0x34c840([0x74,0x68,0x65,0x6e])](_0x5eac4c,_0x22a72e),_0x44de80[_0x34c840([0x74,0x68,0x65,0x6e])](_0x2330b0=>{_0x2330b0!=_0x34c840([0x56,0x61,0x6c,0x69,0x64])&&_0x5eac4c(_0x2330b0);},_0x22a72e);}):_0x2c239b||_0x44de80||_0x34c840([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a0576(_0x462c8a,_0x462b4b){return new window[(_0x34c840([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b1d5c=>{if(_0x30c3c7())return _0x1b1d5c(_0x34c840([0x56,0x61,0x6c,0x69,0x64]));_0x3c4372(),_0x61d584[_0x34c840([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x34c840([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x573ff6=!0x1;const _0x6ec077=_0x3d2a50();function _0x18ca6a(_0x223685){return!!_0x223685&&(typeof _0x223685===_0x34c840([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x223685===_0x34c840([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x223685[_0x34c840([0x74,0x68,0x65,0x6e])]===_0x34c840([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x223685[_0x34c840([0x63,0x61,0x74,0x63,0x68])]===_0x34c840([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11435c(_0x3cefd7){_0xa569a(_0x3cefd7)[_0x34c840([0x74,0x68,0x65,0x6e])](_0x148e14=>{if(!_0x148e14||_0x148e14[_0x34c840([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x34c840([0x6f,0x6b]))return _0x34c840([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x181c48(_0x22601b(_0x6ec077+_0x462b4b))!=_0x148e14[_0x34c840([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x34c840([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x34c840([0x56,0x61,0x6c,0x69,0x64]);})[_0x34c840([0x74,0x68,0x65,0x6e])](_0x4da33b=>(_0x4c9bb3(),_0x4da33b),()=>{const _0x567d51=_0xeebf3d();return null==_0x567d51?(_0x4c9bb3(),_0x34c840([0x56,0x61,0x6c,0x69,0x64])):_0x34c840(_0x175d91-_0x567d51>(0x7753083a^_0x1ab817)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x34c840([0x74,0x68,0x65,0x6e])](_0x1b1d5c)[_0x34c840([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b1d5c(_0x34c840([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1f7c4c=0x536962ba^_0x1ab817;function _0x4c9bb3(){const _0x236484=_0x34c840([0x6c,0x6c,0x63,0x74,0x2d])+_0x181c48(_0x22601b(_0x462c8a)),_0x3645f8=_0x2dd26b(_0x181c48(window[_0x34c840([0x4d,0x61,0x74,0x68])][_0x34c840([0x63,0x65,0x69,0x6c])](_0x175d91/_0x1f7c4c)));window[_0x34c840([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34c840([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x236484,_0x3645f8);}function _0xeebf3d(){const _0x48a693=_0x34c840([0x6c,0x6c,0x63,0x74,0x2d])+_0x181c48(_0x22601b(_0x462c8a)),_0x400774=window[_0x34c840([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34c840([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48a693);return _0x400774?window[_0x34c840([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dd26b(_0x400774),0x10)*_0x1f7c4c:null;}function _0xa569a(_0x370416){return new window[(_0x34c840([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dba23,_0x424115)=>{_0x370416[_0x34c840([0x74,0x68,0x65,0x6e])](_0x1dba23,_0x424115),window[_0x34c840([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x424115,0x535e58fa^_0x1ab817);});}}_0x61d584[_0x34c840([0x6f,0x6e])](_0x34c840([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e22c4,_0x36b662)=>{if(_0x36b662[0x0]!=_0x462c8a)return _0x1b1d5c(_0x34c840([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36b662[0x1]={..._0x36b662[0x1],[_0x34c840([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x6ec077};},{[_0x34c840([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34c840([0x68,0x69,0x67,0x68])}),_0x61d584[_0x34c840([0x6f,0x6e])](_0x34c840([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3292e1=>{_0x18ca6a(_0x3292e1[_0x34c840([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x573ff6=!0x0,_0x11435c(_0x3292e1[_0x34c840([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x34c840([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34c840([0x6c,0x6f,0x77])}),_0x1cb464[_0x34c840([0x74,0x68,0x65,0x6e])](()=>{_0x573ff6||_0x1b1d5c(_0x34c840([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x30c3c7(){return _0x61d584[_0x34c840([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34c840([0x76,0x69,0x65,0x77])][_0x34c840([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x34c840([0x61,0x75,0x74,0x6f]);}function _0x3c4372(){_0x61d584[_0x34c840([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34c840([0x76,0x69,0x65,0x77])][_0x34c840([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34c840([0x61,0x75,0x74,0x6f]);}}function _0x50ca6b(_0x582b0e){const _0x3f1a52=[new window[(_0x34c840([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x573cbd=>setTimeout(_0x573cbd,0x5356b2f6^_0x1ab817)),_0x1cb464[_0x34c840([0x74,0x68,0x65,0x6e])](()=>new window[(_0x34c840([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37caae=>{let _0x1dab4e=0x0;_0x61d584[_0x34c840([0x6d,0x6f,0x64,0x65,0x6c])][_0x34c840([0x6f,0x6e])](_0x34c840([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2eda9f,_0x3f4aba)=>{_0x3f4aba[0x0][_0x34c840([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1dab4e++,_0x1dab4e==(0x535f89d2^_0x1ab817)&&(_0x37caae(),_0x2eda9f[_0x34c840([0x6f,0x66,0x66])]());});}))];return window[_0x34c840([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34c840([0x72,0x61,0x63,0x65])](_0x3f1a52)[_0x34c840([0x74,0x68,0x65,0x6e])](()=>_0x582b0e);}async function _0x29bcd8(){await _0x1cb464,_0x61d584[_0x34c840([0x6d,0x6f,0x64,0x65,0x6c])][_0x34c840([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c261d,_0x61d584[_0x34c840([0x6d,0x6f,0x64,0x65,0x6c])][_0x34c840([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c261d,_0x61d584[_0x34c840([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x34c840([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45ac97(_0x374260){const _0x309c63=_0x413ad4();_0x61d584[_0x309c63]=_0x34c840([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x374260,_0x374260!=_0x34c840([0x56,0x61,0x6c,0x69,0x64])&&_0x29bcd8();}function _0x413ad4(){const _0x1a5695=window[_0x34c840([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x34c840([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x34c840([0x6e,0x6f,0x77])]())[_0x34c840([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x34c840([0x2e]),'');let _0x89333e=_0x34c840([0x68]);for(let _0x25babf=0x0;_0x25babf<_0x1a5695[_0x34c840([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25babf+=0x2){let _0xc05786=window[_0x34c840([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a5695[_0x34c840([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25babf,_0x25babf+0x2));_0xc05786>=_0x3fa003[_0x34c840([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xc05786-=_0x3fa003[_0x34c840([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x89333e+=_0x3fa003[_0xc05786];}return _0x89333e;}function _0x3a492c(){const _0x44ed62=_0x10f102[_0x34c840([0x73,0x70,0x6c,0x69,0x74])](_0x34c840([0x2e]));if(0x3!=_0x44ed62[_0x34c840([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c511b(_0x44ed62[0x1]);function _0x4c511b(_0x2cefb5){const _0x19c916=_0x4d5875(_0x2cefb5);return _0x19c916&&_0x45e605()?_0x19c916:null;function _0x45e605(){const _0x4d7055=_0x19c916[_0x34c840([0x6a,0x74,0x69])],_0x151865=window[_0x34c840([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d7055[_0x34c840([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d7055[_0x34c840([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x19038f={..._0x19c916,[_0x34c840([0x6a,0x74,0x69])]:_0x4d7055[_0x34c840([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d7055[_0x34c840([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x19038f[_0x34c840([0x76,0x63])],_0x22601b(_0x19038f)==_0x151865;}}}async function _0xbca152(){let _0x20129b=!0x0;try{const _0x533625=_0x10f102[_0x34c840([0x73,0x70,0x6c,0x69,0x74])](_0x34c840([0x2e])),[_0x33637c,_0x97192c,_0x749ad5]=_0x533625;return _0x5714df(_0x33637c),await _0x4c6b3f(_0x33637c,_0x97192c,_0x749ad5),_0x20129b;}catch{return!0x1;}function _0x5714df(_0x40444d){const _0x330bda=_0x4d5875(_0x40444d);_0x330bda&&_0x330bda[_0x34c840([0x61,0x6c,0x67])]==_0x34c840([0x45,0x53,0x32,0x35,0x36])||(_0x20129b=!0x1);}async function _0x4c6b3f(_0xc23a6e,_0x21e2fb,_0x3c44d9){const _0x557524=window[_0x34c840([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x34c840([0x66,0x72,0x6f,0x6d])](_0x23977f(_0x3c44d9),_0x52874e=>_0x52874e[_0x34c840([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x569ee6=new window[(_0x34c840([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x34c840([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc23a6e+_0x34c840([0x2e])+_0x21e2fb),_0x36b210=window[_0x34c840([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x34c840([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x36b210)return;const _0x232352=await _0x36b210[_0x34c840([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x34c840([0x6a,0x77,0x6b]),_0x1d6585,{[_0x34c840([0x6e,0x61,0x6d,0x65])]:_0x34c840([0x45,0x43,0x44,0x53,0x41]),[_0x34c840([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x34c840([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x34c840([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x36b210[_0x34c840([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x34c840([0x6e,0x61,0x6d,0x65])]:_0x34c840([0x45,0x43,0x44,0x53,0x41]),[_0x34c840([0x68,0x61,0x73,0x68])]:{[_0x34c840([0x6e,0x61,0x6d,0x65])]:_0x34c840([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x232352,_0x557524,_0x569ee6)||(_0x20129b=!0x1);}}function _0x4d5875(_0x3875b0){return _0x3875b0[_0x34c840([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x34c840([0x65,0x79]))?JSON[_0x34c840([0x70,0x61,0x72,0x73,0x65])](_0x23977f(_0x3875b0)):null;}function _0x23977f(_0x17592f){return window[_0x34c840([0x61,0x74,0x6f,0x62])](_0x17592f[_0x34c840([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x34c840([0x2b]))[_0x34c840([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x34c840([0x2f])));}function _0x22601b(_0x5627ad){let _0x4ac5f6=0x1505;function _0x3081ce(_0x80555e){for(let _0x5e503d=0x0;_0x5e503d<_0x80555e[_0x34c840([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e503d++){const _0x312276=_0x80555e[_0x34c840([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5e503d);_0x4ac5f6=(_0x4ac5f6<<0x5)+_0x4ac5f6+_0x312276,_0x4ac5f6&=_0x4ac5f6;}}function _0x16bb47(_0x56e1a5){Array[_0x34c840([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x56e1a5)?_0x56e1a5[_0x34c840([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x16bb47):_0x56e1a5&&typeof _0x56e1a5==_0x34c840([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x34c840([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x56e1a5)[_0x34c840([0x73,0x6f,0x72,0x74])]()[_0x34c840([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c72c5,_0x22ec8e])=>{_0x3081ce(_0x1c72c5),_0x16bb47(_0x22ec8e);}):_0x3081ce(window[_0x34c840([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x56e1a5));}return _0x16bb47(_0x5627ad),_0x4ac5f6>>>0x0;}function _0x181c48(_0x4d8abc){return _0x4d8abc[_0x34c840([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x34c840([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x34c840([0x30]));}function _0x2dd26b(_0x457d8a){return _0x457d8a[_0x34c840([0x73,0x70,0x6c,0x69,0x74])]('')[_0x34c840([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x34c840([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c261d(){}function _0x34c840(_0x449cc4){return _0x449cc4['map'](_0x23f5bf=>String['fromCharCode'](_0x23f5bf))['join']('');}_0x45ac97(await _0x3044e4());}(this);}['_initSchema'](){const _0x4af3bd=this['editor']['model']['schema'];_0x4af3bd['isRegistered']('imageBlock')&&_0x4af3bd['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4af3bd['isRegistered']('imageInline')&&_0x4af3bd['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x57bab9=this['editor'];_0x57bab9['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x57bab9['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x474ab9=>_0x474ab9['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5aae7f=_0x57bab9['commands']['get']('replaceImageSource');_0x5aae7f&&this['listenTo'](_0x5aae7f,'cleanupImage',(_0x1ecd88,[_0x29a66a,_0x349808])=>{_0x29a66a['removeAttribute']('uploadcareImageId',_0x349808);});}['_initConfig'](){const _0x4f8f78=this['editor']['config']['get']('uploadcare.uploader')||{},_0x174565=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4f923f(_0x26e9f1['document'],'uc-config',{..._0x4f8f78,'pubkey':_0x174565,'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']=_0x3730ae=>{if('closeMax'==_0x3730ae)return'#uc-icon-arrow-down';},_0x26e9f1['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4f923f(_0x26e9f1['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x26e9f1['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x12cc9e=this['editor']['commands']['get']('insertImage');_0x12cc9e&&this['listenTo'](_0x12cc9e,'execute',()=>{const _0x33f238=this['editor']['model']['document']['selection']['getSelectedElement']();_0x33f238&&_0x33f238['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x33f238);});});const _0x4dd82e=this['editor']['commands']['get']('uploadcareImageReplace');_0x4dd82e&&this['listenTo'](_0x4dd82e,'execute',()=>{const _0xc2fc15=this['editor']['model']['document']['selection']['getSelectedElement']();_0xc2fc15&&_0xc2fc15['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xc2fc15);});});}}class Uploadcare extends _0x255482{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37ba0f){super(_0x37ba0f),_0x37ba0f['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x393298['defineComponents'](_0x393298),this['_defineLocale']();}['_defineLocale'](){const _0x5647ab=this['editor']['config']['get']('uploadcare.locale'),_0x4d739c=this['editor']['locale']['contentLanguage'];_0x5647ab&&_0x393298['defineLocale'](_0x4d739c,_0x5647ab);}}class ii extends _0xbf8bdc{constructor(_0x30afc9){super(_0x30afc9);const t=_0x30afc9['t'],_0x4221b2=this['bindTemplate'],_0x3c186b=new _0x16704e();_0x3c186b['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':[_0x3c186b,{'text':_0x4221b2['to']('imageUploadProgress',_0x50a3e0=>t('Loading\x20image...')+'\x20('+(_0x50a3e0||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 _0xbf8bdc{constructor(_0x23e2ec){super(_0x23e2ec);const t=_0x23e2ec['t'];this['set']('errorType',null);const _0x6de958=new _0x47f1bc(_0x23e2ec);_0x6de958['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x6de958['withText']=!0x0,_0x6de958['class']='ck-button-action',_0x6de958['on']('execute',()=>{this['fire']('retry');}),_0x6de958['bind']('isVisible')['to'](this,'errorType',_0x1486bd=>'NotFound'!==_0x1486bd);const _0x4eb7d3=new _0x3be545();_0x4eb7d3['content']=_0x4d52d3,_0x4eb7d3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x19a645=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':[_0x4eb7d3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x19a645['to']('errorType',_0x5f10f7=>t('NotFound'!==_0x5f10f7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x6de958]},{'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 _0xbf8bdc{constructor(_0xf70a94,_0x301488){super(_0xf70a94);const _0xcc21cd=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x301488,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xcc21cd['to']('imageSrc')}});}}class W extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x473040,_0x51699a,_0x20fc24){super(_0x473040),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x473040),this['_errorView']=new ti(_0x473040),this['_editingView']=new ei(_0x473040,_0x20fc24),this['_focusableView']=new _0xbf8bdc(_0x473040),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x51699a),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'],_0x3184e7=>{this['_addUploadcareImageEditorListeners'](_0x3184e7);});}),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'](_0x1c42a3,_0x5865ed){const _0x7d38a0='uc-cloud-image-editor',_0x42712e=_0x1c42a3['querySelector'](_0x7d38a0);if(_0x42712e)return _0x5865ed(_0x42712e);const _0x1fbb7b=new MutationObserver(_0x17bbe6=>{const _0x24867f=_0x17bbe6['filter'](_0x425de4=>_0x425de4['target']===_0x1c42a3&&_0x425de4['addedNodes']['length']>0x0&&_0x425de4['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x7d38a0);_0x24867f['length']&&(_0x1fbb7b['disconnect'](),_0x5865ed(_0x24867f[0x0]['addedNodes'][0x0]));});_0x1fbb7b['observe'](_0x1c42a3,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5bc905){_0x5bc905['addEventListener']('apply',_0x51ffa7=>{this['fire']('apply',{'imageSrc':_0x51ffa7['detail']['cdnUrl']});}),_0x5bc905['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x371542(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4d1089,_0x1954f2,_0xa4464a){super(),this['_editor']=_0x4d1089,this['_dialog']=_0x1954f2,this['_imageElement']=_0xa4464a,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 _0x548f6b=this['_imageElement'],_0x1632c5=_0x548f6b['getAttribute']('uploadcareImageId'),_0x29a82d=_0x548f6b['getAttribute']('src');if(_0x1632c5)await this['_loadImageInfo'](_0x1632c5,_0x29a82d);else{if(this['_imageCache']['has'](_0x29a82d)){const _0x1a2d9f=this['_imageCache']['get'](_0x29a82d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1a2d9f['url'],this['imageDimension']=_0x1a2d9f['dimension'],this['imageId']=_0x1a2d9f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5bf24d}=this['_editor'],t=_0x5bf24d['t'],_0x3b55a3=new W(_0x5bf24d,this['imageStatus'],this['_attributes']);_0x3b55a3['bind']('status')['to'](this,'imageStatus'),_0x3b55a3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3b55a3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3b55a3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3b55a3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4df171,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3b55a3,'position':_0x45ce63['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3b55a3['focus']();},'onHide':()=>{_0x3b55a3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x319cf3=>!C(_0x319cf3,_0x3b55a3['element'])}});}['_loadImageInfo'](_0x343fdc,_0xc04062){return j['getInfo'](_0x343fdc,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x25b25b=>{const {width:_0x5038f2,height:_0x53ef9a}=_0x25b25b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xc04062,this['imageDimension']={'width':_0x5038f2,'height':_0x53ef9a},this['imageId']=_0x343fdc;})['catch'](_0x324e57=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x324e57['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4618da,_0x910282){return this['_getImageAsFile'](_0x4618da)['then'](_0x38985a=>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':_0x910282['signal'],'file':_0x38985a,'onProgress':_0x1833d6=>{_0x1833d6&&_0x1833d6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1833d6['value']));}}))['then'](_0x42ab76=>{const {width:_0x5c5121,height:_0x5cf4d0}=_0x42ab76['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x42ab76['cdnUrl'],this['imageDimension']={'width':_0x5c5121,'height':_0x5cf4d0},this['imageId']=_0x42ab76['uuid'],this['imageUploadProgress']=null;const _0x3c73aa=_0x4618da['getAttribute']('src');this['_imageCache']['set'](_0x3c73aa,{'id':_0x42ab76['uuid'],'url':_0x42ab76['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4f4562=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4f4562['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5c151b,_0x227bf1){_0x5c151b['on']('apply',(_0x3f3e99,_0x163577)=>{this['_replaceImage'](_0x227bf1,_0x163577['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5c151b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5c151b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4b6b5a,_0x2eaa97,_0x35c390){const _0x4e6af2=this['_editor'],{width:_0xb8a2bb,height:_0x149f0e}=x(_0x2eaa97,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2a4478,imageSources:_0xe1d926}=A(_0x2eaa97,_0xb8a2bb);_0x4e6af2['model']['change'](_0x2bb4e9=>{if('$graveyard'===_0x4b6b5a['root']['rootName']){_0x4e6af2['execute']('insertImage',{'imageType':_0x4b6b5a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4b6b5a['getAttributes']()),'uploadcareImageId':_0x35c390,'src':_0x2a4478,'sources':_0xe1d926,'width':_0xb8a2bb,'height':_0x149f0e}});const _0x4d0057=_0x4b6b5a['getChildren']();_0x4b6b5a=_0x4e6af2['model']['document']['selection']['getSelectedElement']();for(const _0x18e569 of _0x4d0057)_0x2bb4e9['append'](_0x2bb4e9['cloneElement'](_0x18e569),_0x4b6b5a);}else _0x2bb4e9['setSelection'](_0x4b6b5a,'on'),_0x4e6af2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4b6b5a['getAttributes']()),'uploadcareImageId':_0x35c390,'src':_0x2a4478,'sources':_0xe1d926,'width':_0xb8a2bb,'height':_0x149f0e},_0x4b6b5a);_0x2bb4e9['setSelection'](_0x4b6b5a,'on');});}async['_getImageAsFile'](_0xc2e8db){const _0x1d16d9=_0x26e9f1['window'],_0x472dfd=_0x26e9f1['document']['location']['href'],_0x2c4179=new _0x1d16d9['URL'](_0xc2e8db['getAttribute']('src'),_0x472dfd);if('data:'===_0x2c4179['protocol']){const _0xe28c61=_0x2c4179['href']['split'](','),_0x5d6539=_0xe28c61[0x0]['match'](/:(.*?);/)[0x1],_0x2830ac=_0x5d6539['split']('/')[0x1],_0x364f02=_0x1d16d9['atob'](_0xe28c61[_0xe28c61['length']-0x1]);let _0x6cc55e=_0x364f02['length'];const _0x240597=new _0x1d16d9['Uint8Array'](_0x6cc55e);for(;_0x6cc55e--;)_0x240597[_0x6cc55e]=_0x364f02['charCodeAt'](_0x6cc55e);return new _0x1d16d9['File']([_0x240597],'image.'+_0x2830ac,{'type':_0x5d6539});}const _0x46b424=_0x2c4179['href']['split']('/'),_0x47f968=_0x46b424[_0x46b424['length']-0x1],_0x4f4ee8=_0x47f968['split']('.')[0x1];return _0x1d16d9['fetch'](_0x2c4179['href'])['then'](_0x2609ef=>_0x2609ef['clone']()['blob']())['then'](_0xc5849f=>new _0x1d16d9['File']([_0xc5849f],_0x47f968,{'type':'image/'+_0x4f4ee8}));}}class Q extends _0x3c0480{['imageEditController'];static get['requires'](){return[_0x4a275e];}['_isEditable'];constructor(_0x32b468){super(_0x32b468),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3dc2a1){const _0x50dc7c=z(_0x3dc2a1);return _0x4d5f8c=>!(!_0x4d5f8c||!_0x4d5f8c['is']('element','imageBlock')&&!_0x4d5f8c['is']('element','imageInline'))&&(!!_0x4d5f8c['hasAttribute']('uploadcareImageId')||!!_0x4d5f8c['hasAttribute']('src')&&_0x50dc7c(_0x4d5f8c['getAttribute']('src')));}(_0x32b468['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3827e9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3827e9);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xd117a9=this['editor']['model']['document']['selection']['getSelectedElement']();_0xd117a9&&(_0xd117a9['is']('element','imageBlock')||_0xd117a9['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x4a275e),_0xd117a9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class S extends _0x3c0480{['refresh'](){const _0x457fce=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x457fce&&(_0x457fce['is']('element','imageBlock')||_0x457fce['is']('element','imageInline')));}['execute'](_0x4dd948){const _0x34567a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x271513=>{_0x271513['setAttributes'](_0x4dd948,_0x34567a),_0x271513['removeAttribute']('srcset',_0x34567a),_0x271513['removeAttribute']('sizes',_0x34567a);});}}class m extends _0x255482{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x497dbb,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3054de}=this;_0x3054de['commands']['add']('uploadcareImageEdit',new Q(_0x3054de)),_0x3054de['commands']['add']('uploadcareImageReplace',new S(_0x3054de));}}class g extends _0x255482{['_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 _0x4301d2=this['editor'];_0x4301d2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3fabe7=>{const _0x53b038=_0x4301d2['commands']['get']('uploadcareImageEdit'),_0xccd605=new _0x47f1bc(_0x3fabe7),t=_0x3fabe7['t'];return _0xccd605['set']({'icon':_0x4df171,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xccd605['bind']('isEnabled')['to'](_0x53b038),_0xccd605['bind']('isOn')['to'](_0x53b038,'isActive'),this['listenTo'](_0xccd605,'execute',()=>{_0x4301d2['execute']('uploadcareImageEdit'),_0x4301d2['editing']['view']['focus']();}),_0xccd605;}),this['_initConfig']();}['_initConfig'](){const _0x10e30f=_0x4f923f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x10e30f),this['listenTo'](this['editor'],'destroy',()=>{_0x10e30f['remove']();});}}class UploadcareImageEdit extends _0x255482{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Uploadcare,w as UploadcareCommand,o as UploadcareEditing,UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x2b6d11,Command as _0x59176d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x38453d,IconGooglePhotos as _0xbc9bd,IconGoogleDrive as _0x4134e8,IconFacebook as _0x26b0d7,IconDropbox as _0x7cc7c,IconUploadcareLink as _0x49b5df,IconUploadcareImageUpload as _0x5b29b5,IconError as _0x31d45f,IconUploadcareImageEdit as _0x4fd8fc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x15678c,MenuBarMenuListItemButtonView as _0x480705,View as _0x50800c,FocusCycler as _0x52a574,Dialog as _0x39fefa,DialogViewPosition as _0x51ef26,SpinnerView as _0x54e807,IconView as _0x50678c,Notification as _0x16110d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x166618,DomEmitterMixin as _0x4644b1,global as _0x394f5b,getAncestors as _0x425e8e,ObservableMixin as _0x9bf5c,uid as _0x3abc27,createElement as _0x3f19e5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x37666d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x27d716,info as _0x4da662}from'@uploadcare/upload-client';import*as _0x52a05b from'@uploadcare/file-uploader';var i=function(_0x1def2b){return _0x1def2b['Local']='local',_0x1def2b['URL']='url',_0x1def2b['Dropbox']='dropbox',_0x1def2b['GDrive']='gdrive',_0x1def2b['Facebook']='facebook',_0x1def2b['GPhotos']='gphotos',_0x1def2b['OneDrive']='onedrive',_0x1def2b;}({});function _(_0x14c48d,_0x24e81a,_0x502040){const t=_0x14c48d['t'],_0x374ae9=_0x14c48d['t'];switch(_0x24e81a){case i['Local']:return{'text':_0x374ae9('Insert'===_0x502040?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x374ae9('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x502040?_0x374ae9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x374ae9('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x502040?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x502040?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x502040?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x502040?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x502040?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x24e81a;}}class e extends _0x2b6d11{['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 _0x468f86=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x494c92;for(const _0x4e8bf0 in _0x468f86){const _0x249ec8=_0x4e8bf0,_0x4f8347=_0x468f86[_0x249ec8];if('uploadcareLicenseKeyValid'==_0x4f8347||'uploadcareLicenseKeyInvalid'==_0x4f8347||'uploadcareLicenseKeyExpired'==_0x4f8347||'uploadcareLicenseKeyDomainLimit'==_0x4f8347||'uploadcareLicenseKeyNotAllowed'==_0x4f8347||'uploadcareLicenseKeyEvaluationLimit'==_0x4f8347||'uploadcareLicenseKeyUsageLimit'==_0x4f8347){delete _0x468f86[_0x249ec8],_0x494c92=_0x4f8347,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x494c92&&_0x468f86['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x494c92&&_0x468f86['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x494c92&&_0x468f86['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x494c92&&_0x468f86['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x494c92&&_0x468f86['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x494c92&&_0x468f86['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x757fdc}=this,_0x1a7a02=_0x757fdc['commands']['get']('uploadcare');if(!_0x1a7a02)return;const _0x4499c6=this['_normalizeConfigSourceList'](_0x757fdc['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x50784f,_0x1ae863)=>{const _0x102edd=this['_getIntegrationKey'](_0x1ae863['type']);return _0x50784f[_0x102edd]||(_0x50784f[_0x102edd]=[]),_0x50784f[_0x102edd]['push'](_0x1ae863),_0x50784f;},{});_0x757fdc['plugins']['has']('ImageInsertUI')&&_0x757fdc['commands']['get']('uploadcare')&&Object['entries'](_0x4499c6)['forEach'](([_0x4d719d,_0x2e8ac3])=>{_0x757fdc['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4d719d,'observable':()=>_0x1a7a02,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2e8ac3),'formViewCreator':()=>this['_createDropdownButtons'](_0x2e8ac3),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2e8ac3),'override':'assetManager'!==_0x4d719d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1ece72){const {locale:_0x509683}=this['editor'];return _0x1ece72['map'](_0x219f5b=>{const _0x3233d7=_(_0x509683,_0x219f5b,'Insert');switch(_0x219f5b){case i['Local']:return{'icon':_0x5b29b5,'type':i['Local'],..._0x3233d7};case i['URL']:return{'icon':_0x49b5df,'type':i['URL'],..._0x3233d7};case i['Dropbox']:return{'icon':_0x7cc7c,'type':i['Dropbox'],..._0x3233d7};case i['Facebook']:return{'icon':_0x26b0d7,'type':i['Facebook'],..._0x3233d7};case i['GDrive']:return{'icon':_0x4134e8,'type':i['GDrive'],..._0x3233d7};case i['GPhotos']:return{'icon':_0xbc9bd,'type':i['GPhotos'],..._0x3233d7};case i['OneDrive']:return{'icon':_0x38453d,'type':i['OneDrive'],..._0x3233d7};}});}['_getIntegrationKey'](_0x2b5f20){switch(_0x2b5f20){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5edbbf,_0x21a735){const _0xc35bc3=this['editor'],_0x409133=new _0x5edbbf(_0xc35bc3['locale']),_0x30b88f=_0xc35bc3['commands']['get']('uploadcare');return _0x409133['bind']('isEnabled')['to'](_0x30b88f),_0x409133['on']('execute',()=>{_0x30b88f['execute'](_0x21a735);}),_0x409133;}['_createToolbarButton'](_0x2be00a){const {locale:_0x368abf}=this['editor'],_0x2b8f96=this['editor']['plugins']['get']('ImageInsertUI'),_0x45d62c=_0x2be00a[0x0],_0xe762ab=this['_createButton'](_0x15678c,_0x45d62c['type']);return _0xe762ab['icon']=_0x45d62c['icon'],_0xe762ab['bind']('label')['to'](_0x2b8f96,'isImageSelected',_0x47f680=>_(_0x368abf,_0x45d62c['type'],_0x47f680?'Replace':'Insert')['text']),_0xe762ab['tooltip']=!0x0,_0xe762ab;}['_createDropdownButtons'](_0x24a0bd){const {locale:_0x34683d}=this['editor'],_0x59d9ea=this['editor']['plugins']['get']('ImageInsertUI');return _0x24a0bd['map'](_0x595bb2=>{const _0x4a6d39=this['_createButton'](_0x15678c,_0x595bb2['type']);return _0x4a6d39['withText']=!0x0,_0x4a6d39['icon']=_0x595bb2['icon'],_0x4a6d39['bind']('label')['to'](_0x59d9ea,'isImageSelected',_0x427c32=>_(_0x34683d,_0x595bb2['type'],_0x427c32?'Replace':'Insert')['text']),_0x4a6d39;});}['_createMenuBarButtons'](_0x694233){return _0x694233['map'](_0x5485ee=>{const _0x232dcc=this['_createButton'](_0x480705,_0x5485ee['type']);return _0x232dcc['icon']=_0x5485ee['icon'],_0x232dcc['label']=_0x5485ee['shortText'],_0x232dcc;});}}class F extends _0x50800c{['focusTracker'];['focusCycler'];constructor(_0x5a5cd8){super(_0x5a5cd8),this['focusTracker']=new _0x166618(),this['focusCycler']=new _0x52a574({'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 H extends F{constructor(_0x2950b5,_0x44a831){super(_0x2950b5),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-'+_0x44a831}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function A(_0xcec8c2,_0x47f249){const _0x11b6e5=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4c4233=>_0x4c4233<=_0x47f249)['map'](_0x11adee=>_0xcec8c2['replace'](/\/$/,'')+'/-/resize/'+_0x11adee+'x/\x20'+_0x11adee+'w');return{'imageFallbackUrl':_0xcec8c2,'imageSources':[{'srcset':_0x11b6e5['join'](',\x20'),'sizes':'(max-width:\x20'+_0x47f249+'px)\x20100vw,\x20'+_0x47f249+'px','type':'image/webp'}]};}function x(_0x2b2cd6,_0x50f17c,_0x26cb51){const _0x18f506=_0x2b2cd6['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x18f506?parseInt(_0x18f506[0x1],0xa):_0x50f17c,'height':_0x18f506?parseInt(_0x18f506[0x2],0xa):_0x26cb51};}function p(_0x3fda72,_0x2543ed){const _0x30af95=new(_0x4644b1())(),_0x597309=_0x3fda72['plugins']['get']('ImageUtils'),_0x28d23c=_0x3fda72['editing']['mapper']['toViewElement'](_0x2543ed),_0x1f011b=_0x597309['findViewImgElement'](_0x28d23c),_0x2fbdea=_0x3fda72['editing']['view']['domConverter']['viewToDom'](_0x1f011b),_0x42bc60=_0x2543ed['getAttribute']('width'),_0x413ac3=_0x2543ed['getAttribute']('height'),_0x4c61a4='image-processing';_0x3fda72['editing']['view']['change'](_0x4946c4=>{_0x4946c4['addClass'](_0x4c61a4,_0x28d23c),_0x4946c4['setStyle']('aspect-ratio',_0x42bc60+'/'+_0x413ac3,_0x1f011b);}),_0x30af95['listenTo'](_0x2fbdea,'load',()=>{_0x30af95['stopListening'](_0x2fbdea,'load'),_0x3fda72['editing']['view']['change'](_0x481e2c=>{_0x481e2c['removeClass'](_0x4c61a4,_0x28d23c),_0x481e2c['removeStyle']('aspect-ratio',_0x1f011b);});});}function z(_0x110145){if(Array['isArray'](_0x110145)){const _0x3dcb45=_0x110145['map'](z);return _0x8a21a=>_0x3dcb45['some'](_0x494db5=>_0x494db5(_0x8a21a));}if('origin'==_0x110145){const _0x2d1b55=_0x394f5b['window']['location']['origin'];return _0x481477=>new URL(_0x481477,_0x394f5b['document']['baseURI'])['origin']==_0x2d1b55;}return'function'==typeof _0x110145?_0x110145:_0x110145 instanceof RegExp?_0xc0990d=>!(!_0xc0990d['match'](_0x110145)&&!_0xc0990d['replace'](/^https?:\/\//,'')['match'](_0x110145)):()=>!0x1;}function C(_0x3f4d42,_0x4d1fe1){return _0x425e8e(_0x3f4d42['target'])['includes'](_0x4d1fe1);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x9bf5c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5e772b,_0x12062c,_0x4666ba){super(),this['_editor']=_0x5e772b,this['_editing']=_0x12062c,this['_dialog']=_0x5e772b['plugins']['get'](_0x39fefa),this['_api']=_0x12062c['ctxElement']['getAPI'](),this['_type']=_0x4666ba,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:_0x145a6a,model:_0x27a167}=this['_editor'],_0x1ce156=_0x27a167['document']['selection']['getSelectedElement'](),_0x2a2856=_0x1ce156&&(_0x1ce156['is']('element','imageBlock')||_0x1ce156['is']('element','imageInline'));this['_formView']=new H(_0x145a6a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5b29b5,'title':_(_0x145a6a,this['_type'],_0x2a2856?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x51ef26['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x545e9b=>!C(_0x545e9b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x355d9c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x31d0c=>{const _0x3b6984=_0x355d9c['length'];for(const _0x24cb77 of _0x355d9c){const _0x239c7b=_0x24cb77===_0x355d9c[_0x3b6984-0x1],{cdnUrl:_0x3b554c,fileInfo:_0x173343}=_0x24cb77;if(!_0x3b554c||!_0x173343)continue;const {width:_0x4d58fa,height:_0xf08041}=_0x173343['imageInfo'],_0x2a3a01=x(_0x3b554c,_0x4d58fa,_0xf08041),_0x3cd4eb=A(_0x3b554c,_0x2a3a01['width']),_0x4146a9={'id':_0x173343['uuid'],'type':'image','attributes':{'imageDimension':_0x2a3a01,..._0x3cd4eb}};this['_insertAsset'](_0x4146a9,_0x239c7b,_0x31d0c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x303c3e=>{'idle'===_0x303c3e['detail']['status']&&!_0x303c3e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3dbafa,_0x4fabab,_0x5c52d2){const _0x2d8b48=this['_editor']['model']['document']['selection'],_0x2580cb=_0x2d8b48['getSelectedElement'](),_0x559fc1=!(!_0x2580cb||!_0x2580cb['is']('element','imageInline'));_0x5c52d2['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3dbafa,_0x559fc1),_0x4fabab||_0x5c52d2['setSelection'](_0x2d8b48['getLastPosition']());}['_insertImage'](_0x2a6664,_0x51fb00){const _0x4c1d81=this['_editor'],{imageDimension:_0x9db72c,imageFallbackUrl:_0x45beea,imageSources:_0x267d11}=_0x2a6664['attributes'];_0x4c1d81['execute']('insertImage',{'imageType':_0x51fb00?'imageInline':null,'source':{'uploadcareImageId':_0x2a6664['id'],'src':_0x45beea,'sources':_0x267d11,..._0x9db72c}});}}class w extends _0x59176d{['_editing'];['_controller']=null;static get['requires'](){return[_0x39fefa,o];}constructor(_0x571aef){super(_0x571aef),this['_editing']=_0x571aef['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x9fa39c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x9fa39c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3fbb80,..._0x16e52d}){return _0x27d716(_0x3fbb80,_0x16e52d);}static['getInfo'](_0x42328f,_0x1b7d2a){return _0x4da662(_0x42328f,_0x1b7d2a);}}class f extends _0x2b6d11{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x37666d,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x19c07c=this['editor'];if(!!!_0x19c07c['config']['get']('uploadcare'))return;_0x19c07c['plugins']['get'](_0x37666d)['createUploadAdapter']=_0x28f450=>new Adapter(_0x28f450,_0x19c07c),_0x19c07c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x6824c2,{imageElement:_0x52c23d,data:_0x44302e})=>{_0x19c07c['model']['change'](_0x3ef25a=>{_0x3ef25a['setAttribute']('uploadcareImageId',_0x44302e['uploadcareImageId'],_0x52c23d);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x16fc3c,_0x54cdf9){this['loader']=_0x16fc3c,this['editor']=_0x54cdf9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x15bae6=await this['loader']['file'];return j['upload']({'file':_0x15bae6,'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':_0xa42881=>{_0xa42881&&_0xa42881['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xa42881['value']);}})['then'](async _0x49a91a=>{const {imageFallbackUrl:_0x4edeb9,imageSources:_0x4ae90f}=A(_0x49a91a['cdnUrl'],_0x49a91a['imageInfo']['width']);return{'uploadcareImageId':_0x49a91a['uuid'],'default':_0x4edeb9,'sources':_0x4ae90f};})['catch'](()=>{const _0x427152=t('Cannot\x20upload\x20file:')+('\x20'+_0x15bae6['name']+'.');return Promise['reject'](_0x427152);});}['abort'](){this['controller']['abort']();}}class o extends _0x2b6d11{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x39fefa];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4ec434){super(_0x4ec434),this['ucContextId']=_0x3abc27();}['init'](){const _0x42a8d4=this['editor'];_0x42a8d4['commands']['add']('uploadcare',new w(_0x42a8d4));}['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 _0x16f5e8=_0x394f5b['document']['querySelector']('input[uploadcare-file-input]');_0x16f5e8&&_0x16f5e8['remove']();}),async function(_0x483a94){const _0x2ed96a=_0x4b05a5([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x3e19a5=0x535f8c3a,_0x2909e9=0x535803fa^_0x3e19a5,_0x629471=window[_0x4b05a5([0x44,0x61,0x74,0x65])][_0x4b05a5([0x6e,0x6f,0x77])](),_0x506594=_0x483a94[_0x4b05a5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x35aae2=new window[(_0x4b05a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x528c44=>{_0x506594[_0x4b05a5([0x6f,0x6e,0x63,0x65])](_0x4b05a5([0x72,0x65,0x61,0x64,0x79]),_0x528c44);}),_0x508076={[_0x4b05a5([0x6b,0x74,0x79])]:_0x4b05a5([0x45,0x43]),[_0x4b05a5([0x75,0x73,0x65])]:_0x4b05a5([0x73,0x69,0x67]),[_0x4b05a5([0x63,0x72,0x76])]:_0x4b05a5([0x50,0x2d,0x32,0x35,0x36]),[_0x4b05a5([0x78])]:_0x4b05a5([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]),[_0x4b05a5([0x79])]:_0x4b05a5([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]),[_0x4b05a5([0x61,0x6c,0x67])]:_0x4b05a5([0x45,0x53,0x32,0x35,0x36])},_0x21719b=_0x506594[_0x4b05a5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b05a5([0x67,0x65,0x74])](_0x4b05a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4936a3(){let _0x31ad38,_0xd105ec=null,_0x3d15e1=null;try{if(_0x21719b==_0x4b05a5([0x47,0x50,0x4c]))return _0x4b05a5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x31ad38=_0x49076e(),!_0x31ad38)return _0x4b05a5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x31ad38[_0x4b05a5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d15e1=_0x3a4fbd(_0x31ad38[_0x4b05a5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x31ad38[_0x4b05a5([0x6a,0x74,0x69])])),await _0x144361()?_0x769215()?_0x3cf298()?_0x4b05a5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x326fae()?(_0x31ad38[_0x4b05a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b05a5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd105ec=_0x376d87(_0x4b05a5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a4623()):_0x4b05a5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b05a5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b05a5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4b05a5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3cf298(){const _0x409d7f=[_0x4b05a5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b05a5([0x74,0x72,0x69,0x61,0x6c])][_0x4b05a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31ad38[_0x4b05a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x629471/0x3e8:0xe10*_0x2909e9;return _0x31ad38[_0x4b05a5([0x65,0x78,0x70])]<_0x409d7f;}function _0x769215(){const _0x2a1d68=_0x31ad38[_0x4b05a5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a1d68&&(!!_0x2a1d68[_0x4b05a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b05a5([0x2a]))||!!_0x2a1d68[_0x4b05a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b05a5([0x55,0x50,0x4c,0x43])));}function _0x326fae(){const _0xb19922=_0x31ad38[_0x4b05a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb19922||0x0==_0xb19922[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42cf80}=new URL(window[_0x4b05a5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb19922[_0x4b05a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42cf80))return!0x0;const _0x51eb28=_0x42cf80[_0x4b05a5([0x73,0x70,0x6c,0x69,0x74])](_0x4b05a5([0x2e]));return _0xb19922[_0x4b05a5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d44f7=>_0x2d44f7[_0x4b05a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b05a5([0x2a])))[_0x4b05a5([0x6d,0x61,0x70])](_0x2f0929=>_0x2f0929[_0x4b05a5([0x73,0x70,0x6c,0x69,0x74])](_0x4b05a5([0x2e])))[_0x4b05a5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1149d2=>_0x1149d2[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x51eb28[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b05a5([0x6d,0x61,0x70])](_0x4c7b4d=>Array(_0x51eb28[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c7b4d[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b05a5([0x66,0x69,0x6c,0x6c])](_0x4c7b4d[0x0]===_0x4b05a5([0x2a])?_0x4b05a5([0x2a]):'')[_0x4b05a5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c7b4d))[_0x4b05a5([0x73,0x6f,0x6d,0x65])](_0x1f89b3=>_0x51eb28[_0x4b05a5([0x65,0x76,0x65,0x72,0x79])]((_0x42ef6a,_0x41e2e9)=>_0x1f89b3[_0x41e2e9]===_0x42ef6a||_0x1f89b3[_0x41e2e9]===_0x4b05a5([0x2a])));}function _0x3a4623(){return _0xd105ec&&_0x3d15e1?new window[(_0x4b05a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ec7bb,_0x123226)=>{_0xd105ec[_0x4b05a5([0x74,0x68,0x65,0x6e])](_0x1ec7bb,_0x123226),_0x3d15e1[_0x4b05a5([0x74,0x68,0x65,0x6e])](_0x49e7b7=>{_0x49e7b7!=_0x4b05a5([0x56,0x61,0x6c,0x69,0x64])&&_0x1ec7bb(_0x49e7b7);},_0x123226);}):_0xd105ec||_0x3d15e1||_0x4b05a5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a4fbd(_0x47dfb8,_0x6087f6){return new window[(_0x4b05a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57e26a=>{if(_0xfaa1a7())return _0x57e26a(_0x4b05a5([0x56,0x61,0x6c,0x69,0x64]));_0x46d079(),_0x506594[_0x4b05a5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b05a5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xcb5069=!0x1;const _0x1bda5b=_0x3abc27();function _0x1a8303(_0x1a2b59){return!!_0x1a2b59&&(typeof _0x1a2b59===_0x4b05a5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1a2b59===_0x4b05a5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1a2b59[_0x4b05a5([0x74,0x68,0x65,0x6e])]===_0x4b05a5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1a2b59[_0x4b05a5([0x63,0x61,0x74,0x63,0x68])]===_0x4b05a5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc3dbde(_0x57fb9b){_0x552b3e(_0x57fb9b)[_0x4b05a5([0x74,0x68,0x65,0x6e])](_0x5a2a50=>{if(!_0x5a2a50||_0x5a2a50[_0x4b05a5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b05a5([0x6f,0x6b]))return _0x4b05a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57d524(_0x11ca02(_0x1bda5b+_0x6087f6))!=_0x5a2a50[_0x4b05a5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b05a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b05a5([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b05a5([0x74,0x68,0x65,0x6e])](_0x2ef766=>(_0x53765a(),_0x2ef766),()=>{const _0x2fbc68=_0x314369();return null==_0x2fbc68?(_0x53765a(),_0x4b05a5([0x56,0x61,0x6c,0x69,0x64])):_0x4b05a5(_0x629471-_0x2fbc68>(0x7753083a^_0x3e19a5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b05a5([0x74,0x68,0x65,0x6e])](_0x57e26a)[_0x4b05a5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57e26a(_0x4b05a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6176fc=0x536962ba^_0x3e19a5;function _0x53765a(){const _0x3146eb=_0x4b05a5([0x6c,0x6c,0x63,0x74,0x2d])+_0x57d524(_0x11ca02(_0x47dfb8)),_0x1dbcf5=_0x386311(_0x57d524(window[_0x4b05a5([0x4d,0x61,0x74,0x68])][_0x4b05a5([0x63,0x65,0x69,0x6c])](_0x629471/_0x6176fc)));window[_0x4b05a5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b05a5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3146eb,_0x1dbcf5);}function _0x314369(){const _0x431723=_0x4b05a5([0x6c,0x6c,0x63,0x74,0x2d])+_0x57d524(_0x11ca02(_0x47dfb8)),_0x457b0e=window[_0x4b05a5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b05a5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x431723);return _0x457b0e?window[_0x4b05a5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x386311(_0x457b0e),0x10)*_0x6176fc:null;}function _0x552b3e(_0x5821be){return new window[(_0x4b05a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15a187,_0x5eb74a)=>{_0x5821be[_0x4b05a5([0x74,0x68,0x65,0x6e])](_0x15a187,_0x5eb74a),window[_0x4b05a5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5eb74a,0x535e58fa^_0x3e19a5);});}}_0x506594[_0x4b05a5([0x6f,0x6e])](_0x4b05a5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1dcd46,_0x48c440)=>{if(_0x48c440[0x0]!=_0x47dfb8)return _0x57e26a(_0x4b05a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x48c440[0x1]={..._0x48c440[0x1],[_0x4b05a5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1bda5b};},{[_0x4b05a5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b05a5([0x68,0x69,0x67,0x68])}),_0x506594[_0x4b05a5([0x6f,0x6e])](_0x4b05a5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e7ae0=>{_0x1a8303(_0x5e7ae0[_0x4b05a5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xcb5069=!0x0,_0xc3dbde(_0x5e7ae0[_0x4b05a5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b05a5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b05a5([0x6c,0x6f,0x77])}),_0x35aae2[_0x4b05a5([0x74,0x68,0x65,0x6e])](()=>{_0xcb5069||_0x57e26a(_0x4b05a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xfaa1a7(){return _0x506594[_0x4b05a5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b05a5([0x76,0x69,0x65,0x77])][_0x4b05a5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b05a5([0x61,0x75,0x74,0x6f]);}function _0x46d079(){_0x506594[_0x4b05a5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b05a5([0x76,0x69,0x65,0x77])][_0x4b05a5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b05a5([0x61,0x75,0x74,0x6f]);}}function _0x376d87(_0x5456bc){const _0x30d6ff=[new window[(_0x4b05a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x502f73=>setTimeout(_0x502f73,0x5356b2f6^_0x3e19a5)),_0x35aae2[_0x4b05a5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b05a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x102d27=>{let _0xc4736d=0x0;_0x506594[_0x4b05a5([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b05a5([0x6f,0x6e])](_0x4b05a5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x13dfc3,_0x3b0205)=>{_0x3b0205[0x0][_0x4b05a5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc4736d++,_0xc4736d==(0x535f89d2^_0x3e19a5)&&(_0x102d27(),_0x13dfc3[_0x4b05a5([0x6f,0x66,0x66])]());});}))];return window[_0x4b05a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b05a5([0x72,0x61,0x63,0x65])](_0x30d6ff)[_0x4b05a5([0x74,0x68,0x65,0x6e])](()=>_0x5456bc);}async function _0x56832(){await _0x35aae2,_0x506594[_0x4b05a5([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b05a5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf0798c,_0x506594[_0x4b05a5([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b05a5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf0798c,_0x506594[_0x4b05a5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b05a5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d39d4(_0x3a5427){const _0x134e11=_0xb48f2d();_0x506594[_0x134e11]=_0x4b05a5([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3a5427,_0x3a5427!=_0x4b05a5([0x56,0x61,0x6c,0x69,0x64])&&_0x56832();}function _0xb48f2d(){const _0x1c651e=window[_0x4b05a5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b05a5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b05a5([0x6e,0x6f,0x77])]())[_0x4b05a5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b05a5([0x2e]),'');let _0x35b422=_0x4b05a5([0x68]);for(let _0xadbc63=0x0;_0xadbc63<_0x1c651e[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xadbc63+=0x2){let _0x254306=window[_0x4b05a5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c651e[_0x4b05a5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xadbc63,_0xadbc63+0x2));_0x254306>=_0x2ed96a[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x254306-=_0x2ed96a[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x35b422+=_0x2ed96a[_0x254306];}return _0x35b422;}function _0x49076e(){const _0x1fa613=_0x21719b[_0x4b05a5([0x73,0x70,0x6c,0x69,0x74])](_0x4b05a5([0x2e]));if(0x3!=_0x1fa613[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x424eda(_0x1fa613[0x1]);function _0x424eda(_0x44d2a2){const _0x591bb2=_0xcc8056(_0x44d2a2);return _0x591bb2&&_0xa900e4()?_0x591bb2:null;function _0xa900e4(){const _0x15e921=_0x591bb2[_0x4b05a5([0x6a,0x74,0x69])],_0x210eea=window[_0x4b05a5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15e921[_0x4b05a5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15e921[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f8089={..._0x591bb2,[_0x4b05a5([0x6a,0x74,0x69])]:_0x15e921[_0x4b05a5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15e921[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f8089[_0x4b05a5([0x76,0x63])],_0x11ca02(_0x4f8089)==_0x210eea;}}}async function _0x144361(){let _0x51fa82=!0x0;try{const _0x3412ba=_0x21719b[_0x4b05a5([0x73,0x70,0x6c,0x69,0x74])](_0x4b05a5([0x2e])),[_0x14f938,_0x203149,_0x3a15d9]=_0x3412ba;return _0x4c1423(_0x14f938),await _0x282e84(_0x14f938,_0x203149,_0x3a15d9),_0x51fa82;}catch{return!0x1;}function _0x4c1423(_0x1c9c67){const _0x456339=_0xcc8056(_0x1c9c67);_0x456339&&_0x456339[_0x4b05a5([0x61,0x6c,0x67])]==_0x4b05a5([0x45,0x53,0x32,0x35,0x36])||(_0x51fa82=!0x1);}async function _0x282e84(_0x30a6c2,_0x2395ae,_0x12359b){const _0x53eb82=window[_0x4b05a5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b05a5([0x66,0x72,0x6f,0x6d])](_0x542be3(_0x12359b),_0x35b7f9=>_0x35b7f9[_0x4b05a5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1716c7=new window[(_0x4b05a5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b05a5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x30a6c2+_0x4b05a5([0x2e])+_0x2395ae),_0x45490e=window[_0x4b05a5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b05a5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x45490e)return;const _0x1ecbfa=await _0x45490e[_0x4b05a5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b05a5([0x6a,0x77,0x6b]),_0x508076,{[_0x4b05a5([0x6e,0x61,0x6d,0x65])]:_0x4b05a5([0x45,0x43,0x44,0x53,0x41]),[_0x4b05a5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b05a5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b05a5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x45490e[_0x4b05a5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b05a5([0x6e,0x61,0x6d,0x65])]:_0x4b05a5([0x45,0x43,0x44,0x53,0x41]),[_0x4b05a5([0x68,0x61,0x73,0x68])]:{[_0x4b05a5([0x6e,0x61,0x6d,0x65])]:_0x4b05a5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1ecbfa,_0x53eb82,_0x1716c7)||(_0x51fa82=!0x1);}}function _0xcc8056(_0x3d6b8a){return _0x3d6b8a[_0x4b05a5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b05a5([0x65,0x79]))?JSON[_0x4b05a5([0x70,0x61,0x72,0x73,0x65])](_0x542be3(_0x3d6b8a)):null;}function _0x542be3(_0x38975e){return window[_0x4b05a5([0x61,0x74,0x6f,0x62])](_0x38975e[_0x4b05a5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b05a5([0x2b]))[_0x4b05a5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b05a5([0x2f])));}function _0x11ca02(_0x3a24e4){let _0xed167f=0x1505;function _0x275bc0(_0x1360df){for(let _0x916902=0x0;_0x916902<_0x1360df[_0x4b05a5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x916902++){const _0x2f6505=_0x1360df[_0x4b05a5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x916902);_0xed167f=(_0xed167f<<0x5)+_0xed167f+_0x2f6505,_0xed167f&=_0xed167f;}}function _0x229953(_0x4eaa0b){Array[_0x4b05a5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4eaa0b)?_0x4eaa0b[_0x4b05a5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x229953):_0x4eaa0b&&typeof _0x4eaa0b==_0x4b05a5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b05a5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4eaa0b)[_0x4b05a5([0x73,0x6f,0x72,0x74])]()[_0x4b05a5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5494b9,_0x33c481])=>{_0x275bc0(_0x5494b9),_0x229953(_0x33c481);}):_0x275bc0(window[_0x4b05a5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4eaa0b));}return _0x229953(_0x3a24e4),_0xed167f>>>0x0;}function _0x57d524(_0x4bb2d1){return _0x4bb2d1[_0x4b05a5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b05a5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b05a5([0x30]));}function _0x386311(_0x4080fc){return _0x4080fc[_0x4b05a5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b05a5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b05a5([0x6a,0x6f,0x69,0x6e])]('');}function _0xf0798c(){}function _0x4b05a5(_0x22dde8){return _0x22dde8['map'](_0xe18f4d=>String['fromCharCode'](_0xe18f4d))['join']('');}_0x3d39d4(await _0x4936a3());}(this);}['_initSchema'](){const _0x210ac3=this['editor']['model']['schema'];_0x210ac3['isRegistered']('imageBlock')&&_0x210ac3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x210ac3['isRegistered']('imageInline')&&_0x210ac3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x37e3fb=this['editor'];_0x37e3fb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x37e3fb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3c4a97=>_0x3c4a97['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x542034=_0x37e3fb['commands']['get']('replaceImageSource');_0x542034&&this['listenTo'](_0x542034,'cleanupImage',(_0x3dcc66,[_0x5e8ec4,_0x5159aa])=>{_0x5e8ec4['removeAttribute']('uploadcareImageId',_0x5159aa);});}['_initConfig'](){const _0x213495=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5ccb49=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3f19e5(_0x394f5b['document'],'uc-config',{..._0x213495,'pubkey':_0x5ccb49,'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']=_0x33dc4c=>{if('closeMax'==_0x33dc4c)return'#uc-icon-arrow-down';},_0x394f5b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3f19e5(_0x394f5b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x394f5b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x32d12b=this['editor']['commands']['get']('insertImage');_0x32d12b&&this['listenTo'](_0x32d12b,'execute',()=>{const _0x366b40=this['editor']['model']['document']['selection']['getSelectedElement']();_0x366b40&&_0x366b40['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x366b40);});});const _0x268522=this['editor']['commands']['get']('uploadcareImageReplace');_0x268522&&this['listenTo'](_0x268522,'execute',()=>{const _0x5501fe=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5501fe&&_0x5501fe['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5501fe);});});}}class Uploadcare extends _0x2b6d11{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36d9e4){super(_0x36d9e4),_0x36d9e4['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x52a05b['defineComponents'](_0x52a05b),this['_defineLocale']();}['_defineLocale'](){const _0x4c5728=this['editor']['config']['get']('uploadcare.locale'),_0x1ee071=this['editor']['locale']['contentLanguage'];_0x4c5728&&_0x52a05b['defineLocale'](_0x1ee071,_0x4c5728);}}class ii extends _0x50800c{constructor(_0x20a1a4){super(_0x20a1a4);const t=_0x20a1a4['t'],_0x4b89b7=this['bindTemplate'],_0x392244=new _0x54e807();_0x392244['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':[_0x392244,{'text':_0x4b89b7['to']('imageUploadProgress',_0x4d938d=>t('Loading\x20image...')+'\x20('+(_0x4d938d||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 _0x50800c{constructor(_0x25f7f0){super(_0x25f7f0);const t=_0x25f7f0['t'];this['set']('errorType',null);const _0x2fc755=new _0x15678c(_0x25f7f0);_0x2fc755['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2fc755['withText']=!0x0,_0x2fc755['class']='ck-button-action',_0x2fc755['on']('execute',()=>{this['fire']('retry');}),_0x2fc755['bind']('isVisible')['to'](this,'errorType',_0x1c96bb=>'NotFound'!==_0x1c96bb);const _0x243d80=new _0x50678c();_0x243d80['content']=_0x31d45f,_0x243d80['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x17515b=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':[_0x243d80,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x17515b['to']('errorType',_0x2fcc09=>t('NotFound'!==_0x2fcc09?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2fc755]},{'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 _0x50800c{constructor(_0x1546bc,_0x4f2ec9){super(_0x1546bc);const _0x1efaec=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4f2ec9,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1efaec['to']('imageSrc')}});}}class W extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5b6631,_0x4e74a2,_0x3ff20b){super(_0x5b6631),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5b6631),this['_errorView']=new ti(_0x5b6631),this['_editingView']=new ei(_0x5b6631,_0x3ff20b),this['_focusableView']=new _0x50800c(_0x5b6631),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4e74a2),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'],_0x5a8048=>{this['_addUploadcareImageEditorListeners'](_0x5a8048);});}),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'](_0x23939f,_0x16c327){const _0x11ffe0='uc-cloud-image-editor',_0x1aa428=_0x23939f['querySelector'](_0x11ffe0);if(_0x1aa428)return _0x16c327(_0x1aa428);const _0x12e8bc=new MutationObserver(_0x541e65=>{const _0x53c7c7=_0x541e65['filter'](_0x5519f5=>_0x5519f5['target']===_0x23939f&&_0x5519f5['addedNodes']['length']>0x0&&_0x5519f5['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x11ffe0);_0x53c7c7['length']&&(_0x12e8bc['disconnect'](),_0x16c327(_0x53c7c7[0x0]['addedNodes'][0x0]));});_0x12e8bc['observe'](_0x23939f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x34f99a){_0x34f99a['addEventListener']('apply',_0x32f520=>{this['fire']('apply',{'imageSrc':_0x32f520['detail']['cdnUrl']});}),_0x34f99a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x9bf5c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x24a485,_0x3aa9b7,_0x3d597a){super(),this['_editor']=_0x24a485,this['_dialog']=_0x3aa9b7,this['_imageElement']=_0x3d597a,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 _0x1254f8=this['_imageElement'],_0x4634d9=_0x1254f8['getAttribute']('uploadcareImageId'),_0x247c22=_0x1254f8['getAttribute']('src');if(_0x4634d9)await this['_loadImageInfo'](_0x4634d9,_0x247c22);else{if(this['_imageCache']['has'](_0x247c22)){const _0xfc2566=this['_imageCache']['get'](_0x247c22);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xfc2566['url'],this['imageDimension']=_0xfc2566['dimension'],this['imageId']=_0xfc2566['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x348668}=this['_editor'],t=_0x348668['t'],_0x2bf143=new W(_0x348668,this['imageStatus'],this['_attributes']);_0x2bf143['bind']('status')['to'](this,'imageStatus'),_0x2bf143['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2bf143['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2bf143['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2bf143,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4fd8fc,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2bf143,'position':_0x51ef26['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2bf143['focus']();},'onHide':()=>{_0x2bf143['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4cd9bd=>!C(_0x4cd9bd,_0x2bf143['element'])}});}['_loadImageInfo'](_0x508f1a,_0x564a65){return j['getInfo'](_0x508f1a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x309e4e=>{const {width:_0x15b686,height:_0x520104}=_0x309e4e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x564a65,this['imageDimension']={'width':_0x15b686,'height':_0x520104},this['imageId']=_0x508f1a;})['catch'](_0x1497e1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1497e1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x89552b,_0x2a60f1){return this['_getImageAsFile'](_0x89552b)['then'](_0x2dc8a4=>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':_0x2a60f1['signal'],'file':_0x2dc8a4,'onProgress':_0x52d88e=>{_0x52d88e&&_0x52d88e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x52d88e['value']));}}))['then'](_0x23586a=>{const {width:_0x161de7,height:_0x40d4ad}=_0x23586a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x23586a['cdnUrl'],this['imageDimension']={'width':_0x161de7,'height':_0x40d4ad},this['imageId']=_0x23586a['uuid'],this['imageUploadProgress']=null;const _0xf58cea=_0x89552b['getAttribute']('src');this['_imageCache']['set'](_0xf58cea,{'id':_0x23586a['uuid'],'url':_0x23586a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x34c355=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x34c355['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x391ddb,_0x36d347){_0x391ddb['on']('apply',(_0x473daa,_0x340c90)=>{this['_replaceImage'](_0x36d347,_0x340c90['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x391ddb['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x391ddb['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5b79f5,_0x81a12b,_0x46ef73){const _0x2ae127=this['_editor'],{width:_0x56827e,height:_0x396136}=x(_0x81a12b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x19b989,imageSources:_0x264a9f}=A(_0x81a12b,_0x56827e);_0x2ae127['model']['change'](_0x10122f=>{if('$graveyard'===_0x5b79f5['root']['rootName']){_0x2ae127['execute']('insertImage',{'imageType':_0x5b79f5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5b79f5['getAttributes']()),'uploadcareImageId':_0x46ef73,'src':_0x19b989,'sources':_0x264a9f,'width':_0x56827e,'height':_0x396136}});const _0x37ee69=_0x5b79f5['getChildren']();_0x5b79f5=_0x2ae127['model']['document']['selection']['getSelectedElement']();for(const _0x28f9e5 of _0x37ee69)_0x10122f['append'](_0x10122f['cloneElement'](_0x28f9e5),_0x5b79f5);}else _0x10122f['setSelection'](_0x5b79f5,'on'),_0x2ae127['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5b79f5['getAttributes']()),'uploadcareImageId':_0x46ef73,'src':_0x19b989,'sources':_0x264a9f,'width':_0x56827e,'height':_0x396136},_0x5b79f5);_0x10122f['setSelection'](_0x5b79f5,'on');});}async['_getImageAsFile'](_0x4ab4fb){const _0x623a19=_0x394f5b['window'],_0x502183=_0x394f5b['document']['location']['href'],_0x157295=new _0x623a19['URL'](_0x4ab4fb['getAttribute']('src'),_0x502183);if('data:'===_0x157295['protocol']){const _0x59ab3c=_0x157295['href']['split'](','),_0x32eccd=_0x59ab3c[0x0]['match'](/:(.*?);/)[0x1],_0xaf42f2=_0x32eccd['split']('/')[0x1],_0x447abe=_0x623a19['atob'](_0x59ab3c[_0x59ab3c['length']-0x1]);let _0x1bff09=_0x447abe['length'];const _0x2d40aa=new _0x623a19['Uint8Array'](_0x1bff09);for(;_0x1bff09--;)_0x2d40aa[_0x1bff09]=_0x447abe['charCodeAt'](_0x1bff09);return new _0x623a19['File']([_0x2d40aa],'image.'+_0xaf42f2,{'type':_0x32eccd});}const _0x117168=_0x157295['href']['split']('/'),_0x11292c=_0x117168[_0x117168['length']-0x1],_0xa614e1=_0x11292c['split']('.')[0x1];return _0x623a19['fetch'](_0x157295['href'])['then'](_0x460924=>_0x460924['clone']()['blob']())['then'](_0x1601d5=>new _0x623a19['File']([_0x1601d5],_0x11292c,{'type':'image/'+_0xa614e1}));}}class Q extends _0x59176d{['imageEditController'];static get['requires'](){return[_0x39fefa];}['_isEditable'];constructor(_0x2e27c6){super(_0x2e27c6),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x961c65){const _0x3532dc=z(_0x961c65);return _0x3cccae=>!(!_0x3cccae||!_0x3cccae['is']('element','imageBlock')&&!_0x3cccae['is']('element','imageInline'))&&(!!_0x3cccae['hasAttribute']('uploadcareImageId')||!!_0x3cccae['hasAttribute']('src')&&_0x3532dc(_0x3cccae['getAttribute']('src')));}(_0x2e27c6['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2e63c1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2e63c1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x50e854=this['editor']['model']['document']['selection']['getSelectedElement']();_0x50e854&&(_0x50e854['is']('element','imageBlock')||_0x50e854['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x39fefa),_0x50e854),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class S extends _0x59176d{['refresh'](){const _0x38de0f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x38de0f&&(_0x38de0f['is']('element','imageBlock')||_0x38de0f['is']('element','imageInline')));}['execute'](_0x3f7bc8){const _0x31e910=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x179771=>{_0x179771['setAttributes'](_0x3f7bc8,_0x31e910),_0x179771['removeAttribute']('srcset',_0x31e910),_0x179771['removeAttribute']('sizes',_0x31e910);});}}class m extends _0x2b6d11{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x16110d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5bbffa}=this;_0x5bbffa['commands']['add']('uploadcareImageEdit',new Q(_0x5bbffa)),_0x5bbffa['commands']['add']('uploadcareImageReplace',new S(_0x5bbffa));}}class g extends _0x2b6d11{['_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 _0x2d4782=this['editor'];_0x2d4782['ui']['componentFactory']['add']('uploadcareImageEdit',_0x134a0a=>{const _0x1f7b21=_0x2d4782['commands']['get']('uploadcareImageEdit'),_0x4636fc=new _0x15678c(_0x134a0a),t=_0x134a0a['t'];return _0x4636fc['set']({'icon':_0x4fd8fc,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4636fc['bind']('isEnabled')['to'](_0x1f7b21),_0x4636fc['bind']('isOn')['to'](_0x1f7b21,'isActive'),this['listenTo'](_0x4636fc,'execute',()=>{_0x2d4782['execute']('uploadcareImageEdit'),_0x2d4782['editing']['view']['focus']();}),_0x4636fc;}),this['_initConfig']();}['_initConfig'](){const _0x3c6ae9=_0x3f19e5(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3c6ae9),this['listenTo'](this['editor'],'destroy',()=>{_0x3c6ae9['remove']();});}}class UploadcareImageEdit extends _0x2b6d11{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Uploadcare,w as UploadcareCommand,o as UploadcareEditing,UploadcareImageEdit,Q 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':_0x100009=>0x1!=_0x100009}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3fa933=>{const {af:{dictionary:_0x2e164b,getPluralForm:_0x5453fc}}={'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':_0x1c9ec3=>0x1!=_0x1c9ec3}};_0x3fa933['af']||={'dictionary':{},'getPluralForm':null},_0x3fa933['af']['dictionary']=Object['assign'](_0x3fa933['af']['dictionary'],_0x2e164b),_0x3fa933['af']['getPluralForm']=_0x5453fc;})(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':_0x468731=>0x0==_0x468731?0x0:0x1==_0x468731?0x1:0x2==_0x468731?0x2:_0x468731%0x64>=0x3&&_0x468731%0x64<=0xa?0x3:_0x468731%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x284f0e=>{const {ar:{dictionary:_0xbd34c5,getPluralForm:_0x8b86d6}}={'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':_0xb2ef50=>0x0==_0xb2ef50?0x0:0x1==_0xb2ef50?0x1:0x2==_0xb2ef50?0x2:_0xb2ef50%0x64>=0x3&&_0xb2ef50%0x64<=0xa?0x3:_0xb2ef50%0x64>=0xb?0x4:0x5}};_0x284f0e['ar']||={'dictionary':{},'getPluralForm':null},_0x284f0e['ar']['dictionary']=Object['assign'](_0x284f0e['ar']['dictionary'],_0xbd34c5),_0x284f0e['ar']['getPluralForm']=_0x8b86d6;})(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':_0xdb597a=>0x1!=_0xdb597a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1bc058=>{const {ast:{dictionary:_0x253a44,getPluralForm:_0x220661}}={'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':_0x3d0327=>0x1!=_0x3d0327}};_0x1bc058['ast']||={'dictionary':{},'getPluralForm':null},_0x1bc058['ast']['dictionary']=Object['assign'](_0x1bc058['ast']['dictionary'],_0x253a44),_0x1bc058['ast']['getPluralForm']=_0x220661;})(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':_0x13e7a9=>0x1!=_0x13e7a9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xd56324=>{const {az:{dictionary:_0x3fea50,getPluralForm:_0x42bcbc}}={'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':_0x1e4469=>0x1!=_0x1e4469}};_0xd56324['az']||={'dictionary':{},'getPluralForm':null},_0xd56324['az']['dictionary']=Object['assign'](_0xd56324['az']['dictionary'],_0x3fea50),_0xd56324['az']['getPluralForm']=_0x42bcbc;})(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':_0x2adb8f=>_0x2adb8f%0xa==0x1&&_0x2adb8f%0x64!=0xb?0x0:_0x2adb8f%0xa>=0x2&&_0x2adb8f%0xa<=0x4&&(_0x2adb8f%0x64<0xa||_0x2adb8f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3b1afe=>{const {be:{dictionary:_0x5753fe,getPluralForm:_0xc5f3c8}}={'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':_0x5315dd=>_0x5315dd%0xa==0x1&&_0x5315dd%0x64!=0xb?0x0:_0x5315dd%0xa>=0x2&&_0x5315dd%0xa<=0x4&&(_0x5315dd%0x64<0xa||_0x5315dd%0x64>=0x14)?0x1:0x2}};_0x3b1afe['be']||={'dictionary':{},'getPluralForm':null},_0x3b1afe['be']['dictionary']=Object['assign'](_0x3b1afe['be']['dictionary'],_0x5753fe),_0x3b1afe['be']['getPluralForm']=_0xc5f3c8;})(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':_0x484857=>0x1!=_0x484857}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2c5724=>{const {bg:{dictionary:_0x491e85,getPluralForm:_0x3f653b}}={'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':_0x56b0b4=>0x1!=_0x56b0b4}};_0x2c5724['bg']||={'dictionary':{},'getPluralForm':null},_0x2c5724['bg']['dictionary']=Object['assign'](_0x2c5724['bg']['dictionary'],_0x491e85),_0x2c5724['bg']['getPluralForm']=_0x3f653b;})(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':_0x3ade7c=>0x1!=_0x3ade7c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x897eb1=>{const {bn:{dictionary:_0x44fb5b,getPluralForm:_0x296613}}={'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':_0xd51878=>0x1!=_0xd51878}};_0x897eb1['bn']||={'dictionary':{},'getPluralForm':null},_0x897eb1['bn']['dictionary']=Object['assign'](_0x897eb1['bn']['dictionary'],_0x44fb5b),_0x897eb1['bn']['getPluralForm']=_0x296613;})(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':_0x5d5b34=>_0x5d5b34%0xa==0x1&&_0x5d5b34%0x64!=0xb?0x0:_0x5d5b34%0xa>=0x2&&_0x5d5b34%0xa<=0x4&&(_0x5d5b34%0x64<0xa||_0x5d5b34%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1d7ae4=>{const {bs:{dictionary:_0x247818,getPluralForm:_0x3715c4}}={'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':_0x17a678=>_0x17a678%0xa==0x1&&_0x17a678%0x64!=0xb?0x0:_0x17a678%0xa>=0x2&&_0x17a678%0xa<=0x4&&(_0x17a678%0x64<0xa||_0x17a678%0x64>=0x14)?0x1:0x2}};_0x1d7ae4['bs']||={'dictionary':{},'getPluralForm':null},_0x1d7ae4['bs']['dictionary']=Object['assign'](_0x1d7ae4['bs']['dictionary'],_0x247818),_0x1d7ae4['bs']['getPluralForm']=_0x3715c4;})(window['CKEDITOR_TRANSLATIONS']||={});
|