@ckeditor/ckeditor5-uploadcare 48.3.0-alpha.1 → 48.3.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +8 -8
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0xac0e0b,Plugin as _0x526f26}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x1ee1a0,IconError as _0x434a73,IconFacebook as _0x1b655b,IconGoogleDrive as _0x1f960c,IconGooglePhotos as _0x3674a4,IconOneDrive as _0x1199de,IconUploadcareImageEdit as _0x15e211,IconUploadcareImageUpload as _0x290102,IconUploadcareLink as _0x3e79fb}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x5d6b01,Dialog as _0x555db2,DialogViewPosition as _0x2e1b25,FocusCycler as _0x29eed9,IconView as _0x5e1af5,MenuBarMenuListItemButtonView as _0x4690f5,Notification as _0x29e6e4,SpinnerView as _0x253263,View as _0x5780c7}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x468f4d,FocusTracker as _0x1eeb55,ObservableMixin as _0x4028e7,createElement as _0x73351f,getAncestors as _0x4b6e61,global as _0x243c00,uid as _0x415883}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x4d896e,ImageUploadEditing as _0x4e3fd0,ImageUploadProgress as _0x1cc582,ImageUtils as _0x2f6a6c,PictureEditing as _0x496c97}from'@ckeditor/ckeditor5-image';import{FileRepository as _0xd394c1}from'@ckeditor/ckeditor5-upload';import{info as _0x13ce61,uploadFile as _0x40e027}from'@uploadcare/upload-client';import*as _0x5694ed from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x3fbe2b,_0x1dcea3,_0x3e6ebb){const t=_0x3fbe2b['t'],_0xec402b=_0x3fbe2b['t'];switch(_0x1dcea3){case'local':return{'text':_0xec402b('Insert'===_0x3e6ebb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xec402b('From\x20computer')};case'url':return{'text':'Insert'===_0x3e6ebb?_0xec402b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xec402b('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x3e6ebb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x3e6ebb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x3e6ebb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x3e6ebb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x3e6ebb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1dcea3;}}var V=class extends _0x526f26{['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 _0x2239e8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x32f720;for(const _0x4e8b6c in _0x2239e8){const _0x2a4c25=_0x4e8b6c,_0x4663f=_0x2239e8[_0x2a4c25];if('uploadcareLicenseKeyValid'==_0x4663f||'uploadcareLicenseKeyInvalid'==_0x4663f||'uploadcareLicenseKeyExpired'==_0x4663f||'uploadcareLicenseKeyDomainLimit'==_0x4663f||'uploadcareLicenseKeyNotAllowed'==_0x4663f||'uploadcareLicenseKeyEvaluationLimit'==_0x4663f||'uploadcareLicenseKeyUsageLimit'==_0x4663f){delete _0x2239e8[_0x2a4c25],_0x32f720=_0x4663f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x32f720&&_0x2239e8['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x32f720&&_0x2239e8['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x32f720&&_0x2239e8['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x32f720&&_0x2239e8['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x32f720&&_0x2239e8['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x32f720&&_0x2239e8['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x584f08}=this,_0x5a4383=_0x584f08['commands']['get']('uploadcare');if(!_0x5a4383)return;const _0x5cd260=this['_normalizeConfigSourceList'](_0x584f08['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2021df,_0x29013e)=>{const _0x58658c=this['_getIntegrationKey'](_0x29013e['type']);return _0x2021df[_0x58658c]||(_0x2021df[_0x58658c]=[]),_0x2021df[_0x58658c]['push'](_0x29013e),_0x2021df;},{});_0x584f08['plugins']['has']('ImageInsertUI')&&_0x584f08['commands']['get']('uploadcare')&&Object['entries'](_0x5cd260)['forEach'](([_0x506485,_0x422552])=>{_0x584f08['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x506485,'observable':()=>_0x5a4383,'buttonViewCreator':()=>this['_createToolbarButton'](_0x422552),'formViewCreator':()=>this['_createDropdownButtons'](_0x422552),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x422552),'override':'assetManager'!==_0x506485});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4c21d1){const {locale:_0x1b52c3}=this['editor'];return _0x4c21d1['map'](_0x3ac1f7=>{const _0x2edef3=T(_0x1b52c3,_0x3ac1f7,'Insert');switch(_0x3ac1f7){case'local':return{'icon':_0x290102,'type':'local',..._0x2edef3};case'url':return{'icon':_0x3e79fb,'type':'url',..._0x2edef3};case'dropbox':return{'icon':_0x1ee1a0,'type':'dropbox',..._0x2edef3};case'facebook':return{'icon':_0x1b655b,'type':'facebook',..._0x2edef3};case'gdrive':return{'icon':_0x1f960c,'type':'gdrive',..._0x2edef3};case'gphotos':return{'icon':_0x3674a4,'type':'gphotos',..._0x2edef3};case'onedrive':return{'icon':_0x1199de,'type':'onedrive',..._0x2edef3};}});}['_getIntegrationKey'](_0x305056){switch(_0x305056){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x1d3d15,_0x26a910){const _0x1936ba=this['editor'],_0x4d5a1c=new _0x1d3d15(_0x1936ba['locale']),_0x5d0d70=_0x1936ba['commands']['get']('uploadcare');return _0x4d5a1c['bind']('isEnabled')['to'](_0x5d0d70),_0x4d5a1c['on']('execute',()=>{_0x5d0d70['execute'](_0x26a910);}),_0x4d5a1c;}['_createToolbarButton'](_0x28bfb4){const {locale:_0x2bb1e5}=this['editor'],_0x4ffa7e=this['editor']['plugins']['get']('ImageInsertUI'),_0xd28f6b=_0x28bfb4[0x0],_0x110ae5=this['_createButton'](_0x5d6b01,_0xd28f6b['type']);return _0x110ae5['icon']=_0xd28f6b['icon'],_0x110ae5['bind']('label')['to'](_0x4ffa7e,'isImageSelected',_0x2f8763=>T(_0x2bb1e5,_0xd28f6b['type'],_0x2f8763?'Replace':'Insert')['text']),_0x110ae5['tooltip']=!0x0,_0x110ae5;}['_createDropdownButtons'](_0x5078a5){const {locale:_0x1d783b}=this['editor'],_0xa88e42=this['editor']['plugins']['get']('ImageInsertUI');return _0x5078a5['map'](_0x1c9f6c=>{const _0x6da63f=this['_createButton'](_0x5d6b01,_0x1c9f6c['type']);return _0x6da63f['withText']=!0x0,_0x6da63f['icon']=_0x1c9f6c['icon'],_0x6da63f['bind']('label')['to'](_0xa88e42,'isImageSelected',_0xce8ba8=>T(_0x1d783b,_0x1c9f6c['type'],_0xce8ba8?'Replace':'Insert')['text']),_0x6da63f;});}['_createMenuBarButtons'](_0x404402){return _0x404402['map'](_0x1c34f7=>{const _0x8d6547=this['_createButton'](_0x4690f5,_0x1c34f7['type']);return _0x8d6547['icon']=_0x1c34f7['icon'],_0x8d6547['label']=_0x1c34f7['shortText'],_0x8d6547;});}},F=class extends _0x5780c7{['focusTracker'];['focusCycler'];constructor(_0x45adb7){super(_0x45adb7),this['focusTracker']=new _0x1eeb55(),this['focusCycler']=new _0x29eed9({'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 extends F{constructor(_0x14bb68,_0x4c8222){super(_0x14bb68),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-'+_0x4c8222}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x50c4f2,_0x3a185f){const _0x43e868=_0x50c4f2['replace'](/\/$/,'');return{'imageFallbackUrl':_0x50c4f2,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x86efee=>_0x86efee<_0x3a185f)['map'](_0x35ae60=>_0x43e868+'/-/resize/'+_0x35ae60+'x/\x20'+_0x35ae60+'w'),_0x50c4f2+'\x20'+_0x3a185f+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3a185f+'px)\x20100vw,\x20'+_0x3a185f+'px','type':'image/webp'}]};}function j(_0x3dfb53,_0x43ba25,_0x41c330){const _0x3e1bf6=_0x3dfb53['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3e1bf6?parseInt(_0x3e1bf6[0x1],0xa):_0x43ba25,'height':_0x3e1bf6?parseInt(_0x3e1bf6[0x2],0xa):_0x41c330};}function q(_0x10a65b,_0x5d43a5){const _0x2dced2=new(_0x468f4d())(),_0x5442f3=_0x10a65b['plugins']['get']('ImageUtils'),_0x33705b=_0x10a65b['editing']['mapper']['toViewElement'](_0x5d43a5),_0x1371a8=_0x5442f3['findViewImgElement'](_0x33705b),_0x3abbf5=_0x10a65b['editing']['view']['domConverter']['viewToDom'](_0x1371a8),_0x1bb4aa=_0x5d43a5['getAttribute']('width'),_0x8351f4=_0x5d43a5['getAttribute']('height'),_0x1b6f1f='image-processing';_0x10a65b['editing']['view']['change'](_0x453ce4=>{_0x453ce4['addClass'](_0x1b6f1f,_0x33705b),_0x453ce4['setStyle']('aspect-ratio',_0x1bb4aa+'/'+_0x8351f4,_0x1371a8);}),_0x2dced2['listenTo'](_0x3abbf5,'load',()=>{_0x2dced2['stopListening'](_0x3abbf5,'load'),_0x10a65b['editing']['view']['change'](_0x2f9d39=>{_0x2f9d39['removeClass'](_0x1b6f1f,_0x33705b),_0x2f9d39['removeStyle']('aspect-ratio',_0x1371a8);});});}function M(_0x3ce105){if(Array['isArray'](_0x3ce105)){const _0x40ba9f=_0x3ce105['map'](M);return _0x2775e7=>_0x40ba9f['some'](_0x48746e=>_0x48746e(_0x2775e7));}if('origin'==_0x3ce105){const _0x3eb48a=_0x243c00['window']['location']['origin'];return _0x4053d4=>new URL(_0x4053d4,_0x243c00['document']['baseURI'])['origin']==_0x3eb48a;}return'function'==typeof _0x3ce105?_0x3ce105:_0x3ce105 instanceof RegExp?_0x175f0a=>!(!_0x175f0a['match'](_0x3ce105)&&!_0x175f0a['replace'](/^https?:\/\//,'')['match'](_0x3ce105)):()=>!0x1;}function H(_0x6ae103,_0x48d4ce){return _0x4b6e61(_0x6ae103['target'])['includes'](_0x48d4ce);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4028e7();var G=class extends W{['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3ccac7,_0x5a117d,_0x2f4e0d){super(),this['_editor']=_0x3ccac7,this['_editing']=_0x5a117d,this['_dialog']=_0x3ccac7['plugins']['get'](_0x555db2),this['_api']=_0x5a117d['ctxElement']['getAPI'](),this['_type']=_0x2f4e0d,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:_0x10c84e,model:_0x13e1b8}=this['_editor'],_0x3b2d9f=_0x13e1b8['document']['selection']['getSelectedElement'](),_0x5090b9=_0x3b2d9f&&(_0x3b2d9f['is']('element','imageBlock')||_0x3b2d9f['is']('element','imageInline'));this['_formView']=new $(_0x10c84e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x290102,'title':T(_0x10c84e,this['_type'],_0x5090b9?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2e1b25['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x141363=>!H(_0x141363,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x16652b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x16747f=>{const _0x466040=_0x16652b['length'];for(const _0x40adc4 of _0x16652b){const _0x55622a=_0x40adc4===_0x16652b[_0x466040-0x1],{cdnUrl:_0x3809a5,fileInfo:_0x5792ad}=_0x40adc4;if(!_0x3809a5||!_0x5792ad)continue;const {width:_0x27bec1,height:_0x56d5c9}=_0x5792ad['imageInfo'],_0xf82b02=j(_0x3809a5,_0x27bec1,_0x56d5c9),_0x3b0798=B(_0x3809a5,_0xf82b02['width']),_0x51a995={'id':_0x5792ad['uuid'],'type':'image','attributes':{'imageDimension':_0xf82b02,..._0x3b0798}};this['_insertAsset'](_0x51a995,_0x55622a,_0x16747f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1fea94=>{'idle'===_0x1fea94['detail']['status']&&!_0x1fea94['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}['_insertAsset'](_0x4d9bdd,_0x1ca760,_0x53bcde){const _0x30bbce=this['_editor']['model']['document']['selection'],_0x4c0a24=_0x30bbce['getSelectedElement'](),_0x103349=!(!_0x4c0a24||!_0x4c0a24['is']('element','imageInline'));_0x53bcde['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4d9bdd,_0x103349),_0x1ca760||_0x53bcde['setSelection'](_0x30bbce['getLastPosition']());}['_insertImage'](_0x4197bc,_0x38d640){const _0x59ffe0=this['_editor'],{imageDimension:_0x280040,imageFallbackUrl:_0x48e22c,imageSources:_0x541b37}=_0x4197bc['attributes'];_0x59ffe0['execute']('insertImage',{'imageType':_0x38d640?'imageInline':null,'source':{'uploadcareImageId':_0x4197bc['id'],'src':_0x48e22c,'sources':_0x541b37,..._0x280040}});}},z=class extends _0xac0e0b{['_editing'];['_controller']=null;static get['requires'](){return[_0x555db2,Z];}constructor(_0x32da51){super(_0x32da51),this['_editing']=_0x32da51['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4f2643){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x4f2643);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x2bacb6,..._0x8afd79}){return _0x40e027(_0x2bacb6,_0x8afd79);}static['getInfo'](_0x24b04c,_0x45c928){return _0x13ce61(_0x24b04c,_0x45c928);}},J=class extends _0x526f26{static get['requires'](){return[_0x4e3fd0,_0x1cc582,_0xd394c1,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1f3918=this['editor'];if(!_0x1f3918['config']['get']('uploadcare'))return;_0x1f3918['plugins']['get'](_0xd394c1)['createUploadAdapter']=_0xee0488=>new X(_0xee0488,_0x1f3918),_0x1f3918['plugins']['get'](_0x4e3fd0)['on']('uploadComplete',(_0xd984dc,{imageElement:_0x57d832,data:_0x498dbe})=>{_0x1f3918['model']['change'](_0x903891=>{_0x903891['setAttribute']('uploadcareImageId',_0x498dbe['uploadcareImageId'],_0x57d832);});});}},X=class{['loader'];['editor'];['controller'];constructor(_0x4fe179,_0x5290fd){this['loader']=_0x4fe179,this['editor']=_0x5290fd,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x41a76f=await this['loader']['file'];return Q['upload']({'file':_0x41a76f,'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':_0x3a18fc=>{_0x3a18fc&&_0x3a18fc['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3a18fc['value']);}})['then'](async _0x84f1ef=>{const {imageFallbackUrl:_0x5b6dac,imageSources:_0x59c82e}=B(_0x84f1ef['cdnUrl'],_0x84f1ef['imageInfo']['width']);return{'uploadcareImageId':_0x84f1ef['uuid'],'default':_0x5b6dac,'sources':_0x59c82e};})['catch'](()=>{const _0x402a4f=t('Cannot\x20upload\x20file:')+('\x20'+_0x41a76f['name']+'.');return Promise['reject'](_0x402a4f);});}['abort'](){this['controller']['abort']();}},Z=class extends _0x526f26{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x496c97,J,_0x555db2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4e1d57){super(_0x4e1d57),this['ucContextId']=_0x415883();}['init'](){const _0x31a20f=this['editor'];_0x31a20f['commands']['add']('uploadcare',new z(_0x31a20f));}['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 _0x23edff=_0x243c00['document']['querySelector']('input[uploadcare-file-input]');_0x23edff&&_0x23edff['remove']();}),async function(_0x2e1892){const _0x4c21f8='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0xa9969c=0x78df8,_0x466f94=window['Date']['now'](),_0x4bf6be=_0x2e1892['editor'],_0x5e85e9=new window['Promise'](_0x34c273=>{_0x4bf6be['once']('ready',_0x34c273);}),_0x4222d2={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x371d6f=_0x4bf6be['config']['get']('licenseKey');async function _0xfb61c8(){let _0x15adda,_0x33de76=null,_0x5de1d7=null;try{return'GPL'==_0x371d6f?'NotAllowed':(_0x15adda=_0x1e5ad9(),_0x15adda?(_0x15adda['usageEndpoint']&&(_0x5de1d7=_0x2e2a64(_0x15adda['usageEndpoint'],_0x15adda['jti'])),await _0x4a6aa2()?_0x2fb890()?_0x2ce1e0()?'Expired':_0x35fd65()?('evaluation'==_0x15adda['licenseType']&&(_0x33de76=_0x2cb9c8('EvaluationLimit')),await _0x89343d()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x2ce1e0(){const _0x4a4e04=['evaluation','trial']['includes'](_0x15adda['licenseType'])?_0x466f94/0x3e8:0xe10*_0xa9969c;return _0x15adda['exp']<_0x4a4e04;}function _0x2fb890(){const _0x21234c=_0x15adda['features'];return!!_0x21234c&&(!!_0x21234c['includes']('*')||!!_0x21234c['includes']('UPLC'));}function _0x35fd65(){const _0x2b4e22=_0x15adda['licensedHosts'];if(!_0x2b4e22||0x0==_0x2b4e22['length'])return!0x0;const {hostname:_0x13e747}=new URL(window['location']['href']);if(_0x2b4e22['includes'](_0x13e747))return!0x0;const _0x1694e4=_0x13e747['split']('.');return _0x2b4e22['filter'](_0x4dc404=>_0x4dc404['includes']('*'))['map'](_0x10eea3=>_0x10eea3['split']('.'))['filter'](_0x1cce95=>_0x1cce95['length']<=_0x1694e4['length'])['map'](_0x1b5465=>Array(_0x1694e4['length']-_0x1b5465['length'])['fill']('*'===_0x1b5465[0x0]?'*':'')['concat'](_0x1b5465))['some'](_0x4f21db=>_0x1694e4['every']((_0x58abf0,_0x5a504b)=>_0x4f21db[_0x5a504b]===_0x58abf0||'*'===_0x4f21db[_0x5a504b]));}function _0x89343d(){return _0x33de76&&_0x5de1d7?new window['Promise']((_0x173e32,_0xe955f7)=>{_0x33de76['then'](_0x173e32,_0xe955f7),_0x5de1d7['then'](_0x16cb95=>{'Valid'!=_0x16cb95&&_0x173e32(_0x16cb95);},_0xe955f7);}):_0x33de76||_0x5de1d7||'Valid';}}function _0x2e2a64(_0x5ed0c7,_0x25aaa0){return new window['Promise'](_0x49c04a=>{if(_0x586218())return _0x49c04a('Valid');_0x2fc8db(),_0x4bf6be['decorate']('_sendUsageRequest');let _0x406e3f=!0x1;const _0x2d478f=_0x415883();function _0x3967a2(_0x18b0e4){return!!_0x18b0e4&&('object'==typeof _0x18b0e4||'function'==typeof _0x18b0e4)&&'function'==typeof _0x18b0e4['then']&&'function'==typeof _0x18b0e4['catch'];}function _0x34e114(_0x5de139){_0x1983a0(_0x5de139)['then'](_0x3431bf=>_0x3431bf&&'ok'==_0x3431bf['status']?_0x5060b9(_0x546134(_0x2d478f+_0x25aaa0))!=_0x3431bf['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x173d45=>(_0x33c94b(),_0x173d45),()=>{const _0x3772d2=_0xa41190();return null==_0x3772d2?(_0x33c94b(),'Valid'):_0x466f94-_0x3772d2>0x240c8400?'UsageLimit':'Valid';})['then'](_0x49c04a)['catch'](()=>{_0x49c04a('UsageLimit');});const _0x131b0a=0x36ee80;function _0x33c94b(){const _0x727db0='llct-'+_0x5060b9(_0x546134(_0x5ed0c7)),_0x36aeec=_0xaa264a(_0x5060b9(window['Math']['ceil'](_0x466f94/_0x131b0a)));window['localStorage']['setItem'](_0x727db0,_0x36aeec);}function _0xa41190(){const _0x3cd975='llct-'+_0x5060b9(_0x546134(_0x5ed0c7)),_0x2cd8ea=window['localStorage']['getItem'](_0x3cd975);return _0x2cd8ea?window['parseInt'](_0xaa264a(_0x2cd8ea),0x10)*_0x131b0a:null;}function _0x1983a0(_0x2cc5e6){return new window['Promise']((_0x144f94,_0x2ef735)=>{_0x2cc5e6['then'](_0x144f94,_0x2ef735),window['setTimeout'](_0x2ef735,0x1d4c0);});}}_0x4bf6be['on']('_sendUsageRequest',(_0x2f5452,_0x112ae2)=>{if(_0x112ae2[0x0]!=_0x5ed0c7)return _0x49c04a('UsageLimit');_0x112ae2[0x1]={..._0x112ae2[0x1],'requestId':_0x2d478f};},{'priority':'high'}),_0x4bf6be['on']('_sendUsageRequest',_0x56b17c=>{_0x3967a2(_0x56b17c['return'])&&(_0x406e3f=!0x0,_0x34e114(_0x56b17c['return']));},{'priority':'low'}),_0x5e85e9['then'](()=>{_0x406e3f||_0x49c04a('UsageLimit');});});function _0x586218(){return'auto'==_0x4bf6be['editing']['view']['_overlayModeHint'];}function _0x2fc8db(){_0x4bf6be['editing']['view']['_overlayModeHint']='auto';}}function _0x2cb9c8(_0x37502d){const _0x46d10e=[new window['Promise'](_0x1e5719=>setTimeout(_0x1e5719,0x93ecc)),_0x5e85e9['then'](()=>new window['Promise'](_0x39901a=>{let _0x33cfa8=0x0;_0x4bf6be['model']['on']('applyOperation',(_0x568a90,_0x55f6ab)=>{_0x55f6ab[0x0]['isDocumentOperation']&&_0x33cfa8++,0x5e8==_0x33cfa8&&(_0x39901a(),_0x568a90['off']());});}))];return window['Promise']['race'](_0x46d10e)['then'](()=>_0x37502d);}async function _0x3a5d03(){await _0x5e85e9,_0x4bf6be['model']['change']=_0x2b95ad,_0x4bf6be['model']['enqueueChange']=_0x2b95ad,_0x4bf6be['enableReadOnlyMode']('model');}function _0x1fdd7c(_0x2a73fc){const _0x2973fc=_0x466709();_0x4bf6be[_0x2973fc]='uploadcareLicenseKey'+_0x2a73fc,'Valid'!=_0x2a73fc&&_0x3a5d03();}function _0x466709(){const _0x39f08a=window['String'](window['performance']['now']())['replace']('.','');let _0x14936f='h';for(let _0x27baa0=0x0;_0x27baa0<_0x39f08a['length'];_0x27baa0+=0x2){let _0x120e66=window['parseInt'](_0x39f08a['substring'](_0x27baa0,_0x27baa0+0x2));_0x120e66>=0x3e&&(_0x120e66-=0x3e),_0x14936f+=_0x4c21f8[_0x120e66];}return _0x14936f;}function _0x1e5ad9(){const _0x26c9cd=_0x371d6f['split']('.');if(0x3!=_0x26c9cd['length'])return null;return _0x465855(_0x26c9cd[0x1]);function _0x465855(_0x422063){const _0x3662ce=_0x261c54(_0x422063);return _0x3662ce&&_0x357cb2()?_0x3662ce:null;function _0x357cb2(){const _0x4794c9=_0x3662ce['jti'],_0x4178a8=window['parseInt'](_0x4794c9['substring'](_0x4794c9['length']-0x8),0x10),_0x2cc83e={..._0x3662ce,'jti':_0x4794c9['substring'](0x0,_0x4794c9['length']-0x8)};return delete _0x2cc83e['vc'],_0x546134(_0x2cc83e)==_0x4178a8;}}}async function _0x4a6aa2(){let _0x22da03=!0x0;try{const [_0x1a7793,_0x3306f7,_0x4694db]=_0x371d6f['split']('.');return _0x1c0e37(_0x1a7793),await _0x420c3b(_0x1a7793,_0x3306f7,_0x4694db),_0x22da03;}catch{return!0x1;}function _0x1c0e37(_0x1836e0){const _0x59b51c=_0x261c54(_0x1836e0);_0x59b51c&&'ES256'==_0x59b51c['alg']||(_0x22da03=!0x1);}async function _0x420c3b(_0x29a78f,_0xdbfcd,_0x36a9c0){const _0x586201=window['Uint8Array']['from'](_0x2b69a4(_0x36a9c0),_0x4d109b=>_0x4d109b['charCodeAt'](0x0)),_0x392956=new window['TextEncoder']()['encode'](_0x29a78f+'.'+_0xdbfcd),_0x5a6007=window['crypto']['subtle'];if(!_0x5a6007)return;const _0x3a7a6f=await _0x5a6007['importKey']('jwk',_0x4222d2,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5a6007['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3a7a6f,_0x586201,_0x392956)||(_0x22da03=!0x1);}}function _0x261c54(_0x5943c2){return _0x5943c2['startsWith']('ey')?JSON['parse'](_0x2b69a4(_0x5943c2)):null;}function _0x2b69a4(_0x5566c3){return window['atob'](_0x5566c3['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x546134(_0x4601c0){let _0x1b48d8=0x1505;function _0x354175(_0x2cf703){for(let _0x2417d2=0x0;_0x2417d2<_0x2cf703['length'];_0x2417d2++){const _0x39269d=_0x2cf703['charCodeAt'](_0x2417d2);_0x1b48d8=(_0x1b48d8<<0x5)+_0x1b48d8+_0x39269d,_0x1b48d8&=_0x1b48d8;}}function _0x465874(_0x22b2e4){Array['isArray'](_0x22b2e4)?_0x22b2e4['forEach'](_0x465874):_0x22b2e4&&'object'==typeof _0x22b2e4?Object['entries'](_0x22b2e4)['sort']()['forEach'](([_0x4b7cf4,_0x1ee86d])=>{_0x354175(_0x4b7cf4),_0x465874(_0x1ee86d);}):_0x354175(window['String'](_0x22b2e4));}return _0x465874(_0x4601c0),_0x1b48d8>>>0x0;}function _0x5060b9(_0x56a56f){return _0x56a56f['toString'](0x10)['padStart'](0x8,'0');}function _0xaa264a(_0x39de2a){return _0x39de2a['split']('')['reverse']()['join']('');}function _0x2b95ad(){}_0x1fdd7c(await _0xfb61c8());}(this);}['_initSchema'](){const _0x302c66=this['editor']['model']['schema'];_0x302c66['isRegistered']('imageBlock')&&_0x302c66['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x302c66['isRegistered']('imageInline')&&_0x302c66['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x492e73=this['editor'];_0x492e73['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x492e73['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xbe2db0=>_0xbe2db0['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x18e61f=_0x492e73['commands']['get']('replaceImageSource');_0x18e61f&&this['listenTo'](_0x18e61f,'cleanupImage',(_0x1cc03a,[_0x8cc372,_0x5416d3])=>{_0x8cc372['removeAttribute']('uploadcareImageId',_0x5416d3);});}['_initConfig'](){const _0x470297=this['editor']['config']['get']('uploadcare.uploader')||{},_0x20c83e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x73351f(_0x243c00['document'],'uc-config',{..._0x470297,'pubkey':_0x20c83e,'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']=_0x5ce917=>{if('closeMax'==_0x5ce917)return'#uc-icon-arrow-down';},_0x243c00['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x73351f(_0x243c00['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x243c00['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2064c1=this['editor']['commands']['get']('insertImage');_0x2064c1&&this['listenTo'](_0x2064c1,'execute',()=>{const _0x55e7a5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x55e7a5&&_0x55e7a5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x55e7a5);});});const _0x4ac65c=this['editor']['commands']['get']('uploadcareImageReplace');_0x4ac65c&&this['listenTo'](_0x4ac65c,'execute',()=>{const _0x5a70f5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5a70f5&&_0x5a70f5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x5a70f5);});});}},Y=class extends _0x526f26{static get['requires'](){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4acb17){super(_0x4acb17),_0x4acb17['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x5694ed['defineComponents'](_0x5694ed),this['_defineLocale']();}['_defineLocale'](){const _0x2797ba=this['editor']['config']['get']('uploadcare.locale'),_0xb7371b=this['editor']['locale']['contentLanguage'];_0x2797ba&&_0x5694ed['defineLocale'](_0xb7371b,_0x2797ba);}},tt=class extends _0x5780c7{constructor(_0x2f487b){super(_0x2f487b);const t=_0x2f487b['t'],_0x3bdc72=this['bindTemplate'],_0x357981=new _0x253263();_0x357981['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':[_0x357981,{'text':_0x3bdc72['to']('imageUploadProgress',_0x31d425=>t('Loading\x20image...')+'\x20('+(_0x31d425||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'}]}]}]});}},et=class extends _0x5780c7{constructor(_0x1c55fb){super(_0x1c55fb);const t=_0x1c55fb['t'];this['set']('errorType',null);const _0x46278f=new _0x5d6b01(_0x1c55fb);_0x46278f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x46278f['withText']=!0x0,_0x46278f['class']='ck-button-action',_0x46278f['on']('execute',()=>{this['fire']('retry');}),_0x46278f['bind']('isVisible')['to'](this,'errorType',_0x4a4b95=>'NotFound'!==_0x4a4b95);const _0x4fee9f=new _0x5e1af5();_0x4fee9f['content']=_0x434a73,_0x4fee9f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x145cf6=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':[_0x4fee9f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x145cf6['to']('errorType',_0x3054d5=>t('NotFound'!==_0x3054d5?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x46278f]},{'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'}]}]}]});}},it=class extends _0x5780c7{constructor(_0x596678,_0x2d532f){super(_0x596678);const _0x5ea0c2=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2d532f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5ea0c2['to']('imageSrc')}});}},st=class extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x16c51c,_0xc1351c,_0x2f0d04){super(_0x16c51c),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x16c51c),this['_errorView']=new et(_0x16c51c),this['_editingView']=new it(_0x16c51c,_0x2f0d04),this['_focusableView']=new _0x5780c7(_0x16c51c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xc1351c),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'],_0x281a54=>{this['_addUploadcareImageEditorListeners'](_0x281a54);});}),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'](_0x444432,_0x458db8){const _0x4f5d47='uc-cloud-image-editor',_0x181aa0=_0x444432['querySelector'](_0x4f5d47);if(_0x181aa0)return _0x458db8(_0x181aa0);const _0x581d6b=new MutationObserver(_0x201524=>{const _0x402b6e=_0x201524['filter'](_0x40bc7a=>_0x40bc7a['target']===_0x444432&&_0x40bc7a['addedNodes']['length']>0x0&&_0x40bc7a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4f5d47);_0x402b6e['length']&&(_0x581d6b['disconnect'](),_0x458db8(_0x402b6e[0x0]['addedNodes'][0x0]));});_0x581d6b['observe'](_0x444432,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x43e48e){_0x43e48e['addEventListener']('apply',_0x9baebe=>{this['fire']('apply',{'imageSrc':_0x9baebe['detail']['cdnUrl']});}),_0x43e48e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const rt=/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4028e7();var nt=class extends rt{['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5c1e59,_0x3232f6,_0x525ca4){super(),this['_editor']=_0x5c1e59,this['_dialog']=_0x3232f6,this['_imageElement']=_0x525ca4,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 _0x169799=this['_imageElement'],_0x3f90c4=_0x169799['getAttribute']('uploadcareImageId'),_0x4843e9=_0x169799['getAttribute']('src');if(_0x3f90c4)await this['_loadImageInfo'](_0x3f90c4,_0x4843e9);else{if(this['_imageCache']['has'](_0x4843e9)){const _0x320fe4=this['_imageCache']['get'](_0x4843e9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x320fe4['url'],this['imageDimension']=_0x320fe4['dimension'],this['imageId']=_0x320fe4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x11236b}=this['_editor'],t=_0x11236b['t'],_0x44ba3c=new st(_0x11236b,this['imageStatus'],this['_attributes']);_0x44ba3c['bind']('status')['to'](this,'imageStatus'),_0x44ba3c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x44ba3c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x44ba3c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x44ba3c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x15e211,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x44ba3c,'position':_0x2e1b25['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x44ba3c['focus']();},'onHide':()=>{_0x44ba3c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1afe0f=>!H(_0x1afe0f,_0x44ba3c['element'])}});}['_loadImageInfo'](_0x1aacd3,_0x11867b){return Q['getInfo'](_0x1aacd3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x13eb0f=>{const {width:_0x18ee48,height:_0x2d6376}=_0x13eb0f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x11867b,this['imageDimension']={'width':_0x18ee48,'height':_0x2d6376},this['imageId']=_0x1aacd3;})['catch'](_0x2f9bb5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2f9bb5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4ab77f,_0x261b0e){return this['_getImageAsFile'](_0x4ab77f)['then'](_0x3108d2=>Q['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':_0x261b0e['signal'],'file':_0x3108d2,'onProgress':_0x3a0f54=>{_0x3a0f54&&_0x3a0f54['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3a0f54['value']));}}))['then'](_0xb59bac=>{const {width:_0x2c9c5b,height:_0x5198a0}=_0xb59bac['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xb59bac['cdnUrl'],this['imageDimension']={'width':_0x2c9c5b,'height':_0x5198a0},this['imageId']=_0xb59bac['uuid'],this['imageUploadProgress']=null;const _0x42bc93=_0x4ab77f['getAttribute']('src');this['_imageCache']['set'](_0x42bc93,{'id':_0xb59bac['uuid'],'url':_0xb59bac['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4d2537=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d2537['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x21a939,_0x4161aa){_0x21a939['on']('apply',(_0x345b9b,_0x3da9bd)=>{this['_replaceImage'](_0x4161aa,_0x3da9bd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x21a939['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x21a939['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3e74ad,_0x53bbbd,_0x288d1c){const _0x1cf4a7=this['_editor'],{width:_0x85281a,height:_0x484908}=j(_0x53bbbd,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5251de,imageSources:_0xd12b58}=B(_0x53bbbd,_0x85281a);_0x1cf4a7['model']['change'](_0xfcdf03=>{if('$graveyard'!==_0x3e74ad['root']['rootName'])_0xfcdf03['setSelection'](_0x3e74ad,'on'),_0x1cf4a7['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3e74ad['getAttributes']()),'uploadcareImageId':_0x288d1c,'src':_0x5251de,'sources':_0xd12b58,'width':_0x85281a,'height':_0x484908},_0x3e74ad);else{_0x1cf4a7['execute']('insertImage',{'imageType':_0x3e74ad['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3e74ad['getAttributes']()),'uploadcareImageId':_0x288d1c,'src':_0x5251de,'sources':_0xd12b58,'width':_0x85281a,'height':_0x484908}});const _0x126391=_0x3e74ad['getChildren']();_0x3e74ad=_0x1cf4a7['model']['document']['selection']['getSelectedElement']();for(const _0x3e3e50 of _0x126391)_0xfcdf03['append'](_0xfcdf03['cloneElement'](_0x3e3e50),_0x3e74ad);}_0xfcdf03['setSelection'](_0x3e74ad,'on');});}async['_getImageAsFile'](_0x5803cb){const _0x57590c=_0x243c00['window'],_0x1be4e0=_0x243c00['document']['location']['href'],_0x29c4d5=new _0x57590c['URL'](_0x5803cb['getAttribute']('src'),_0x1be4e0);if('data:'===_0x29c4d5['protocol']){const _0x2b24ad=_0x29c4d5['href']['split'](','),_0x18ec24=_0x2b24ad[0x0]['match'](/:(.*?);/)[0x1],_0x4ccc21=_0x18ec24['split']('/')[0x1],_0x21655d=_0x57590c['atob'](_0x2b24ad[_0x2b24ad['length']-0x1]);let _0x42f0ff=_0x21655d['length'];const _0x25e7c9=new _0x57590c['Uint8Array'](_0x42f0ff);for(;_0x42f0ff--;)_0x25e7c9[_0x42f0ff]=_0x21655d['charCodeAt'](_0x42f0ff);return new _0x57590c['File']([_0x25e7c9],'image.'+_0x4ccc21,{'type':_0x18ec24});}const _0x6aa5cb=_0x29c4d5['href']['split']('/'),_0x19b690=_0x6aa5cb[_0x6aa5cb['length']-0x1],_0x1b4165=_0x19b690['split']('.')[0x1];return _0x57590c['fetch'](_0x29c4d5['href'])['then'](_0x1ca785=>_0x1ca785['clone']()['blob']())['then'](_0x3e7b87=>new _0x57590c['File']([_0x3e7b87],_0x19b690,{'type':'image/'+_0x1b4165}));}},at=class extends _0xac0e0b{['imageEditController'];static get['requires'](){return[_0x555db2];}['_isEditable'];constructor(_0x52cc9e){super(_0x52cc9e),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x424a3b){const _0x5f5d9a=M(_0x424a3b);return _0x310a28=>!(!_0x310a28||!_0x310a28['is']('element','imageBlock')&&!_0x310a28['is']('element','imageInline'))&&(!!_0x310a28['hasAttribute']('uploadcareImageId')||!!_0x310a28['hasAttribute']('src')&&_0x5f5d9a(_0x310a28['getAttribute']('src')));}(_0x52cc9e['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x315b88=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x315b88);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5c350e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5c350e&&(_0x5c350e['is']('element','imageBlock')||_0x5c350e['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x555db2),_0x5c350e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0xac0e0b{['refresh'](){const _0x429718=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x429718&&(_0x429718['is']('element','imageBlock')||_0x429718['is']('element','imageInline')));}['execute'](_0x4173da){const _0xd8c33f=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4ff2f8=>{_0x4ff2f8['setAttributes'](_0x4173da,_0xd8c33f),_0x4ff2f8['removeAttribute']('srcset',_0xd8c33f),_0x4ff2f8['removeAttribute']('sizes',_0xd8c33f);});}},ct=class extends _0x526f26{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[Z,_0x29e6e4,_0x2f6a6c,_0x4d896e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x50b0d9}=this;_0x50b0d9['commands']['add']('uploadcareImageEdit',new at(_0x50b0d9)),_0x50b0d9['commands']['add']('uploadcareImageReplace',new ot(_0x50b0d9));}},lt=class extends _0x526f26{['_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 _0x4d15ab=this['editor'];_0x4d15ab['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4bca1b=>{const _0x30288b=_0x4d15ab['commands']['get']('uploadcareImageEdit'),_0x3d200d=new _0x5d6b01(_0x4bca1b),t=_0x4bca1b['t'];return _0x3d200d['set']({'icon':_0x15e211,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3d200d['bind']('isEnabled')['to'](_0x30288b),_0x3d200d['bind']('isOn')['to'](_0x30288b,'isActive'),this['listenTo'](_0x3d200d,'execute',()=>{_0x4d15ab['execute']('uploadcareImageEdit'),_0x4d15ab['editing']['view']['focus']();}),_0x3d200d;}),this['_initConfig']();}['_initConfig'](){const _0x27b6d8=_0x73351f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x27b6d8),this['listenTo'](this['editor'],'destroy',()=>{_0x27b6d8['remove']();});}},ut=class extends _0x526f26{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[ct,lt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{Y as Uploadcare,z as UploadcareCommand,Z as UploadcareEditing,ut as UploadcareImageEdit,at as UploadcareImageEditCommand,ct as UploadcareImageEditEditing,lt as UploadcareImageEditUI,V as UploadcareUI,J as UploadcareUploadAdapter};
|
|
23
|
+
import{Command as _0x5a4179,Plugin as _0xf14c47}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x1d151d,IconError as _0x5154a2,IconFacebook as _0x1db4d2,IconGoogleDrive as _0xe6dbf8,IconGooglePhotos as _0x517b3a,IconOneDrive as _0x40065a,IconUploadcareImageEdit as _0x2a5497,IconUploadcareImageUpload as _0x138ceb,IconUploadcareLink as _0x15a3e4}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x44968d,Dialog as _0x17f479,DialogViewPosition as _0x23d711,FocusCycler as _0x2abcb6,IconView as _0x47b45c,MenuBarMenuListItemButtonView as _0x342bec,Notification as _0x485130,SpinnerView as _0x43a7fb,View as _0x56ebfc}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x2e1113,FocusTracker as _0x1d0676,ObservableMixin as _0x47bd7e,createElement as _0x4f341d,getAncestors as _0x24c849,global as _0x2139c0,uid as _0x197e06}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x26c409,ImageUploadEditing as _0x474b55,ImageUploadProgress as _0x23478d,ImageUtils as _0x9bb638,PictureEditing as _0x1580f5}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x1c6ee3}from'@ckeditor/ckeditor5-upload';import{info as _0x1323f6,uploadFile as _0x21e71a}from'@uploadcare/upload-client';import*as _0x32f798 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x2a4f18,_0x3ed9a4,_0x39ae96){const t=_0x2a4f18['t'],_0x221b09=_0x2a4f18['t'];switch(_0x3ed9a4){case'local':return{'text':_0x221b09('Insert'===_0x39ae96?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x221b09('From\x20computer')};case'url':return{'text':'Insert'===_0x39ae96?_0x221b09('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x221b09('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x39ae96?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x39ae96?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x39ae96?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x39ae96?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x39ae96?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3ed9a4;}}var V=class extends _0xf14c47{['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 _0xadec50=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x53a253;for(const _0x847297 in _0xadec50){const _0x2de784=_0x847297,_0x2885b1=_0xadec50[_0x2de784];if('uploadcareLicenseKeyValid'==_0x2885b1||'uploadcareLicenseKeyInvalid'==_0x2885b1||'uploadcareLicenseKeyExpired'==_0x2885b1||'uploadcareLicenseKeyDomainLimit'==_0x2885b1||'uploadcareLicenseKeyNotAllowed'==_0x2885b1||'uploadcareLicenseKeyEvaluationLimit'==_0x2885b1||'uploadcareLicenseKeyUsageLimit'==_0x2885b1){delete _0xadec50[_0x2de784],_0x53a253=_0x2885b1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x53a253&&_0xadec50['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x53a253&&_0xadec50['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x53a253&&_0xadec50['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x53a253&&_0xadec50['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x53a253&&_0xadec50['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x53a253&&_0xadec50['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x36b069}=this,_0x175900=_0x36b069['commands']['get']('uploadcare');if(!_0x175900)return;const _0x2f0ff7=this['_normalizeConfigSourceList'](_0x36b069['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2e4de6,_0x168faf)=>{const _0xb6b738=this['_getIntegrationKey'](_0x168faf['type']);return _0x2e4de6[_0xb6b738]||(_0x2e4de6[_0xb6b738]=[]),_0x2e4de6[_0xb6b738]['push'](_0x168faf),_0x2e4de6;},{});_0x36b069['plugins']['has']('ImageInsertUI')&&_0x36b069['commands']['get']('uploadcare')&&Object['entries'](_0x2f0ff7)['forEach'](([_0x211497,_0x5bdeaa])=>{_0x36b069['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x211497,'observable':()=>_0x175900,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5bdeaa),'formViewCreator':()=>this['_createDropdownButtons'](_0x5bdeaa),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5bdeaa),'override':'assetManager'!==_0x211497});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4e8d16){const {locale:_0x49c49e}=this['editor'];return _0x4e8d16['map'](_0x7c44ad=>{const _0x4b6bd8=T(_0x49c49e,_0x7c44ad,'Insert');switch(_0x7c44ad){case'local':return{'icon':_0x138ceb,'type':'local',..._0x4b6bd8};case'url':return{'icon':_0x15a3e4,'type':'url',..._0x4b6bd8};case'dropbox':return{'icon':_0x1d151d,'type':'dropbox',..._0x4b6bd8};case'facebook':return{'icon':_0x1db4d2,'type':'facebook',..._0x4b6bd8};case'gdrive':return{'icon':_0xe6dbf8,'type':'gdrive',..._0x4b6bd8};case'gphotos':return{'icon':_0x517b3a,'type':'gphotos',..._0x4b6bd8};case'onedrive':return{'icon':_0x40065a,'type':'onedrive',..._0x4b6bd8};}});}['_getIntegrationKey'](_0x1b68da){switch(_0x1b68da){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x5f4c3a,_0x2a0d57){const _0x2a5ca4=this['editor'],_0x11f506=new _0x5f4c3a(_0x2a5ca4['locale']),_0x5d2ecf=_0x2a5ca4['commands']['get']('uploadcare');return _0x11f506['bind']('isEnabled')['to'](_0x5d2ecf),_0x11f506['on']('execute',()=>{_0x5d2ecf['execute'](_0x2a0d57);}),_0x11f506;}['_createToolbarButton'](_0x4d88bb){const {locale:_0x5ddb18}=this['editor'],_0x1c344b=this['editor']['plugins']['get']('ImageInsertUI'),_0x4cafe0=_0x4d88bb[0x0],_0x2f6a57=this['_createButton'](_0x44968d,_0x4cafe0['type']);return _0x2f6a57['icon']=_0x4cafe0['icon'],_0x2f6a57['bind']('label')['to'](_0x1c344b,'isImageSelected',_0x28acef=>T(_0x5ddb18,_0x4cafe0['type'],_0x28acef?'Replace':'Insert')['text']),_0x2f6a57['tooltip']=!0x0,_0x2f6a57;}['_createDropdownButtons'](_0x2dd62b){const {locale:_0x33f4ff}=this['editor'],_0x9aedce=this['editor']['plugins']['get']('ImageInsertUI');return _0x2dd62b['map'](_0x53adaf=>{const _0x86a78d=this['_createButton'](_0x44968d,_0x53adaf['type']);return _0x86a78d['withText']=!0x0,_0x86a78d['icon']=_0x53adaf['icon'],_0x86a78d['bind']('label')['to'](_0x9aedce,'isImageSelected',_0x5d597e=>T(_0x33f4ff,_0x53adaf['type'],_0x5d597e?'Replace':'Insert')['text']),_0x86a78d;});}['_createMenuBarButtons'](_0x2128fb){return _0x2128fb['map'](_0x49cc7c=>{const _0x110fd2=this['_createButton'](_0x342bec,_0x49cc7c['type']);return _0x110fd2['icon']=_0x49cc7c['icon'],_0x110fd2['label']=_0x49cc7c['shortText'],_0x110fd2;});}},F=class extends _0x56ebfc{['focusTracker'];['focusCycler'];constructor(_0x1edd90){super(_0x1edd90),this['focusTracker']=new _0x1d0676(),this['focusCycler']=new _0x2abcb6({'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 extends F{constructor(_0x4a3f57,_0x54eacc){super(_0x4a3f57),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-'+_0x54eacc}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x484982,_0x448429){const _0x583904=_0x484982['replace'](/\/$/,'');return{'imageFallbackUrl':_0x484982,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2f0d7a=>_0x2f0d7a<_0x448429)['map'](_0x9a21cb=>_0x583904+'/-/resize/'+_0x9a21cb+'x/\x20'+_0x9a21cb+'w'),_0x484982+'\x20'+_0x448429+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x448429+'px)\x20100vw,\x20'+_0x448429+'px','type':'image/webp'}]};}function j(_0x560e49,_0xe2b22e,_0x13cb56){const _0x5422ec=_0x560e49['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5422ec?parseInt(_0x5422ec[0x1],0xa):_0xe2b22e,'height':_0x5422ec?parseInt(_0x5422ec[0x2],0xa):_0x13cb56};}function q(_0x13192c,_0x1265a3){const _0x5c49b4=new(_0x2e1113())(),_0xaabf0a=_0x13192c['plugins']['get']('ImageUtils'),_0x211eb5=_0x13192c['editing']['mapper']['toViewElement'](_0x1265a3),_0x58343e=_0xaabf0a['findViewImgElement'](_0x211eb5),_0x377ef0=_0x13192c['editing']['view']['domConverter']['viewToDom'](_0x58343e),_0xb1caa5=_0x1265a3['getAttribute']('width'),_0xc5d775=_0x1265a3['getAttribute']('height'),_0x17f4bf='image-processing';_0x13192c['editing']['view']['change'](_0x28c6ab=>{_0x28c6ab['addClass'](_0x17f4bf,_0x211eb5),_0x28c6ab['setStyle']('aspect-ratio',_0xb1caa5+'/'+_0xc5d775,_0x58343e);}),_0x5c49b4['listenTo'](_0x377ef0,'load',()=>{_0x5c49b4['stopListening'](_0x377ef0,'load'),_0x13192c['editing']['view']['change'](_0x1b9c34=>{_0x1b9c34['removeClass'](_0x17f4bf,_0x211eb5),_0x1b9c34['removeStyle']('aspect-ratio',_0x58343e);});});}function M(_0x1a1b75){if(Array['isArray'](_0x1a1b75)){const _0x3180b2=_0x1a1b75['map'](M);return _0x2371a7=>_0x3180b2['some'](_0x55dd99=>_0x55dd99(_0x2371a7));}if('origin'==_0x1a1b75){const _0x2a9d16=_0x2139c0['window']['location']['origin'];return _0x23e1cf=>new URL(_0x23e1cf,_0x2139c0['document']['baseURI'])['origin']==_0x2a9d16;}return'function'==typeof _0x1a1b75?_0x1a1b75:_0x1a1b75 instanceof RegExp?_0x50a97c=>!(!_0x50a97c['match'](_0x1a1b75)&&!_0x50a97c['replace'](/^https?:\/\//,'')['match'](_0x1a1b75)):()=>!0x1;}function H(_0x59867d,_0x20b571){return _0x24c849(_0x59867d['target'])['includes'](_0x20b571);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x47bd7e();var G=class extends W{['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3cd4e2,_0x259c62,_0x1df9b1){super(),this['_editor']=_0x3cd4e2,this['_editing']=_0x259c62,this['_dialog']=_0x3cd4e2['plugins']['get'](_0x17f479),this['_api']=_0x259c62['ctxElement']['getAPI'](),this['_type']=_0x1df9b1,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:_0xf6562a,model:_0x3eb118}=this['_editor'],_0x136998=_0x3eb118['document']['selection']['getSelectedElement'](),_0x254b64=_0x136998&&(_0x136998['is']('element','imageBlock')||_0x136998['is']('element','imageInline'));this['_formView']=new $(_0xf6562a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x138ceb,'title':T(_0xf6562a,this['_type'],_0x254b64?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x23d711['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x36c089=>!H(_0x36c089,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1539af}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1a71c5=>{const _0x42a375=_0x1539af['length'];for(const _0x4a0360 of _0x1539af){const _0x3eb6c4=_0x4a0360===_0x1539af[_0x42a375-0x1],{cdnUrl:_0xa835e7,fileInfo:_0x41a748}=_0x4a0360;if(!_0xa835e7||!_0x41a748)continue;const {width:_0x21ac9a,height:_0x1adc4e}=_0x41a748['imageInfo'],_0x3f35a2=j(_0xa835e7,_0x21ac9a,_0x1adc4e),_0x1ae143=B(_0xa835e7,_0x3f35a2['width']),_0x380ce1={'id':_0x41a748['uuid'],'type':'image','attributes':{'imageDimension':_0x3f35a2,..._0x1ae143}};this['_insertAsset'](_0x380ce1,_0x3eb6c4,_0x1a71c5);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x49c5ae=>{'idle'===_0x49c5ae['detail']['status']&&!_0x49c5ae['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}['_insertAsset'](_0x24212b,_0x116795,_0x311c23){const _0x2549db=this['_editor']['model']['document']['selection'],_0x3c5205=_0x2549db['getSelectedElement'](),_0x2a01c9=!(!_0x3c5205||!_0x3c5205['is']('element','imageInline'));_0x311c23['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x24212b,_0x2a01c9),_0x116795||_0x311c23['setSelection'](_0x2549db['getLastPosition']());}['_insertImage'](_0x423802,_0x1d74b1){const _0x316ec7=this['_editor'],{imageDimension:_0x31e373,imageFallbackUrl:_0x1540e9,imageSources:_0x55184c}=_0x423802['attributes'];_0x316ec7['execute']('insertImage',{'imageType':_0x1d74b1?'imageInline':null,'source':{'uploadcareImageId':_0x423802['id'],'src':_0x1540e9,'sources':_0x55184c,..._0x31e373}});}},z=class extends _0x5a4179{['_editing'];['_controller']=null;static get['requires'](){return[_0x17f479,Z];}constructor(_0x2a1403){super(_0x2a1403),this['_editing']=_0x2a1403['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x49d001){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x49d001);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x3a98d7,..._0x3188fa}){return _0x21e71a(_0x3a98d7,_0x3188fa);}static['getInfo'](_0x104d7b,_0x5172cb){return _0x1323f6(_0x104d7b,_0x5172cb);}},J=class extends _0xf14c47{static get['requires'](){return[_0x474b55,_0x23478d,_0x1c6ee3,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2dbf01=this['editor'];if(!_0x2dbf01['config']['get']('uploadcare'))return;_0x2dbf01['plugins']['get'](_0x1c6ee3)['createUploadAdapter']=_0x431f14=>new X(_0x431f14,_0x2dbf01),_0x2dbf01['plugins']['get'](_0x474b55)['on']('uploadComplete',(_0xf62c8d,{imageElement:_0x16451c,data:_0x457f7d})=>{_0x2dbf01['model']['change'](_0x5defb3=>{_0x5defb3['setAttribute']('uploadcareImageId',_0x457f7d['uploadcareImageId'],_0x16451c);});});}},X=class{['loader'];['editor'];['controller'];constructor(_0x17abd1,_0x59b189){this['loader']=_0x17abd1,this['editor']=_0x59b189,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x96d3a2=await this['loader']['file'];return Q['upload']({'file':_0x96d3a2,'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':_0x14d96c=>{_0x14d96c&&_0x14d96c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x14d96c['value']);}})['then'](async _0x40539c=>{const {imageFallbackUrl:_0x18e91c,imageSources:_0x34770b}=B(_0x40539c['cdnUrl'],_0x40539c['imageInfo']['width']);return{'uploadcareImageId':_0x40539c['uuid'],'default':_0x18e91c,'sources':_0x34770b};})['catch'](()=>{const _0x42d550=t('Cannot\x20upload\x20file:')+('\x20'+_0x96d3a2['name']+'.');return Promise['reject'](_0x42d550);});}['abort'](){this['controller']['abort']();}},Z=class extends _0xf14c47{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x1580f5,J,_0x17f479];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x33055a){super(_0x33055a),this['ucContextId']=_0x197e06();}['init'](){const _0x4b19f7=this['editor'];_0x4b19f7['commands']['add']('uploadcare',new z(_0x4b19f7));}['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 _0x208e52=_0x2139c0['document']['querySelector']('input[uploadcare-file-input]');_0x208e52&&_0x208e52['remove']();}),async function(_0x40c644){const _0x1be4ee='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0x580409=0x78e10,_0x4eafae=window['Date']['now'](),_0x159033=_0x40c644['editor'],_0x5626ae=new window['Promise'](_0x47910a=>{_0x159033['once']('ready',_0x47910a);}),_0x46722d={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x13d4b8=_0x159033['config']['get']('licenseKey');async function _0x134f71(){let _0xccb6fa,_0x5239c2=null,_0x2bf197=null;try{return'GPL'==_0x13d4b8?'NotAllowed':(_0xccb6fa=_0x1922db(),_0xccb6fa?(_0xccb6fa['usageEndpoint']&&(_0x2bf197=_0x194574(_0xccb6fa['usageEndpoint'],_0xccb6fa['jti'])),await _0x41cd2c()?_0x4d7e29()?_0x72cc27()?'Expired':_0x1bc552()?('evaluation'==_0xccb6fa['licenseType']&&(_0x5239c2=_0x3e496e('EvaluationLimit')),await _0x121b64()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x72cc27(){const _0x103238=['evaluation','trial']['includes'](_0xccb6fa['licenseType'])?_0x4eafae/0x3e8:0xe10*_0x580409;return _0xccb6fa['exp']<_0x103238;}function _0x4d7e29(){const _0x45470f=_0xccb6fa['features'];return!!_0x45470f&&(!!_0x45470f['includes']('*')||!!_0x45470f['includes']('UPLC'));}function _0x1bc552(){const _0xeb250d=_0xccb6fa['licensedHosts'];if(!_0xeb250d||0x0==_0xeb250d['length'])return!0x0;const {hostname:_0x38700a}=new URL(window['location']['href']);if(_0xeb250d['includes'](_0x38700a))return!0x0;const _0x2fed1f=_0x38700a['split']('.');return _0xeb250d['filter'](_0x2ccc6b=>_0x2ccc6b['includes']('*'))['map'](_0x450fc7=>_0x450fc7['split']('.'))['filter'](_0x3f5cd2=>_0x3f5cd2['length']<=_0x2fed1f['length'])['map'](_0x4b7ecb=>Array(_0x2fed1f['length']-_0x4b7ecb['length'])['fill']('*'===_0x4b7ecb[0x0]?'*':'')['concat'](_0x4b7ecb))['some'](_0x1c9694=>_0x2fed1f['every']((_0x2c075b,_0x5ba3d7)=>_0x1c9694[_0x5ba3d7]===_0x2c075b||'*'===_0x1c9694[_0x5ba3d7]));}function _0x121b64(){return _0x5239c2&&_0x2bf197?new window['Promise']((_0x541dba,_0x30348e)=>{_0x5239c2['then'](_0x541dba,_0x30348e),_0x2bf197['then'](_0xb3c99=>{'Valid'!=_0xb3c99&&_0x541dba(_0xb3c99);},_0x30348e);}):_0x5239c2||_0x2bf197||'Valid';}}function _0x194574(_0x4c194b,_0x1771d4){return new window['Promise'](_0x18beba=>{if(_0x2f8a19())return _0x18beba('Valid');_0x28a879(),_0x159033['decorate']('_sendUsageRequest');let _0x3addcb=!0x1;const _0x40620b=_0x197e06();function _0x3b92b5(_0x561e8e){return!!_0x561e8e&&('object'==typeof _0x561e8e||'function'==typeof _0x561e8e)&&'function'==typeof _0x561e8e['then']&&'function'==typeof _0x561e8e['catch'];}function _0x946b84(_0x215625){_0x41f853(_0x215625)['then'](_0x402cab=>_0x402cab&&'ok'==_0x402cab['status']?_0x4b75af(_0x2eb09b(_0x40620b+_0x1771d4))!=_0x402cab['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x4ee769=>(_0x1b8f09(),_0x4ee769),()=>{const _0x484625=_0x3d8352();return null==_0x484625?(_0x1b8f09(),'Valid'):_0x4eafae-_0x484625>0x240c8400?'UsageLimit':'Valid';})['then'](_0x18beba)['catch'](()=>{_0x18beba('UsageLimit');});const _0x3b7fba=0x36ee80;function _0x1b8f09(){const _0x58be77='llct-'+_0x4b75af(_0x2eb09b(_0x4c194b)),_0x195d59=_0x40ae9b(_0x4b75af(window['Math']['ceil'](_0x4eafae/_0x3b7fba)));window['localStorage']['setItem'](_0x58be77,_0x195d59);}function _0x3d8352(){const _0x14d99e='llct-'+_0x4b75af(_0x2eb09b(_0x4c194b)),_0x16e46f=window['localStorage']['getItem'](_0x14d99e);return _0x16e46f?window['parseInt'](_0x40ae9b(_0x16e46f),0x10)*_0x3b7fba:null;}function _0x41f853(_0x2c8dfa){return new window['Promise']((_0x4e177b,_0x115ecb)=>{_0x2c8dfa['then'](_0x4e177b,_0x115ecb),window['setTimeout'](_0x115ecb,0x1d4c0);});}}_0x159033['on']('_sendUsageRequest',(_0x24d743,_0x11437f)=>{if(_0x11437f[0x0]!=_0x4c194b)return _0x18beba('UsageLimit');_0x11437f[0x1]={..._0x11437f[0x1],'requestId':_0x40620b};},{'priority':'high'}),_0x159033['on']('_sendUsageRequest',_0x5b7ca7=>{_0x3b92b5(_0x5b7ca7['return'])&&(_0x3addcb=!0x0,_0x946b84(_0x5b7ca7['return']));},{'priority':'low'}),_0x5626ae['then'](()=>{_0x3addcb||_0x18beba('UsageLimit');});});function _0x2f8a19(){return'auto'==_0x159033['editing']['view']['_overlayModeHint'];}function _0x28a879(){_0x159033['editing']['view']['_overlayModeHint']='auto';}}function _0x3e496e(_0x304485){const _0x50cc0f=[new window['Promise'](_0x261cd6=>setTimeout(_0x261cd6,0x93ecc)),_0x5626ae['then'](()=>new window['Promise'](_0x3cc220=>{let _0x297fef=0x0;_0x159033['model']['on']('applyOperation',(_0x3a6744,_0xa111e6)=>{_0xa111e6[0x0]['isDocumentOperation']&&_0x297fef++,0x5e8==_0x297fef&&(_0x3cc220(),_0x3a6744['off']());});}))];return window['Promise']['race'](_0x50cc0f)['then'](()=>_0x304485);}async function _0x4b85a8(){await _0x5626ae,_0x159033['model']['change']=_0x384a63,_0x159033['model']['enqueueChange']=_0x384a63,_0x159033['enableReadOnlyMode']('model');}function _0x521d4e(_0x38eed6){const _0x3126f1=_0xd8710d();_0x159033[_0x3126f1]='uploadcareLicenseKey'+_0x38eed6,'Valid'!=_0x38eed6&&_0x4b85a8();}function _0xd8710d(){const _0x1be26c=window['String'](window['performance']['now']())['replace']('.','');let _0x2eac95='h';for(let _0x35f135=0x0;_0x35f135<_0x1be26c['length'];_0x35f135+=0x2){let _0xa83249=window['parseInt'](_0x1be26c['substring'](_0x35f135,_0x35f135+0x2));_0xa83249>=0x3e&&(_0xa83249-=0x3e),_0x2eac95+=_0x1be4ee[_0xa83249];}return _0x2eac95;}function _0x1922db(){const _0x3641a9=_0x13d4b8['split']('.');if(0x3!=_0x3641a9['length'])return null;return _0x12d04f(_0x3641a9[0x1]);function _0x12d04f(_0x40149e){const _0x157729=_0xb565c5(_0x40149e);return _0x157729&&_0xca544()?_0x157729:null;function _0xca544(){const _0x2c87c0=_0x157729['jti'],_0x38264b=window['parseInt'](_0x2c87c0['substring'](_0x2c87c0['length']-0x8),0x10),_0x5d9a14={..._0x157729,'jti':_0x2c87c0['substring'](0x0,_0x2c87c0['length']-0x8)};return delete _0x5d9a14['vc'],_0x2eb09b(_0x5d9a14)==_0x38264b;}}}async function _0x41cd2c(){let _0x404c13=!0x0;try{const [_0x2c34ec,_0x40c777,_0x3d219c]=_0x13d4b8['split']('.');return _0x463e05(_0x2c34ec),await _0x4f352b(_0x2c34ec,_0x40c777,_0x3d219c),_0x404c13;}catch{return!0x1;}function _0x463e05(_0x5efe3){const _0x2b0f11=_0xb565c5(_0x5efe3);_0x2b0f11&&'ES256'==_0x2b0f11['alg']||(_0x404c13=!0x1);}async function _0x4f352b(_0x40b3fc,_0x5098b8,_0x3163f7){const _0x3dd68c=window['Uint8Array']['from'](_0x128965(_0x3163f7),_0x498853=>_0x498853['charCodeAt'](0x0)),_0xc720cc=new window['TextEncoder']()['encode'](_0x40b3fc+'.'+_0x5098b8),_0x438ecc=window['crypto']['subtle'];if(!_0x438ecc)return;const _0x1e8db2=await _0x438ecc['importKey']('jwk',_0x46722d,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x438ecc['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x1e8db2,_0x3dd68c,_0xc720cc)||(_0x404c13=!0x1);}}function _0xb565c5(_0x407561){return _0x407561['startsWith']('ey')?JSON['parse'](_0x128965(_0x407561)):null;}function _0x128965(_0x525de5){return window['atob'](_0x525de5['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x2eb09b(_0x2fabf0){let _0x1fd898=0x1505;function _0x3bb0dd(_0x1f12b1){for(let _0x9bcb3=0x0;_0x9bcb3<_0x1f12b1['length'];_0x9bcb3++){const _0x23b189=_0x1f12b1['charCodeAt'](_0x9bcb3);_0x1fd898=(_0x1fd898<<0x5)+_0x1fd898+_0x23b189,_0x1fd898&=_0x1fd898;}}function _0x3589e6(_0x352962){Array['isArray'](_0x352962)?_0x352962['forEach'](_0x3589e6):_0x352962&&'object'==typeof _0x352962?Object['entries'](_0x352962)['sort']()['forEach'](([_0x448964,_0x56e951])=>{_0x3bb0dd(_0x448964),_0x3589e6(_0x56e951);}):_0x3bb0dd(window['String'](_0x352962));}return _0x3589e6(_0x2fabf0),_0x1fd898>>>0x0;}function _0x4b75af(_0x5d3a9e){return _0x5d3a9e['toString'](0x10)['padStart'](0x8,'0');}function _0x40ae9b(_0x2d539f){return _0x2d539f['split']('')['reverse']()['join']('');}function _0x384a63(){}_0x521d4e(await _0x134f71());}(this);}['_initSchema'](){const _0x51304b=this['editor']['model']['schema'];_0x51304b['isRegistered']('imageBlock')&&_0x51304b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x51304b['isRegistered']('imageInline')&&_0x51304b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3651de=this['editor'];_0x3651de['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3651de['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x15ef4f=>_0x15ef4f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x555dac=_0x3651de['commands']['get']('replaceImageSource');_0x555dac&&this['listenTo'](_0x555dac,'cleanupImage',(_0x451870,[_0x301c9d,_0x55bfe0])=>{_0x301c9d['removeAttribute']('uploadcareImageId',_0x55bfe0);});}['_initConfig'](){const _0x41ef50=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3a677d=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4f341d(_0x2139c0['document'],'uc-config',{..._0x41ef50,'pubkey':_0x3a677d,'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']=_0x2ac153=>{if('closeMax'==_0x2ac153)return'#uc-icon-arrow-down';},_0x2139c0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4f341d(_0x2139c0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2139c0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1dffce=this['editor']['commands']['get']('insertImage');_0x1dffce&&this['listenTo'](_0x1dffce,'execute',()=>{const _0xcb61f2=this['editor']['model']['document']['selection']['getSelectedElement']();_0xcb61f2&&_0xcb61f2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0xcb61f2);});});const _0x30d306=this['editor']['commands']['get']('uploadcareImageReplace');_0x30d306&&this['listenTo'](_0x30d306,'execute',()=>{const _0x45950a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x45950a&&_0x45950a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x45950a);});});}},Y=class extends _0xf14c47{static get['requires'](){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa3c1dc){super(_0xa3c1dc),_0xa3c1dc['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x32f798['defineComponents'](_0x32f798),this['_defineLocale']();}['_defineLocale'](){const _0x318136=this['editor']['config']['get']('uploadcare.locale'),_0x87398=this['editor']['locale']['contentLanguage'];_0x318136&&_0x32f798['defineLocale'](_0x87398,_0x318136);}},tt=class extends _0x56ebfc{constructor(_0x4ad3bc){super(_0x4ad3bc);const t=_0x4ad3bc['t'],_0x2c096b=this['bindTemplate'],_0x467264=new _0x43a7fb();_0x467264['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':[_0x467264,{'text':_0x2c096b['to']('imageUploadProgress',_0x5aed70=>t('Loading\x20image...')+'\x20('+(_0x5aed70||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'}]}]}]});}},et=class extends _0x56ebfc{constructor(_0x3b9aef){super(_0x3b9aef);const t=_0x3b9aef['t'];this['set']('errorType',null);const _0x338d68=new _0x44968d(_0x3b9aef);_0x338d68['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x338d68['withText']=!0x0,_0x338d68['class']='ck-button-action',_0x338d68['on']('execute',()=>{this['fire']('retry');}),_0x338d68['bind']('isVisible')['to'](this,'errorType',_0xed6429=>'NotFound'!==_0xed6429);const _0x4e67ed=new _0x47b45c();_0x4e67ed['content']=_0x5154a2,_0x4e67ed['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4d0a71=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':[_0x4e67ed,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4d0a71['to']('errorType',_0x5ad328=>t('NotFound'!==_0x5ad328?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x338d68]},{'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'}]}]}]});}},it=class extends _0x56ebfc{constructor(_0x2d4fb1,_0x389046){super(_0x2d4fb1);const _0x5361e6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x389046,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5361e6['to']('imageSrc')}});}},st=class extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3df888,_0x168132,_0x7b3893){super(_0x3df888),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x3df888),this['_errorView']=new et(_0x3df888),this['_editingView']=new it(_0x3df888,_0x7b3893),this['_focusableView']=new _0x56ebfc(_0x3df888),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x168132),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'],_0x35ba9a=>{this['_addUploadcareImageEditorListeners'](_0x35ba9a);});}),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'](_0x405270,_0x16fceb){const _0x2c9f6e='uc-cloud-image-editor',_0x2fe054=_0x405270['querySelector'](_0x2c9f6e);if(_0x2fe054)return _0x16fceb(_0x2fe054);const _0x35d8d3=new MutationObserver(_0x430308=>{const _0x6e3c55=_0x430308['filter'](_0x318d67=>_0x318d67['target']===_0x405270&&_0x318d67['addedNodes']['length']>0x0&&_0x318d67['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2c9f6e);_0x6e3c55['length']&&(_0x35d8d3['disconnect'](),_0x16fceb(_0x6e3c55[0x0]['addedNodes'][0x0]));});_0x35d8d3['observe'](_0x405270,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x312298){_0x312298['addEventListener']('apply',_0x3b7117=>{this['fire']('apply',{'imageSrc':_0x3b7117['detail']['cdnUrl']});}),_0x312298['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const rt=/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x47bd7e();var nt=class extends rt{['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x343947,_0x349c48,_0x54fc27){super(),this['_editor']=_0x343947,this['_dialog']=_0x349c48,this['_imageElement']=_0x54fc27,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 _0x4a9b5a=this['_imageElement'],_0x10b99c=_0x4a9b5a['getAttribute']('uploadcareImageId'),_0x29819c=_0x4a9b5a['getAttribute']('src');if(_0x10b99c)await this['_loadImageInfo'](_0x10b99c,_0x29819c);else{if(this['_imageCache']['has'](_0x29819c)){const _0xb5e075=this['_imageCache']['get'](_0x29819c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xb5e075['url'],this['imageDimension']=_0xb5e075['dimension'],this['imageId']=_0xb5e075['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x49dee9}=this['_editor'],t=_0x49dee9['t'],_0x8b8af2=new st(_0x49dee9,this['imageStatus'],this['_attributes']);_0x8b8af2['bind']('status')['to'](this,'imageStatus'),_0x8b8af2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x8b8af2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x8b8af2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x8b8af2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2a5497,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x8b8af2,'position':_0x23d711['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x8b8af2['focus']();},'onHide':()=>{_0x8b8af2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5b22ad=>!H(_0x5b22ad,_0x8b8af2['element'])}});}['_loadImageInfo'](_0x52eab7,_0x2bf172){return Q['getInfo'](_0x52eab7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x41b19d=>{const {width:_0x3bde55,height:_0x45866c}=_0x41b19d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2bf172,this['imageDimension']={'width':_0x3bde55,'height':_0x45866c},this['imageId']=_0x52eab7;})['catch'](_0x21aa1f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x21aa1f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x34d85e,_0x29c878){return this['_getImageAsFile'](_0x34d85e)['then'](_0x4489a8=>Q['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':_0x29c878['signal'],'file':_0x4489a8,'onProgress':_0x378faa=>{_0x378faa&&_0x378faa['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x378faa['value']));}}))['then'](_0x3b7802=>{const {width:_0x41aac3,height:_0x5375fa}=_0x3b7802['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3b7802['cdnUrl'],this['imageDimension']={'width':_0x41aac3,'height':_0x5375fa},this['imageId']=_0x3b7802['uuid'],this['imageUploadProgress']=null;const _0x5555ae=_0x34d85e['getAttribute']('src');this['_imageCache']['set'](_0x5555ae,{'id':_0x3b7802['uuid'],'url':_0x3b7802['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2114a6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2114a6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2f147e,_0xf491c4){_0x2f147e['on']('apply',(_0x28b67e,_0x445add)=>{this['_replaceImage'](_0xf491c4,_0x445add['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2f147e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2f147e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3b7030,_0x4ade0b,_0x1f7918){const _0x27e1ac=this['_editor'],{width:_0x8c0133,height:_0x496d18}=j(_0x4ade0b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2df523,imageSources:_0x5447e3}=B(_0x4ade0b,_0x8c0133);_0x27e1ac['model']['change'](_0xe2dc32=>{if('$graveyard'!==_0x3b7030['root']['rootName'])_0xe2dc32['setSelection'](_0x3b7030,'on'),_0x27e1ac['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3b7030['getAttributes']()),'uploadcareImageId':_0x1f7918,'src':_0x2df523,'sources':_0x5447e3,'width':_0x8c0133,'height':_0x496d18},_0x3b7030);else{_0x27e1ac['execute']('insertImage',{'imageType':_0x3b7030['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3b7030['getAttributes']()),'uploadcareImageId':_0x1f7918,'src':_0x2df523,'sources':_0x5447e3,'width':_0x8c0133,'height':_0x496d18}});const _0x14b70e=_0x3b7030['getChildren']();_0x3b7030=_0x27e1ac['model']['document']['selection']['getSelectedElement']();for(const _0x2cc3ff of _0x14b70e)_0xe2dc32['append'](_0xe2dc32['cloneElement'](_0x2cc3ff),_0x3b7030);}_0xe2dc32['setSelection'](_0x3b7030,'on');});}async['_getImageAsFile'](_0x345fe9){const _0x1d0e27=_0x2139c0['window'],_0x1dcf7a=_0x2139c0['document']['location']['href'],_0x301ad9=new _0x1d0e27['URL'](_0x345fe9['getAttribute']('src'),_0x1dcf7a);if('data:'===_0x301ad9['protocol']){const _0x4dfd06=_0x301ad9['href']['split'](','),_0x5c3925=_0x4dfd06[0x0]['match'](/:(.*?);/)[0x1],_0x5e88b6=_0x5c3925['split']('/')[0x1],_0x374325=_0x1d0e27['atob'](_0x4dfd06[_0x4dfd06['length']-0x1]);let _0x2ab0e7=_0x374325['length'];const _0x1369dc=new _0x1d0e27['Uint8Array'](_0x2ab0e7);for(;_0x2ab0e7--;)_0x1369dc[_0x2ab0e7]=_0x374325['charCodeAt'](_0x2ab0e7);return new _0x1d0e27['File']([_0x1369dc],'image.'+_0x5e88b6,{'type':_0x5c3925});}const _0x440edd=_0x301ad9['href']['split']('/'),_0x3594fa=_0x440edd[_0x440edd['length']-0x1],_0x49ce89=_0x3594fa['split']('.')[0x1];return _0x1d0e27['fetch'](_0x301ad9['href'])['then'](_0x4a774b=>_0x4a774b['clone']()['blob']())['then'](_0x539739=>new _0x1d0e27['File']([_0x539739],_0x3594fa,{'type':'image/'+_0x49ce89}));}},at=class extends _0x5a4179{['imageEditController'];static get['requires'](){return[_0x17f479];}['_isEditable'];constructor(_0x537458){super(_0x537458),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x7fda03){const _0x5a2a6f=M(_0x7fda03);return _0x9c42c1=>!(!_0x9c42c1||!_0x9c42c1['is']('element','imageBlock')&&!_0x9c42c1['is']('element','imageInline'))&&(!!_0x9c42c1['hasAttribute']('uploadcareImageId')||!!_0x9c42c1['hasAttribute']('src')&&_0x5a2a6f(_0x9c42c1['getAttribute']('src')));}(_0x537458['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x520ab6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x520ab6);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3f024c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3f024c&&(_0x3f024c['is']('element','imageBlock')||_0x3f024c['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x17f479),_0x3f024c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x5a4179{['refresh'](){const _0x99aa33=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x99aa33&&(_0x99aa33['is']('element','imageBlock')||_0x99aa33['is']('element','imageInline')));}['execute'](_0x573abb){const _0x1186ce=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3a2232=>{_0x3a2232['setAttributes'](_0x573abb,_0x1186ce),_0x3a2232['removeAttribute']('srcset',_0x1186ce),_0x3a2232['removeAttribute']('sizes',_0x1186ce);});}},ct=class extends _0xf14c47{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[Z,_0x485130,_0x9bb638,_0x26c409];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2aa797}=this;_0x2aa797['commands']['add']('uploadcareImageEdit',new at(_0x2aa797)),_0x2aa797['commands']['add']('uploadcareImageReplace',new ot(_0x2aa797));}},lt=class extends _0xf14c47{['_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 _0x594828=this['editor'];_0x594828['ui']['componentFactory']['add']('uploadcareImageEdit',_0xcd6b07=>{const _0x5256ee=_0x594828['commands']['get']('uploadcareImageEdit'),_0x4fbe3d=new _0x44968d(_0xcd6b07),t=_0xcd6b07['t'];return _0x4fbe3d['set']({'icon':_0x2a5497,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4fbe3d['bind']('isEnabled')['to'](_0x5256ee),_0x4fbe3d['bind']('isOn')['to'](_0x5256ee,'isActive'),this['listenTo'](_0x4fbe3d,'execute',()=>{_0x594828['execute']('uploadcareImageEdit'),_0x594828['editing']['view']['focus']();}),_0x4fbe3d;}),this['_initConfig']();}['_initConfig'](){const _0x3bd0f6=_0x4f341d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3bd0f6),this['listenTo'](this['editor'],'destroy',()=>{_0x3bd0f6['remove']();});}},ut=class extends _0xf14c47{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[ct,lt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{Y as Uploadcare,z as UploadcareCommand,Z as UploadcareEditing,ut as UploadcareImageEdit,at as UploadcareImageEditCommand,ct as UploadcareImageEditEditing,lt as UploadcareImageEditUI,V as UploadcareUI,J 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':_0x2e8d9a=>0x1!=_0x2e8d9a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x175c87=>{const {af:{dictionary:_0x1aafd9,getPluralForm:_0x15db8a}}={'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':_0x5369f4=>0x1!=_0x5369f4}};_0x175c87['af']||={'dictionary':{},'getPluralForm':null},_0x175c87['af']['dictionary']=Object['assign'](_0x175c87['af']['dictionary'],_0x1aafd9),_0x175c87['af']['getPluralForm']=_0x15db8a;})(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':_0x451b20=>0x0==_0x451b20?0x0:0x1==_0x451b20?0x1:0x2==_0x451b20?0x2:_0x451b20%0x64>=0x3&&_0x451b20%0x64<=0xa?0x3:_0x451b20%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4cefbf=>{const {ar:{dictionary:_0xf66f7c,getPluralForm:_0x311f07}}={'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':_0x58026c=>0x0==_0x58026c?0x0:0x1==_0x58026c?0x1:0x2==_0x58026c?0x2:_0x58026c%0x64>=0x3&&_0x58026c%0x64<=0xa?0x3:_0x58026c%0x64>=0xb?0x4:0x5}};_0x4cefbf['ar']||={'dictionary':{},'getPluralForm':null},_0x4cefbf['ar']['dictionary']=Object['assign'](_0x4cefbf['ar']['dictionary'],_0xf66f7c),_0x4cefbf['ar']['getPluralForm']=_0x311f07;})(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':_0x301331=>0x1!=_0x301331}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2e4301=>{const {ast:{dictionary:_0x33e413,getPluralForm:_0x45c49c}}={'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':_0x39c7af=>0x1!=_0x39c7af}};_0x2e4301['ast']||={'dictionary':{},'getPluralForm':null},_0x2e4301['ast']['dictionary']=Object['assign'](_0x2e4301['ast']['dictionary'],_0x33e413),_0x2e4301['ast']['getPluralForm']=_0x45c49c;})(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':_0x5221aa=>0x1!=_0x5221aa}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3fec86=>{const {az:{dictionary:_0x5d2899,getPluralForm:_0x5aa6ea}}={'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':_0x189687=>0x1!=_0x189687}};_0x3fec86['az']||={'dictionary':{},'getPluralForm':null},_0x3fec86['az']['dictionary']=Object['assign'](_0x3fec86['az']['dictionary'],_0x5d2899),_0x3fec86['az']['getPluralForm']=_0x5aa6ea;})(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':_0x475f6e=>_0x475f6e%0xa==0x1&&_0x475f6e%0x64!=0xb?0x0:_0x475f6e%0xa>=0x2&&_0x475f6e%0xa<=0x4&&(_0x475f6e%0x64<0xa||_0x475f6e%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x28264a=>{const {be:{dictionary:_0x3957a5,getPluralForm:_0xc354ff}}={'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':_0x50a471=>_0x50a471%0xa==0x1&&_0x50a471%0x64!=0xb?0x0:_0x50a471%0xa>=0x2&&_0x50a471%0xa<=0x4&&(_0x50a471%0x64<0xa||_0x50a471%0x64>=0x14)?0x1:0x2}};_0x28264a['be']||={'dictionary':{},'getPluralForm':null},_0x28264a['be']['dictionary']=Object['assign'](_0x28264a['be']['dictionary'],_0x3957a5),_0x28264a['be']['getPluralForm']=_0xc354ff;})(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':_0x5e0602=>0x1!=_0x5e0602}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x11c48f=>{const {bg:{dictionary:_0x59cf8f,getPluralForm:_0x5345a1}}={'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':_0x4b7b1d=>0x1!=_0x4b7b1d}};_0x11c48f['bg']||={'dictionary':{},'getPluralForm':null},_0x11c48f['bg']['dictionary']=Object['assign'](_0x11c48f['bg']['dictionary'],_0x59cf8f),_0x11c48f['bg']['getPluralForm']=_0x5345a1;})(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':_0x32acc3=>0x1!=_0x32acc3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x50fd56=>{const {bn:{dictionary:_0x24e08a,getPluralForm:_0x5ecfb9}}={'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':_0x31ece1=>0x1!=_0x31ece1}};_0x50fd56['bn']||={'dictionary':{},'getPluralForm':null},_0x50fd56['bn']['dictionary']=Object['assign'](_0x50fd56['bn']['dictionary'],_0x24e08a),_0x50fd56['bn']['getPluralForm']=_0x5ecfb9;})(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':_0x3a6a4b=>_0x3a6a4b%0xa==0x1&&_0x3a6a4b%0x64!=0xb?0x0:_0x3a6a4b%0xa>=0x2&&_0x3a6a4b%0xa<=0x4&&(_0x3a6a4b%0x64<0xa||_0x3a6a4b%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2a54b3=>{const {bs:{dictionary:_0x5ede67,getPluralForm:_0x25ed0f}}={'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':_0x168036=>_0x168036%0xa==0x1&&_0x168036%0x64!=0xb?0x0:_0x168036%0xa>=0x2&&_0x168036%0xa<=0x4&&(_0x168036%0x64<0xa||_0x168036%0x64>=0x14)?0x1:0x2}};_0x2a54b3['bs']||={'dictionary':{},'getPluralForm':null},_0x2a54b3['bs']['dictionary']=Object['assign'](_0x2a54b3['bs']['dictionary'],_0x5ede67),_0x2a54b3['bs']['getPluralForm']=_0x25ed0f;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ca.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':
|
|
23
|
+
export default{'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':_0x281d4e=>0x1!=_0x281d4e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5d61fb=>{const {ca:{dictionary:_0x31cbfe,getPluralForm:_0x153aa2}}={'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':_0xa99f57=>0x1!=_0xa99f57}};_0x5d61fb['ca']||={'dictionary':{},'getPluralForm':null},_0x5d61fb['ca']['dictionary']=Object['assign'](_0x5d61fb['ca']['dictionary'],_0x31cbfe),_0x5d61fb['ca']['getPluralForm']=_0x153aa2;})(window['CKEDITOR_TRANSLATIONS']||={});
|