@ckeditor/ckeditor5-uploadcare 48.3.0-alpha.5 → 48.3.0-alpha.7
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 _0x2f8f34,Plugin as _0x547d09}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x37d71a,IconError as _0x409d42,IconFacebook as _0xc2fe7b,IconGoogleDrive as _0x40cc79,IconGooglePhotos as _0x5b7b30,IconOneDrive as _0x15c3c4,IconUploadcareImageEdit as _0x4a75d4,IconUploadcareImageUpload as _0x5dd1ec,IconUploadcareLink as _0x67e535}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0xd389e9,Dialog as _0x5b1387,DialogViewPosition as _0x1412d6,FocusCycler as _0x475f63,IconView as _0x110cea,MenuBarMenuListItemButtonView as _0x1b7e4a,Notification as _0x77b613,SpinnerView as _0x266af9,View as _0x3d71ef}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x26be2f,FocusTracker as _0x494247,ObservableMixin as _0x3680fd,createElement as _0x47c4ec,getAncestors as _0x201ba8,global as _0x46bcf6,uid as _0x2dd95a}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x520ed0,ImageUploadEditing as _0x1bc3cd,ImageUploadProgress as _0x80f2d4,ImageUtils as _0x3a8b3c,PictureEditing as _0x168e6e}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x4748f3}from'@ckeditor/ckeditor5-upload';import{info as _0xd4d5ab,uploadFile as _0x463954}from'@uploadcare/upload-client';import*as _0x4127f0 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x368f61,_0x1cbfec,_0x5c42f4){const t=_0x368f61['t'],_0x5b91b5=_0x368f61['t'];switch(_0x1cbfec){case'local':return{'text':_0x5b91b5('Insert'===_0x5c42f4?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5b91b5('From\x20computer')};case'url':return{'text':'Insert'===_0x5c42f4?_0x5b91b5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5b91b5('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x5c42f4?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x5c42f4?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x5c42f4?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x5c42f4?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x5c42f4?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1cbfec;}}var V=class extends _0x547d09{['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 _0x504061=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d9508;for(const _0x6bfddd in _0x504061){const _0x4cf538=_0x6bfddd,_0x227a58=_0x504061[_0x4cf538];if('uploadcareLicenseKeyValid'==_0x227a58||'uploadcareLicenseKeyInvalid'==_0x227a58||'uploadcareLicenseKeyExpired'==_0x227a58||'uploadcareLicenseKeyDomainLimit'==_0x227a58||'uploadcareLicenseKeyNotAllowed'==_0x227a58||'uploadcareLicenseKeyEvaluationLimit'==_0x227a58||'uploadcareLicenseKeyUsageLimit'==_0x227a58){delete _0x504061[_0x4cf538],_0x1d9508=_0x227a58,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1d9508&&_0x504061['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1d9508&&_0x504061['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1d9508&&_0x504061['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1d9508&&_0x504061['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1d9508&&_0x504061['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1d9508&&_0x504061['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x17568e}=this,_0x10c501=_0x17568e['commands']['get']('uploadcare');if(!_0x10c501)return;const _0xbcc140=this['_normalizeConfigSourceList'](_0x17568e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x416057,_0x12787b)=>{const _0x10d643=this['_getIntegrationKey'](_0x12787b['type']);return _0x416057[_0x10d643]||(_0x416057[_0x10d643]=[]),_0x416057[_0x10d643]['push'](_0x12787b),_0x416057;},{});_0x17568e['plugins']['has']('ImageInsertUI')&&_0x17568e['commands']['get']('uploadcare')&&Object['entries'](_0xbcc140)['forEach'](([_0x4de88c,_0x48b875])=>{_0x17568e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4de88c,'observable':()=>_0x10c501,'buttonViewCreator':()=>this['_createToolbarButton'](_0x48b875),'formViewCreator':()=>this['_createDropdownButtons'](_0x48b875),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x48b875),'override':'assetManager'!==_0x4de88c});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x13639e){const {locale:_0x29876d}=this['editor'];return _0x13639e['map'](_0x5272ce=>{const _0x5d7485=T(_0x29876d,_0x5272ce,'Insert');switch(_0x5272ce){case'local':return{'icon':_0x5dd1ec,'type':'local',..._0x5d7485};case'url':return{'icon':_0x67e535,'type':'url',..._0x5d7485};case'dropbox':return{'icon':_0x37d71a,'type':'dropbox',..._0x5d7485};case'facebook':return{'icon':_0xc2fe7b,'type':'facebook',..._0x5d7485};case'gdrive':return{'icon':_0x40cc79,'type':'gdrive',..._0x5d7485};case'gphotos':return{'icon':_0x5b7b30,'type':'gphotos',..._0x5d7485};case'onedrive':return{'icon':_0x15c3c4,'type':'onedrive',..._0x5d7485};}});}['_getIntegrationKey'](_0xe98b0f){switch(_0xe98b0f){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x161031,_0xefa58d){const _0x4cf028=this['editor'],_0x4aa4e0=new _0x161031(_0x4cf028['locale']),_0x325048=_0x4cf028['commands']['get']('uploadcare');return _0x4aa4e0['bind']('isEnabled')['to'](_0x325048),_0x4aa4e0['on']('execute',()=>{_0x325048['execute'](_0xefa58d);}),_0x4aa4e0;}['_createToolbarButton'](_0x4610bc){const {locale:_0x5e0911}=this['editor'],_0x36ff55=this['editor']['plugins']['get']('ImageInsertUI'),_0x3282be=_0x4610bc[0x0],_0x4460fe=this['_createButton'](_0xd389e9,_0x3282be['type']);return _0x4460fe['icon']=_0x3282be['icon'],_0x4460fe['bind']('label')['to'](_0x36ff55,'isImageSelected',_0x310c18=>T(_0x5e0911,_0x3282be['type'],_0x310c18?'Replace':'Insert')['text']),_0x4460fe['tooltip']=!0x0,_0x4460fe;}['_createDropdownButtons'](_0x6200f7){const {locale:_0x344ea5}=this['editor'],_0x94fbc6=this['editor']['plugins']['get']('ImageInsertUI');return _0x6200f7['map'](_0x94c47e=>{const _0x8cc1ee=this['_createButton'](_0xd389e9,_0x94c47e['type']);return _0x8cc1ee['withText']=!0x0,_0x8cc1ee['icon']=_0x94c47e['icon'],_0x8cc1ee['bind']('label')['to'](_0x94fbc6,'isImageSelected',_0xd930bf=>T(_0x344ea5,_0x94c47e['type'],_0xd930bf?'Replace':'Insert')['text']),_0x8cc1ee;});}['_createMenuBarButtons'](_0x34950a){return _0x34950a['map'](_0x1bf386=>{const _0x1a8ae5=this['_createButton'](_0x1b7e4a,_0x1bf386['type']);return _0x1a8ae5['icon']=_0x1bf386['icon'],_0x1a8ae5['label']=_0x1bf386['shortText'],_0x1a8ae5;});}},F=class extends _0x3d71ef{['focusTracker'];['focusCycler'];constructor(_0x44b785){super(_0x44b785),this['focusTracker']=new _0x494247(),this['focusCycler']=new _0x475f63({'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(_0x175f28,_0xfab5e8){super(_0x175f28),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-'+_0xfab5e8}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x49b7e3,_0x208e53){const _0x5a223f=_0x49b7e3['replace'](/\/$/,'');return{'imageFallbackUrl':_0x49b7e3,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2b5631=>_0x2b5631<_0x208e53)['map'](_0x22a8e6=>_0x5a223f+'/-/resize/'+_0x22a8e6+'x/\x20'+_0x22a8e6+'w'),_0x49b7e3+'\x20'+_0x208e53+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x208e53+'px)\x20100vw,\x20'+_0x208e53+'px','type':'image/webp'}]};}function j(_0x8be814,_0x3aa479,_0x574348){const _0x52eb55=_0x8be814['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x52eb55?parseInt(_0x52eb55[0x1],0xa):_0x3aa479,'height':_0x52eb55?parseInt(_0x52eb55[0x2],0xa):_0x574348};}function q(_0x23f8e3,_0x2ed90f){const _0x2019a5=new(_0x26be2f())(),_0x458015=_0x23f8e3['plugins']['get']('ImageUtils'),_0x503e69=_0x23f8e3['editing']['mapper']['toViewElement'](_0x2ed90f),_0x33230b=_0x458015['findViewImgElement'](_0x503e69),_0x8f3f76=_0x23f8e3['editing']['view']['domConverter']['viewToDom'](_0x33230b),_0x40ec5f=_0x2ed90f['getAttribute']('width'),_0x36df59=_0x2ed90f['getAttribute']('height'),_0x1eb2fb='image-processing';_0x23f8e3['editing']['view']['change'](_0x21992f=>{_0x21992f['addClass'](_0x1eb2fb,_0x503e69),_0x21992f['setStyle']('aspect-ratio',_0x40ec5f+'/'+_0x36df59,_0x33230b);}),_0x2019a5['listenTo'](_0x8f3f76,'load',()=>{_0x2019a5['stopListening'](_0x8f3f76,'load'),_0x23f8e3['editing']['view']['change'](_0x452ebd=>{_0x452ebd['removeClass'](_0x1eb2fb,_0x503e69),_0x452ebd['removeStyle']('aspect-ratio',_0x33230b);});});}function M(_0x338c35){if(Array['isArray'](_0x338c35)){const _0x385c9a=_0x338c35['map'](M);return _0x5792c3=>_0x385c9a['some'](_0x2624fc=>_0x2624fc(_0x5792c3));}if('origin'==_0x338c35){const _0x173796=_0x46bcf6['window']['location']['origin'];return _0x171c28=>new URL(_0x171c28,_0x46bcf6['document']['baseURI'])['origin']==_0x173796;}return'function'==typeof _0x338c35?_0x338c35:_0x338c35 instanceof RegExp?_0x4e5ed8=>!(!_0x4e5ed8['match'](_0x338c35)&&!_0x4e5ed8['replace'](/^https?:\/\//,'')['match'](_0x338c35)):()=>!0x1;}function H(_0x47786c,_0x9acd54){return _0x201ba8(_0x47786c['target'])['includes'](_0x9acd54);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3680fd();var G=class extends W{['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x78fa3d,_0x2f6f9e,_0x369384){super(),this['_editor']=_0x78fa3d,this['_editing']=_0x2f6f9e,this['_dialog']=_0x78fa3d['plugins']['get'](_0x5b1387),this['_api']=_0x2f6f9e['ctxElement']['getAPI'](),this['_type']=_0x369384,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:_0x3ca793,model:_0x9c1594}=this['_editor'],_0x6db649=_0x9c1594['document']['selection']['getSelectedElement'](),_0x446784=_0x6db649&&(_0x6db649['is']('element','imageBlock')||_0x6db649['is']('element','imageInline'));this['_formView']=new $(_0x3ca793,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5dd1ec,'title':T(_0x3ca793,this['_type'],_0x446784?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1412d6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x7a4f32=>!H(_0x7a4f32,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x6a70e1}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4ce127=>{const _0x56d7e7=_0x6a70e1['length'];for(const _0x476c4f of _0x6a70e1){const _0x415ae9=_0x476c4f===_0x6a70e1[_0x56d7e7-0x1],{cdnUrl:_0x189597,fileInfo:_0x4f9c34}=_0x476c4f;if(!_0x189597||!_0x4f9c34)continue;const {width:_0x4177db,height:_0x1fea31}=_0x4f9c34['imageInfo'],_0x4f7bad=j(_0x189597,_0x4177db,_0x1fea31),_0x4172e0=B(_0x189597,_0x4f7bad['width']),_0x4ff3ef={'id':_0x4f9c34['uuid'],'type':'image','attributes':{'imageDimension':_0x4f7bad,..._0x4172e0}};this['_insertAsset'](_0x4ff3ef,_0x415ae9,_0x4ce127);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1344af=>{'idle'===_0x1344af['detail']['status']&&!_0x1344af['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}['_insertAsset'](_0x32685b,_0x193529,_0x5544ba){const _0x31076d=this['_editor']['model']['document']['selection'],_0x42e11c=_0x31076d['getSelectedElement'](),_0x5cbf7c=!(!_0x42e11c||!_0x42e11c['is']('element','imageInline'));_0x5544ba['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x32685b,_0x5cbf7c),_0x193529||_0x5544ba['setSelection'](_0x31076d['getLastPosition']());}['_insertImage'](_0x2b013a,_0x5d1ce1){const _0x4e9281=this['_editor'],{imageDimension:_0x27026a,imageFallbackUrl:_0x324cda,imageSources:_0x3ae4ef}=_0x2b013a['attributes'];_0x4e9281['execute']('insertImage',{'imageType':_0x5d1ce1?'imageInline':null,'source':{'uploadcareImageId':_0x2b013a['id'],'src':_0x324cda,'sources':_0x3ae4ef,..._0x27026a}});}},z=class extends _0x2f8f34{['_editing'];['_controller']=null;static get['requires'](){return[_0x5b1387,Z];}constructor(_0x3db734){super(_0x3db734),this['_editing']=_0x3db734['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5dd5f1){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x5dd5f1);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x596de4,..._0x4a4efe}){return _0x463954(_0x596de4,_0x4a4efe);}static['getInfo'](_0x17e9f7,_0x154a0c){return _0xd4d5ab(_0x17e9f7,_0x154a0c);}},J=class extends _0x547d09{static get['requires'](){return[_0x1bc3cd,_0x80f2d4,_0x4748f3,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x37cbeb=this['editor'];if(!_0x37cbeb['config']['get']('uploadcare'))return;_0x37cbeb['plugins']['get'](_0x4748f3)['createUploadAdapter']=_0x1dd021=>new X(_0x1dd021,_0x37cbeb),_0x37cbeb['plugins']['get'](_0x1bc3cd)['on']('uploadComplete',(_0x4df42c,{imageElement:_0xdc407,data:_0x35e081})=>{_0x37cbeb['model']['change'](_0x5d0781=>{_0x5d0781['setAttribute']('uploadcareImageId',_0x35e081['uploadcareImageId'],_0xdc407);});});}},X=class{['loader'];['editor'];['controller'];constructor(_0x46c12f,_0x32d38f){this['loader']=_0x46c12f,this['editor']=_0x32d38f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x578713=await this['loader']['file'];return Q['upload']({'file':_0x578713,'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':_0x50d1c3=>{_0x50d1c3&&_0x50d1c3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x50d1c3['value']);}})['then'](async _0x3fb372=>{const {imageFallbackUrl:_0x2713ec,imageSources:_0x38fc25}=B(_0x3fb372['cdnUrl'],_0x3fb372['imageInfo']['width']);return{'uploadcareImageId':_0x3fb372['uuid'],'default':_0x2713ec,'sources':_0x38fc25};})['catch'](()=>{const _0x48ad67=t('Cannot\x20upload\x20file:')+('\x20'+_0x578713['name']+'.');return Promise['reject'](_0x48ad67);});}['abort'](){this['controller']['abort']();}},Z=class extends _0x547d09{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x168e6e,J,_0x5b1387];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1a5d2e){super(_0x1a5d2e),this['ucContextId']=_0x2dd95a();}['init'](){const _0x46c00c=this['editor'];_0x46c00c['commands']['add']('uploadcare',new z(_0x46c00c));}['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 _0x115d2f=_0x46bcf6['document']['querySelector']('input[uploadcare-file-input]');_0x115d2f&&_0x115d2f['remove']();}),async function(_0x10d451){const _0x50929d='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0x161dc0=0x78e40,_0x3771a4=window['Date']['now'](),_0x1e7571=_0x10d451['editor'],_0x1078a2=new window['Promise'](_0x37d90c=>{_0x1e7571['once']('ready',_0x37d90c);}),_0x56d7ae={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x311a37=_0x1e7571['config']['get']('licenseKey');async function _0x12256d(){let _0x43eae6,_0x16a0a2=null,_0x4ae97d=null;try{return'GPL'==_0x311a37?'NotAllowed':(_0x43eae6=_0x5ca801(),_0x43eae6?(_0x43eae6['usageEndpoint']&&(_0x4ae97d=_0x188938(_0x43eae6['usageEndpoint'],_0x43eae6['jti'])),await _0x297932()?_0x4a2379()?_0x39291a()?'Expired':_0x4283c7()?('evaluation'==_0x43eae6['licenseType']&&(_0x16a0a2=_0x9b74d9('EvaluationLimit')),await _0x2e449e()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x39291a(){const _0x4eb270=['evaluation','trial']['includes'](_0x43eae6['licenseType'])?_0x3771a4/0x3e8:0xe10*_0x161dc0;return _0x43eae6['exp']<_0x4eb270;}function _0x4a2379(){const _0x2e5279=_0x43eae6['features'];return!!_0x2e5279&&(!!_0x2e5279['includes']('*')||!!_0x2e5279['includes']('UPLC'));}function _0x4283c7(){const _0x1ba3d6=_0x43eae6['licensedHosts'];if(!_0x1ba3d6||0x0==_0x1ba3d6['length'])return!0x0;const {hostname:_0x43c799}=new URL(window['location']['href']);if(_0x1ba3d6['includes'](_0x43c799))return!0x0;const _0x3e2481=_0x43c799['split']('.');return _0x1ba3d6['filter'](_0x3f1949=>_0x3f1949['includes']('*'))['map'](_0x33d3cb=>_0x33d3cb['split']('.'))['filter'](_0x45e278=>_0x45e278['length']<=_0x3e2481['length'])['map'](_0x2a5742=>Array(_0x3e2481['length']-_0x2a5742['length'])['fill']('*'===_0x2a5742[0x0]?'*':'')['concat'](_0x2a5742))['some'](_0x5822d2=>_0x3e2481['every']((_0x5d92c3,_0x543f99)=>_0x5822d2[_0x543f99]===_0x5d92c3||'*'===_0x5822d2[_0x543f99]));}function _0x2e449e(){return _0x16a0a2&&_0x4ae97d?new window['Promise']((_0x5912e9,_0x48aaf4)=>{_0x16a0a2['then'](_0x5912e9,_0x48aaf4),_0x4ae97d['then'](_0x2d59b3=>{'Valid'!=_0x2d59b3&&_0x5912e9(_0x2d59b3);},_0x48aaf4);}):_0x16a0a2||_0x4ae97d||'Valid';}}function _0x188938(_0x1ae7bc,_0x5eea3c){return new window['Promise'](_0xf47c6f=>{if(_0x16e34f())return _0xf47c6f('Valid');_0x58cb6a(),_0x1e7571['decorate']('_sendUsageRequest');let _0x237117=!0x1;const _0x312193=_0x2dd95a();function _0x2496b2(_0x44800f){return!!_0x44800f&&('object'==typeof _0x44800f||'function'==typeof _0x44800f)&&'function'==typeof _0x44800f['then']&&'function'==typeof _0x44800f['catch'];}function _0x525a38(_0x56dc6){_0x197cd4(_0x56dc6)['then'](_0x535328=>_0x535328&&'ok'==_0x535328['status']?_0x460997(_0x4a5509(_0x312193+_0x5eea3c))!=_0x535328['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x4279b6=>(_0x58c906(),_0x4279b6),()=>{const _0x5c232d=_0x3cb394();return null==_0x5c232d?(_0x58c906(),'Valid'):_0x3771a4-_0x5c232d>0x240c8400?'UsageLimit':'Valid';})['then'](_0xf47c6f)['catch'](()=>{_0xf47c6f('UsageLimit');});const _0x16e4f4=0x36ee80;function _0x58c906(){const _0x37b70a='llct-'+_0x460997(_0x4a5509(_0x1ae7bc)),_0xf200f4=_0x3c957c(_0x460997(window['Math']['ceil'](_0x3771a4/_0x16e4f4)));window['localStorage']['setItem'](_0x37b70a,_0xf200f4);}function _0x3cb394(){const _0x5cb7cd='llct-'+_0x460997(_0x4a5509(_0x1ae7bc)),_0x1215b9=window['localStorage']['getItem'](_0x5cb7cd);return _0x1215b9?window['parseInt'](_0x3c957c(_0x1215b9),0x10)*_0x16e4f4:null;}function _0x197cd4(_0x4f2bed){return new window['Promise']((_0x5b8c26,_0x207997)=>{_0x4f2bed['then'](_0x5b8c26,_0x207997),window['setTimeout'](_0x207997,0x1d4c0);});}}_0x1e7571['on']('_sendUsageRequest',(_0x471c4a,_0x48a974)=>{if(_0x48a974[0x0]!=_0x1ae7bc)return _0xf47c6f('UsageLimit');_0x48a974[0x1]={..._0x48a974[0x1],'requestId':_0x312193};},{'priority':'high'}),_0x1e7571['on']('_sendUsageRequest',_0x51b7a8=>{_0x2496b2(_0x51b7a8['return'])&&(_0x237117=!0x0,_0x525a38(_0x51b7a8['return']));},{'priority':'low'}),_0x1078a2['then'](()=>{_0x237117||_0xf47c6f('UsageLimit');});});function _0x16e34f(){return'auto'==_0x1e7571['editing']['view']['_overlayModeHint'];}function _0x58cb6a(){_0x1e7571['editing']['view']['_overlayModeHint']='auto';}}function _0x9b74d9(_0x41706e){const _0x202c76=[new window['Promise'](_0x397960=>setTimeout(_0x397960,0x93ecc)),_0x1078a2['then'](()=>new window['Promise'](_0x34b691=>{let _0x13801d=0x0;_0x1e7571['model']['on']('applyOperation',(_0x3b6350,_0x30f07f)=>{_0x30f07f[0x0]['isDocumentOperation']&&_0x13801d++,0x5e8==_0x13801d&&(_0x34b691(),_0x3b6350['off']());});}))];return window['Promise']['race'](_0x202c76)['then'](()=>_0x41706e);}async function _0x1343cc(){await _0x1078a2,_0x1e7571['model']['change']=_0x3ac704,_0x1e7571['model']['enqueueChange']=_0x3ac704,_0x1e7571['enableReadOnlyMode']('model');}function _0xe5186(_0x5bdc2a){const _0x1b171b=_0x139f9f();_0x1e7571[_0x1b171b]='uploadcareLicenseKey'+_0x5bdc2a,'Valid'!=_0x5bdc2a&&_0x1343cc();}function _0x139f9f(){const _0x414f48=window['String'](window['performance']['now']())['replace']('.','');let _0x6fb3d4='h';for(let _0x1f44d2=0x0;_0x1f44d2<_0x414f48['length'];_0x1f44d2+=0x2){let _0x5cbc32=window['parseInt'](_0x414f48['substring'](_0x1f44d2,_0x1f44d2+0x2));_0x5cbc32>=0x3e&&(_0x5cbc32-=0x3e),_0x6fb3d4+=_0x50929d[_0x5cbc32];}return _0x6fb3d4;}function _0x5ca801(){const _0x5b2828=_0x311a37['split']('.');if(0x3!=_0x5b2828['length'])return null;return _0x2e565d(_0x5b2828[0x1]);function _0x2e565d(_0x4ee5b7){const _0x26f5e3=_0x4782ce(_0x4ee5b7);return _0x26f5e3&&_0xf96c60()?_0x26f5e3:null;function _0xf96c60(){const _0x2bd080=_0x26f5e3['jti'],_0x7f72e9=window['parseInt'](_0x2bd080['substring'](_0x2bd080['length']-0x8),0x10),_0x224013={..._0x26f5e3,'jti':_0x2bd080['substring'](0x0,_0x2bd080['length']-0x8)};return delete _0x224013['vc'],_0x4a5509(_0x224013)==_0x7f72e9;}}}async function _0x297932(){let _0x1d6dd1=!0x0;try{const [_0x25a161,_0x2be173,_0x15c5bc]=_0x311a37['split']('.');return _0x498e70(_0x25a161),await _0x3f5cf2(_0x25a161,_0x2be173,_0x15c5bc),_0x1d6dd1;}catch{return!0x1;}function _0x498e70(_0x3722f0){const _0x1c4eb0=_0x4782ce(_0x3722f0);_0x1c4eb0&&'ES256'==_0x1c4eb0['alg']||(_0x1d6dd1=!0x1);}async function _0x3f5cf2(_0xc6bbb6,_0x14f096,_0x204b73){const _0x526619=window['Uint8Array']['from'](_0x3c878f(_0x204b73),_0x7851b0=>_0x7851b0['charCodeAt'](0x0)),_0x4ccb17=new window['TextEncoder']()['encode'](_0xc6bbb6+'.'+_0x14f096),_0xcbb97a=window['crypto']['subtle'];if(!_0xcbb97a)return;const _0x56c696=await _0xcbb97a['importKey']('jwk',_0x56d7ae,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xcbb97a['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x56c696,_0x526619,_0x4ccb17)||(_0x1d6dd1=!0x1);}}function _0x4782ce(_0x38550c){return _0x38550c['startsWith']('ey')?JSON['parse'](_0x3c878f(_0x38550c)):null;}function _0x3c878f(_0x28a3ba){return window['atob'](_0x28a3ba['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x4a5509(_0x28939f){let _0x391939=0x1505;function _0x18464b(_0x1e9636){for(let _0x365abe=0x0;_0x365abe<_0x1e9636['length'];_0x365abe++){const _0x2245c5=_0x1e9636['charCodeAt'](_0x365abe);_0x391939=(_0x391939<<0x5)+_0x391939+_0x2245c5,_0x391939&=_0x391939;}}function _0x172463(_0x41e7d8){Array['isArray'](_0x41e7d8)?_0x41e7d8['forEach'](_0x172463):_0x41e7d8&&'object'==typeof _0x41e7d8?Object['entries'](_0x41e7d8)['sort']()['forEach'](([_0x234fcf,_0x247057])=>{_0x18464b(_0x234fcf),_0x172463(_0x247057);}):_0x18464b(window['String'](_0x41e7d8));}return _0x172463(_0x28939f),_0x391939>>>0x0;}function _0x460997(_0x400e6e){return _0x400e6e['toString'](0x10)['padStart'](0x8,'0');}function _0x3c957c(_0x3e4753){return _0x3e4753['split']('')['reverse']()['join']('');}function _0x3ac704(){}_0xe5186(await _0x12256d());}(this);}['_initSchema'](){const _0x29e66d=this['editor']['model']['schema'];_0x29e66d['isRegistered']('imageBlock')&&_0x29e66d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x29e66d['isRegistered']('imageInline')&&_0x29e66d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x202492=this['editor'];_0x202492['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x202492['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x138ca1=>_0x138ca1['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x26ac82=_0x202492['commands']['get']('replaceImageSource');_0x26ac82&&this['listenTo'](_0x26ac82,'cleanupImage',(_0x4d12ef,[_0x1a59d7,_0x3774bd])=>{_0x1a59d7['removeAttribute']('uploadcareImageId',_0x3774bd);});}['_initConfig'](){const _0x5b8e4f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x174534=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x47c4ec(_0x46bcf6['document'],'uc-config',{..._0x5b8e4f,'pubkey':_0x174534,'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']=_0x23ca22=>{if('closeMax'==_0x23ca22)return'#uc-icon-arrow-down';},_0x46bcf6['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x47c4ec(_0x46bcf6['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x46bcf6['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4995dd=this['editor']['commands']['get']('insertImage');_0x4995dd&&this['listenTo'](_0x4995dd,'execute',()=>{const _0x54f11c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x54f11c&&_0x54f11c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x54f11c);});});const _0x4f13a0=this['editor']['commands']['get']('uploadcareImageReplace');_0x4f13a0&&this['listenTo'](_0x4f13a0,'execute',()=>{const _0x29971b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x29971b&&_0x29971b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x29971b);});});}},Y=class extends _0x547d09{static get['requires'](){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57b8dc){super(_0x57b8dc),_0x57b8dc['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x4127f0['defineComponents'](_0x4127f0),this['_defineLocale']();}['_defineLocale'](){const _0x2a87d8=this['editor']['config']['get']('uploadcare.locale'),_0x124c30=this['editor']['locale']['contentLanguage'];_0x2a87d8&&_0x4127f0['defineLocale'](_0x124c30,_0x2a87d8);}},tt=class extends _0x3d71ef{constructor(_0x2f20b6){super(_0x2f20b6);const t=_0x2f20b6['t'],_0x3ac588=this['bindTemplate'],_0x5b0c3d=new _0x266af9();_0x5b0c3d['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':[_0x5b0c3d,{'text':_0x3ac588['to']('imageUploadProgress',_0x18de48=>t('Loading\x20image...')+'\x20('+(_0x18de48||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 _0x3d71ef{constructor(_0x4e4f6f){super(_0x4e4f6f);const t=_0x4e4f6f['t'];this['set']('errorType',null);const _0x2105c5=new _0xd389e9(_0x4e4f6f);_0x2105c5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2105c5['withText']=!0x0,_0x2105c5['class']='ck-button-action',_0x2105c5['on']('execute',()=>{this['fire']('retry');}),_0x2105c5['bind']('isVisible')['to'](this,'errorType',_0x31ad2c=>'NotFound'!==_0x31ad2c);const _0x48c7d3=new _0x110cea();_0x48c7d3['content']=_0x409d42,_0x48c7d3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x322791=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':[_0x48c7d3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x322791['to']('errorType',_0x5c517a=>t('NotFound'!==_0x5c517a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2105c5]},{'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 _0x3d71ef{constructor(_0x13a5e3,_0x4171ab){super(_0x13a5e3);const _0x4270c2=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4171ab,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4270c2['to']('imageSrc')}});}},st=class extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x36c1ed,_0x78c70d,_0x18248a){super(_0x36c1ed),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x36c1ed),this['_errorView']=new et(_0x36c1ed),this['_editingView']=new it(_0x36c1ed,_0x18248a),this['_focusableView']=new _0x3d71ef(_0x36c1ed),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x78c70d),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'],_0x217c1c=>{this['_addUploadcareImageEditorListeners'](_0x217c1c);});}),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'](_0x20f6f0,_0x1ff328){const _0x3726b0='uc-cloud-image-editor',_0x2c75df=_0x20f6f0['querySelector'](_0x3726b0);if(_0x2c75df)return _0x1ff328(_0x2c75df);const _0x3488b2=new MutationObserver(_0x9f480e=>{const _0x237d59=_0x9f480e['filter'](_0x4112a4=>_0x4112a4['target']===_0x20f6f0&&_0x4112a4['addedNodes']['length']>0x0&&_0x4112a4['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3726b0);_0x237d59['length']&&(_0x3488b2['disconnect'](),_0x1ff328(_0x237d59[0x0]['addedNodes'][0x0]));});_0x3488b2['observe'](_0x20f6f0,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5de7b4){_0x5de7b4['addEventListener']('apply',_0x450d7e=>{this['fire']('apply',{'imageSrc':_0x450d7e['detail']['cdnUrl']});}),_0x5de7b4['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const rt=/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3680fd();var nt=class extends rt{['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x564247,_0x41c7f4,_0x4c4ff0){super(),this['_editor']=_0x564247,this['_dialog']=_0x41c7f4,this['_imageElement']=_0x4c4ff0,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 _0x2dd7ea=this['_imageElement'],_0x3b9162=_0x2dd7ea['getAttribute']('uploadcareImageId'),_0x3a576a=_0x2dd7ea['getAttribute']('src');if(_0x3b9162)await this['_loadImageInfo'](_0x3b9162,_0x3a576a);else{if(this['_imageCache']['has'](_0x3a576a)){const _0x4306c8=this['_imageCache']['get'](_0x3a576a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4306c8['url'],this['imageDimension']=_0x4306c8['dimension'],this['imageId']=_0x4306c8['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x51334e}=this['_editor'],t=_0x51334e['t'],_0x6ef9a5=new st(_0x51334e,this['imageStatus'],this['_attributes']);_0x6ef9a5['bind']('status')['to'](this,'imageStatus'),_0x6ef9a5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x6ef9a5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x6ef9a5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x6ef9a5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4a75d4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x6ef9a5,'position':_0x1412d6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x6ef9a5['focus']();},'onHide':()=>{_0x6ef9a5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x505f7b=>!H(_0x505f7b,_0x6ef9a5['element'])}});}['_loadImageInfo'](_0x9aa049,_0x3d7cd9){return Q['getInfo'](_0x9aa049,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3974ec=>{const {width:_0x3e9b1d,height:_0x14b5dd}=_0x3974ec['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d7cd9,this['imageDimension']={'width':_0x3e9b1d,'height':_0x14b5dd},this['imageId']=_0x9aa049;})['catch'](_0x53b0c4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x53b0c4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x114fe8,_0x3adc32){return this['_getImageAsFile'](_0x114fe8)['then'](_0x1d5c50=>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':_0x3adc32['signal'],'file':_0x1d5c50,'onProgress':_0x1c4e2c=>{_0x1c4e2c&&_0x1c4e2c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1c4e2c['value']));}}))['then'](_0x465c49=>{const {width:_0x4969c5,height:_0x1fd83d}=_0x465c49['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x465c49['cdnUrl'],this['imageDimension']={'width':_0x4969c5,'height':_0x1fd83d},this['imageId']=_0x465c49['uuid'],this['imageUploadProgress']=null;const _0x8fa642=_0x114fe8['getAttribute']('src');this['_imageCache']['set'](_0x8fa642,{'id':_0x465c49['uuid'],'url':_0x465c49['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xb8dca2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xb8dca2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x290a7b,_0x3e48e5){_0x290a7b['on']('apply',(_0x52210a,_0x57b849)=>{this['_replaceImage'](_0x3e48e5,_0x57b849['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x290a7b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x290a7b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x35f4a9,_0x1f8302,_0x11c321){const _0x37896a=this['_editor'],{width:_0x3c0f8e,height:_0x3526d9}=j(_0x1f8302,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x18bcc2,imageSources:_0x202d7c}=B(_0x1f8302,_0x3c0f8e);_0x37896a['model']['change'](_0xcc0f16=>{if('$graveyard'!==_0x35f4a9['root']['rootName'])_0xcc0f16['setSelection'](_0x35f4a9,'on'),_0x37896a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x35f4a9['getAttributes']()),'uploadcareImageId':_0x11c321,'src':_0x18bcc2,'sources':_0x202d7c,'width':_0x3c0f8e,'height':_0x3526d9},_0x35f4a9);else{_0x37896a['execute']('insertImage',{'imageType':_0x35f4a9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x35f4a9['getAttributes']()),'uploadcareImageId':_0x11c321,'src':_0x18bcc2,'sources':_0x202d7c,'width':_0x3c0f8e,'height':_0x3526d9}});const _0x158afa=_0x35f4a9['getChildren']();_0x35f4a9=_0x37896a['model']['document']['selection']['getSelectedElement']();for(const _0x15515f of _0x158afa)_0xcc0f16['append'](_0xcc0f16['cloneElement'](_0x15515f),_0x35f4a9);}_0xcc0f16['setSelection'](_0x35f4a9,'on');});}async['_getImageAsFile'](_0x2fecd6){const _0x2c9024=_0x46bcf6['window'],_0x18e0e=_0x46bcf6['document']['location']['href'],_0x328adc=new _0x2c9024['URL'](_0x2fecd6['getAttribute']('src'),_0x18e0e);if('data:'===_0x328adc['protocol']){const _0x519400=_0x328adc['href']['split'](','),_0x2dc343=_0x519400[0x0]['match'](/:(.*?);/)[0x1],_0x230023=_0x2dc343['split']('/')[0x1],_0x4d3a39=_0x2c9024['atob'](_0x519400[_0x519400['length']-0x1]);let _0x387d5b=_0x4d3a39['length'];const _0x155ed6=new _0x2c9024['Uint8Array'](_0x387d5b);for(;_0x387d5b--;)_0x155ed6[_0x387d5b]=_0x4d3a39['charCodeAt'](_0x387d5b);return new _0x2c9024['File']([_0x155ed6],'image.'+_0x230023,{'type':_0x2dc343});}const _0x26460d=_0x328adc['href']['split']('/'),_0x31677a=_0x26460d[_0x26460d['length']-0x1],_0x421e1d=_0x31677a['split']('.')[0x1];return _0x2c9024['fetch'](_0x328adc['href'])['then'](_0x1a08b0=>_0x1a08b0['clone']()['blob']())['then'](_0x9a24cd=>new _0x2c9024['File']([_0x9a24cd],_0x31677a,{'type':'image/'+_0x421e1d}));}},at=class extends _0x2f8f34{['imageEditController'];static get['requires'](){return[_0x5b1387];}['_isEditable'];constructor(_0x4616b3){super(_0x4616b3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x554b27){const _0x26cf67=M(_0x554b27);return _0x1cfe11=>!(!_0x1cfe11||!_0x1cfe11['is']('element','imageBlock')&&!_0x1cfe11['is']('element','imageInline'))&&(!!_0x1cfe11['hasAttribute']('uploadcareImageId')||!!_0x1cfe11['hasAttribute']('src')&&_0x26cf67(_0x1cfe11['getAttribute']('src')));}(_0x4616b3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4ee0f4=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4ee0f4);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x20bd62=this['editor']['model']['document']['selection']['getSelectedElement']();_0x20bd62&&(_0x20bd62['is']('element','imageBlock')||_0x20bd62['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x5b1387),_0x20bd62),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x2f8f34{['refresh'](){const _0x25a76d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x25a76d&&(_0x25a76d['is']('element','imageBlock')||_0x25a76d['is']('element','imageInline')));}['execute'](_0x3a0d80){const _0x3b15eb=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3861e3=>{_0x3861e3['setAttributes'](_0x3a0d80,_0x3b15eb),_0x3861e3['removeAttribute']('srcset',_0x3b15eb),_0x3861e3['removeAttribute']('sizes',_0x3b15eb);});}},ct=class extends _0x547d09{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[Z,_0x77b613,_0x3a8b3c,_0x520ed0];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2fe0a0}=this;_0x2fe0a0['commands']['add']('uploadcareImageEdit',new at(_0x2fe0a0)),_0x2fe0a0['commands']['add']('uploadcareImageReplace',new ot(_0x2fe0a0));}},lt=class extends _0x547d09{['_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 _0x23e37c=this['editor'];_0x23e37c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x326a76=>{const _0x1e1407=_0x23e37c['commands']['get']('uploadcareImageEdit'),_0x124fed=new _0xd389e9(_0x326a76),t=_0x326a76['t'];return _0x124fed['set']({'icon':_0x4a75d4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x124fed['bind']('isEnabled')['to'](_0x1e1407),_0x124fed['bind']('isOn')['to'](_0x1e1407,'isActive'),this['listenTo'](_0x124fed,'execute',()=>{_0x23e37c['execute']('uploadcareImageEdit'),_0x23e37c['editing']['view']['focus']();}),_0x124fed;}),this['_initConfig']();}['_initConfig'](){const _0x1f0af5=_0x47c4ec(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1f0af5),this['listenTo'](this['editor'],'destroy',()=>{_0x1f0af5['remove']();});}},ut=class extends _0x547d09{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 _0x5541f6,Plugin as _0x49b3db}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x2344ab,IconError as _0xc99f9b,IconFacebook as _0x29232c,IconGoogleDrive as _0x3c1cae,IconGooglePhotos as _0x4b98ee,IconOneDrive as _0x59d412,IconUploadcareImageEdit as _0x1d8acf,IconUploadcareImageUpload as _0xc759bc,IconUploadcareLink as _0x5ac08d}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x565f07,Dialog as _0x254a69,DialogViewPosition as _0x1f4321,FocusCycler as _0x227713,IconView as _0x382f95,MenuBarMenuListItemButtonView as _0x3e6ed9,Notification as _0x451ea2,SpinnerView as _0x487ade,View as _0x132cff}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x89126c,FocusTracker as _0x43314d,ObservableMixin as _0x3f2e4c,createElement as _0x54ff94,getAncestors as _0x526d7f,global as _0x25f752,uid as _0x39db11}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x25a1ae,ImageUploadEditing as _0x5dd978,ImageUploadProgress as _0xd46efe,ImageUtils as _0x58cbff,PictureEditing as _0x34796c}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x225ef2}from'@ckeditor/ckeditor5-upload';import{info as _0x12e4ec,uploadFile as _0x531976}from'@uploadcare/upload-client';import*as _0x445ba1 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x2b9374,_0x31f3f5,_0x29252f){const t=_0x2b9374['t'],_0x4ca31f=_0x2b9374['t'];switch(_0x31f3f5){case'local':return{'text':_0x4ca31f('Insert'===_0x29252f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4ca31f('From\x20computer')};case'url':return{'text':'Insert'===_0x29252f?_0x4ca31f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4ca31f('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x29252f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x29252f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x29252f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x29252f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x29252f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x31f3f5;}}var V=class extends _0x49b3db{['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 _0x2cc9a6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3697b2;for(const _0xc63b41 in _0x2cc9a6){const _0x2a1803=_0xc63b41,_0x1db0b1=_0x2cc9a6[_0x2a1803];if('uploadcareLicenseKeyValid'==_0x1db0b1||'uploadcareLicenseKeyInvalid'==_0x1db0b1||'uploadcareLicenseKeyExpired'==_0x1db0b1||'uploadcareLicenseKeyDomainLimit'==_0x1db0b1||'uploadcareLicenseKeyNotAllowed'==_0x1db0b1||'uploadcareLicenseKeyEvaluationLimit'==_0x1db0b1||'uploadcareLicenseKeyUsageLimit'==_0x1db0b1){delete _0x2cc9a6[_0x2a1803],_0x3697b2=_0x1db0b1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3697b2&&_0x2cc9a6['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3697b2&&_0x2cc9a6['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3697b2&&_0x2cc9a6['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3697b2&&_0x2cc9a6['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3697b2&&_0x2cc9a6['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3697b2&&_0x2cc9a6['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1937b}=this,_0x31aa65=_0x1937b['commands']['get']('uploadcare');if(!_0x31aa65)return;const _0x207e02=this['_normalizeConfigSourceList'](_0x1937b['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x38e17d,_0x1a44d9)=>{const _0x1a3ee5=this['_getIntegrationKey'](_0x1a44d9['type']);return _0x38e17d[_0x1a3ee5]||(_0x38e17d[_0x1a3ee5]=[]),_0x38e17d[_0x1a3ee5]['push'](_0x1a44d9),_0x38e17d;},{});_0x1937b['plugins']['has']('ImageInsertUI')&&_0x1937b['commands']['get']('uploadcare')&&Object['entries'](_0x207e02)['forEach'](([_0x2a1bad,_0xcb25df])=>{_0x1937b['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2a1bad,'observable':()=>_0x31aa65,'buttonViewCreator':()=>this['_createToolbarButton'](_0xcb25df),'formViewCreator':()=>this['_createDropdownButtons'](_0xcb25df),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xcb25df),'override':'assetManager'!==_0x2a1bad});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4b1bb8){const {locale:_0x4468fb}=this['editor'];return _0x4b1bb8['map'](_0x2c3ca8=>{const _0x59840c=T(_0x4468fb,_0x2c3ca8,'Insert');switch(_0x2c3ca8){case'local':return{'icon':_0xc759bc,'type':'local',..._0x59840c};case'url':return{'icon':_0x5ac08d,'type':'url',..._0x59840c};case'dropbox':return{'icon':_0x2344ab,'type':'dropbox',..._0x59840c};case'facebook':return{'icon':_0x29232c,'type':'facebook',..._0x59840c};case'gdrive':return{'icon':_0x3c1cae,'type':'gdrive',..._0x59840c};case'gphotos':return{'icon':_0x4b98ee,'type':'gphotos',..._0x59840c};case'onedrive':return{'icon':_0x59d412,'type':'onedrive',..._0x59840c};}});}['_getIntegrationKey'](_0x3fa704){switch(_0x3fa704){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x3c1d0f,_0x396e04){const _0x227d3b=this['editor'],_0x4bd584=new _0x3c1d0f(_0x227d3b['locale']),_0x310eb9=_0x227d3b['commands']['get']('uploadcare');return _0x4bd584['bind']('isEnabled')['to'](_0x310eb9),_0x4bd584['on']('execute',()=>{_0x310eb9['execute'](_0x396e04);}),_0x4bd584;}['_createToolbarButton'](_0x55528b){const {locale:_0x8f5b79}=this['editor'],_0x562370=this['editor']['plugins']['get']('ImageInsertUI'),_0x4eb332=_0x55528b[0x0],_0x4603d7=this['_createButton'](_0x565f07,_0x4eb332['type']);return _0x4603d7['icon']=_0x4eb332['icon'],_0x4603d7['bind']('label')['to'](_0x562370,'isImageSelected',_0x19282b=>T(_0x8f5b79,_0x4eb332['type'],_0x19282b?'Replace':'Insert')['text']),_0x4603d7['tooltip']=!0x0,_0x4603d7;}['_createDropdownButtons'](_0x57bd6f){const {locale:_0x357e55}=this['editor'],_0x4c0cb2=this['editor']['plugins']['get']('ImageInsertUI');return _0x57bd6f['map'](_0x17aaa3=>{const _0x41f184=this['_createButton'](_0x565f07,_0x17aaa3['type']);return _0x41f184['withText']=!0x0,_0x41f184['icon']=_0x17aaa3['icon'],_0x41f184['bind']('label')['to'](_0x4c0cb2,'isImageSelected',_0x3477bd=>T(_0x357e55,_0x17aaa3['type'],_0x3477bd?'Replace':'Insert')['text']),_0x41f184;});}['_createMenuBarButtons'](_0x4ae765){return _0x4ae765['map'](_0x24e228=>{const _0x58e3f2=this['_createButton'](_0x3e6ed9,_0x24e228['type']);return _0x58e3f2['icon']=_0x24e228['icon'],_0x58e3f2['label']=_0x24e228['shortText'],_0x58e3f2;});}},F=class extends _0x132cff{['focusTracker'];['focusCycler'];constructor(_0x6c1879){super(_0x6c1879),this['focusTracker']=new _0x43314d(),this['focusCycler']=new _0x227713({'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(_0x39d824,_0x208f9a){super(_0x39d824),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-'+_0x208f9a}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x3df3c3,_0x190965){const _0x4b9f93=_0x3df3c3['replace'](/\/$/,'');return{'imageFallbackUrl':_0x3df3c3,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3a1b99=>_0x3a1b99<_0x190965)['map'](_0x543775=>_0x4b9f93+'/-/resize/'+_0x543775+'x/\x20'+_0x543775+'w'),_0x3df3c3+'\x20'+_0x190965+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x190965+'px)\x20100vw,\x20'+_0x190965+'px','type':'image/webp'}]};}function j(_0x29c94b,_0x5ab17a,_0x2004df){const _0x32679d=_0x29c94b['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x32679d?parseInt(_0x32679d[0x1],0xa):_0x5ab17a,'height':_0x32679d?parseInt(_0x32679d[0x2],0xa):_0x2004df};}function q(_0x56591b,_0x7d7774){const _0x151782=new(_0x89126c())(),_0x11b7a7=_0x56591b['plugins']['get']('ImageUtils'),_0x10b639=_0x56591b['editing']['mapper']['toViewElement'](_0x7d7774),_0x16f46d=_0x11b7a7['findViewImgElement'](_0x10b639),_0x6c2f21=_0x56591b['editing']['view']['domConverter']['viewToDom'](_0x16f46d),_0x4ae447=_0x7d7774['getAttribute']('width'),_0x1f48e7=_0x7d7774['getAttribute']('height'),_0x4e3e0c='image-processing';_0x56591b['editing']['view']['change'](_0x4e0869=>{_0x4e0869['addClass'](_0x4e3e0c,_0x10b639),_0x4e0869['setStyle']('aspect-ratio',_0x4ae447+'/'+_0x1f48e7,_0x16f46d);}),_0x151782['listenTo'](_0x6c2f21,'load',()=>{_0x151782['stopListening'](_0x6c2f21,'load'),_0x56591b['editing']['view']['change'](_0x3cdba6=>{_0x3cdba6['removeClass'](_0x4e3e0c,_0x10b639),_0x3cdba6['removeStyle']('aspect-ratio',_0x16f46d);});});}function M(_0x696779){if(Array['isArray'](_0x696779)){const _0x4e3857=_0x696779['map'](M);return _0x3206bb=>_0x4e3857['some'](_0x576222=>_0x576222(_0x3206bb));}if('origin'==_0x696779){const _0x4b1c11=_0x25f752['window']['location']['origin'];return _0x1812aa=>new URL(_0x1812aa,_0x25f752['document']['baseURI'])['origin']==_0x4b1c11;}return'function'==typeof _0x696779?_0x696779:_0x696779 instanceof RegExp?_0x5c977c=>!(!_0x5c977c['match'](_0x696779)&&!_0x5c977c['replace'](/^https?:\/\//,'')['match'](_0x696779)):()=>!0x1;}function H(_0x52cc8a,_0x1bb85c){return _0x526d7f(_0x52cc8a['target'])['includes'](_0x1bb85c);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3f2e4c();var G=class extends W{['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x102acd,_0xa4b26c,_0x85e533){super(),this['_editor']=_0x102acd,this['_editing']=_0xa4b26c,this['_dialog']=_0x102acd['plugins']['get'](_0x254a69),this['_api']=_0xa4b26c['ctxElement']['getAPI'](),this['_type']=_0x85e533,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:_0x4f4b59,model:_0x5f2b67}=this['_editor'],_0xa2b920=_0x5f2b67['document']['selection']['getSelectedElement'](),_0x6f2a43=_0xa2b920&&(_0xa2b920['is']('element','imageBlock')||_0xa2b920['is']('element','imageInline'));this['_formView']=new $(_0x4f4b59,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xc759bc,'title':T(_0x4f4b59,this['_type'],_0x6f2a43?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1f4321['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5cc93f=>!H(_0x5cc93f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xcb485f}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3e7375=>{const _0x2190e1=_0xcb485f['length'];for(const _0x212ef7 of _0xcb485f){const _0xfa58b2=_0x212ef7===_0xcb485f[_0x2190e1-0x1],{cdnUrl:_0x4f43ab,fileInfo:_0x3252c4}=_0x212ef7;if(!_0x4f43ab||!_0x3252c4)continue;const {width:_0x2f3508,height:_0x358a48}=_0x3252c4['imageInfo'],_0x5ae565=j(_0x4f43ab,_0x2f3508,_0x358a48),_0x35e2a9=B(_0x4f43ab,_0x5ae565['width']),_0xb294c7={'id':_0x3252c4['uuid'],'type':'image','attributes':{'imageDimension':_0x5ae565,..._0x35e2a9}};this['_insertAsset'](_0xb294c7,_0xfa58b2,_0x3e7375);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x10b6f9=>{'idle'===_0x10b6f9['detail']['status']&&!_0x10b6f9['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}['_insertAsset'](_0x2e89d7,_0x402da9,_0x3691df){const _0x48165c=this['_editor']['model']['document']['selection'],_0x2446ae=_0x48165c['getSelectedElement'](),_0x4720da=!(!_0x2446ae||!_0x2446ae['is']('element','imageInline'));_0x3691df['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2e89d7,_0x4720da),_0x402da9||_0x3691df['setSelection'](_0x48165c['getLastPosition']());}['_insertImage'](_0x8cfde2,_0x5e2fe9){const _0x2ef37b=this['_editor'],{imageDimension:_0x5ec0f2,imageFallbackUrl:_0x3db04d,imageSources:_0xad8fb5}=_0x8cfde2['attributes'];_0x2ef37b['execute']('insertImage',{'imageType':_0x5e2fe9?'imageInline':null,'source':{'uploadcareImageId':_0x8cfde2['id'],'src':_0x3db04d,'sources':_0xad8fb5,..._0x5ec0f2}});}},z=class extends _0x5541f6{['_editing'];['_controller']=null;static get['requires'](){return[_0x254a69,Z];}constructor(_0x38dc56){super(_0x38dc56),this['_editing']=_0x38dc56['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x406a31){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x406a31);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x249cd8,..._0x466da3}){return _0x531976(_0x249cd8,_0x466da3);}static['getInfo'](_0x2dcad8,_0x2a8eaa){return _0x12e4ec(_0x2dcad8,_0x2a8eaa);}},J=class extends _0x49b3db{static get['requires'](){return[_0x5dd978,_0xd46efe,_0x225ef2,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x24ba20=this['editor'];if(!_0x24ba20['config']['get']('uploadcare'))return;_0x24ba20['plugins']['get'](_0x225ef2)['createUploadAdapter']=_0x5b874f=>new X(_0x5b874f,_0x24ba20),_0x24ba20['plugins']['get'](_0x5dd978)['on']('uploadComplete',(_0x22bb04,{imageElement:_0x2d0dfd,data:_0x1298c8})=>{_0x24ba20['model']['change'](_0x244e3b=>{_0x244e3b['setAttribute']('uploadcareImageId',_0x1298c8['uploadcareImageId'],_0x2d0dfd);});});}},X=class{['loader'];['editor'];['controller'];constructor(_0x5e8941,_0x1df73e){this['loader']=_0x5e8941,this['editor']=_0x1df73e,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5f0dde=await this['loader']['file'];return Q['upload']({'file':_0x5f0dde,'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':_0x1c2a05=>{_0x1c2a05&&_0x1c2a05['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1c2a05['value']);}})['then'](async _0x13dbac=>{const {imageFallbackUrl:_0x23f440,imageSources:_0x6c10ac}=B(_0x13dbac['cdnUrl'],_0x13dbac['imageInfo']['width']);return{'uploadcareImageId':_0x13dbac['uuid'],'default':_0x23f440,'sources':_0x6c10ac};})['catch'](()=>{const _0x405ee4=t('Cannot\x20upload\x20file:')+('\x20'+_0x5f0dde['name']+'.');return Promise['reject'](_0x405ee4);});}['abort'](){this['controller']['abort']();}},Z=class extends _0x49b3db{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x34796c,J,_0x254a69];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x38699e){super(_0x38699e),this['ucContextId']=_0x39db11();}['init'](){const _0x1b6710=this['editor'];_0x1b6710['commands']['add']('uploadcare',new z(_0x1b6710));}['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 _0x28551e=_0x25f752['document']['querySelector']('input[uploadcare-file-input]');_0x28551e&&_0x28551e['remove']();}),async function(_0x295587){const _0x3c6f20='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0x14c6bd=0x78e70,_0x8738=window['Date']['now'](),_0x4babe5=_0x295587['editor'],_0x30d13b=new window['Promise'](_0x4649e5=>{_0x4babe5['once']('ready',_0x4649e5);}),_0x16dbe0={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x400f2c=_0x4babe5['config']['get']('licenseKey');async function _0x50fd8c(){let _0xda69a1,_0x554469=null,_0x270b85=null;try{return'GPL'==_0x400f2c?'NotAllowed':(_0xda69a1=_0x97a35b(),_0xda69a1?(_0xda69a1['usageEndpoint']&&(_0x270b85=_0x1a0726(_0xda69a1['usageEndpoint'],_0xda69a1['jti'])),await _0x55869d()?_0x10c578()?_0x81be5b()?'Expired':_0x35f0c1()?('evaluation'==_0xda69a1['licenseType']&&(_0x554469=_0x5b6d9a('EvaluationLimit')),await _0x344669()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x81be5b(){const _0x231136=['evaluation','trial']['includes'](_0xda69a1['licenseType'])?_0x8738/0x3e8:0xe10*_0x14c6bd;return _0xda69a1['exp']<_0x231136;}function _0x10c578(){const _0x44962b=_0xda69a1['features'];return!!_0x44962b&&(!!_0x44962b['includes']('*')||!!_0x44962b['includes']('UPLC'));}function _0x35f0c1(){const _0x415c30=_0xda69a1['licensedHosts'];if(!_0x415c30||0x0==_0x415c30['length'])return!0x0;const {hostname:_0x5da70a}=new URL(window['location']['href']);if(_0x415c30['includes'](_0x5da70a))return!0x0;const _0x3f2def=_0x5da70a['split']('.');return _0x415c30['filter'](_0xe4a898=>_0xe4a898['includes']('*'))['map'](_0x1602f5=>_0x1602f5['split']('.'))['filter'](_0x13d8ea=>_0x13d8ea['length']<=_0x3f2def['length'])['map'](_0x439229=>Array(_0x3f2def['length']-_0x439229['length'])['fill']('*'===_0x439229[0x0]?'*':'')['concat'](_0x439229))['some'](_0x414fde=>_0x3f2def['every']((_0x44241d,_0x11a122)=>_0x414fde[_0x11a122]===_0x44241d||'*'===_0x414fde[_0x11a122]));}function _0x344669(){return _0x554469&&_0x270b85?new window['Promise']((_0x246d70,_0x7eadef)=>{_0x554469['then'](_0x246d70,_0x7eadef),_0x270b85['then'](_0x553590=>{'Valid'!=_0x553590&&_0x246d70(_0x553590);},_0x7eadef);}):_0x554469||_0x270b85||'Valid';}}function _0x1a0726(_0x2d76fe,_0x3264dd){return new window['Promise'](_0x473e22=>{if(_0x19ee60())return _0x473e22('Valid');_0x53f8d0(),_0x4babe5['decorate']('_sendUsageRequest');let _0x15b8b6=!0x1;const _0x1882fc=_0x39db11();function _0x1be36f(_0x30fce9){return!!_0x30fce9&&('object'==typeof _0x30fce9||'function'==typeof _0x30fce9)&&'function'==typeof _0x30fce9['then']&&'function'==typeof _0x30fce9['catch'];}function _0x30f29d(_0x3d6a6b){_0x27c1f8(_0x3d6a6b)['then'](_0xe1cede=>_0xe1cede&&'ok'==_0xe1cede['status']?_0x10157b(_0x2648dd(_0x1882fc+_0x3264dd))!=_0xe1cede['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x5e15d3=>(_0x132a19(),_0x5e15d3),()=>{const _0x25b811=_0x57b882();return null==_0x25b811?(_0x132a19(),'Valid'):_0x8738-_0x25b811>0x240c8400?'UsageLimit':'Valid';})['then'](_0x473e22)['catch'](()=>{_0x473e22('UsageLimit');});const _0x2f2766=0x36ee80;function _0x132a19(){const _0x280141='llct-'+_0x10157b(_0x2648dd(_0x2d76fe)),_0x4ca163=_0xf5425f(_0x10157b(window['Math']['ceil'](_0x8738/_0x2f2766)));window['localStorage']['setItem'](_0x280141,_0x4ca163);}function _0x57b882(){const _0x21e884='llct-'+_0x10157b(_0x2648dd(_0x2d76fe)),_0x4cc9ce=window['localStorage']['getItem'](_0x21e884);return _0x4cc9ce?window['parseInt'](_0xf5425f(_0x4cc9ce),0x10)*_0x2f2766:null;}function _0x27c1f8(_0x59019f){return new window['Promise']((_0x42c534,_0x526e8b)=>{_0x59019f['then'](_0x42c534,_0x526e8b),window['setTimeout'](_0x526e8b,0x1d4c0);});}}_0x4babe5['on']('_sendUsageRequest',(_0x292a5d,_0x3e2e22)=>{if(_0x3e2e22[0x0]!=_0x2d76fe)return _0x473e22('UsageLimit');_0x3e2e22[0x1]={..._0x3e2e22[0x1],'requestId':_0x1882fc};},{'priority':'high'}),_0x4babe5['on']('_sendUsageRequest',_0x3a5f98=>{_0x1be36f(_0x3a5f98['return'])&&(_0x15b8b6=!0x0,_0x30f29d(_0x3a5f98['return']));},{'priority':'low'}),_0x30d13b['then'](()=>{_0x15b8b6||_0x473e22('UsageLimit');});});function _0x19ee60(){return'auto'==_0x4babe5['editing']['view']['_overlayModeHint'];}function _0x53f8d0(){_0x4babe5['editing']['view']['_overlayModeHint']='auto';}}function _0x5b6d9a(_0x452f2f){const _0x4eced1=[new window['Promise'](_0x519e79=>setTimeout(_0x519e79,0x93ecc)),_0x30d13b['then'](()=>new window['Promise'](_0x5448c6=>{let _0x5aea45=0x0;_0x4babe5['model']['on']('applyOperation',(_0xe1518,_0x149cc9)=>{_0x149cc9[0x0]['isDocumentOperation']&&_0x5aea45++,0x5e8==_0x5aea45&&(_0x5448c6(),_0xe1518['off']());});}))];return window['Promise']['race'](_0x4eced1)['then'](()=>_0x452f2f);}async function _0x155d53(){await _0x30d13b,_0x4babe5['model']['change']=_0x245b18,_0x4babe5['model']['enqueueChange']=_0x245b18,_0x4babe5['enableReadOnlyMode']('model');}function _0x5b192a(_0x3b66b1){const _0x4d2932=_0x3ba309();_0x4babe5[_0x4d2932]='uploadcareLicenseKey'+_0x3b66b1,'Valid'!=_0x3b66b1&&_0x155d53();}function _0x3ba309(){const _0x1a7a2f=window['String'](window['performance']['now']())['replace']('.','');let _0x4d3ab2='h';for(let _0x1f690e=0x0;_0x1f690e<_0x1a7a2f['length'];_0x1f690e+=0x2){let _0x418f96=window['parseInt'](_0x1a7a2f['substring'](_0x1f690e,_0x1f690e+0x2));_0x418f96>=0x3e&&(_0x418f96-=0x3e),_0x4d3ab2+=_0x3c6f20[_0x418f96];}return _0x4d3ab2;}function _0x97a35b(){const _0x1fa072=_0x400f2c['split']('.');if(0x3!=_0x1fa072['length'])return null;return _0x36aba1(_0x1fa072[0x1]);function _0x36aba1(_0x4243ef){const _0x331818=_0x179730(_0x4243ef);return _0x331818&&_0x1f3f2c()?_0x331818:null;function _0x1f3f2c(){const _0x24f12f=_0x331818['jti'],_0x5e4f14=window['parseInt'](_0x24f12f['substring'](_0x24f12f['length']-0x8),0x10),_0x2f226d={..._0x331818,'jti':_0x24f12f['substring'](0x0,_0x24f12f['length']-0x8)};return delete _0x2f226d['vc'],_0x2648dd(_0x2f226d)==_0x5e4f14;}}}async function _0x55869d(){let _0x284578=!0x0;try{const [_0x5221b2,_0x4f5116,_0x2c55b0]=_0x400f2c['split']('.');return _0x8c616d(_0x5221b2),await _0x353252(_0x5221b2,_0x4f5116,_0x2c55b0),_0x284578;}catch{return!0x1;}function _0x8c616d(_0x2ada83){const _0x2c08fb=_0x179730(_0x2ada83);_0x2c08fb&&'ES256'==_0x2c08fb['alg']||(_0x284578=!0x1);}async function _0x353252(_0x3b8bc1,_0x27fcdf,_0x1c0b27){const _0x106908=window['Uint8Array']['from'](_0x5f1136(_0x1c0b27),_0xbe8900=>_0xbe8900['charCodeAt'](0x0)),_0x14a791=new window['TextEncoder']()['encode'](_0x3b8bc1+'.'+_0x27fcdf),_0x3007a6=window['crypto']['subtle'];if(!_0x3007a6)return;const _0x3ebac9=await _0x3007a6['importKey']('jwk',_0x16dbe0,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3007a6['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3ebac9,_0x106908,_0x14a791)||(_0x284578=!0x1);}}function _0x179730(_0x5a683a){return _0x5a683a['startsWith']('ey')?JSON['parse'](_0x5f1136(_0x5a683a)):null;}function _0x5f1136(_0x3f1bc8){return window['atob'](_0x3f1bc8['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x2648dd(_0x120141){let _0x19294d=0x1505;function _0x36c5e9(_0x317ee9){for(let _0x14f9ac=0x0;_0x14f9ac<_0x317ee9['length'];_0x14f9ac++){const _0x576c8c=_0x317ee9['charCodeAt'](_0x14f9ac);_0x19294d=(_0x19294d<<0x5)+_0x19294d+_0x576c8c,_0x19294d&=_0x19294d;}}function _0x49c67d(_0x54c9d2){Array['isArray'](_0x54c9d2)?_0x54c9d2['forEach'](_0x49c67d):_0x54c9d2&&'object'==typeof _0x54c9d2?Object['entries'](_0x54c9d2)['sort']()['forEach'](([_0x5cf869,_0x2e0db3])=>{_0x36c5e9(_0x5cf869),_0x49c67d(_0x2e0db3);}):_0x36c5e9(window['String'](_0x54c9d2));}return _0x49c67d(_0x120141),_0x19294d>>>0x0;}function _0x10157b(_0x5a4c10){return _0x5a4c10['toString'](0x10)['padStart'](0x8,'0');}function _0xf5425f(_0x1de8f4){return _0x1de8f4['split']('')['reverse']()['join']('');}function _0x245b18(){}_0x5b192a(await _0x50fd8c());}(this);}['_initSchema'](){const _0xd57e13=this['editor']['model']['schema'];_0xd57e13['isRegistered']('imageBlock')&&_0xd57e13['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xd57e13['isRegistered']('imageInline')&&_0xd57e13['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x504e85=this['editor'];_0x504e85['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x504e85['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2ae9d9=>_0x2ae9d9['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x239985=_0x504e85['commands']['get']('replaceImageSource');_0x239985&&this['listenTo'](_0x239985,'cleanupImage',(_0x2d831d,[_0x33162c,_0x55e43b])=>{_0x33162c['removeAttribute']('uploadcareImageId',_0x55e43b);});}['_initConfig'](){const _0x13c606=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2e0207=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x54ff94(_0x25f752['document'],'uc-config',{..._0x13c606,'pubkey':_0x2e0207,'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']=_0x961116=>{if('closeMax'==_0x961116)return'#uc-icon-arrow-down';},_0x25f752['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x54ff94(_0x25f752['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x25f752['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1e2f34=this['editor']['commands']['get']('insertImage');_0x1e2f34&&this['listenTo'](_0x1e2f34,'execute',()=>{const _0x2245db=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2245db&&_0x2245db['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x2245db);});});const _0x5df5e0=this['editor']['commands']['get']('uploadcareImageReplace');_0x5df5e0&&this['listenTo'](_0x5df5e0,'execute',()=>{const _0x5e7f23=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5e7f23&&_0x5e7f23['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x5e7f23);});});}},Y=class extends _0x49b3db{static get['requires'](){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xef5291){super(_0xef5291),_0xef5291['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x445ba1['defineComponents'](_0x445ba1),this['_defineLocale']();}['_defineLocale'](){const _0x6afe64=this['editor']['config']['get']('uploadcare.locale'),_0x3c7605=this['editor']['locale']['contentLanguage'];_0x6afe64&&_0x445ba1['defineLocale'](_0x3c7605,_0x6afe64);}},tt=class extends _0x132cff{constructor(_0x502845){super(_0x502845);const t=_0x502845['t'],_0xb07126=this['bindTemplate'],_0x2a08ce=new _0x487ade();_0x2a08ce['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':[_0x2a08ce,{'text':_0xb07126['to']('imageUploadProgress',_0x50ff19=>t('Loading\x20image...')+'\x20('+(_0x50ff19||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 _0x132cff{constructor(_0x3cd65e){super(_0x3cd65e);const t=_0x3cd65e['t'];this['set']('errorType',null);const _0x3a2d0d=new _0x565f07(_0x3cd65e);_0x3a2d0d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3a2d0d['withText']=!0x0,_0x3a2d0d['class']='ck-button-action',_0x3a2d0d['on']('execute',()=>{this['fire']('retry');}),_0x3a2d0d['bind']('isVisible')['to'](this,'errorType',_0x3f6296=>'NotFound'!==_0x3f6296);const _0x494df0=new _0x382f95();_0x494df0['content']=_0xc99f9b,_0x494df0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1d0bec=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':[_0x494df0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1d0bec['to']('errorType',_0x4c00c1=>t('NotFound'!==_0x4c00c1?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3a2d0d]},{'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 _0x132cff{constructor(_0x13f933,_0x3b609d){super(_0x13f933);const _0x35f133=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3b609d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x35f133['to']('imageSrc')}});}},st=class extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x25b66e,_0x44b275,_0xd4ec47){super(_0x25b66e),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x25b66e),this['_errorView']=new et(_0x25b66e),this['_editingView']=new it(_0x25b66e,_0xd4ec47),this['_focusableView']=new _0x132cff(_0x25b66e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x44b275),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'],_0x110625=>{this['_addUploadcareImageEditorListeners'](_0x110625);});}),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'](_0x1227ec,_0x13b336){const _0x1822f3='uc-cloud-image-editor',_0x1fe255=_0x1227ec['querySelector'](_0x1822f3);if(_0x1fe255)return _0x13b336(_0x1fe255);const _0x43902c=new MutationObserver(_0x2cd976=>{const _0x23455e=_0x2cd976['filter'](_0x196b10=>_0x196b10['target']===_0x1227ec&&_0x196b10['addedNodes']['length']>0x0&&_0x196b10['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1822f3);_0x23455e['length']&&(_0x43902c['disconnect'](),_0x13b336(_0x23455e[0x0]['addedNodes'][0x0]));});_0x43902c['observe'](_0x1227ec,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4e3913){_0x4e3913['addEventListener']('apply',_0x4f0d80=>{this['fire']('apply',{'imageSrc':_0x4f0d80['detail']['cdnUrl']});}),_0x4e3913['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const rt=/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3f2e4c();var nt=class extends rt{['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2acdc0,_0x324363,_0x38f627){super(),this['_editor']=_0x2acdc0,this['_dialog']=_0x324363,this['_imageElement']=_0x38f627,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 _0x4abb8d=this['_imageElement'],_0x26e12a=_0x4abb8d['getAttribute']('uploadcareImageId'),_0x1433dd=_0x4abb8d['getAttribute']('src');if(_0x26e12a)await this['_loadImageInfo'](_0x26e12a,_0x1433dd);else{if(this['_imageCache']['has'](_0x1433dd)){const _0x410086=this['_imageCache']['get'](_0x1433dd);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x410086['url'],this['imageDimension']=_0x410086['dimension'],this['imageId']=_0x410086['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3a4346}=this['_editor'],t=_0x3a4346['t'],_0x454a77=new st(_0x3a4346,this['imageStatus'],this['_attributes']);_0x454a77['bind']('status')['to'](this,'imageStatus'),_0x454a77['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x454a77['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x454a77['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x454a77,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1d8acf,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x454a77,'position':_0x1f4321['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x454a77['focus']();},'onHide':()=>{_0x454a77['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x410101=>!H(_0x410101,_0x454a77['element'])}});}['_loadImageInfo'](_0x18b2a1,_0x3424aa){return Q['getInfo'](_0x18b2a1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2c4c7d=>{const {width:_0x165fee,height:_0xaf6f9c}=_0x2c4c7d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3424aa,this['imageDimension']={'width':_0x165fee,'height':_0xaf6f9c},this['imageId']=_0x18b2a1;})['catch'](_0x354785=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x354785['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x578045,_0x84e964){return this['_getImageAsFile'](_0x578045)['then'](_0x1bf6ec=>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':_0x84e964['signal'],'file':_0x1bf6ec,'onProgress':_0x55448f=>{_0x55448f&&_0x55448f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x55448f['value']));}}))['then'](_0x108992=>{const {width:_0x2a9e0d,height:_0x129d2b}=_0x108992['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x108992['cdnUrl'],this['imageDimension']={'width':_0x2a9e0d,'height':_0x129d2b},this['imageId']=_0x108992['uuid'],this['imageUploadProgress']=null;const _0x27653e=_0x578045['getAttribute']('src');this['_imageCache']['set'](_0x27653e,{'id':_0x108992['uuid'],'url':_0x108992['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x463376=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x463376['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x229738,_0xfa5c3a){_0x229738['on']('apply',(_0x4bf0dc,_0x4915cd)=>{this['_replaceImage'](_0xfa5c3a,_0x4915cd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x229738['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x229738['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2e5ba3,_0x533d98,_0x47b712){const _0x197fd5=this['_editor'],{width:_0x4f4b4c,height:_0x22160c}=j(_0x533d98,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x25d0d6,imageSources:_0x3d64bb}=B(_0x533d98,_0x4f4b4c);_0x197fd5['model']['change'](_0x46cb7b=>{if('$graveyard'!==_0x2e5ba3['root']['rootName'])_0x46cb7b['setSelection'](_0x2e5ba3,'on'),_0x197fd5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2e5ba3['getAttributes']()),'uploadcareImageId':_0x47b712,'src':_0x25d0d6,'sources':_0x3d64bb,'width':_0x4f4b4c,'height':_0x22160c},_0x2e5ba3);else{_0x197fd5['execute']('insertImage',{'imageType':_0x2e5ba3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2e5ba3['getAttributes']()),'uploadcareImageId':_0x47b712,'src':_0x25d0d6,'sources':_0x3d64bb,'width':_0x4f4b4c,'height':_0x22160c}});const _0x49a2c7=_0x2e5ba3['getChildren']();_0x2e5ba3=_0x197fd5['model']['document']['selection']['getSelectedElement']();for(const _0x384c01 of _0x49a2c7)_0x46cb7b['append'](_0x46cb7b['cloneElement'](_0x384c01),_0x2e5ba3);}_0x46cb7b['setSelection'](_0x2e5ba3,'on');});}async['_getImageAsFile'](_0x98981f){const _0x3903a9=_0x25f752['window'],_0x3f05c6=_0x25f752['document']['location']['href'],_0x4ac9bd=new _0x3903a9['URL'](_0x98981f['getAttribute']('src'),_0x3f05c6);if('data:'===_0x4ac9bd['protocol']){const _0x2a07c6=_0x4ac9bd['href']['split'](','),_0xe65053=_0x2a07c6[0x0]['match'](/:(.*?);/)[0x1],_0x43695=_0xe65053['split']('/')[0x1],_0x1bb081=_0x3903a9['atob'](_0x2a07c6[_0x2a07c6['length']-0x1]);let _0x65f8b6=_0x1bb081['length'];const _0x397228=new _0x3903a9['Uint8Array'](_0x65f8b6);for(;_0x65f8b6--;)_0x397228[_0x65f8b6]=_0x1bb081['charCodeAt'](_0x65f8b6);return new _0x3903a9['File']([_0x397228],'image.'+_0x43695,{'type':_0xe65053});}const _0x1e3bdf=_0x4ac9bd['href']['split']('/'),_0x11d6f1=_0x1e3bdf[_0x1e3bdf['length']-0x1],_0x35d04d=_0x11d6f1['split']('.')[0x1];return _0x3903a9['fetch'](_0x4ac9bd['href'])['then'](_0x2d5801=>_0x2d5801['clone']()['blob']())['then'](_0x57dbf3=>new _0x3903a9['File']([_0x57dbf3],_0x11d6f1,{'type':'image/'+_0x35d04d}));}},at=class extends _0x5541f6{['imageEditController'];static get['requires'](){return[_0x254a69];}['_isEditable'];constructor(_0x4d4ff6){super(_0x4d4ff6),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x15ff7c){const _0xd87a46=M(_0x15ff7c);return _0x3151b5=>!(!_0x3151b5||!_0x3151b5['is']('element','imageBlock')&&!_0x3151b5['is']('element','imageInline'))&&(!!_0x3151b5['hasAttribute']('uploadcareImageId')||!!_0x3151b5['hasAttribute']('src')&&_0xd87a46(_0x3151b5['getAttribute']('src')));}(_0x4d4ff6['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x500e3c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x500e3c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x282fac=this['editor']['model']['document']['selection']['getSelectedElement']();_0x282fac&&(_0x282fac['is']('element','imageBlock')||_0x282fac['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x254a69),_0x282fac),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x5541f6{['refresh'](){const _0x28e101=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x28e101&&(_0x28e101['is']('element','imageBlock')||_0x28e101['is']('element','imageInline')));}['execute'](_0x422c42){const _0x5e15e7=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2eb58e=>{_0x2eb58e['setAttributes'](_0x422c42,_0x5e15e7),_0x2eb58e['removeAttribute']('srcset',_0x5e15e7),_0x2eb58e['removeAttribute']('sizes',_0x5e15e7);});}},ct=class extends _0x49b3db{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[Z,_0x451ea2,_0x58cbff,_0x25a1ae];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1378f5}=this;_0x1378f5['commands']['add']('uploadcareImageEdit',new at(_0x1378f5)),_0x1378f5['commands']['add']('uploadcareImageReplace',new ot(_0x1378f5));}},lt=class extends _0x49b3db{['_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 _0x1f40f1=this['editor'];_0x1f40f1['ui']['componentFactory']['add']('uploadcareImageEdit',_0x38d5ae=>{const _0x506ce6=_0x1f40f1['commands']['get']('uploadcareImageEdit'),_0x22cdf3=new _0x565f07(_0x38d5ae),t=_0x38d5ae['t'];return _0x22cdf3['set']({'icon':_0x1d8acf,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x22cdf3['bind']('isEnabled')['to'](_0x506ce6),_0x22cdf3['bind']('isOn')['to'](_0x506ce6,'isActive'),this['listenTo'](_0x22cdf3,'execute',()=>{_0x1f40f1['execute']('uploadcareImageEdit'),_0x1f40f1['editing']['view']['focus']();}),_0x22cdf3;}),this['_initConfig']();}['_initConfig'](){const _0x1905dc=_0x54ff94(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1905dc),this['listenTo'](this['editor'],'destroy',()=>{_0x1905dc['remove']();});}},ut=class extends _0x49b3db{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':_0x5ca5c0=>0x1!=_0x5ca5c0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2b1aad=>{const {af:{dictionary:_0x47bb60,getPluralForm:_0xb12cc0}}={'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':_0x480978=>0x1!=_0x480978}};_0x2b1aad['af']||={'dictionary':{},'getPluralForm':null},_0x2b1aad['af']['dictionary']=Object['assign'](_0x2b1aad['af']['dictionary'],_0x47bb60),_0x2b1aad['af']['getPluralForm']=_0xb12cc0;})(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':_0x3b63c7=>0x0==_0x3b63c7?0x0:0x1==_0x3b63c7?0x1:0x2==_0x3b63c7?0x2:_0x3b63c7%0x64>=0x3&&_0x3b63c7%0x64<=0xa?0x3:_0x3b63c7%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1241c2=>{const {ar:{dictionary:_0x3508de,getPluralForm:_0x2408c0}}={'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':_0x151ef7=>0x0==_0x151ef7?0x0:0x1==_0x151ef7?0x1:0x2==_0x151ef7?0x2:_0x151ef7%0x64>=0x3&&_0x151ef7%0x64<=0xa?0x3:_0x151ef7%0x64>=0xb?0x4:0x5}};_0x1241c2['ar']||={'dictionary':{},'getPluralForm':null},_0x1241c2['ar']['dictionary']=Object['assign'](_0x1241c2['ar']['dictionary'],_0x3508de),_0x1241c2['ar']['getPluralForm']=_0x2408c0;})(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':_0x59b81=>0x1!=_0x59b81}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x46e6d1=>{const {ast:{dictionary:_0x42dd9a,getPluralForm:_0xc4297a}}={'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':_0x198850=>0x1!=_0x198850}};_0x46e6d1['ast']||={'dictionary':{},'getPluralForm':null},_0x46e6d1['ast']['dictionary']=Object['assign'](_0x46e6d1['ast']['dictionary'],_0x42dd9a),_0x46e6d1['ast']['getPluralForm']=_0xc4297a;})(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':_0x4ebf77=>0x1!=_0x4ebf77}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x576001=>{const {az:{dictionary:_0x27c804,getPluralForm:_0x2b2fa2}}={'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':_0xd90866=>0x1!=_0xd90866}};_0x576001['az']||={'dictionary':{},'getPluralForm':null},_0x576001['az']['dictionary']=Object['assign'](_0x576001['az']['dictionary'],_0x27c804),_0x576001['az']['getPluralForm']=_0x2b2fa2;})(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':_0x225386=>_0x225386%0xa==0x1&&_0x225386%0x64!=0xb?0x0:_0x225386%0xa>=0x2&&_0x225386%0xa<=0x4&&(_0x225386%0x64<0xa||_0x225386%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x16fd13=>{const {be:{dictionary:_0x21cc13,getPluralForm:_0x44de6d}}={'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':_0x4cc99b=>_0x4cc99b%0xa==0x1&&_0x4cc99b%0x64!=0xb?0x0:_0x4cc99b%0xa>=0x2&&_0x4cc99b%0xa<=0x4&&(_0x4cc99b%0x64<0xa||_0x4cc99b%0x64>=0x14)?0x1:0x2}};_0x16fd13['be']||={'dictionary':{},'getPluralForm':null},_0x16fd13['be']['dictionary']=Object['assign'](_0x16fd13['be']['dictionary'],_0x21cc13),_0x16fd13['be']['getPluralForm']=_0x44de6d;})(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':_0x27c234=>0x1!=_0x27c234}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5296ab=>{const {bg:{dictionary:_0x3b5cec,getPluralForm:_0x377695}}={'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':_0xbc47ec=>0x1!=_0xbc47ec}};_0x5296ab['bg']||={'dictionary':{},'getPluralForm':null},_0x5296ab['bg']['dictionary']=Object['assign'](_0x5296ab['bg']['dictionary'],_0x3b5cec),_0x5296ab['bg']['getPluralForm']=_0x377695;})(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':_0x4da849=>0x1!=_0x4da849}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3ca797=>{const {bn:{dictionary:_0x3481f9,getPluralForm:_0x59e7f3}}={'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':_0x60f517=>0x1!=_0x60f517}};_0x3ca797['bn']||={'dictionary':{},'getPluralForm':null},_0x3ca797['bn']['dictionary']=Object['assign'](_0x3ca797['bn']['dictionary'],_0x3481f9),_0x3ca797['bn']['getPluralForm']=_0x59e7f3;})(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':_0x57cfe4=>_0x57cfe4%0xa==0x1&&_0x57cfe4%0x64!=0xb?0x0:_0x57cfe4%0xa>=0x2&&_0x57cfe4%0xa<=0x4&&(_0x57cfe4%0x64<0xa||_0x57cfe4%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x41c978=>{const {bs:{dictionary:_0x2f95f8,getPluralForm:_0x224b37}}={'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':_0x55b66c=>_0x55b66c%0xa==0x1&&_0x55b66c%0x64!=0xb?0x0:_0x55b66c%0xa>=0x2&&_0x55b66c%0xa<=0x4&&(_0x55b66c%0x64<0xa||_0x55b66c%0x64>=0x14)?0x1:0x2}};_0x41c978['bs']||={'dictionary':{},'getPluralForm':null},_0x41c978['bs']['dictionary']=Object['assign'](_0x41c978['bs']['dictionary'],_0x2f95f8),_0x41c978['bs']['getPluralForm']=_0x224b37;})(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':_0x3c845b=>0x1!=_0x3c845b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x43060e=>{const {ca:{dictionary:_0x1e7116,getPluralForm:_0x5d36aa}}={'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':_0xc8377f=>0x1!=_0xc8377f}};_0x43060e['ca']||={'dictionary':{},'getPluralForm':null},_0x43060e['ca']['dictionary']=Object['assign'](_0x43060e['ca']['dictionary'],_0x1e7116),_0x43060e['ca']['getPluralForm']=_0x5d36aa;})(window['CKEDITOR_TRANSLATIONS']||={});
|