@ckeditor/ckeditor5-uploadcare 48.3.0-alpha.2 → 48.3.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0xb0fef4,Plugin as _0x44f47f}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0xd3e53e,IconError as _0x431484,IconFacebook as _0x11d0af,IconGoogleDrive as _0x375233,IconGooglePhotos as _0x16913f,IconOneDrive as _0x32eec4,IconUploadcareImageEdit as _0x3f9e29,IconUploadcareImageUpload as _0x2897fd,IconUploadcareLink as _0x1a190b}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x6a92ff,Dialog as _0x42e81b,DialogViewPosition as _0xe47dbe,FocusCycler as _0x34e882,IconView as _0x3b3898,MenuBarMenuListItemButtonView as _0x2ed914,Notification as _0x1e4f0f,SpinnerView as _0x56228c,View as _0x35e03c}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x4490bf,FocusTracker as _0x10871b,ObservableMixin as _0x674f5a,createElement as _0x2c838f,getAncestors as _0x4b6359,global as _0x4dfba9,uid as _0x1273e4}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x3bd8f2,ImageUploadEditing as _0x5e97ad,ImageUploadProgress as _0x1ee60a,ImageUtils as _0x6b9103,PictureEditing as _0x1dfedf}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x3e9689}from'@ckeditor/ckeditor5-upload';import{info as _0x1144c6,uploadFile as _0x1aa3ee}from'@uploadcare/upload-client';import*as _0x23be51 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x1e8f63,_0x5d1dcb,_0x46f8ed){const t=_0x1e8f63['t'],_0x49aac0=_0x1e8f63['t'];switch(_0x5d1dcb){case'local':return{'text':_0x49aac0('Insert'===_0x46f8ed?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x49aac0('From\x20computer')};case'url':return{'text':'Insert'===_0x46f8ed?_0x49aac0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x49aac0('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x46f8ed?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x46f8ed?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x46f8ed?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x46f8ed?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x46f8ed?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5d1dcb;}}var V=class extends _0x44f47f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x451bd1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x19abe6;for(const _0x51cfad in _0x451bd1){const _0x1d7f68=_0x51cfad,_0x54f313=_0x451bd1[_0x1d7f68];if('uploadcareLicenseKeyValid'==_0x54f313||'uploadcareLicenseKeyInvalid'==_0x54f313||'uploadcareLicenseKeyExpired'==_0x54f313||'uploadcareLicenseKeyDomainLimit'==_0x54f313||'uploadcareLicenseKeyNotAllowed'==_0x54f313||'uploadcareLicenseKeyEvaluationLimit'==_0x54f313||'uploadcareLicenseKeyUsageLimit'==_0x54f313){delete _0x451bd1[_0x1d7f68],_0x19abe6=_0x54f313,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x19abe6&&_0x451bd1['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x19abe6&&_0x451bd1['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x19abe6&&_0x451bd1['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x19abe6&&_0x451bd1['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x19abe6&&_0x451bd1['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x19abe6&&_0x451bd1['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5211bb}=this,_0x3942b3=_0x5211bb['commands']['get']('uploadcare');if(!_0x3942b3)return;const _0x32c82f=this['_normalizeConfigSourceList'](_0x5211bb['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4137ae,_0x1e3429)=>{const _0x38b1d2=this['_getIntegrationKey'](_0x1e3429['type']);return _0x4137ae[_0x38b1d2]||(_0x4137ae[_0x38b1d2]=[]),_0x4137ae[_0x38b1d2]['push'](_0x1e3429),_0x4137ae;},{});_0x5211bb['plugins']['has']('ImageInsertUI')&&_0x5211bb['commands']['get']('uploadcare')&&Object['entries'](_0x32c82f)['forEach'](([_0x998c85,_0x3ec2ee])=>{_0x5211bb['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x998c85,'observable':()=>_0x3942b3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3ec2ee),'formViewCreator':()=>this['_createDropdownButtons'](_0x3ec2ee),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3ec2ee),'override':'assetManager'!==_0x998c85});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x37d1c3){const {locale:_0x29fa7f}=this['editor'];return _0x37d1c3['map'](_0x425159=>{const _0x16024a=T(_0x29fa7f,_0x425159,'Insert');switch(_0x425159){case'local':return{'icon':_0x2897fd,'type':'local',..._0x16024a};case'url':return{'icon':_0x1a190b,'type':'url',..._0x16024a};case'dropbox':return{'icon':_0xd3e53e,'type':'dropbox',..._0x16024a};case'facebook':return{'icon':_0x11d0af,'type':'facebook',..._0x16024a};case'gdrive':return{'icon':_0x375233,'type':'gdrive',..._0x16024a};case'gphotos':return{'icon':_0x16913f,'type':'gphotos',..._0x16024a};case'onedrive':return{'icon':_0x32eec4,'type':'onedrive',..._0x16024a};}});}['_getIntegrationKey'](_0xdc77f7){switch(_0xdc77f7){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x37073a,_0x187355){const _0x509453=this['editor'],_0x207499=new _0x37073a(_0x509453['locale']),_0x495749=_0x509453['commands']['get']('uploadcare');return _0x207499['bind']('isEnabled')['to'](_0x495749),_0x207499['on']('execute',()=>{_0x495749['execute'](_0x187355);}),_0x207499;}['_createToolbarButton'](_0x1d8bed){const {locale:_0x5c49ba}=this['editor'],_0x13ba80=this['editor']['plugins']['get']('ImageInsertUI'),_0x5005aa=_0x1d8bed[0x0],_0x550924=this['_createButton'](_0x6a92ff,_0x5005aa['type']);return _0x550924['icon']=_0x5005aa['icon'],_0x550924['bind']('label')['to'](_0x13ba80,'isImageSelected',_0x2ab51b=>T(_0x5c49ba,_0x5005aa['type'],_0x2ab51b?'Replace':'Insert')['text']),_0x550924['tooltip']=!0x0,_0x550924;}['_createDropdownButtons'](_0x34779e){const {locale:_0x6e4bd5}=this['editor'],_0x118a84=this['editor']['plugins']['get']('ImageInsertUI');return _0x34779e['map'](_0x535362=>{const _0xddd4ed=this['_createButton'](_0x6a92ff,_0x535362['type']);return _0xddd4ed['withText']=!0x0,_0xddd4ed['icon']=_0x535362['icon'],_0xddd4ed['bind']('label')['to'](_0x118a84,'isImageSelected',_0x5401d2=>T(_0x6e4bd5,_0x535362['type'],_0x5401d2?'Replace':'Insert')['text']),_0xddd4ed;});}['_createMenuBarButtons'](_0x446788){return _0x446788['map'](_0x27376a=>{const _0x53752b=this['_createButton'](_0x2ed914,_0x27376a['type']);return _0x53752b['icon']=_0x27376a['icon'],_0x53752b['label']=_0x27376a['shortText'],_0x53752b;});}},F=class extends _0x35e03c{['focusTracker'];['focusCycler'];constructor(_0x532b71){super(_0x532b71),this['focusTracker']=new _0x10871b(),this['focusCycler']=new _0x34e882({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}},$=class extends F{constructor(_0x4b702b,_0x40eb2e){super(_0x4b702b),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x40eb2e}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x453760,_0x2939c3){const _0x153978=_0x453760['replace'](/\/$/,'');return{'imageFallbackUrl':_0x453760,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4abe6b=>_0x4abe6b<_0x2939c3)['map'](_0x153273=>_0x153978+'/-/resize/'+_0x153273+'x/\x20'+_0x153273+'w'),_0x453760+'\x20'+_0x2939c3+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2939c3+'px)\x20100vw,\x20'+_0x2939c3+'px','type':'image/webp'}]};}function j(_0x2b6b79,_0x435497,_0x47f896){const _0xd6ffc6=_0x2b6b79['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xd6ffc6?parseInt(_0xd6ffc6[0x1],0xa):_0x435497,'height':_0xd6ffc6?parseInt(_0xd6ffc6[0x2],0xa):_0x47f896};}function q(_0x150e5c,_0x464c80){const _0x3f276a=new(_0x4490bf())(),_0x1c4ea6=_0x150e5c['plugins']['get']('ImageUtils'),_0x38f622=_0x150e5c['editing']['mapper']['toViewElement'](_0x464c80),_0x3fe8f9=_0x1c4ea6['findViewImgElement'](_0x38f622),_0x5bc119=_0x150e5c['editing']['view']['domConverter']['viewToDom'](_0x3fe8f9),_0x1cb1af=_0x464c80['getAttribute']('width'),_0x3d1e35=_0x464c80['getAttribute']('height'),_0x293bfa='image-processing';_0x150e5c['editing']['view']['change'](_0x2110b7=>{_0x2110b7['addClass'](_0x293bfa,_0x38f622),_0x2110b7['setStyle']('aspect-ratio',_0x1cb1af+'/'+_0x3d1e35,_0x3fe8f9);}),_0x3f276a['listenTo'](_0x5bc119,'load',()=>{_0x3f276a['stopListening'](_0x5bc119,'load'),_0x150e5c['editing']['view']['change'](_0x16ae50=>{_0x16ae50['removeClass'](_0x293bfa,_0x38f622),_0x16ae50['removeStyle']('aspect-ratio',_0x3fe8f9);});});}function M(_0x40bff8){if(Array['isArray'](_0x40bff8)){const _0xc9a5af=_0x40bff8['map'](M);return _0x5974ba=>_0xc9a5af['some'](_0x4c6c03=>_0x4c6c03(_0x5974ba));}if('origin'==_0x40bff8){const _0x593b69=_0x4dfba9['window']['location']['origin'];return _0x31ee22=>new URL(_0x31ee22,_0x4dfba9['document']['baseURI'])['origin']==_0x593b69;}return'function'==typeof _0x40bff8?_0x40bff8:_0x40bff8 instanceof RegExp?_0x133e2a=>!(!_0x133e2a['match'](_0x40bff8)&&!_0x133e2a['replace'](/^https?:\/\//,'')['match'](_0x40bff8)):()=>!0x1;}function H(_0x2fad9c,_0x3700ad){return _0x4b6359(_0x2fad9c['target'])['includes'](_0x3700ad);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x674f5a();var G=class extends W{['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4c0745,_0x43aecb,_0xf7c2f2){super(),this['_editor']=_0x4c0745,this['_editing']=_0x43aecb,this['_dialog']=_0x4c0745['plugins']['get'](_0x42e81b),this['_api']=_0x43aecb['ctxElement']['getAPI'](),this['_type']=_0xf7c2f2,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x381176,model:_0x149d94}=this['_editor'],_0x4412f3=_0x149d94['document']['selection']['getSelectedElement'](),_0x42dbc7=_0x4412f3&&(_0x4412f3['is']('element','imageBlock')||_0x4412f3['is']('element','imageInline'));this['_formView']=new $(_0x381176,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2897fd,'title':T(_0x381176,this['_type'],_0x42dbc7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xe47dbe['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3e576b=>!H(_0x3e576b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5ae717}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3d9aac=>{const _0x1fbe29=_0x5ae717['length'];for(const _0x2968cb of _0x5ae717){const _0x12dabd=_0x2968cb===_0x5ae717[_0x1fbe29-0x1],{cdnUrl:_0x4de489,fileInfo:_0x4b9897}=_0x2968cb;if(!_0x4de489||!_0x4b9897)continue;const {width:_0x401fa1,height:_0x314c91}=_0x4b9897['imageInfo'],_0x180216=j(_0x4de489,_0x401fa1,_0x314c91),_0x5348ec=B(_0x4de489,_0x180216['width']),_0xdee849={'id':_0x4b9897['uuid'],'type':'image','attributes':{'imageDimension':_0x180216,..._0x5348ec}};this['_insertAsset'](_0xdee849,_0x12dabd,_0x3d9aac);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x446fd7=>{'idle'===_0x446fd7['detail']['status']&&!_0x446fd7['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}['_insertAsset'](_0x544345,_0x253056,_0x214b10){const _0x3cf96e=this['_editor']['model']['document']['selection'],_0x44c2f0=_0x3cf96e['getSelectedElement'](),_0x39a725=!(!_0x44c2f0||!_0x44c2f0['is']('element','imageInline'));_0x214b10['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x544345,_0x39a725),_0x253056||_0x214b10['setSelection'](_0x3cf96e['getLastPosition']());}['_insertImage'](_0x42758b,_0x3cf269){const _0x4e0802=this['_editor'],{imageDimension:_0x254f1a,imageFallbackUrl:_0x2ea94a,imageSources:_0x4904c9}=_0x42758b['attributes'];_0x4e0802['execute']('insertImage',{'imageType':_0x3cf269?'imageInline':null,'source':{'uploadcareImageId':_0x42758b['id'],'src':_0x2ea94a,'sources':_0x4904c9,..._0x254f1a}});}},z=class extends _0xb0fef4{['_editing'];['_controller']=null;static get['requires'](){return[_0x42e81b,Z];}constructor(_0x3e6c36){super(_0x3e6c36),this['_editing']=_0x3e6c36['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4b7840){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x4b7840);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x5fbf32,..._0x28d723}){return _0x1aa3ee(_0x5fbf32,_0x28d723);}static['getInfo'](_0x7a8187,_0x31444e){return _0x1144c6(_0x7a8187,_0x31444e);}},J=class extends _0x44f47f{static get['requires'](){return[_0x5e97ad,_0x1ee60a,_0x3e9689,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1d62f5=this['editor'];if(!_0x1d62f5['config']['get']('uploadcare'))return;_0x1d62f5['plugins']['get'](_0x3e9689)['createUploadAdapter']=_0x1d65d1=>new X(_0x1d65d1,_0x1d62f5),_0x1d62f5['plugins']['get'](_0x5e97ad)['on']('uploadComplete',(_0x310cd4,{imageElement:_0x260371,data:_0xe6a1d0})=>{_0x1d62f5['model']['change'](_0x4c712e=>{_0x4c712e['setAttribute']('uploadcareImageId',_0xe6a1d0['uploadcareImageId'],_0x260371);});});}},X=class{['loader'];['editor'];['controller'];constructor(_0x5980a3,_0x1e9cdc){this['loader']=_0x5980a3,this['editor']=_0x1e9cdc,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x26834e=await this['loader']['file'];return Q['upload']({'file':_0x26834e,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x20c2d6=>{_0x20c2d6&&_0x20c2d6['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x20c2d6['value']);}})['then'](async _0x41c646=>{const {imageFallbackUrl:_0xb218e9,imageSources:_0x25fbdb}=B(_0x41c646['cdnUrl'],_0x41c646['imageInfo']['width']);return{'uploadcareImageId':_0x41c646['uuid'],'default':_0xb218e9,'sources':_0x25fbdb};})['catch'](()=>{const _0x210a26=t('Cannot\x20upload\x20file:')+('\x20'+_0x26834e['name']+'.');return Promise['reject'](_0x210a26);});}['abort'](){this['controller']['abort']();}},Z=class extends _0x44f47f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x1dfedf,J,_0x42e81b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2c6170){super(_0x2c6170),this['ucContextId']=_0x1273e4();}['init'](){const _0x178479=this['editor'];_0x178479['commands']['add']('uploadcare',new z(_0x178479));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0xc6ece8=_0x4dfba9['document']['querySelector']('input[uploadcare-file-input]');_0xc6ece8&&_0xc6ece8['remove']();}),async function(_0x160feb){const _0x3793d2='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0x1250b5=0x78e10,_0x5a6f36=window['Date']['now'](),_0x347392=_0x160feb['editor'],_0x2d3f0c=new window['Promise'](_0x483257=>{_0x347392['once']('ready',_0x483257);}),_0x3a8fbe={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x3701f3=_0x347392['config']['get']('licenseKey');async function _0x25e8a0(){let _0x180669,_0x368e46=null,_0x9b0fc8=null;try{return'GPL'==_0x3701f3?'NotAllowed':(_0x180669=_0x39dde5(),_0x180669?(_0x180669['usageEndpoint']&&(_0x9b0fc8=_0x3f94e5(_0x180669['usageEndpoint'],_0x180669['jti'])),await _0x1db68e()?_0x18bf7b()?_0x1e6a86()?'Expired':_0x3b3097()?('evaluation'==_0x180669['licenseType']&&(_0x368e46=_0x124c25('EvaluationLimit')),await _0x25cf75()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1e6a86(){const _0x1a916c=['evaluation','trial']['includes'](_0x180669['licenseType'])?_0x5a6f36/0x3e8:0xe10*_0x1250b5;return _0x180669['exp']<_0x1a916c;}function _0x18bf7b(){const _0x213c9d=_0x180669['features'];return!!_0x213c9d&&(!!_0x213c9d['includes']('*')||!!_0x213c9d['includes']('UPLC'));}function _0x3b3097(){const _0x10df6c=_0x180669['licensedHosts'];if(!_0x10df6c||0x0==_0x10df6c['length'])return!0x0;const {hostname:_0x28ba00}=new URL(window['location']['href']);if(_0x10df6c['includes'](_0x28ba00))return!0x0;const _0xd23db4=_0x28ba00['split']('.');return _0x10df6c['filter'](_0x482cb0=>_0x482cb0['includes']('*'))['map'](_0x3fd140=>_0x3fd140['split']('.'))['filter'](_0x5b52b3=>_0x5b52b3['length']<=_0xd23db4['length'])['map'](_0x14ab68=>Array(_0xd23db4['length']-_0x14ab68['length'])['fill']('*'===_0x14ab68[0x0]?'*':'')['concat'](_0x14ab68))['some'](_0x27b3c0=>_0xd23db4['every']((_0x5ff288,_0x5dc7ff)=>_0x27b3c0[_0x5dc7ff]===_0x5ff288||'*'===_0x27b3c0[_0x5dc7ff]));}function _0x25cf75(){return _0x368e46&&_0x9b0fc8?new window['Promise']((_0x2f69c8,_0x980663)=>{_0x368e46['then'](_0x2f69c8,_0x980663),_0x9b0fc8['then'](_0x22f26f=>{'Valid'!=_0x22f26f&&_0x2f69c8(_0x22f26f);},_0x980663);}):_0x368e46||_0x9b0fc8||'Valid';}}function _0x3f94e5(_0x45f4be,_0x3bf05c){return new window['Promise'](_0x4fa719=>{if(_0x47a986())return _0x4fa719('Valid');_0x5b3ffc(),_0x347392['decorate']('_sendUsageRequest');let _0x3f484b=!0x1;const _0x294f58=_0x1273e4();function _0x4823d4(_0x33e4f8){return!!_0x33e4f8&&('object'==typeof _0x33e4f8||'function'==typeof _0x33e4f8)&&'function'==typeof _0x33e4f8['then']&&'function'==typeof _0x33e4f8['catch'];}function _0x4f902f(_0x2d4664){_0x2d4165(_0x2d4664)['then'](_0x794f20=>_0x794f20&&'ok'==_0x794f20['status']?_0x25f5c5(_0x36abe1(_0x294f58+_0x3bf05c))!=_0x794f20['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1ce732=>(_0x12d9bb(),_0x1ce732),()=>{const _0x2b7049=_0x390703();return null==_0x2b7049?(_0x12d9bb(),'Valid'):_0x5a6f36-_0x2b7049>0x240c8400?'UsageLimit':'Valid';})['then'](_0x4fa719)['catch'](()=>{_0x4fa719('UsageLimit');});const _0x437c8c=0x36ee80;function _0x12d9bb(){const _0x583f64='llct-'+_0x25f5c5(_0x36abe1(_0x45f4be)),_0x27a7a1=_0x5de21a(_0x25f5c5(window['Math']['ceil'](_0x5a6f36/_0x437c8c)));window['localStorage']['setItem'](_0x583f64,_0x27a7a1);}function _0x390703(){const _0x286cc6='llct-'+_0x25f5c5(_0x36abe1(_0x45f4be)),_0x2c134b=window['localStorage']['getItem'](_0x286cc6);return _0x2c134b?window['parseInt'](_0x5de21a(_0x2c134b),0x10)*_0x437c8c:null;}function _0x2d4165(_0x3d34a8){return new window['Promise']((_0x5d5ee5,_0x158743)=>{_0x3d34a8['then'](_0x5d5ee5,_0x158743),window['setTimeout'](_0x158743,0x1d4c0);});}}_0x347392['on']('_sendUsageRequest',(_0xc446ad,_0x31e37f)=>{if(_0x31e37f[0x0]!=_0x45f4be)return _0x4fa719('UsageLimit');_0x31e37f[0x1]={..._0x31e37f[0x1],'requestId':_0x294f58};},{'priority':'high'}),_0x347392['on']('_sendUsageRequest',_0x3c09c2=>{_0x4823d4(_0x3c09c2['return'])&&(_0x3f484b=!0x0,_0x4f902f(_0x3c09c2['return']));},{'priority':'low'}),_0x2d3f0c['then'](()=>{_0x3f484b||_0x4fa719('UsageLimit');});});function _0x47a986(){return'auto'==_0x347392['editing']['view']['_overlayModeHint'];}function _0x5b3ffc(){_0x347392['editing']['view']['_overlayModeHint']='auto';}}function _0x124c25(_0x56ef81){const _0xe28b6=[new window['Promise'](_0x21e92e=>setTimeout(_0x21e92e,0x93ecc)),_0x2d3f0c['then'](()=>new window['Promise'](_0x452aab=>{let _0x371cb4=0x0;_0x347392['model']['on']('applyOperation',(_0x3f10e6,_0x53da64)=>{_0x53da64[0x0]['isDocumentOperation']&&_0x371cb4++,0x5e8==_0x371cb4&&(_0x452aab(),_0x3f10e6['off']());});}))];return window['Promise']['race'](_0xe28b6)['then'](()=>_0x56ef81);}async function _0x5d12f9(){await _0x2d3f0c,_0x347392['model']['change']=_0x5c2f80,_0x347392['model']['enqueueChange']=_0x5c2f80,_0x347392['enableReadOnlyMode']('model');}function _0x1a0a1e(_0x3048c7){const _0x3f601d=_0x5848e4();_0x347392[_0x3f601d]='uploadcareLicenseKey'+_0x3048c7,'Valid'!=_0x3048c7&&_0x5d12f9();}function _0x5848e4(){const _0x2fe5c7=window['String'](window['performance']['now']())['replace']('.','');let _0x32dcc9='h';for(let _0x37b928=0x0;_0x37b928<_0x2fe5c7['length'];_0x37b928+=0x2){let _0x21c24f=window['parseInt'](_0x2fe5c7['substring'](_0x37b928,_0x37b928+0x2));_0x21c24f>=0x3e&&(_0x21c24f-=0x3e),_0x32dcc9+=_0x3793d2[_0x21c24f];}return _0x32dcc9;}function _0x39dde5(){const _0x3af244=_0x3701f3['split']('.');if(0x3!=_0x3af244['length'])return null;return _0x183324(_0x3af244[0x1]);function _0x183324(_0x3a3fb9){const _0x58efbb=_0x1a3f0f(_0x3a3fb9);return _0x58efbb&&_0x14cf9c()?_0x58efbb:null;function _0x14cf9c(){const _0x125a5b=_0x58efbb['jti'],_0x1f08d0=window['parseInt'](_0x125a5b['substring'](_0x125a5b['length']-0x8),0x10),_0x468bf4={..._0x58efbb,'jti':_0x125a5b['substring'](0x0,_0x125a5b['length']-0x8)};return delete _0x468bf4['vc'],_0x36abe1(_0x468bf4)==_0x1f08d0;}}}async function _0x1db68e(){let _0x2d247b=!0x0;try{const [_0x5b196a,_0x2f3145,_0x440a0c]=_0x3701f3['split']('.');return _0x5a1e6f(_0x5b196a),await _0x38e092(_0x5b196a,_0x2f3145,_0x440a0c),_0x2d247b;}catch{return!0x1;}function _0x5a1e6f(_0x5967b){const _0x2ec7f0=_0x1a3f0f(_0x5967b);_0x2ec7f0&&'ES256'==_0x2ec7f0['alg']||(_0x2d247b=!0x1);}async function _0x38e092(_0x1c3ab3,_0x4d5ffb,_0x26d0f5){const _0x535a05=window['Uint8Array']['from'](_0x200452(_0x26d0f5),_0x3633a9=>_0x3633a9['charCodeAt'](0x0)),_0x39a345=new window['TextEncoder']()['encode'](_0x1c3ab3+'.'+_0x4d5ffb),_0x5748dc=window['crypto']['subtle'];if(!_0x5748dc)return;const _0x47a5f7=await _0x5748dc['importKey']('jwk',_0x3a8fbe,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5748dc['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x47a5f7,_0x535a05,_0x39a345)||(_0x2d247b=!0x1);}}function _0x1a3f0f(_0x127582){return _0x127582['startsWith']('ey')?JSON['parse'](_0x200452(_0x127582)):null;}function _0x200452(_0x37600b){return window['atob'](_0x37600b['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x36abe1(_0x3b94b1){let _0x4ac8ca=0x1505;function _0xd85f43(_0x2ab30c){for(let _0x5f1654=0x0;_0x5f1654<_0x2ab30c['length'];_0x5f1654++){const _0x2053af=_0x2ab30c['charCodeAt'](_0x5f1654);_0x4ac8ca=(_0x4ac8ca<<0x5)+_0x4ac8ca+_0x2053af,_0x4ac8ca&=_0x4ac8ca;}}function _0x101040(_0x52e7ad){Array['isArray'](_0x52e7ad)?_0x52e7ad['forEach'](_0x101040):_0x52e7ad&&'object'==typeof _0x52e7ad?Object['entries'](_0x52e7ad)['sort']()['forEach'](([_0x578e4b,_0x31d1bb])=>{_0xd85f43(_0x578e4b),_0x101040(_0x31d1bb);}):_0xd85f43(window['String'](_0x52e7ad));}return _0x101040(_0x3b94b1),_0x4ac8ca>>>0x0;}function _0x25f5c5(_0x10a601){return _0x10a601['toString'](0x10)['padStart'](0x8,'0');}function _0x5de21a(_0x1c537b){return _0x1c537b['split']('')['reverse']()['join']('');}function _0x5c2f80(){}_0x1a0a1e(await _0x25e8a0());}(this);}['_initSchema'](){const _0x3bd118=this['editor']['model']['schema'];_0x3bd118['isRegistered']('imageBlock')&&_0x3bd118['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3bd118['isRegistered']('imageInline')&&_0x3bd118['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2f4b7f=this['editor'];_0x2f4b7f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2f4b7f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3eea88=>_0x3eea88['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5f3d75=_0x2f4b7f['commands']['get']('replaceImageSource');_0x5f3d75&&this['listenTo'](_0x5f3d75,'cleanupImage',(_0x24606b,[_0x5a92bd,_0x3ce16a])=>{_0x5a92bd['removeAttribute']('uploadcareImageId',_0x3ce16a);});}['_initConfig'](){const _0x464a03=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4649af=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2c838f(_0x4dfba9['document'],'uc-config',{..._0x464a03,'pubkey':_0x4649af,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x3fb223=>{if('closeMax'==_0x3fb223)return'#uc-icon-arrow-down';},_0x4dfba9['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2c838f(_0x4dfba9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4dfba9['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2f62fd=this['editor']['commands']['get']('insertImage');_0x2f62fd&&this['listenTo'](_0x2f62fd,'execute',()=>{const _0x28bc11=this['editor']['model']['document']['selection']['getSelectedElement']();_0x28bc11&&_0x28bc11['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x28bc11);});});const _0x5ca977=this['editor']['commands']['get']('uploadcareImageReplace');_0x5ca977&&this['listenTo'](_0x5ca977,'execute',()=>{const _0x272435=this['editor']['model']['document']['selection']['getSelectedElement']();_0x272435&&_0x272435['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x272435);});});}},Y=class extends _0x44f47f{static get['requires'](){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20ecbb){super(_0x20ecbb),_0x20ecbb['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x23be51['defineComponents'](_0x23be51),this['_defineLocale']();}['_defineLocale'](){const _0x376e59=this['editor']['config']['get']('uploadcare.locale'),_0x574b72=this['editor']['locale']['contentLanguage'];_0x376e59&&_0x23be51['defineLocale'](_0x574b72,_0x376e59);}},tt=class extends _0x35e03c{constructor(_0x3c3a22){super(_0x3c3a22);const t=_0x3c3a22['t'],_0x4e755=this['bindTemplate'],_0x52d92b=new _0x56228c();_0x52d92b['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x52d92b,{'text':_0x4e755['to']('imageUploadProgress',_0x5c6416=>t('Loading\x20image...')+'\x20('+(_0x5c6416||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}},et=class extends _0x35e03c{constructor(_0x140baf){super(_0x140baf);const t=_0x140baf['t'];this['set']('errorType',null);const _0x410ddd=new _0x6a92ff(_0x140baf);_0x410ddd['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x410ddd['withText']=!0x0,_0x410ddd['class']='ck-button-action',_0x410ddd['on']('execute',()=>{this['fire']('retry');}),_0x410ddd['bind']('isVisible')['to'](this,'errorType',_0x1bf591=>'NotFound'!==_0x1bf591);const _0x14c174=new _0x3b3898();_0x14c174['content']=_0x431484,_0x14c174['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1e8ac5=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x14c174,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1e8ac5['to']('errorType',_0x152ff3=>t('NotFound'!==_0x152ff3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x410ddd]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}},it=class extends _0x35e03c{constructor(_0x4842d2,_0x2aee77){super(_0x4842d2);const _0x40367b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2aee77,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x40367b['to']('imageSrc')}});}},st=class extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x314e9c,_0x40d634,_0x4eae76){super(_0x314e9c),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x314e9c),this['_errorView']=new et(_0x314e9c),this['_editingView']=new it(_0x314e9c,_0x4eae76),this['_focusableView']=new _0x35e03c(_0x314e9c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x40d634),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x31353b=>{this['_addUploadcareImageEditorListeners'](_0x31353b);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x24e859,_0x333a7e){const _0x47e245='uc-cloud-image-editor',_0x32f5fa=_0x24e859['querySelector'](_0x47e245);if(_0x32f5fa)return _0x333a7e(_0x32f5fa);const _0x37cb59=new MutationObserver(_0x22827e=>{const _0x4df4cb=_0x22827e['filter'](_0x25290d=>_0x25290d['target']===_0x24e859&&_0x25290d['addedNodes']['length']>0x0&&_0x25290d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x47e245);_0x4df4cb['length']&&(_0x37cb59['disconnect'](),_0x333a7e(_0x4df4cb[0x0]['addedNodes'][0x0]));});_0x37cb59['observe'](_0x24e859,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x28bb37){_0x28bb37['addEventListener']('apply',_0x160715=>{this['fire']('apply',{'imageSrc':_0x160715['detail']['cdnUrl']});}),_0x28bb37['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const rt=/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x674f5a();var nt=class extends rt{['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x12abe1,_0x5cf4f2,_0x1a1de4){super(),this['_editor']=_0x12abe1,this['_dialog']=_0x5cf4f2,this['_imageElement']=_0x1a1de4,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x575c8c=this['_imageElement'],_0x1f701b=_0x575c8c['getAttribute']('uploadcareImageId'),_0x3339c5=_0x575c8c['getAttribute']('src');if(_0x1f701b)await this['_loadImageInfo'](_0x1f701b,_0x3339c5);else{if(this['_imageCache']['has'](_0x3339c5)){const _0x2f9474=this['_imageCache']['get'](_0x3339c5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2f9474['url'],this['imageDimension']=_0x2f9474['dimension'],this['imageId']=_0x2f9474['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x33cc88}=this['_editor'],t=_0x33cc88['t'],_0x3596df=new st(_0x33cc88,this['imageStatus'],this['_attributes']);_0x3596df['bind']('status')['to'](this,'imageStatus'),_0x3596df['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3596df['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3596df['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3596df,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3f9e29,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3596df,'position':_0xe47dbe['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3596df['focus']();},'onHide':()=>{_0x3596df['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xb6250b=>!H(_0xb6250b,_0x3596df['element'])}});}['_loadImageInfo'](_0x344c0b,_0x2b429b){return Q['getInfo'](_0x344c0b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x598cf5=>{const {width:_0x3f1cf3,height:_0x58f591}=_0x598cf5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2b429b,this['imageDimension']={'width':_0x3f1cf3,'height':_0x58f591},this['imageId']=_0x344c0b;})['catch'](_0x5b4652=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5b4652['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x377f1d,_0x35ca6a){return this['_getImageAsFile'](_0x377f1d)['then'](_0x5b6851=>Q['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x35ca6a['signal'],'file':_0x5b6851,'onProgress':_0x2d8cc6=>{_0x2d8cc6&&_0x2d8cc6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2d8cc6['value']));}}))['then'](_0x483892=>{const {width:_0x119253,height:_0x16d102}=_0x483892['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x483892['cdnUrl'],this['imageDimension']={'width':_0x119253,'height':_0x16d102},this['imageId']=_0x483892['uuid'],this['imageUploadProgress']=null;const _0x39c89e=_0x377f1d['getAttribute']('src');this['_imageCache']['set'](_0x39c89e,{'id':_0x483892['uuid'],'url':_0x483892['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x30da99=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x30da99['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x391fb3,_0x96bf4){_0x391fb3['on']('apply',(_0x27adc8,_0x3a7760)=>{this['_replaceImage'](_0x96bf4,_0x3a7760['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x391fb3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x391fb3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x42c3aa,_0x1ea8f0,_0x1d979f){const _0x8f0df1=this['_editor'],{width:_0x3341a5,height:_0x291099}=j(_0x1ea8f0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x16ecdf,imageSources:_0x3be88b}=B(_0x1ea8f0,_0x3341a5);_0x8f0df1['model']['change'](_0x2ab0e1=>{if('$graveyard'!==_0x42c3aa['root']['rootName'])_0x2ab0e1['setSelection'](_0x42c3aa,'on'),_0x8f0df1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x42c3aa['getAttributes']()),'uploadcareImageId':_0x1d979f,'src':_0x16ecdf,'sources':_0x3be88b,'width':_0x3341a5,'height':_0x291099},_0x42c3aa);else{_0x8f0df1['execute']('insertImage',{'imageType':_0x42c3aa['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x42c3aa['getAttributes']()),'uploadcareImageId':_0x1d979f,'src':_0x16ecdf,'sources':_0x3be88b,'width':_0x3341a5,'height':_0x291099}});const _0x4a05f4=_0x42c3aa['getChildren']();_0x42c3aa=_0x8f0df1['model']['document']['selection']['getSelectedElement']();for(const _0x5e0137 of _0x4a05f4)_0x2ab0e1['append'](_0x2ab0e1['cloneElement'](_0x5e0137),_0x42c3aa);}_0x2ab0e1['setSelection'](_0x42c3aa,'on');});}async['_getImageAsFile'](_0x1ea202){const _0x11bc3a=_0x4dfba9['window'],_0x25d388=_0x4dfba9['document']['location']['href'],_0x2c8cbb=new _0x11bc3a['URL'](_0x1ea202['getAttribute']('src'),_0x25d388);if('data:'===_0x2c8cbb['protocol']){const _0x22542f=_0x2c8cbb['href']['split'](','),_0x4f0b94=_0x22542f[0x0]['match'](/:(.*?);/)[0x1],_0x224b12=_0x4f0b94['split']('/')[0x1],_0x52be53=_0x11bc3a['atob'](_0x22542f[_0x22542f['length']-0x1]);let _0x3dc2b7=_0x52be53['length'];const _0x1b584a=new _0x11bc3a['Uint8Array'](_0x3dc2b7);for(;_0x3dc2b7--;)_0x1b584a[_0x3dc2b7]=_0x52be53['charCodeAt'](_0x3dc2b7);return new _0x11bc3a['File']([_0x1b584a],'image.'+_0x224b12,{'type':_0x4f0b94});}const _0x4c07f0=_0x2c8cbb['href']['split']('/'),_0x182f67=_0x4c07f0[_0x4c07f0['length']-0x1],_0x31cab7=_0x182f67['split']('.')[0x1];return _0x11bc3a['fetch'](_0x2c8cbb['href'])['then'](_0x348043=>_0x348043['clone']()['blob']())['then'](_0x2e244c=>new _0x11bc3a['File']([_0x2e244c],_0x182f67,{'type':'image/'+_0x31cab7}));}},at=class extends _0xb0fef4{['imageEditController'];static get['requires'](){return[_0x42e81b];}['_isEditable'];constructor(_0x4e4ea8){super(_0x4e4ea8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3c64bd){const _0x574982=M(_0x3c64bd);return _0x10ff4b=>!(!_0x10ff4b||!_0x10ff4b['is']('element','imageBlock')&&!_0x10ff4b['is']('element','imageInline'))&&(!!_0x10ff4b['hasAttribute']('uploadcareImageId')||!!_0x10ff4b['hasAttribute']('src')&&_0x574982(_0x10ff4b['getAttribute']('src')));}(_0x4e4ea8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3d7ac5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3d7ac5);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xa0e21b=this['editor']['model']['document']['selection']['getSelectedElement']();_0xa0e21b&&(_0xa0e21b['is']('element','imageBlock')||_0xa0e21b['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x42e81b),_0xa0e21b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0xb0fef4{['refresh'](){const _0x25674c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x25674c&&(_0x25674c['is']('element','imageBlock')||_0x25674c['is']('element','imageInline')));}['execute'](_0xb16b95){const _0x1f429a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xcfeb6f=>{_0xcfeb6f['setAttributes'](_0xb16b95,_0x1f429a),_0xcfeb6f['removeAttribute']('srcset',_0x1f429a),_0xcfeb6f['removeAttribute']('sizes',_0x1f429a);});}},ct=class extends _0x44f47f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[Z,_0x1e4f0f,_0x6b9103,_0x3bd8f2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5245d1}=this;_0x5245d1['commands']['add']('uploadcareImageEdit',new at(_0x5245d1)),_0x5245d1['commands']['add']('uploadcareImageReplace',new ot(_0x5245d1));}},lt=class extends _0x44f47f{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x178c34=this['editor'];_0x178c34['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3f8d52=>{const _0x282138=_0x178c34['commands']['get']('uploadcareImageEdit'),_0x23297d=new _0x6a92ff(_0x3f8d52),t=_0x3f8d52['t'];return _0x23297d['set']({'icon':_0x3f9e29,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x23297d['bind']('isEnabled')['to'](_0x282138),_0x23297d['bind']('isOn')['to'](_0x282138,'isActive'),this['listenTo'](_0x23297d,'execute',()=>{_0x178c34['execute']('uploadcareImageEdit'),_0x178c34['editing']['view']['focus']();}),_0x23297d;}),this['_initConfig']();}['_initConfig'](){const _0x231352=_0x2c838f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x231352),this['listenTo'](this['editor'],'destroy',()=>{_0x231352['remove']();});}},ut=class extends _0x44f47f{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[ct,lt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{Y as Uploadcare,z as UploadcareCommand,Z as UploadcareEditing,ut as UploadcareImageEdit,at as UploadcareImageEditCommand,ct as UploadcareImageEditEditing,lt as UploadcareImageEditUI,V as UploadcareUI,J as UploadcareUploadAdapter};
|
|
23
|
+
import{Command as _0x5a4179,Plugin as _0xf14c47}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x1d151d,IconError as _0x5154a2,IconFacebook as _0x1db4d2,IconGoogleDrive as _0xe6dbf8,IconGooglePhotos as _0x517b3a,IconOneDrive as _0x40065a,IconUploadcareImageEdit as _0x2a5497,IconUploadcareImageUpload as _0x138ceb,IconUploadcareLink as _0x15a3e4}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x44968d,Dialog as _0x17f479,DialogViewPosition as _0x23d711,FocusCycler as _0x2abcb6,IconView as _0x47b45c,MenuBarMenuListItemButtonView as _0x342bec,Notification as _0x485130,SpinnerView as _0x43a7fb,View as _0x56ebfc}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x2e1113,FocusTracker as _0x1d0676,ObservableMixin as _0x47bd7e,createElement as _0x4f341d,getAncestors as _0x24c849,global as _0x2139c0,uid as _0x197e06}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x26c409,ImageUploadEditing as _0x474b55,ImageUploadProgress as _0x23478d,ImageUtils as _0x9bb638,PictureEditing as _0x1580f5}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x1c6ee3}from'@ckeditor/ckeditor5-upload';import{info as _0x1323f6,uploadFile as _0x21e71a}from'@uploadcare/upload-client';import*as _0x32f798 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x2a4f18,_0x3ed9a4,_0x39ae96){const t=_0x2a4f18['t'],_0x221b09=_0x2a4f18['t'];switch(_0x3ed9a4){case'local':return{'text':_0x221b09('Insert'===_0x39ae96?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x221b09('From\x20computer')};case'url':return{'text':'Insert'===_0x39ae96?_0x221b09('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x221b09('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x39ae96?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x39ae96?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x39ae96?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x39ae96?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x39ae96?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3ed9a4;}}var V=class extends _0xf14c47{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xadec50=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x53a253;for(const _0x847297 in _0xadec50){const _0x2de784=_0x847297,_0x2885b1=_0xadec50[_0x2de784];if('uploadcareLicenseKeyValid'==_0x2885b1||'uploadcareLicenseKeyInvalid'==_0x2885b1||'uploadcareLicenseKeyExpired'==_0x2885b1||'uploadcareLicenseKeyDomainLimit'==_0x2885b1||'uploadcareLicenseKeyNotAllowed'==_0x2885b1||'uploadcareLicenseKeyEvaluationLimit'==_0x2885b1||'uploadcareLicenseKeyUsageLimit'==_0x2885b1){delete _0xadec50[_0x2de784],_0x53a253=_0x2885b1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x53a253&&_0xadec50['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x53a253&&_0xadec50['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x53a253&&_0xadec50['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x53a253&&_0xadec50['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x53a253&&_0xadec50['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x53a253&&_0xadec50['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x36b069}=this,_0x175900=_0x36b069['commands']['get']('uploadcare');if(!_0x175900)return;const _0x2f0ff7=this['_normalizeConfigSourceList'](_0x36b069['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2e4de6,_0x168faf)=>{const _0xb6b738=this['_getIntegrationKey'](_0x168faf['type']);return _0x2e4de6[_0xb6b738]||(_0x2e4de6[_0xb6b738]=[]),_0x2e4de6[_0xb6b738]['push'](_0x168faf),_0x2e4de6;},{});_0x36b069['plugins']['has']('ImageInsertUI')&&_0x36b069['commands']['get']('uploadcare')&&Object['entries'](_0x2f0ff7)['forEach'](([_0x211497,_0x5bdeaa])=>{_0x36b069['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x211497,'observable':()=>_0x175900,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5bdeaa),'formViewCreator':()=>this['_createDropdownButtons'](_0x5bdeaa),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5bdeaa),'override':'assetManager'!==_0x211497});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4e8d16){const {locale:_0x49c49e}=this['editor'];return _0x4e8d16['map'](_0x7c44ad=>{const _0x4b6bd8=T(_0x49c49e,_0x7c44ad,'Insert');switch(_0x7c44ad){case'local':return{'icon':_0x138ceb,'type':'local',..._0x4b6bd8};case'url':return{'icon':_0x15a3e4,'type':'url',..._0x4b6bd8};case'dropbox':return{'icon':_0x1d151d,'type':'dropbox',..._0x4b6bd8};case'facebook':return{'icon':_0x1db4d2,'type':'facebook',..._0x4b6bd8};case'gdrive':return{'icon':_0xe6dbf8,'type':'gdrive',..._0x4b6bd8};case'gphotos':return{'icon':_0x517b3a,'type':'gphotos',..._0x4b6bd8};case'onedrive':return{'icon':_0x40065a,'type':'onedrive',..._0x4b6bd8};}});}['_getIntegrationKey'](_0x1b68da){switch(_0x1b68da){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x5f4c3a,_0x2a0d57){const _0x2a5ca4=this['editor'],_0x11f506=new _0x5f4c3a(_0x2a5ca4['locale']),_0x5d2ecf=_0x2a5ca4['commands']['get']('uploadcare');return _0x11f506['bind']('isEnabled')['to'](_0x5d2ecf),_0x11f506['on']('execute',()=>{_0x5d2ecf['execute'](_0x2a0d57);}),_0x11f506;}['_createToolbarButton'](_0x4d88bb){const {locale:_0x5ddb18}=this['editor'],_0x1c344b=this['editor']['plugins']['get']('ImageInsertUI'),_0x4cafe0=_0x4d88bb[0x0],_0x2f6a57=this['_createButton'](_0x44968d,_0x4cafe0['type']);return _0x2f6a57['icon']=_0x4cafe0['icon'],_0x2f6a57['bind']('label')['to'](_0x1c344b,'isImageSelected',_0x28acef=>T(_0x5ddb18,_0x4cafe0['type'],_0x28acef?'Replace':'Insert')['text']),_0x2f6a57['tooltip']=!0x0,_0x2f6a57;}['_createDropdownButtons'](_0x2dd62b){const {locale:_0x33f4ff}=this['editor'],_0x9aedce=this['editor']['plugins']['get']('ImageInsertUI');return _0x2dd62b['map'](_0x53adaf=>{const _0x86a78d=this['_createButton'](_0x44968d,_0x53adaf['type']);return _0x86a78d['withText']=!0x0,_0x86a78d['icon']=_0x53adaf['icon'],_0x86a78d['bind']('label')['to'](_0x9aedce,'isImageSelected',_0x5d597e=>T(_0x33f4ff,_0x53adaf['type'],_0x5d597e?'Replace':'Insert')['text']),_0x86a78d;});}['_createMenuBarButtons'](_0x2128fb){return _0x2128fb['map'](_0x49cc7c=>{const _0x110fd2=this['_createButton'](_0x342bec,_0x49cc7c['type']);return _0x110fd2['icon']=_0x49cc7c['icon'],_0x110fd2['label']=_0x49cc7c['shortText'],_0x110fd2;});}},F=class extends _0x56ebfc{['focusTracker'];['focusCycler'];constructor(_0x1edd90){super(_0x1edd90),this['focusTracker']=new _0x1d0676(),this['focusCycler']=new _0x2abcb6({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}},$=class extends F{constructor(_0x4a3f57,_0x54eacc){super(_0x4a3f57),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x54eacc}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x484982,_0x448429){const _0x583904=_0x484982['replace'](/\/$/,'');return{'imageFallbackUrl':_0x484982,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2f0d7a=>_0x2f0d7a<_0x448429)['map'](_0x9a21cb=>_0x583904+'/-/resize/'+_0x9a21cb+'x/\x20'+_0x9a21cb+'w'),_0x484982+'\x20'+_0x448429+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x448429+'px)\x20100vw,\x20'+_0x448429+'px','type':'image/webp'}]};}function j(_0x560e49,_0xe2b22e,_0x13cb56){const _0x5422ec=_0x560e49['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5422ec?parseInt(_0x5422ec[0x1],0xa):_0xe2b22e,'height':_0x5422ec?parseInt(_0x5422ec[0x2],0xa):_0x13cb56};}function q(_0x13192c,_0x1265a3){const _0x5c49b4=new(_0x2e1113())(),_0xaabf0a=_0x13192c['plugins']['get']('ImageUtils'),_0x211eb5=_0x13192c['editing']['mapper']['toViewElement'](_0x1265a3),_0x58343e=_0xaabf0a['findViewImgElement'](_0x211eb5),_0x377ef0=_0x13192c['editing']['view']['domConverter']['viewToDom'](_0x58343e),_0xb1caa5=_0x1265a3['getAttribute']('width'),_0xc5d775=_0x1265a3['getAttribute']('height'),_0x17f4bf='image-processing';_0x13192c['editing']['view']['change'](_0x28c6ab=>{_0x28c6ab['addClass'](_0x17f4bf,_0x211eb5),_0x28c6ab['setStyle']('aspect-ratio',_0xb1caa5+'/'+_0xc5d775,_0x58343e);}),_0x5c49b4['listenTo'](_0x377ef0,'load',()=>{_0x5c49b4['stopListening'](_0x377ef0,'load'),_0x13192c['editing']['view']['change'](_0x1b9c34=>{_0x1b9c34['removeClass'](_0x17f4bf,_0x211eb5),_0x1b9c34['removeStyle']('aspect-ratio',_0x58343e);});});}function M(_0x1a1b75){if(Array['isArray'](_0x1a1b75)){const _0x3180b2=_0x1a1b75['map'](M);return _0x2371a7=>_0x3180b2['some'](_0x55dd99=>_0x55dd99(_0x2371a7));}if('origin'==_0x1a1b75){const _0x2a9d16=_0x2139c0['window']['location']['origin'];return _0x23e1cf=>new URL(_0x23e1cf,_0x2139c0['document']['baseURI'])['origin']==_0x2a9d16;}return'function'==typeof _0x1a1b75?_0x1a1b75:_0x1a1b75 instanceof RegExp?_0x50a97c=>!(!_0x50a97c['match'](_0x1a1b75)&&!_0x50a97c['replace'](/^https?:\/\//,'')['match'](_0x1a1b75)):()=>!0x1;}function H(_0x59867d,_0x20b571){return _0x24c849(_0x59867d['target'])['includes'](_0x20b571);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x47bd7e();var G=class extends W{['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3cd4e2,_0x259c62,_0x1df9b1){super(),this['_editor']=_0x3cd4e2,this['_editing']=_0x259c62,this['_dialog']=_0x3cd4e2['plugins']['get'](_0x17f479),this['_api']=_0x259c62['ctxElement']['getAPI'](),this['_type']=_0x1df9b1,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0xf6562a,model:_0x3eb118}=this['_editor'],_0x136998=_0x3eb118['document']['selection']['getSelectedElement'](),_0x254b64=_0x136998&&(_0x136998['is']('element','imageBlock')||_0x136998['is']('element','imageInline'));this['_formView']=new $(_0xf6562a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x138ceb,'title':T(_0xf6562a,this['_type'],_0x254b64?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x23d711['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x36c089=>!H(_0x36c089,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1539af}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1a71c5=>{const _0x42a375=_0x1539af['length'];for(const _0x4a0360 of _0x1539af){const _0x3eb6c4=_0x4a0360===_0x1539af[_0x42a375-0x1],{cdnUrl:_0xa835e7,fileInfo:_0x41a748}=_0x4a0360;if(!_0xa835e7||!_0x41a748)continue;const {width:_0x21ac9a,height:_0x1adc4e}=_0x41a748['imageInfo'],_0x3f35a2=j(_0xa835e7,_0x21ac9a,_0x1adc4e),_0x1ae143=B(_0xa835e7,_0x3f35a2['width']),_0x380ce1={'id':_0x41a748['uuid'],'type':'image','attributes':{'imageDimension':_0x3f35a2,..._0x1ae143}};this['_insertAsset'](_0x380ce1,_0x3eb6c4,_0x1a71c5);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x49c5ae=>{'idle'===_0x49c5ae['detail']['status']&&!_0x49c5ae['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}['_insertAsset'](_0x24212b,_0x116795,_0x311c23){const _0x2549db=this['_editor']['model']['document']['selection'],_0x3c5205=_0x2549db['getSelectedElement'](),_0x2a01c9=!(!_0x3c5205||!_0x3c5205['is']('element','imageInline'));_0x311c23['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x24212b,_0x2a01c9),_0x116795||_0x311c23['setSelection'](_0x2549db['getLastPosition']());}['_insertImage'](_0x423802,_0x1d74b1){const _0x316ec7=this['_editor'],{imageDimension:_0x31e373,imageFallbackUrl:_0x1540e9,imageSources:_0x55184c}=_0x423802['attributes'];_0x316ec7['execute']('insertImage',{'imageType':_0x1d74b1?'imageInline':null,'source':{'uploadcareImageId':_0x423802['id'],'src':_0x1540e9,'sources':_0x55184c,..._0x31e373}});}},z=class extends _0x5a4179{['_editing'];['_controller']=null;static get['requires'](){return[_0x17f479,Z];}constructor(_0x2a1403){super(_0x2a1403),this['_editing']=_0x2a1403['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x49d001){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x49d001);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x3a98d7,..._0x3188fa}){return _0x21e71a(_0x3a98d7,_0x3188fa);}static['getInfo'](_0x104d7b,_0x5172cb){return _0x1323f6(_0x104d7b,_0x5172cb);}},J=class extends _0xf14c47{static get['requires'](){return[_0x474b55,_0x23478d,_0x1c6ee3,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2dbf01=this['editor'];if(!_0x2dbf01['config']['get']('uploadcare'))return;_0x2dbf01['plugins']['get'](_0x1c6ee3)['createUploadAdapter']=_0x431f14=>new X(_0x431f14,_0x2dbf01),_0x2dbf01['plugins']['get'](_0x474b55)['on']('uploadComplete',(_0xf62c8d,{imageElement:_0x16451c,data:_0x457f7d})=>{_0x2dbf01['model']['change'](_0x5defb3=>{_0x5defb3['setAttribute']('uploadcareImageId',_0x457f7d['uploadcareImageId'],_0x16451c);});});}},X=class{['loader'];['editor'];['controller'];constructor(_0x17abd1,_0x59b189){this['loader']=_0x17abd1,this['editor']=_0x59b189,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x96d3a2=await this['loader']['file'];return Q['upload']({'file':_0x96d3a2,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x14d96c=>{_0x14d96c&&_0x14d96c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x14d96c['value']);}})['then'](async _0x40539c=>{const {imageFallbackUrl:_0x18e91c,imageSources:_0x34770b}=B(_0x40539c['cdnUrl'],_0x40539c['imageInfo']['width']);return{'uploadcareImageId':_0x40539c['uuid'],'default':_0x18e91c,'sources':_0x34770b};})['catch'](()=>{const _0x42d550=t('Cannot\x20upload\x20file:')+('\x20'+_0x96d3a2['name']+'.');return Promise['reject'](_0x42d550);});}['abort'](){this['controller']['abort']();}},Z=class extends _0xf14c47{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x1580f5,J,_0x17f479];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x33055a){super(_0x33055a),this['ucContextId']=_0x197e06();}['init'](){const _0x4b19f7=this['editor'];_0x4b19f7['commands']['add']('uploadcare',new z(_0x4b19f7));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x208e52=_0x2139c0['document']['querySelector']('input[uploadcare-file-input]');_0x208e52&&_0x208e52['remove']();}),async function(_0x40c644){const _0x1be4ee='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0x580409=0x78e10,_0x4eafae=window['Date']['now'](),_0x159033=_0x40c644['editor'],_0x5626ae=new window['Promise'](_0x47910a=>{_0x159033['once']('ready',_0x47910a);}),_0x46722d={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x13d4b8=_0x159033['config']['get']('licenseKey');async function _0x134f71(){let _0xccb6fa,_0x5239c2=null,_0x2bf197=null;try{return'GPL'==_0x13d4b8?'NotAllowed':(_0xccb6fa=_0x1922db(),_0xccb6fa?(_0xccb6fa['usageEndpoint']&&(_0x2bf197=_0x194574(_0xccb6fa['usageEndpoint'],_0xccb6fa['jti'])),await _0x41cd2c()?_0x4d7e29()?_0x72cc27()?'Expired':_0x1bc552()?('evaluation'==_0xccb6fa['licenseType']&&(_0x5239c2=_0x3e496e('EvaluationLimit')),await _0x121b64()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x72cc27(){const _0x103238=['evaluation','trial']['includes'](_0xccb6fa['licenseType'])?_0x4eafae/0x3e8:0xe10*_0x580409;return _0xccb6fa['exp']<_0x103238;}function _0x4d7e29(){const _0x45470f=_0xccb6fa['features'];return!!_0x45470f&&(!!_0x45470f['includes']('*')||!!_0x45470f['includes']('UPLC'));}function _0x1bc552(){const _0xeb250d=_0xccb6fa['licensedHosts'];if(!_0xeb250d||0x0==_0xeb250d['length'])return!0x0;const {hostname:_0x38700a}=new URL(window['location']['href']);if(_0xeb250d['includes'](_0x38700a))return!0x0;const _0x2fed1f=_0x38700a['split']('.');return _0xeb250d['filter'](_0x2ccc6b=>_0x2ccc6b['includes']('*'))['map'](_0x450fc7=>_0x450fc7['split']('.'))['filter'](_0x3f5cd2=>_0x3f5cd2['length']<=_0x2fed1f['length'])['map'](_0x4b7ecb=>Array(_0x2fed1f['length']-_0x4b7ecb['length'])['fill']('*'===_0x4b7ecb[0x0]?'*':'')['concat'](_0x4b7ecb))['some'](_0x1c9694=>_0x2fed1f['every']((_0x2c075b,_0x5ba3d7)=>_0x1c9694[_0x5ba3d7]===_0x2c075b||'*'===_0x1c9694[_0x5ba3d7]));}function _0x121b64(){return _0x5239c2&&_0x2bf197?new window['Promise']((_0x541dba,_0x30348e)=>{_0x5239c2['then'](_0x541dba,_0x30348e),_0x2bf197['then'](_0xb3c99=>{'Valid'!=_0xb3c99&&_0x541dba(_0xb3c99);},_0x30348e);}):_0x5239c2||_0x2bf197||'Valid';}}function _0x194574(_0x4c194b,_0x1771d4){return new window['Promise'](_0x18beba=>{if(_0x2f8a19())return _0x18beba('Valid');_0x28a879(),_0x159033['decorate']('_sendUsageRequest');let _0x3addcb=!0x1;const _0x40620b=_0x197e06();function _0x3b92b5(_0x561e8e){return!!_0x561e8e&&('object'==typeof _0x561e8e||'function'==typeof _0x561e8e)&&'function'==typeof _0x561e8e['then']&&'function'==typeof _0x561e8e['catch'];}function _0x946b84(_0x215625){_0x41f853(_0x215625)['then'](_0x402cab=>_0x402cab&&'ok'==_0x402cab['status']?_0x4b75af(_0x2eb09b(_0x40620b+_0x1771d4))!=_0x402cab['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x4ee769=>(_0x1b8f09(),_0x4ee769),()=>{const _0x484625=_0x3d8352();return null==_0x484625?(_0x1b8f09(),'Valid'):_0x4eafae-_0x484625>0x240c8400?'UsageLimit':'Valid';})['then'](_0x18beba)['catch'](()=>{_0x18beba('UsageLimit');});const _0x3b7fba=0x36ee80;function _0x1b8f09(){const _0x58be77='llct-'+_0x4b75af(_0x2eb09b(_0x4c194b)),_0x195d59=_0x40ae9b(_0x4b75af(window['Math']['ceil'](_0x4eafae/_0x3b7fba)));window['localStorage']['setItem'](_0x58be77,_0x195d59);}function _0x3d8352(){const _0x14d99e='llct-'+_0x4b75af(_0x2eb09b(_0x4c194b)),_0x16e46f=window['localStorage']['getItem'](_0x14d99e);return _0x16e46f?window['parseInt'](_0x40ae9b(_0x16e46f),0x10)*_0x3b7fba:null;}function _0x41f853(_0x2c8dfa){return new window['Promise']((_0x4e177b,_0x115ecb)=>{_0x2c8dfa['then'](_0x4e177b,_0x115ecb),window['setTimeout'](_0x115ecb,0x1d4c0);});}}_0x159033['on']('_sendUsageRequest',(_0x24d743,_0x11437f)=>{if(_0x11437f[0x0]!=_0x4c194b)return _0x18beba('UsageLimit');_0x11437f[0x1]={..._0x11437f[0x1],'requestId':_0x40620b};},{'priority':'high'}),_0x159033['on']('_sendUsageRequest',_0x5b7ca7=>{_0x3b92b5(_0x5b7ca7['return'])&&(_0x3addcb=!0x0,_0x946b84(_0x5b7ca7['return']));},{'priority':'low'}),_0x5626ae['then'](()=>{_0x3addcb||_0x18beba('UsageLimit');});});function _0x2f8a19(){return'auto'==_0x159033['editing']['view']['_overlayModeHint'];}function _0x28a879(){_0x159033['editing']['view']['_overlayModeHint']='auto';}}function _0x3e496e(_0x304485){const _0x50cc0f=[new window['Promise'](_0x261cd6=>setTimeout(_0x261cd6,0x93ecc)),_0x5626ae['then'](()=>new window['Promise'](_0x3cc220=>{let _0x297fef=0x0;_0x159033['model']['on']('applyOperation',(_0x3a6744,_0xa111e6)=>{_0xa111e6[0x0]['isDocumentOperation']&&_0x297fef++,0x5e8==_0x297fef&&(_0x3cc220(),_0x3a6744['off']());});}))];return window['Promise']['race'](_0x50cc0f)['then'](()=>_0x304485);}async function _0x4b85a8(){await _0x5626ae,_0x159033['model']['change']=_0x384a63,_0x159033['model']['enqueueChange']=_0x384a63,_0x159033['enableReadOnlyMode']('model');}function _0x521d4e(_0x38eed6){const _0x3126f1=_0xd8710d();_0x159033[_0x3126f1]='uploadcareLicenseKey'+_0x38eed6,'Valid'!=_0x38eed6&&_0x4b85a8();}function _0xd8710d(){const _0x1be26c=window['String'](window['performance']['now']())['replace']('.','');let _0x2eac95='h';for(let _0x35f135=0x0;_0x35f135<_0x1be26c['length'];_0x35f135+=0x2){let _0xa83249=window['parseInt'](_0x1be26c['substring'](_0x35f135,_0x35f135+0x2));_0xa83249>=0x3e&&(_0xa83249-=0x3e),_0x2eac95+=_0x1be4ee[_0xa83249];}return _0x2eac95;}function _0x1922db(){const _0x3641a9=_0x13d4b8['split']('.');if(0x3!=_0x3641a9['length'])return null;return _0x12d04f(_0x3641a9[0x1]);function _0x12d04f(_0x40149e){const _0x157729=_0xb565c5(_0x40149e);return _0x157729&&_0xca544()?_0x157729:null;function _0xca544(){const _0x2c87c0=_0x157729['jti'],_0x38264b=window['parseInt'](_0x2c87c0['substring'](_0x2c87c0['length']-0x8),0x10),_0x5d9a14={..._0x157729,'jti':_0x2c87c0['substring'](0x0,_0x2c87c0['length']-0x8)};return delete _0x5d9a14['vc'],_0x2eb09b(_0x5d9a14)==_0x38264b;}}}async function _0x41cd2c(){let _0x404c13=!0x0;try{const [_0x2c34ec,_0x40c777,_0x3d219c]=_0x13d4b8['split']('.');return _0x463e05(_0x2c34ec),await _0x4f352b(_0x2c34ec,_0x40c777,_0x3d219c),_0x404c13;}catch{return!0x1;}function _0x463e05(_0x5efe3){const _0x2b0f11=_0xb565c5(_0x5efe3);_0x2b0f11&&'ES256'==_0x2b0f11['alg']||(_0x404c13=!0x1);}async function _0x4f352b(_0x40b3fc,_0x5098b8,_0x3163f7){const _0x3dd68c=window['Uint8Array']['from'](_0x128965(_0x3163f7),_0x498853=>_0x498853['charCodeAt'](0x0)),_0xc720cc=new window['TextEncoder']()['encode'](_0x40b3fc+'.'+_0x5098b8),_0x438ecc=window['crypto']['subtle'];if(!_0x438ecc)return;const _0x1e8db2=await _0x438ecc['importKey']('jwk',_0x46722d,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x438ecc['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x1e8db2,_0x3dd68c,_0xc720cc)||(_0x404c13=!0x1);}}function _0xb565c5(_0x407561){return _0x407561['startsWith']('ey')?JSON['parse'](_0x128965(_0x407561)):null;}function _0x128965(_0x525de5){return window['atob'](_0x525de5['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x2eb09b(_0x2fabf0){let _0x1fd898=0x1505;function _0x3bb0dd(_0x1f12b1){for(let _0x9bcb3=0x0;_0x9bcb3<_0x1f12b1['length'];_0x9bcb3++){const _0x23b189=_0x1f12b1['charCodeAt'](_0x9bcb3);_0x1fd898=(_0x1fd898<<0x5)+_0x1fd898+_0x23b189,_0x1fd898&=_0x1fd898;}}function _0x3589e6(_0x352962){Array['isArray'](_0x352962)?_0x352962['forEach'](_0x3589e6):_0x352962&&'object'==typeof _0x352962?Object['entries'](_0x352962)['sort']()['forEach'](([_0x448964,_0x56e951])=>{_0x3bb0dd(_0x448964),_0x3589e6(_0x56e951);}):_0x3bb0dd(window['String'](_0x352962));}return _0x3589e6(_0x2fabf0),_0x1fd898>>>0x0;}function _0x4b75af(_0x5d3a9e){return _0x5d3a9e['toString'](0x10)['padStart'](0x8,'0');}function _0x40ae9b(_0x2d539f){return _0x2d539f['split']('')['reverse']()['join']('');}function _0x384a63(){}_0x521d4e(await _0x134f71());}(this);}['_initSchema'](){const _0x51304b=this['editor']['model']['schema'];_0x51304b['isRegistered']('imageBlock')&&_0x51304b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x51304b['isRegistered']('imageInline')&&_0x51304b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3651de=this['editor'];_0x3651de['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3651de['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x15ef4f=>_0x15ef4f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x555dac=_0x3651de['commands']['get']('replaceImageSource');_0x555dac&&this['listenTo'](_0x555dac,'cleanupImage',(_0x451870,[_0x301c9d,_0x55bfe0])=>{_0x301c9d['removeAttribute']('uploadcareImageId',_0x55bfe0);});}['_initConfig'](){const _0x41ef50=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3a677d=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4f341d(_0x2139c0['document'],'uc-config',{..._0x41ef50,'pubkey':_0x3a677d,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2ac153=>{if('closeMax'==_0x2ac153)return'#uc-icon-arrow-down';},_0x2139c0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4f341d(_0x2139c0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2139c0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1dffce=this['editor']['commands']['get']('insertImage');_0x1dffce&&this['listenTo'](_0x1dffce,'execute',()=>{const _0xcb61f2=this['editor']['model']['document']['selection']['getSelectedElement']();_0xcb61f2&&_0xcb61f2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0xcb61f2);});});const _0x30d306=this['editor']['commands']['get']('uploadcareImageReplace');_0x30d306&&this['listenTo'](_0x30d306,'execute',()=>{const _0x45950a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x45950a&&_0x45950a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x45950a);});});}},Y=class extends _0xf14c47{static get['requires'](){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa3c1dc){super(_0xa3c1dc),_0xa3c1dc['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x32f798['defineComponents'](_0x32f798),this['_defineLocale']();}['_defineLocale'](){const _0x318136=this['editor']['config']['get']('uploadcare.locale'),_0x87398=this['editor']['locale']['contentLanguage'];_0x318136&&_0x32f798['defineLocale'](_0x87398,_0x318136);}},tt=class extends _0x56ebfc{constructor(_0x4ad3bc){super(_0x4ad3bc);const t=_0x4ad3bc['t'],_0x2c096b=this['bindTemplate'],_0x467264=new _0x43a7fb();_0x467264['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x467264,{'text':_0x2c096b['to']('imageUploadProgress',_0x5aed70=>t('Loading\x20image...')+'\x20('+(_0x5aed70||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}},et=class extends _0x56ebfc{constructor(_0x3b9aef){super(_0x3b9aef);const t=_0x3b9aef['t'];this['set']('errorType',null);const _0x338d68=new _0x44968d(_0x3b9aef);_0x338d68['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x338d68['withText']=!0x0,_0x338d68['class']='ck-button-action',_0x338d68['on']('execute',()=>{this['fire']('retry');}),_0x338d68['bind']('isVisible')['to'](this,'errorType',_0xed6429=>'NotFound'!==_0xed6429);const _0x4e67ed=new _0x47b45c();_0x4e67ed['content']=_0x5154a2,_0x4e67ed['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4d0a71=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x4e67ed,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4d0a71['to']('errorType',_0x5ad328=>t('NotFound'!==_0x5ad328?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x338d68]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}},it=class extends _0x56ebfc{constructor(_0x2d4fb1,_0x389046){super(_0x2d4fb1);const _0x5361e6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x389046,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5361e6['to']('imageSrc')}});}},st=class extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3df888,_0x168132,_0x7b3893){super(_0x3df888),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x3df888),this['_errorView']=new et(_0x3df888),this['_editingView']=new it(_0x3df888,_0x7b3893),this['_focusableView']=new _0x56ebfc(_0x3df888),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x168132),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x35ba9a=>{this['_addUploadcareImageEditorListeners'](_0x35ba9a);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x405270,_0x16fceb){const _0x2c9f6e='uc-cloud-image-editor',_0x2fe054=_0x405270['querySelector'](_0x2c9f6e);if(_0x2fe054)return _0x16fceb(_0x2fe054);const _0x35d8d3=new MutationObserver(_0x430308=>{const _0x6e3c55=_0x430308['filter'](_0x318d67=>_0x318d67['target']===_0x405270&&_0x318d67['addedNodes']['length']>0x0&&_0x318d67['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2c9f6e);_0x6e3c55['length']&&(_0x35d8d3['disconnect'](),_0x16fceb(_0x6e3c55[0x0]['addedNodes'][0x0]));});_0x35d8d3['observe'](_0x405270,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x312298){_0x312298['addEventListener']('apply',_0x3b7117=>{this['fire']('apply',{'imageSrc':_0x3b7117['detail']['cdnUrl']});}),_0x312298['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const rt=/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x47bd7e();var nt=class extends rt{['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x343947,_0x349c48,_0x54fc27){super(),this['_editor']=_0x343947,this['_dialog']=_0x349c48,this['_imageElement']=_0x54fc27,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x4a9b5a=this['_imageElement'],_0x10b99c=_0x4a9b5a['getAttribute']('uploadcareImageId'),_0x29819c=_0x4a9b5a['getAttribute']('src');if(_0x10b99c)await this['_loadImageInfo'](_0x10b99c,_0x29819c);else{if(this['_imageCache']['has'](_0x29819c)){const _0xb5e075=this['_imageCache']['get'](_0x29819c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xb5e075['url'],this['imageDimension']=_0xb5e075['dimension'],this['imageId']=_0xb5e075['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x49dee9}=this['_editor'],t=_0x49dee9['t'],_0x8b8af2=new st(_0x49dee9,this['imageStatus'],this['_attributes']);_0x8b8af2['bind']('status')['to'](this,'imageStatus'),_0x8b8af2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x8b8af2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x8b8af2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x8b8af2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2a5497,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x8b8af2,'position':_0x23d711['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x8b8af2['focus']();},'onHide':()=>{_0x8b8af2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5b22ad=>!H(_0x5b22ad,_0x8b8af2['element'])}});}['_loadImageInfo'](_0x52eab7,_0x2bf172){return Q['getInfo'](_0x52eab7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x41b19d=>{const {width:_0x3bde55,height:_0x45866c}=_0x41b19d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2bf172,this['imageDimension']={'width':_0x3bde55,'height':_0x45866c},this['imageId']=_0x52eab7;})['catch'](_0x21aa1f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x21aa1f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x34d85e,_0x29c878){return this['_getImageAsFile'](_0x34d85e)['then'](_0x4489a8=>Q['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x29c878['signal'],'file':_0x4489a8,'onProgress':_0x378faa=>{_0x378faa&&_0x378faa['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x378faa['value']));}}))['then'](_0x3b7802=>{const {width:_0x41aac3,height:_0x5375fa}=_0x3b7802['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3b7802['cdnUrl'],this['imageDimension']={'width':_0x41aac3,'height':_0x5375fa},this['imageId']=_0x3b7802['uuid'],this['imageUploadProgress']=null;const _0x5555ae=_0x34d85e['getAttribute']('src');this['_imageCache']['set'](_0x5555ae,{'id':_0x3b7802['uuid'],'url':_0x3b7802['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2114a6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2114a6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2f147e,_0xf491c4){_0x2f147e['on']('apply',(_0x28b67e,_0x445add)=>{this['_replaceImage'](_0xf491c4,_0x445add['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2f147e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2f147e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3b7030,_0x4ade0b,_0x1f7918){const _0x27e1ac=this['_editor'],{width:_0x8c0133,height:_0x496d18}=j(_0x4ade0b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2df523,imageSources:_0x5447e3}=B(_0x4ade0b,_0x8c0133);_0x27e1ac['model']['change'](_0xe2dc32=>{if('$graveyard'!==_0x3b7030['root']['rootName'])_0xe2dc32['setSelection'](_0x3b7030,'on'),_0x27e1ac['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3b7030['getAttributes']()),'uploadcareImageId':_0x1f7918,'src':_0x2df523,'sources':_0x5447e3,'width':_0x8c0133,'height':_0x496d18},_0x3b7030);else{_0x27e1ac['execute']('insertImage',{'imageType':_0x3b7030['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3b7030['getAttributes']()),'uploadcareImageId':_0x1f7918,'src':_0x2df523,'sources':_0x5447e3,'width':_0x8c0133,'height':_0x496d18}});const _0x14b70e=_0x3b7030['getChildren']();_0x3b7030=_0x27e1ac['model']['document']['selection']['getSelectedElement']();for(const _0x2cc3ff of _0x14b70e)_0xe2dc32['append'](_0xe2dc32['cloneElement'](_0x2cc3ff),_0x3b7030);}_0xe2dc32['setSelection'](_0x3b7030,'on');});}async['_getImageAsFile'](_0x345fe9){const _0x1d0e27=_0x2139c0['window'],_0x1dcf7a=_0x2139c0['document']['location']['href'],_0x301ad9=new _0x1d0e27['URL'](_0x345fe9['getAttribute']('src'),_0x1dcf7a);if('data:'===_0x301ad9['protocol']){const _0x4dfd06=_0x301ad9['href']['split'](','),_0x5c3925=_0x4dfd06[0x0]['match'](/:(.*?);/)[0x1],_0x5e88b6=_0x5c3925['split']('/')[0x1],_0x374325=_0x1d0e27['atob'](_0x4dfd06[_0x4dfd06['length']-0x1]);let _0x2ab0e7=_0x374325['length'];const _0x1369dc=new _0x1d0e27['Uint8Array'](_0x2ab0e7);for(;_0x2ab0e7--;)_0x1369dc[_0x2ab0e7]=_0x374325['charCodeAt'](_0x2ab0e7);return new _0x1d0e27['File']([_0x1369dc],'image.'+_0x5e88b6,{'type':_0x5c3925});}const _0x440edd=_0x301ad9['href']['split']('/'),_0x3594fa=_0x440edd[_0x440edd['length']-0x1],_0x49ce89=_0x3594fa['split']('.')[0x1];return _0x1d0e27['fetch'](_0x301ad9['href'])['then'](_0x4a774b=>_0x4a774b['clone']()['blob']())['then'](_0x539739=>new _0x1d0e27['File']([_0x539739],_0x3594fa,{'type':'image/'+_0x49ce89}));}},at=class extends _0x5a4179{['imageEditController'];static get['requires'](){return[_0x17f479];}['_isEditable'];constructor(_0x537458){super(_0x537458),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x7fda03){const _0x5a2a6f=M(_0x7fda03);return _0x9c42c1=>!(!_0x9c42c1||!_0x9c42c1['is']('element','imageBlock')&&!_0x9c42c1['is']('element','imageInline'))&&(!!_0x9c42c1['hasAttribute']('uploadcareImageId')||!!_0x9c42c1['hasAttribute']('src')&&_0x5a2a6f(_0x9c42c1['getAttribute']('src')));}(_0x537458['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x520ab6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x520ab6);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3f024c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3f024c&&(_0x3f024c['is']('element','imageBlock')||_0x3f024c['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x17f479),_0x3f024c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x5a4179{['refresh'](){const _0x99aa33=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x99aa33&&(_0x99aa33['is']('element','imageBlock')||_0x99aa33['is']('element','imageInline')));}['execute'](_0x573abb){const _0x1186ce=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3a2232=>{_0x3a2232['setAttributes'](_0x573abb,_0x1186ce),_0x3a2232['removeAttribute']('srcset',_0x1186ce),_0x3a2232['removeAttribute']('sizes',_0x1186ce);});}},ct=class extends _0xf14c47{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[Z,_0x485130,_0x9bb638,_0x26c409];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2aa797}=this;_0x2aa797['commands']['add']('uploadcareImageEdit',new at(_0x2aa797)),_0x2aa797['commands']['add']('uploadcareImageReplace',new ot(_0x2aa797));}},lt=class extends _0xf14c47{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x594828=this['editor'];_0x594828['ui']['componentFactory']['add']('uploadcareImageEdit',_0xcd6b07=>{const _0x5256ee=_0x594828['commands']['get']('uploadcareImageEdit'),_0x4fbe3d=new _0x44968d(_0xcd6b07),t=_0xcd6b07['t'];return _0x4fbe3d['set']({'icon':_0x2a5497,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4fbe3d['bind']('isEnabled')['to'](_0x5256ee),_0x4fbe3d['bind']('isOn')['to'](_0x5256ee,'isActive'),this['listenTo'](_0x4fbe3d,'execute',()=>{_0x594828['execute']('uploadcareImageEdit'),_0x594828['editing']['view']['focus']();}),_0x4fbe3d;}),this['_initConfig']();}['_initConfig'](){const _0x3bd0f6=_0x4f341d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3bd0f6),this['listenTo'](this['editor'],'destroy',()=>{_0x3bd0f6['remove']();});}},ut=class extends _0xf14c47{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[ct,lt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{Y as Uploadcare,z as UploadcareCommand,Z as UploadcareEditing,ut as UploadcareImageEdit,at as UploadcareImageEditCommand,ct as UploadcareImageEditEditing,lt as UploadcareImageEditUI,V as UploadcareUI,J as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x2e8d9a=>0x1!=_0x2e8d9a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x175c87=>{const {af:{dictionary:_0x1aafd9,getPluralForm:_0x15db8a}}={'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x5369f4=>0x1!=_0x5369f4}};_0x175c87['af']||={'dictionary':{},'getPluralForm':null},_0x175c87['af']['dictionary']=Object['assign'](_0x175c87['af']['dictionary'],_0x1aafd9),_0x175c87['af']['getPluralForm']=_0x15db8a;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ar.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':
|
|
23
|
+
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x451b20=>0x0==_0x451b20?0x0:0x1==_0x451b20?0x1:0x2==_0x451b20?0x2:_0x451b20%0x64>=0x3&&_0x451b20%0x64<=0xa?0x3:_0x451b20%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4cefbf=>{const {ar:{dictionary:_0xf66f7c,getPluralForm:_0x311f07}}={'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x58026c=>0x0==_0x58026c?0x0:0x1==_0x58026c?0x1:0x2==_0x58026c?0x2:_0x58026c%0x64>=0x3&&_0x58026c%0x64<=0xa?0x3:_0x58026c%0x64>=0xb?0x4:0x5}};_0x4cefbf['ar']||={'dictionary':{},'getPluralForm':null},_0x4cefbf['ar']['dictionary']=Object['assign'](_0x4cefbf['ar']['dictionary'],_0xf66f7c),_0x4cefbf['ar']['getPluralForm']=_0x311f07;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ast.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x301331=>0x1!=_0x301331}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2e4301=>{const {ast:{dictionary:_0x33e413,getPluralForm:_0x45c49c}}={'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x39c7af=>0x1!=_0x39c7af}};_0x2e4301['ast']||={'dictionary':{},'getPluralForm':null},_0x2e4301['ast']['dictionary']=Object['assign'](_0x2e4301['ast']['dictionary'],_0x33e413),_0x2e4301['ast']['getPluralForm']=_0x45c49c;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/az.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x5221aa=>0x1!=_0x5221aa}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3fec86=>{const {az:{dictionary:_0x5d2899,getPluralForm:_0x5aa6ea}}={'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x189687=>0x1!=_0x189687}};_0x3fec86['az']||={'dictionary':{},'getPluralForm':null},_0x3fec86['az']['dictionary']=Object['assign'](_0x3fec86['az']['dictionary'],_0x5d2899),_0x3fec86['az']['getPluralForm']=_0x5aa6ea;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x475f6e=>_0x475f6e%0xa==0x1&&_0x475f6e%0x64!=0xb?0x0:_0x475f6e%0xa>=0x2&&_0x475f6e%0xa<=0x4&&(_0x475f6e%0x64<0xa||_0x475f6e%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x28264a=>{const {be:{dictionary:_0x3957a5,getPluralForm:_0xc354ff}}={'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x50a471=>_0x50a471%0xa==0x1&&_0x50a471%0x64!=0xb?0x0:_0x50a471%0xa>=0x2&&_0x50a471%0xa<=0x4&&(_0x50a471%0x64<0xa||_0x50a471%0x64>=0x14)?0x1:0x2}};_0x28264a['be']||={'dictionary':{},'getPluralForm':null},_0x28264a['be']['dictionary']=Object['assign'](_0x28264a['be']['dictionary'],_0x3957a5),_0x28264a['be']['getPluralForm']=_0xc354ff;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bg.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':
|
|
23
|
+
export default{'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x5e0602=>0x1!=_0x5e0602}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x11c48f=>{const {bg:{dictionary:_0x59cf8f,getPluralForm:_0x5345a1}}={'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x4b7b1d=>0x1!=_0x4b7b1d}};_0x11c48f['bg']||={'dictionary':{},'getPluralForm':null},_0x11c48f['bg']['dictionary']=Object['assign'](_0x11c48f['bg']['dictionary'],_0x59cf8f),_0x11c48f['bg']['getPluralForm']=_0x5345a1;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bn.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':
|
|
23
|
+
export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0x32acc3=>0x1!=_0x32acc3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x50fd56=>{const {bn:{dictionary:_0x24e08a,getPluralForm:_0x5ecfb9}}={'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0x31ece1=>0x1!=_0x31ece1}};_0x50fd56['bn']||={'dictionary':{},'getPluralForm':null},_0x50fd56['bn']['dictionary']=Object['assign'](_0x50fd56['bn']['dictionary'],_0x24e08a),_0x50fd56['bn']['getPluralForm']=_0x5ecfb9;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bs.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bs':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'bs':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x3a6a4b=>_0x3a6a4b%0xa==0x1&&_0x3a6a4b%0x64!=0xb?0x0:_0x3a6a4b%0xa>=0x2&&_0x3a6a4b%0xa<=0x4&&(_0x3a6a4b%0x64<0xa||_0x3a6a4b%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2a54b3=>{const {bs:{dictionary:_0x5ede67,getPluralForm:_0x25ed0f}}={'bs':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x168036=>_0x168036%0xa==0x1&&_0x168036%0x64!=0xb?0x0:_0x168036%0xa>=0x2&&_0x168036%0xa<=0x4&&(_0x168036%0x64<0xa||_0x168036%0x64>=0x14)?0x1:0x2}};_0x2a54b3['bs']||={'dictionary':{},'getPluralForm':null},_0x2a54b3['bs']['dictionary']=Object['assign'](_0x2a54b3['bs']['dictionary'],_0x5ede67),_0x2a54b3['bs']['getPluralForm']=_0x25ed0f;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ca.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':
|
|
23
|
+
export default{'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':_0x281d4e=>0x1!=_0x281d4e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5d61fb=>{const {ca:{dictionary:_0x31cbfe,getPluralForm:_0x153aa2}}={'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':_0xa99f57=>0x1!=_0xa99f57}};_0x5d61fb['ca']||={'dictionary':{},'getPluralForm':null},_0x5d61fb['ca']['dictionary']=Object['assign'](_0x5d61fb['ca']['dictionary'],_0x31cbfe),_0x5d61fb['ca']['getPluralForm']=_0x153aa2;})(window['CKEDITOR_TRANSLATIONS']||={});
|