@ckeditor/ckeditor5-uploadcare 48.3.0-alpha.2 → 48.3.0-alpha.4
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 _0x15b600,Plugin as _0x2478e0}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x501a8a,IconError as _0x51e927,IconFacebook as _0x3ddba9,IconGoogleDrive as _0x12c960,IconGooglePhotos as _0x33b633,IconOneDrive as _0x1c2625,IconUploadcareImageEdit as _0x3b22aa,IconUploadcareImageUpload as _0x330a23,IconUploadcareLink as _0x5d623a}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x237893,Dialog as _0x1a6cd3,DialogViewPosition as _0x270692,FocusCycler as _0x10d70b,IconView as _0x5a4bca,MenuBarMenuListItemButtonView as _0x50aee8,Notification as _0x3b0a81,SpinnerView as _0x2dbb9d,View as _0x3a45d1}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x1b6bd7,FocusTracker as _0x31c98c,ObservableMixin as _0x496fc4,createElement as _0x48f70e,getAncestors as _0x3c7f96,global as _0x8f2a55,uid as _0x227201}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x6ee520,ImageUploadEditing as _0x2d8479,ImageUploadProgress as _0x4b1360,ImageUtils as _0x5c8b61,PictureEditing as _0x45f86e}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x40bdd7}from'@ckeditor/ckeditor5-upload';import{info as _0x3b8c82,uploadFile as _0x43df67}from'@uploadcare/upload-client';import*as _0x44295a from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x9db208,_0xc05da8,_0x2a44c0){const t=_0x9db208['t'],_0x58624a=_0x9db208['t'];switch(_0xc05da8){case'local':return{'text':_0x58624a('Insert'===_0x2a44c0?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x58624a('From\x20computer')};case'url':return{'text':'Insert'===_0x2a44c0?_0x58624a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x58624a('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x2a44c0?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x2a44c0?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x2a44c0?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x2a44c0?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x2a44c0?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xc05da8;}}var V=class extends _0x2478e0{['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 _0x401f03=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4e22a4;for(const _0x5429c4 in _0x401f03){const _0x15aa14=_0x5429c4,_0x251c0c=_0x401f03[_0x15aa14];if('uploadcareLicenseKeyValid'==_0x251c0c||'uploadcareLicenseKeyInvalid'==_0x251c0c||'uploadcareLicenseKeyExpired'==_0x251c0c||'uploadcareLicenseKeyDomainLimit'==_0x251c0c||'uploadcareLicenseKeyNotAllowed'==_0x251c0c||'uploadcareLicenseKeyEvaluationLimit'==_0x251c0c||'uploadcareLicenseKeyUsageLimit'==_0x251c0c){delete _0x401f03[_0x15aa14],_0x4e22a4=_0x251c0c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4e22a4&&_0x401f03['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4e22a4&&_0x401f03['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4e22a4&&_0x401f03['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4e22a4&&_0x401f03['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4e22a4&&_0x401f03['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4e22a4&&_0x401f03['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x592166}=this,_0x47918f=_0x592166['commands']['get']('uploadcare');if(!_0x47918f)return;const _0x17e604=this['_normalizeConfigSourceList'](_0x592166['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1e4597,_0x3e82cf)=>{const _0x269978=this['_getIntegrationKey'](_0x3e82cf['type']);return _0x1e4597[_0x269978]||(_0x1e4597[_0x269978]=[]),_0x1e4597[_0x269978]['push'](_0x3e82cf),_0x1e4597;},{});_0x592166['plugins']['has']('ImageInsertUI')&&_0x592166['commands']['get']('uploadcare')&&Object['entries'](_0x17e604)['forEach'](([_0x101ce1,_0xcaa915])=>{_0x592166['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x101ce1,'observable':()=>_0x47918f,'buttonViewCreator':()=>this['_createToolbarButton'](_0xcaa915),'formViewCreator':()=>this['_createDropdownButtons'](_0xcaa915),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xcaa915),'override':'assetManager'!==_0x101ce1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2cde4a){const {locale:_0x5d8949}=this['editor'];return _0x2cde4a['map'](_0x21f3c7=>{const _0x5cf99b=T(_0x5d8949,_0x21f3c7,'Insert');switch(_0x21f3c7){case'local':return{'icon':_0x330a23,'type':'local',..._0x5cf99b};case'url':return{'icon':_0x5d623a,'type':'url',..._0x5cf99b};case'dropbox':return{'icon':_0x501a8a,'type':'dropbox',..._0x5cf99b};case'facebook':return{'icon':_0x3ddba9,'type':'facebook',..._0x5cf99b};case'gdrive':return{'icon':_0x12c960,'type':'gdrive',..._0x5cf99b};case'gphotos':return{'icon':_0x33b633,'type':'gphotos',..._0x5cf99b};case'onedrive':return{'icon':_0x1c2625,'type':'onedrive',..._0x5cf99b};}});}['_getIntegrationKey'](_0xace306){switch(_0xace306){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x59f29a,_0x26fea5){const _0x3b5652=this['editor'],_0x281328=new _0x59f29a(_0x3b5652['locale']),_0x2308de=_0x3b5652['commands']['get']('uploadcare');return _0x281328['bind']('isEnabled')['to'](_0x2308de),_0x281328['on']('execute',()=>{_0x2308de['execute'](_0x26fea5);}),_0x281328;}['_createToolbarButton'](_0x958161){const {locale:_0x58c477}=this['editor'],_0x4c836b=this['editor']['plugins']['get']('ImageInsertUI'),_0x134ce2=_0x958161[0x0],_0x52fbee=this['_createButton'](_0x237893,_0x134ce2['type']);return _0x52fbee['icon']=_0x134ce2['icon'],_0x52fbee['bind']('label')['to'](_0x4c836b,'isImageSelected',_0x19bb1c=>T(_0x58c477,_0x134ce2['type'],_0x19bb1c?'Replace':'Insert')['text']),_0x52fbee['tooltip']=!0x0,_0x52fbee;}['_createDropdownButtons'](_0x1294f6){const {locale:_0xba95ce}=this['editor'],_0xc3db72=this['editor']['plugins']['get']('ImageInsertUI');return _0x1294f6['map'](_0x530f10=>{const _0x9f30aa=this['_createButton'](_0x237893,_0x530f10['type']);return _0x9f30aa['withText']=!0x0,_0x9f30aa['icon']=_0x530f10['icon'],_0x9f30aa['bind']('label')['to'](_0xc3db72,'isImageSelected',_0x15ff3b=>T(_0xba95ce,_0x530f10['type'],_0x15ff3b?'Replace':'Insert')['text']),_0x9f30aa;});}['_createMenuBarButtons'](_0x35bc5c){return _0x35bc5c['map'](_0x53413e=>{const _0x4378d7=this['_createButton'](_0x50aee8,_0x53413e['type']);return _0x4378d7['icon']=_0x53413e['icon'],_0x4378d7['label']=_0x53413e['shortText'],_0x4378d7;});}},F=class extends _0x3a45d1{['focusTracker'];['focusCycler'];constructor(_0x246a96){super(_0x246a96),this['focusTracker']=new _0x31c98c(),this['focusCycler']=new _0x10d70b({'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(_0x2e414b,_0x115592){super(_0x2e414b),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-'+_0x115592}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x3b4c74,_0x532bf6){const _0x262a62=_0x3b4c74['replace'](/\/$/,'');return{'imageFallbackUrl':_0x3b4c74,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2d6ede=>_0x2d6ede<_0x532bf6)['map'](_0x26db27=>_0x262a62+'/-/resize/'+_0x26db27+'x/\x20'+_0x26db27+'w'),_0x3b4c74+'\x20'+_0x532bf6+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x532bf6+'px)\x20100vw,\x20'+_0x532bf6+'px','type':'image/webp'}]};}function j(_0x53bb4,_0x444a78,_0x30aa7d){const _0x1aa212=_0x53bb4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1aa212?parseInt(_0x1aa212[0x1],0xa):_0x444a78,'height':_0x1aa212?parseInt(_0x1aa212[0x2],0xa):_0x30aa7d};}function q(_0x3fc73f,_0x8073c3){const _0x196450=new(_0x1b6bd7())(),_0x4094d0=_0x3fc73f['plugins']['get']('ImageUtils'),_0x390224=_0x3fc73f['editing']['mapper']['toViewElement'](_0x8073c3),_0x31d0eb=_0x4094d0['findViewImgElement'](_0x390224),_0x284d3d=_0x3fc73f['editing']['view']['domConverter']['viewToDom'](_0x31d0eb),_0x2d0eba=_0x8073c3['getAttribute']('width'),_0x51a2b9=_0x8073c3['getAttribute']('height'),_0x2f0f97='image-processing';_0x3fc73f['editing']['view']['change'](_0x43cf27=>{_0x43cf27['addClass'](_0x2f0f97,_0x390224),_0x43cf27['setStyle']('aspect-ratio',_0x2d0eba+'/'+_0x51a2b9,_0x31d0eb);}),_0x196450['listenTo'](_0x284d3d,'load',()=>{_0x196450['stopListening'](_0x284d3d,'load'),_0x3fc73f['editing']['view']['change'](_0x3d561f=>{_0x3d561f['removeClass'](_0x2f0f97,_0x390224),_0x3d561f['removeStyle']('aspect-ratio',_0x31d0eb);});});}function M(_0x2185b0){if(Array['isArray'](_0x2185b0)){const _0xde374f=_0x2185b0['map'](M);return _0x3fb969=>_0xde374f['some'](_0x56e97d=>_0x56e97d(_0x3fb969));}if('origin'==_0x2185b0){const _0x5a0b18=_0x8f2a55['window']['location']['origin'];return _0x387551=>new URL(_0x387551,_0x8f2a55['document']['baseURI'])['origin']==_0x5a0b18;}return'function'==typeof _0x2185b0?_0x2185b0:_0x2185b0 instanceof RegExp?_0x12fc01=>!(!_0x12fc01['match'](_0x2185b0)&&!_0x12fc01['replace'](/^https?:\/\//,'')['match'](_0x2185b0)):()=>!0x1;}function H(_0x185dcf,_0x1b51a2){return _0x3c7f96(_0x185dcf['target'])['includes'](_0x1b51a2);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x496fc4();var G=class extends W{['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5e609b,_0xced173,_0x4881d4){super(),this['_editor']=_0x5e609b,this['_editing']=_0xced173,this['_dialog']=_0x5e609b['plugins']['get'](_0x1a6cd3),this['_api']=_0xced173['ctxElement']['getAPI'](),this['_type']=_0x4881d4,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:_0x2ff503,model:_0x5b820b}=this['_editor'],_0x5102b9=_0x5b820b['document']['selection']['getSelectedElement'](),_0x2a719e=_0x5102b9&&(_0x5102b9['is']('element','imageBlock')||_0x5102b9['is']('element','imageInline'));this['_formView']=new $(_0x2ff503,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x330a23,'title':T(_0x2ff503,this['_type'],_0x2a719e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x270692['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x28caeb=>!H(_0x28caeb,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x15fc6b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3a56e1=>{const _0x237c93=_0x15fc6b['length'];for(const _0x177a19 of _0x15fc6b){const _0x337427=_0x177a19===_0x15fc6b[_0x237c93-0x1],{cdnUrl:_0x29a785,fileInfo:_0x436f23}=_0x177a19;if(!_0x29a785||!_0x436f23)continue;const {width:_0x1c68a7,height:_0x2c78f}=_0x436f23['imageInfo'],_0x21d87a=j(_0x29a785,_0x1c68a7,_0x2c78f),_0x477547=B(_0x29a785,_0x21d87a['width']),_0x181b13={'id':_0x436f23['uuid'],'type':'image','attributes':{'imageDimension':_0x21d87a,..._0x477547}};this['_insertAsset'](_0x181b13,_0x337427,_0x3a56e1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x194d61=>{'idle'===_0x194d61['detail']['status']&&!_0x194d61['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}['_insertAsset'](_0x1686de,_0x3cd680,_0x382eb1){const _0x35488b=this['_editor']['model']['document']['selection'],_0x4312dc=_0x35488b['getSelectedElement'](),_0xdd99e=!(!_0x4312dc||!_0x4312dc['is']('element','imageInline'));_0x382eb1['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1686de,_0xdd99e),_0x3cd680||_0x382eb1['setSelection'](_0x35488b['getLastPosition']());}['_insertImage'](_0x22ecda,_0x48b278){const _0x299ed4=this['_editor'],{imageDimension:_0x3c815a,imageFallbackUrl:_0x465f9d,imageSources:_0x583bb0}=_0x22ecda['attributes'];_0x299ed4['execute']('insertImage',{'imageType':_0x48b278?'imageInline':null,'source':{'uploadcareImageId':_0x22ecda['id'],'src':_0x465f9d,'sources':_0x583bb0,..._0x3c815a}});}},z=class extends _0x15b600{['_editing'];['_controller']=null;static get['requires'](){return[_0x1a6cd3,Z];}constructor(_0x2a45b5){super(_0x2a45b5),this['_editing']=_0x2a45b5['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3ecbe5){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x3ecbe5);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x46775c,..._0xb73911}){return _0x43df67(_0x46775c,_0xb73911);}static['getInfo'](_0x58549b,_0x4bdb41){return _0x3b8c82(_0x58549b,_0x4bdb41);}},J=class extends _0x2478e0{static get['requires'](){return[_0x2d8479,_0x4b1360,_0x40bdd7,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4fce00=this['editor'];if(!_0x4fce00['config']['get']('uploadcare'))return;_0x4fce00['plugins']['get'](_0x40bdd7)['createUploadAdapter']=_0x390b36=>new X(_0x390b36,_0x4fce00),_0x4fce00['plugins']['get'](_0x2d8479)['on']('uploadComplete',(_0xb3c7f9,{imageElement:_0x38cc47,data:_0x52998a})=>{_0x4fce00['model']['change'](_0x2d4501=>{_0x2d4501['setAttribute']('uploadcareImageId',_0x52998a['uploadcareImageId'],_0x38cc47);});});}},X=class{['loader'];['editor'];['controller'];constructor(_0x144818,_0x1d3349){this['loader']=_0x144818,this['editor']=_0x1d3349,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4686da=await this['loader']['file'];return Q['upload']({'file':_0x4686da,'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':_0x34ed24=>{_0x34ed24&&_0x34ed24['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x34ed24['value']);}})['then'](async _0x5139c3=>{const {imageFallbackUrl:_0x2f8904,imageSources:_0x2d5269}=B(_0x5139c3['cdnUrl'],_0x5139c3['imageInfo']['width']);return{'uploadcareImageId':_0x5139c3['uuid'],'default':_0x2f8904,'sources':_0x2d5269};})['catch'](()=>{const _0x2c05fe=t('Cannot\x20upload\x20file:')+('\x20'+_0x4686da['name']+'.');return Promise['reject'](_0x2c05fe);});}['abort'](){this['controller']['abort']();}},Z=class extends _0x2478e0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x45f86e,J,_0x1a6cd3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x43290a){super(_0x43290a),this['ucContextId']=_0x227201();}['init'](){const _0x2db405=this['editor'];_0x2db405['commands']['add']('uploadcare',new z(_0x2db405));}['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 _0x5b00b7=_0x8f2a55['document']['querySelector']('input[uploadcare-file-input]');_0x5b00b7&&_0x5b00b7['remove']();}),async function(_0x5462d2){const _0x45f930='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0x173d15=0x78e28,_0x4dc055=window['Date']['now'](),_0x1fa85f=_0x5462d2['editor'],_0x253792=new window['Promise'](_0x1ad349=>{_0x1fa85f['once']('ready',_0x1ad349);}),_0x4b55df={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x9a4b98=_0x1fa85f['config']['get']('licenseKey');async function _0x504998(){let _0x40c738,_0x1baf9b=null,_0x35e190=null;try{return'GPL'==_0x9a4b98?'NotAllowed':(_0x40c738=_0x20a819(),_0x40c738?(_0x40c738['usageEndpoint']&&(_0x35e190=_0x4898cd(_0x40c738['usageEndpoint'],_0x40c738['jti'])),await _0x130a16()?_0x56696d()?_0x57fde1()?'Expired':_0x3132e8()?('evaluation'==_0x40c738['licenseType']&&(_0x1baf9b=_0x5be0cb('EvaluationLimit')),await _0x417495()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x57fde1(){const _0x34eccb=['evaluation','trial']['includes'](_0x40c738['licenseType'])?_0x4dc055/0x3e8:0xe10*_0x173d15;return _0x40c738['exp']<_0x34eccb;}function _0x56696d(){const _0x20f121=_0x40c738['features'];return!!_0x20f121&&(!!_0x20f121['includes']('*')||!!_0x20f121['includes']('UPLC'));}function _0x3132e8(){const _0x1270da=_0x40c738['licensedHosts'];if(!_0x1270da||0x0==_0x1270da['length'])return!0x0;const {hostname:_0x1e0830}=new URL(window['location']['href']);if(_0x1270da['includes'](_0x1e0830))return!0x0;const _0x5101a0=_0x1e0830['split']('.');return _0x1270da['filter'](_0x12d2b0=>_0x12d2b0['includes']('*'))['map'](_0x24993f=>_0x24993f['split']('.'))['filter'](_0x4b3f2f=>_0x4b3f2f['length']<=_0x5101a0['length'])['map'](_0x31dd9b=>Array(_0x5101a0['length']-_0x31dd9b['length'])['fill']('*'===_0x31dd9b[0x0]?'*':'')['concat'](_0x31dd9b))['some'](_0x7c614d=>_0x5101a0['every']((_0x39848b,_0x4d1180)=>_0x7c614d[_0x4d1180]===_0x39848b||'*'===_0x7c614d[_0x4d1180]));}function _0x417495(){return _0x1baf9b&&_0x35e190?new window['Promise']((_0x7ddb88,_0x4dac30)=>{_0x1baf9b['then'](_0x7ddb88,_0x4dac30),_0x35e190['then'](_0xc6d986=>{'Valid'!=_0xc6d986&&_0x7ddb88(_0xc6d986);},_0x4dac30);}):_0x1baf9b||_0x35e190||'Valid';}}function _0x4898cd(_0x333f49,_0x2142fc){return new window['Promise'](_0x577351=>{if(_0x576639())return _0x577351('Valid');_0x542488(),_0x1fa85f['decorate']('_sendUsageRequest');let _0x2cb09c=!0x1;const _0x5e4cee=_0x227201();function _0x5e85cc(_0xea7db4){return!!_0xea7db4&&('object'==typeof _0xea7db4||'function'==typeof _0xea7db4)&&'function'==typeof _0xea7db4['then']&&'function'==typeof _0xea7db4['catch'];}function _0x35fa18(_0x4f853e){_0x3b519d(_0x4f853e)['then'](_0x1430c1=>_0x1430c1&&'ok'==_0x1430c1['status']?_0x421b30(_0x3cf919(_0x5e4cee+_0x2142fc))!=_0x1430c1['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x38955=>(_0x3b0edf(),_0x38955),()=>{const _0x27a04d=_0x324d3f();return null==_0x27a04d?(_0x3b0edf(),'Valid'):_0x4dc055-_0x27a04d>0x240c8400?'UsageLimit':'Valid';})['then'](_0x577351)['catch'](()=>{_0x577351('UsageLimit');});const _0x1e94f6=0x36ee80;function _0x3b0edf(){const _0x2027fb='llct-'+_0x421b30(_0x3cf919(_0x333f49)),_0x2af44c=_0x449dbc(_0x421b30(window['Math']['ceil'](_0x4dc055/_0x1e94f6)));window['localStorage']['setItem'](_0x2027fb,_0x2af44c);}function _0x324d3f(){const _0x4e0f95='llct-'+_0x421b30(_0x3cf919(_0x333f49)),_0x42ad30=window['localStorage']['getItem'](_0x4e0f95);return _0x42ad30?window['parseInt'](_0x449dbc(_0x42ad30),0x10)*_0x1e94f6:null;}function _0x3b519d(_0x560c5e){return new window['Promise']((_0xc9ab88,_0x1cb9d8)=>{_0x560c5e['then'](_0xc9ab88,_0x1cb9d8),window['setTimeout'](_0x1cb9d8,0x1d4c0);});}}_0x1fa85f['on']('_sendUsageRequest',(_0x130e32,_0x54fc94)=>{if(_0x54fc94[0x0]!=_0x333f49)return _0x577351('UsageLimit');_0x54fc94[0x1]={..._0x54fc94[0x1],'requestId':_0x5e4cee};},{'priority':'high'}),_0x1fa85f['on']('_sendUsageRequest',_0xb3db2e=>{_0x5e85cc(_0xb3db2e['return'])&&(_0x2cb09c=!0x0,_0x35fa18(_0xb3db2e['return']));},{'priority':'low'}),_0x253792['then'](()=>{_0x2cb09c||_0x577351('UsageLimit');});});function _0x576639(){return'auto'==_0x1fa85f['editing']['view']['_overlayModeHint'];}function _0x542488(){_0x1fa85f['editing']['view']['_overlayModeHint']='auto';}}function _0x5be0cb(_0x568521){const _0x471f29=[new window['Promise'](_0x4f95d8=>setTimeout(_0x4f95d8,0x93ecc)),_0x253792['then'](()=>new window['Promise'](_0x4adaee=>{let _0x938c8e=0x0;_0x1fa85f['model']['on']('applyOperation',(_0x149f91,_0x23da20)=>{_0x23da20[0x0]['isDocumentOperation']&&_0x938c8e++,0x5e8==_0x938c8e&&(_0x4adaee(),_0x149f91['off']());});}))];return window['Promise']['race'](_0x471f29)['then'](()=>_0x568521);}async function _0x279ce0(){await _0x253792,_0x1fa85f['model']['change']=_0xd8659e,_0x1fa85f['model']['enqueueChange']=_0xd8659e,_0x1fa85f['enableReadOnlyMode']('model');}function _0x3c792e(_0x4aaf50){const _0x2220d2=_0x17c9ae();_0x1fa85f[_0x2220d2]='uploadcareLicenseKey'+_0x4aaf50,'Valid'!=_0x4aaf50&&_0x279ce0();}function _0x17c9ae(){const _0x14722b=window['String'](window['performance']['now']())['replace']('.','');let _0x30148c='h';for(let _0x32c442=0x0;_0x32c442<_0x14722b['length'];_0x32c442+=0x2){let _0x42a221=window['parseInt'](_0x14722b['substring'](_0x32c442,_0x32c442+0x2));_0x42a221>=0x3e&&(_0x42a221-=0x3e),_0x30148c+=_0x45f930[_0x42a221];}return _0x30148c;}function _0x20a819(){const _0x392d2e=_0x9a4b98['split']('.');if(0x3!=_0x392d2e['length'])return null;return _0xb7c0c7(_0x392d2e[0x1]);function _0xb7c0c7(_0x40ab91){const _0x53f62b=_0x25d47e(_0x40ab91);return _0x53f62b&&_0x4d2fa3()?_0x53f62b:null;function _0x4d2fa3(){const _0x2b95ae=_0x53f62b['jti'],_0x4825ef=window['parseInt'](_0x2b95ae['substring'](_0x2b95ae['length']-0x8),0x10),_0x3ac7df={..._0x53f62b,'jti':_0x2b95ae['substring'](0x0,_0x2b95ae['length']-0x8)};return delete _0x3ac7df['vc'],_0x3cf919(_0x3ac7df)==_0x4825ef;}}}async function _0x130a16(){let _0x33d5f6=!0x0;try{const [_0x1e7c2a,_0x46ed30,_0x1e32ec]=_0x9a4b98['split']('.');return _0x10da92(_0x1e7c2a),await _0x8b0f11(_0x1e7c2a,_0x46ed30,_0x1e32ec),_0x33d5f6;}catch{return!0x1;}function _0x10da92(_0x378472){const _0x35d5b5=_0x25d47e(_0x378472);_0x35d5b5&&'ES256'==_0x35d5b5['alg']||(_0x33d5f6=!0x1);}async function _0x8b0f11(_0x94601e,_0x35fd08,_0x90c6cf){const _0x30ff8e=window['Uint8Array']['from'](_0x2447c9(_0x90c6cf),_0x365b5a=>_0x365b5a['charCodeAt'](0x0)),_0x42db3e=new window['TextEncoder']()['encode'](_0x94601e+'.'+_0x35fd08),_0x5005b0=window['crypto']['subtle'];if(!_0x5005b0)return;const _0x211f3f=await _0x5005b0['importKey']('jwk',_0x4b55df,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5005b0['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x211f3f,_0x30ff8e,_0x42db3e)||(_0x33d5f6=!0x1);}}function _0x25d47e(_0x40cec7){return _0x40cec7['startsWith']('ey')?JSON['parse'](_0x2447c9(_0x40cec7)):null;}function _0x2447c9(_0x5b04f3){return window['atob'](_0x5b04f3['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3cf919(_0x66c8a3){let _0x3bcea5=0x1505;function _0x40f557(_0x430a01){for(let _0x217b33=0x0;_0x217b33<_0x430a01['length'];_0x217b33++){const _0x4d777e=_0x430a01['charCodeAt'](_0x217b33);_0x3bcea5=(_0x3bcea5<<0x5)+_0x3bcea5+_0x4d777e,_0x3bcea5&=_0x3bcea5;}}function _0x2d5d5a(_0x2cbe48){Array['isArray'](_0x2cbe48)?_0x2cbe48['forEach'](_0x2d5d5a):_0x2cbe48&&'object'==typeof _0x2cbe48?Object['entries'](_0x2cbe48)['sort']()['forEach'](([_0x1e694d,_0x4ab73e])=>{_0x40f557(_0x1e694d),_0x2d5d5a(_0x4ab73e);}):_0x40f557(window['String'](_0x2cbe48));}return _0x2d5d5a(_0x66c8a3),_0x3bcea5>>>0x0;}function _0x421b30(_0x1758a5){return _0x1758a5['toString'](0x10)['padStart'](0x8,'0');}function _0x449dbc(_0x4b2003){return _0x4b2003['split']('')['reverse']()['join']('');}function _0xd8659e(){}_0x3c792e(await _0x504998());}(this);}['_initSchema'](){const _0x2cb886=this['editor']['model']['schema'];_0x2cb886['isRegistered']('imageBlock')&&_0x2cb886['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2cb886['isRegistered']('imageInline')&&_0x2cb886['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x232d1e=this['editor'];_0x232d1e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x232d1e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2e2946=>_0x2e2946['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x210d0a=_0x232d1e['commands']['get']('replaceImageSource');_0x210d0a&&this['listenTo'](_0x210d0a,'cleanupImage',(_0x43cd16,[_0x2e1978,_0x3fd78b])=>{_0x2e1978['removeAttribute']('uploadcareImageId',_0x3fd78b);});}['_initConfig'](){const _0x5acaa1=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4a2448=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x48f70e(_0x8f2a55['document'],'uc-config',{..._0x5acaa1,'pubkey':_0x4a2448,'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']=_0x521533=>{if('closeMax'==_0x521533)return'#uc-icon-arrow-down';},_0x8f2a55['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x48f70e(_0x8f2a55['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x8f2a55['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x7c496c=this['editor']['commands']['get']('insertImage');_0x7c496c&&this['listenTo'](_0x7c496c,'execute',()=>{const _0x24336e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x24336e&&_0x24336e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x24336e);});});const _0x2676ab=this['editor']['commands']['get']('uploadcareImageReplace');_0x2676ab&&this['listenTo'](_0x2676ab,'execute',()=>{const _0x1a8d2b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a8d2b&&_0x1a8d2b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x1a8d2b);});});}},Y=class extends _0x2478e0{static get['requires'](){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ac97f){super(_0x2ac97f),_0x2ac97f['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x44295a['defineComponents'](_0x44295a),this['_defineLocale']();}['_defineLocale'](){const _0xfaeaca=this['editor']['config']['get']('uploadcare.locale'),_0x170a09=this['editor']['locale']['contentLanguage'];_0xfaeaca&&_0x44295a['defineLocale'](_0x170a09,_0xfaeaca);}},tt=class extends _0x3a45d1{constructor(_0x535d9e){super(_0x535d9e);const t=_0x535d9e['t'],_0x53ecc2=this['bindTemplate'],_0x12c69a=new _0x2dbb9d();_0x12c69a['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':[_0x12c69a,{'text':_0x53ecc2['to']('imageUploadProgress',_0x336bb0=>t('Loading\x20image...')+'\x20('+(_0x336bb0||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 _0x3a45d1{constructor(_0x39842e){super(_0x39842e);const t=_0x39842e['t'];this['set']('errorType',null);const _0x3059ce=new _0x237893(_0x39842e);_0x3059ce['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3059ce['withText']=!0x0,_0x3059ce['class']='ck-button-action',_0x3059ce['on']('execute',()=>{this['fire']('retry');}),_0x3059ce['bind']('isVisible')['to'](this,'errorType',_0x58316b=>'NotFound'!==_0x58316b);const _0x3280f2=new _0x5a4bca();_0x3280f2['content']=_0x51e927,_0x3280f2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3e1526=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':[_0x3280f2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3e1526['to']('errorType',_0x290dfb=>t('NotFound'!==_0x290dfb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3059ce]},{'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 _0x3a45d1{constructor(_0x273e24,_0x18655f){super(_0x273e24);const _0x45d649=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x18655f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x45d649['to']('imageSrc')}});}},st=class extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x40386b,_0x54922c,_0x5def49){super(_0x40386b),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x40386b),this['_errorView']=new et(_0x40386b),this['_editingView']=new it(_0x40386b,_0x5def49),this['_focusableView']=new _0x3a45d1(_0x40386b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x54922c),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'],_0x196b38=>{this['_addUploadcareImageEditorListeners'](_0x196b38);});}),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'](_0x3b8f27,_0x5677a7){const _0x6d891d='uc-cloud-image-editor',_0x1ec2a9=_0x3b8f27['querySelector'](_0x6d891d);if(_0x1ec2a9)return _0x5677a7(_0x1ec2a9);const _0x57a444=new MutationObserver(_0x5a26e6=>{const _0x12397b=_0x5a26e6['filter'](_0x20992d=>_0x20992d['target']===_0x3b8f27&&_0x20992d['addedNodes']['length']>0x0&&_0x20992d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x6d891d);_0x12397b['length']&&(_0x57a444['disconnect'](),_0x5677a7(_0x12397b[0x0]['addedNodes'][0x0]));});_0x57a444['observe'](_0x3b8f27,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3669b9){_0x3669b9['addEventListener']('apply',_0x346d6f=>{this['fire']('apply',{'imageSrc':_0x346d6f['detail']['cdnUrl']});}),_0x3669b9['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const rt=/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x496fc4();var nt=class extends rt{['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x24b29e,_0x10804e,_0x941c08){super(),this['_editor']=_0x24b29e,this['_dialog']=_0x10804e,this['_imageElement']=_0x941c08,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 _0x31f2d0=this['_imageElement'],_0x5deec0=_0x31f2d0['getAttribute']('uploadcareImageId'),_0x15315c=_0x31f2d0['getAttribute']('src');if(_0x5deec0)await this['_loadImageInfo'](_0x5deec0,_0x15315c);else{if(this['_imageCache']['has'](_0x15315c)){const _0x5d37aa=this['_imageCache']['get'](_0x15315c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5d37aa['url'],this['imageDimension']=_0x5d37aa['dimension'],this['imageId']=_0x5d37aa['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xa964a9}=this['_editor'],t=_0xa964a9['t'],_0x531ed5=new st(_0xa964a9,this['imageStatus'],this['_attributes']);_0x531ed5['bind']('status')['to'](this,'imageStatus'),_0x531ed5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x531ed5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x531ed5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x531ed5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3b22aa,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x531ed5,'position':_0x270692['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x531ed5['focus']();},'onHide':()=>{_0x531ed5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xd48a17=>!H(_0xd48a17,_0x531ed5['element'])}});}['_loadImageInfo'](_0x137e4c,_0x38dab2){return Q['getInfo'](_0x137e4c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x13b2e6=>{const {width:_0x3fb5ba,height:_0x547657}=_0x13b2e6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x38dab2,this['imageDimension']={'width':_0x3fb5ba,'height':_0x547657},this['imageId']=_0x137e4c;})['catch'](_0x730085=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x730085['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x44d43d,_0x2926c9){return this['_getImageAsFile'](_0x44d43d)['then'](_0x5c4f60=>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':_0x2926c9['signal'],'file':_0x5c4f60,'onProgress':_0x44c159=>{_0x44c159&&_0x44c159['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x44c159['value']));}}))['then'](_0x381ca3=>{const {width:_0xdafe47,height:_0x1d294e}=_0x381ca3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x381ca3['cdnUrl'],this['imageDimension']={'width':_0xdafe47,'height':_0x1d294e},this['imageId']=_0x381ca3['uuid'],this['imageUploadProgress']=null;const _0x49d32e=_0x44d43d['getAttribute']('src');this['_imageCache']['set'](_0x49d32e,{'id':_0x381ca3['uuid'],'url':_0x381ca3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x12560b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x12560b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x24de32,_0x573327){_0x24de32['on']('apply',(_0x5195bd,_0x3a5c72)=>{this['_replaceImage'](_0x573327,_0x3a5c72['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x24de32['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x24de32['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5f4ef5,_0x4f8062,_0x527223){const _0x3a3bc7=this['_editor'],{width:_0x9ff8dd,height:_0x5ac9b5}=j(_0x4f8062,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1ac783,imageSources:_0x1522b4}=B(_0x4f8062,_0x9ff8dd);_0x3a3bc7['model']['change'](_0x4b018c=>{if('$graveyard'!==_0x5f4ef5['root']['rootName'])_0x4b018c['setSelection'](_0x5f4ef5,'on'),_0x3a3bc7['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5f4ef5['getAttributes']()),'uploadcareImageId':_0x527223,'src':_0x1ac783,'sources':_0x1522b4,'width':_0x9ff8dd,'height':_0x5ac9b5},_0x5f4ef5);else{_0x3a3bc7['execute']('insertImage',{'imageType':_0x5f4ef5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5f4ef5['getAttributes']()),'uploadcareImageId':_0x527223,'src':_0x1ac783,'sources':_0x1522b4,'width':_0x9ff8dd,'height':_0x5ac9b5}});const _0x4c2ee1=_0x5f4ef5['getChildren']();_0x5f4ef5=_0x3a3bc7['model']['document']['selection']['getSelectedElement']();for(const _0xf6d41e of _0x4c2ee1)_0x4b018c['append'](_0x4b018c['cloneElement'](_0xf6d41e),_0x5f4ef5);}_0x4b018c['setSelection'](_0x5f4ef5,'on');});}async['_getImageAsFile'](_0x2a4e80){const _0x8302a8=_0x8f2a55['window'],_0x34a9c1=_0x8f2a55['document']['location']['href'],_0x1fc341=new _0x8302a8['URL'](_0x2a4e80['getAttribute']('src'),_0x34a9c1);if('data:'===_0x1fc341['protocol']){const _0x2832b0=_0x1fc341['href']['split'](','),_0x3c8700=_0x2832b0[0x0]['match'](/:(.*?);/)[0x1],_0x4d7e91=_0x3c8700['split']('/')[0x1],_0x4636a8=_0x8302a8['atob'](_0x2832b0[_0x2832b0['length']-0x1]);let _0x3f3717=_0x4636a8['length'];const _0xf936b1=new _0x8302a8['Uint8Array'](_0x3f3717);for(;_0x3f3717--;)_0xf936b1[_0x3f3717]=_0x4636a8['charCodeAt'](_0x3f3717);return new _0x8302a8['File']([_0xf936b1],'image.'+_0x4d7e91,{'type':_0x3c8700});}const _0x3b5b60=_0x1fc341['href']['split']('/'),_0x2d97c7=_0x3b5b60[_0x3b5b60['length']-0x1],_0x39fad0=_0x2d97c7['split']('.')[0x1];return _0x8302a8['fetch'](_0x1fc341['href'])['then'](_0x34e82b=>_0x34e82b['clone']()['blob']())['then'](_0x248471=>new _0x8302a8['File']([_0x248471],_0x2d97c7,{'type':'image/'+_0x39fad0}));}},at=class extends _0x15b600{['imageEditController'];static get['requires'](){return[_0x1a6cd3];}['_isEditable'];constructor(_0xb0caaa){super(_0xb0caaa),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x267579){const _0x28ab91=M(_0x267579);return _0x2e78d1=>!(!_0x2e78d1||!_0x2e78d1['is']('element','imageBlock')&&!_0x2e78d1['is']('element','imageInline'))&&(!!_0x2e78d1['hasAttribute']('uploadcareImageId')||!!_0x2e78d1['hasAttribute']('src')&&_0x28ab91(_0x2e78d1['getAttribute']('src')));}(_0xb0caaa['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x33426d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x33426d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x11eeda=this['editor']['model']['document']['selection']['getSelectedElement']();_0x11eeda&&(_0x11eeda['is']('element','imageBlock')||_0x11eeda['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x1a6cd3),_0x11eeda),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x15b600{['refresh'](){const _0x5ab7a2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5ab7a2&&(_0x5ab7a2['is']('element','imageBlock')||_0x5ab7a2['is']('element','imageInline')));}['execute'](_0x13b501){const _0xd8597d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3885c2=>{_0x3885c2['setAttributes'](_0x13b501,_0xd8597d),_0x3885c2['removeAttribute']('srcset',_0xd8597d),_0x3885c2['removeAttribute']('sizes',_0xd8597d);});}},ct=class extends _0x2478e0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[Z,_0x3b0a81,_0x5c8b61,_0x6ee520];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x50ca79}=this;_0x50ca79['commands']['add']('uploadcareImageEdit',new at(_0x50ca79)),_0x50ca79['commands']['add']('uploadcareImageReplace',new ot(_0x50ca79));}},lt=class extends _0x2478e0{['_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 _0x34d3f7=this['editor'];_0x34d3f7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x385784=>{const _0x27261e=_0x34d3f7['commands']['get']('uploadcareImageEdit'),_0x10a677=new _0x237893(_0x385784),t=_0x385784['t'];return _0x10a677['set']({'icon':_0x3b22aa,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x10a677['bind']('isEnabled')['to'](_0x27261e),_0x10a677['bind']('isOn')['to'](_0x27261e,'isActive'),this['listenTo'](_0x10a677,'execute',()=>{_0x34d3f7['execute']('uploadcareImageEdit'),_0x34d3f7['editing']['view']['focus']();}),_0x10a677;}),this['_initConfig']();}['_initConfig'](){const _0x51534e=_0x48f70e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x51534e),this['listenTo'](this['editor'],'destroy',()=>{_0x51534e['remove']();});}},ut=class extends _0x2478e0{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':_0x29992c=>0x1!=_0x29992c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x48ae5e=>{const {af:{dictionary:_0x4e3383,getPluralForm:_0x30d8cf}}={'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':_0x4a2f96=>0x1!=_0x4a2f96}};_0x48ae5e['af']||={'dictionary':{},'getPluralForm':null},_0x48ae5e['af']['dictionary']=Object['assign'](_0x48ae5e['af']['dictionary'],_0x4e3383),_0x48ae5e['af']['getPluralForm']=_0x30d8cf;})(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':_0x28f0f2=>0x0==_0x28f0f2?0x0:0x1==_0x28f0f2?0x1:0x2==_0x28f0f2?0x2:_0x28f0f2%0x64>=0x3&&_0x28f0f2%0x64<=0xa?0x3:_0x28f0f2%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x41824a=>{const {ar:{dictionary:_0xc83829,getPluralForm:_0x3ee45f}}={'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':_0x5ed249=>0x0==_0x5ed249?0x0:0x1==_0x5ed249?0x1:0x2==_0x5ed249?0x2:_0x5ed249%0x64>=0x3&&_0x5ed249%0x64<=0xa?0x3:_0x5ed249%0x64>=0xb?0x4:0x5}};_0x41824a['ar']||={'dictionary':{},'getPluralForm':null},_0x41824a['ar']['dictionary']=Object['assign'](_0x41824a['ar']['dictionary'],_0xc83829),_0x41824a['ar']['getPluralForm']=_0x3ee45f;})(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':_0x3c21b6=>0x1!=_0x3c21b6}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x36647c=>{const {ast:{dictionary:_0x525d30,getPluralForm:_0x2860a3}}={'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':_0x29f104=>0x1!=_0x29f104}};_0x36647c['ast']||={'dictionary':{},'getPluralForm':null},_0x36647c['ast']['dictionary']=Object['assign'](_0x36647c['ast']['dictionary'],_0x525d30),_0x36647c['ast']['getPluralForm']=_0x2860a3;})(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':_0x220198=>0x1!=_0x220198}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3a805f=>{const {az:{dictionary:_0x30d4fa,getPluralForm:_0x12b69b}}={'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':_0x2d005c=>0x1!=_0x2d005c}};_0x3a805f['az']||={'dictionary':{},'getPluralForm':null},_0x3a805f['az']['dictionary']=Object['assign'](_0x3a805f['az']['dictionary'],_0x30d4fa),_0x3a805f['az']['getPluralForm']=_0x12b69b;})(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':_0x16280b=>_0x16280b%0xa==0x1&&_0x16280b%0x64!=0xb?0x0:_0x16280b%0xa>=0x2&&_0x16280b%0xa<=0x4&&(_0x16280b%0x64<0xa||_0x16280b%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2114c2=>{const {be:{dictionary:_0x2af863,getPluralForm:_0x2defe0}}={'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':_0x3eebcb=>_0x3eebcb%0xa==0x1&&_0x3eebcb%0x64!=0xb?0x0:_0x3eebcb%0xa>=0x2&&_0x3eebcb%0xa<=0x4&&(_0x3eebcb%0x64<0xa||_0x3eebcb%0x64>=0x14)?0x1:0x2}};_0x2114c2['be']||={'dictionary':{},'getPluralForm':null},_0x2114c2['be']['dictionary']=Object['assign'](_0x2114c2['be']['dictionary'],_0x2af863),_0x2114c2['be']['getPluralForm']=_0x2defe0;})(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':_0x5981ce=>0x1!=_0x5981ce}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2a6e97=>{const {bg:{dictionary:_0x84446a,getPluralForm:_0x10a4a9}}={'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':_0x4694fc=>0x1!=_0x4694fc}};_0x2a6e97['bg']||={'dictionary':{},'getPluralForm':null},_0x2a6e97['bg']['dictionary']=Object['assign'](_0x2a6e97['bg']['dictionary'],_0x84446a),_0x2a6e97['bg']['getPluralForm']=_0x10a4a9;})(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':_0x14bc92=>0x1!=_0x14bc92}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4ec3e4=>{const {bn:{dictionary:_0x4dab31,getPluralForm:_0x541393}}={'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':_0x477578=>0x1!=_0x477578}};_0x4ec3e4['bn']||={'dictionary':{},'getPluralForm':null},_0x4ec3e4['bn']['dictionary']=Object['assign'](_0x4ec3e4['bn']['dictionary'],_0x4dab31),_0x4ec3e4['bn']['getPluralForm']=_0x541393;})(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':_0x37e962=>_0x37e962%0xa==0x1&&_0x37e962%0x64!=0xb?0x0:_0x37e962%0xa>=0x2&&_0x37e962%0xa<=0x4&&(_0x37e962%0x64<0xa||_0x37e962%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x182347=>{const {bs:{dictionary:_0x5cfd06,getPluralForm:_0xbc1eb}}={'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':_0x25236e=>_0x25236e%0xa==0x1&&_0x25236e%0x64!=0xb?0x0:_0x25236e%0xa>=0x2&&_0x25236e%0xa<=0x4&&(_0x25236e%0x64<0xa||_0x25236e%0x64>=0x14)?0x1:0x2}};_0x182347['bs']||={'dictionary':{},'getPluralForm':null},_0x182347['bs']['dictionary']=Object['assign'](_0x182347['bs']['dictionary'],_0x5cfd06),_0x182347['bs']['getPluralForm']=_0xbc1eb;})(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':_0x4a3e0b=>0x1!=_0x4a3e0b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x24775a=>{const {ca:{dictionary:_0x4e6815,getPluralForm:_0x26aff8}}={'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':_0xfb20ea=>0x1!=_0xfb20ea}};_0x24775a['ca']||={'dictionary':{},'getPluralForm':null},_0x24775a['ca']['dictionary']=Object['assign'](_0x24775a['ca']['dictionary'],_0x4e6815),_0x24775a['ca']['getPluralForm']=_0x26aff8;})(window['CKEDITOR_TRANSLATIONS']||={});
|