@ckeditor/ckeditor5-uploadcare 48.3.0 → 48.3.1-alpha.1
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 _0x436ac0,Plugin as _0x6a6e99}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x1bc819,IconError as _0x2b8b6d,IconFacebook as _0x5a5b76,IconGoogleDrive as _0x5989b1,IconGooglePhotos as _0x2e6c57,IconOneDrive as _0x442e9d,IconUploadcareImageEdit as _0x1356e4,IconUploadcareImageUpload as _0x29ab6c,IconUploadcareLink as _0x4b4df9}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x53a1de,Dialog as _0x3c11e9,DialogViewPosition as _0x534030,FocusCycler as _0x19818d,IconView as _0x2473f6,MenuBarMenuListItemButtonView as _0x56aeff,Notification as _0x324d33,SpinnerView as _0x480c90,View as _0x31efed}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x217f30,FocusTracker as _0x112e8b,ObservableMixin as _0x5081c4,createElement as _0x545518,getAncestors as _0x101cd7,global as _0x2f4c45,uid as _0x43ac13}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x1e46c7,ImageUploadEditing as _0x2d33b1,ImageUploadProgress as _0x3b61e2,ImageUtils as _0x555374,PictureEditing as _0x5da174}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x53a4a5}from'@ckeditor/ckeditor5-upload';import{info as _0x5dd516,uploadFile as _0xc18d66}from'@uploadcare/upload-client';import*as _0x5d8a36 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x6e26ce,_0x8d72d3,_0x32f38c){const t=_0x6e26ce['t'],_0x58450c=_0x6e26ce['t'];switch(_0x8d72d3){case'local':return{'text':_0x58450c('Insert'===_0x32f38c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x58450c('From\x20computer')};case'url':return{'text':'Insert'===_0x32f38c?_0x58450c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x58450c('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x32f38c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x32f38c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x32f38c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x32f38c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x32f38c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x8d72d3;}}var V=class extends _0x6a6e99{['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 _0x1c1bf9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a2900;for(const _0x110beb in _0x1c1bf9){const _0x111f24=_0x110beb,_0x119e89=_0x1c1bf9[_0x111f24];if('uploadcareLicenseKeyValid'==_0x119e89||'uploadcareLicenseKeyInvalid'==_0x119e89||'uploadcareLicenseKeyExpired'==_0x119e89||'uploadcareLicenseKeyDomainLimit'==_0x119e89||'uploadcareLicenseKeyNotAllowed'==_0x119e89||'uploadcareLicenseKeyEvaluationLimit'==_0x119e89||'uploadcareLicenseKeyUsageLimit'==_0x119e89){delete _0x1c1bf9[_0x111f24],_0x2a2900=_0x119e89,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2a2900&&_0x1c1bf9['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2a2900&&_0x1c1bf9['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2a2900&&_0x1c1bf9['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2a2900&&_0x1c1bf9['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2a2900&&_0x1c1bf9['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2a2900&&_0x1c1bf9['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x259dba}=this,_0x29a8ff=_0x259dba['commands']['get']('uploadcare');if(!_0x29a8ff)return;const _0x2e346c=this['_normalizeConfigSourceList'](_0x259dba['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5359e3,_0x412b1e)=>{const _0x1ccceb=this['_getIntegrationKey'](_0x412b1e['type']);return _0x5359e3[_0x1ccceb]||(_0x5359e3[_0x1ccceb]=[]),_0x5359e3[_0x1ccceb]['push'](_0x412b1e),_0x5359e3;},{});_0x259dba['plugins']['has']('ImageInsertUI')&&_0x259dba['commands']['get']('uploadcare')&&Object['entries'](_0x2e346c)['forEach'](([_0x112bb8,_0x4e4c16])=>{_0x259dba['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x112bb8,'observable':()=>_0x29a8ff,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4e4c16),'formViewCreator':()=>this['_createDropdownButtons'](_0x4e4c16),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4e4c16),'override':'assetManager'!==_0x112bb8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x51ef32){const {locale:_0x5cbe8e}=this['editor'];return _0x51ef32['map'](_0xe9e510=>{const _0x8343aa=T(_0x5cbe8e,_0xe9e510,'Insert');switch(_0xe9e510){case'local':return{'icon':_0x29ab6c,'type':'local',..._0x8343aa};case'url':return{'icon':_0x4b4df9,'type':'url',..._0x8343aa};case'dropbox':return{'icon':_0x1bc819,'type':'dropbox',..._0x8343aa};case'facebook':return{'icon':_0x5a5b76,'type':'facebook',..._0x8343aa};case'gdrive':return{'icon':_0x5989b1,'type':'gdrive',..._0x8343aa};case'gphotos':return{'icon':_0x2e6c57,'type':'gphotos',..._0x8343aa};case'onedrive':return{'icon':_0x442e9d,'type':'onedrive',..._0x8343aa};}});}['_getIntegrationKey'](_0x57641e){switch(_0x57641e){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x18d36a,_0x2496f9){const _0x281c77=this['editor'],_0x48be47=new _0x18d36a(_0x281c77['locale']),_0x1431ee=_0x281c77['commands']['get']('uploadcare');return _0x48be47['bind']('isEnabled')['to'](_0x1431ee),_0x48be47['on']('execute',()=>{_0x1431ee['execute'](_0x2496f9);}),_0x48be47;}['_createToolbarButton'](_0x391c48){const {locale:_0x44684d}=this['editor'],_0x2eec12=this['editor']['plugins']['get']('ImageInsertUI'),_0x1ad027=_0x391c48[0x0],_0x183e22=this['_createButton'](_0x53a1de,_0x1ad027['type']);return _0x183e22['icon']=_0x1ad027['icon'],_0x183e22['bind']('label')['to'](_0x2eec12,'isImageSelected',_0x13fcde=>T(_0x44684d,_0x1ad027['type'],_0x13fcde?'Replace':'Insert')['text']),_0x183e22['tooltip']=!0x0,_0x183e22;}['_createDropdownButtons'](_0x4a7897){const {locale:_0x3ba005}=this['editor'],_0x55f75f=this['editor']['plugins']['get']('ImageInsertUI');return _0x4a7897['map'](_0x416182=>{const _0x2cccd2=this['_createButton'](_0x53a1de,_0x416182['type']);return _0x2cccd2['withText']=!0x0,_0x2cccd2['icon']=_0x416182['icon'],_0x2cccd2['bind']('label')['to'](_0x55f75f,'isImageSelected',_0x1c0dde=>T(_0x3ba005,_0x416182['type'],_0x1c0dde?'Replace':'Insert')['text']),_0x2cccd2;});}['_createMenuBarButtons'](_0x206bd5){return _0x206bd5['map'](_0x200ee8=>{const _0x5c4d80=this['_createButton'](_0x56aeff,_0x200ee8['type']);return _0x5c4d80['icon']=_0x200ee8['icon'],_0x5c4d80['label']=_0x200ee8['shortText'],_0x5c4d80;});}},F=class extends _0x31efed{['focusTracker'];['focusCycler'];constructor(_0x202531){super(_0x202531),this['focusTracker']=new _0x112e8b(),this['focusCycler']=new _0x19818d({'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(_0x345e45,_0x4da716){super(_0x345e45),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-'+_0x4da716}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x399ab0,_0x5c5adc){const _0x5d7c3f=_0x399ab0['replace'](/\/$/,'');return{'imageFallbackUrl':_0x399ab0,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x397a27=>_0x397a27<_0x5c5adc)['map'](_0x23f397=>_0x5d7c3f+'/-/resize/'+_0x23f397+'x/\x20'+_0x23f397+'w'),_0x399ab0+'\x20'+_0x5c5adc+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5c5adc+'px)\x20100vw,\x20'+_0x5c5adc+'px','type':'image/webp'}]};}function j(_0x1034ea,_0x3af15a,_0x212c5b){const _0x26a467=_0x1034ea['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x26a467?parseInt(_0x26a467[0x1],0xa):_0x3af15a,'height':_0x26a467?parseInt(_0x26a467[0x2],0xa):_0x212c5b};}function q(_0x281e3f,_0x5cd1fc){const _0x5f5462=new(_0x217f30())(),_0x57e834=_0x281e3f['plugins']['get']('ImageUtils'),_0x566f5e=_0x281e3f['editing']['mapper']['toViewElement'](_0x5cd1fc),_0x2feda4=_0x57e834['findViewImgElement'](_0x566f5e),_0x4a7df0=_0x281e3f['editing']['view']['domConverter']['viewToDom'](_0x2feda4),_0x4c781e=_0x5cd1fc['getAttribute']('width'),_0x18aecf=_0x5cd1fc['getAttribute']('height'),_0xea3d92='image-processing';_0x281e3f['editing']['view']['change'](_0x29b749=>{_0x29b749['addClass'](_0xea3d92,_0x566f5e),_0x29b749['setStyle']('aspect-ratio',_0x4c781e+'/'+_0x18aecf,_0x2feda4);}),_0x5f5462['listenTo'](_0x4a7df0,'load',()=>{_0x5f5462['stopListening'](_0x4a7df0,'load'),_0x281e3f['editing']['view']['change'](_0x2dfc1d=>{_0x2dfc1d['removeClass'](_0xea3d92,_0x566f5e),_0x2dfc1d['removeStyle']('aspect-ratio',_0x2feda4);});});}function M(_0x406fbb){if(Array['isArray'](_0x406fbb)){const _0x44a869=_0x406fbb['map'](M);return _0x477a15=>_0x44a869['some'](_0x1c6849=>_0x1c6849(_0x477a15));}if('origin'==_0x406fbb){const _0x4bd994=_0x2f4c45['window']['location']['origin'];return _0x1bc20f=>new URL(_0x1bc20f,_0x2f4c45['document']['baseURI'])['origin']==_0x4bd994;}return'function'==typeof _0x406fbb?_0x406fbb:_0x406fbb instanceof RegExp?_0x3ea106=>!(!_0x3ea106['match'](_0x406fbb)&&!_0x3ea106['replace'](/^https?:\/\//,'')['match'](_0x406fbb)):()=>!0x1;}function H(_0x4b2922,_0x25eeea){return _0x101cd7(_0x4b2922['target'])['includes'](_0x25eeea);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x5081c4();var G=class extends W{['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x285a05,_0x7ff998,_0x1e123b){super(),this['_editor']=_0x285a05,this['_editing']=_0x7ff998,this['_dialog']=_0x285a05['plugins']['get'](_0x3c11e9),this['_api']=_0x7ff998['ctxElement']['getAPI'](),this['_type']=_0x1e123b,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:_0x1da6bd,model:_0x3f4980}=this['_editor'],_0x34063c=_0x3f4980['document']['selection']['getSelectedElement'](),_0x4e15b6=_0x34063c&&(_0x34063c['is']('element','imageBlock')||_0x34063c['is']('element','imageInline'));this['_formView']=new $(_0x1da6bd,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x29ab6c,'title':T(_0x1da6bd,this['_type'],_0x4e15b6?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x534030['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4fdbd7=>!H(_0x4fdbd7,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x59420a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2ada83=>{const _0x3051da=_0x59420a['length'];for(const _0x3e12ab of _0x59420a){const _0x5c9f64=_0x3e12ab===_0x59420a[_0x3051da-0x1],{cdnUrl:_0x3af257,fileInfo:_0x1b0157}=_0x3e12ab;if(!_0x3af257||!_0x1b0157)continue;const {width:_0x2b4de7,height:_0x120440}=_0x1b0157['imageInfo'],_0x4638e7=j(_0x3af257,_0x2b4de7,_0x120440),_0x1d1b5a=B(_0x3af257,_0x4638e7['width']),_0x272847={'id':_0x1b0157['uuid'],'type':'image','attributes':{'imageDimension':_0x4638e7,..._0x1d1b5a}};this['_insertAsset'](_0x272847,_0x5c9f64,_0x2ada83);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5c3bc6=>{'idle'===_0x5c3bc6['detail']['status']&&!_0x5c3bc6['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}['_insertAsset'](_0x516aa2,_0x4e441b,_0x3e5f73){const _0x9abe02=this['_editor']['model']['document']['selection'],_0x30d19c=_0x9abe02['getSelectedElement'](),_0x5b8668=!(!_0x30d19c||!_0x30d19c['is']('element','imageInline'));_0x3e5f73['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x516aa2,_0x5b8668),_0x4e441b||_0x3e5f73['setSelection'](_0x9abe02['getLastPosition']());}['_insertImage'](_0x15a48e,_0x5d7d36){const _0x5be7c4=this['_editor'],{imageDimension:_0x38f030,imageFallbackUrl:_0x1abd83,imageSources:_0xecd934}=_0x15a48e['attributes'];_0x5be7c4['execute']('insertImage',{'imageType':_0x5d7d36?'imageInline':null,'source':{'uploadcareImageId':_0x15a48e['id'],'src':_0x1abd83,'sources':_0xecd934,..._0x38f030}});}},z=class extends _0x436ac0{['_editing'];['_controller']=null;static get['requires'](){return[_0x3c11e9,Z];}constructor(_0x91a0f1){super(_0x91a0f1),this['_editing']=_0x91a0f1['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4f208d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x4f208d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0xdfc984,..._0x47f3c5}){return _0xc18d66(_0xdfc984,_0x47f3c5);}static['getInfo'](_0x2f1d45,_0x2bf228){return _0x5dd516(_0x2f1d45,_0x2bf228);}},J=class extends _0x6a6e99{static get['requires'](){return[_0x2d33b1,_0x3b61e2,_0x53a4a5,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4a229b=this['editor'];if(!_0x4a229b['config']['get']('uploadcare'))return;_0x4a229b['plugins']['get'](_0x53a4a5)['createUploadAdapter']=_0x3877f4=>new X(_0x3877f4,_0x4a229b),_0x4a229b['plugins']['get'](_0x2d33b1)['on']('uploadComplete',(_0x4f4046,{imageElement:_0x3f5018,data:_0x4bcc6d})=>{_0x4a229b['model']['change'](_0x3ad450=>{_0x3ad450['setAttribute']('uploadcareImageId',_0x4bcc6d['uploadcareImageId'],_0x3f5018);});});}},X=class{['loader'];['editor'];['controller'];constructor(_0x1b82cc,_0x206646){this['loader']=_0x1b82cc,this['editor']=_0x206646,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x36de0c=await this['loader']['file'];return Q['upload']({'file':_0x36de0c,'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':_0x579181=>{_0x579181&&_0x579181['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x579181['value']);}})['then'](async _0x36386e=>{const {imageFallbackUrl:_0x585633,imageSources:_0x2adca6}=B(_0x36386e['cdnUrl'],_0x36386e['imageInfo']['width']);return{'uploadcareImageId':_0x36386e['uuid'],'default':_0x585633,'sources':_0x2adca6};})['catch'](()=>{const _0x3e52c6=t('Cannot\x20upload\x20file:')+('\x20'+_0x36de0c['name']+'.');return Promise['reject'](_0x3e52c6);});}['abort'](){this['controller']['abort']();}},Z=class extends _0x6a6e99{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x5da174,J,_0x3c11e9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1a4e1a){super(_0x1a4e1a),this['ucContextId']=_0x43ac13();}['init'](){const _0x2dcce=this['editor'];_0x2dcce['commands']['add']('uploadcare',new z(_0x2dcce));}['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 _0x33e978=_0x2f4c45['document']['querySelector']('input[uploadcare-file-input]');_0x33e978&&_0x33e978['remove']();}),async function(_0x4775a4){const _0x12cc0b='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0x1b5a33=0x78e88,_0x92222d=window['Date']['now'](),_0x2681ce=_0x4775a4['editor'],_0x1c0905=new window['Promise'](_0x3b0a6a=>{_0x2681ce['once']('ready',_0x3b0a6a);}),_0x436942={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x108ea7=_0x2681ce['config']['get']('licenseKey');async function _0x12d22f(){let _0x5953d0,_0x3e2a2a=null,_0x176079=null;try{return'GPL'==_0x108ea7?'NotAllowed':(_0x5953d0=_0x35bdb7(),_0x5953d0?(_0x5953d0['usageEndpoint']&&(_0x176079=_0x42719d(_0x5953d0['usageEndpoint'],_0x5953d0['jti'])),await _0xc37b4e()?_0x55b03f()?_0x54fd3d()?'Expired':_0x4f48c8()?('evaluation'==_0x5953d0['licenseType']&&(_0x3e2a2a=_0x5ad9fb('EvaluationLimit')),await _0x5ef3cf()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x54fd3d(){const _0x21f61f=['evaluation','trial']['includes'](_0x5953d0['licenseType'])?_0x92222d/0x3e8:0xe10*_0x1b5a33;return _0x5953d0['exp']<_0x21f61f;}function _0x55b03f(){const _0x3e1934=_0x5953d0['features'];return!!_0x3e1934&&(!!_0x3e1934['includes']('*')||!!_0x3e1934['includes']('UPLC'));}function _0x4f48c8(){const _0x336e61=_0x5953d0['licensedHosts'];if(!_0x336e61||0x0==_0x336e61['length'])return!0x0;const {hostname:_0x5f018a}=new URL(window['location']['href']);if(_0x336e61['includes'](_0x5f018a))return!0x0;const _0x332466=_0x5f018a['split']('.');return _0x336e61['filter'](_0x5ecd2a=>_0x5ecd2a['includes']('*'))['map'](_0x4c18dc=>_0x4c18dc['split']('.'))['filter'](_0x54d867=>_0x54d867['length']<=_0x332466['length'])['map'](_0x4b110d=>Array(_0x332466['length']-_0x4b110d['length'])['fill']('*'===_0x4b110d[0x0]?'*':'')['concat'](_0x4b110d))['some'](_0x1ff07a=>_0x332466['every']((_0x218c63,_0x512cdd)=>_0x1ff07a[_0x512cdd]===_0x218c63||'*'===_0x1ff07a[_0x512cdd]));}function _0x5ef3cf(){return _0x3e2a2a&&_0x176079?new window['Promise']((_0xd5bed6,_0x32ca27)=>{_0x3e2a2a['then'](_0xd5bed6,_0x32ca27),_0x176079['then'](_0x28ec20=>{'Valid'!=_0x28ec20&&_0xd5bed6(_0x28ec20);},_0x32ca27);}):_0x3e2a2a||_0x176079||'Valid';}}function _0x42719d(_0x35b913,_0x31a93){return new window['Promise'](_0x2c8d6e=>{if(_0x183ba9())return _0x2c8d6e('Valid');_0x365a15(),_0x2681ce['decorate']('_sendUsageRequest');let _0x3def2a=!0x1;const _0x4f8887=_0x43ac13();function _0x5b00b1(_0x1a3caa){return!!_0x1a3caa&&('object'==typeof _0x1a3caa||'function'==typeof _0x1a3caa)&&'function'==typeof _0x1a3caa['then']&&'function'==typeof _0x1a3caa['catch'];}function _0x5a83ae(_0x3b114c){_0xf13134(_0x3b114c)['then'](_0x302601=>_0x302601&&'ok'==_0x302601['status']?_0x50f892(_0x487d30(_0x4f8887+_0x31a93))!=_0x302601['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x5f54ad=>(_0x4b0817(),_0x5f54ad),()=>{const _0x43a816=_0x5bc4ac();return null==_0x43a816?(_0x4b0817(),'Valid'):_0x92222d-_0x43a816>0x240c8400?'UsageLimit':'Valid';})['then'](_0x2c8d6e)['catch'](()=>{_0x2c8d6e('UsageLimit');});const _0x535b5a=0x36ee80;function _0x4b0817(){const _0x4743ad='llct-'+_0x50f892(_0x487d30(_0x35b913)),_0x45290a=_0xbaa5f1(_0x50f892(window['Math']['ceil'](_0x92222d/_0x535b5a)));window['localStorage']['setItem'](_0x4743ad,_0x45290a);}function _0x5bc4ac(){const _0x46a6a4='llct-'+_0x50f892(_0x487d30(_0x35b913)),_0x18d4ab=window['localStorage']['getItem'](_0x46a6a4);return _0x18d4ab?window['parseInt'](_0xbaa5f1(_0x18d4ab),0x10)*_0x535b5a:null;}function _0xf13134(_0x4b2e3e){return new window['Promise']((_0x427eef,_0x1efde3)=>{_0x4b2e3e['then'](_0x427eef,_0x1efde3),window['setTimeout'](_0x1efde3,0x1d4c0);});}}_0x2681ce['on']('_sendUsageRequest',(_0x29bb7e,_0x1097e3)=>{if(_0x1097e3[0x0]!=_0x35b913)return _0x2c8d6e('UsageLimit');_0x1097e3[0x1]={..._0x1097e3[0x1],'requestId':_0x4f8887};},{'priority':'high'}),_0x2681ce['on']('_sendUsageRequest',_0xd384ed=>{_0x5b00b1(_0xd384ed['return'])&&(_0x3def2a=!0x0,_0x5a83ae(_0xd384ed['return']));},{'priority':'low'}),_0x1c0905['then'](()=>{_0x3def2a||_0x2c8d6e('UsageLimit');});});function _0x183ba9(){return'auto'==_0x2681ce['editing']['view']['_overlayModeHint'];}function _0x365a15(){_0x2681ce['editing']['view']['_overlayModeHint']='auto';}}function _0x5ad9fb(_0xdada78){const _0x5a0843=[new window['Promise'](_0x28a01f=>setTimeout(_0x28a01f,0x93ecc)),_0x1c0905['then'](()=>new window['Promise'](_0x3a0b68=>{let _0x2ded37=0x0;_0x2681ce['model']['on']('applyOperation',(_0x1c4ac7,_0x122c19)=>{_0x122c19[0x0]['isDocumentOperation']&&_0x2ded37++,0x5e8==_0x2ded37&&(_0x3a0b68(),_0x1c4ac7['off']());});}))];return window['Promise']['race'](_0x5a0843)['then'](()=>_0xdada78);}async function _0x44b78f(){await _0x1c0905,_0x2681ce['model']['change']=_0x5555b1,_0x2681ce['model']['enqueueChange']=_0x5555b1,_0x2681ce['enableReadOnlyMode']('model');}function _0x1f8e28(_0x5dfccf){const _0x4e5e5c=_0x1c63af();_0x2681ce[_0x4e5e5c]='uploadcareLicenseKey'+_0x5dfccf,'Valid'!=_0x5dfccf&&_0x44b78f();}function _0x1c63af(){const _0x42f66e=window['String'](window['performance']['now']())['replace']('.','');let _0x4548bd='h';for(let _0x563168=0x0;_0x563168<_0x42f66e['length'];_0x563168+=0x2){let _0x1e8452=window['parseInt'](_0x42f66e['substring'](_0x563168,_0x563168+0x2));_0x1e8452>=0x3e&&(_0x1e8452-=0x3e),_0x4548bd+=_0x12cc0b[_0x1e8452];}return _0x4548bd;}function _0x35bdb7(){const _0x544af6=_0x108ea7['split']('.');if(0x3!=_0x544af6['length'])return null;return _0x159b5e(_0x544af6[0x1]);function _0x159b5e(_0x3de6b5){const _0x31d8d8=_0x18cbd5(_0x3de6b5);return _0x31d8d8&&_0x2c7255()?_0x31d8d8:null;function _0x2c7255(){const _0x5010d6=_0x31d8d8['jti'],_0x43c68e=window['parseInt'](_0x5010d6['substring'](_0x5010d6['length']-0x8),0x10),_0x9bde8a={..._0x31d8d8,'jti':_0x5010d6['substring'](0x0,_0x5010d6['length']-0x8)};return delete _0x9bde8a['vc'],_0x487d30(_0x9bde8a)==_0x43c68e;}}}async function _0xc37b4e(){let _0x97d17d=!0x0;try{const [_0xbfdec1,_0x486f9d,_0x1ec4be]=_0x108ea7['split']('.');return _0x1c7e09(_0xbfdec1),await _0x49c933(_0xbfdec1,_0x486f9d,_0x1ec4be),_0x97d17d;}catch{return!0x1;}function _0x1c7e09(_0x28dfb6){const _0x2a9674=_0x18cbd5(_0x28dfb6);_0x2a9674&&'ES256'==_0x2a9674['alg']||(_0x97d17d=!0x1);}async function _0x49c933(_0x4e89e6,_0x1869a6,_0x2f7cc8){const _0x2e527d=window['Uint8Array']['from'](_0x4358c0(_0x2f7cc8),_0x38ad7a=>_0x38ad7a['charCodeAt'](0x0)),_0x164982=new window['TextEncoder']()['encode'](_0x4e89e6+'.'+_0x1869a6),_0x3a4acd=window['crypto']['subtle'];if(!_0x3a4acd)return;const _0x3608f8=await _0x3a4acd['importKey']('jwk',_0x436942,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3a4acd['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3608f8,_0x2e527d,_0x164982)||(_0x97d17d=!0x1);}}function _0x18cbd5(_0x440115){return _0x440115['startsWith']('ey')?JSON['parse'](_0x4358c0(_0x440115)):null;}function _0x4358c0(_0x2bf53e){return window['atob'](_0x2bf53e['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x487d30(_0x441dd7){let _0x2e6e15=0x1505;function _0x1ed423(_0x14c08d){for(let _0x33c0cf=0x0;_0x33c0cf<_0x14c08d['length'];_0x33c0cf++){const _0x30007f=_0x14c08d['charCodeAt'](_0x33c0cf);_0x2e6e15=(_0x2e6e15<<0x5)+_0x2e6e15+_0x30007f,_0x2e6e15&=_0x2e6e15;}}function _0x36431d(_0x874d2a){Array['isArray'](_0x874d2a)?_0x874d2a['forEach'](_0x36431d):_0x874d2a&&'object'==typeof _0x874d2a?Object['entries'](_0x874d2a)['sort']()['forEach'](([_0x1f2c91,_0x2794e7])=>{_0x1ed423(_0x1f2c91),_0x36431d(_0x2794e7);}):_0x1ed423(window['String'](_0x874d2a));}return _0x36431d(_0x441dd7),_0x2e6e15>>>0x0;}function _0x50f892(_0x416ff1){return _0x416ff1['toString'](0x10)['padStart'](0x8,'0');}function _0xbaa5f1(_0x4d0351){return _0x4d0351['split']('')['reverse']()['join']('');}function _0x5555b1(){}_0x1f8e28(await _0x12d22f());}(this);}['_initSchema'](){const _0x452d7c=this['editor']['model']['schema'];_0x452d7c['isRegistered']('imageBlock')&&_0x452d7c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x452d7c['isRegistered']('imageInline')&&_0x452d7c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2ee6e0=this['editor'];_0x2ee6e0['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2ee6e0['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2b158c=>_0x2b158c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x414cfc=_0x2ee6e0['commands']['get']('replaceImageSource');_0x414cfc&&this['listenTo'](_0x414cfc,'cleanupImage',(_0x5cbea3,[_0x18d2aa,_0x5dde6f])=>{_0x18d2aa['removeAttribute']('uploadcareImageId',_0x5dde6f);});}['_initConfig'](){const _0x5005c4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x530de2=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x545518(_0x2f4c45['document'],'uc-config',{..._0x5005c4,'pubkey':_0x530de2,'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']=_0x5b1399=>{if('closeMax'==_0x5b1399)return'#uc-icon-arrow-down';},_0x2f4c45['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x545518(_0x2f4c45['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2f4c45['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x257774=this['editor']['commands']['get']('insertImage');_0x257774&&this['listenTo'](_0x257774,'execute',()=>{const _0x13f1d4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x13f1d4&&_0x13f1d4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x13f1d4);});});const _0x5d66e6=this['editor']['commands']['get']('uploadcareImageReplace');_0x5d66e6&&this['listenTo'](_0x5d66e6,'execute',()=>{const _0x1f0ebd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1f0ebd&&_0x1f0ebd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x1f0ebd);});});}},Y=class extends _0x6a6e99{static get['requires'](){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x319a9a){super(_0x319a9a),_0x319a9a['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x5d8a36['defineComponents'](_0x5d8a36),this['_defineLocale']();}['_defineLocale'](){const _0xa449f6=this['editor']['config']['get']('uploadcare.locale'),_0x182539=this['editor']['locale']['contentLanguage'];_0xa449f6&&_0x5d8a36['defineLocale'](_0x182539,_0xa449f6);}},tt=class extends _0x31efed{constructor(_0x1696da){super(_0x1696da);const t=_0x1696da['t'],_0x553244=this['bindTemplate'],_0x26eaf4=new _0x480c90();_0x26eaf4['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':[_0x26eaf4,{'text':_0x553244['to']('imageUploadProgress',_0x430651=>t('Loading\x20image...')+'\x20('+(_0x430651||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 _0x31efed{constructor(_0x1ef751){super(_0x1ef751);const t=_0x1ef751['t'];this['set']('errorType',null);const _0xb346f5=new _0x53a1de(_0x1ef751);_0xb346f5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xb346f5['withText']=!0x0,_0xb346f5['class']='ck-button-action',_0xb346f5['on']('execute',()=>{this['fire']('retry');}),_0xb346f5['bind']('isVisible')['to'](this,'errorType',_0x43301a=>'NotFound'!==_0x43301a);const _0x470f04=new _0x2473f6();_0x470f04['content']=_0x2b8b6d,_0x470f04['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3c380c=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':[_0x470f04,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3c380c['to']('errorType',_0x2e9545=>t('NotFound'!==_0x2e9545?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xb346f5]},{'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 _0x31efed{constructor(_0xeebee7,_0x2aba81){super(_0xeebee7);const _0x2d28f8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2aba81,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2d28f8['to']('imageSrc')}});}},st=class extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4b87d5,_0x34957a,_0x441605){super(_0x4b87d5),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x4b87d5),this['_errorView']=new et(_0x4b87d5),this['_editingView']=new it(_0x4b87d5,_0x441605),this['_focusableView']=new _0x31efed(_0x4b87d5),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x34957a),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'],_0x3cd449=>{this['_addUploadcareImageEditorListeners'](_0x3cd449);});}),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'](_0x36bf1c,_0xa7093c){const _0x589408='uc-cloud-image-editor',_0x94ae3a=_0x36bf1c['querySelector'](_0x589408);if(_0x94ae3a)return _0xa7093c(_0x94ae3a);const _0x975bdc=new MutationObserver(_0x2fa52b=>{const _0x67212=_0x2fa52b['filter'](_0x995c7d=>_0x995c7d['target']===_0x36bf1c&&_0x995c7d['addedNodes']['length']>0x0&&_0x995c7d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x589408);_0x67212['length']&&(_0x975bdc['disconnect'](),_0xa7093c(_0x67212[0x0]['addedNodes'][0x0]));});_0x975bdc['observe'](_0x36bf1c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2dfd9b){_0x2dfd9b['addEventListener']('apply',_0x4fb5cf=>{this['fire']('apply',{'imageSrc':_0x4fb5cf['detail']['cdnUrl']});}),_0x2dfd9b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const rt=/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5081c4();var nt=class extends rt{['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x69f9a5,_0x3836f0,_0x1d54e0){super(),this['_editor']=_0x69f9a5,this['_dialog']=_0x3836f0,this['_imageElement']=_0x1d54e0,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 _0x3677fe=this['_imageElement'],_0x291879=_0x3677fe['getAttribute']('uploadcareImageId'),_0x34bea1=_0x3677fe['getAttribute']('src');if(_0x291879)await this['_loadImageInfo'](_0x291879,_0x34bea1);else{if(this['_imageCache']['has'](_0x34bea1)){const _0x52bf44=this['_imageCache']['get'](_0x34bea1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x52bf44['url'],this['imageDimension']=_0x52bf44['dimension'],this['imageId']=_0x52bf44['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x156683}=this['_editor'],t=_0x156683['t'],_0x4abe24=new st(_0x156683,this['imageStatus'],this['_attributes']);_0x4abe24['bind']('status')['to'](this,'imageStatus'),_0x4abe24['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4abe24['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4abe24['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4abe24,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1356e4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4abe24,'position':_0x534030['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4abe24['focus']();},'onHide':()=>{_0x4abe24['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x52f631=>!H(_0x52f631,_0x4abe24['element'])}});}['_loadImageInfo'](_0x28b76b,_0x4dff9c){return Q['getInfo'](_0x28b76b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5c2c79=>{const {width:_0x1db07e,height:_0x368e4f}=_0x5c2c79['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4dff9c,this['imageDimension']={'width':_0x1db07e,'height':_0x368e4f},this['imageId']=_0x28b76b;})['catch'](_0x5b7775=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5b7775['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x41e68e,_0x4c871c){return this['_getImageAsFile'](_0x41e68e)['then'](_0x502c4e=>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':_0x4c871c['signal'],'file':_0x502c4e,'onProgress':_0x43a1ff=>{_0x43a1ff&&_0x43a1ff['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x43a1ff['value']));}}))['then'](_0x40f144=>{const {width:_0x477c2a,height:_0x68203a}=_0x40f144['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40f144['cdnUrl'],this['imageDimension']={'width':_0x477c2a,'height':_0x68203a},this['imageId']=_0x40f144['uuid'],this['imageUploadProgress']=null;const _0x56bf39=_0x41e68e['getAttribute']('src');this['_imageCache']['set'](_0x56bf39,{'id':_0x40f144['uuid'],'url':_0x40f144['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2dc3bb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2dc3bb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4cb6c7,_0x9b780a){_0x4cb6c7['on']('apply',(_0x3c3a19,_0x46c527)=>{this['_replaceImage'](_0x9b780a,_0x46c527['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4cb6c7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4cb6c7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x53c9ac,_0x29d8b9,_0x2b03cb){const _0x5c256a=this['_editor'],{width:_0x3ab105,height:_0x10ba09}=j(_0x29d8b9,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x18dd7b,imageSources:_0x46349c}=B(_0x29d8b9,_0x3ab105);_0x5c256a['model']['change'](_0x2d851e=>{if('$graveyard'!==_0x53c9ac['root']['rootName'])_0x2d851e['setSelection'](_0x53c9ac,'on'),_0x5c256a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x53c9ac['getAttributes']()),'uploadcareImageId':_0x2b03cb,'src':_0x18dd7b,'sources':_0x46349c,'width':_0x3ab105,'height':_0x10ba09},_0x53c9ac);else{_0x5c256a['execute']('insertImage',{'imageType':_0x53c9ac['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x53c9ac['getAttributes']()),'uploadcareImageId':_0x2b03cb,'src':_0x18dd7b,'sources':_0x46349c,'width':_0x3ab105,'height':_0x10ba09}});const _0x1e84c2=_0x53c9ac['getChildren']();_0x53c9ac=_0x5c256a['model']['document']['selection']['getSelectedElement']();for(const _0x25d3d8 of _0x1e84c2)_0x2d851e['append'](_0x2d851e['cloneElement'](_0x25d3d8),_0x53c9ac);}_0x2d851e['setSelection'](_0x53c9ac,'on');});}async['_getImageAsFile'](_0x569580){const _0x48838a=_0x2f4c45['window'],_0x14f735=_0x2f4c45['document']['location']['href'],_0x52883a=new _0x48838a['URL'](_0x569580['getAttribute']('src'),_0x14f735);if('data:'===_0x52883a['protocol']){const _0x3787a5=_0x52883a['href']['split'](','),_0xba1046=_0x3787a5[0x0]['match'](/:(.*?);/)[0x1],_0x5b3699=_0xba1046['split']('/')[0x1],_0x4e8649=_0x48838a['atob'](_0x3787a5[_0x3787a5['length']-0x1]);let _0x1ff975=_0x4e8649['length'];const _0x2ee1a1=new _0x48838a['Uint8Array'](_0x1ff975);for(;_0x1ff975--;)_0x2ee1a1[_0x1ff975]=_0x4e8649['charCodeAt'](_0x1ff975);return new _0x48838a['File']([_0x2ee1a1],'image.'+_0x5b3699,{'type':_0xba1046});}const _0x345a1d=_0x52883a['href']['split']('/'),_0x10b2a7=_0x345a1d[_0x345a1d['length']-0x1],_0x44459f=_0x10b2a7['split']('.')[0x1];return _0x48838a['fetch'](_0x52883a['href'])['then'](_0x3eb96f=>_0x3eb96f['clone']()['blob']())['then'](_0x2bdb11=>new _0x48838a['File']([_0x2bdb11],_0x10b2a7,{'type':'image/'+_0x44459f}));}},at=class extends _0x436ac0{['imageEditController'];static get['requires'](){return[_0x3c11e9];}['_isEditable'];constructor(_0x1defb8){super(_0x1defb8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4eea08){const _0x1d78b5=M(_0x4eea08);return _0x3d99dd=>!(!_0x3d99dd||!_0x3d99dd['is']('element','imageBlock')&&!_0x3d99dd['is']('element','imageInline'))&&(!!_0x3d99dd['hasAttribute']('uploadcareImageId')||!!_0x3d99dd['hasAttribute']('src')&&_0x1d78b5(_0x3d99dd['getAttribute']('src')));}(_0x1defb8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5ad2cf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5ad2cf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3315a5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3315a5&&(_0x3315a5['is']('element','imageBlock')||_0x3315a5['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x3c11e9),_0x3315a5),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x436ac0{['refresh'](){const _0x298270=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x298270&&(_0x298270['is']('element','imageBlock')||_0x298270['is']('element','imageInline')));}['execute'](_0x55ccba){const _0x3ab769=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5f2976=>{_0x5f2976['setAttributes'](_0x55ccba,_0x3ab769),_0x5f2976['removeAttribute']('srcset',_0x3ab769),_0x5f2976['removeAttribute']('sizes',_0x3ab769);});}},ct=class extends _0x6a6e99{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[Z,_0x324d33,_0x555374,_0x1e46c7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x53f9f0}=this;_0x53f9f0['commands']['add']('uploadcareImageEdit',new at(_0x53f9f0)),_0x53f9f0['commands']['add']('uploadcareImageReplace',new ot(_0x53f9f0));}},lt=class extends _0x6a6e99{['_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 _0x49888c=this['editor'];_0x49888c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1692ea=>{const _0x5d7036=_0x49888c['commands']['get']('uploadcareImageEdit'),_0x36b4e6=new _0x53a1de(_0x1692ea),t=_0x1692ea['t'];return _0x36b4e6['set']({'icon':_0x1356e4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x36b4e6['bind']('isEnabled')['to'](_0x5d7036),_0x36b4e6['bind']('isOn')['to'](_0x5d7036,'isActive'),this['listenTo'](_0x36b4e6,'execute',()=>{_0x49888c['execute']('uploadcareImageEdit'),_0x49888c['editing']['view']['focus']();}),_0x36b4e6;}),this['_initConfig']();}['_initConfig'](){const _0x3aad17=_0x545518(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3aad17),this['listenTo'](this['editor'],'destroy',()=>{_0x3aad17['remove']();});}},ut=class extends _0x6a6e99{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 _0x4e9db0,Plugin as _0x3e1720}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x44e015,IconError as _0x52d4de,IconFacebook as _0x2e82f7,IconGoogleDrive as _0xfee826,IconGooglePhotos as _0x31269f,IconOneDrive as _0x14f801,IconUploadcareImageEdit as _0x4d5388,IconUploadcareImageUpload as _0x9c1ec4,IconUploadcareLink as _0x4944d8}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x2cb830,Dialog as _0x4bcba1,DialogViewPosition as _0x547c93,FocusCycler as _0x52ab5c,IconView as _0x1e54e6,MenuBarMenuListItemButtonView as _0x565c58,Notification as _0x1fb8fe,SpinnerView as _0x28e1c7,View as _0xbb8c0a}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x33633a,FocusTracker as _0x1cd679,ObservableMixin as _0x5c5856,createElement as _0x1b139c,getAncestors as _0x47d414,global as _0x1ae3a5,uid as _0x128b26}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x279baa,ImageUploadEditing as _0x485aee,ImageUploadProgress as _0x1a613f,ImageUtils as _0x1ba705,PictureEditing as _0x2d3baf}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x23d61e}from'@ckeditor/ckeditor5-upload';import{info as _0x3744d9,uploadFile as _0x19d243}from'@uploadcare/upload-client';import*as _0x3fde03 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x18e7a6,_0x1d714d,_0x3f7a7c){const t=_0x18e7a6['t'],_0xdd9344=_0x18e7a6['t'];switch(_0x1d714d){case'local':return{'text':_0xdd9344('Insert'===_0x3f7a7c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xdd9344('From\x20computer')};case'url':return{'text':'Insert'===_0x3f7a7c?_0xdd9344('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xdd9344('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x3f7a7c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x3f7a7c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x3f7a7c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x3f7a7c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x3f7a7c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1d714d;}}var V=class extends _0x3e1720{['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 _0xdeebcd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4be9e5;for(const _0x114b27 in _0xdeebcd){const _0x39403c=_0x114b27,_0x399da5=_0xdeebcd[_0x39403c];if('uploadcareLicenseKeyValid'==_0x399da5||'uploadcareLicenseKeyInvalid'==_0x399da5||'uploadcareLicenseKeyExpired'==_0x399da5||'uploadcareLicenseKeyDomainLimit'==_0x399da5||'uploadcareLicenseKeyNotAllowed'==_0x399da5||'uploadcareLicenseKeyEvaluationLimit'==_0x399da5||'uploadcareLicenseKeyUsageLimit'==_0x399da5){delete _0xdeebcd[_0x39403c],_0x4be9e5=_0x399da5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4be9e5&&_0xdeebcd['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4be9e5&&_0xdeebcd['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4be9e5&&_0xdeebcd['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4be9e5&&_0xdeebcd['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4be9e5&&_0xdeebcd['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4be9e5&&_0xdeebcd['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x467182}=this,_0x22553b=_0x467182['commands']['get']('uploadcare');if(!_0x22553b)return;const _0x11f47a=this['_normalizeConfigSourceList'](_0x467182['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x40b38e,_0x5cf75e)=>{const _0x21aed8=this['_getIntegrationKey'](_0x5cf75e['type']);return _0x40b38e[_0x21aed8]||(_0x40b38e[_0x21aed8]=[]),_0x40b38e[_0x21aed8]['push'](_0x5cf75e),_0x40b38e;},{});_0x467182['plugins']['has']('ImageInsertUI')&&_0x467182['commands']['get']('uploadcare')&&Object['entries'](_0x11f47a)['forEach'](([_0x4fa9c1,_0x1a7f08])=>{_0x467182['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4fa9c1,'observable':()=>_0x22553b,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1a7f08),'formViewCreator':()=>this['_createDropdownButtons'](_0x1a7f08),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1a7f08),'override':'assetManager'!==_0x4fa9c1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x404c12){const {locale:_0x85d9a4}=this['editor'];return _0x404c12['map'](_0x4e326a=>{const _0xb70a09=T(_0x85d9a4,_0x4e326a,'Insert');switch(_0x4e326a){case'local':return{'icon':_0x9c1ec4,'type':'local',..._0xb70a09};case'url':return{'icon':_0x4944d8,'type':'url',..._0xb70a09};case'dropbox':return{'icon':_0x44e015,'type':'dropbox',..._0xb70a09};case'facebook':return{'icon':_0x2e82f7,'type':'facebook',..._0xb70a09};case'gdrive':return{'icon':_0xfee826,'type':'gdrive',..._0xb70a09};case'gphotos':return{'icon':_0x31269f,'type':'gphotos',..._0xb70a09};case'onedrive':return{'icon':_0x14f801,'type':'onedrive',..._0xb70a09};}});}['_getIntegrationKey'](_0x135754){switch(_0x135754){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x5c56af,_0x16c8f5){const _0x1a8f66=this['editor'],_0x5b2e7f=new _0x5c56af(_0x1a8f66['locale']),_0x4d0f18=_0x1a8f66['commands']['get']('uploadcare');return _0x5b2e7f['bind']('isEnabled')['to'](_0x4d0f18),_0x5b2e7f['on']('execute',()=>{_0x4d0f18['execute'](_0x16c8f5);}),_0x5b2e7f;}['_createToolbarButton'](_0x489fe2){const {locale:_0x1b8e14}=this['editor'],_0x2f4225=this['editor']['plugins']['get']('ImageInsertUI'),_0x5daddf=_0x489fe2[0x0],_0x40c3ca=this['_createButton'](_0x2cb830,_0x5daddf['type']);return _0x40c3ca['icon']=_0x5daddf['icon'],_0x40c3ca['bind']('label')['to'](_0x2f4225,'isImageSelected',_0x40668d=>T(_0x1b8e14,_0x5daddf['type'],_0x40668d?'Replace':'Insert')['text']),_0x40c3ca['tooltip']=!0x0,_0x40c3ca;}['_createDropdownButtons'](_0x1f3079){const {locale:_0xbe9a1f}=this['editor'],_0x3b4141=this['editor']['plugins']['get']('ImageInsertUI');return _0x1f3079['map'](_0x1e1a4f=>{const _0x59b348=this['_createButton'](_0x2cb830,_0x1e1a4f['type']);return _0x59b348['withText']=!0x0,_0x59b348['icon']=_0x1e1a4f['icon'],_0x59b348['bind']('label')['to'](_0x3b4141,'isImageSelected',_0x161d8a=>T(_0xbe9a1f,_0x1e1a4f['type'],_0x161d8a?'Replace':'Insert')['text']),_0x59b348;});}['_createMenuBarButtons'](_0x2384eb){return _0x2384eb['map'](_0x257283=>{const _0x34d9bc=this['_createButton'](_0x565c58,_0x257283['type']);return _0x34d9bc['icon']=_0x257283['icon'],_0x34d9bc['label']=_0x257283['shortText'],_0x34d9bc;});}},F=class extends _0xbb8c0a{['focusTracker'];['focusCycler'];constructor(_0x1fce07){super(_0x1fce07),this['focusTracker']=new _0x1cd679(),this['focusCycler']=new _0x52ab5c({'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(_0x40bca0,_0x2f1f49){super(_0x40bca0),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-'+_0x2f1f49}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x19f067,_0xb8d223){const _0x82cc7c=_0x19f067['replace'](/\/$/,'');return{'imageFallbackUrl':_0x19f067,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x14ed90=>_0x14ed90<_0xb8d223)['map'](_0x396c06=>_0x82cc7c+'/-/resize/'+_0x396c06+'x/\x20'+_0x396c06+'w'),_0x19f067+'\x20'+_0xb8d223+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0xb8d223+'px)\x20100vw,\x20'+_0xb8d223+'px','type':'image/webp'}]};}function j(_0x1f43a7,_0x58a6b5,_0x156f8b){const _0x64674f=_0x1f43a7['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x64674f?parseInt(_0x64674f[0x1],0xa):_0x58a6b5,'height':_0x64674f?parseInt(_0x64674f[0x2],0xa):_0x156f8b};}function q(_0x110181,_0x584902){const _0x4329f2=new(_0x33633a())(),_0x491422=_0x110181['plugins']['get']('ImageUtils'),_0x5be013=_0x110181['editing']['mapper']['toViewElement'](_0x584902),_0x129937=_0x491422['findViewImgElement'](_0x5be013),_0x11cb46=_0x110181['editing']['view']['domConverter']['viewToDom'](_0x129937),_0x2fdcaa=_0x584902['getAttribute']('width'),_0x4a3cc8=_0x584902['getAttribute']('height'),_0x23aef4='image-processing';_0x110181['editing']['view']['change'](_0x58d2c9=>{_0x58d2c9['addClass'](_0x23aef4,_0x5be013),_0x58d2c9['setStyle']('aspect-ratio',_0x2fdcaa+'/'+_0x4a3cc8,_0x129937);}),_0x4329f2['listenTo'](_0x11cb46,'load',()=>{_0x4329f2['stopListening'](_0x11cb46,'load'),_0x110181['editing']['view']['change'](_0xcf2097=>{_0xcf2097['removeClass'](_0x23aef4,_0x5be013),_0xcf2097['removeStyle']('aspect-ratio',_0x129937);});});}function M(_0x290d76){if(Array['isArray'](_0x290d76)){const _0x584c45=_0x290d76['map'](M);return _0x264df2=>_0x584c45['some'](_0x47db89=>_0x47db89(_0x264df2));}if('origin'==_0x290d76){const _0x1be636=_0x1ae3a5['window']['location']['origin'];return _0x26731c=>new URL(_0x26731c,_0x1ae3a5['document']['baseURI'])['origin']==_0x1be636;}return'function'==typeof _0x290d76?_0x290d76:_0x290d76 instanceof RegExp?_0x1b48db=>!(!_0x1b48db['match'](_0x290d76)&&!_0x1b48db['replace'](/^https?:\/\//,'')['match'](_0x290d76)):()=>!0x1;}function H(_0x364444,_0x45028e){return _0x47d414(_0x364444['target'])['includes'](_0x45028e);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5c5856();var G=class extends W{['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1353f0,_0x3fe8e5,_0x3ee8d5){super(),this['_editor']=_0x1353f0,this['_editing']=_0x3fe8e5,this['_dialog']=_0x1353f0['plugins']['get'](_0x4bcba1),this['_api']=_0x3fe8e5['ctxElement']['getAPI'](),this['_type']=_0x3ee8d5,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:_0x2a34ff,model:_0x48a4a9}=this['_editor'],_0x23c346=_0x48a4a9['document']['selection']['getSelectedElement'](),_0x24cb5a=_0x23c346&&(_0x23c346['is']('element','imageBlock')||_0x23c346['is']('element','imageInline'));this['_formView']=new $(_0x2a34ff,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x9c1ec4,'title':T(_0x2a34ff,this['_type'],_0x24cb5a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x547c93['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3b86c5=>!H(_0x3b86c5,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xb71c09}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x385e66=>{const _0x21acb3=_0xb71c09['length'];for(const _0x512b8e of _0xb71c09){const _0x591203=_0x512b8e===_0xb71c09[_0x21acb3-0x1],{cdnUrl:_0x1328fc,fileInfo:_0x148556}=_0x512b8e;if(!_0x1328fc||!_0x148556)continue;const {width:_0x5719dc,height:_0x166c0f}=_0x148556['imageInfo'],_0x1d7e92=j(_0x1328fc,_0x5719dc,_0x166c0f),_0x32f9e2=B(_0x1328fc,_0x1d7e92['width']),_0x4d9971={'id':_0x148556['uuid'],'type':'image','attributes':{'imageDimension':_0x1d7e92,..._0x32f9e2}};this['_insertAsset'](_0x4d9971,_0x591203,_0x385e66);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xf4df6c=>{'idle'===_0xf4df6c['detail']['status']&&!_0xf4df6c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}['_insertAsset'](_0x43ca60,_0x5a09ab,_0x42e0be){const _0xad4474=this['_editor']['model']['document']['selection'],_0x501d38=_0xad4474['getSelectedElement'](),_0x441340=!(!_0x501d38||!_0x501d38['is']('element','imageInline'));_0x42e0be['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x43ca60,_0x441340),_0x5a09ab||_0x42e0be['setSelection'](_0xad4474['getLastPosition']());}['_insertImage'](_0x3ab0a4,_0x4f0123){const _0x579c85=this['_editor'],{imageDimension:_0x5af5a8,imageFallbackUrl:_0x186e03,imageSources:_0x427e4c}=_0x3ab0a4['attributes'];_0x579c85['execute']('insertImage',{'imageType':_0x4f0123?'imageInline':null,'source':{'uploadcareImageId':_0x3ab0a4['id'],'src':_0x186e03,'sources':_0x427e4c,..._0x5af5a8}});}},z=class extends _0x4e9db0{['_editing'];['_controller']=null;static get['requires'](){return[_0x4bcba1,Z];}constructor(_0x57b1fe){super(_0x57b1fe),this['_editing']=_0x57b1fe['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x103324){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x103324);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x3fbc8f,..._0x1c2342}){return _0x19d243(_0x3fbc8f,_0x1c2342);}static['getInfo'](_0x596e43,_0x369ded){return _0x3744d9(_0x596e43,_0x369ded);}},J=class extends _0x3e1720{static get['requires'](){return[_0x485aee,_0x1a613f,_0x23d61e,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x57c6b0=this['editor'];if(!_0x57c6b0['config']['get']('uploadcare'))return;_0x57c6b0['plugins']['get'](_0x23d61e)['createUploadAdapter']=_0x4015cb=>new X(_0x4015cb,_0x57c6b0),_0x57c6b0['plugins']['get'](_0x485aee)['on']('uploadComplete',(_0x4b6681,{imageElement:_0x26bfcf,data:_0x20947d})=>{_0x57c6b0['model']['change'](_0x174a01=>{_0x174a01['setAttribute']('uploadcareImageId',_0x20947d['uploadcareImageId'],_0x26bfcf);});});}},X=class{['loader'];['editor'];['controller'];constructor(_0x28f8e9,_0x2372c9){this['loader']=_0x28f8e9,this['editor']=_0x2372c9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x27b93=await this['loader']['file'];return Q['upload']({'file':_0x27b93,'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':_0x24fadb=>{_0x24fadb&&_0x24fadb['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x24fadb['value']);}})['then'](async _0x231ef5=>{const {imageFallbackUrl:_0x5c9718,imageSources:_0x285240}=B(_0x231ef5['cdnUrl'],_0x231ef5['imageInfo']['width']);return{'uploadcareImageId':_0x231ef5['uuid'],'default':_0x5c9718,'sources':_0x285240};})['catch'](()=>{const _0x4d66d3=t('Cannot\x20upload\x20file:')+('\x20'+_0x27b93['name']+'.');return Promise['reject'](_0x4d66d3);});}['abort'](){this['controller']['abort']();}},Z=class extends _0x3e1720{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x2d3baf,J,_0x4bcba1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x406a15){super(_0x406a15),this['ucContextId']=_0x128b26();}['init'](){const _0x218ec7=this['editor'];_0x218ec7['commands']['add']('uploadcare',new z(_0x218ec7));}['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 _0x75d532=_0x1ae3a5['document']['querySelector']('input[uploadcare-file-input]');_0x75d532&&_0x75d532['remove']();}),async function(_0x38dca0){const _0x57c3ca='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0x4e1c65=0x78fc0,_0x31fb9f=window['Date']['now'](),_0x1a3365=_0x38dca0['editor'],_0x47e162=new window['Promise'](_0xdfb757=>{_0x1a3365['once']('ready',_0xdfb757);}),_0x50ee68={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x2c9f0d=_0x1a3365['config']['get']('licenseKey');async function _0x393894(){let _0x5188eb,_0x15a42c=null,_0x5aaaf5=null;try{return'GPL'==_0x2c9f0d?'NotAllowed':(_0x5188eb=_0x4e2f51(),_0x5188eb?(_0x5188eb['usageEndpoint']&&(_0x5aaaf5=_0x5eb2fe(_0x5188eb['usageEndpoint'],_0x5188eb['jti'])),await _0x11ad23()?_0x30edba()?_0xfef9f5()?'Expired':_0x2a2355()?('evaluation'==_0x5188eb['licenseType']&&(_0x15a42c=_0x3574bc('EvaluationLimit')),await _0x4bf6e7()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0xfef9f5(){const _0x4ce247=['evaluation','trial']['includes'](_0x5188eb['licenseType'])?_0x31fb9f/0x3e8:0xe10*_0x4e1c65;return _0x5188eb['exp']<_0x4ce247;}function _0x30edba(){const _0x3b6766=_0x5188eb['features'];return!!_0x3b6766&&(!!_0x3b6766['includes']('*')||!!_0x3b6766['includes']('UPLC'));}function _0x2a2355(){const _0x287e26=_0x5188eb['licensedHosts'];if(!_0x287e26||0x0==_0x287e26['length'])return!0x0;const {hostname:_0x2d5126}=new URL(window['location']['href']);if(_0x287e26['includes'](_0x2d5126))return!0x0;const _0x444384=_0x2d5126['split']('.');return _0x287e26['filter'](_0x34b2c0=>_0x34b2c0['includes']('*'))['map'](_0x59e6f3=>_0x59e6f3['split']('.'))['filter'](_0x1d5028=>_0x1d5028['length']<=_0x444384['length'])['map'](_0x91620a=>Array(_0x444384['length']-_0x91620a['length'])['fill']('*'===_0x91620a[0x0]?'*':'')['concat'](_0x91620a))['some'](_0x536036=>_0x444384['every']((_0x1aaecc,_0x56d1ea)=>_0x536036[_0x56d1ea]===_0x1aaecc||'*'===_0x536036[_0x56d1ea]));}function _0x4bf6e7(){return _0x15a42c&&_0x5aaaf5?new window['Promise']((_0x373752,_0x249add)=>{_0x15a42c['then'](_0x373752,_0x249add),_0x5aaaf5['then'](_0x5c2d5e=>{'Valid'!=_0x5c2d5e&&_0x373752(_0x5c2d5e);},_0x249add);}):_0x15a42c||_0x5aaaf5||'Valid';}}function _0x5eb2fe(_0x309cb5,_0x10fa28){return new window['Promise'](_0x282307=>{if(_0x304e13())return _0x282307('Valid');_0x5f143c(),_0x1a3365['decorate']('_sendUsageRequest');let _0x520c19=!0x1;const _0x42f342=_0x128b26();function _0x56abd1(_0x3ff8b2){return!!_0x3ff8b2&&('object'==typeof _0x3ff8b2||'function'==typeof _0x3ff8b2)&&'function'==typeof _0x3ff8b2['then']&&'function'==typeof _0x3ff8b2['catch'];}function _0xdd861a(_0x45cc86){_0x18f07c(_0x45cc86)['then'](_0x177366=>_0x177366&&'ok'==_0x177366['status']?_0x376995(_0x1fe42e(_0x42f342+_0x10fa28))!=_0x177366['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x216573=>(_0x2eaffd(),_0x216573),()=>{const _0x3428cf=_0x158b2e();return null==_0x3428cf?(_0x2eaffd(),'Valid'):_0x31fb9f-_0x3428cf>0x240c8400?'UsageLimit':'Valid';})['then'](_0x282307)['catch'](()=>{_0x282307('UsageLimit');});const _0x170a73=0x36ee80;function _0x2eaffd(){const _0x800859='llct-'+_0x376995(_0x1fe42e(_0x309cb5)),_0x2b9c3d=_0x4aa0a1(_0x376995(window['Math']['ceil'](_0x31fb9f/_0x170a73)));window['localStorage']['setItem'](_0x800859,_0x2b9c3d);}function _0x158b2e(){const _0x5eb1f1='llct-'+_0x376995(_0x1fe42e(_0x309cb5)),_0x2ea944=window['localStorage']['getItem'](_0x5eb1f1);return _0x2ea944?window['parseInt'](_0x4aa0a1(_0x2ea944),0x10)*_0x170a73:null;}function _0x18f07c(_0x5a481b){return new window['Promise']((_0x43a841,_0x2c92ea)=>{_0x5a481b['then'](_0x43a841,_0x2c92ea),window['setTimeout'](_0x2c92ea,0x1d4c0);});}}_0x1a3365['on']('_sendUsageRequest',(_0x4a200a,_0x237b94)=>{if(_0x237b94[0x0]!=_0x309cb5)return _0x282307('UsageLimit');_0x237b94[0x1]={..._0x237b94[0x1],'requestId':_0x42f342};},{'priority':'high'}),_0x1a3365['on']('_sendUsageRequest',_0x5c0bf2=>{_0x56abd1(_0x5c0bf2['return'])&&(_0x520c19=!0x0,_0xdd861a(_0x5c0bf2['return']));},{'priority':'low'}),_0x47e162['then'](()=>{_0x520c19||_0x282307('UsageLimit');});});function _0x304e13(){return'auto'==_0x1a3365['editing']['view']['_overlayModeHint'];}function _0x5f143c(){_0x1a3365['editing']['view']['_overlayModeHint']='auto';}}function _0x3574bc(_0x211db9){const _0x494d3b=[new window['Promise'](_0x201c9d=>setTimeout(_0x201c9d,0x93ecc)),_0x47e162['then'](()=>new window['Promise'](_0x57edef=>{let _0x375532=0x0;_0x1a3365['model']['on']('applyOperation',(_0x1a3b07,_0x13e3a4)=>{_0x13e3a4[0x0]['isDocumentOperation']&&_0x375532++,0x5e8==_0x375532&&(_0x57edef(),_0x1a3b07['off']());});}))];return window['Promise']['race'](_0x494d3b)['then'](()=>_0x211db9);}async function _0x43dfba(){await _0x47e162,_0x1a3365['model']['change']=_0x56ba3a,_0x1a3365['model']['enqueueChange']=_0x56ba3a,_0x1a3365['enableReadOnlyMode']('model');}function _0x4c53b5(_0x34f59b){const _0x34dab3=_0x56ce02();_0x1a3365[_0x34dab3]='uploadcareLicenseKey'+_0x34f59b,'Valid'!=_0x34f59b&&_0x43dfba();}function _0x56ce02(){const _0x62d2fe=window['String'](window['performance']['now']())['replace']('.','');let _0x717a17='h';for(let _0x3de317=0x0;_0x3de317<_0x62d2fe['length'];_0x3de317+=0x2){let _0x167ac2=window['parseInt'](_0x62d2fe['substring'](_0x3de317,_0x3de317+0x2));_0x167ac2>=0x3e&&(_0x167ac2-=0x3e),_0x717a17+=_0x57c3ca[_0x167ac2];}return _0x717a17;}function _0x4e2f51(){const _0x545a8b=_0x2c9f0d['split']('.');if(0x3!=_0x545a8b['length'])return null;return _0x11692e(_0x545a8b[0x1]);function _0x11692e(_0x16db02){const _0xc4debc=_0x578345(_0x16db02);return _0xc4debc&&_0x53d40f()?_0xc4debc:null;function _0x53d40f(){const _0x26ae8f=_0xc4debc['jti'],_0x509f05=window['parseInt'](_0x26ae8f['substring'](_0x26ae8f['length']-0x8),0x10),_0x1f0eb5={..._0xc4debc,'jti':_0x26ae8f['substring'](0x0,_0x26ae8f['length']-0x8)};return delete _0x1f0eb5['vc'],_0x1fe42e(_0x1f0eb5)==_0x509f05;}}}async function _0x11ad23(){let _0x1400a8=!0x0;try{const [_0x494441,_0x8c5481,_0x3fe511]=_0x2c9f0d['split']('.');return _0x570d75(_0x494441),await _0xc4a30(_0x494441,_0x8c5481,_0x3fe511),_0x1400a8;}catch{return!0x1;}function _0x570d75(_0x4e1e26){const _0x284527=_0x578345(_0x4e1e26);_0x284527&&'ES256'==_0x284527['alg']||(_0x1400a8=!0x1);}async function _0xc4a30(_0x4b5cc9,_0x271cbb,_0x1a6250){const _0xcf9174=window['Uint8Array']['from'](_0x2a47a0(_0x1a6250),_0x53676c=>_0x53676c['charCodeAt'](0x0)),_0x32c125=new window['TextEncoder']()['encode'](_0x4b5cc9+'.'+_0x271cbb),_0x6bd004=window['crypto']['subtle'];if(!_0x6bd004)return;const _0x5d376d=await _0x6bd004['importKey']('jwk',_0x50ee68,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x6bd004['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5d376d,_0xcf9174,_0x32c125)||(_0x1400a8=!0x1);}}function _0x578345(_0x45d198){return _0x45d198['startsWith']('ey')?JSON['parse'](_0x2a47a0(_0x45d198)):null;}function _0x2a47a0(_0x3dc535){return window['atob'](_0x3dc535['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1fe42e(_0x320510){let _0xb294e8=0x1505;function _0x5e91fe(_0x457483){for(let _0x5b4126=0x0;_0x5b4126<_0x457483['length'];_0x5b4126++){const _0x45a635=_0x457483['charCodeAt'](_0x5b4126);_0xb294e8=(_0xb294e8<<0x5)+_0xb294e8+_0x45a635,_0xb294e8&=_0xb294e8;}}function _0x7e9545(_0x20c7af){Array['isArray'](_0x20c7af)?_0x20c7af['forEach'](_0x7e9545):_0x20c7af&&'object'==typeof _0x20c7af?Object['entries'](_0x20c7af)['sort']()['forEach'](([_0x670b62,_0x59ae22])=>{_0x5e91fe(_0x670b62),_0x7e9545(_0x59ae22);}):_0x5e91fe(window['String'](_0x20c7af));}return _0x7e9545(_0x320510),_0xb294e8>>>0x0;}function _0x376995(_0xb61537){return _0xb61537['toString'](0x10)['padStart'](0x8,'0');}function _0x4aa0a1(_0x3d54da){return _0x3d54da['split']('')['reverse']()['join']('');}function _0x56ba3a(){}_0x4c53b5(await _0x393894());}(this);}['_initSchema'](){const _0x467329=this['editor']['model']['schema'];_0x467329['isRegistered']('imageBlock')&&_0x467329['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x467329['isRegistered']('imageInline')&&_0x467329['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1aa21c=this['editor'];_0x1aa21c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1aa21c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x568c00=>_0x568c00['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5f52d2=_0x1aa21c['commands']['get']('replaceImageSource');_0x5f52d2&&this['listenTo'](_0x5f52d2,'cleanupImage',(_0x459eac,[_0x37c02f,_0x1921a1])=>{_0x37c02f['removeAttribute']('uploadcareImageId',_0x1921a1);});}['_initConfig'](){const _0x20ba5a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1d2e5f=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1b139c(_0x1ae3a5['document'],'uc-config',{..._0x20ba5a,'pubkey':_0x1d2e5f,'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']=_0x556a39=>{if('closeMax'==_0x556a39)return'#uc-icon-arrow-down';},_0x1ae3a5['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1b139c(_0x1ae3a5['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1ae3a5['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1c1940=this['editor']['commands']['get']('insertImage');_0x1c1940&&this['listenTo'](_0x1c1940,'execute',()=>{const _0x56400c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x56400c&&_0x56400c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x56400c);});});const _0x14f49f=this['editor']['commands']['get']('uploadcareImageReplace');_0x14f49f&&this['listenTo'](_0x14f49f,'execute',()=>{const _0x407e8f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x407e8f&&_0x407e8f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x407e8f);});});}},Y=class extends _0x3e1720{static get['requires'](){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1aab62){super(_0x1aab62),_0x1aab62['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x3fde03['defineComponents'](_0x3fde03),this['_defineLocale']();}['_defineLocale'](){const _0x52ba0d=this['editor']['config']['get']('uploadcare.locale'),_0x2e49e6=this['editor']['locale']['contentLanguage'];_0x52ba0d&&_0x3fde03['defineLocale'](_0x2e49e6,_0x52ba0d);}},tt=class extends _0xbb8c0a{constructor(_0x75a36){super(_0x75a36);const t=_0x75a36['t'],_0x35dbe9=this['bindTemplate'],_0x5f31ad=new _0x28e1c7();_0x5f31ad['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':[_0x5f31ad,{'text':_0x35dbe9['to']('imageUploadProgress',_0x5572d3=>t('Loading\x20image...')+'\x20('+(_0x5572d3||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 _0xbb8c0a{constructor(_0x6b43d3){super(_0x6b43d3);const t=_0x6b43d3['t'];this['set']('errorType',null);const _0x2da532=new _0x2cb830(_0x6b43d3);_0x2da532['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2da532['withText']=!0x0,_0x2da532['class']='ck-button-action',_0x2da532['on']('execute',()=>{this['fire']('retry');}),_0x2da532['bind']('isVisible')['to'](this,'errorType',_0x1192ec=>'NotFound'!==_0x1192ec);const _0x14d418=new _0x1e54e6();_0x14d418['content']=_0x52d4de,_0x14d418['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x8df987=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':[_0x14d418,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x8df987['to']('errorType',_0x187403=>t('NotFound'!==_0x187403?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2da532]},{'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 _0xbb8c0a{constructor(_0x3de9fb,_0x23f1cf){super(_0x3de9fb);const _0x368c2b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x23f1cf,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x368c2b['to']('imageSrc')}});}},st=class extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5bc40b,_0x2647f2,_0x3f6a53){super(_0x5bc40b),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x5bc40b),this['_errorView']=new et(_0x5bc40b),this['_editingView']=new it(_0x5bc40b,_0x3f6a53),this['_focusableView']=new _0xbb8c0a(_0x5bc40b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2647f2),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'],_0x2f87b6=>{this['_addUploadcareImageEditorListeners'](_0x2f87b6);});}),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'](_0x6ce47d,_0x2c8250){const _0x5f0433='uc-cloud-image-editor',_0x1db01f=_0x6ce47d['querySelector'](_0x5f0433);if(_0x1db01f)return _0x2c8250(_0x1db01f);const _0x2d04ec=new MutationObserver(_0x4ece28=>{const _0x42cbf2=_0x4ece28['filter'](_0x5044bb=>_0x5044bb['target']===_0x6ce47d&&_0x5044bb['addedNodes']['length']>0x0&&_0x5044bb['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5f0433);_0x42cbf2['length']&&(_0x2d04ec['disconnect'](),_0x2c8250(_0x42cbf2[0x0]['addedNodes'][0x0]));});_0x2d04ec['observe'](_0x6ce47d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x536eed){_0x536eed['addEventListener']('apply',_0x64eb5=>{this['fire']('apply',{'imageSrc':_0x64eb5['detail']['cdnUrl']});}),_0x536eed['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const rt=/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5c5856();var nt=class extends rt{['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3a4b03,_0x5cb956,_0xba8b2c){super(),this['_editor']=_0x3a4b03,this['_dialog']=_0x5cb956,this['_imageElement']=_0xba8b2c,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 _0x5453b2=this['_imageElement'],_0x4e98b1=_0x5453b2['getAttribute']('uploadcareImageId'),_0x5e9bff=_0x5453b2['getAttribute']('src');if(_0x4e98b1)await this['_loadImageInfo'](_0x4e98b1,_0x5e9bff);else{if(this['_imageCache']['has'](_0x5e9bff)){const _0x12f576=this['_imageCache']['get'](_0x5e9bff);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x12f576['url'],this['imageDimension']=_0x12f576['dimension'],this['imageId']=_0x12f576['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x406b1f}=this['_editor'],t=_0x406b1f['t'],_0x64f0ae=new st(_0x406b1f,this['imageStatus'],this['_attributes']);_0x64f0ae['bind']('status')['to'](this,'imageStatus'),_0x64f0ae['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x64f0ae['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x64f0ae['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x64f0ae,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4d5388,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x64f0ae,'position':_0x547c93['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x64f0ae['focus']();},'onHide':()=>{_0x64f0ae['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xb99f24=>!H(_0xb99f24,_0x64f0ae['element'])}});}['_loadImageInfo'](_0x434b4d,_0x105b53){return Q['getInfo'](_0x434b4d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x23c6b3=>{const {width:_0x278e50,height:_0x39ed2c}=_0x23c6b3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x105b53,this['imageDimension']={'width':_0x278e50,'height':_0x39ed2c},this['imageId']=_0x434b4d;})['catch'](_0xd9bdb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xd9bdb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3930f7,_0x190bef){return this['_getImageAsFile'](_0x3930f7)['then'](_0x29399=>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':_0x190bef['signal'],'file':_0x29399,'onProgress':_0x5372d6=>{_0x5372d6&&_0x5372d6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5372d6['value']));}}))['then'](_0x1e8f18=>{const {width:_0x56aa9e,height:_0x2c22e9}=_0x1e8f18['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1e8f18['cdnUrl'],this['imageDimension']={'width':_0x56aa9e,'height':_0x2c22e9},this['imageId']=_0x1e8f18['uuid'],this['imageUploadProgress']=null;const _0x167677=_0x3930f7['getAttribute']('src');this['_imageCache']['set'](_0x167677,{'id':_0x1e8f18['uuid'],'url':_0x1e8f18['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x535d27=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x535d27['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x37194a,_0x21b2bc){_0x37194a['on']('apply',(_0x500427,_0x53de0d)=>{this['_replaceImage'](_0x21b2bc,_0x53de0d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x37194a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x37194a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x14c61b,_0xfc0641,_0x563ff8){const _0x21bd8b=this['_editor'],{width:_0x2d4746,height:_0x530081}=j(_0xfc0641,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4f57fc,imageSources:_0x165188}=B(_0xfc0641,_0x2d4746);_0x21bd8b['model']['change'](_0x338aba=>{if('$graveyard'!==_0x14c61b['root']['rootName'])_0x338aba['setSelection'](_0x14c61b,'on'),_0x21bd8b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x14c61b['getAttributes']()),'uploadcareImageId':_0x563ff8,'src':_0x4f57fc,'sources':_0x165188,'width':_0x2d4746,'height':_0x530081},_0x14c61b);else{_0x21bd8b['execute']('insertImage',{'imageType':_0x14c61b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x14c61b['getAttributes']()),'uploadcareImageId':_0x563ff8,'src':_0x4f57fc,'sources':_0x165188,'width':_0x2d4746,'height':_0x530081}});const _0x3a7b06=_0x14c61b['getChildren']();_0x14c61b=_0x21bd8b['model']['document']['selection']['getSelectedElement']();for(const _0x5e0c6b of _0x3a7b06)_0x338aba['append'](_0x338aba['cloneElement'](_0x5e0c6b),_0x14c61b);}_0x338aba['setSelection'](_0x14c61b,'on');});}async['_getImageAsFile'](_0x297ceb){const _0x1c6213=_0x1ae3a5['window'],_0x5e82dc=_0x1ae3a5['document']['location']['href'],_0x21da2a=new _0x1c6213['URL'](_0x297ceb['getAttribute']('src'),_0x5e82dc);if('data:'===_0x21da2a['protocol']){const _0x30eeba=_0x21da2a['href']['split'](','),_0x518de9=_0x30eeba[0x0]['match'](/:(.*?);/)[0x1],_0x7c7610=_0x518de9['split']('/')[0x1],_0x2c2266=_0x1c6213['atob'](_0x30eeba[_0x30eeba['length']-0x1]);let _0x57b1eb=_0x2c2266['length'];const _0x6119e5=new _0x1c6213['Uint8Array'](_0x57b1eb);for(;_0x57b1eb--;)_0x6119e5[_0x57b1eb]=_0x2c2266['charCodeAt'](_0x57b1eb);return new _0x1c6213['File']([_0x6119e5],'image.'+_0x7c7610,{'type':_0x518de9});}const _0xc807fa=_0x21da2a['href']['split']('/'),_0x27dbf1=_0xc807fa[_0xc807fa['length']-0x1],_0x27c754=_0x27dbf1['split']('.')[0x1];return _0x1c6213['fetch'](_0x21da2a['href'])['then'](_0x4e9644=>_0x4e9644['clone']()['blob']())['then'](_0x1a4b1c=>new _0x1c6213['File']([_0x1a4b1c],_0x27dbf1,{'type':'image/'+_0x27c754}));}},at=class extends _0x4e9db0{['imageEditController'];static get['requires'](){return[_0x4bcba1];}['_isEditable'];constructor(_0x406df1){super(_0x406df1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1edffc){const _0x3daa01=M(_0x1edffc);return _0x1cfc3e=>!(!_0x1cfc3e||!_0x1cfc3e['is']('element','imageBlock')&&!_0x1cfc3e['is']('element','imageInline'))&&(!!_0x1cfc3e['hasAttribute']('uploadcareImageId')||!!_0x1cfc3e['hasAttribute']('src')&&_0x3daa01(_0x1cfc3e['getAttribute']('src')));}(_0x406df1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4476cf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4476cf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x20760b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x20760b&&(_0x20760b['is']('element','imageBlock')||_0x20760b['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x4bcba1),_0x20760b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x4e9db0{['refresh'](){const _0x32ce6a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x32ce6a&&(_0x32ce6a['is']('element','imageBlock')||_0x32ce6a['is']('element','imageInline')));}['execute'](_0x517d42){const _0x1a9bec=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x28a6fb=>{_0x28a6fb['setAttributes'](_0x517d42,_0x1a9bec),_0x28a6fb['removeAttribute']('srcset',_0x1a9bec),_0x28a6fb['removeAttribute']('sizes',_0x1a9bec);});}},ct=class extends _0x3e1720{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[Z,_0x1fb8fe,_0x1ba705,_0x279baa];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x241bf6}=this;_0x241bf6['commands']['add']('uploadcareImageEdit',new at(_0x241bf6)),_0x241bf6['commands']['add']('uploadcareImageReplace',new ot(_0x241bf6));}},lt=class extends _0x3e1720{['_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 _0x3c21dd=this['editor'];_0x3c21dd['ui']['componentFactory']['add']('uploadcareImageEdit',_0x316897=>{const _0x5cb31a=_0x3c21dd['commands']['get']('uploadcareImageEdit'),_0x2b480c=new _0x2cb830(_0x316897),t=_0x316897['t'];return _0x2b480c['set']({'icon':_0x4d5388,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2b480c['bind']('isEnabled')['to'](_0x5cb31a),_0x2b480c['bind']('isOn')['to'](_0x5cb31a,'isActive'),this['listenTo'](_0x2b480c,'execute',()=>{_0x3c21dd['execute']('uploadcareImageEdit'),_0x3c21dd['editing']['view']['focus']();}),_0x2b480c;}),this['_initConfig']();}['_initConfig'](){const _0x1073be=_0x1b139c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1073be),this['listenTo'](this['editor'],'destroy',()=>{_0x1073be['remove']();});}},ut=class extends _0x3e1720{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':_0x523189=>0x1!=_0x523189}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x102466=>{const {af:{dictionary:_0x415138,getPluralForm:_0xa0f80c}}={'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':_0x3eaa65=>0x1!=_0x3eaa65}};_0x102466['af']||={'dictionary':{},'getPluralForm':null},_0x102466['af']['dictionary']=Object['assign'](_0x102466['af']['dictionary'],_0x415138),_0x102466['af']['getPluralForm']=_0xa0f80c;})(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':_0x4813a3=>0x0==_0x4813a3?0x0:0x1==_0x4813a3?0x1:0x2==_0x4813a3?0x2:_0x4813a3%0x64>=0x3&&_0x4813a3%0x64<=0xa?0x3:_0x4813a3%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x59aedf=>{const {ar:{dictionary:_0x77897a,getPluralForm:_0x3f7ba2}}={'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':_0x10fe47=>0x0==_0x10fe47?0x0:0x1==_0x10fe47?0x1:0x2==_0x10fe47?0x2:_0x10fe47%0x64>=0x3&&_0x10fe47%0x64<=0xa?0x3:_0x10fe47%0x64>=0xb?0x4:0x5}};_0x59aedf['ar']||={'dictionary':{},'getPluralForm':null},_0x59aedf['ar']['dictionary']=Object['assign'](_0x59aedf['ar']['dictionary'],_0x77897a),_0x59aedf['ar']['getPluralForm']=_0x3f7ba2;})(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':_0xfab0=>0x1!=_0xfab0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x399ba6=>{const {ast:{dictionary:_0x4d97c7,getPluralForm:_0x532528}}={'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':_0x23af26=>0x1!=_0x23af26}};_0x399ba6['ast']||={'dictionary':{},'getPluralForm':null},_0x399ba6['ast']['dictionary']=Object['assign'](_0x399ba6['ast']['dictionary'],_0x4d97c7),_0x399ba6['ast']['getPluralForm']=_0x532528;})(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':_0x431bc6=>0x1!=_0x431bc6}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xd2abf7=>{const {az:{dictionary:_0x1148fe,getPluralForm:_0xa6f810}}={'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':_0x43e054=>0x1!=_0x43e054}};_0xd2abf7['az']||={'dictionary':{},'getPluralForm':null},_0xd2abf7['az']['dictionary']=Object['assign'](_0xd2abf7['az']['dictionary'],_0x1148fe),_0xd2abf7['az']['getPluralForm']=_0xa6f810;})(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':_0x5025b7=>_0x5025b7%0xa==0x1&&_0x5025b7%0x64!=0xb?0x0:_0x5025b7%0xa>=0x2&&_0x5025b7%0xa<=0x4&&(_0x5025b7%0x64<0xa||_0x5025b7%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xd36c89=>{const {be:{dictionary:_0x14346d,getPluralForm:_0x23376c}}={'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':_0x1201b6=>_0x1201b6%0xa==0x1&&_0x1201b6%0x64!=0xb?0x0:_0x1201b6%0xa>=0x2&&_0x1201b6%0xa<=0x4&&(_0x1201b6%0x64<0xa||_0x1201b6%0x64>=0x14)?0x1:0x2}};_0xd36c89['be']||={'dictionary':{},'getPluralForm':null},_0xd36c89['be']['dictionary']=Object['assign'](_0xd36c89['be']['dictionary'],_0x14346d),_0xd36c89['be']['getPluralForm']=_0x23376c;})(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':_0x4f17af=>0x1!=_0x4f17af}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2edbb4=>{const {bg:{dictionary:_0x30ac46,getPluralForm:_0x27f2f7}}={'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':_0x14d47a=>0x1!=_0x14d47a}};_0x2edbb4['bg']||={'dictionary':{},'getPluralForm':null},_0x2edbb4['bg']['dictionary']=Object['assign'](_0x2edbb4['bg']['dictionary'],_0x30ac46),_0x2edbb4['bg']['getPluralForm']=_0x27f2f7;})(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':_0x5389ff=>0x1!=_0x5389ff}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2ae46d=>{const {bn:{dictionary:_0x21cdc1,getPluralForm:_0x351059}}={'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':_0x4ca823=>0x1!=_0x4ca823}};_0x2ae46d['bn']||={'dictionary':{},'getPluralForm':null},_0x2ae46d['bn']['dictionary']=Object['assign'](_0x2ae46d['bn']['dictionary'],_0x21cdc1),_0x2ae46d['bn']['getPluralForm']=_0x351059;})(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':_0x1072b0=>_0x1072b0%0xa==0x1&&_0x1072b0%0x64!=0xb?0x0:_0x1072b0%0xa>=0x2&&_0x1072b0%0xa<=0x4&&(_0x1072b0%0x64<0xa||_0x1072b0%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x46af9b=>{const {bs:{dictionary:_0x470402,getPluralForm:_0x2ac86a}}={'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':_0x2b63f9=>_0x2b63f9%0xa==0x1&&_0x2b63f9%0x64!=0xb?0x0:_0x2b63f9%0xa>=0x2&&_0x2b63f9%0xa<=0x4&&(_0x2b63f9%0x64<0xa||_0x2b63f9%0x64>=0x14)?0x1:0x2}};_0x46af9b['bs']||={'dictionary':{},'getPluralForm':null},_0x46af9b['bs']['dictionary']=Object['assign'](_0x46af9b['bs']['dictionary'],_0x470402),_0x46af9b['bs']['getPluralForm']=_0x2ac86a;})(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':_0x250691=>0x1!=_0x250691}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1dbdc1=>{const {ca:{dictionary:_0x2716c1,getPluralForm:_0x1d4f5c}}={'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':_0x11e512=>0x1!=_0x11e512}};_0x1dbdc1['ca']||={'dictionary':{},'getPluralForm':null},_0x1dbdc1['ca']['dictionary']=Object['assign'](_0x1dbdc1['ca']['dictionary'],_0x2716c1),_0x1dbdc1['ca']['getPluralForm']=_0x1d4f5c;})(window['CKEDITOR_TRANSLATIONS']||={});
|