@ckeditor/ckeditor5-uploadcare 48.5.0 → 48.5.2-alpha.0
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.umd.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.umd.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 _0x197422,Plugin as _0x53371b}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x1f6902,IconError as _0x40782d,IconFacebook as _0x326434,IconGoogleDrive as _0x35f6ea,IconGooglePhotos as _0x256d4e,IconOneDrive as _0x4a6c1e,IconUploadcareImageEdit as _0x353a72,IconUploadcareImageUpload as _0x40abf4,IconUploadcareLink as _0x239b3c}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x3f4b19,Dialog as _0x13b690,DialogViewPosition as _0x4a1e7d,FocusCycler as _0x361316,IconView as _0x2c293f,MenuBarMenuListItemButtonView as _0x1704e1,Notification as _0x2369d1,SpinnerView as _0x514631,View as _0x5a6c85}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0xb1ab53,FocusTracker as _0x456f01,ObservableMixin as _0x3dc285,createElement as _0x539b23,getAncestors as _0x2eb388,global as _0x259387,uid as _0x921bba}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x5f39f3,ImageUploadEditing as _0x316e69,ImageUploadProgress as _0x44afcb,ImageUtils as _0x47f4a7,PictureEditing as _0x69ea45}from'@ckeditor/ckeditor5-image';import{FileRepository as _0xd388c9}from'@ckeditor/ckeditor5-upload';import{info as _0x1e90a6,uploadFile as _0x37b3df}from'@uploadcare/upload-client';import*as _0x2b8a38 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x2a1a94,_0x2fe296,_0x2e9163){const t=_0x2a1a94['t'],_0x33da09=_0x2a1a94['t'];switch(_0x2fe296){case'local':return{'text':_0x33da09('Insert'===_0x2e9163?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x33da09('From\x20computer')};case'url':return{'text':'Insert'===_0x2e9163?_0x33da09('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x33da09('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x2e9163?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x2e9163?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x2e9163?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x2e9163?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x2e9163?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2fe296;}}var V=class extends _0x53371b{['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'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x226324=[this['editor']];for(const _0x4925ba of _0x226324){let _0x544e65;for(const _0x3af1a3 in _0x4925ba){const _0x515526=_0x3af1a3,_0x4487f0=_0x4925ba[_0x515526];if('uploadcareLicenseKeyValid'==_0x4487f0||'uploadcareLicenseKeyInvalid'==_0x4487f0||'uploadcareLicenseKeyExpired'==_0x4487f0||'uploadcareLicenseKeyDomainLimit'==_0x4487f0||'uploadcareLicenseKeyNotAllowed'==_0x4487f0||'uploadcareLicenseKeyEvaluationLimit'==_0x4487f0||'uploadcareLicenseKeyUsageLimit'==_0x4487f0){delete _0x4925ba[_0x515526],_0x544e65=_0x4487f0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x544e65&&_0x4925ba['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x544e65&&_0x4925ba['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x544e65&&_0x4925ba['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x544e65&&_0x4925ba['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x544e65&&_0x4925ba['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x544e65&&_0x4925ba['_showLicenseError']('usageLimit');}},0x3e8);}afterInit(){const {editor:_0x5e14c9}=this,_0x5853d4=_0x5e14c9['commands']['get']('uploadcare');if(!_0x5853d4)return;const _0x287b65=this['_normalizeConfigSourceList'](_0x5e14c9['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xa0912a,_0x144507)=>{const _0x54a2a3=this['_getIntegrationKey'](_0x144507['type']);return _0xa0912a[_0x54a2a3]||(_0xa0912a[_0x54a2a3]=[]),_0xa0912a[_0x54a2a3]['push'](_0x144507),_0xa0912a;},{});_0x5e14c9['plugins']['has']('ImageInsertUI')&&_0x5e14c9['commands']['get']('uploadcare')&&Object['entries'](_0x287b65)['forEach'](([_0x2bbdfd,_0x3f3588])=>{_0x5e14c9['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2bbdfd,'observable':()=>_0x5853d4,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3f3588),'formViewCreator':()=>this['_createDropdownButtons'](_0x3f3588),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3f3588),'override':'assetManager'!==_0x2bbdfd});});}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_normalizeConfigSourceList(_0x475ddb){const {locale:_0x3171ef}=this['editor'];return _0x475ddb['map'](_0x4e8093=>{const _0xc617a7=T(_0x3171ef,_0x4e8093,'Insert');switch(_0x4e8093){case'local':return{'icon':_0x40abf4,'type':'local',..._0xc617a7};case'url':return{'icon':_0x239b3c,'type':'url',..._0xc617a7};case'dropbox':return{'icon':_0x1f6902,'type':'dropbox',..._0xc617a7};case'facebook':return{'icon':_0x326434,'type':'facebook',..._0xc617a7};case'gdrive':return{'icon':_0x35f6ea,'type':'gdrive',..._0xc617a7};case'gphotos':return{'icon':_0x256d4e,'type':'gphotos',..._0xc617a7};case'onedrive':return{'icon':_0x4a6c1e,'type':'onedrive',..._0xc617a7};}});}_getIntegrationKey(_0x142c28){switch(_0x142c28){case'local':return'upload';case'url':return'url';default:return'assetManager';}}_createButton(_0x3c51fa,_0x9bfec4){const _0x22fe61=this['editor'],_0x4a47f1=new _0x3c51fa(_0x22fe61['locale']),_0x4fe85f=_0x22fe61['commands']['get']('uploadcare');return _0x4a47f1['bind']('isEnabled')['to'](_0x4fe85f),_0x4a47f1['on']('execute',()=>{_0x4fe85f['execute'](_0x9bfec4);}),_0x4a47f1;}_createToolbarButton(_0x2e8712){const {locale:_0x47cb39}=this['editor'],_0x3116a8=this['editor']['plugins']['get']('ImageInsertUI'),_0x4b3467=_0x2e8712[0x0],_0x2af385=this['_createButton'](_0x3f4b19,_0x4b3467['type']);return _0x2af385['icon']=_0x4b3467['icon'],_0x2af385['bind']('label')['to'](_0x3116a8,'isImageSelected',_0x2cfbd9=>T(_0x47cb39,_0x4b3467['type'],_0x2cfbd9?'Replace':'Insert')['text']),_0x2af385['tooltip']=!0x0,_0x2af385;}_createDropdownButtons(_0x19f482){const {locale:_0x42add8}=this['editor'],_0x4f67a0=this['editor']['plugins']['get']('ImageInsertUI');return _0x19f482['map'](_0x43b271=>{const _0x672006=this['_createButton'](_0x3f4b19,_0x43b271['type']);return _0x672006['withText']=!0x0,_0x672006['icon']=_0x43b271['icon'],_0x672006['bind']('label')['to'](_0x4f67a0,'isImageSelected',_0x42e5b8=>T(_0x42add8,_0x43b271['type'],_0x42e5b8?'Replace':'Insert')['text']),_0x672006;});}_createMenuBarButtons(_0x227300){return _0x227300['map'](_0x21bb3c=>{const _0xd6c54b=this['_createButton'](_0x1704e1,_0x21bb3c['type']);return _0xd6c54b['icon']=_0x21bb3c['icon'],_0xd6c54b['label']=_0x21bb3c['shortText'],_0xd6c54b;});}},F=class extends _0x5a6c85{['focusTracker'];['focusCycler'];constructor(_0x207879){super(_0x207879),this['focusTracker']=new _0x456f01(),this['focusCycler']=new _0x361316({'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(_0x1e3b27,_0x42c3f0){super(_0x1e3b27),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-'+_0x42c3f0}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x4095e0,_0x2e26e0){const _0xa8984d=_0x4095e0['replace'](/\/$/,'');return{'imageFallbackUrl':_0x4095e0,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3ca502=>_0x3ca502<_0x2e26e0)['map'](_0x369260=>_0xa8984d+'/-/resize/'+_0x369260+'x/\x20'+_0x369260+'w'),_0x4095e0+'\x20'+_0x2e26e0+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2e26e0+'px)\x20100vw,\x20'+_0x2e26e0+'px','type':'image/webp'}]};}function j(_0x48af6c,_0x3577fa,_0x472110){const _0x55a541=_0x48af6c['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x55a541?parseInt(_0x55a541[0x1],0xa):_0x3577fa,'height':_0x55a541?parseInt(_0x55a541[0x2],0xa):_0x472110};}function q(_0x48e4d6,_0x3eac2c){const _0x10a56b=new(_0xb1ab53())(),_0x45359c=_0x48e4d6['plugins']['get']('ImageUtils'),_0x2f856d=_0x48e4d6['editing']['mapper']['toViewElement'](_0x3eac2c),_0x8ae98=_0x45359c['findViewImgElement'](_0x2f856d),_0x492e65=_0x48e4d6['editing']['view']['domConverter']['viewToDom'](_0x8ae98),_0x3041f5=_0x3eac2c['getAttribute']('width'),_0x5b7f4e=_0x3eac2c['getAttribute']('height'),_0x284afc='image-processing';_0x48e4d6['editing']['view']['change'](_0x1fc060=>{_0x1fc060['addClass'](_0x284afc,_0x2f856d),_0x1fc060['setStyle']('aspect-ratio',_0x3041f5+'/'+_0x5b7f4e,_0x8ae98);}),_0x10a56b['listenTo'](_0x492e65,'load',()=>{_0x10a56b['stopListening'](_0x492e65,'load'),_0x48e4d6['editing']['view']['change'](_0x1a9346=>{_0x1a9346['removeClass'](_0x284afc,_0x2f856d),_0x1a9346['removeStyle']('aspect-ratio',_0x8ae98);});});}function M(_0x3d6cd7){if(Array['isArray'](_0x3d6cd7)){const _0x4bcae7=_0x3d6cd7['map'](M);return _0xf4a869=>_0x4bcae7['some'](_0x256da8=>_0x256da8(_0xf4a869));}if('origin'==_0x3d6cd7){const _0x33390f=_0x259387['window']['location']['origin'];return _0x42294a=>new URL(_0x42294a,_0x259387['document']['baseURI'])['origin']==_0x33390f;}return'function'==typeof _0x3d6cd7?_0x3d6cd7:_0x3d6cd7 instanceof RegExp?_0x4154c3=>!(!_0x4154c3['match'](_0x3d6cd7)&&!_0x4154c3['replace'](/^https?:\/\//,'')['match'](_0x3d6cd7)):()=>!0x1;}function H(_0xb704c5,_0xc1c15d){return _0x2eb388(_0xb704c5['target'])['includes'](_0xc1c15d);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3dc285();var G=class extends W{_editor;['_dialog'];_editing;['_api'];_type=null;['_formView']=null;constructor(_0x1d43d6,_0x9d2f25,_0x144c72){super(),this['_editor']=_0x1d43d6,this['_editing']=_0x9d2f25,this['_dialog']=_0x1d43d6['plugins']['get'](_0x13b690),this['_api']=_0x9d2f25['ctxElement']['getAPI'](),this['_type']=_0x144c72,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:_0x28ca05,model:_0xc1aab9}=this['_editor'],_0x591eb4=_0xc1aab9['document']['selection']['getSelectedElement'](),_0x50dac8=_0x591eb4&&(_0x591eb4['is']('element','imageBlock')||_0x591eb4['is']('element','imageInline'));this['_formView']=new $(_0x28ca05,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x40abf4,'title':T(_0x28ca05,this['_type'],_0x50dac8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4a1e7d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x10cad8=>!H(_0x10cad8,this['_formView']['element'])}});}_initListeners(){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3025c2}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4f04fc=>{const _0x1e82b3=_0x3025c2['length'];for(const _0x2fb929 of _0x3025c2){const _0x574b92=_0x2fb929===_0x3025c2[_0x1e82b3-0x1],{cdnUrl:_0x3376b1,fileInfo:_0x118dc1}=_0x2fb929;if(!_0x3376b1||!_0x118dc1)continue;const {width:_0x1b98e5,height:_0x16e110}=_0x118dc1['imageInfo'],_0x9c9dd4=j(_0x3376b1,_0x1b98e5,_0x16e110),_0x1d2d82=B(_0x3376b1,_0x9c9dd4['width']),_0x48c015={'id':_0x118dc1['uuid'],'type':'image','attributes':{'imageDimension':_0x9c9dd4,..._0x1d2d82}};this['_insertAsset'](_0x48c015,_0x574b92,_0x4f04fc);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x38d768=>{'idle'===_0x38d768['detail']['status']&&!_0x38d768['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}_insertAsset(_0x45de9c,_0x168970,_0x92438d){const _0x7e0442=this['_editor']['model']['document']['selection'],_0x5e45b4=_0x7e0442['getSelectedElement'](),_0x597ddc=!(!_0x5e45b4||!_0x5e45b4['is']('element','imageInline'));_0x92438d['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x45de9c,_0x597ddc),_0x168970||_0x92438d['setSelection'](_0x7e0442['getLastPosition']());}_insertImage(_0x3aa003,_0x1b0595){const _0x32878c=this['_editor'],{imageDimension:_0x2b6372,imageFallbackUrl:_0x9a76c4,imageSources:_0xeade08}=_0x3aa003['attributes'];_0x32878c['execute']('insertImage',{'imageType':_0x1b0595?'imageInline':null,'source':{'uploadcareImageId':_0x3aa003['id'],'src':_0x9a76c4,'sources':_0xeade08,..._0x2b6372}});}},z=class extends _0x197422{_editing;_controller=null;static get requires(){return[_0x13b690,Z];}constructor(_0x2cc03c){super(_0x2cc03c),this['_editing']=_0x2cc03c['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}execute(_0x8aea3d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x8aea3d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x385450,..._0xf0f995}){return _0x37b3df(_0x385450,_0xf0f995);}static getInfo(_0x1d3b78,_0x10f7f1){return _0x1e90a6(_0x1d3b78,_0x10f7f1);}},J=class extends _0x53371b{static get requires(){return[_0x316e69,_0x44afcb,_0xd388c9,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async afterInit(){const _0x28a3f5=this['editor'];if(!_0x28a3f5['config']['get']('uploadcare'))return;_0x28a3f5['plugins']['get'](_0xd388c9)['createUploadAdapter']=_0x42352d=>new X(_0x42352d,_0x28a3f5),_0x28a3f5['plugins']['get'](_0x316e69)['on']('uploadComplete',(_0x567547,{imageElement:_0x323161,data:_0x25ecbc})=>{_0x28a3f5['model']['change'](_0x40411e=>{_0x40411e['setAttribute']('uploadcareImageId',_0x25ecbc['uploadcareImageId'],_0x323161);});});}},X=class{['loader'];editor;controller;constructor(_0xc79fca,_0x53cdfc){this['loader']=_0xc79fca,this['editor']=_0x53cdfc,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x34cc66=await this['loader']['file'];return Q['upload']({'file':_0x34cc66,'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':_0x4df2be=>{_0x4df2be&&_0x4df2be['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4df2be['value']);}})['then'](async _0x17337f=>{const {imageFallbackUrl:_0x42572d,imageSources:_0xa7fc2}=B(_0x17337f['cdnUrl'],_0x17337f['imageInfo']['width']);return{'uploadcareImageId':_0x17337f['uuid'],'default':_0x42572d,'sources':_0xa7fc2};})['catch'](()=>{const _0x1a8d62=t('Cannot\x20upload\x20file:')+('\x20'+_0x34cc66['name']+'.');return Promise['reject'](_0x1a8d62);});}abort(){this['controller']['abort']();}},Z=class extends _0x53371b{_configElement=null;_ctxElement=null;static get['pluginName'](){return'UploadcareEditing';}static get requires(){return[_0x69ea45,J,_0x13b690];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}ucContextId;get configElement(){return this['_configElement'];}get ctxElement(){return this['_ctxElement'];}constructor(_0x490e84){super(_0x490e84),this['ucContextId']=_0x921bba();}init(){const _0x393302=this['editor'];_0x393302['commands']['add']('uploadcare',new z(_0x393302));}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 _0x486b62=_0x259387['document']['querySelector']('input[uploadcare-file-input]');_0x486b62&&_0x486b62['remove']();}),async function(_0x35a68f){const _0x55a2fb='4wieLj6qmWZnpxGN9QYyFhU15kOfCBAHt2slISMXP3vErub8za07VTRoKcdDgJ',_0x3cda9c=0x79470,_0xdc80d8={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x560fc9(_0x563a80){const _0x555bc0=new window['Promise'](_0xb5ffc1=>{_0x563a80['once']('ready',_0xb5ffc1);}),_0xad971b=window['Date']['now'](),_0x384318=_0x563a80['config']['get']('licenseKey');async function _0x25a082(){let _0x467626,_0x51f670=null,_0x141f40=null;try{return'GPL'==_0x384318?'NotAllowed':(_0x467626=_0x4bce20(),_0x467626?(_0x467626['usageEndpoint']&&(_0x141f40=_0x1e2995(_0x467626['usageEndpoint'],_0x467626['jti'])),await _0x32ee63()?_0x33a076()?_0x4af482()?'Expired':_0x59cb9a()?('evaluation'==_0x467626['licenseType']&&(_0x51f670=_0x323285('EvaluationLimit')),await _0x9be47()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4af482(){const _0x4ddc32=['evaluation','trial']['includes'](_0x467626['licenseType'])?_0xad971b/0x3e8:0xe10*_0x3cda9c;return _0x467626['exp']<_0x4ddc32;}function _0x33a076(){const _0x323e0c=_0x467626['features'];return!!_0x323e0c&&(!!_0x323e0c['includes']('*')||!!_0x323e0c['includes']('UPLC'));}function _0x59cb9a(){const _0x2718e3=_0x467626['licensedHosts'];if(!_0x2718e3||0x0==_0x2718e3['length'])return!0x0;const {hostname:_0x34acae}=new URL(window['location']['href']);if(_0x2718e3['includes'](_0x34acae))return!0x0;const _0x219bda=_0x34acae['split']('.');return _0x2718e3['filter'](_0x3d2a33=>_0x3d2a33['includes']('*'))['map'](_0xdf451=>_0xdf451['split']('.'))['filter'](_0x1dc225=>_0x1dc225['length']<=_0x219bda['length'])['map'](_0x305716=>Array(_0x219bda['length']-_0x305716['length'])['fill']('*'===_0x305716[0x0]?'*':'')['concat'](_0x305716))['some'](_0xc7c2f1=>_0x219bda['every']((_0x1399d1,_0x1db8a2)=>_0xc7c2f1[_0x1db8a2]===_0x1399d1||'*'===_0xc7c2f1[_0x1db8a2]));}function _0x9be47(){return _0x51f670&&_0x141f40?new window['Promise']((_0x2b00cb,_0x5d3624)=>{_0x51f670['then'](_0x2b00cb,_0x5d3624),_0x141f40['then'](_0x4b3327=>{'Valid'!=_0x4b3327&&_0x2b00cb(_0x4b3327);},_0x5d3624);}):_0x51f670||_0x141f40||'Valid';}}function _0x1e2995(_0x3498ad,_0x1cd8e0){return new window['Promise'](_0x1e18b6=>{if(_0x322ee5())return _0x1e18b6('Valid');_0x4f0b89(),_0x563a80['decorate']('_sendUsageRequest');let _0x391aa2=!0x1;const _0x1a60ad=_0x921bba();function _0x3a5f24(_0x6e5ab){return!!_0x6e5ab&&('object'==typeof _0x6e5ab||'function'==typeof _0x6e5ab)&&'function'==typeof _0x6e5ab['then']&&'function'==typeof _0x6e5ab['catch'];}function _0x1499b6(_0x40be5a){_0x22e151(_0x40be5a)['then'](_0x17c4ca=>_0x17c4ca&&'ok'==_0x17c4ca['status']?_0x162ae6(_0x20438c(_0x1a60ad+_0x1cd8e0))!=_0x17c4ca['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x406873=>(_0xf3d844(),_0x406873),()=>{const _0x364759=_0x4611f5();return null==_0x364759?(_0xf3d844(),'Valid'):_0xad971b-_0x364759>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1e18b6)['catch'](()=>{_0x1e18b6('UsageLimit');});const _0x11971a=0x36ee80;function _0xf3d844(){const _0x3ce0ba='llct-'+_0x162ae6(_0x20438c(_0x3498ad)),_0x2765c7=_0x564938(_0x162ae6(window['Math']['ceil'](_0xad971b/_0x11971a)));window['localStorage']['setItem'](_0x3ce0ba,_0x2765c7);}function _0x4611f5(){const _0x185365='llct-'+_0x162ae6(_0x20438c(_0x3498ad)),_0x30fc6a=window['localStorage']['getItem'](_0x185365);return _0x30fc6a?window['parseInt'](_0x564938(_0x30fc6a),0x10)*_0x11971a:null;}function _0x22e151(_0x133bcb){return new window['Promise']((_0x3eb517,_0x57ae3b)=>{_0x133bcb['then'](_0x3eb517,_0x57ae3b),window['setTimeout'](_0x57ae3b,0x1d4c0);});}}_0x563a80['on']('_sendUsageRequest',(_0x3cd4be,_0x49276c)=>{if(_0x49276c[0x0]!=_0x3498ad)return _0x1e18b6('UsageLimit');_0x49276c[0x1]={..._0x49276c[0x1],'requestId':_0x1a60ad};},{'priority':'high'}),_0x563a80['on']('_sendUsageRequest',_0x3243c3=>{_0x3a5f24(_0x3243c3['return'])&&(_0x391aa2=!0x0,_0x1499b6(_0x3243c3['return']));},{'priority':'low'}),_0x555bc0['then'](()=>{_0x391aa2||_0x1e18b6('UsageLimit');});});function _0x322ee5(){return'auto'==_0x563a80['editing']['view']['_overlayModeHint'];}function _0x4f0b89(){_0x563a80['editing']['view']['_overlayModeHint']='auto';}}function _0x323285(_0xa7624f){const _0x9d685c=[new window['Promise'](_0x15033e=>setTimeout(_0x15033e,0x93ecc)),_0x555bc0['then'](()=>new window['Promise'](_0x4bd426=>{let _0x5694db=0x0;_0x563a80['model']['on']('applyOperation',(_0x1bd003,_0x1550e6)=>{_0x1550e6[0x0]['isDocumentOperation']&&_0x5694db++,0x5e8==_0x5694db&&(_0x4bd426(),_0x1bd003['off']());});}))];return window['Promise']['race'](_0x9d685c)['then'](()=>_0xa7624f);}async function _0x3266a0(){await _0x555bc0,_0x563a80['model']['change']=_0x4437f2,_0x563a80['model']['enqueueChange']=_0x4437f2,_0x563a80['enableReadOnlyMode']('model');}function _0xb3c9b0(_0x80e188){const _0x1d34a2=_0x4c9a0e();_0x563a80[_0x1d34a2]='uploadcareLicenseKey'+_0x80e188,'Valid'!=_0x80e188&&_0x3266a0();}function _0x4c9a0e(){const _0x50d709=window['String'](window['performance']['now']())['replace']('.','');let _0x4b9c71='w';for(let _0x32a240=0x0;_0x32a240<_0x50d709['length'];_0x32a240+=0x2){let _0x481fd3=window['parseInt'](_0x50d709['substring'](_0x32a240,_0x32a240+0x2));_0x481fd3>=0x3e&&(_0x481fd3-=0x3e),_0x4b9c71+=_0x55a2fb[_0x481fd3];}return _0x4b9c71;}function _0x4bce20(){const _0x4813fe=_0x384318['split']('.');if(0x3!=_0x4813fe['length'])return null;return _0x4335b7(_0x4813fe[0x1]);function _0x4335b7(_0x1c823e){const _0x549e36=_0x29a829(_0x1c823e);return _0x549e36&&_0x1bf09c()?_0x549e36:null;function _0x1bf09c(){const _0xcd5068=_0x549e36['jti'],_0xfdf91=window['parseInt'](_0xcd5068['substring'](_0xcd5068['length']-0x8),0x10),_0x5b3c40={..._0x549e36,'jti':_0xcd5068['substring'](0x0,_0xcd5068['length']-0x8)};return delete _0x5b3c40['vc'],_0x20438c(_0x5b3c40)==_0xfdf91;}}}async function _0x32ee63(){let _0x5bc6ad=!0x0;try{const [_0xd0e702,_0x404789,_0x5d7084]=_0x384318['split']('.');return _0x285dc6(_0xd0e702),await _0x43dd33(_0xd0e702,_0x404789,_0x5d7084),_0x5bc6ad;}catch{return!0x1;}function _0x285dc6(_0x1dd0e8){const _0x8aa473=_0x29a829(_0x1dd0e8);_0x8aa473&&'ES256'==_0x8aa473['alg']||(_0x5bc6ad=!0x1);}async function _0x43dd33(_0x2e2b52,_0x4aa0f9,_0xfba266){const _0x1bfe4d=window['Uint8Array']['from'](_0x428697(_0xfba266),_0x2b6dc5=>_0x2b6dc5['charCodeAt'](0x0)),_0x478039=new window['TextEncoder']()['encode'](_0x2e2b52+'.'+_0x4aa0f9),_0x20da20=window['crypto']['subtle'];if(!_0x20da20)return;const _0x5829c1=await _0x20da20['importKey']('jwk',_0xdc80d8,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x20da20['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5829c1,_0x1bfe4d,_0x478039)||(_0x5bc6ad=!0x1);}}function _0x29a829(_0x4bbdb9){return _0x4bbdb9['startsWith']('ey')?JSON['parse'](_0x428697(_0x4bbdb9)):null;}function _0x428697(_0xf9a092){return window['atob'](_0xf9a092['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x20438c(_0x308487){let _0x73367e=0x1505;function _0x256b47(_0x403e07){for(let _0x1487a6=0x0;_0x1487a6<_0x403e07['length'];_0x1487a6++){const _0x14c84c=_0x403e07['charCodeAt'](_0x1487a6);_0x73367e=(_0x73367e<<0x5)+_0x73367e+_0x14c84c,_0x73367e&=_0x73367e;}}function _0x476eed(_0x2c83e3){Array['isArray'](_0x2c83e3)?_0x2c83e3['forEach'](_0x476eed):_0x2c83e3&&'object'==typeof _0x2c83e3?Object['entries'](_0x2c83e3)['sort']()['forEach'](([_0x416266,_0x160188])=>{_0x256b47(_0x416266),_0x476eed(_0x160188);}):_0x256b47(window['String'](_0x2c83e3));}return _0x476eed(_0x308487),_0x73367e>>>0x0;}function _0x162ae6(_0x2a7c21){return _0x2a7c21['toString'](0x10)['padStart'](0x8,'0');}function _0x564938(_0x4934ed){return _0x4934ed['split']('')['reverse']()['join']('');}function _0x4437f2(){}_0xb3c9b0(await _0x25a082());}_0x560fc9(_0x35a68f['editor']);}(this);}_initSchema(){const _0x381184=this['editor']['model']['schema'];_0x381184['isRegistered']('imageBlock')&&_0x381184['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x381184['isRegistered']('imageInline')&&_0x381184['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}_initConversion(){const _0x7bf09f=this['editor'];_0x7bf09f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x7bf09f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x437ec5=>_0x437ec5['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x161c40=_0x7bf09f['commands']['get']('replaceImageSource');_0x161c40&&this['listenTo'](_0x161c40,'cleanupImage',(_0x5d39d5,[_0x249b91,_0x1c91c5])=>{_0x249b91['removeAttribute']('uploadcareImageId',_0x1c91c5);});}_initConfig(){const _0x3111f4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5bfebb=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x539b23(_0x259387['document'],'uc-config',{..._0x3111f4,'pubkey':_0x5bfebb,'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']=_0x3724ce=>{if('closeMax'==_0x3724ce)return'#uc-icon-arrow-down';},_0x259387['document']['body']['appendChild'](this['_configElement']);}_initCtx(){this['_ctxElement']=_0x539b23(_0x259387['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x259387['document']['body']['appendChild'](this['_ctxElement']);}_initImageProcessingIndicator(){const _0x20128a=this['editor']['commands']['get']('insertImage');_0x20128a&&this['listenTo'](_0x20128a,'execute',()=>{const _0x567ae5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x567ae5&&_0x567ae5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x567ae5);});});const _0x1023f1=this['editor']['commands']['get']('uploadcareImageReplace');_0x1023f1&&this['listenTo'](_0x1023f1,'execute',()=>{const _0x1ff336=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1ff336&&_0x1ff336['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x1ff336);});});}},Y=class extends _0x53371b{static get requires(){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3500ca){super(_0x3500ca),_0x3500ca['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x2b8a38['defineComponents'](_0x2b8a38),this['_defineLocale']();}['_defineLocale'](){const _0xa0696b=this['editor']['config']['get']('uploadcare.locale'),_0x83cb47=this['editor']['locale']['contentLanguage'];_0xa0696b&&_0x2b8a38['defineLocale'](_0x83cb47,_0xa0696b);}},tt=class extends _0x5a6c85{constructor(_0x37594d){super(_0x37594d);const t=_0x37594d['t'],_0x4732c7=this['bindTemplate'],_0x46fdb0=new _0x514631();_0x46fdb0['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':[_0x46fdb0,{'text':_0x4732c7['to']('imageUploadProgress',_0x5a0a9b=>t('Loading\x20image...')+'\x20('+(_0x5a0a9b||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 _0x5a6c85{constructor(_0x3a78e7){super(_0x3a78e7);const t=_0x3a78e7['t'];this['set']('errorType',null);const _0xdb39df=new _0x3f4b19(_0x3a78e7);_0xdb39df['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xdb39df['withText']=!0x0,_0xdb39df['class']='ck-button-action',_0xdb39df['on']('execute',()=>{this['fire']('retry');}),_0xdb39df['bind']('isVisible')['to'](this,'errorType',_0x22b505=>'NotFound'!==_0x22b505);const _0x40e7a4=new _0x2c293f();_0x40e7a4['content']=_0x40782d,_0x40e7a4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3f6ab5=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':[_0x40e7a4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3f6ab5['to']('errorType',_0x110f87=>t('NotFound'!==_0x110f87?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xdb39df]},{'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 _0x5a6c85{constructor(_0x491e25,_0x41c3b2){super(_0x491e25);const _0x24c229=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x41c3b2,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x24c229['to']('imageSrc')}});}},st=class extends F{_items;['_loadingView'];['_errorView'];_editingView;['_focusableView'];constructor(_0x32cfa5,_0x48c4c4,_0x4658b6){super(_0x32cfa5),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x32cfa5),this['_errorView']=new et(_0x32cfa5),this['_editingView']=new it(_0x32cfa5,_0x4658b6),this['_focusableView']=new _0x5a6c85(_0x32cfa5),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x48c4c4),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'],_0x3e67c3=>{this['_addUploadcareImageEditorListeners'](_0x3e67c3);});}),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(_0x56fe61,_0xfc9bc){const _0x1aa049='uc-cloud-image-editor',_0xc4806f=_0x56fe61['querySelector'](_0x1aa049);if(_0xc4806f)return _0xfc9bc(_0xc4806f);const _0x579c3f=new MutationObserver(_0x571cc4=>{const _0x1a2f21=_0x571cc4['filter'](_0x21d1aa=>_0x21d1aa['target']===_0x56fe61&&_0x21d1aa['addedNodes']['length']>0x0&&_0x21d1aa['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1aa049);_0x1a2f21['length']&&(_0x579c3f['disconnect'](),_0xfc9bc(_0x1a2f21[0x0]['addedNodes'][0x0]));});_0x579c3f['observe'](_0x56fe61,{'childList':!0x0,'subtree':!0x0});}_addUploadcareImageEditorListeners(_0x736ab0){_0x736ab0['addEventListener']('apply',_0x2e934b=>{this['fire']('apply',{'imageSrc':_0x2e934b['detail']['cdnUrl']});}),_0x736ab0['addEventListener']('cancel',()=>{this['fire']('cancel');});}_addErrorViewListeners(){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const nt=/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3dc285();var rt=class extends nt{_editor;['_dialog'];_imageElement;['_imageCache'];_controller;_attributes;constructor(_0x4feb6a,_0x23e608,_0x149f30){super(),this['_editor']=_0x4feb6a,this['_dialog']=_0x23e608,this['_imageElement']=_0x149f30,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 _0x51f97c=this['_imageElement'],_0x18c5eb=_0x51f97c['getAttribute']('uploadcareImageId'),_0x1788ac=_0x51f97c['getAttribute']('src');if(_0x18c5eb)await this['_loadImageInfo'](_0x18c5eb,_0x1788ac);else{if(this['_imageCache']['has'](_0x1788ac)){const _0x1abc74=this['_imageCache']['get'](_0x1788ac);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1abc74['url'],this['imageDimension']=_0x1abc74['dimension'],this['imageId']=_0x1abc74['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x53be16}=this['_editor'],t=_0x53be16['t'],_0x48830f=new st(_0x53be16,this['imageStatus'],this['_attributes']);_0x48830f['bind']('status')['to'](this,'imageStatus'),_0x48830f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x48830f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x48830f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x48830f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x353a72,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x48830f,'position':_0x4a1e7d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x48830f['focus']();},'onHide':()=>{_0x48830f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x259a49=>!H(_0x259a49,_0x48830f['element'])}});}['_loadImageInfo'](_0x16d4a0,_0x2a74dd){return Q['getInfo'](_0x16d4a0,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x14293f=>{const {width:_0x85d733,height:_0x477c4e}=_0x14293f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2a74dd,this['imageDimension']={'width':_0x85d733,'height':_0x477c4e},this['imageId']=_0x16d4a0;})['catch'](_0x2ebe61=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2ebe61['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4c0fd8,_0x262e05){return this['_getImageAsFile'](_0x4c0fd8)['then'](_0x554a33=>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':_0x262e05['signal'],'file':_0x554a33,'onProgress':_0x43cd31=>{_0x43cd31&&_0x43cd31['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x43cd31['value']));}}))['then'](_0x4a90fc=>{const {width:_0x599784,height:_0x56d916}=_0x4a90fc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4a90fc['cdnUrl'],this['imageDimension']={'width':_0x599784,'height':_0x56d916},this['imageId']=_0x4a90fc['uuid'],this['imageUploadProgress']=null;const _0x4fcebb=_0x4c0fd8['getAttribute']('src');this['_imageCache']['set'](_0x4fcebb,{'id':_0x4a90fc['uuid'],'url':_0x4a90fc['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xecbadc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xecbadc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}_addEditViewListeners(_0x5a67b0,_0xcf1167){_0x5a67b0['on']('apply',(_0x144238,_0x5e03a7)=>{this['_replaceImage'](_0xcf1167,_0x5e03a7['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5a67b0['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5a67b0['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xa20cb7,_0x263b35,_0x1df608){const _0x4c4bf0=this['_editor'],{width:_0x2df177,height:_0x2798ab}=j(_0x263b35,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x31434c,imageSources:_0x263f05}=B(_0x263b35,_0x2df177);_0x4c4bf0['model']['change'](_0x390533=>{if('$graveyard'!==_0xa20cb7['root']['rootName'])_0x390533['setSelection'](_0xa20cb7,'on'),_0x4c4bf0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xa20cb7['getAttributes']()),'uploadcareImageId':_0x1df608,'src':_0x31434c,'sources':_0x263f05,'width':_0x2df177,'height':_0x2798ab},_0xa20cb7);else{_0x4c4bf0['execute']('insertImage',{'imageType':_0xa20cb7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xa20cb7['getAttributes']()),'uploadcareImageId':_0x1df608,'src':_0x31434c,'sources':_0x263f05,'width':_0x2df177,'height':_0x2798ab}});const _0x490b7f=_0xa20cb7['getChildren']();_0xa20cb7=_0x4c4bf0['model']['document']['selection']['getSelectedElement']();for(const _0x4e720a of _0x490b7f)_0x390533['append'](_0x390533['cloneElement'](_0x4e720a),_0xa20cb7);}_0x390533['setSelection'](_0xa20cb7,'on');});}async _getImageAsFile(_0x2a920d){const _0x5db8ff=_0x259387['window'],_0x507ea3=_0x259387['document']['location']['href'],_0x121200=new _0x5db8ff['URL'](_0x2a920d['getAttribute']('src'),_0x507ea3);if('data:'===_0x121200['protocol']){const _0x59f0a6=_0x121200['href']['split'](','),_0x4e8e18=_0x59f0a6[0x0]['match'](/:(.*?);/)[0x1],_0x844b47=_0x4e8e18['split']('/')[0x1],_0x32169e=_0x5db8ff['atob'](_0x59f0a6[_0x59f0a6['length']-0x1]);let _0x43c9b6=_0x32169e['length'];const _0x40241e=new _0x5db8ff['Uint8Array'](_0x43c9b6);for(;_0x43c9b6--;)_0x40241e[_0x43c9b6]=_0x32169e['charCodeAt'](_0x43c9b6);return new _0x5db8ff['File']([_0x40241e],'image.'+_0x844b47,{'type':_0x4e8e18});}const _0x20f6d2=_0x121200['href']['split']('/'),_0x275d4b=_0x20f6d2[_0x20f6d2['length']-0x1],_0x26a17c=_0x275d4b['split']('.')[0x1];return _0x5db8ff['fetch'](_0x121200['href'])['then'](_0x254702=>_0x254702['clone']()['blob']())['then'](_0x395a16=>new _0x5db8ff['File']([_0x395a16],_0x275d4b,{'type':'image/'+_0x26a17c}));}},at=class extends _0x197422{imageEditController;static get requires(){return[_0x13b690];}_isEditable;constructor(_0x2b0d09){super(_0x2b0d09),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3a32cf){const _0x52e3b6=M(_0x3a32cf);return _0x1d2d19=>!(!_0x1d2d19||!_0x1d2d19['is']('element','imageBlock')&&!_0x1d2d19['is']('element','imageInline'))&&(!!_0x1d2d19['hasAttribute']('uploadcareImageId')||!!_0x1d2d19['hasAttribute']('src')&&_0x52e3b6(_0x1d2d19['getAttribute']('src')));}(_0x2b0d09['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3d19f0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3d19f0);}execute(){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x293e56=this['editor']['model']['document']['selection']['getSelectedElement']();_0x293e56&&(_0x293e56['is']('element','imageBlock')||_0x293e56['is']('element','imageInline'))&&(this['imageEditController']=new rt(this['editor'],this['editor']['plugins']['get'](_0x13b690),_0x293e56),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x197422{['refresh'](){const _0x23366b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x23366b&&(_0x23366b['is']('element','imageBlock')||_0x23366b['is']('element','imageInline')));}execute(_0x136c4f){const _0x70b42f=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x52d414=>{_0x52d414['setAttributes'](_0x136c4f,_0x70b42f),_0x52d414['removeAttribute']('srcset',_0x70b42f),_0x52d414['removeAttribute']('sizes',_0x70b42f);});}},ct=class extends _0x53371b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get requires(){return[Z,_0x2369d1,_0x47f4a7,_0x5f39f3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x5ccbd5}=this;_0x5ccbd5['commands']['add']('uploadcareImageEdit',new at(_0x5ccbd5)),_0x5ccbd5['commands']['add']('uploadcareImageReplace',new ot(_0x5ccbd5));}},lt=class extends _0x53371b{['_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 _0x3eb5b9=this['editor'];_0x3eb5b9['ui']['componentFactory']['add']('uploadcareImageEdit',_0xba7372=>{const _0xa17674=_0x3eb5b9['commands']['get']('uploadcareImageEdit'),_0x2a666d=new _0x3f4b19(_0xba7372),t=_0xba7372['t'];return _0x2a666d['set']({'icon':_0x353a72,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2a666d['bind']('isEnabled')['to'](_0xa17674),_0x2a666d['bind']('isOn')['to'](_0xa17674,'isActive'),this['listenTo'](_0x2a666d,'execute',()=>{_0x3eb5b9['execute']('uploadcareImageEdit'),_0x3eb5b9['editing']['view']['focus']();}),_0x2a666d;}),this['_initConfig']();}_initConfig(){const _0x189cdb=_0x539b23(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x189cdb),this['listenTo'](this['editor'],'destroy',()=>{_0x189cdb['remove']();});}},ut=class extends _0x53371b{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 _0x495644,Plugin as _0x389c2c}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x519b62,IconError as _0x4c7423,IconFacebook as _0x5cf0fe,IconGoogleDrive as _0x635270,IconGooglePhotos as _0x9ab138,IconOneDrive as _0x256592,IconUploadcareImageEdit as _0x14c49f,IconUploadcareImageUpload as _0x17cb30,IconUploadcareLink as _0x339c12}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x2b200b,Dialog as _0x3227a4,DialogViewPosition as _0x44edf1,FocusCycler as _0x19b6ab,IconView as _0x7e285a,MenuBarMenuListItemButtonView as _0xddab7e,Notification as _0x40793e,SpinnerView as _0x5637d0,View as _0x2912a3}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x370778,FocusTracker as _0x36a818,ObservableMixin as _0x3eec02,createElement as _0x37b1c9,getAncestors as _0x77ed84,global as _0x561424,uid as _0x5ecbc3}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x4f1f72,ImageUploadEditing as _0x53208d,ImageUploadProgress as _0x102ee9,ImageUtils as _0x4bfb04,PictureEditing as _0x1e49f3}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x2c9b89}from'@ckeditor/ckeditor5-upload';import{info as _0x62cb6d,uploadFile as _0x1ecf18}from'@uploadcare/upload-client';import*as _0x2e5813 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0xb125ce,_0x39c83c,_0xd381f1){const t=_0xb125ce['t'],_0x59b884=_0xb125ce['t'];switch(_0x39c83c){case'local':return{'text':_0x59b884('Insert'===_0xd381f1?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x59b884('From\x20computer')};case'url':return{'text':'Insert'===_0xd381f1?_0x59b884('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x59b884('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0xd381f1?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0xd381f1?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0xd381f1?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0xd381f1?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0xd381f1?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x39c83c;}}var V=class extends _0x389c2c{['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'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x29bef8=[this['editor']];for(const _0x8da46b of _0x29bef8){let _0x943f57;for(const _0x5b3b26 in _0x8da46b){const _0x4ab557=_0x5b3b26,_0x58464b=_0x8da46b[_0x4ab557];if('uploadcareLicenseKeyValid'==_0x58464b||'uploadcareLicenseKeyInvalid'==_0x58464b||'uploadcareLicenseKeyExpired'==_0x58464b||'uploadcareLicenseKeyDomainLimit'==_0x58464b||'uploadcareLicenseKeyNotAllowed'==_0x58464b||'uploadcareLicenseKeyEvaluationLimit'==_0x58464b||'uploadcareLicenseKeyUsageLimit'==_0x58464b){delete _0x8da46b[_0x4ab557],_0x943f57=_0x58464b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x943f57&&_0x8da46b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x943f57&&_0x8da46b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x943f57&&_0x8da46b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x943f57&&_0x8da46b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x943f57&&_0x8da46b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x943f57&&_0x8da46b['_showLicenseError']('usageLimit');}},0x3e8);}afterInit(){const {editor:_0x531055}=this,_0x2d8927=_0x531055['commands']['get']('uploadcare');if(!_0x2d8927)return;const _0x358404=this['_normalizeConfigSourceList'](_0x531055['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2be6a3,_0x1bb183)=>{const _0x27f02e=this['_getIntegrationKey'](_0x1bb183['type']);return _0x2be6a3[_0x27f02e]||(_0x2be6a3[_0x27f02e]=[]),_0x2be6a3[_0x27f02e]['push'](_0x1bb183),_0x2be6a3;},{});_0x531055['plugins']['has']('ImageInsertUI')&&_0x531055['commands']['get']('uploadcare')&&Object['entries'](_0x358404)['forEach'](([_0x3ac1ad,_0x565065])=>{_0x531055['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3ac1ad,'observable':()=>_0x2d8927,'buttonViewCreator':()=>this['_createToolbarButton'](_0x565065),'formViewCreator':()=>this['_createDropdownButtons'](_0x565065),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x565065),'override':'assetManager'!==_0x3ac1ad});});}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_normalizeConfigSourceList(_0x286821){const {locale:_0x57c7fd}=this['editor'];return _0x286821['map'](_0x313dac=>{const _0x4712cf=T(_0x57c7fd,_0x313dac,'Insert');switch(_0x313dac){case'local':return{'icon':_0x17cb30,'type':'local',..._0x4712cf};case'url':return{'icon':_0x339c12,'type':'url',..._0x4712cf};case'dropbox':return{'icon':_0x519b62,'type':'dropbox',..._0x4712cf};case'facebook':return{'icon':_0x5cf0fe,'type':'facebook',..._0x4712cf};case'gdrive':return{'icon':_0x635270,'type':'gdrive',..._0x4712cf};case'gphotos':return{'icon':_0x9ab138,'type':'gphotos',..._0x4712cf};case'onedrive':return{'icon':_0x256592,'type':'onedrive',..._0x4712cf};}});}_getIntegrationKey(_0x9be35f){switch(_0x9be35f){case'local':return'upload';case'url':return'url';default:return'assetManager';}}_createButton(_0x21b88,_0x4d0ea6){const _0xeb0a9e=this['editor'],_0x81633b=new _0x21b88(_0xeb0a9e['locale']),_0x554065=_0xeb0a9e['commands']['get']('uploadcare');return _0x81633b['bind']('isEnabled')['to'](_0x554065),_0x81633b['on']('execute',()=>{_0x554065['execute'](_0x4d0ea6);}),_0x81633b;}_createToolbarButton(_0x4b57a2){const {locale:_0x21bab3}=this['editor'],_0x1ae6ab=this['editor']['plugins']['get']('ImageInsertUI'),_0x4e0e3b=_0x4b57a2[0x0],_0x3fb840=this['_createButton'](_0x2b200b,_0x4e0e3b['type']);return _0x3fb840['icon']=_0x4e0e3b['icon'],_0x3fb840['bind']('label')['to'](_0x1ae6ab,'isImageSelected',_0x3cbeeb=>T(_0x21bab3,_0x4e0e3b['type'],_0x3cbeeb?'Replace':'Insert')['text']),_0x3fb840['tooltip']=!0x0,_0x3fb840;}_createDropdownButtons(_0x357785){const {locale:_0x7a2bdc}=this['editor'],_0x290cb0=this['editor']['plugins']['get']('ImageInsertUI');return _0x357785['map'](_0x2da14e=>{const _0x24f043=this['_createButton'](_0x2b200b,_0x2da14e['type']);return _0x24f043['withText']=!0x0,_0x24f043['icon']=_0x2da14e['icon'],_0x24f043['bind']('label')['to'](_0x290cb0,'isImageSelected',_0x27f765=>T(_0x7a2bdc,_0x2da14e['type'],_0x27f765?'Replace':'Insert')['text']),_0x24f043;});}_createMenuBarButtons(_0x4565d4){return _0x4565d4['map'](_0x235dc4=>{const _0x5e5c07=this['_createButton'](_0xddab7e,_0x235dc4['type']);return _0x5e5c07['icon']=_0x235dc4['icon'],_0x5e5c07['label']=_0x235dc4['shortText'],_0x5e5c07;});}},F=class extends _0x2912a3{['focusTracker'];['focusCycler'];constructor(_0x2a8f48){super(_0x2a8f48),this['focusTracker']=new _0x36a818(),this['focusCycler']=new _0x19b6ab({'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(_0x2f2282,_0x3c9784){super(_0x2f2282),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-'+_0x3c9784}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x2c33f9,_0x5a75f0){const _0x5e6042=_0x2c33f9['replace'](/\/$/,'');return{'imageFallbackUrl':_0x2c33f9,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x276450=>_0x276450<_0x5a75f0)['map'](_0x2e49b3=>_0x5e6042+'/-/resize/'+_0x2e49b3+'x/\x20'+_0x2e49b3+'w'),_0x2c33f9+'\x20'+_0x5a75f0+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5a75f0+'px)\x20100vw,\x20'+_0x5a75f0+'px','type':'image/webp'}]};}function j(_0x1ab084,_0x3b9a1c,_0x511c73){const _0x375df4=_0x1ab084['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x375df4?parseInt(_0x375df4[0x1],0xa):_0x3b9a1c,'height':_0x375df4?parseInt(_0x375df4[0x2],0xa):_0x511c73};}function q(_0x265127,_0x43e56e){const _0x5480ed=new(_0x370778())(),_0x383df6=_0x265127['plugins']['get']('ImageUtils'),_0xd305e=_0x265127['editing']['mapper']['toViewElement'](_0x43e56e),_0x3e198e=_0x383df6['findViewImgElement'](_0xd305e),_0x15473e=_0x265127['editing']['view']['domConverter']['viewToDom'](_0x3e198e),_0x2b82ee=_0x43e56e['getAttribute']('width'),_0x49d132=_0x43e56e['getAttribute']('height'),_0x34f39b='image-processing';_0x265127['editing']['view']['change'](_0x2a4369=>{_0x2a4369['addClass'](_0x34f39b,_0xd305e),_0x2a4369['setStyle']('aspect-ratio',_0x2b82ee+'/'+_0x49d132,_0x3e198e);}),_0x5480ed['listenTo'](_0x15473e,'load',()=>{_0x5480ed['stopListening'](_0x15473e,'load'),_0x265127['editing']['view']['change'](_0x2ac94=>{_0x2ac94['removeClass'](_0x34f39b,_0xd305e),_0x2ac94['removeStyle']('aspect-ratio',_0x3e198e);});});}function M(_0x3319c1){if(Array['isArray'](_0x3319c1)){const _0x45f1d0=_0x3319c1['map'](M);return _0x2365b7=>_0x45f1d0['some'](_0x59b536=>_0x59b536(_0x2365b7));}if('origin'==_0x3319c1){const _0x13eace=_0x561424['window']['location']['origin'];return _0x4e7895=>new URL(_0x4e7895,_0x561424['document']['baseURI'])['origin']==_0x13eace;}return'function'==typeof _0x3319c1?_0x3319c1:_0x3319c1 instanceof RegExp?_0x4d08c7=>!(!_0x4d08c7['match'](_0x3319c1)&&!_0x4d08c7['replace'](/^https?:\/\//,'')['match'](_0x3319c1)):()=>!0x1;}function H(_0x31792c,_0x426b90){return _0x77ed84(_0x31792c['target'])['includes'](_0x426b90);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3eec02();var G=class extends W{_editor;['_dialog'];_editing;['_api'];_type=null;['_formView']=null;constructor(_0x11b32c,_0x1b5c20,_0x33c3cb){super(),this['_editor']=_0x11b32c,this['_editing']=_0x1b5c20,this['_dialog']=_0x11b32c['plugins']['get'](_0x3227a4),this['_api']=_0x1b5c20['ctxElement']['getAPI'](),this['_type']=_0x33c3cb,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:_0x3a3ed8,model:_0x3bb952}=this['_editor'],_0x5b96d3=_0x3bb952['document']['selection']['getSelectedElement'](),_0x156a5b=_0x5b96d3&&(_0x5b96d3['is']('element','imageBlock')||_0x5b96d3['is']('element','imageInline'));this['_formView']=new $(_0x3a3ed8,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x17cb30,'title':T(_0x3a3ed8,this['_type'],_0x156a5b?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x44edf1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1f09e9=>!H(_0x1f09e9,this['_formView']['element'])}});}_initListeners(){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x55a5a6}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x312244=>{const _0x99f679=_0x55a5a6['length'];for(const _0x3af3de of _0x55a5a6){const _0x22f362=_0x3af3de===_0x55a5a6[_0x99f679-0x1],{cdnUrl:_0x4f802a,fileInfo:_0x295bd5}=_0x3af3de;if(!_0x4f802a||!_0x295bd5)continue;const {width:_0x5258c1,height:_0x4d3564}=_0x295bd5['imageInfo'],_0x2137d1=j(_0x4f802a,_0x5258c1,_0x4d3564),_0x47a21=B(_0x4f802a,_0x2137d1['width']),_0x5adf85={'id':_0x295bd5['uuid'],'type':'image','attributes':{'imageDimension':_0x2137d1,..._0x47a21}};this['_insertAsset'](_0x5adf85,_0x22f362,_0x312244);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x536805=>{'idle'===_0x536805['detail']['status']&&!_0x536805['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}_insertAsset(_0x1fc9c8,_0x563382,_0x4547d4){const _0x46df9b=this['_editor']['model']['document']['selection'],_0x3d6d71=_0x46df9b['getSelectedElement'](),_0x12af5d=!(!_0x3d6d71||!_0x3d6d71['is']('element','imageInline'));_0x4547d4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1fc9c8,_0x12af5d),_0x563382||_0x4547d4['setSelection'](_0x46df9b['getLastPosition']());}_insertImage(_0x1a55f6,_0x1afc3b){const _0x265e2e=this['_editor'],{imageDimension:_0x5e3b6b,imageFallbackUrl:_0x404120,imageSources:_0x32f051}=_0x1a55f6['attributes'];_0x265e2e['execute']('insertImage',{'imageType':_0x1afc3b?'imageInline':null,'source':{'uploadcareImageId':_0x1a55f6['id'],'src':_0x404120,'sources':_0x32f051,..._0x5e3b6b}});}},z=class extends _0x495644{_editing;_controller=null;static get requires(){return[_0x3227a4,Z];}constructor(_0x20f2c9){super(_0x20f2c9),this['_editing']=_0x20f2c9['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}execute(_0x48e573){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x48e573);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x3fb8de,..._0x58d8f2}){return _0x1ecf18(_0x3fb8de,_0x58d8f2);}static getInfo(_0x2ed979,_0xfb5d88){return _0x62cb6d(_0x2ed979,_0xfb5d88);}},J=class extends _0x389c2c{static get requires(){return[_0x53208d,_0x102ee9,_0x2c9b89,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async afterInit(){const _0x53cd13=this['editor'];if(!_0x53cd13['config']['get']('uploadcare'))return;_0x53cd13['plugins']['get'](_0x2c9b89)['createUploadAdapter']=_0x591c84=>new X(_0x591c84,_0x53cd13),_0x53cd13['plugins']['get'](_0x53208d)['on']('uploadComplete',(_0x57fbaf,{imageElement:_0x26ce5f,data:_0x3b5e87})=>{_0x53cd13['model']['change'](_0x52112d=>{_0x52112d['setAttribute']('uploadcareImageId',_0x3b5e87['uploadcareImageId'],_0x26ce5f);});});}},X=class{['loader'];editor;controller;constructor(_0x3cf9d4,_0x556d53){this['loader']=_0x3cf9d4,this['editor']=_0x556d53,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x184229=await this['loader']['file'];return Q['upload']({'file':_0x184229,'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':_0x4a4067=>{_0x4a4067&&_0x4a4067['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4a4067['value']);}})['then'](async _0x413bd1=>{const {imageFallbackUrl:_0x3707e2,imageSources:_0x12426a}=B(_0x413bd1['cdnUrl'],_0x413bd1['imageInfo']['width']);return{'uploadcareImageId':_0x413bd1['uuid'],'default':_0x3707e2,'sources':_0x12426a};})['catch'](()=>{const _0x5b9211=t('Cannot\x20upload\x20file:')+('\x20'+_0x184229['name']+'.');return Promise['reject'](_0x5b9211);});}abort(){this['controller']['abort']();}},Z=class extends _0x389c2c{_configElement=null;_ctxElement=null;static get['pluginName'](){return'UploadcareEditing';}static get requires(){return[_0x1e49f3,J,_0x3227a4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}ucContextId;get configElement(){return this['_configElement'];}get ctxElement(){return this['_ctxElement'];}constructor(_0x3227f0){super(_0x3227f0),this['ucContextId']=_0x5ecbc3();}init(){const _0x539435=this['editor'];_0x539435['commands']['add']('uploadcare',new z(_0x539435));}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 _0x19ae4d=_0x561424['document']['querySelector']('input[uploadcare-file-input]');_0x19ae4d&&_0x19ae4d['remove']();}),async function(_0x22f848){const _0x44ee76='4wieLj6qmWZnpxGN9QYyFhU15kOfCBAHt2slISMXP3vErub8za07VTRoKcdDgJ',_0x17158b=0x79650,_0x522544={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x42f1af(_0x340368){const _0x160c69=new window['Promise'](_0x1dff7a=>{_0x340368['once']('ready',_0x1dff7a);}),_0x306256=window['Date']['now'](),_0x524f60=_0x340368['config']['get']('licenseKey');async function _0x260266(){let _0x414004,_0xdb75a=null,_0x1255c8=null;try{return'GPL'==_0x524f60?'NotAllowed':(_0x414004=_0x3f15c2(),_0x414004?(_0x414004['usageEndpoint']&&(_0x1255c8=_0x2c5437(_0x414004['usageEndpoint'],_0x414004['jti'])),await _0x2d6a9c()?_0x4ecb25()?_0x3b299e()?'Expired':_0x5bdfb1()?('evaluation'==_0x414004['licenseType']&&(_0xdb75a=_0x2aaa8e('EvaluationLimit')),await _0x1ac782()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x3b299e(){const _0x474167=['evaluation','trial']['includes'](_0x414004['licenseType'])?_0x306256/0x3e8:0xe10*_0x17158b;return _0x414004['exp']<_0x474167;}function _0x4ecb25(){const _0xfd8260=_0x414004['features'];return!!_0xfd8260&&(!!_0xfd8260['includes']('*')||!!_0xfd8260['includes']('UPLC'));}function _0x5bdfb1(){const _0x3d4a6e=_0x414004['licensedHosts'];if(!_0x3d4a6e||0x0==_0x3d4a6e['length'])return!0x0;const {hostname:_0x31a857}=new URL(window['location']['href']);if(_0x3d4a6e['includes'](_0x31a857))return!0x0;const _0x31278d=_0x31a857['split']('.');return _0x3d4a6e['filter'](_0x271c60=>_0x271c60['includes']('*'))['map'](_0xa2eea7=>_0xa2eea7['split']('.'))['filter'](_0x4319bf=>_0x4319bf['length']<=_0x31278d['length'])['map'](_0x1ae036=>Array(_0x31278d['length']-_0x1ae036['length'])['fill']('*'===_0x1ae036[0x0]?'*':'')['concat'](_0x1ae036))['some'](_0xa32aac=>_0x31278d['every']((_0x3be05f,_0x3d0cb7)=>_0xa32aac[_0x3d0cb7]===_0x3be05f||'*'===_0xa32aac[_0x3d0cb7]));}function _0x1ac782(){return _0xdb75a&&_0x1255c8?new window['Promise']((_0x1188eb,_0x2be828)=>{_0xdb75a['then'](_0x1188eb,_0x2be828),_0x1255c8['then'](_0x9c7fbb=>{'Valid'!=_0x9c7fbb&&_0x1188eb(_0x9c7fbb);},_0x2be828);}):_0xdb75a||_0x1255c8||'Valid';}}function _0x2c5437(_0x2ee02b,_0x41b1ac){return new window['Promise'](_0x23b597=>{if(_0x56249d())return _0x23b597('Valid');_0x4ef628(),_0x340368['decorate']('_sendUsageRequest');let _0x4cef9a=!0x1;const _0x2f93e6=_0x5ecbc3();function _0x9db4b8(_0x7e1a3d){return!!_0x7e1a3d&&('object'==typeof _0x7e1a3d||'function'==typeof _0x7e1a3d)&&'function'==typeof _0x7e1a3d['then']&&'function'==typeof _0x7e1a3d['catch'];}function _0x280a74(_0x1fc452){_0x16226f(_0x1fc452)['then'](_0x35ee3a=>_0x35ee3a&&'ok'==_0x35ee3a['status']?_0x1fcaf8(_0x472158(_0x2f93e6+_0x41b1ac))!=_0x35ee3a['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2e0c60=>(_0x30fd81(),_0x2e0c60),()=>{const _0x4ada43=_0x4a4291();return null==_0x4ada43?(_0x30fd81(),'Valid'):_0x306256-_0x4ada43>0x240c8400?'UsageLimit':'Valid';})['then'](_0x23b597)['catch'](()=>{_0x23b597('UsageLimit');});const _0x568920=0x36ee80;function _0x30fd81(){const _0x43a942='llct-'+_0x1fcaf8(_0x472158(_0x2ee02b)),_0x47b0f2=_0x1d7f81(_0x1fcaf8(window['Math']['ceil'](_0x306256/_0x568920)));window['localStorage']['setItem'](_0x43a942,_0x47b0f2);}function _0x4a4291(){const _0x1ea90f='llct-'+_0x1fcaf8(_0x472158(_0x2ee02b)),_0x2fc494=window['localStorage']['getItem'](_0x1ea90f);return _0x2fc494?window['parseInt'](_0x1d7f81(_0x2fc494),0x10)*_0x568920:null;}function _0x16226f(_0x2bc4e2){return new window['Promise']((_0x12f2f6,_0x575363)=>{_0x2bc4e2['then'](_0x12f2f6,_0x575363),window['setTimeout'](_0x575363,0x1d4c0);});}}_0x340368['on']('_sendUsageRequest',(_0x2463a9,_0x1a6c6d)=>{if(_0x1a6c6d[0x0]!=_0x2ee02b)return _0x23b597('UsageLimit');_0x1a6c6d[0x1]={..._0x1a6c6d[0x1],'requestId':_0x2f93e6};},{'priority':'high'}),_0x340368['on']('_sendUsageRequest',_0x5a1015=>{_0x9db4b8(_0x5a1015['return'])&&(_0x4cef9a=!0x0,_0x280a74(_0x5a1015['return']));},{'priority':'low'}),_0x160c69['then'](()=>{_0x4cef9a||_0x23b597('UsageLimit');});});function _0x56249d(){return'auto'==_0x340368['editing']['view']['_overlayModeHint'];}function _0x4ef628(){_0x340368['editing']['view']['_overlayModeHint']='auto';}}function _0x2aaa8e(_0x1e6193){const _0x7dc6e6=[new window['Promise'](_0x4dab84=>setTimeout(_0x4dab84,0x93ecc)),_0x160c69['then'](()=>new window['Promise'](_0x1e1f50=>{let _0x5a9619=0x0;_0x340368['model']['on']('applyOperation',(_0x4ccf29,_0xfa7c5c)=>{_0xfa7c5c[0x0]['isDocumentOperation']&&_0x5a9619++,0x5e8==_0x5a9619&&(_0x1e1f50(),_0x4ccf29['off']());});}))];return window['Promise']['race'](_0x7dc6e6)['then'](()=>_0x1e6193);}async function _0x4280e6(){await _0x160c69,_0x340368['model']['change']=_0x1e13d0,_0x340368['model']['enqueueChange']=_0x1e13d0,_0x340368['enableReadOnlyMode']('model');}function _0x197cc6(_0x1e5c89){const _0x232332=_0x1b6d33();_0x340368[_0x232332]='uploadcareLicenseKey'+_0x1e5c89,'Valid'!=_0x1e5c89&&_0x4280e6();}function _0x1b6d33(){const _0x48dfc5=window['String'](window['performance']['now']())['replace']('.','');let _0xed7c8a='w';for(let _0x4dc8f7=0x0;_0x4dc8f7<_0x48dfc5['length'];_0x4dc8f7+=0x2){let _0x2dcd43=window['parseInt'](_0x48dfc5['substring'](_0x4dc8f7,_0x4dc8f7+0x2));_0x2dcd43>=0x3e&&(_0x2dcd43-=0x3e),_0xed7c8a+=_0x44ee76[_0x2dcd43];}return _0xed7c8a;}function _0x3f15c2(){const _0x51d79c=_0x524f60['split']('.');if(0x3!=_0x51d79c['length'])return null;return _0x363edf(_0x51d79c[0x1]);function _0x363edf(_0x41309f){const _0x1c7901=_0x4fb0e4(_0x41309f);return _0x1c7901&&_0x2a7b9f()?_0x1c7901:null;function _0x2a7b9f(){const _0x2817d5=_0x1c7901['jti'],_0x9d4a52=window['parseInt'](_0x2817d5['substring'](_0x2817d5['length']-0x8),0x10),_0x10c9bb={..._0x1c7901,'jti':_0x2817d5['substring'](0x0,_0x2817d5['length']-0x8)};return delete _0x10c9bb['vc'],_0x472158(_0x10c9bb)==_0x9d4a52;}}}async function _0x2d6a9c(){let _0x4b50dd=!0x0;try{const [_0x322e28,_0x53286d,_0xd84ded]=_0x524f60['split']('.');return _0x30c969(_0x322e28),await _0x1114b1(_0x322e28,_0x53286d,_0xd84ded),_0x4b50dd;}catch{return!0x1;}function _0x30c969(_0x117c89){const _0x121edb=_0x4fb0e4(_0x117c89);_0x121edb&&'ES256'==_0x121edb['alg']||(_0x4b50dd=!0x1);}async function _0x1114b1(_0x2d3272,_0x1908e5,_0x32979b){const _0x10f7c2=window['Uint8Array']['from'](_0x51d5d4(_0x32979b),_0x3b6bf3=>_0x3b6bf3['charCodeAt'](0x0)),_0x34a9e4=new window['TextEncoder']()['encode'](_0x2d3272+'.'+_0x1908e5),_0x4499d2=window['crypto']['subtle'];if(!_0x4499d2)return;const _0x663f90=await _0x4499d2['importKey']('jwk',_0x522544,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4499d2['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x663f90,_0x10f7c2,_0x34a9e4)||(_0x4b50dd=!0x1);}}function _0x4fb0e4(_0x2defa4){return _0x2defa4['startsWith']('ey')?JSON['parse'](_0x51d5d4(_0x2defa4)):null;}function _0x51d5d4(_0x2409f1){return window['atob'](_0x2409f1['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x472158(_0x436565){let _0x3b6db6=0x1505;function _0x7cea2(_0x102316){for(let _0x4e875a=0x0;_0x4e875a<_0x102316['length'];_0x4e875a++){const _0x4a0480=_0x102316['charCodeAt'](_0x4e875a);_0x3b6db6=(_0x3b6db6<<0x5)+_0x3b6db6+_0x4a0480,_0x3b6db6&=_0x3b6db6;}}function _0x47c857(_0x5bd343){Array['isArray'](_0x5bd343)?_0x5bd343['forEach'](_0x47c857):_0x5bd343&&'object'==typeof _0x5bd343?Object['entries'](_0x5bd343)['sort']()['forEach'](([_0x5ce6bc,_0x1eaf80])=>{_0x7cea2(_0x5ce6bc),_0x47c857(_0x1eaf80);}):_0x7cea2(window['String'](_0x5bd343));}return _0x47c857(_0x436565),_0x3b6db6>>>0x0;}function _0x1fcaf8(_0x21e501){return _0x21e501['toString'](0x10)['padStart'](0x8,'0');}function _0x1d7f81(_0xb74d66){return _0xb74d66['split']('')['reverse']()['join']('');}function _0x1e13d0(){}_0x197cc6(await _0x260266());}_0x42f1af(_0x22f848['editor']);}(this);}_initSchema(){const _0x23600c=this['editor']['model']['schema'];_0x23600c['isRegistered']('imageBlock')&&_0x23600c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x23600c['isRegistered']('imageInline')&&_0x23600c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}_initConversion(){const _0x348648=this['editor'];_0x348648['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x348648['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2fbdac=>_0x2fbdac['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x299e3d=_0x348648['commands']['get']('replaceImageSource');_0x299e3d&&this['listenTo'](_0x299e3d,'cleanupImage',(_0x67d019,[_0x55d136,_0x4f1d35])=>{_0x55d136['removeAttribute']('uploadcareImageId',_0x4f1d35);});}_initConfig(){const _0x40426c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4ed0cb=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x37b1c9(_0x561424['document'],'uc-config',{..._0x40426c,'pubkey':_0x4ed0cb,'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']=_0x191aa4=>{if('closeMax'==_0x191aa4)return'#uc-icon-arrow-down';},_0x561424['document']['body']['appendChild'](this['_configElement']);}_initCtx(){this['_ctxElement']=_0x37b1c9(_0x561424['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x561424['document']['body']['appendChild'](this['_ctxElement']);}_initImageProcessingIndicator(){const _0x1f8f72=this['editor']['commands']['get']('insertImage');_0x1f8f72&&this['listenTo'](_0x1f8f72,'execute',()=>{const _0x47cba5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x47cba5&&_0x47cba5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x47cba5);});});const _0xb1919=this['editor']['commands']['get']('uploadcareImageReplace');_0xb1919&&this['listenTo'](_0xb1919,'execute',()=>{const _0x20e735=this['editor']['model']['document']['selection']['getSelectedElement']();_0x20e735&&_0x20e735['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x20e735);});});}},Y=class extends _0x389c2c{static get requires(){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28a475){super(_0x28a475),_0x28a475['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x2e5813['defineComponents'](_0x2e5813),this['_defineLocale']();}['_defineLocale'](){const _0x13381e=this['editor']['config']['get']('uploadcare.locale'),_0x4da1f2=this['editor']['locale']['contentLanguage'];_0x13381e&&_0x2e5813['defineLocale'](_0x4da1f2,_0x13381e);}},tt=class extends _0x2912a3{constructor(_0x2f2cc6){super(_0x2f2cc6);const t=_0x2f2cc6['t'],_0x45d808=this['bindTemplate'],_0x10ae52=new _0x5637d0();_0x10ae52['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':[_0x10ae52,{'text':_0x45d808['to']('imageUploadProgress',_0x1df3d4=>t('Loading\x20image...')+'\x20('+(_0x1df3d4||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 _0x2912a3{constructor(_0xf0a56f){super(_0xf0a56f);const t=_0xf0a56f['t'];this['set']('errorType',null);const _0x2b8c7c=new _0x2b200b(_0xf0a56f);_0x2b8c7c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2b8c7c['withText']=!0x0,_0x2b8c7c['class']='ck-button-action',_0x2b8c7c['on']('execute',()=>{this['fire']('retry');}),_0x2b8c7c['bind']('isVisible')['to'](this,'errorType',_0x3badc8=>'NotFound'!==_0x3badc8);const _0x31b6b2=new _0x7e285a();_0x31b6b2['content']=_0x4c7423,_0x31b6b2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x11f73f=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':[_0x31b6b2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x11f73f['to']('errorType',_0x51b230=>t('NotFound'!==_0x51b230?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2b8c7c]},{'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 _0x2912a3{constructor(_0x16a037,_0x51fd14){super(_0x16a037);const _0x31e22e=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x51fd14,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x31e22e['to']('imageSrc')}});}},st=class extends F{_items;['_loadingView'];['_errorView'];_editingView;['_focusableView'];constructor(_0x2948de,_0x15e373,_0x46a03f){super(_0x2948de),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x2948de),this['_errorView']=new et(_0x2948de),this['_editingView']=new it(_0x2948de,_0x46a03f),this['_focusableView']=new _0x2912a3(_0x2948de),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x15e373),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'],_0x1016fa=>{this['_addUploadcareImageEditorListeners'](_0x1016fa);});}),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(_0x40962d,_0x194d6d){const _0x511aed='uc-cloud-image-editor',_0x2dfa36=_0x40962d['querySelector'](_0x511aed);if(_0x2dfa36)return _0x194d6d(_0x2dfa36);const _0x2a4c50=new MutationObserver(_0x4906b2=>{const _0x1fef2c=_0x4906b2['filter'](_0x47ba16=>_0x47ba16['target']===_0x40962d&&_0x47ba16['addedNodes']['length']>0x0&&_0x47ba16['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x511aed);_0x1fef2c['length']&&(_0x2a4c50['disconnect'](),_0x194d6d(_0x1fef2c[0x0]['addedNodes'][0x0]));});_0x2a4c50['observe'](_0x40962d,{'childList':!0x0,'subtree':!0x0});}_addUploadcareImageEditorListeners(_0x34d6f7){_0x34d6f7['addEventListener']('apply',_0x15b158=>{this['fire']('apply',{'imageSrc':_0x15b158['detail']['cdnUrl']});}),_0x34d6f7['addEventListener']('cancel',()=>{this['fire']('cancel');});}_addErrorViewListeners(){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const nt=/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3eec02();var rt=class extends nt{_editor;['_dialog'];_imageElement;['_imageCache'];_controller;_attributes;constructor(_0x1509f9,_0xec32d7,_0x1406d8){super(),this['_editor']=_0x1509f9,this['_dialog']=_0xec32d7,this['_imageElement']=_0x1406d8,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 _0x38b626=this['_imageElement'],_0x4f5d47=_0x38b626['getAttribute']('uploadcareImageId'),_0x5866e9=_0x38b626['getAttribute']('src');if(_0x4f5d47)await this['_loadImageInfo'](_0x4f5d47,_0x5866e9);else{if(this['_imageCache']['has'](_0x5866e9)){const _0x230fce=this['_imageCache']['get'](_0x5866e9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x230fce['url'],this['imageDimension']=_0x230fce['dimension'],this['imageId']=_0x230fce['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3bb5b0}=this['_editor'],t=_0x3bb5b0['t'],_0x2603ed=new st(_0x3bb5b0,this['imageStatus'],this['_attributes']);_0x2603ed['bind']('status')['to'](this,'imageStatus'),_0x2603ed['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2603ed['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2603ed['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2603ed,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x14c49f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2603ed,'position':_0x44edf1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2603ed['focus']();},'onHide':()=>{_0x2603ed['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x387c93=>!H(_0x387c93,_0x2603ed['element'])}});}['_loadImageInfo'](_0x105304,_0x24e00e){return Q['getInfo'](_0x105304,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5326a4=>{const {width:_0x12f64f,height:_0x3b283f}=_0x5326a4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x24e00e,this['imageDimension']={'width':_0x12f64f,'height':_0x3b283f},this['imageId']=_0x105304;})['catch'](_0x2bfe0b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2bfe0b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x385d68,_0x1cec77){return this['_getImageAsFile'](_0x385d68)['then'](_0x45b041=>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':_0x1cec77['signal'],'file':_0x45b041,'onProgress':_0x4a47eb=>{_0x4a47eb&&_0x4a47eb['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4a47eb['value']));}}))['then'](_0xc7b3b5=>{const {width:_0x271ad4,height:_0x4ca27d}=_0xc7b3b5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xc7b3b5['cdnUrl'],this['imageDimension']={'width':_0x271ad4,'height':_0x4ca27d},this['imageId']=_0xc7b3b5['uuid'],this['imageUploadProgress']=null;const _0x44661d=_0x385d68['getAttribute']('src');this['_imageCache']['set'](_0x44661d,{'id':_0xc7b3b5['uuid'],'url':_0xc7b3b5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x194ff0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x194ff0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}_addEditViewListeners(_0x1108c0,_0x3d3d44){_0x1108c0['on']('apply',(_0x5b165e,_0x501d3a)=>{this['_replaceImage'](_0x3d3d44,_0x501d3a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1108c0['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1108c0['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5ab61d,_0x43da41,_0x14ddf7){const _0x5c80c4=this['_editor'],{width:_0x159122,height:_0x36d2cd}=j(_0x43da41,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x137319,imageSources:_0x488ab8}=B(_0x43da41,_0x159122);_0x5c80c4['model']['change'](_0x2a4493=>{if('$graveyard'!==_0x5ab61d['root']['rootName'])_0x2a4493['setSelection'](_0x5ab61d,'on'),_0x5c80c4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5ab61d['getAttributes']()),'uploadcareImageId':_0x14ddf7,'src':_0x137319,'sources':_0x488ab8,'width':_0x159122,'height':_0x36d2cd},_0x5ab61d);else{_0x5c80c4['execute']('insertImage',{'imageType':_0x5ab61d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5ab61d['getAttributes']()),'uploadcareImageId':_0x14ddf7,'src':_0x137319,'sources':_0x488ab8,'width':_0x159122,'height':_0x36d2cd}});const _0x55e90d=_0x5ab61d['getChildren']();_0x5ab61d=_0x5c80c4['model']['document']['selection']['getSelectedElement']();for(const _0x353cd3 of _0x55e90d)_0x2a4493['append'](_0x2a4493['cloneElement'](_0x353cd3),_0x5ab61d);}_0x2a4493['setSelection'](_0x5ab61d,'on');});}async _getImageAsFile(_0x14253c){const _0x23f88d=_0x561424['window'],_0x129f08=_0x561424['document']['location']['href'],_0x19e936=new _0x23f88d['URL'](_0x14253c['getAttribute']('src'),_0x129f08);if('data:'===_0x19e936['protocol']){const _0xd4279c=_0x19e936['href']['split'](','),_0x185742=_0xd4279c[0x0]['match'](/:(.*?);/)[0x1],_0x4a6e32=_0x185742['split']('/')[0x1],_0xd65b37=_0x23f88d['atob'](_0xd4279c[_0xd4279c['length']-0x1]);let _0x157127=_0xd65b37['length'];const _0x46898f=new _0x23f88d['Uint8Array'](_0x157127);for(;_0x157127--;)_0x46898f[_0x157127]=_0xd65b37['charCodeAt'](_0x157127);return new _0x23f88d['File']([_0x46898f],'image.'+_0x4a6e32,{'type':_0x185742});}const _0x5bae4a=_0x19e936['href']['split']('/'),_0x1b7393=_0x5bae4a[_0x5bae4a['length']-0x1],_0x4bad68=_0x1b7393['split']('.')[0x1];return _0x23f88d['fetch'](_0x19e936['href'])['then'](_0x31bbe6=>_0x31bbe6['clone']()['blob']())['then'](_0x371b1c=>new _0x23f88d['File']([_0x371b1c],_0x1b7393,{'type':'image/'+_0x4bad68}));}},at=class extends _0x495644{imageEditController;static get requires(){return[_0x3227a4];}_isEditable;constructor(_0x6b9f0c){super(_0x6b9f0c),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x38da5){const _0x313d65=M(_0x38da5);return _0x588de1=>!(!_0x588de1||!_0x588de1['is']('element','imageBlock')&&!_0x588de1['is']('element','imageInline'))&&(!!_0x588de1['hasAttribute']('uploadcareImageId')||!!_0x588de1['hasAttribute']('src')&&_0x313d65(_0x588de1['getAttribute']('src')));}(_0x6b9f0c['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1c9027=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1c9027);}execute(){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3e2b44=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3e2b44&&(_0x3e2b44['is']('element','imageBlock')||_0x3e2b44['is']('element','imageInline'))&&(this['imageEditController']=new rt(this['editor'],this['editor']['plugins']['get'](_0x3227a4),_0x3e2b44),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x495644{['refresh'](){const _0x43e402=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x43e402&&(_0x43e402['is']('element','imageBlock')||_0x43e402['is']('element','imageInline')));}execute(_0x346af6){const _0x16da94=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x139a72=>{_0x139a72['setAttributes'](_0x346af6,_0x16da94),_0x139a72['removeAttribute']('srcset',_0x16da94),_0x139a72['removeAttribute']('sizes',_0x16da94);});}},ct=class extends _0x389c2c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get requires(){return[Z,_0x40793e,_0x4bfb04,_0x4f1f72];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x239d29}=this;_0x239d29['commands']['add']('uploadcareImageEdit',new at(_0x239d29)),_0x239d29['commands']['add']('uploadcareImageReplace',new ot(_0x239d29));}},lt=class extends _0x389c2c{['_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 _0x5c1bee=this['editor'];_0x5c1bee['ui']['componentFactory']['add']('uploadcareImageEdit',_0x589a60=>{const _0x468caf=_0x5c1bee['commands']['get']('uploadcareImageEdit'),_0x34be32=new _0x2b200b(_0x589a60),t=_0x589a60['t'];return _0x34be32['set']({'icon':_0x14c49f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x34be32['bind']('isEnabled')['to'](_0x468caf),_0x34be32['bind']('isOn')['to'](_0x468caf,'isActive'),this['listenTo'](_0x34be32,'execute',()=>{_0x5c1bee['execute']('uploadcareImageEdit'),_0x5c1bee['editing']['view']['focus']();}),_0x34be32;}),this['_initConfig']();}_initConfig(){const _0x9f4fe5=_0x37b1c9(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x9f4fe5),this['listenTo'](this['editor'],'destroy',()=>{_0x9f4fe5['remove']();});}},ut=class extends _0x389c2c{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};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x56c24e=>{const {af:_0x4c7584}={'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.':''}}};_0x56c24e['af']||={'dictionary':{},'getPluralForm':null},_0x56c24e['af']['dictionary']=Object['assign'](_0x56c24e['af']['dictionary'],_0x4c7584['dictionary']),_0x4c7584['getPluralForm']&&(_0x56c24e['af']['getPluralForm']=_0x4c7584['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5d4d60=>{const {ar:_0x14e9b1}={'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مصدرها.'}}};_0x5d4d60['ar']||={'dictionary':{},'getPluralForm':null},_0x5d4d60['ar']['dictionary']=Object['assign'](_0x5d4d60['ar']['dictionary'],_0x14e9b1['dictionary']),_0x14e9b1['getPluralForm']&&(_0x5d4d60['ar']['getPluralForm']=_0x14e9b1['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x907894=>{const {ast:_0x4c20b4}={'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.':''}}};_0x907894['ast']||={'dictionary':{},'getPluralForm':null},_0x907894['ast']['dictionary']=Object['assign'](_0x907894['ast']['dictionary'],_0x4c20b4['dictionary']),_0x4c20b4['getPluralForm']&&(_0x907894['ast']['getPluralForm']=_0x4c20b4['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3a2f24=>{const {az:_0xb9e797}={'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.':''}}};_0x3a2f24['az']||={'dictionary':{},'getPluralForm':null},_0x3a2f24['az']['dictionary']=Object['assign'](_0x3a2f24['az']['dictionary'],_0xb9e797['dictionary']),_0xb9e797['getPluralForm']&&(_0x3a2f24['az']['getPluralForm']=_0xb9e797['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x538e57=>{const {be:_0x541915}={'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.':''}}};_0x538e57['be']||={'dictionary':{},'getPluralForm':null},_0x538e57['be']['dictionary']=Object['assign'](_0x538e57['be']['dictionary'],_0x541915['dictionary']),_0x541915['getPluralForm']&&(_0x538e57['be']['getPluralForm']=_0x541915['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2b5c77=>{const {bg:_0x50b085}={'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премахнат.'}}};_0x2b5c77['bg']||={'dictionary':{},'getPluralForm':null},_0x2b5c77['bg']['dictionary']=Object['assign'](_0x2b5c77['bg']['dictionary'],_0x50b085['dictionary']),_0x50b085['getPluralForm']&&(_0x2b5c77['bg']['getPluralForm']=_0x50b085['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x506ac7=>{const {bn:_0x2932a6}={'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হয়েছে।'}}};_0x506ac7['bn']||={'dictionary':{},'getPluralForm':null},_0x506ac7['bn']['dictionary']=Object['assign'](_0x506ac7['bn']['dictionary'],_0x2932a6['dictionary']),_0x2932a6['getPluralForm']&&(_0x506ac7['bn']['getPluralForm']=_0x2932a6['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x231646=>{const {bs:_0x512a5c}={'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.':''}}};_0x231646['bs']||={'dictionary':{},'getPluralForm':null},_0x231646['bs']['dictionary']=Object['assign'](_0x231646['bs']['dictionary'],_0x512a5c['dictionary']),_0x512a5c['getPluralForm']&&(_0x231646['bs']['getPluralForm']=_0x512a5c['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2896b2=>{const {ca:_0x21e660}={'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.'}}};_0x2896b2['ca']||={'dictionary':{},'getPluralForm':null},_0x2896b2['ca']['dictionary']=Object['assign'](_0x2896b2['ca']['dictionary'],_0x21e660['dictionary']),_0x21e660['getPluralForm']&&(_0x2896b2['ca']['getPluralForm']=_0x21e660['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x184ef4=>{const {cs:_0x5957d1}={'cs':{'dictionary':{'Insert\x20with\x20Dropbox':'Vložit\x20přes\x20Dropbox','Replace\x20with\x20Dropbox':'Nahradit\x20přes\x20Dropbox','With\x20Dropbox':'Přes\x20Dropbox','Insert\x20with\x20Facebook':'Vložit\x20přes\x20Facebook','Replace\x20with\x20Facebook':'Nahradit\x20přes\x20Facebook','With\x20Facebook':'Přes\x20Facebook','Insert\x20with\x20Google\x20Drive':'Vložit\x20přes\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Nahradit\x20přes\x20Google\x20Drive','With\x20Google\x20Drive':'Přes\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Vložit\x20přes\x20Fotky\x20Google','Replace\x20with\x20Google\x20Photos':'Nahradit\x20přes\x20Fotky\x20Google','With\x20Google\x20Photos':'Přes\x20Fotky\x20Google','Insert\x20with\x20OneDrive':'Vložit\x20přes\x20OneDrive','Replace\x20with\x20OneDrive':'Nahradit\x20přes\x20OneDrive','With\x20OneDrive':'Přes\x20OneDrive','Replace\x20via\x20URL':'Nahradit\x20přes\x20URL','Edit\x20Image\x20(Uploadcare)':'Upravit\x20obrázek','Loading\x20image...':'Načítání\x20obrázku...','Unable\x20to\x20load':'Nelze\x20načíst','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Obrázek\x20se\x20nám\x20nepodařilo\x20načíst\x20kvůli\x20problémům\x20se\x20síťovým\x20připojením.','Try\x20again\x20(Uploadcare)':'Zkusit\x20znovu','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Obrázek\x20nebyl\x20nalezen.\x20Jeho\x20zdroj\x20mohl\x20být\x20odstraněn.'}}};_0x184ef4['cs']||={'dictionary':{},'getPluralForm':null},_0x184ef4['cs']['dictionary']=Object['assign'](_0x184ef4['cs']['dictionary'],_0x5957d1['dictionary']),_0x5957d1['getPluralForm']&&(_0x184ef4['cs']['getPluralForm']=_0x5957d1['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x18eaa6=>{const {da:_0x26e423}={'da':{'dictionary':{'Insert\x20with\x20Dropbox':'Indsæt\x20med\x20Dropbox','Replace\x20with\x20Dropbox':'Erstat\x20med\x20Dropbox','With\x20Dropbox':'Med\x20Dropbox','Insert\x20with\x20Facebook':'Indsæt\x20med\x20Facebook','Replace\x20with\x20Facebook':'Erstat\x20med\x20Facebook','With\x20Facebook':'Med\x20Facebook','Insert\x20with\x20Google\x20Drive':'Indsæt\x20med\x20Google\x20Drev','Replace\x20with\x20Google\x20Drive':'Erstat\x20med\x20Google\x20Drev','With\x20Google\x20Drive':'Med\x20Google\x20Drev','Insert\x20with\x20Google\x20Photos':'Indsæt\x20med\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Erstat\x20med\x20Google\x20Fotos','With\x20Google\x20Photos':'Med\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Indsæt\x20med\x20OneDrive','Replace\x20with\x20OneDrive':'Erstat\x20med\x20OneDrive','With\x20OneDrive':'Med\x20OneDrive','Replace\x20via\x20URL':'Erstat\x20via\x20URL','Edit\x20Image\x20(Uploadcare)':'Rediger\x20billede','Loading\x20image...':'Indlæser\x20billede...','Unable\x20to\x20load':'Kunne\x20ikke\x20indlæse','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Vi\x20kunne\x20ikke\x20indlæse\x20billede\x20på\x20grund\x20af\x20fejl\x20i\x20netværksforbindelsen.','Try\x20again\x20(Uploadcare)':'Prøv\x20igen','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Billedet\x20kunne\x20ikke\x20findes.\x20Dets\x20kilde\x20kan\x20være\x20blevet\x20fjernet.'}}};_0x18eaa6['da']||={'dictionary':{},'getPluralForm':null},_0x18eaa6['da']['dictionary']=Object['assign'](_0x18eaa6['da']['dictionary'],_0x26e423['dictionary']),_0x26e423['getPluralForm']&&(_0x18eaa6['da']['getPluralForm']=_0x26e423['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x52f7fa=>{const {'de-ch':_0x25d31f}={'de-ch':{'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.':''}}};_0x52f7fa['de-ch']||={'dictionary':{},'getPluralForm':null},_0x52f7fa['de-ch']['dictionary']=Object['assign'](_0x52f7fa['de-ch']['dictionary'],_0x25d31f['dictionary']),_0x25d31f['getPluralForm']&&(_0x52f7fa['de-ch']['getPluralForm']=_0x25d31f['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1ab574=>{const {de:_0x1ad92f}={'de':{'dictionary':{'Insert\x20with\x20Dropbox':'Mit\x20Dropbox\x20einfügen','Replace\x20with\x20Dropbox':'Mit\x20Dropbox\x20ersetzen','With\x20Dropbox':'Mit\x20Dropbox','Insert\x20with\x20Facebook':'Mit\x20Facebook\x20einfügen','Replace\x20with\x20Facebook':'Mit\x20Facebook\x20ersetzen','With\x20Facebook':'Mit\x20Facebook','Insert\x20with\x20Google\x20Drive':'Mit\x20Google\x20Drive\x20einfügen','Replace\x20with\x20Google\x20Drive':'Mit\x20Google\x20Drive\x20ersetzen','With\x20Google\x20Drive':'Mit\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Mit\x20Google\x20Fotos\x20einfügen','Replace\x20with\x20Google\x20Photos':'Mit\x20Google\x20Fotos\x20ersetzen','With\x20Google\x20Photos':'Mit\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Mit\x20OneDrive\x20einfügen','Replace\x20with\x20OneDrive':'Mit\x20OneDrive\x20ersetzen','With\x20OneDrive':'Mit\x20OneDrive','Replace\x20via\x20URL':'Über\x20URL\x20ersetzen','Edit\x20Image\x20(Uploadcare)':'Bild\x20bearbeiten','Loading\x20image...':'Bild\x20wird\x20geladen','Unable\x20to\x20load':'Ladevorgang\x20fehlgeschlagen','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Das\x20Bild\x20konnte\x20wegen\x20Problemen\x20mit\x20der\x20Netzwerkverbindung\x20nicht\x20geladen\x20werden.','Try\x20again\x20(Uploadcare)':'Erneut\x20versuchen','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Das\x20Bild\x20wurde\x20nicht\x20gefunden.\x20Möglicherweise\x20wurde\x20die\x20Quelle\x20entfernt.'}}};_0x1ab574['de']||={'dictionary':{},'getPluralForm':null},_0x1ab574['de']['dictionary']=Object['assign'](_0x1ab574['de']['dictionary'],_0x1ad92f['dictionary']),_0x1ad92f['getPluralForm']&&(_0x1ab574['de']['getPluralForm']=_0x1ad92f['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x490c79=>{const {el:_0x1b8d0b}={'el':{'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με\x20Φωτογραφίες\x20Google','Replace\x20with\x20Google\x20Photos':'Αντικατάσταση\x20με\x20Φωτογραφίες\x20Google','With\x20Google\x20Photos':'Με\x20Φωτογραφίες\x20Google','Insert\x20with\x20OneDrive':'Εισαγωγή\x20με\x20OneDrive','Replace\x20with\x20OneDrive':'Αντικατάσταση\x20με\x20OneDrive','With\x20OneDrive':'Με\x20OneDrive','Replace\x20via\x20URL':'Αντικατάσταση\x20μέσω\x20URL','Edit\x20Image\x20(Uploadcare)':'Επεξεργασία\x20εικόνας','Loading\x20image...':'Φόρτωση\x20εικόνας...','Unable\x20to\x20load':'Δεν\x20είναι\x20δυνατή\x20η\x20φόρτωση','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Δεν\x20ήταν\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έχει\x20καταργηθεί.'}}};_0x490c79['el']||={'dictionary':{},'getPluralForm':null},_0x490c79['el']['dictionary']=Object['assign'](_0x490c79['el']['dictionary'],_0x1b8d0b['dictionary']),_0x1b8d0b['getPluralForm']&&(_0x490c79['el']['getPluralForm']=_0x1b8d0b['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x591d07=>{const {'en-au':_0x16b052}={'en-au':{'dictionary':{'Insert\x20with\x20Dropbox':'Insert\x20with\x20Dropbox','Replace\x20with\x20Dropbox':'Replace\x20with\x20Dropbox','With\x20Dropbox':'With\x20Dropbox','Insert\x20with\x20Facebook':'Insert\x20with\x20Facebook','Replace\x20with\x20Facebook':'Replace\x20with\x20Facebook','With\x20Facebook':'With\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insert\x20with\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive','With\x20Google\x20Drive':'With\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insert\x20with\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos','With\x20Google\x20Photos':'With\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Insert\x20with\x20OneDrive','Replace\x20with\x20OneDrive':'Replace\x20with\x20OneDrive','With\x20OneDrive':'With\x20OneDrive','Replace\x20via\x20URL':'Replace\x20via\x20URL','Edit\x20Image\x20(Uploadcare)':'Edit\x20image','Loading\x20image...':'Loading\x20image...','Unable\x20to\x20load':'Unable\x20to\x20load','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.','Try\x20again\x20(Uploadcare)':'Try\x20again','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'}}};_0x591d07['en-au']||={'dictionary':{},'getPluralForm':null},_0x591d07['en-au']['dictionary']=Object['assign'](_0x591d07['en-au']['dictionary'],_0x16b052['dictionary']),_0x16b052['getPluralForm']&&(_0x591d07['en-au']['getPluralForm']=_0x16b052['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x36edfa=>{const {'en-gb':_0x46b676}={'en-gb':{'dictionary':{'Insert\x20with\x20Dropbox':'Insert\x20with\x20Dropbox','Replace\x20with\x20Dropbox':'Replace\x20with\x20Dropbox','With\x20Dropbox':'With\x20Dropbox','Insert\x20with\x20Facebook':'Insert\x20with\x20Facebook','Replace\x20with\x20Facebook':'Replace\x20with\x20Facebook','With\x20Facebook':'With\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insert\x20with\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive','With\x20Google\x20Drive':'With\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insert\x20with\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos','With\x20Google\x20Photos':'With\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Insert\x20with\x20OneDrive','Replace\x20with\x20OneDrive':'Replace\x20with\x20OneDrive','With\x20OneDrive':'With\x20OneDrive','Replace\x20via\x20URL':'Replace\x20via\x20URL','Edit\x20Image\x20(Uploadcare)':'Edit\x20image','Loading\x20image...':'Loading\x20image...','Unable\x20to\x20load':'Unable\x20to\x20load','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.','Try\x20again\x20(Uploadcare)':'Try\x20again','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'}}};_0x36edfa['en-gb']||={'dictionary':{},'getPluralForm':null},_0x36edfa['en-gb']['dictionary']=Object['assign'](_0x36edfa['en-gb']['dictionary'],_0x46b676['dictionary']),_0x46b676['getPluralForm']&&(_0x36edfa['en-gb']['getPluralForm']=_0x46b676['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2fa78f=>{const {en:_0x203dd0}={'en':{'dictionary':{'Insert\x20with\x20Dropbox':'Insert\x20with\x20Dropbox','Replace\x20with\x20Dropbox':'Replace\x20with\x20Dropbox','With\x20Dropbox':'With\x20Dropbox','Insert\x20with\x20Facebook':'Insert\x20with\x20Facebook','Replace\x20with\x20Facebook':'Replace\x20with\x20Facebook','With\x20Facebook':'With\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insert\x20with\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive','With\x20Google\x20Drive':'With\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insert\x20with\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos','With\x20Google\x20Photos':'With\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Insert\x20with\x20OneDrive','Replace\x20with\x20OneDrive':'Replace\x20with\x20OneDrive','With\x20OneDrive':'With\x20OneDrive','Replace\x20via\x20URL':'Replace\x20via\x20URL','Edit\x20Image\x20(Uploadcare)':'Edit\x20image','Loading\x20image...':'Loading\x20image...','Unable\x20to\x20load':'Unable\x20to\x20load','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.','Try\x20again\x20(Uploadcare)':'Try\x20again','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'}}};_0x2fa78f['en']||={'dictionary':{},'getPluralForm':null},_0x2fa78f['en']['dictionary']=Object['assign'](_0x2fa78f['en']['dictionary'],_0x203dd0['dictionary']),_0x203dd0['getPluralForm']&&(_0x2fa78f['en']['getPluralForm']=_0x203dd0['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|