@ckeditor/ckeditor5-uploadcare 48.3.0-alpha.1 → 48.3.0-alpha.2
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 _0xb0fef4,Plugin as _0x44f47f}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0xd3e53e,IconError as _0x431484,IconFacebook as _0x11d0af,IconGoogleDrive as _0x375233,IconGooglePhotos as _0x16913f,IconOneDrive as _0x32eec4,IconUploadcareImageEdit as _0x3f9e29,IconUploadcareImageUpload as _0x2897fd,IconUploadcareLink as _0x1a190b}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x6a92ff,Dialog as _0x42e81b,DialogViewPosition as _0xe47dbe,FocusCycler as _0x34e882,IconView as _0x3b3898,MenuBarMenuListItemButtonView as _0x2ed914,Notification as _0x1e4f0f,SpinnerView as _0x56228c,View as _0x35e03c}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x4490bf,FocusTracker as _0x10871b,ObservableMixin as _0x674f5a,createElement as _0x2c838f,getAncestors as _0x4b6359,global as _0x4dfba9,uid as _0x1273e4}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x3bd8f2,ImageUploadEditing as _0x5e97ad,ImageUploadProgress as _0x1ee60a,ImageUtils as _0x6b9103,PictureEditing as _0x1dfedf}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x3e9689}from'@ckeditor/ckeditor5-upload';import{info as _0x1144c6,uploadFile as _0x1aa3ee}from'@uploadcare/upload-client';import*as _0x23be51 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x1e8f63,_0x5d1dcb,_0x46f8ed){const t=_0x1e8f63['t'],_0x49aac0=_0x1e8f63['t'];switch(_0x5d1dcb){case'local':return{'text':_0x49aac0('Insert'===_0x46f8ed?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x49aac0('From\x20computer')};case'url':return{'text':'Insert'===_0x46f8ed?_0x49aac0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x49aac0('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x46f8ed?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x46f8ed?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x46f8ed?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x46f8ed?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x46f8ed?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5d1dcb;}}var V=class extends _0x44f47f{['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 _0x451bd1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x19abe6;for(const _0x51cfad in _0x451bd1){const _0x1d7f68=_0x51cfad,_0x54f313=_0x451bd1[_0x1d7f68];if('uploadcareLicenseKeyValid'==_0x54f313||'uploadcareLicenseKeyInvalid'==_0x54f313||'uploadcareLicenseKeyExpired'==_0x54f313||'uploadcareLicenseKeyDomainLimit'==_0x54f313||'uploadcareLicenseKeyNotAllowed'==_0x54f313||'uploadcareLicenseKeyEvaluationLimit'==_0x54f313||'uploadcareLicenseKeyUsageLimit'==_0x54f313){delete _0x451bd1[_0x1d7f68],_0x19abe6=_0x54f313,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x19abe6&&_0x451bd1['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x19abe6&&_0x451bd1['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x19abe6&&_0x451bd1['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x19abe6&&_0x451bd1['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x19abe6&&_0x451bd1['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x19abe6&&_0x451bd1['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5211bb}=this,_0x3942b3=_0x5211bb['commands']['get']('uploadcare');if(!_0x3942b3)return;const _0x32c82f=this['_normalizeConfigSourceList'](_0x5211bb['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4137ae,_0x1e3429)=>{const _0x38b1d2=this['_getIntegrationKey'](_0x1e3429['type']);return _0x4137ae[_0x38b1d2]||(_0x4137ae[_0x38b1d2]=[]),_0x4137ae[_0x38b1d2]['push'](_0x1e3429),_0x4137ae;},{});_0x5211bb['plugins']['has']('ImageInsertUI')&&_0x5211bb['commands']['get']('uploadcare')&&Object['entries'](_0x32c82f)['forEach'](([_0x998c85,_0x3ec2ee])=>{_0x5211bb['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x998c85,'observable':()=>_0x3942b3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3ec2ee),'formViewCreator':()=>this['_createDropdownButtons'](_0x3ec2ee),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3ec2ee),'override':'assetManager'!==_0x998c85});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x37d1c3){const {locale:_0x29fa7f}=this['editor'];return _0x37d1c3['map'](_0x425159=>{const _0x16024a=T(_0x29fa7f,_0x425159,'Insert');switch(_0x425159){case'local':return{'icon':_0x2897fd,'type':'local',..._0x16024a};case'url':return{'icon':_0x1a190b,'type':'url',..._0x16024a};case'dropbox':return{'icon':_0xd3e53e,'type':'dropbox',..._0x16024a};case'facebook':return{'icon':_0x11d0af,'type':'facebook',..._0x16024a};case'gdrive':return{'icon':_0x375233,'type':'gdrive',..._0x16024a};case'gphotos':return{'icon':_0x16913f,'type':'gphotos',..._0x16024a};case'onedrive':return{'icon':_0x32eec4,'type':'onedrive',..._0x16024a};}});}['_getIntegrationKey'](_0xdc77f7){switch(_0xdc77f7){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x37073a,_0x187355){const _0x509453=this['editor'],_0x207499=new _0x37073a(_0x509453['locale']),_0x495749=_0x509453['commands']['get']('uploadcare');return _0x207499['bind']('isEnabled')['to'](_0x495749),_0x207499['on']('execute',()=>{_0x495749['execute'](_0x187355);}),_0x207499;}['_createToolbarButton'](_0x1d8bed){const {locale:_0x5c49ba}=this['editor'],_0x13ba80=this['editor']['plugins']['get']('ImageInsertUI'),_0x5005aa=_0x1d8bed[0x0],_0x550924=this['_createButton'](_0x6a92ff,_0x5005aa['type']);return _0x550924['icon']=_0x5005aa['icon'],_0x550924['bind']('label')['to'](_0x13ba80,'isImageSelected',_0x2ab51b=>T(_0x5c49ba,_0x5005aa['type'],_0x2ab51b?'Replace':'Insert')['text']),_0x550924['tooltip']=!0x0,_0x550924;}['_createDropdownButtons'](_0x34779e){const {locale:_0x6e4bd5}=this['editor'],_0x118a84=this['editor']['plugins']['get']('ImageInsertUI');return _0x34779e['map'](_0x535362=>{const _0xddd4ed=this['_createButton'](_0x6a92ff,_0x535362['type']);return _0xddd4ed['withText']=!0x0,_0xddd4ed['icon']=_0x535362['icon'],_0xddd4ed['bind']('label')['to'](_0x118a84,'isImageSelected',_0x5401d2=>T(_0x6e4bd5,_0x535362['type'],_0x5401d2?'Replace':'Insert')['text']),_0xddd4ed;});}['_createMenuBarButtons'](_0x446788){return _0x446788['map'](_0x27376a=>{const _0x53752b=this['_createButton'](_0x2ed914,_0x27376a['type']);return _0x53752b['icon']=_0x27376a['icon'],_0x53752b['label']=_0x27376a['shortText'],_0x53752b;});}},F=class extends _0x35e03c{['focusTracker'];['focusCycler'];constructor(_0x532b71){super(_0x532b71),this['focusTracker']=new _0x10871b(),this['focusCycler']=new _0x34e882({'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(_0x4b702b,_0x40eb2e){super(_0x4b702b),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-'+_0x40eb2e}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x453760,_0x2939c3){const _0x153978=_0x453760['replace'](/\/$/,'');return{'imageFallbackUrl':_0x453760,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4abe6b=>_0x4abe6b<_0x2939c3)['map'](_0x153273=>_0x153978+'/-/resize/'+_0x153273+'x/\x20'+_0x153273+'w'),_0x453760+'\x20'+_0x2939c3+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2939c3+'px)\x20100vw,\x20'+_0x2939c3+'px','type':'image/webp'}]};}function j(_0x2b6b79,_0x435497,_0x47f896){const _0xd6ffc6=_0x2b6b79['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xd6ffc6?parseInt(_0xd6ffc6[0x1],0xa):_0x435497,'height':_0xd6ffc6?parseInt(_0xd6ffc6[0x2],0xa):_0x47f896};}function q(_0x150e5c,_0x464c80){const _0x3f276a=new(_0x4490bf())(),_0x1c4ea6=_0x150e5c['plugins']['get']('ImageUtils'),_0x38f622=_0x150e5c['editing']['mapper']['toViewElement'](_0x464c80),_0x3fe8f9=_0x1c4ea6['findViewImgElement'](_0x38f622),_0x5bc119=_0x150e5c['editing']['view']['domConverter']['viewToDom'](_0x3fe8f9),_0x1cb1af=_0x464c80['getAttribute']('width'),_0x3d1e35=_0x464c80['getAttribute']('height'),_0x293bfa='image-processing';_0x150e5c['editing']['view']['change'](_0x2110b7=>{_0x2110b7['addClass'](_0x293bfa,_0x38f622),_0x2110b7['setStyle']('aspect-ratio',_0x1cb1af+'/'+_0x3d1e35,_0x3fe8f9);}),_0x3f276a['listenTo'](_0x5bc119,'load',()=>{_0x3f276a['stopListening'](_0x5bc119,'load'),_0x150e5c['editing']['view']['change'](_0x16ae50=>{_0x16ae50['removeClass'](_0x293bfa,_0x38f622),_0x16ae50['removeStyle']('aspect-ratio',_0x3fe8f9);});});}function M(_0x40bff8){if(Array['isArray'](_0x40bff8)){const _0xc9a5af=_0x40bff8['map'](M);return _0x5974ba=>_0xc9a5af['some'](_0x4c6c03=>_0x4c6c03(_0x5974ba));}if('origin'==_0x40bff8){const _0x593b69=_0x4dfba9['window']['location']['origin'];return _0x31ee22=>new URL(_0x31ee22,_0x4dfba9['document']['baseURI'])['origin']==_0x593b69;}return'function'==typeof _0x40bff8?_0x40bff8:_0x40bff8 instanceof RegExp?_0x133e2a=>!(!_0x133e2a['match'](_0x40bff8)&&!_0x133e2a['replace'](/^https?:\/\//,'')['match'](_0x40bff8)):()=>!0x1;}function H(_0x2fad9c,_0x3700ad){return _0x4b6359(_0x2fad9c['target'])['includes'](_0x3700ad);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x674f5a();var G=class extends W{['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4c0745,_0x43aecb,_0xf7c2f2){super(),this['_editor']=_0x4c0745,this['_editing']=_0x43aecb,this['_dialog']=_0x4c0745['plugins']['get'](_0x42e81b),this['_api']=_0x43aecb['ctxElement']['getAPI'](),this['_type']=_0xf7c2f2,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:_0x381176,model:_0x149d94}=this['_editor'],_0x4412f3=_0x149d94['document']['selection']['getSelectedElement'](),_0x42dbc7=_0x4412f3&&(_0x4412f3['is']('element','imageBlock')||_0x4412f3['is']('element','imageInline'));this['_formView']=new $(_0x381176,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2897fd,'title':T(_0x381176,this['_type'],_0x42dbc7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xe47dbe['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3e576b=>!H(_0x3e576b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5ae717}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3d9aac=>{const _0x1fbe29=_0x5ae717['length'];for(const _0x2968cb of _0x5ae717){const _0x12dabd=_0x2968cb===_0x5ae717[_0x1fbe29-0x1],{cdnUrl:_0x4de489,fileInfo:_0x4b9897}=_0x2968cb;if(!_0x4de489||!_0x4b9897)continue;const {width:_0x401fa1,height:_0x314c91}=_0x4b9897['imageInfo'],_0x180216=j(_0x4de489,_0x401fa1,_0x314c91),_0x5348ec=B(_0x4de489,_0x180216['width']),_0xdee849={'id':_0x4b9897['uuid'],'type':'image','attributes':{'imageDimension':_0x180216,..._0x5348ec}};this['_insertAsset'](_0xdee849,_0x12dabd,_0x3d9aac);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x446fd7=>{'idle'===_0x446fd7['detail']['status']&&!_0x446fd7['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}['_insertAsset'](_0x544345,_0x253056,_0x214b10){const _0x3cf96e=this['_editor']['model']['document']['selection'],_0x44c2f0=_0x3cf96e['getSelectedElement'](),_0x39a725=!(!_0x44c2f0||!_0x44c2f0['is']('element','imageInline'));_0x214b10['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x544345,_0x39a725),_0x253056||_0x214b10['setSelection'](_0x3cf96e['getLastPosition']());}['_insertImage'](_0x42758b,_0x3cf269){const _0x4e0802=this['_editor'],{imageDimension:_0x254f1a,imageFallbackUrl:_0x2ea94a,imageSources:_0x4904c9}=_0x42758b['attributes'];_0x4e0802['execute']('insertImage',{'imageType':_0x3cf269?'imageInline':null,'source':{'uploadcareImageId':_0x42758b['id'],'src':_0x2ea94a,'sources':_0x4904c9,..._0x254f1a}});}},z=class extends _0xb0fef4{['_editing'];['_controller']=null;static get['requires'](){return[_0x42e81b,Z];}constructor(_0x3e6c36){super(_0x3e6c36),this['_editing']=_0x3e6c36['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4b7840){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x4b7840);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x5fbf32,..._0x28d723}){return _0x1aa3ee(_0x5fbf32,_0x28d723);}static['getInfo'](_0x7a8187,_0x31444e){return _0x1144c6(_0x7a8187,_0x31444e);}},J=class extends _0x44f47f{static get['requires'](){return[_0x5e97ad,_0x1ee60a,_0x3e9689,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1d62f5=this['editor'];if(!_0x1d62f5['config']['get']('uploadcare'))return;_0x1d62f5['plugins']['get'](_0x3e9689)['createUploadAdapter']=_0x1d65d1=>new X(_0x1d65d1,_0x1d62f5),_0x1d62f5['plugins']['get'](_0x5e97ad)['on']('uploadComplete',(_0x310cd4,{imageElement:_0x260371,data:_0xe6a1d0})=>{_0x1d62f5['model']['change'](_0x4c712e=>{_0x4c712e['setAttribute']('uploadcareImageId',_0xe6a1d0['uploadcareImageId'],_0x260371);});});}},X=class{['loader'];['editor'];['controller'];constructor(_0x5980a3,_0x1e9cdc){this['loader']=_0x5980a3,this['editor']=_0x1e9cdc,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x26834e=await this['loader']['file'];return Q['upload']({'file':_0x26834e,'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':_0x20c2d6=>{_0x20c2d6&&_0x20c2d6['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x20c2d6['value']);}})['then'](async _0x41c646=>{const {imageFallbackUrl:_0xb218e9,imageSources:_0x25fbdb}=B(_0x41c646['cdnUrl'],_0x41c646['imageInfo']['width']);return{'uploadcareImageId':_0x41c646['uuid'],'default':_0xb218e9,'sources':_0x25fbdb};})['catch'](()=>{const _0x210a26=t('Cannot\x20upload\x20file:')+('\x20'+_0x26834e['name']+'.');return Promise['reject'](_0x210a26);});}['abort'](){this['controller']['abort']();}},Z=class extends _0x44f47f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x1dfedf,J,_0x42e81b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2c6170){super(_0x2c6170),this['ucContextId']=_0x1273e4();}['init'](){const _0x178479=this['editor'];_0x178479['commands']['add']('uploadcare',new z(_0x178479));}['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 _0xc6ece8=_0x4dfba9['document']['querySelector']('input[uploadcare-file-input]');_0xc6ece8&&_0xc6ece8['remove']();}),async function(_0x160feb){const _0x3793d2='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0x1250b5=0x78e10,_0x5a6f36=window['Date']['now'](),_0x347392=_0x160feb['editor'],_0x2d3f0c=new window['Promise'](_0x483257=>{_0x347392['once']('ready',_0x483257);}),_0x3a8fbe={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x3701f3=_0x347392['config']['get']('licenseKey');async function _0x25e8a0(){let _0x180669,_0x368e46=null,_0x9b0fc8=null;try{return'GPL'==_0x3701f3?'NotAllowed':(_0x180669=_0x39dde5(),_0x180669?(_0x180669['usageEndpoint']&&(_0x9b0fc8=_0x3f94e5(_0x180669['usageEndpoint'],_0x180669['jti'])),await _0x1db68e()?_0x18bf7b()?_0x1e6a86()?'Expired':_0x3b3097()?('evaluation'==_0x180669['licenseType']&&(_0x368e46=_0x124c25('EvaluationLimit')),await _0x25cf75()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1e6a86(){const _0x1a916c=['evaluation','trial']['includes'](_0x180669['licenseType'])?_0x5a6f36/0x3e8:0xe10*_0x1250b5;return _0x180669['exp']<_0x1a916c;}function _0x18bf7b(){const _0x213c9d=_0x180669['features'];return!!_0x213c9d&&(!!_0x213c9d['includes']('*')||!!_0x213c9d['includes']('UPLC'));}function _0x3b3097(){const _0x10df6c=_0x180669['licensedHosts'];if(!_0x10df6c||0x0==_0x10df6c['length'])return!0x0;const {hostname:_0x28ba00}=new URL(window['location']['href']);if(_0x10df6c['includes'](_0x28ba00))return!0x0;const _0xd23db4=_0x28ba00['split']('.');return _0x10df6c['filter'](_0x482cb0=>_0x482cb0['includes']('*'))['map'](_0x3fd140=>_0x3fd140['split']('.'))['filter'](_0x5b52b3=>_0x5b52b3['length']<=_0xd23db4['length'])['map'](_0x14ab68=>Array(_0xd23db4['length']-_0x14ab68['length'])['fill']('*'===_0x14ab68[0x0]?'*':'')['concat'](_0x14ab68))['some'](_0x27b3c0=>_0xd23db4['every']((_0x5ff288,_0x5dc7ff)=>_0x27b3c0[_0x5dc7ff]===_0x5ff288||'*'===_0x27b3c0[_0x5dc7ff]));}function _0x25cf75(){return _0x368e46&&_0x9b0fc8?new window['Promise']((_0x2f69c8,_0x980663)=>{_0x368e46['then'](_0x2f69c8,_0x980663),_0x9b0fc8['then'](_0x22f26f=>{'Valid'!=_0x22f26f&&_0x2f69c8(_0x22f26f);},_0x980663);}):_0x368e46||_0x9b0fc8||'Valid';}}function _0x3f94e5(_0x45f4be,_0x3bf05c){return new window['Promise'](_0x4fa719=>{if(_0x47a986())return _0x4fa719('Valid');_0x5b3ffc(),_0x347392['decorate']('_sendUsageRequest');let _0x3f484b=!0x1;const _0x294f58=_0x1273e4();function _0x4823d4(_0x33e4f8){return!!_0x33e4f8&&('object'==typeof _0x33e4f8||'function'==typeof _0x33e4f8)&&'function'==typeof _0x33e4f8['then']&&'function'==typeof _0x33e4f8['catch'];}function _0x4f902f(_0x2d4664){_0x2d4165(_0x2d4664)['then'](_0x794f20=>_0x794f20&&'ok'==_0x794f20['status']?_0x25f5c5(_0x36abe1(_0x294f58+_0x3bf05c))!=_0x794f20['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1ce732=>(_0x12d9bb(),_0x1ce732),()=>{const _0x2b7049=_0x390703();return null==_0x2b7049?(_0x12d9bb(),'Valid'):_0x5a6f36-_0x2b7049>0x240c8400?'UsageLimit':'Valid';})['then'](_0x4fa719)['catch'](()=>{_0x4fa719('UsageLimit');});const _0x437c8c=0x36ee80;function _0x12d9bb(){const _0x583f64='llct-'+_0x25f5c5(_0x36abe1(_0x45f4be)),_0x27a7a1=_0x5de21a(_0x25f5c5(window['Math']['ceil'](_0x5a6f36/_0x437c8c)));window['localStorage']['setItem'](_0x583f64,_0x27a7a1);}function _0x390703(){const _0x286cc6='llct-'+_0x25f5c5(_0x36abe1(_0x45f4be)),_0x2c134b=window['localStorage']['getItem'](_0x286cc6);return _0x2c134b?window['parseInt'](_0x5de21a(_0x2c134b),0x10)*_0x437c8c:null;}function _0x2d4165(_0x3d34a8){return new window['Promise']((_0x5d5ee5,_0x158743)=>{_0x3d34a8['then'](_0x5d5ee5,_0x158743),window['setTimeout'](_0x158743,0x1d4c0);});}}_0x347392['on']('_sendUsageRequest',(_0xc446ad,_0x31e37f)=>{if(_0x31e37f[0x0]!=_0x45f4be)return _0x4fa719('UsageLimit');_0x31e37f[0x1]={..._0x31e37f[0x1],'requestId':_0x294f58};},{'priority':'high'}),_0x347392['on']('_sendUsageRequest',_0x3c09c2=>{_0x4823d4(_0x3c09c2['return'])&&(_0x3f484b=!0x0,_0x4f902f(_0x3c09c2['return']));},{'priority':'low'}),_0x2d3f0c['then'](()=>{_0x3f484b||_0x4fa719('UsageLimit');});});function _0x47a986(){return'auto'==_0x347392['editing']['view']['_overlayModeHint'];}function _0x5b3ffc(){_0x347392['editing']['view']['_overlayModeHint']='auto';}}function _0x124c25(_0x56ef81){const _0xe28b6=[new window['Promise'](_0x21e92e=>setTimeout(_0x21e92e,0x93ecc)),_0x2d3f0c['then'](()=>new window['Promise'](_0x452aab=>{let _0x371cb4=0x0;_0x347392['model']['on']('applyOperation',(_0x3f10e6,_0x53da64)=>{_0x53da64[0x0]['isDocumentOperation']&&_0x371cb4++,0x5e8==_0x371cb4&&(_0x452aab(),_0x3f10e6['off']());});}))];return window['Promise']['race'](_0xe28b6)['then'](()=>_0x56ef81);}async function _0x5d12f9(){await _0x2d3f0c,_0x347392['model']['change']=_0x5c2f80,_0x347392['model']['enqueueChange']=_0x5c2f80,_0x347392['enableReadOnlyMode']('model');}function _0x1a0a1e(_0x3048c7){const _0x3f601d=_0x5848e4();_0x347392[_0x3f601d]='uploadcareLicenseKey'+_0x3048c7,'Valid'!=_0x3048c7&&_0x5d12f9();}function _0x5848e4(){const _0x2fe5c7=window['String'](window['performance']['now']())['replace']('.','');let _0x32dcc9='h';for(let _0x37b928=0x0;_0x37b928<_0x2fe5c7['length'];_0x37b928+=0x2){let _0x21c24f=window['parseInt'](_0x2fe5c7['substring'](_0x37b928,_0x37b928+0x2));_0x21c24f>=0x3e&&(_0x21c24f-=0x3e),_0x32dcc9+=_0x3793d2[_0x21c24f];}return _0x32dcc9;}function _0x39dde5(){const _0x3af244=_0x3701f3['split']('.');if(0x3!=_0x3af244['length'])return null;return _0x183324(_0x3af244[0x1]);function _0x183324(_0x3a3fb9){const _0x58efbb=_0x1a3f0f(_0x3a3fb9);return _0x58efbb&&_0x14cf9c()?_0x58efbb:null;function _0x14cf9c(){const _0x125a5b=_0x58efbb['jti'],_0x1f08d0=window['parseInt'](_0x125a5b['substring'](_0x125a5b['length']-0x8),0x10),_0x468bf4={..._0x58efbb,'jti':_0x125a5b['substring'](0x0,_0x125a5b['length']-0x8)};return delete _0x468bf4['vc'],_0x36abe1(_0x468bf4)==_0x1f08d0;}}}async function _0x1db68e(){let _0x2d247b=!0x0;try{const [_0x5b196a,_0x2f3145,_0x440a0c]=_0x3701f3['split']('.');return _0x5a1e6f(_0x5b196a),await _0x38e092(_0x5b196a,_0x2f3145,_0x440a0c),_0x2d247b;}catch{return!0x1;}function _0x5a1e6f(_0x5967b){const _0x2ec7f0=_0x1a3f0f(_0x5967b);_0x2ec7f0&&'ES256'==_0x2ec7f0['alg']||(_0x2d247b=!0x1);}async function _0x38e092(_0x1c3ab3,_0x4d5ffb,_0x26d0f5){const _0x535a05=window['Uint8Array']['from'](_0x200452(_0x26d0f5),_0x3633a9=>_0x3633a9['charCodeAt'](0x0)),_0x39a345=new window['TextEncoder']()['encode'](_0x1c3ab3+'.'+_0x4d5ffb),_0x5748dc=window['crypto']['subtle'];if(!_0x5748dc)return;const _0x47a5f7=await _0x5748dc['importKey']('jwk',_0x3a8fbe,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5748dc['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x47a5f7,_0x535a05,_0x39a345)||(_0x2d247b=!0x1);}}function _0x1a3f0f(_0x127582){return _0x127582['startsWith']('ey')?JSON['parse'](_0x200452(_0x127582)):null;}function _0x200452(_0x37600b){return window['atob'](_0x37600b['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x36abe1(_0x3b94b1){let _0x4ac8ca=0x1505;function _0xd85f43(_0x2ab30c){for(let _0x5f1654=0x0;_0x5f1654<_0x2ab30c['length'];_0x5f1654++){const _0x2053af=_0x2ab30c['charCodeAt'](_0x5f1654);_0x4ac8ca=(_0x4ac8ca<<0x5)+_0x4ac8ca+_0x2053af,_0x4ac8ca&=_0x4ac8ca;}}function _0x101040(_0x52e7ad){Array['isArray'](_0x52e7ad)?_0x52e7ad['forEach'](_0x101040):_0x52e7ad&&'object'==typeof _0x52e7ad?Object['entries'](_0x52e7ad)['sort']()['forEach'](([_0x578e4b,_0x31d1bb])=>{_0xd85f43(_0x578e4b),_0x101040(_0x31d1bb);}):_0xd85f43(window['String'](_0x52e7ad));}return _0x101040(_0x3b94b1),_0x4ac8ca>>>0x0;}function _0x25f5c5(_0x10a601){return _0x10a601['toString'](0x10)['padStart'](0x8,'0');}function _0x5de21a(_0x1c537b){return _0x1c537b['split']('')['reverse']()['join']('');}function _0x5c2f80(){}_0x1a0a1e(await _0x25e8a0());}(this);}['_initSchema'](){const _0x3bd118=this['editor']['model']['schema'];_0x3bd118['isRegistered']('imageBlock')&&_0x3bd118['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3bd118['isRegistered']('imageInline')&&_0x3bd118['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2f4b7f=this['editor'];_0x2f4b7f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2f4b7f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3eea88=>_0x3eea88['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5f3d75=_0x2f4b7f['commands']['get']('replaceImageSource');_0x5f3d75&&this['listenTo'](_0x5f3d75,'cleanupImage',(_0x24606b,[_0x5a92bd,_0x3ce16a])=>{_0x5a92bd['removeAttribute']('uploadcareImageId',_0x3ce16a);});}['_initConfig'](){const _0x464a03=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4649af=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2c838f(_0x4dfba9['document'],'uc-config',{..._0x464a03,'pubkey':_0x4649af,'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']=_0x3fb223=>{if('closeMax'==_0x3fb223)return'#uc-icon-arrow-down';},_0x4dfba9['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2c838f(_0x4dfba9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4dfba9['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2f62fd=this['editor']['commands']['get']('insertImage');_0x2f62fd&&this['listenTo'](_0x2f62fd,'execute',()=>{const _0x28bc11=this['editor']['model']['document']['selection']['getSelectedElement']();_0x28bc11&&_0x28bc11['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x28bc11);});});const _0x5ca977=this['editor']['commands']['get']('uploadcareImageReplace');_0x5ca977&&this['listenTo'](_0x5ca977,'execute',()=>{const _0x272435=this['editor']['model']['document']['selection']['getSelectedElement']();_0x272435&&_0x272435['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x272435);});});}},Y=class extends _0x44f47f{static get['requires'](){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20ecbb){super(_0x20ecbb),_0x20ecbb['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x23be51['defineComponents'](_0x23be51),this['_defineLocale']();}['_defineLocale'](){const _0x376e59=this['editor']['config']['get']('uploadcare.locale'),_0x574b72=this['editor']['locale']['contentLanguage'];_0x376e59&&_0x23be51['defineLocale'](_0x574b72,_0x376e59);}},tt=class extends _0x35e03c{constructor(_0x3c3a22){super(_0x3c3a22);const t=_0x3c3a22['t'],_0x4e755=this['bindTemplate'],_0x52d92b=new _0x56228c();_0x52d92b['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':[_0x52d92b,{'text':_0x4e755['to']('imageUploadProgress',_0x5c6416=>t('Loading\x20image...')+'\x20('+(_0x5c6416||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 _0x35e03c{constructor(_0x140baf){super(_0x140baf);const t=_0x140baf['t'];this['set']('errorType',null);const _0x410ddd=new _0x6a92ff(_0x140baf);_0x410ddd['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x410ddd['withText']=!0x0,_0x410ddd['class']='ck-button-action',_0x410ddd['on']('execute',()=>{this['fire']('retry');}),_0x410ddd['bind']('isVisible')['to'](this,'errorType',_0x1bf591=>'NotFound'!==_0x1bf591);const _0x14c174=new _0x3b3898();_0x14c174['content']=_0x431484,_0x14c174['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1e8ac5=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':[_0x14c174,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1e8ac5['to']('errorType',_0x152ff3=>t('NotFound'!==_0x152ff3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x410ddd]},{'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 _0x35e03c{constructor(_0x4842d2,_0x2aee77){super(_0x4842d2);const _0x40367b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2aee77,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x40367b['to']('imageSrc')}});}},st=class extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x314e9c,_0x40d634,_0x4eae76){super(_0x314e9c),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x314e9c),this['_errorView']=new et(_0x314e9c),this['_editingView']=new it(_0x314e9c,_0x4eae76),this['_focusableView']=new _0x35e03c(_0x314e9c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x40d634),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'],_0x31353b=>{this['_addUploadcareImageEditorListeners'](_0x31353b);});}),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'](_0x24e859,_0x333a7e){const _0x47e245='uc-cloud-image-editor',_0x32f5fa=_0x24e859['querySelector'](_0x47e245);if(_0x32f5fa)return _0x333a7e(_0x32f5fa);const _0x37cb59=new MutationObserver(_0x22827e=>{const _0x4df4cb=_0x22827e['filter'](_0x25290d=>_0x25290d['target']===_0x24e859&&_0x25290d['addedNodes']['length']>0x0&&_0x25290d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x47e245);_0x4df4cb['length']&&(_0x37cb59['disconnect'](),_0x333a7e(_0x4df4cb[0x0]['addedNodes'][0x0]));});_0x37cb59['observe'](_0x24e859,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x28bb37){_0x28bb37['addEventListener']('apply',_0x160715=>{this['fire']('apply',{'imageSrc':_0x160715['detail']['cdnUrl']});}),_0x28bb37['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const rt=/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x674f5a();var nt=class extends rt{['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x12abe1,_0x5cf4f2,_0x1a1de4){super(),this['_editor']=_0x12abe1,this['_dialog']=_0x5cf4f2,this['_imageElement']=_0x1a1de4,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 _0x575c8c=this['_imageElement'],_0x1f701b=_0x575c8c['getAttribute']('uploadcareImageId'),_0x3339c5=_0x575c8c['getAttribute']('src');if(_0x1f701b)await this['_loadImageInfo'](_0x1f701b,_0x3339c5);else{if(this['_imageCache']['has'](_0x3339c5)){const _0x2f9474=this['_imageCache']['get'](_0x3339c5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2f9474['url'],this['imageDimension']=_0x2f9474['dimension'],this['imageId']=_0x2f9474['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x33cc88}=this['_editor'],t=_0x33cc88['t'],_0x3596df=new st(_0x33cc88,this['imageStatus'],this['_attributes']);_0x3596df['bind']('status')['to'](this,'imageStatus'),_0x3596df['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3596df['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3596df['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3596df,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3f9e29,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3596df,'position':_0xe47dbe['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3596df['focus']();},'onHide':()=>{_0x3596df['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xb6250b=>!H(_0xb6250b,_0x3596df['element'])}});}['_loadImageInfo'](_0x344c0b,_0x2b429b){return Q['getInfo'](_0x344c0b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x598cf5=>{const {width:_0x3f1cf3,height:_0x58f591}=_0x598cf5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2b429b,this['imageDimension']={'width':_0x3f1cf3,'height':_0x58f591},this['imageId']=_0x344c0b;})['catch'](_0x5b4652=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5b4652['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x377f1d,_0x35ca6a){return this['_getImageAsFile'](_0x377f1d)['then'](_0x5b6851=>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':_0x35ca6a['signal'],'file':_0x5b6851,'onProgress':_0x2d8cc6=>{_0x2d8cc6&&_0x2d8cc6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2d8cc6['value']));}}))['then'](_0x483892=>{const {width:_0x119253,height:_0x16d102}=_0x483892['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x483892['cdnUrl'],this['imageDimension']={'width':_0x119253,'height':_0x16d102},this['imageId']=_0x483892['uuid'],this['imageUploadProgress']=null;const _0x39c89e=_0x377f1d['getAttribute']('src');this['_imageCache']['set'](_0x39c89e,{'id':_0x483892['uuid'],'url':_0x483892['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x30da99=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x30da99['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x391fb3,_0x96bf4){_0x391fb3['on']('apply',(_0x27adc8,_0x3a7760)=>{this['_replaceImage'](_0x96bf4,_0x3a7760['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x391fb3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x391fb3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x42c3aa,_0x1ea8f0,_0x1d979f){const _0x8f0df1=this['_editor'],{width:_0x3341a5,height:_0x291099}=j(_0x1ea8f0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x16ecdf,imageSources:_0x3be88b}=B(_0x1ea8f0,_0x3341a5);_0x8f0df1['model']['change'](_0x2ab0e1=>{if('$graveyard'!==_0x42c3aa['root']['rootName'])_0x2ab0e1['setSelection'](_0x42c3aa,'on'),_0x8f0df1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x42c3aa['getAttributes']()),'uploadcareImageId':_0x1d979f,'src':_0x16ecdf,'sources':_0x3be88b,'width':_0x3341a5,'height':_0x291099},_0x42c3aa);else{_0x8f0df1['execute']('insertImage',{'imageType':_0x42c3aa['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x42c3aa['getAttributes']()),'uploadcareImageId':_0x1d979f,'src':_0x16ecdf,'sources':_0x3be88b,'width':_0x3341a5,'height':_0x291099}});const _0x4a05f4=_0x42c3aa['getChildren']();_0x42c3aa=_0x8f0df1['model']['document']['selection']['getSelectedElement']();for(const _0x5e0137 of _0x4a05f4)_0x2ab0e1['append'](_0x2ab0e1['cloneElement'](_0x5e0137),_0x42c3aa);}_0x2ab0e1['setSelection'](_0x42c3aa,'on');});}async['_getImageAsFile'](_0x1ea202){const _0x11bc3a=_0x4dfba9['window'],_0x25d388=_0x4dfba9['document']['location']['href'],_0x2c8cbb=new _0x11bc3a['URL'](_0x1ea202['getAttribute']('src'),_0x25d388);if('data:'===_0x2c8cbb['protocol']){const _0x22542f=_0x2c8cbb['href']['split'](','),_0x4f0b94=_0x22542f[0x0]['match'](/:(.*?);/)[0x1],_0x224b12=_0x4f0b94['split']('/')[0x1],_0x52be53=_0x11bc3a['atob'](_0x22542f[_0x22542f['length']-0x1]);let _0x3dc2b7=_0x52be53['length'];const _0x1b584a=new _0x11bc3a['Uint8Array'](_0x3dc2b7);for(;_0x3dc2b7--;)_0x1b584a[_0x3dc2b7]=_0x52be53['charCodeAt'](_0x3dc2b7);return new _0x11bc3a['File']([_0x1b584a],'image.'+_0x224b12,{'type':_0x4f0b94});}const _0x4c07f0=_0x2c8cbb['href']['split']('/'),_0x182f67=_0x4c07f0[_0x4c07f0['length']-0x1],_0x31cab7=_0x182f67['split']('.')[0x1];return _0x11bc3a['fetch'](_0x2c8cbb['href'])['then'](_0x348043=>_0x348043['clone']()['blob']())['then'](_0x2e244c=>new _0x11bc3a['File']([_0x2e244c],_0x182f67,{'type':'image/'+_0x31cab7}));}},at=class extends _0xb0fef4{['imageEditController'];static get['requires'](){return[_0x42e81b];}['_isEditable'];constructor(_0x4e4ea8){super(_0x4e4ea8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3c64bd){const _0x574982=M(_0x3c64bd);return _0x10ff4b=>!(!_0x10ff4b||!_0x10ff4b['is']('element','imageBlock')&&!_0x10ff4b['is']('element','imageInline'))&&(!!_0x10ff4b['hasAttribute']('uploadcareImageId')||!!_0x10ff4b['hasAttribute']('src')&&_0x574982(_0x10ff4b['getAttribute']('src')));}(_0x4e4ea8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3d7ac5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3d7ac5);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xa0e21b=this['editor']['model']['document']['selection']['getSelectedElement']();_0xa0e21b&&(_0xa0e21b['is']('element','imageBlock')||_0xa0e21b['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x42e81b),_0xa0e21b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0xb0fef4{['refresh'](){const _0x25674c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x25674c&&(_0x25674c['is']('element','imageBlock')||_0x25674c['is']('element','imageInline')));}['execute'](_0xb16b95){const _0x1f429a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xcfeb6f=>{_0xcfeb6f['setAttributes'](_0xb16b95,_0x1f429a),_0xcfeb6f['removeAttribute']('srcset',_0x1f429a),_0xcfeb6f['removeAttribute']('sizes',_0x1f429a);});}},ct=class extends _0x44f47f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[Z,_0x1e4f0f,_0x6b9103,_0x3bd8f2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5245d1}=this;_0x5245d1['commands']['add']('uploadcareImageEdit',new at(_0x5245d1)),_0x5245d1['commands']['add']('uploadcareImageReplace',new ot(_0x5245d1));}},lt=class extends _0x44f47f{['_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 _0x178c34=this['editor'];_0x178c34['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3f8d52=>{const _0x282138=_0x178c34['commands']['get']('uploadcareImageEdit'),_0x23297d=new _0x6a92ff(_0x3f8d52),t=_0x3f8d52['t'];return _0x23297d['set']({'icon':_0x3f9e29,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x23297d['bind']('isEnabled')['to'](_0x282138),_0x23297d['bind']('isOn')['to'](_0x282138,'isActive'),this['listenTo'](_0x23297d,'execute',()=>{_0x178c34['execute']('uploadcareImageEdit'),_0x178c34['editing']['view']['focus']();}),_0x23297d;}),this['_initConfig']();}['_initConfig'](){const _0x231352=_0x2c838f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x231352),this['listenTo'](this['editor'],'destroy',()=>{_0x231352['remove']();});}},ut=class extends _0x44f47f{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':_0x42dd3b=>0x1!=_0x42dd3b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2737cd=>{const {af:{dictionary:_0x244c0b,getPluralForm:_0x1bc2eb}}={'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':_0x23c10b=>0x1!=_0x23c10b}};_0x2737cd['af']||={'dictionary':{},'getPluralForm':null},_0x2737cd['af']['dictionary']=Object['assign'](_0x2737cd['af']['dictionary'],_0x244c0b),_0x2737cd['af']['getPluralForm']=_0x1bc2eb;})(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':_0x293ffd=>0x0==_0x293ffd?0x0:0x1==_0x293ffd?0x1:0x2==_0x293ffd?0x2:_0x293ffd%0x64>=0x3&&_0x293ffd%0x64<=0xa?0x3:_0x293ffd%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x123af0=>{const {ar:{dictionary:_0x50a1ce,getPluralForm:_0x5ae458}}={'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':_0x147957=>0x0==_0x147957?0x0:0x1==_0x147957?0x1:0x2==_0x147957?0x2:_0x147957%0x64>=0x3&&_0x147957%0x64<=0xa?0x3:_0x147957%0x64>=0xb?0x4:0x5}};_0x123af0['ar']||={'dictionary':{},'getPluralForm':null},_0x123af0['ar']['dictionary']=Object['assign'](_0x123af0['ar']['dictionary'],_0x50a1ce),_0x123af0['ar']['getPluralForm']=_0x5ae458;})(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':_0x43ee86=>0x1!=_0x43ee86}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5d438f=>{const {ast:{dictionary:_0x1fb233,getPluralForm:_0x3af31f}}={'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':_0x4b46d2=>0x1!=_0x4b46d2}};_0x5d438f['ast']||={'dictionary':{},'getPluralForm':null},_0x5d438f['ast']['dictionary']=Object['assign'](_0x5d438f['ast']['dictionary'],_0x1fb233),_0x5d438f['ast']['getPluralForm']=_0x3af31f;})(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':_0x47a194=>0x1!=_0x47a194}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x44089d=>{const {az:{dictionary:_0x3fcfdc,getPluralForm:_0x1516cd}}={'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':_0x40d69e=>0x1!=_0x40d69e}};_0x44089d['az']||={'dictionary':{},'getPluralForm':null},_0x44089d['az']['dictionary']=Object['assign'](_0x44089d['az']['dictionary'],_0x3fcfdc),_0x44089d['az']['getPluralForm']=_0x1516cd;})(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':_0x51ec66=>_0x51ec66%0xa==0x1&&_0x51ec66%0x64!=0xb?0x0:_0x51ec66%0xa>=0x2&&_0x51ec66%0xa<=0x4&&(_0x51ec66%0x64<0xa||_0x51ec66%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3f43dc=>{const {be:{dictionary:_0x37f44f,getPluralForm:_0x1e9fcb}}={'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':_0x2cfe1f=>_0x2cfe1f%0xa==0x1&&_0x2cfe1f%0x64!=0xb?0x0:_0x2cfe1f%0xa>=0x2&&_0x2cfe1f%0xa<=0x4&&(_0x2cfe1f%0x64<0xa||_0x2cfe1f%0x64>=0x14)?0x1:0x2}};_0x3f43dc['be']||={'dictionary':{},'getPluralForm':null},_0x3f43dc['be']['dictionary']=Object['assign'](_0x3f43dc['be']['dictionary'],_0x37f44f),_0x3f43dc['be']['getPluralForm']=_0x1e9fcb;})(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':_0x5dc38e=>0x1!=_0x5dc38e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1d51c9=>{const {bg:{dictionary:_0x31c138,getPluralForm:_0x42b188}}={'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':_0x2cd327=>0x1!=_0x2cd327}};_0x1d51c9['bg']||={'dictionary':{},'getPluralForm':null},_0x1d51c9['bg']['dictionary']=Object['assign'](_0x1d51c9['bg']['dictionary'],_0x31c138),_0x1d51c9['bg']['getPluralForm']=_0x42b188;})(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':_0x55f4f1=>0x1!=_0x55f4f1}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x217721=>{const {bn:{dictionary:_0x5121db,getPluralForm:_0x12058e}}={'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':_0x34ab28=>0x1!=_0x34ab28}};_0x217721['bn']||={'dictionary':{},'getPluralForm':null},_0x217721['bn']['dictionary']=Object['assign'](_0x217721['bn']['dictionary'],_0x5121db),_0x217721['bn']['getPluralForm']=_0x12058e;})(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':_0x457140=>_0x457140%0xa==0x1&&_0x457140%0x64!=0xb?0x0:_0x457140%0xa>=0x2&&_0x457140%0xa<=0x4&&(_0x457140%0x64<0xa||_0x457140%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x18b7d4=>{const {bs:{dictionary:_0xf14fc6,getPluralForm:_0x138cde}}={'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':_0x81f6ee=>_0x81f6ee%0xa==0x1&&_0x81f6ee%0x64!=0xb?0x0:_0x81f6ee%0xa>=0x2&&_0x81f6ee%0xa<=0x4&&(_0x81f6ee%0x64<0xa||_0x81f6ee%0x64>=0x14)?0x1:0x2}};_0x18b7d4['bs']||={'dictionary':{},'getPluralForm':null},_0x18b7d4['bs']['dictionary']=Object['assign'](_0x18b7d4['bs']['dictionary'],_0xf14fc6),_0x18b7d4['bs']['getPluralForm']=_0x138cde;})(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':_0x3414c0=>0x1!=_0x3414c0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3490e2=>{const {ca:{dictionary:_0x46ee59,getPluralForm:_0x57b55c}}={'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':_0xbc67f9=>0x1!=_0xbc67f9}};_0x3490e2['ca']||={'dictionary':{},'getPluralForm':null},_0x3490e2['ca']['dictionary']=Object['assign'](_0x3490e2['ca']['dictionary'],_0x46ee59),_0x3490e2['ca']['getPluralForm']=_0x57b55c;})(window['CKEDITOR_TRANSLATIONS']||={});
|