@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251217.0 → 0.0.0-nightly-next-20251217.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x4c2b2b,Command as _0xdf261e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x190db1,IconGooglePhotos as _0x1df512,IconGoogleDrive as _0x11e068,IconFacebook as _0x55cad8,IconDropbox as _0x3e9d46,IconUploadcareLink as _0x3ed851,IconUploadcareImageUpload as _0x42f501,IconError as _0x7a88b1,IconUploadcareImageEdit as _0x5b5fd2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3ffee1,MenuBarMenuListItemButtonView as _0x18a607,View as _0x55a351,FocusCycler as _0x2f6bc7,Dialog as _0x47f1d3,DialogViewPosition as _0x2c14bf,SpinnerView as _0x1b96d5,IconView as _0x135ad1,Notification as _0x89b416}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3605a3,DomEmitterMixin as _0x377431,global as _0x4d4494,getAncestors as _0x3a1b3b,ObservableMixin as _0x2c7dc0,uid as _0x3fad94,createElement as _0xbe58ad}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xb62a3e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2e9f92,info as _0x35c1bd}from'@uploadcare/upload-client';import*as _0x8c1e0d from'@uploadcare/file-uploader';var i=function(_0x3b0c87){return _0x3b0c87['Local']='local',_0x3b0c87['URL']='url',_0x3b0c87['Dropbox']='dropbox',_0x3b0c87['GDrive']='gdrive',_0x3b0c87['Facebook']='facebook',_0x3b0c87['GPhotos']='gphotos',_0x3b0c87['OneDrive']='onedrive',_0x3b0c87;}({});function _(_0x4606b1,_0x23c69f,_0x29efb2){const t=_0x4606b1['t'],_0x380c5d=_0x4606b1['t'];switch(_0x23c69f){case i['Local']:return{'text':_0x380c5d('Insert'===_0x29efb2?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x380c5d('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x29efb2?_0x380c5d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x380c5d('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x29efb2?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x29efb2?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x29efb2?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x29efb2?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x29efb2?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x23c69f;}}class e extends _0x4c2b2b{['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 _0xd1e9c7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xfbd319;for(const _0x5853b0 in _0xd1e9c7){const _0x2ff176=_0x5853b0,_0x67c1fe=_0xd1e9c7[_0x2ff176];if('uploadcareLicenseKeyValid'==_0x67c1fe||'uploadcareLicenseKeyInvalid'==_0x67c1fe||'uploadcareLicenseKeyExpired'==_0x67c1fe||'uploadcareLicenseKeyDomainLimit'==_0x67c1fe||'uploadcareLicenseKeyNotAllowed'==_0x67c1fe||'uploadcareLicenseKeyEvaluationLimit'==_0x67c1fe||'uploadcareLicenseKeyTrialLimit'==_0x67c1fe||'uploadcareLicenseKeyUsageLimit'==_0x67c1fe){delete _0xd1e9c7[_0x2ff176],_0xfbd319=_0x67c1fe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xfbd319&&_0xd1e9c7['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xfbd319&&_0xd1e9c7['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xfbd319&&_0xd1e9c7['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xfbd319&&_0xd1e9c7['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xfbd319&&_0xd1e9c7['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xfbd319&&_0xd1e9c7['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xfbd319&&_0xd1e9c7['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x20dc7c}=this,_0x587c6f=_0x20dc7c['commands']['get']('uploadcare');if(!_0x587c6f)return;const _0x3222db=this['_normalizeConfigSourceList'](_0x20dc7c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x42820f,_0x5d6437)=>{const _0x614bca=this['_getIntegrationKey'](_0x5d6437['type']);return _0x42820f[_0x614bca]||(_0x42820f[_0x614bca]=[]),_0x42820f[_0x614bca]['push'](_0x5d6437),_0x42820f;},{});_0x20dc7c['plugins']['has']('ImageInsertUI')&&_0x20dc7c['commands']['get']('uploadcare')&&Object['entries'](_0x3222db)['forEach'](([_0x2226b6,_0x309d3a])=>{_0x20dc7c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2226b6,'observable':()=>_0x587c6f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x309d3a),'formViewCreator':()=>this['_createDropdownButtons'](_0x309d3a),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x309d3a),'override':'assetManager'!==_0x2226b6});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4a7c1e){const {locale:_0x1a6f95}=this['editor'];return _0x4a7c1e['map'](_0x2bb957=>{const _0x3bb261=_(_0x1a6f95,_0x2bb957,'Insert');switch(_0x2bb957){case i['Local']:return{'icon':_0x42f501,'type':i['Local'],..._0x3bb261};case i['URL']:return{'icon':_0x3ed851,'type':i['URL'],..._0x3bb261};case i['Dropbox']:return{'icon':_0x3e9d46,'type':i['Dropbox'],..._0x3bb261};case i['Facebook']:return{'icon':_0x55cad8,'type':i['Facebook'],..._0x3bb261};case i['GDrive']:return{'icon':_0x11e068,'type':i['GDrive'],..._0x3bb261};case i['GPhotos']:return{'icon':_0x1df512,'type':i['GPhotos'],..._0x3bb261};case i['OneDrive']:return{'icon':_0x190db1,'type':i['OneDrive'],..._0x3bb261};}});}['_getIntegrationKey'](_0x59e611){switch(_0x59e611){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5cb39e,_0x2f8aa1){const _0x3b959a=this['editor'],_0x14e23d=new _0x5cb39e(_0x3b959a['locale']),_0x5056f4=_0x3b959a['commands']['get']('uploadcare');return _0x14e23d['bind']('isEnabled')['to'](_0x5056f4),_0x14e23d['on']('execute',()=>{_0x5056f4['execute'](_0x2f8aa1);}),_0x14e23d;}['_createToolbarButton'](_0x23d9ac){const {locale:_0x251b90}=this['editor'],_0x59a96c=this['editor']['plugins']['get']('ImageInsertUI'),_0x50f25a=_0x23d9ac[0x0],_0xd6b8ed=this['_createButton'](_0x3ffee1,_0x50f25a['type']);return _0xd6b8ed['icon']=_0x50f25a['icon'],_0xd6b8ed['bind']('label')['to'](_0x59a96c,'isImageSelected',_0x546c97=>_(_0x251b90,_0x50f25a['type'],_0x546c97?'Replace':'Insert')['text']),_0xd6b8ed['tooltip']=!0x0,_0xd6b8ed;}['_createDropdownButtons'](_0x53d64e){const {locale:_0x26fbbe}=this['editor'],_0x44c209=this['editor']['plugins']['get']('ImageInsertUI');return _0x53d64e['map'](_0xa4544d=>{const _0x466212=this['_createButton'](_0x3ffee1,_0xa4544d['type']);return _0x466212['withText']=!0x0,_0x466212['icon']=_0xa4544d['icon'],_0x466212['bind']('label')['to'](_0x44c209,'isImageSelected',_0x47557c=>_(_0x26fbbe,_0xa4544d['type'],_0x47557c?'Replace':'Insert')['text']),_0x466212;});}['_createMenuBarButtons'](_0x248e67){return _0x248e67['map'](_0x532f71=>{const _0x797d55=this['_createButton'](_0x18a607,_0x532f71['type']);return _0x797d55['icon']=_0x532f71['icon'],_0x797d55['label']=_0x532f71['shortText'],_0x797d55;});}}class V extends _0x55a351{['focusTracker'];['focusCycler'];constructor(_0x53276b){super(_0x53276b),this['focusTracker']=new _0x3605a3(),this['focusCycler']=new _0x2f6bc7({'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 S extends V{constructor(_0x55ce32,_0x51366d){super(_0x55ce32),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-'+_0x51366d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1ac839,_0x408064){const _0x1b8c9b=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x6ec77c=>_0x6ec77c<=_0x408064)['map'](_0x2551fc=>_0x1ac839['replace'](/\/$/,'')+'/-/resize/'+_0x2551fc+'x/\x20'+_0x2551fc+'w');return{'imageFallbackUrl':_0x1ac839,'imageSources':[{'srcset':_0x1b8c9b['join'](',\x20'),'sizes':'(max-width:\x20'+_0x408064+'px)\x20100vw,\x20'+_0x408064+'px','type':'image/webp'}]};}function F(_0x433d0d,_0x5214de,_0x159b50){const _0x59803b=_0x433d0d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x59803b?parseInt(_0x59803b[0x1],0xa):_0x5214de,'height':_0x59803b?parseInt(_0x59803b[0x2],0xa):_0x159b50};}function p(_0x182836,_0x1174dd){const _0x592f1f=new(_0x377431())(),_0x1a3489=_0x182836['plugins']['get']('ImageUtils'),_0x42204a=_0x182836['editing']['mapper']['toViewElement'](_0x1174dd),_0x3126bd=_0x1a3489['findViewImgElement'](_0x42204a),_0x35159b=_0x182836['editing']['view']['domConverter']['viewToDom'](_0x3126bd),_0x187fe2=_0x1174dd['getAttribute']('width'),_0x79acf=_0x1174dd['getAttribute']('height'),_0x2a2bae='image-processing';_0x182836['editing']['view']['change'](_0x14eccf=>{_0x14eccf['addClass'](_0x2a2bae,_0x42204a),_0x14eccf['setStyle']('aspect-ratio',_0x187fe2+'/'+_0x79acf,_0x3126bd);}),_0x592f1f['listenTo'](_0x35159b,'load',()=>{_0x592f1f['stopListening'](_0x35159b,'load'),_0x182836['editing']['view']['change'](_0x229aa4=>{_0x229aa4['removeClass'](_0x2a2bae,_0x42204a),_0x229aa4['removeStyle']('aspect-ratio',_0x3126bd);});});}function R(_0x2e6a6d){if(Array['isArray'](_0x2e6a6d)){const _0x166596=_0x2e6a6d['map'](R);return _0x34a0b2=>_0x166596['some'](_0x3f5a7a=>_0x3f5a7a(_0x34a0b2));}if('origin'==_0x2e6a6d){const _0x4f5653=_0x4d4494['window']['location']['origin'];return _0x16e4c5=>new URL(_0x16e4c5,_0x4d4494['document']['baseURI'])['origin']==_0x4f5653;}return'function'==typeof _0x2e6a6d?_0x2e6a6d:_0x2e6a6d instanceof RegExp?_0x713aa4=>!(!_0x713aa4['match'](_0x2e6a6d)&&!_0x713aa4['replace'](/^https?:\/\//,'')['match'](_0x2e6a6d)):()=>!0x1;}function M(_0x5ebb70,_0x388c0a){return _0x3a1b3b(_0x5ebb70['target'])['includes'](_0x388c0a);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2c7dc0(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2021bb,_0x5195a0,_0xcf9075){super(),this['_editor']=_0x2021bb,this['_editing']=_0x5195a0,this['_dialog']=_0x2021bb['plugins']['get'](_0x47f1d3),this['_api']=_0x5195a0['ctxElement']['getAPI'](),this['_type']=_0xcf9075,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:_0x567e18,model:_0x119277}=this['_editor'],_0x71bd50=_0x119277['document']['selection']['getSelectedElement'](),_0x141dbf=_0x71bd50&&(_0x71bd50['is']('element','imageBlock')||_0x71bd50['is']('element','imageInline'));this['_formView']=new S(_0x567e18,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x42f501,'title':_(_0x567e18,this['_type'],_0x141dbf?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2c14bf['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x11074a=>!M(_0x11074a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4b2206}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3a2574=>{const _0x371d04=_0x4b2206['length'];for(const _0x5376b4 of _0x4b2206){const _0x141124=_0x5376b4===_0x4b2206[_0x371d04-0x1],{cdnUrl:_0x4d3133,fileInfo:_0x57474d}=_0x5376b4;if(!_0x4d3133||!_0x57474d)continue;const {width:_0x3f83b2,height:_0x1422de}=_0x57474d['imageInfo'],_0x4d515b=F(_0x4d3133,_0x3f83b2,_0x1422de),_0x56daa9=C(_0x4d3133,_0x4d515b['width']),_0x509194={'id':_0x57474d['uuid'],'type':'image','attributes':{'imageDimension':_0x4d515b,..._0x56daa9}};this['_insertAsset'](_0x509194,_0x141124,_0x3a2574);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x6dd313=>{'idle'===_0x6dd313['detail']['status']&&!_0x6dd313['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1a216f,_0x3d2bc5,_0x4244aa){const _0x164ee9=this['_editor']['model']['document']['selection'],_0x51b081=_0x164ee9['getSelectedElement'](),_0x2b96d4=!(!_0x51b081||!_0x51b081['is']('element','imageInline'));_0x4244aa['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1a216f,_0x2b96d4),_0x3d2bc5||_0x4244aa['setSelection'](_0x164ee9['getLastPosition']());}['_insertImage'](_0x560eaa,_0x3e9b3b){const _0xb6989=this['_editor'],{imageDimension:_0x33e56e,imageFallbackUrl:_0x174d8e,imageSources:_0x39fa42}=_0x560eaa['attributes'];_0xb6989['execute']('insertImage',{'imageType':_0x3e9b3b?'imageInline':null,'source':{'uploadcareImageId':_0x560eaa['id'],'src':_0x174d8e,'sources':_0x39fa42,..._0x33e56e}});}}class w extends _0xdf261e{['_editing'];['_controller']=null;static get['requires'](){return[_0x47f1d3,o];}constructor(_0x3943be){super(_0x3943be),this['_editing']=_0x3943be['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x594da1){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x594da1);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5ddf5f,..._0x7aee8a}){return _0x2e9f92(_0x5ddf5f,_0x7aee8a);}static['getInfo'](_0x3e2846,_0x69f093){return _0x35c1bd(_0x3e2846,_0x69f093);}}class f extends _0x4c2b2b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xb62a3e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x594261=this['editor'];if(!!!_0x594261['config']['get']('uploadcare'))return;_0x594261['plugins']['get'](_0xb62a3e)['createUploadAdapter']=_0x1a8dc2=>new k(_0x1a8dc2,_0x594261),_0x594261['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x573627,{imageElement:_0x51ba3f,data:_0x322679})=>{_0x594261['model']['change'](_0xb17c4b=>{_0xb17c4b['setAttribute']('uploadcareImageId',_0x322679['uploadcareImageId'],_0x51ba3f);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4594e5,_0x2952a4){this['loader']=_0x4594e5,this['editor']=_0x2952a4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xf47d78=await this['loader']['file'];return j['upload']({'file':_0xf47d78,'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':_0x18b262=>{_0x18b262&&_0x18b262['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x18b262['value']);}})['then'](async _0x176172=>{const {imageFallbackUrl:_0x5b666d,imageSources:_0x8a3df3}=C(_0x176172['cdnUrl'],_0x176172['imageInfo']['width']);return{'uploadcareImageId':_0x176172['uuid'],'default':_0x5b666d,'sources':_0x8a3df3};})['catch'](()=>{const _0x2b58ad=t('Cannot\x20upload\x20file:')+('\x20'+_0xf47d78['name']+'.');return Promise['reject'](_0x2b58ad);});}['abort'](){this['controller']['abort']();}}class o extends _0x4c2b2b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x47f1d3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x10395f){super(_0x10395f),this['ucContextId']=_0x3fad94();}['init'](){const _0x16fe6b=this['editor'];_0x16fe6b['commands']['add']('uploadcare',new w(_0x16fe6b));}['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 _0x5bc2cb=_0x4d4494['document']['querySelector']('input[uploadcare-file-input]');_0x5bc2cb&&_0x5bc2cb['remove']();}),async function(_0x32235f){const _0x10fe2e=_0x207c7c([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]),_0x523672=0x535f8c3a,_0xb6c26d=0x5358f012^_0x523672,_0x1c8d7d=window[_0x207c7c([0x44,0x61,0x74,0x65])][_0x207c7c([0x6e,0x6f,0x77])](),_0x1f3bc0=_0x32235f[_0x207c7c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1eebfa=new window[(_0x207c7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17612e=>{_0x1f3bc0[_0x207c7c([0x6f,0x6e,0x63,0x65])](_0x207c7c([0x72,0x65,0x61,0x64,0x79]),_0x17612e);}),_0x4b686e={[_0x207c7c([0x6b,0x74,0x79])]:_0x207c7c([0x45,0x43]),[_0x207c7c([0x75,0x73,0x65])]:_0x207c7c([0x73,0x69,0x67]),[_0x207c7c([0x63,0x72,0x76])]:_0x207c7c([0x50,0x2d,0x32,0x35,0x36]),[_0x207c7c([0x78])]:_0x207c7c([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]),[_0x207c7c([0x79])]:_0x207c7c([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]),[_0x207c7c([0x61,0x6c,0x67])]:_0x207c7c([0x45,0x53,0x32,0x35,0x36])},_0x4a7c42=_0x1f3bc0[_0x207c7c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x207c7c([0x67,0x65,0x74])](_0x207c7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x56e22b(){let _0x307975,_0x44f71a=null,_0x4d3b6b=null;try{if(_0x4a7c42==_0x207c7c([0x47,0x50,0x4c]))return _0x207c7c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x307975=_0x234577(),!_0x307975)return _0x207c7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x307975[_0x207c7c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d3b6b=_0x213650(_0x307975[_0x207c7c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x307975[_0x207c7c([0x6a,0x74,0x69])])),await _0xacbecc()?_0x441e94()?_0x51f9d8()?_0x207c7c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xce8c25()?(_0x307975[_0x207c7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x207c7c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x44f71a=_0x1e937(_0x207c7c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x307975[_0x207c7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x207c7c([0x74,0x72,0x69,0x61,0x6c])&&(_0x44f71a=_0x1e937(_0x207c7c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x46fdfa()):_0x207c7c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x207c7c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x207c7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x207c7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x51f9d8(){const _0x39a620=[_0x207c7c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x207c7c([0x74,0x72,0x69,0x61,0x6c])][_0x207c7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x307975[_0x207c7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1c8d7d/0x3e8:0xe10*_0xb6c26d;return _0x307975[_0x207c7c([0x65,0x78,0x70])]<_0x39a620;}function _0x441e94(){const _0x280da8=_0x307975[_0x207c7c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x280da8&&(!!_0x280da8[_0x207c7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x207c7c([0x2a]))||!!_0x280da8[_0x207c7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x207c7c([0x55,0x50,0x4c,0x43])));}function _0xce8c25(){const _0x528017=_0x307975[_0x207c7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x528017||0x0==_0x528017[_0x207c7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x51f57c}=new URL(window[_0x207c7c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x528017[_0x207c7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51f57c))return!0x0;const _0x1a2009=_0x51f57c[_0x207c7c([0x73,0x70,0x6c,0x69,0x74])](_0x207c7c([0x2e]));return _0x528017[_0x207c7c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x566156=>_0x566156[_0x207c7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x207c7c([0x2a])))[_0x207c7c([0x6d,0x61,0x70])](_0x10228c=>_0x10228c[_0x207c7c([0x73,0x70,0x6c,0x69,0x74])](_0x207c7c([0x2e])))[_0x207c7c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1abe5c=>_0x1abe5c[_0x207c7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a2009[_0x207c7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x207c7c([0x6d,0x61,0x70])](_0x15ade6=>Array(_0x1a2009[_0x207c7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x15ade6[_0x207c7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x207c7c([0x66,0x69,0x6c,0x6c])](_0x15ade6[0x0]===_0x207c7c([0x2a])?_0x207c7c([0x2a]):'')[_0x207c7c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x15ade6))[_0x207c7c([0x73,0x6f,0x6d,0x65])](_0x45efa4=>_0x1a2009[_0x207c7c([0x65,0x76,0x65,0x72,0x79])]((_0x100e34,_0x434c73)=>_0x45efa4[_0x434c73]===_0x100e34||_0x45efa4[_0x434c73]===_0x207c7c([0x2a])));}function _0x46fdfa(){return _0x44f71a&&_0x4d3b6b?new window[(_0x207c7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8db4a8,_0x4568bb)=>{_0x44f71a[_0x207c7c([0x74,0x68,0x65,0x6e])](_0x8db4a8,_0x4568bb),_0x4d3b6b[_0x207c7c([0x74,0x68,0x65,0x6e])](_0x130752=>{_0x130752!=_0x207c7c([0x56,0x61,0x6c,0x69,0x64])&&_0x8db4a8(_0x130752);},_0x4568bb);}):_0x44f71a||_0x4d3b6b||_0x207c7c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x213650(_0x35cd64,_0x402128){return new window[(_0x207c7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4103ce=>{if(_0x4c2f3c())return _0x4103ce(_0x207c7c([0x56,0x61,0x6c,0x69,0x64]));_0x5aca7f(),_0x1f3bc0[_0x207c7c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x207c7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5583d1=!0x1;const _0x406062=_0x3fad94();function _0x263149(_0x3cb2e4){return!!_0x3cb2e4&&(typeof _0x3cb2e4===_0x207c7c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3cb2e4===_0x207c7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3cb2e4[_0x207c7c([0x74,0x68,0x65,0x6e])]===_0x207c7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3cb2e4[_0x207c7c([0x63,0x61,0x74,0x63,0x68])]===_0x207c7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x291b85(_0x2edca0){_0x96f07b(_0x2edca0)[_0x207c7c([0x74,0x68,0x65,0x6e])](_0x16e77b=>{if(!_0x16e77b||_0x16e77b[_0x207c7c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x207c7c([0x6f,0x6b]))return _0x207c7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe1b390(_0x25a8ad(_0x406062+_0x402128))!=_0x16e77b[_0x207c7c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x207c7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x207c7c([0x56,0x61,0x6c,0x69,0x64]);})[_0x207c7c([0x74,0x68,0x65,0x6e])](_0x24a353=>(_0x1a5022(),_0x24a353),()=>{const _0x2217f6=_0x27f5d2();return null==_0x2217f6?(_0x1a5022(),_0x207c7c([0x56,0x61,0x6c,0x69,0x64])):_0x207c7c(_0x1c8d7d-_0x2217f6>(0x7753083a^_0x523672)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x207c7c([0x74,0x68,0x65,0x6e])](_0x4103ce)[_0x207c7c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4103ce(_0x207c7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37d842=0x536962ba^_0x523672;function _0x1a5022(){const _0x4203bc=_0x207c7c([0x6c,0x6c,0x63,0x74,0x2d])+_0xe1b390(_0x25a8ad(_0x35cd64)),_0x118771=_0x23810a(_0xe1b390(window[_0x207c7c([0x4d,0x61,0x74,0x68])][_0x207c7c([0x63,0x65,0x69,0x6c])](_0x1c8d7d/_0x37d842)));window[_0x207c7c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x207c7c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4203bc,_0x118771);}function _0x27f5d2(){const _0x52986b=_0x207c7c([0x6c,0x6c,0x63,0x74,0x2d])+_0xe1b390(_0x25a8ad(_0x35cd64)),_0x2effda=window[_0x207c7c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x207c7c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52986b);return _0x2effda?window[_0x207c7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23810a(_0x2effda),0x10)*_0x37d842:null;}function _0x96f07b(_0x35d4d7){return new window[(_0x207c7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x573d5d,_0x51e982)=>{_0x35d4d7[_0x207c7c([0x74,0x68,0x65,0x6e])](_0x573d5d,_0x51e982),window[_0x207c7c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51e982,0x535e58fa^_0x523672);});}}_0x1f3bc0[_0x207c7c([0x6f,0x6e])](_0x207c7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc30266,_0x2eddc1)=>{if(_0x2eddc1[0x0]!=_0x35cd64)return _0x4103ce(_0x207c7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2eddc1[0x1]={..._0x2eddc1[0x1],[_0x207c7c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x406062};},{[_0x207c7c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x207c7c([0x68,0x69,0x67,0x68])}),_0x1f3bc0[_0x207c7c([0x6f,0x6e])](_0x207c7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44699a=>{_0x263149(_0x44699a[_0x207c7c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5583d1=!0x0,_0x291b85(_0x44699a[_0x207c7c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x207c7c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x207c7c([0x6c,0x6f,0x77])}),_0x1eebfa[_0x207c7c([0x74,0x68,0x65,0x6e])](()=>{_0x5583d1||_0x4103ce(_0x207c7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c2f3c(){return _0x1f3bc0[_0x207c7c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x207c7c([0x76,0x69,0x65,0x77])][_0x207c7c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x207c7c([0x61,0x75,0x74,0x6f]);}function _0x5aca7f(){_0x1f3bc0[_0x207c7c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x207c7c([0x76,0x69,0x65,0x77])][_0x207c7c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x207c7c([0x61,0x75,0x74,0x6f]);}}function _0x1e937(_0x4f4973){const _0x23fd2c=[new window[(_0x207c7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3de4b3=>setTimeout(_0x3de4b3,0x5356b2f6^_0x523672)),_0x1eebfa[_0x207c7c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x207c7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1acecd=>{let _0x573055=0x0;_0x1f3bc0[_0x207c7c([0x6d,0x6f,0x64,0x65,0x6c])][_0x207c7c([0x6f,0x6e])](_0x207c7c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x93461c,_0x1f85a4)=>{_0x1f85a4[0x0][_0x207c7c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x573055++,_0x573055==(0x535f8dc2^_0x523672)&&(_0x1acecd(),_0x93461c[_0x207c7c([0x6f,0x66,0x66])]());});}))];return window[_0x207c7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x207c7c([0x72,0x61,0x63,0x65])](_0x23fd2c)[_0x207c7c([0x74,0x68,0x65,0x6e])](()=>_0x4f4973);}async function _0xc1d6a4(){await _0x1eebfa,_0x1f3bc0[_0x207c7c([0x6d,0x6f,0x64,0x65,0x6c])][_0x207c7c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7c8d6b,_0x1f3bc0[_0x207c7c([0x6d,0x6f,0x64,0x65,0x6c])][_0x207c7c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7c8d6b,_0x1f3bc0[_0x207c7c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x207c7c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2dc7aa(_0x3d5473){const _0x1a0002=_0x44e057();_0x1f3bc0[_0x1a0002]=_0x207c7c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3d5473,_0x3d5473!=_0x207c7c([0x56,0x61,0x6c,0x69,0x64])&&_0xc1d6a4();}function _0x44e057(){const _0x5c0c2e=window[_0x207c7c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x207c7c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x207c7c([0x6e,0x6f,0x77])]())[_0x207c7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x207c7c([0x2e]),'');let _0xa89911=_0x207c7c([0x68]);for(let _0x21cbc4=0x0;_0x21cbc4<_0x5c0c2e[_0x207c7c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21cbc4+=0x2){let _0x53fe17=window[_0x207c7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c0c2e[_0x207c7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21cbc4,_0x21cbc4+0x2));_0x53fe17>=_0x10fe2e[_0x207c7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x53fe17-=_0x10fe2e[_0x207c7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa89911+=_0x10fe2e[_0x53fe17];}return _0xa89911;}function _0x234577(){const _0x7efb37=_0x4a7c42[_0x207c7c([0x73,0x70,0x6c,0x69,0x74])](_0x207c7c([0x2e]));if(0x3!=_0x7efb37[_0x207c7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x14a85e(_0x7efb37[0x1]);function _0x14a85e(_0x6cc1f9){const _0x2f5542=_0x102672(_0x6cc1f9);return _0x2f5542&&_0x5edc34()?_0x2f5542:null;function _0x5edc34(){const _0x131e1f=_0x2f5542[_0x207c7c([0x6a,0x74,0x69])],_0x349222=window[_0x207c7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x131e1f[_0x207c7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x131e1f[_0x207c7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x38ab19={..._0x2f5542,[_0x207c7c([0x6a,0x74,0x69])]:_0x131e1f[_0x207c7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x131e1f[_0x207c7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x38ab19[_0x207c7c([0x76,0x63])],_0x25a8ad(_0x38ab19)==_0x349222;}}}async function _0xacbecc(){let _0x111479=!0x0;try{const _0x3c4878=_0x4a7c42[_0x207c7c([0x73,0x70,0x6c,0x69,0x74])](_0x207c7c([0x2e])),[_0x24ffad,_0x2986b3,_0x40b1d3]=_0x3c4878;return _0x9a1187(_0x24ffad),await _0x16e571(_0x24ffad,_0x2986b3,_0x40b1d3),_0x111479;}catch{return!0x1;}function _0x9a1187(_0x430559){const _0xdcec46=_0x102672(_0x430559);_0xdcec46&&_0xdcec46[_0x207c7c([0x61,0x6c,0x67])]==_0x207c7c([0x45,0x53,0x32,0x35,0x36])||(_0x111479=!0x1);}async function _0x16e571(_0x2ebea2,_0x1b38a8,_0x196130){const _0x52bcc8=window[_0x207c7c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x207c7c([0x66,0x72,0x6f,0x6d])](_0x13fa4c(_0x196130),_0x2796e9=>_0x2796e9[_0x207c7c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1a67a3=new window[(_0x207c7c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x207c7c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ebea2+_0x207c7c([0x2e])+_0x1b38a8),_0x3537f0=window[_0x207c7c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x207c7c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3537f0)return;const _0x14937d=await _0x3537f0[_0x207c7c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x207c7c([0x6a,0x77,0x6b]),_0x4b686e,{[_0x207c7c([0x6e,0x61,0x6d,0x65])]:_0x207c7c([0x45,0x43,0x44,0x53,0x41]),[_0x207c7c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x207c7c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x207c7c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3537f0[_0x207c7c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x207c7c([0x6e,0x61,0x6d,0x65])]:_0x207c7c([0x45,0x43,0x44,0x53,0x41]),[_0x207c7c([0x68,0x61,0x73,0x68])]:{[_0x207c7c([0x6e,0x61,0x6d,0x65])]:_0x207c7c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x14937d,_0x52bcc8,_0x1a67a3)||(_0x111479=!0x1);}}function _0x102672(_0x2cc551){return _0x2cc551[_0x207c7c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x207c7c([0x65,0x79]))?JSON[_0x207c7c([0x70,0x61,0x72,0x73,0x65])](_0x13fa4c(_0x2cc551)):null;}function _0x13fa4c(_0x4fdf02){return window[_0x207c7c([0x61,0x74,0x6f,0x62])](_0x4fdf02[_0x207c7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x207c7c([0x2b]))[_0x207c7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x207c7c([0x2f])));}function _0x25a8ad(_0x4e3721){let _0x474fba=0x1505;function _0x2b2d25(_0x1fe787){for(let _0x3dfd93=0x0;_0x3dfd93<_0x1fe787[_0x207c7c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3dfd93++){const _0x1d56fd=_0x1fe787[_0x207c7c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3dfd93);_0x474fba=(_0x474fba<<0x5)+_0x474fba+_0x1d56fd,_0x474fba&=_0x474fba;}}function _0xd94da(_0x39a656){Array[_0x207c7c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x39a656)?_0x39a656[_0x207c7c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd94da):_0x39a656&&typeof _0x39a656==_0x207c7c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x207c7c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x39a656)[_0x207c7c([0x73,0x6f,0x72,0x74])]()[_0x207c7c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a1e4a,_0x27f2c0])=>{_0x2b2d25(_0x4a1e4a),_0xd94da(_0x27f2c0);}):_0x2b2d25(window[_0x207c7c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x39a656));}return _0xd94da(_0x4e3721),_0x474fba>>>0x0;}function _0xe1b390(_0x2e8ec6){return _0x2e8ec6[_0x207c7c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x207c7c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x207c7c([0x30]));}function _0x23810a(_0xd56cc7){return _0xd56cc7[_0x207c7c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x207c7c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x207c7c([0x6a,0x6f,0x69,0x6e])]('');}function _0x7c8d6b(){}function _0x207c7c(_0x115220){return _0x115220['map'](_0x434728=>String['fromCharCode'](_0x434728))['join']('');}_0x2dc7aa(await _0x56e22b());}(this);}['_initSchema'](){const _0x47e72c=this['editor']['model']['schema'];_0x47e72c['isRegistered']('imageBlock')&&_0x47e72c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x47e72c['isRegistered']('imageInline')&&_0x47e72c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2a8501=this['editor'];_0x2a8501['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2a8501['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x365627=>_0x365627['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2588d4=_0x2a8501['commands']['get']('replaceImageSource');_0x2588d4&&this['listenTo'](_0x2588d4,'cleanupImage',(_0x4cf31f,[_0x459a2c,_0x3bdc23])=>{_0x459a2c['removeAttribute']('uploadcareImageId',_0x3bdc23);});}['_initConfig'](){const _0x117056=this['editor']['config']['get']('uploadcare.uploader')||{},_0x47abfe=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xbe58ad(_0x4d4494['document'],'uc-config',{..._0x117056,'pubkey':_0x47abfe,'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']=_0xf6aa60=>{if('closeMax'==_0xf6aa60)return'#uc-icon-arrow-down';},_0x4d4494['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xbe58ad(_0x4d4494['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4d4494['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x20efc4=this['editor']['commands']['get']('insertImage');_0x20efc4&&this['listenTo'](_0x20efc4,'execute',()=>{const _0x48fbf1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x48fbf1&&_0x48fbf1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x48fbf1);});});const _0x24789c=this['editor']['commands']['get']('uploadcareImageReplace');_0x24789c&&this['listenTo'](_0x24789c,'execute',()=>{const _0x1c651f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1c651f&&_0x1c651f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1c651f);});});}}class tt extends _0x4c2b2b{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ea454){super(_0x4ea454),_0x4ea454['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x8c1e0d['defineComponents'](_0x8c1e0d),this['_defineLocale']();}['_defineLocale'](){const _0xec4a76=this['editor']['config']['get']('uploadcare.locale'),_0x11cbb4=this['editor']['locale']['contentLanguage'];_0xec4a76&&_0x8c1e0d['defineLocale'](_0x11cbb4,_0xec4a76);}}class ii extends _0x55a351{constructor(_0x5d4653){super(_0x5d4653);const t=_0x5d4653['t'],_0xe40da7=this['bindTemplate'],_0x4ed555=new _0x1b96d5();_0x4ed555['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':[_0x4ed555,{'text':_0xe40da7['to']('imageUploadProgress',_0x47447e=>t('Loading\x20image...')+'\x20('+(_0x47447e||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 _0x55a351{constructor(_0x47bb67){super(_0x47bb67);const t=_0x47bb67['t'];this['set']('errorType',null);const _0x4cf06e=new _0x3ffee1(_0x47bb67);_0x4cf06e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4cf06e['withText']=!0x0,_0x4cf06e['class']='ck-button-action',_0x4cf06e['on']('execute',()=>{this['fire']('retry');}),_0x4cf06e['bind']('isVisible')['to'](this,'errorType',_0xaa9e3b=>'NotFound'!==_0xaa9e3b);const _0x3aca0e=new _0x135ad1();_0x3aca0e['content']=_0x7a88b1,_0x3aca0e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1d2e2b=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':[_0x3aca0e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1d2e2b['to']('errorType',_0x3f5b60=>t('NotFound'!==_0x3f5b60?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4cf06e]},{'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 _0x55a351{constructor(_0x5c004c,_0x17bdb1){super(_0x5c004c);const _0x2b7820=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x17bdb1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2b7820['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x41f6b3,_0x39a93e,_0x1591f3){super(_0x41f6b3),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x41f6b3),this['_errorView']=new ti(_0x41f6b3),this['_editingView']=new ei(_0x41f6b3,_0x1591f3),this['_focusableView']=new _0x55a351(_0x41f6b3),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x39a93e),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'],_0x57b00a=>{this['_addUploadcareImageEditorListeners'](_0x57b00a);});}),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'](_0x120478,_0x4a8934){const _0x7e7ce5='uc-cloud-image-editor',_0x3cbf2c=_0x120478['querySelector'](_0x7e7ce5);if(_0x3cbf2c)return _0x4a8934(_0x3cbf2c);const _0x43c56b=new MutationObserver(_0x4a437d=>{const _0x4f0901=_0x4a437d['filter'](_0x51082c=>_0x51082c['target']===_0x120478&&_0x51082c['addedNodes']['length']>0x0&&_0x51082c['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x7e7ce5);_0x4f0901['length']&&(_0x43c56b['disconnect'](),_0x4a8934(_0x4f0901[0x0]['addedNodes'][0x0]));});_0x43c56b['observe'](_0x120478,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x348a41){_0x348a41['addEventListener']('apply',_0x4ae3ea=>{this['fire']('apply',{'imageSrc':_0x4ae3ea['detail']['cdnUrl']});}),_0x348a41['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2c7dc0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x20c683,_0x92c4f6,_0x44fc37){super(),this['_editor']=_0x20c683,this['_dialog']=_0x92c4f6,this['_imageElement']=_0x44fc37,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 _0x1c90d0=this['_imageElement'],_0x32075c=_0x1c90d0['getAttribute']('uploadcareImageId'),_0x14ac02=_0x1c90d0['getAttribute']('src');if(_0x32075c)await this['_loadImageInfo'](_0x32075c,_0x14ac02);else{if(this['_imageCache']['has'](_0x14ac02)){const _0x17ea0c=this['_imageCache']['get'](_0x14ac02);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17ea0c['url'],this['imageDimension']=_0x17ea0c['dimension'],this['imageId']=_0x17ea0c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2e58c1}=this['_editor'],t=_0x2e58c1['t'],_0x36ee17=new X(_0x2e58c1,this['imageStatus'],this['_attributes']);_0x36ee17['bind']('status')['to'](this,'imageStatus'),_0x36ee17['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x36ee17['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x36ee17['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x36ee17,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5b5fd2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x36ee17,'position':_0x2c14bf['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x36ee17['focus']();},'onHide':()=>{_0x36ee17['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x88e122=>!M(_0x88e122,_0x36ee17['element'])}});}['_loadImageInfo'](_0x966f2c,_0x44663a){return j['getInfo'](_0x966f2c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x17bdbc=>{const {width:_0x5887ae,height:_0x5550b6}=_0x17bdbc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x44663a,this['imageDimension']={'width':_0x5887ae,'height':_0x5550b6},this['imageId']=_0x966f2c;})['catch'](_0x3aef24=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3aef24['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x15a966,_0x34ab9f){return this['_getImageAsFile'](_0x15a966)['then'](_0x4047a5=>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':_0x34ab9f['signal'],'file':_0x4047a5,'onProgress':_0x13da65=>{_0x13da65&&_0x13da65['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x13da65['value']));}}))['then'](_0x25d90a=>{const {width:_0x25823f,height:_0x3405ba}=_0x25d90a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x25d90a['cdnUrl'],this['imageDimension']={'width':_0x25823f,'height':_0x3405ba},this['imageId']=_0x25d90a['uuid'],this['imageUploadProgress']=null;const _0x509de4=_0x15a966['getAttribute']('src');this['_imageCache']['set'](_0x509de4,{'id':_0x25d90a['uuid'],'url':_0x25d90a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4b0405=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4b0405['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x26b6ba,_0x192d38){_0x26b6ba['on']('apply',(_0x3f4e74,_0x34cf4a)=>{this['_replaceImage'](_0x192d38,_0x34cf4a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x26b6ba['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x26b6ba['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x13d18a,_0x534d65,_0x5aaefe){const _0x3abe8f=this['_editor'],{width:_0x24b04b,height:_0x4128b9}=F(_0x534d65,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x56ae32,imageSources:_0x1588c2}=C(_0x534d65,_0x24b04b);_0x3abe8f['model']['change'](_0x141cd7=>{if('$graveyard'===_0x13d18a['root']['rootName']){_0x3abe8f['execute']('insertImage',{'imageType':_0x13d18a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x13d18a['getAttributes']()),'uploadcareImageId':_0x5aaefe,'src':_0x56ae32,'sources':_0x1588c2,'width':_0x24b04b,'height':_0x4128b9}});const _0x289c42=_0x13d18a['getChildren']();_0x13d18a=_0x3abe8f['model']['document']['selection']['getSelectedElement']();for(const _0x4ee342 of _0x289c42)_0x141cd7['append'](_0x141cd7['cloneElement'](_0x4ee342),_0x13d18a);}else _0x141cd7['setSelection'](_0x13d18a,'on'),_0x3abe8f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x13d18a['getAttributes']()),'uploadcareImageId':_0x5aaefe,'src':_0x56ae32,'sources':_0x1588c2,'width':_0x24b04b,'height':_0x4128b9},_0x13d18a);_0x141cd7['setSelection'](_0x13d18a,'on');});}async['_getImageAsFile'](_0x27f279){const _0x1cc0c0=_0x4d4494['window'],_0x3713fc=_0x4d4494['document']['location']['href'],_0x2ff22b=new _0x1cc0c0['URL'](_0x27f279['getAttribute']('src'),_0x3713fc);if('data:'===_0x2ff22b['protocol']){const _0x4e8820=_0x2ff22b['href']['split'](','),_0x2c5f6b=_0x4e8820[0x0]['match'](/:(.*?);/)[0x1],_0x4876b5=_0x2c5f6b['split']('/')[0x1],_0x2f9ade=_0x1cc0c0['atob'](_0x4e8820[_0x4e8820['length']-0x1]);let _0x1c7198=_0x2f9ade['length'];const _0xed2ab9=new _0x1cc0c0['Uint8Array'](_0x1c7198);for(;_0x1c7198--;)_0xed2ab9[_0x1c7198]=_0x2f9ade['charCodeAt'](_0x1c7198);return new _0x1cc0c0['File']([_0xed2ab9],'image.'+_0x4876b5,{'type':_0x2c5f6b});}const _0x321a32=_0x2ff22b['href']['split']('/'),_0x35316e=_0x321a32[_0x321a32['length']-0x1],_0x1a2551=_0x35316e['split']('.')[0x1];return _0x1cc0c0['fetch'](_0x2ff22b['href'])['then'](_0x4c37d8=>_0x4c37d8['clone']()['blob']())['then'](_0x97554b=>new _0x1cc0c0['File']([_0x97554b],_0x35316e,{'type':'image/'+_0x1a2551}));}}class N extends _0xdf261e{['imageEditController'];static get['requires'](){return[_0x47f1d3];}['_isEditable'];constructor(_0x3aa26b){super(_0x3aa26b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x9b3cba){const _0x5d11ab=R(_0x9b3cba);return _0xe35478=>!(!_0xe35478||!_0xe35478['is']('element','imageBlock')&&!_0xe35478['is']('element','imageInline'))&&(!!_0xe35478['hasAttribute']('uploadcareImageId')||!!_0xe35478['hasAttribute']('src')&&_0x5d11ab(_0xe35478['getAttribute']('src')));}(_0x3aa26b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4e74f2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4e74f2);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4496d9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4496d9&&(_0x4496d9['is']('element','imageBlock')||_0x4496d9['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x47f1d3),_0x4496d9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xdf261e{['refresh'](){const _0x497cd0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x497cd0&&(_0x497cd0['is']('element','imageBlock')||_0x497cd0['is']('element','imageInline')));}['execute'](_0x207cc1){const _0x2cb23b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x55607e=>{_0x55607e['setAttributes'](_0x207cc1,_0x2cb23b),_0x55607e['removeAttribute']('srcset',_0x2cb23b),_0x55607e['removeAttribute']('sizes',_0x2cb23b);});}}class m extends _0x4c2b2b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x89b416,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x662a04}=this;_0x662a04['commands']['add']('uploadcareImageEdit',new N(_0x662a04)),_0x662a04['commands']['add']('uploadcareImageReplace',new O(_0x662a04));}}class g extends _0x4c2b2b{['_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 _0x18bb5c=this['editor'];_0x18bb5c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1e476b=>{const _0x1b1cc8=_0x18bb5c['commands']['get']('uploadcareImageEdit'),_0x5cdda5=new _0x3ffee1(_0x1e476b),t=_0x1e476b['t'];return _0x5cdda5['set']({'icon':_0x5b5fd2,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5cdda5['bind']('isEnabled')['to'](_0x1b1cc8),_0x5cdda5['bind']('isOn')['to'](_0x1b1cc8,'isActive'),this['listenTo'](_0x5cdda5,'execute',()=>{_0x18bb5c['execute']('uploadcareImageEdit'),_0x18bb5c['editing']['view']['focus']();}),_0x5cdda5;}),this['_initConfig']();}['_initConfig'](){const _0xbe3334=_0xbe58ad(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xbe3334),this['listenTo'](this['editor'],'destroy',()=>{_0xbe3334['remove']();});}}class et extends _0x4c2b2b{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x4acb7d,Command as _0x438ac4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x179cc0,IconGooglePhotos as _0x2c2ab4,IconGoogleDrive as _0x47abf5,IconFacebook as _0x322e7e,IconDropbox as _0x2cb930,IconUploadcareLink as _0x220ba7,IconUploadcareImageUpload as _0x1dd1b0,IconError as _0x3a0094,IconUploadcareImageEdit as _0x31b6e0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xa0989a,MenuBarMenuListItemButtonView as _0x521227,View as _0xf244e4,FocusCycler as _0x5ab703,Dialog as _0x12f904,DialogViewPosition as _0x494799,SpinnerView as _0xdc946a,IconView as _0x3e351e,Notification as _0x5ce030}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1b657a,DomEmitterMixin as _0x8f0b79,global as _0x39b3ae,getAncestors as _0x388cd8,ObservableMixin as _0x9f1237,uid as _0x101f96,createElement as _0x4c7796}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x48dd2f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x14d53a,info as _0x3f0fb2}from'@uploadcare/upload-client';import*as _0x3f9ba9 from'@uploadcare/file-uploader';var i=function(_0x383e9b){return _0x383e9b['Local']='local',_0x383e9b['URL']='url',_0x383e9b['Dropbox']='dropbox',_0x383e9b['GDrive']='gdrive',_0x383e9b['Facebook']='facebook',_0x383e9b['GPhotos']='gphotos',_0x383e9b['OneDrive']='onedrive',_0x383e9b;}({});function _(_0xc44f34,_0x2c6007,_0x274db8){const t=_0xc44f34['t'],_0x2a4348=_0xc44f34['t'];switch(_0x2c6007){case i['Local']:return{'text':_0x2a4348('Insert'===_0x274db8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2a4348('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x274db8?_0x2a4348('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2a4348('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x274db8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x274db8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x274db8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x274db8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x274db8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2c6007;}}class e extends _0x4acb7d{['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 _0x4815ea=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x37e0a7;for(const _0x292160 in _0x4815ea){const _0x357170=_0x292160,_0x52339e=_0x4815ea[_0x357170];if('uploadcareLicenseKeyValid'==_0x52339e||'uploadcareLicenseKeyInvalid'==_0x52339e||'uploadcareLicenseKeyExpired'==_0x52339e||'uploadcareLicenseKeyDomainLimit'==_0x52339e||'uploadcareLicenseKeyNotAllowed'==_0x52339e||'uploadcareLicenseKeyEvaluationLimit'==_0x52339e||'uploadcareLicenseKeyTrialLimit'==_0x52339e||'uploadcareLicenseKeyUsageLimit'==_0x52339e){delete _0x4815ea[_0x357170],_0x37e0a7=_0x52339e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x37e0a7&&_0x4815ea['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x37e0a7&&_0x4815ea['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x37e0a7&&_0x4815ea['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x37e0a7&&_0x4815ea['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x37e0a7&&_0x4815ea['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x37e0a7&&_0x4815ea['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x37e0a7&&_0x4815ea['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x607f9e}=this,_0x4146f7=_0x607f9e['commands']['get']('uploadcare');if(!_0x4146f7)return;const _0x1ece60=this['_normalizeConfigSourceList'](_0x607f9e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x7692e,_0x512a75)=>{const _0x6ea7cb=this['_getIntegrationKey'](_0x512a75['type']);return _0x7692e[_0x6ea7cb]||(_0x7692e[_0x6ea7cb]=[]),_0x7692e[_0x6ea7cb]['push'](_0x512a75),_0x7692e;},{});_0x607f9e['plugins']['has']('ImageInsertUI')&&_0x607f9e['commands']['get']('uploadcare')&&Object['entries'](_0x1ece60)['forEach'](([_0x4b7c33,_0x3d2e40])=>{_0x607f9e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4b7c33,'observable':()=>_0x4146f7,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3d2e40),'formViewCreator':()=>this['_createDropdownButtons'](_0x3d2e40),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3d2e40),'override':'assetManager'!==_0x4b7c33});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1d8c37){const {locale:_0x4beab4}=this['editor'];return _0x1d8c37['map'](_0x2a441b=>{const _0x325cb5=_(_0x4beab4,_0x2a441b,'Insert');switch(_0x2a441b){case i['Local']:return{'icon':_0x1dd1b0,'type':i['Local'],..._0x325cb5};case i['URL']:return{'icon':_0x220ba7,'type':i['URL'],..._0x325cb5};case i['Dropbox']:return{'icon':_0x2cb930,'type':i['Dropbox'],..._0x325cb5};case i['Facebook']:return{'icon':_0x322e7e,'type':i['Facebook'],..._0x325cb5};case i['GDrive']:return{'icon':_0x47abf5,'type':i['GDrive'],..._0x325cb5};case i['GPhotos']:return{'icon':_0x2c2ab4,'type':i['GPhotos'],..._0x325cb5};case i['OneDrive']:return{'icon':_0x179cc0,'type':i['OneDrive'],..._0x325cb5};}});}['_getIntegrationKey'](_0x1bcbab){switch(_0x1bcbab){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x28ad06,_0x92ccb4){const _0x536203=this['editor'],_0x2b7489=new _0x28ad06(_0x536203['locale']),_0x269c39=_0x536203['commands']['get']('uploadcare');return _0x2b7489['bind']('isEnabled')['to'](_0x269c39),_0x2b7489['on']('execute',()=>{_0x269c39['execute'](_0x92ccb4);}),_0x2b7489;}['_createToolbarButton'](_0x2eccad){const {locale:_0xdedb15}=this['editor'],_0x5d2833=this['editor']['plugins']['get']('ImageInsertUI'),_0x562673=_0x2eccad[0x0],_0x392887=this['_createButton'](_0xa0989a,_0x562673['type']);return _0x392887['icon']=_0x562673['icon'],_0x392887['bind']('label')['to'](_0x5d2833,'isImageSelected',_0x516f08=>_(_0xdedb15,_0x562673['type'],_0x516f08?'Replace':'Insert')['text']),_0x392887['tooltip']=!0x0,_0x392887;}['_createDropdownButtons'](_0x4f7998){const {locale:_0x370223}=this['editor'],_0x208e59=this['editor']['plugins']['get']('ImageInsertUI');return _0x4f7998['map'](_0x49e46a=>{const _0x56dc41=this['_createButton'](_0xa0989a,_0x49e46a['type']);return _0x56dc41['withText']=!0x0,_0x56dc41['icon']=_0x49e46a['icon'],_0x56dc41['bind']('label')['to'](_0x208e59,'isImageSelected',_0x348eaa=>_(_0x370223,_0x49e46a['type'],_0x348eaa?'Replace':'Insert')['text']),_0x56dc41;});}['_createMenuBarButtons'](_0x4ec704){return _0x4ec704['map'](_0x53f1b3=>{const _0x2e3e78=this['_createButton'](_0x521227,_0x53f1b3['type']);return _0x2e3e78['icon']=_0x53f1b3['icon'],_0x2e3e78['label']=_0x53f1b3['shortText'],_0x2e3e78;});}}class F extends _0xf244e4{['focusTracker'];['focusCycler'];constructor(_0x26f46c){super(_0x26f46c),this['focusTracker']=new _0x1b657a(),this['focusCycler']=new _0x5ab703({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x2413d5,_0x327b24){super(_0x2413d5),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-'+_0x327b24}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4cfa6c,_0x2ab33f){const _0x5e395e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x7dfc3b=>_0x7dfc3b<=_0x2ab33f)['map'](_0x5cd50b=>_0x4cfa6c['replace'](/\/$/,'')+'/-/resize/'+_0x5cd50b+'x/\x20'+_0x5cd50b+'w');return{'imageFallbackUrl':_0x4cfa6c,'imageSources':[{'srcset':_0x5e395e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2ab33f+'px)\x20100vw,\x20'+_0x2ab33f+'px','type':'image/webp'}]};}function S(_0x2a5207,_0x36f4bc,_0x51b1c2){const _0x3d4d6f=_0x2a5207['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3d4d6f?parseInt(_0x3d4d6f[0x1],0xa):_0x36f4bc,'height':_0x3d4d6f?parseInt(_0x3d4d6f[0x2],0xa):_0x51b1c2};}function p(_0xfaffe6,_0x1e7142){const _0x520f97=new(_0x8f0b79())(),_0x378f37=_0xfaffe6['plugins']['get']('ImageUtils'),_0x21a00e=_0xfaffe6['editing']['mapper']['toViewElement'](_0x1e7142),_0xa9a9b=_0x378f37['findViewImgElement'](_0x21a00e),_0x42ec54=_0xfaffe6['editing']['view']['domConverter']['viewToDom'](_0xa9a9b),_0x3d356a=_0x1e7142['getAttribute']('width'),_0x53b018=_0x1e7142['getAttribute']('height'),_0x5b1e6d='image-processing';_0xfaffe6['editing']['view']['change'](_0x130482=>{_0x130482['addClass'](_0x5b1e6d,_0x21a00e),_0x130482['setStyle']('aspect-ratio',_0x3d356a+'/'+_0x53b018,_0xa9a9b);}),_0x520f97['listenTo'](_0x42ec54,'load',()=>{_0x520f97['stopListening'](_0x42ec54,'load'),_0xfaffe6['editing']['view']['change'](_0x23ad49=>{_0x23ad49['removeClass'](_0x5b1e6d,_0x21a00e),_0x23ad49['removeStyle']('aspect-ratio',_0xa9a9b);});});}function G(_0x4ad83f){if(Array['isArray'](_0x4ad83f)){const _0x1955fa=_0x4ad83f['map'](G);return _0x3a0985=>_0x1955fa['some'](_0x27f8ef=>_0x27f8ef(_0x3a0985));}if('origin'==_0x4ad83f){const _0x1d4c72=_0x39b3ae['window']['location']['origin'];return _0x2341b4=>new URL(_0x2341b4,_0x39b3ae['document']['baseURI'])['origin']==_0x1d4c72;}return'function'==typeof _0x4ad83f?_0x4ad83f:_0x4ad83f instanceof RegExp?_0x1cbb1d=>!(!_0x1cbb1d['match'](_0x4ad83f)&&!_0x1cbb1d['replace'](/^https?:\/\//,'')['match'](_0x4ad83f)):()=>!0x1;}function A(_0x547f09,_0x19c69b){return _0x388cd8(_0x547f09['target'])['includes'](_0x19c69b);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x9f1237(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2550df,_0x437222,_0x435f7e){super(),this['_editor']=_0x2550df,this['_editing']=_0x437222,this['_dialog']=_0x2550df['plugins']['get'](_0x12f904),this['_api']=_0x437222['ctxElement']['getAPI'](),this['_type']=_0x435f7e,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:_0x217ab0,model:_0x10dc48}=this['_editor'],_0x30b253=_0x10dc48['document']['selection']['getSelectedElement'](),_0x5c999b=_0x30b253&&(_0x30b253['is']('element','imageBlock')||_0x30b253['is']('element','imageInline'));this['_formView']=new x(_0x217ab0,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1dd1b0,'title':_(_0x217ab0,this['_type'],_0x5c999b?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x494799['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x35b98f=>!A(_0x35b98f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xc08895}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x18cb84=>{const _0x21188e=_0xc08895['length'];for(const _0x1246f9 of _0xc08895){const _0x16c070=_0x1246f9===_0xc08895[_0x21188e-0x1],{cdnUrl:_0x267f89,fileInfo:_0x12aed8}=_0x1246f9;if(!_0x267f89||!_0x12aed8)continue;const {width:_0x28da92,height:_0xbfd33e}=_0x12aed8['imageInfo'],_0x5665a7=S(_0x267f89,_0x28da92,_0xbfd33e),_0x1fdd39=C(_0x267f89,_0x5665a7['width']),_0x365240={'id':_0x12aed8['uuid'],'type':'image','attributes':{'imageDimension':_0x5665a7,..._0x1fdd39}};this['_insertAsset'](_0x365240,_0x16c070,_0x18cb84);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4cb686=>{'idle'===_0x4cb686['detail']['status']&&!_0x4cb686['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xbd6447,_0x3afe05,_0x34f436){const _0x126b37=this['_editor']['model']['document']['selection'],_0x36fa71=_0x126b37['getSelectedElement'](),_0x2358b9=!(!_0x36fa71||!_0x36fa71['is']('element','imageInline'));_0x34f436['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xbd6447,_0x2358b9),_0x3afe05||_0x34f436['setSelection'](_0x126b37['getLastPosition']());}['_insertImage'](_0x2f9e0e,_0x3212ec){const _0x3ee179=this['_editor'],{imageDimension:_0x4b6c58,imageFallbackUrl:_0x4f0184,imageSources:_0x4c36b1}=_0x2f9e0e['attributes'];_0x3ee179['execute']('insertImage',{'imageType':_0x3212ec?'imageInline':null,'source':{'uploadcareImageId':_0x2f9e0e['id'],'src':_0x4f0184,'sources':_0x4c36b1,..._0x4b6c58}});}}class w extends _0x438ac4{['_editing'];['_controller']=null;static get['requires'](){return[_0x12f904,o];}constructor(_0x52c428){super(_0x52c428),this['_editing']=_0x52c428['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x583b86){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x583b86);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x55b733,..._0x5cbe90}){return _0x14d53a(_0x55b733,_0x5cbe90);}static['getInfo'](_0x1f80f3,_0x403dfd){return _0x3f0fb2(_0x1f80f3,_0x403dfd);}}class f extends _0x4acb7d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x48dd2f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4b8e97=this['editor'];if(!!!_0x4b8e97['config']['get']('uploadcare'))return;_0x4b8e97['plugins']['get'](_0x48dd2f)['createUploadAdapter']=_0x2f3873=>new k(_0x2f3873,_0x4b8e97),_0x4b8e97['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xdce474,{imageElement:_0x289e49,data:_0x1f3582})=>{_0x4b8e97['model']['change'](_0x283d9b=>{_0x283d9b['setAttribute']('uploadcareImageId',_0x1f3582['uploadcareImageId'],_0x289e49);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x291cbf,_0x262702){this['loader']=_0x291cbf,this['editor']=_0x262702,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x52abc4=await this['loader']['file'];return j['upload']({'file':_0x52abc4,'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':_0x518be7=>{_0x518be7&&_0x518be7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x518be7['value']);}})['then'](async _0x496fbb=>{const {imageFallbackUrl:_0xebe611,imageSources:_0x189084}=C(_0x496fbb['cdnUrl'],_0x496fbb['imageInfo']['width']);return{'uploadcareImageId':_0x496fbb['uuid'],'default':_0xebe611,'sources':_0x189084};})['catch'](()=>{const _0x5470b8=t('Cannot\x20upload\x20file:')+('\x20'+_0x52abc4['name']+'.');return Promise['reject'](_0x5470b8);});}['abort'](){this['controller']['abort']();}}class o extends _0x4acb7d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x12f904];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1a1c7b){super(_0x1a1c7b),this['ucContextId']=_0x101f96();}['init'](){const _0x264a6f=this['editor'];_0x264a6f['commands']['add']('uploadcare',new w(_0x264a6f));}['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 _0x134432=_0x39b3ae['document']['querySelector']('input[uploadcare-file-input]');_0x134432&&_0x134432['remove']();}),async function(_0x391952){const _0x280c58=_0x1c941c([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]),_0x2c92d2=0x535f8c3a,_0x40c144=0x5358f012^_0x2c92d2,_0x2f7eae=window[_0x1c941c([0x44,0x61,0x74,0x65])][_0x1c941c([0x6e,0x6f,0x77])](),_0x54ac34=_0x391952[_0x1c941c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c63b5=new window[(_0x1c941c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f9775=>{_0x54ac34[_0x1c941c([0x6f,0x6e,0x63,0x65])](_0x1c941c([0x72,0x65,0x61,0x64,0x79]),_0x4f9775);}),_0x4a7618={[_0x1c941c([0x6b,0x74,0x79])]:_0x1c941c([0x45,0x43]),[_0x1c941c([0x75,0x73,0x65])]:_0x1c941c([0x73,0x69,0x67]),[_0x1c941c([0x63,0x72,0x76])]:_0x1c941c([0x50,0x2d,0x32,0x35,0x36]),[_0x1c941c([0x78])]:_0x1c941c([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]),[_0x1c941c([0x79])]:_0x1c941c([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]),[_0x1c941c([0x61,0x6c,0x67])]:_0x1c941c([0x45,0x53,0x32,0x35,0x36])},_0x1b396=_0x54ac34[_0x1c941c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c941c([0x67,0x65,0x74])](_0x1c941c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1543f0(){let _0x34cc88,_0x1a7e5f=null,_0x4a7d56=null;try{if(_0x1b396==_0x1c941c([0x47,0x50,0x4c]))return _0x1c941c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34cc88=_0x1bddef(),!_0x34cc88)return _0x1c941c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34cc88[_0x1c941c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4a7d56=_0xb58abe(_0x34cc88[_0x1c941c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34cc88[_0x1c941c([0x6a,0x74,0x69])])),await _0x47502f()?_0x2f47bf()?_0x19c363()?_0x1c941c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x9b63f6()?(_0x34cc88[_0x1c941c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c941c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1a7e5f=_0x36f85a(_0x1c941c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x34cc88[_0x1c941c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c941c([0x74,0x72,0x69,0x61,0x6c])&&(_0x1a7e5f=_0x36f85a(_0x1c941c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x327bc2()):_0x1c941c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c941c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c941c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1c941c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x19c363(){const _0x5cd619=[_0x1c941c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c941c([0x74,0x72,0x69,0x61,0x6c])][_0x1c941c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34cc88[_0x1c941c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f7eae/0x3e8:0xe10*_0x40c144;return _0x34cc88[_0x1c941c([0x65,0x78,0x70])]<_0x5cd619;}function _0x2f47bf(){const _0x399136=_0x34cc88[_0x1c941c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x399136&&(!!_0x399136[_0x1c941c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c941c([0x2a]))||!!_0x399136[_0x1c941c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c941c([0x55,0x50,0x4c,0x43])));}function _0x9b63f6(){const _0x46d71e=_0x34cc88[_0x1c941c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46d71e||0x0==_0x46d71e[_0x1c941c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x194d03}=new URL(window[_0x1c941c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x46d71e[_0x1c941c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x194d03))return!0x0;const _0x4242b5=_0x194d03[_0x1c941c([0x73,0x70,0x6c,0x69,0x74])](_0x1c941c([0x2e]));return _0x46d71e[_0x1c941c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b9057=>_0x1b9057[_0x1c941c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c941c([0x2a])))[_0x1c941c([0x6d,0x61,0x70])](_0x2a9d60=>_0x2a9d60[_0x1c941c([0x73,0x70,0x6c,0x69,0x74])](_0x1c941c([0x2e])))[_0x1c941c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2989e5=>_0x2989e5[_0x1c941c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4242b5[_0x1c941c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c941c([0x6d,0x61,0x70])](_0x1d972e=>Array(_0x4242b5[_0x1c941c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1d972e[_0x1c941c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c941c([0x66,0x69,0x6c,0x6c])](_0x1d972e[0x0]===_0x1c941c([0x2a])?_0x1c941c([0x2a]):'')[_0x1c941c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1d972e))[_0x1c941c([0x73,0x6f,0x6d,0x65])](_0x1c1702=>_0x4242b5[_0x1c941c([0x65,0x76,0x65,0x72,0x79])]((_0x3357ce,_0x2e4152)=>_0x1c1702[_0x2e4152]===_0x3357ce||_0x1c1702[_0x2e4152]===_0x1c941c([0x2a])));}function _0x327bc2(){return _0x1a7e5f&&_0x4a7d56?new window[(_0x1c941c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a1794,_0x349470)=>{_0x1a7e5f[_0x1c941c([0x74,0x68,0x65,0x6e])](_0x1a1794,_0x349470),_0x4a7d56[_0x1c941c([0x74,0x68,0x65,0x6e])](_0x2a0c7d=>{_0x2a0c7d!=_0x1c941c([0x56,0x61,0x6c,0x69,0x64])&&_0x1a1794(_0x2a0c7d);},_0x349470);}):_0x1a7e5f||_0x4a7d56||_0x1c941c([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb58abe(_0x1e27fb,_0x1fdab0){return new window[(_0x1c941c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26dfa0=>{if(_0x53516b())return _0x26dfa0(_0x1c941c([0x56,0x61,0x6c,0x69,0x64]));_0x41a843(),_0x54ac34[_0x1c941c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c941c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x51856d=!0x1;const _0x3516eb=_0x101f96();function _0x5a7541(_0x2db7e5){return!!_0x2db7e5&&(typeof _0x2db7e5===_0x1c941c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2db7e5===_0x1c941c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2db7e5[_0x1c941c([0x74,0x68,0x65,0x6e])]===_0x1c941c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2db7e5[_0x1c941c([0x63,0x61,0x74,0x63,0x68])]===_0x1c941c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x88dc1e(_0x18c71e){_0x2f67e7(_0x18c71e)[_0x1c941c([0x74,0x68,0x65,0x6e])](_0xf7b4fe=>{if(!_0xf7b4fe||_0xf7b4fe[_0x1c941c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c941c([0x6f,0x6b]))return _0x1c941c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5db42d(_0x4613f6(_0x3516eb+_0x1fdab0))!=_0xf7b4fe[_0x1c941c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c941c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c941c([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c941c([0x74,0x68,0x65,0x6e])](_0x335d1e=>(_0x47bd91(),_0x335d1e),()=>{const _0x2d367d=_0x1a6b65();return null==_0x2d367d?(_0x47bd91(),_0x1c941c([0x56,0x61,0x6c,0x69,0x64])):_0x1c941c(_0x2f7eae-_0x2d367d>(0x7753083a^_0x2c92d2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c941c([0x74,0x68,0x65,0x6e])](_0x26dfa0)[_0x1c941c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26dfa0(_0x1c941c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x23d09f=0x536962ba^_0x2c92d2;function _0x47bd91(){const _0x3e6c1c=_0x1c941c([0x6c,0x6c,0x63,0x74,0x2d])+_0x5db42d(_0x4613f6(_0x1e27fb)),_0x260ce1=_0x10337e(_0x5db42d(window[_0x1c941c([0x4d,0x61,0x74,0x68])][_0x1c941c([0x63,0x65,0x69,0x6c])](_0x2f7eae/_0x23d09f)));window[_0x1c941c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c941c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e6c1c,_0x260ce1);}function _0x1a6b65(){const _0x48c8d1=_0x1c941c([0x6c,0x6c,0x63,0x74,0x2d])+_0x5db42d(_0x4613f6(_0x1e27fb)),_0x1a59f9=window[_0x1c941c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c941c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48c8d1);return _0x1a59f9?window[_0x1c941c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10337e(_0x1a59f9),0x10)*_0x23d09f:null;}function _0x2f67e7(_0x10ec67){return new window[(_0x1c941c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x549975,_0x4f9101)=>{_0x10ec67[_0x1c941c([0x74,0x68,0x65,0x6e])](_0x549975,_0x4f9101),window[_0x1c941c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f9101,0x535e58fa^_0x2c92d2);});}}_0x54ac34[_0x1c941c([0x6f,0x6e])](_0x1c941c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5987db,_0x4bd5be)=>{if(_0x4bd5be[0x0]!=_0x1e27fb)return _0x26dfa0(_0x1c941c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4bd5be[0x1]={..._0x4bd5be[0x1],[_0x1c941c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3516eb};},{[_0x1c941c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c941c([0x68,0x69,0x67,0x68])}),_0x54ac34[_0x1c941c([0x6f,0x6e])](_0x1c941c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2dec42=>{_0x5a7541(_0x2dec42[_0x1c941c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x51856d=!0x0,_0x88dc1e(_0x2dec42[_0x1c941c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c941c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c941c([0x6c,0x6f,0x77])}),_0x5c63b5[_0x1c941c([0x74,0x68,0x65,0x6e])](()=>{_0x51856d||_0x26dfa0(_0x1c941c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x53516b(){return _0x54ac34[_0x1c941c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c941c([0x76,0x69,0x65,0x77])][_0x1c941c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c941c([0x61,0x75,0x74,0x6f]);}function _0x41a843(){_0x54ac34[_0x1c941c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c941c([0x76,0x69,0x65,0x77])][_0x1c941c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c941c([0x61,0x75,0x74,0x6f]);}}function _0x36f85a(_0x1f62b3){const _0x355b7a=[new window[(_0x1c941c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fd09d=>setTimeout(_0x2fd09d,0x5356b2f6^_0x2c92d2)),_0x5c63b5[_0x1c941c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c941c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aee7f=>{let _0x97cd26=0x0;_0x54ac34[_0x1c941c([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c941c([0x6f,0x6e])](_0x1c941c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b23da,_0x29eef8)=>{_0x29eef8[0x0][_0x1c941c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x97cd26++,_0x97cd26==(0x535f8dc2^_0x2c92d2)&&(_0x3aee7f(),_0x3b23da[_0x1c941c([0x6f,0x66,0x66])]());});}))];return window[_0x1c941c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c941c([0x72,0x61,0x63,0x65])](_0x355b7a)[_0x1c941c([0x74,0x68,0x65,0x6e])](()=>_0x1f62b3);}async function _0x444b6d(){await _0x5c63b5,_0x54ac34[_0x1c941c([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c941c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x420e1a,_0x54ac34[_0x1c941c([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c941c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x420e1a,_0x54ac34[_0x1c941c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c941c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3947fc(_0xd289ed){const _0x4b9370=_0x2d8660();_0x54ac34[_0x4b9370]=_0x1c941c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xd289ed,_0xd289ed!=_0x1c941c([0x56,0x61,0x6c,0x69,0x64])&&_0x444b6d();}function _0x2d8660(){const _0x1e928f=window[_0x1c941c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c941c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c941c([0x6e,0x6f,0x77])]())[_0x1c941c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c941c([0x2e]),'');let _0x468787=_0x1c941c([0x68]);for(let _0x866cb1=0x0;_0x866cb1<_0x1e928f[_0x1c941c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x866cb1+=0x2){let _0x28950b=window[_0x1c941c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e928f[_0x1c941c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x866cb1,_0x866cb1+0x2));_0x28950b>=_0x280c58[_0x1c941c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x28950b-=_0x280c58[_0x1c941c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x468787+=_0x280c58[_0x28950b];}return _0x468787;}function _0x1bddef(){const _0x1ae34f=_0x1b396[_0x1c941c([0x73,0x70,0x6c,0x69,0x74])](_0x1c941c([0x2e]));if(0x3!=_0x1ae34f[_0x1c941c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e7100(_0x1ae34f[0x1]);function _0x5e7100(_0x42355c){const _0x267966=_0x50248a(_0x42355c);return _0x267966&&_0xd2993a()?_0x267966:null;function _0xd2993a(){const _0x49dd61=_0x267966[_0x1c941c([0x6a,0x74,0x69])],_0x331e88=window[_0x1c941c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49dd61[_0x1c941c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49dd61[_0x1c941c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x50330a={..._0x267966,[_0x1c941c([0x6a,0x74,0x69])]:_0x49dd61[_0x1c941c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x49dd61[_0x1c941c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x50330a[_0x1c941c([0x76,0x63])],_0x4613f6(_0x50330a)==_0x331e88;}}}async function _0x47502f(){let _0x5d0e41=!0x0;try{const _0x1a7a78=_0x1b396[_0x1c941c([0x73,0x70,0x6c,0x69,0x74])](_0x1c941c([0x2e])),[_0x4559e1,_0x50830b,_0x3dd708]=_0x1a7a78;return _0x24baec(_0x4559e1),await _0x17e942(_0x4559e1,_0x50830b,_0x3dd708),_0x5d0e41;}catch{return!0x1;}function _0x24baec(_0x906d91){const _0x53b17d=_0x50248a(_0x906d91);_0x53b17d&&_0x53b17d[_0x1c941c([0x61,0x6c,0x67])]==_0x1c941c([0x45,0x53,0x32,0x35,0x36])||(_0x5d0e41=!0x1);}async function _0x17e942(_0xe20260,_0x4f2be6,_0x3f1aec){const _0x39fa56=window[_0x1c941c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c941c([0x66,0x72,0x6f,0x6d])](_0x23b021(_0x3f1aec),_0x3ff2c7=>_0x3ff2c7[_0x1c941c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x349706=new window[(_0x1c941c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c941c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xe20260+_0x1c941c([0x2e])+_0x4f2be6),_0xd5265c=window[_0x1c941c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c941c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd5265c)return;const _0x490314=await _0xd5265c[_0x1c941c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c941c([0x6a,0x77,0x6b]),_0x4a7618,{[_0x1c941c([0x6e,0x61,0x6d,0x65])]:_0x1c941c([0x45,0x43,0x44,0x53,0x41]),[_0x1c941c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c941c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c941c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd5265c[_0x1c941c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c941c([0x6e,0x61,0x6d,0x65])]:_0x1c941c([0x45,0x43,0x44,0x53,0x41]),[_0x1c941c([0x68,0x61,0x73,0x68])]:{[_0x1c941c([0x6e,0x61,0x6d,0x65])]:_0x1c941c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x490314,_0x39fa56,_0x349706)||(_0x5d0e41=!0x1);}}function _0x50248a(_0x3e6841){return _0x3e6841[_0x1c941c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c941c([0x65,0x79]))?JSON[_0x1c941c([0x70,0x61,0x72,0x73,0x65])](_0x23b021(_0x3e6841)):null;}function _0x23b021(_0x7f952e){return window[_0x1c941c([0x61,0x74,0x6f,0x62])](_0x7f952e[_0x1c941c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c941c([0x2b]))[_0x1c941c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c941c([0x2f])));}function _0x4613f6(_0x2d7120){let _0x11bd00=0x1505;function _0x3c8816(_0x527ac8){for(let _0x29636f=0x0;_0x29636f<_0x527ac8[_0x1c941c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29636f++){const _0x21ac9e=_0x527ac8[_0x1c941c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x29636f);_0x11bd00=(_0x11bd00<<0x5)+_0x11bd00+_0x21ac9e,_0x11bd00&=_0x11bd00;}}function _0x2f780a(_0x58e1c6){Array[_0x1c941c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58e1c6)?_0x58e1c6[_0x1c941c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f780a):_0x58e1c6&&typeof _0x58e1c6==_0x1c941c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c941c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58e1c6)[_0x1c941c([0x73,0x6f,0x72,0x74])]()[_0x1c941c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc42037,_0x1c1753])=>{_0x3c8816(_0xc42037),_0x2f780a(_0x1c1753);}):_0x3c8816(window[_0x1c941c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58e1c6));}return _0x2f780a(_0x2d7120),_0x11bd00>>>0x0;}function _0x5db42d(_0x451ed4){return _0x451ed4[_0x1c941c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c941c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c941c([0x30]));}function _0x10337e(_0x233bd3){return _0x233bd3[_0x1c941c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c941c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c941c([0x6a,0x6f,0x69,0x6e])]('');}function _0x420e1a(){}function _0x1c941c(_0x146ad1){return _0x146ad1['map'](_0x48c610=>String['fromCharCode'](_0x48c610))['join']('');}_0x3947fc(await _0x1543f0());}(this);}['_initSchema'](){const _0x4a136b=this['editor']['model']['schema'];_0x4a136b['isRegistered']('imageBlock')&&_0x4a136b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4a136b['isRegistered']('imageInline')&&_0x4a136b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x29e7c5=this['editor'];_0x29e7c5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x29e7c5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4d8fe8=>_0x4d8fe8['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3f9e0a=_0x29e7c5['commands']['get']('replaceImageSource');_0x3f9e0a&&this['listenTo'](_0x3f9e0a,'cleanupImage',(_0x368554,[_0x3502d2,_0x37656d])=>{_0x3502d2['removeAttribute']('uploadcareImageId',_0x37656d);});}['_initConfig'](){const _0x10f6de=this['editor']['config']['get']('uploadcare.uploader')||{},_0x9dd474=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4c7796(_0x39b3ae['document'],'uc-config',{..._0x10f6de,'pubkey':_0x9dd474,'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']=_0xeac21e=>{if('closeMax'==_0xeac21e)return'#uc-icon-arrow-down';},_0x39b3ae['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4c7796(_0x39b3ae['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x39b3ae['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3841f9=this['editor']['commands']['get']('insertImage');_0x3841f9&&this['listenTo'](_0x3841f9,'execute',()=>{const _0x326ded=this['editor']['model']['document']['selection']['getSelectedElement']();_0x326ded&&_0x326ded['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x326ded);});});const _0x5766a3=this['editor']['commands']['get']('uploadcareImageReplace');_0x5766a3&&this['listenTo'](_0x5766a3,'execute',()=>{const _0x3f94a9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3f94a9&&_0x3f94a9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3f94a9);});});}}class tt extends _0x4acb7d{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b5c67){super(_0x5b5c67),_0x5b5c67['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3f9ba9['defineComponents'](_0x3f9ba9),this['_defineLocale']();}['_defineLocale'](){const _0x195102=this['editor']['config']['get']('uploadcare.locale'),_0x11d02d=this['editor']['locale']['contentLanguage'];_0x195102&&_0x3f9ba9['defineLocale'](_0x11d02d,_0x195102);}}class ii extends _0xf244e4{constructor(_0x35afe5){super(_0x35afe5);const t=_0x35afe5['t'],_0x16e523=this['bindTemplate'],_0x4d7ff1=new _0xdc946a();_0x4d7ff1['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':[_0x4d7ff1,{'text':_0x16e523['to']('imageUploadProgress',_0x213499=>t('Loading\x20image...')+'\x20('+(_0x213499||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 _0xf244e4{constructor(_0x2f5faa){super(_0x2f5faa);const t=_0x2f5faa['t'];this['set']('errorType',null);const _0x6e29e7=new _0xa0989a(_0x2f5faa);_0x6e29e7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x6e29e7['withText']=!0x0,_0x6e29e7['class']='ck-button-action',_0x6e29e7['on']('execute',()=>{this['fire']('retry');}),_0x6e29e7['bind']('isVisible')['to'](this,'errorType',_0x46fd40=>'NotFound'!==_0x46fd40);const _0x922a18=new _0x3e351e();_0x922a18['content']=_0x3a0094,_0x922a18['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x464b76=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':[_0x922a18,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x464b76['to']('errorType',_0x4284b6=>t('NotFound'!==_0x4284b6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x6e29e7]},{'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 _0xf244e4{constructor(_0x4e59f2,_0x2854e9){super(_0x4e59f2);const _0x23117d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2854e9,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x23117d['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2bcd96,_0x436137,_0xa2e38f){super(_0x2bcd96),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2bcd96),this['_errorView']=new ti(_0x2bcd96),this['_editingView']=new ei(_0x2bcd96,_0xa2e38f),this['_focusableView']=new _0xf244e4(_0x2bcd96),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x436137),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'],_0x1ae945=>{this['_addUploadcareImageEditorListeners'](_0x1ae945);});}),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'](_0x39eaa5,_0x2a7fb0){const _0xabceb8='uc-cloud-image-editor',_0x42d972=_0x39eaa5['querySelector'](_0xabceb8);if(_0x42d972)return _0x2a7fb0(_0x42d972);const _0x2ce52a=new MutationObserver(_0xfb905e=>{const _0x4ffb7b=_0xfb905e['filter'](_0x407f9e=>_0x407f9e['target']===_0x39eaa5&&_0x407f9e['addedNodes']['length']>0x0&&_0x407f9e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xabceb8);_0x4ffb7b['length']&&(_0x2ce52a['disconnect'](),_0x2a7fb0(_0x4ffb7b[0x0]['addedNodes'][0x0]));});_0x2ce52a['observe'](_0x39eaa5,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1d92e1){_0x1d92e1['addEventListener']('apply',_0x1e2d5a=>{this['fire']('apply',{'imageSrc':_0x1e2d5a['detail']['cdnUrl']});}),_0x1d92e1['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x9f1237(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4e4f1d,_0x5889a2,_0x3eda3b){super(),this['_editor']=_0x4e4f1d,this['_dialog']=_0x5889a2,this['_imageElement']=_0x3eda3b,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 _0x4cc014=this['_imageElement'],_0x7313b3=_0x4cc014['getAttribute']('uploadcareImageId'),_0x369b23=_0x4cc014['getAttribute']('src');if(_0x7313b3)await this['_loadImageInfo'](_0x7313b3,_0x369b23);else{if(this['_imageCache']['has'](_0x369b23)){const _0x1ad6bd=this['_imageCache']['get'](_0x369b23);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1ad6bd['url'],this['imageDimension']=_0x1ad6bd['dimension'],this['imageId']=_0x1ad6bd['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2684b1}=this['_editor'],t=_0x2684b1['t'],_0x311acb=new X(_0x2684b1,this['imageStatus'],this['_attributes']);_0x311acb['bind']('status')['to'](this,'imageStatus'),_0x311acb['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x311acb['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x311acb['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x311acb,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x31b6e0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x311acb,'position':_0x494799['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x311acb['focus']();},'onHide':()=>{_0x311acb['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x218849=>!A(_0x218849,_0x311acb['element'])}});}['_loadImageInfo'](_0x5dc531,_0x59c84a){return j['getInfo'](_0x5dc531,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5ae449=>{const {width:_0x1f3fe0,height:_0x4b8255}=_0x5ae449['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x59c84a,this['imageDimension']={'width':_0x1f3fe0,'height':_0x4b8255},this['imageId']=_0x5dc531;})['catch'](_0x3d8b32=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3d8b32['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x190612,_0xae8da6){return this['_getImageAsFile'](_0x190612)['then'](_0x3df1fe=>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':_0xae8da6['signal'],'file':_0x3df1fe,'onProgress':_0x4b9156=>{_0x4b9156&&_0x4b9156['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4b9156['value']));}}))['then'](_0x56607d=>{const {width:_0x44ddc7,height:_0x47fad6}=_0x56607d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56607d['cdnUrl'],this['imageDimension']={'width':_0x44ddc7,'height':_0x47fad6},this['imageId']=_0x56607d['uuid'],this['imageUploadProgress']=null;const _0x34ccdf=_0x190612['getAttribute']('src');this['_imageCache']['set'](_0x34ccdf,{'id':_0x56607d['uuid'],'url':_0x56607d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x80c583=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x80c583['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2789a7,_0x373c60){_0x2789a7['on']('apply',(_0x5704ae,_0x1164f3)=>{this['_replaceImage'](_0x373c60,_0x1164f3['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2789a7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2789a7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2ef2c0,_0x4566de,_0x5d9d2f){const _0x5f3672=this['_editor'],{width:_0x2ec383,height:_0x4bf2c7}=S(_0x4566de,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x37900e,imageSources:_0x4f7686}=C(_0x4566de,_0x2ec383);_0x5f3672['model']['change'](_0x286c3c=>{if('$graveyard'===_0x2ef2c0['root']['rootName']){_0x5f3672['execute']('insertImage',{'imageType':_0x2ef2c0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2ef2c0['getAttributes']()),'uploadcareImageId':_0x5d9d2f,'src':_0x37900e,'sources':_0x4f7686,'width':_0x2ec383,'height':_0x4bf2c7}});const _0xd8f1e7=_0x2ef2c0['getChildren']();_0x2ef2c0=_0x5f3672['model']['document']['selection']['getSelectedElement']();for(const _0x1a65c6 of _0xd8f1e7)_0x286c3c['append'](_0x286c3c['cloneElement'](_0x1a65c6),_0x2ef2c0);}else _0x286c3c['setSelection'](_0x2ef2c0,'on'),_0x5f3672['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2ef2c0['getAttributes']()),'uploadcareImageId':_0x5d9d2f,'src':_0x37900e,'sources':_0x4f7686,'width':_0x2ec383,'height':_0x4bf2c7},_0x2ef2c0);_0x286c3c['setSelection'](_0x2ef2c0,'on');});}async['_getImageAsFile'](_0x5e1c1d){const _0x3ff707=_0x39b3ae['window'],_0x297f82=_0x39b3ae['document']['location']['href'],_0x3f385c=new _0x3ff707['URL'](_0x5e1c1d['getAttribute']('src'),_0x297f82);if('data:'===_0x3f385c['protocol']){const _0x254c76=_0x3f385c['href']['split'](','),_0x120d3c=_0x254c76[0x0]['match'](/:(.*?);/)[0x1],_0xed205=_0x120d3c['split']('/')[0x1],_0x1edf3b=_0x3ff707['atob'](_0x254c76[_0x254c76['length']-0x1]);let _0x4e992e=_0x1edf3b['length'];const _0x46386a=new _0x3ff707['Uint8Array'](_0x4e992e);for(;_0x4e992e--;)_0x46386a[_0x4e992e]=_0x1edf3b['charCodeAt'](_0x4e992e);return new _0x3ff707['File']([_0x46386a],'image.'+_0xed205,{'type':_0x120d3c});}const _0xec5457=_0x3f385c['href']['split']('/'),_0x3add02=_0xec5457[_0xec5457['length']-0x1],_0x337655=_0x3add02['split']('.')[0x1];return _0x3ff707['fetch'](_0x3f385c['href'])['then'](_0x3d204d=>_0x3d204d['clone']()['blob']())['then'](_0x3bb83f=>new _0x3ff707['File']([_0x3bb83f],_0x3add02,{'type':'image/'+_0x337655}));}}class O extends _0x438ac4{['imageEditController'];static get['requires'](){return[_0x12f904];}['_isEditable'];constructor(_0x2aab65){super(_0x2aab65),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x463b3c){const _0x468ee0=G(_0x463b3c);return _0x588f51=>!(!_0x588f51||!_0x588f51['is']('element','imageBlock')&&!_0x588f51['is']('element','imageInline'))&&(!!_0x588f51['hasAttribute']('uploadcareImageId')||!!_0x588f51['hasAttribute']('src')&&_0x468ee0(_0x588f51['getAttribute']('src')));}(_0x2aab65['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1fa77f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1fa77f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1de833=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1de833&&(_0x1de833['is']('element','imageBlock')||_0x1de833['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x12f904),_0x1de833),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x438ac4{['refresh'](){const _0x462f7f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x462f7f&&(_0x462f7f['is']('element','imageBlock')||_0x462f7f['is']('element','imageInline')));}['execute'](_0x285472){const _0x167ef1=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xe28d76=>{_0xe28d76['setAttributes'](_0x285472,_0x167ef1),_0xe28d76['removeAttribute']('srcset',_0x167ef1),_0xe28d76['removeAttribute']('sizes',_0x167ef1);});}}class m extends _0x4acb7d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5ce030,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4bfffa}=this;_0x4bfffa['commands']['add']('uploadcareImageEdit',new O(_0x4bfffa)),_0x4bfffa['commands']['add']('uploadcareImageReplace',new R(_0x4bfffa));}}class g extends _0x4acb7d{['_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 _0x2884a2=this['editor'];_0x2884a2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x57a1c6=>{const _0x29c0ea=_0x2884a2['commands']['get']('uploadcareImageEdit'),_0x517548=new _0xa0989a(_0x57a1c6),t=_0x57a1c6['t'];return _0x517548['set']({'icon':_0x31b6e0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x517548['bind']('isEnabled')['to'](_0x29c0ea),_0x517548['bind']('isOn')['to'](_0x29c0ea,'isActive'),this['listenTo'](_0x517548,'execute',()=>{_0x2884a2['execute']('uploadcareImageEdit'),_0x2884a2['editing']['view']['focus']();}),_0x517548;}),this['_initConfig']();}['_initConfig'](){const _0x1f84d0=_0x4c7796(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1f84d0),this['listenTo'](this['editor'],'destroy',()=>{_0x1f84d0['remove']();});}}class et extends _0x4acb7d{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x289b3c=>0x1!=_0x289b3c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x31be4b=>{const {af:{dictionary:_0xe10806,getPluralForm:_0x2aab63}}={'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':_0xbfa39c=>0x1!=_0xbfa39c}};_0x31be4b['af']||={'dictionary':{},'getPluralForm':null},_0x31be4b['af']['dictionary']=Object['assign'](_0x31be4b['af']['dictionary'],_0xe10806),_0x31be4b['af']['getPluralForm']=_0x2aab63;})(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':_0x4bd0c6=>0x0==_0x4bd0c6?0x0:0x1==_0x4bd0c6?0x1:0x2==_0x4bd0c6?0x2:_0x4bd0c6%0x64>=0x3&&_0x4bd0c6%0x64<=0xa?0x3:_0x4bd0c6%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5e9937=>{const {ar:{dictionary:_0x42fc24,getPluralForm:_0x127375}}={'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':_0x10e6ac=>0x0==_0x10e6ac?0x0:0x1==_0x10e6ac?0x1:0x2==_0x10e6ac?0x2:_0x10e6ac%0x64>=0x3&&_0x10e6ac%0x64<=0xa?0x3:_0x10e6ac%0x64>=0xb?0x4:0x5}};_0x5e9937['ar']||={'dictionary':{},'getPluralForm':null},_0x5e9937['ar']['dictionary']=Object['assign'](_0x5e9937['ar']['dictionary'],_0x42fc24),_0x5e9937['ar']['getPluralForm']=_0x127375;})(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':_0xe4a259=>0x1!=_0xe4a259}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x6f1742=>{const {ast:{dictionary:_0x495ccb,getPluralForm:_0x3d1acc}}={'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':_0x4b172c=>0x1!=_0x4b172c}};_0x6f1742['ast']||={'dictionary':{},'getPluralForm':null},_0x6f1742['ast']['dictionary']=Object['assign'](_0x6f1742['ast']['dictionary'],_0x495ccb),_0x6f1742['ast']['getPluralForm']=_0x3d1acc;})(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':_0x3869fc=>0x1!=_0x3869fc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2cd397=>{const {az:{dictionary:_0x39237b,getPluralForm:_0x23dc5f}}={'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':_0x988be1=>0x1!=_0x988be1}};_0x2cd397['az']||={'dictionary':{},'getPluralForm':null},_0x2cd397['az']['dictionary']=Object['assign'](_0x2cd397['az']['dictionary'],_0x39237b),_0x2cd397['az']['getPluralForm']=_0x23dc5f;})(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':_0x5d27a4=>_0x5d27a4%0xa==0x1&&_0x5d27a4%0x64!=0xb?0x0:_0x5d27a4%0xa>=0x2&&_0x5d27a4%0xa<=0x4&&(_0x5d27a4%0x64<0xa||_0x5d27a4%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x47e8ad=>{const {be:{dictionary:_0x468163,getPluralForm:_0x1dd3ad}}={'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':_0x20c022=>_0x20c022%0xa==0x1&&_0x20c022%0x64!=0xb?0x0:_0x20c022%0xa>=0x2&&_0x20c022%0xa<=0x4&&(_0x20c022%0x64<0xa||_0x20c022%0x64>=0x14)?0x1:0x2}};_0x47e8ad['be']||={'dictionary':{},'getPluralForm':null},_0x47e8ad['be']['dictionary']=Object['assign'](_0x47e8ad['be']['dictionary'],_0x468163),_0x47e8ad['be']['getPluralForm']=_0x1dd3ad;})(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':_0x183cc5=>0x1!=_0x183cc5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x53ee5f=>{const {bg:{dictionary:_0x3734d1,getPluralForm:_0x475ec1}}={'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':_0x42dae0=>0x1!=_0x42dae0}};_0x53ee5f['bg']||={'dictionary':{},'getPluralForm':null},_0x53ee5f['bg']['dictionary']=Object['assign'](_0x53ee5f['bg']['dictionary'],_0x3734d1),_0x53ee5f['bg']['getPluralForm']=_0x475ec1;})(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':_0x17bae3=>0x1!=_0x17bae3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3b97b0=>{const {bn:{dictionary:_0x4a3862,getPluralForm:_0x48acce}}={'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':_0x50f88c=>0x1!=_0x50f88c}};_0x3b97b0['bn']||={'dictionary':{},'getPluralForm':null},_0x3b97b0['bn']['dictionary']=Object['assign'](_0x3b97b0['bn']['dictionary'],_0x4a3862),_0x3b97b0['bn']['getPluralForm']=_0x48acce;})(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':_0x505150=>_0x505150%0xa==0x1&&_0x505150%0x64!=0xb?0x0:_0x505150%0xa>=0x2&&_0x505150%0xa<=0x4&&(_0x505150%0x64<0xa||_0x505150%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x19eba2=>{const {bs:{dictionary:_0x5691f4,getPluralForm:_0x2e66c6}}={'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':_0x4d05d1=>_0x4d05d1%0xa==0x1&&_0x4d05d1%0x64!=0xb?0x0:_0x4d05d1%0xa>=0x2&&_0x4d05d1%0xa<=0x4&&(_0x4d05d1%0x64<0xa||_0x4d05d1%0x64>=0x14)?0x1:0x2}};_0x19eba2['bs']||={'dictionary':{},'getPluralForm':null},_0x19eba2['bs']['dictionary']=Object['assign'](_0x19eba2['bs']['dictionary'],_0x5691f4),_0x19eba2['bs']['getPluralForm']=_0x2e66c6;})(window['CKEDITOR_TRANSLATIONS']||={});
|