@ckeditor/ckeditor5-uploadcare 48.5.1 → 48.5.2
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 _0x1626b7,Plugin as _0x552ce8}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x422b13,IconError as _0x4b9c19,IconFacebook as _0x2a1ac3,IconGoogleDrive as _0x67fcdf,IconGooglePhotos as _0xc38a91,IconOneDrive as _0x37f9d5,IconUploadcareImageEdit as _0x7cde51,IconUploadcareImageUpload as _0x174823,IconUploadcareLink as _0x2a8234}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x573cda,Dialog as _0x4b745b,DialogViewPosition as _0x4c0d29,FocusCycler as _0x3f9e85,IconView as _0x70ec5c,MenuBarMenuListItemButtonView as _0x55aa54,Notification as _0x3d326d,SpinnerView as _0x1f62b7,View as _0x19f681}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x2394e0,FocusTracker as _0x38313c,ObservableMixin as _0x11e1f5,createElement as _0x215b7a,getAncestors as _0x43ed9b,global as _0x1ef7fb,uid as _0x3d7c44}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x3f3ec8,ImageUploadEditing as _0x53fb83,ImageUploadProgress as _0x3ba25c,ImageUtils as _0x21cb90,PictureEditing as _0x47a29d}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x279a95}from'@ckeditor/ckeditor5-upload';import{info as _0x3b4358,uploadFile as _0x5b4dcd}from'@uploadcare/upload-client';import*as _0x2df5c7 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x91c98c,_0x945f9f,_0x8b2d11){const t=_0x91c98c['t'],_0x16e5e1=_0x91c98c['t'];switch(_0x945f9f){case'local':return{'text':_0x16e5e1('Insert'===_0x8b2d11?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x16e5e1('From\x20computer')};case'url':return{'text':'Insert'===_0x8b2d11?_0x16e5e1('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x16e5e1('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x8b2d11?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x8b2d11?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x8b2d11?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x8b2d11?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x8b2d11?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x945f9f;}}var V=class extends _0x552ce8{['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 _0x53982e=[this['editor']];for(const _0x3c0ea9 of _0x53982e){let _0x30a418;for(const _0x30ab82 in _0x3c0ea9){const _0x1b1a38=_0x30ab82,_0x198d20=_0x3c0ea9[_0x1b1a38];if('uploadcareLicenseKeyValid'==_0x198d20||'uploadcareLicenseKeyInvalid'==_0x198d20||'uploadcareLicenseKeyExpired'==_0x198d20||'uploadcareLicenseKeyDomainLimit'==_0x198d20||'uploadcareLicenseKeyNotAllowed'==_0x198d20||'uploadcareLicenseKeyEvaluationLimit'==_0x198d20||'uploadcareLicenseKeyUsageLimit'==_0x198d20){delete _0x3c0ea9[_0x1b1a38],_0x30a418=_0x198d20,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x30a418&&_0x3c0ea9['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x30a418&&_0x3c0ea9['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x30a418&&_0x3c0ea9['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x30a418&&_0x3c0ea9['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x30a418&&_0x3c0ea9['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x30a418&&_0x3c0ea9['_showLicenseError']('usageLimit');}},0x3e8);}afterInit(){const {editor:_0x1528b9}=this,_0x45ac1b=_0x1528b9['commands']['get']('uploadcare');if(!_0x45ac1b)return;const _0x23e5e0=this['_normalizeConfigSourceList'](_0x1528b9['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3530ff,_0x2619f4)=>{const _0xdf7e77=this['_getIntegrationKey'](_0x2619f4['type']);return _0x3530ff[_0xdf7e77]||(_0x3530ff[_0xdf7e77]=[]),_0x3530ff[_0xdf7e77]['push'](_0x2619f4),_0x3530ff;},{});_0x1528b9['plugins']['has']('ImageInsertUI')&&_0x1528b9['commands']['get']('uploadcare')&&Object['entries'](_0x23e5e0)['forEach'](([_0x47b045,_0x58c614])=>{_0x1528b9['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x47b045,'observable':()=>_0x45ac1b,'buttonViewCreator':()=>this['_createToolbarButton'](_0x58c614),'formViewCreator':()=>this['_createDropdownButtons'](_0x58c614),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x58c614),'override':'assetManager'!==_0x47b045});});}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_normalizeConfigSourceList(_0x2821b2){const {locale:_0x114c97}=this['editor'];return _0x2821b2['map'](_0x3d81e6=>{const _0x56796a=T(_0x114c97,_0x3d81e6,'Insert');switch(_0x3d81e6){case'local':return{'icon':_0x174823,'type':'local',..._0x56796a};case'url':return{'icon':_0x2a8234,'type':'url',..._0x56796a};case'dropbox':return{'icon':_0x422b13,'type':'dropbox',..._0x56796a};case'facebook':return{'icon':_0x2a1ac3,'type':'facebook',..._0x56796a};case'gdrive':return{'icon':_0x67fcdf,'type':'gdrive',..._0x56796a};case'gphotos':return{'icon':_0xc38a91,'type':'gphotos',..._0x56796a};case'onedrive':return{'icon':_0x37f9d5,'type':'onedrive',..._0x56796a};}});}_getIntegrationKey(_0x45d87e){switch(_0x45d87e){case'local':return'upload';case'url':return'url';default:return'assetManager';}}_createButton(_0x380d1a,_0x982226){const _0x189405=this['editor'],_0x343575=new _0x380d1a(_0x189405['locale']),_0x5099ce=_0x189405['commands']['get']('uploadcare');return _0x343575['bind']('isEnabled')['to'](_0x5099ce),_0x343575['on']('execute',()=>{_0x5099ce['execute'](_0x982226);}),_0x343575;}_createToolbarButton(_0x4e52f0){const {locale:_0x4a339d}=this['editor'],_0x13506b=this['editor']['plugins']['get']('ImageInsertUI'),_0x571b58=_0x4e52f0[0x0],_0xda8e59=this['_createButton'](_0x573cda,_0x571b58['type']);return _0xda8e59['icon']=_0x571b58['icon'],_0xda8e59['bind']('label')['to'](_0x13506b,'isImageSelected',_0xde9e3b=>T(_0x4a339d,_0x571b58['type'],_0xde9e3b?'Replace':'Insert')['text']),_0xda8e59['tooltip']=!0x0,_0xda8e59;}_createDropdownButtons(_0x32244b){const {locale:_0x1f4d10}=this['editor'],_0x43d266=this['editor']['plugins']['get']('ImageInsertUI');return _0x32244b['map'](_0x214f53=>{const _0x57b4db=this['_createButton'](_0x573cda,_0x214f53['type']);return _0x57b4db['withText']=!0x0,_0x57b4db['icon']=_0x214f53['icon'],_0x57b4db['bind']('label')['to'](_0x43d266,'isImageSelected',_0x154a61=>T(_0x1f4d10,_0x214f53['type'],_0x154a61?'Replace':'Insert')['text']),_0x57b4db;});}_createMenuBarButtons(_0x1f80b7){return _0x1f80b7['map'](_0x5bac95=>{const _0x5a987a=this['_createButton'](_0x55aa54,_0x5bac95['type']);return _0x5a987a['icon']=_0x5bac95['icon'],_0x5a987a['label']=_0x5bac95['shortText'],_0x5a987a;});}},F=class extends _0x19f681{['focusTracker'];['focusCycler'];constructor(_0x406939){super(_0x406939),this['focusTracker']=new _0x38313c(),this['focusCycler']=new _0x3f9e85({'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(_0x1a143a,_0xe9b312){super(_0x1a143a),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-'+_0xe9b312}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x30f472,_0x5818c0){const _0x57d597=_0x30f472['replace'](/\/$/,'');return{'imageFallbackUrl':_0x30f472,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1260d4=>_0x1260d4<_0x5818c0)['map'](_0x20f53e=>_0x57d597+'/-/resize/'+_0x20f53e+'x/\x20'+_0x20f53e+'w'),_0x30f472+'\x20'+_0x5818c0+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5818c0+'px)\x20100vw,\x20'+_0x5818c0+'px','type':'image/webp'}]};}function j(_0x3df5f8,_0x455739,_0x4c997d){const _0xbc92d9=_0x3df5f8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xbc92d9?parseInt(_0xbc92d9[0x1],0xa):_0x455739,'height':_0xbc92d9?parseInt(_0xbc92d9[0x2],0xa):_0x4c997d};}function q(_0x453cff,_0x152b63){const _0x1249e7=new(_0x2394e0())(),_0x2766af=_0x453cff['plugins']['get']('ImageUtils'),_0x53a4c1=_0x453cff['editing']['mapper']['toViewElement'](_0x152b63),_0x4ce5fe=_0x2766af['findViewImgElement'](_0x53a4c1),_0x1b0c13=_0x453cff['editing']['view']['domConverter']['viewToDom'](_0x4ce5fe),_0x183686=_0x152b63['getAttribute']('width'),_0x91abeb=_0x152b63['getAttribute']('height'),_0x4a2ae5='image-processing';_0x453cff['editing']['view']['change'](_0x24c649=>{_0x24c649['addClass'](_0x4a2ae5,_0x53a4c1),_0x24c649['setStyle']('aspect-ratio',_0x183686+'/'+_0x91abeb,_0x4ce5fe);}),_0x1249e7['listenTo'](_0x1b0c13,'load',()=>{_0x1249e7['stopListening'](_0x1b0c13,'load'),_0x453cff['editing']['view']['change'](_0x4af7e8=>{_0x4af7e8['removeClass'](_0x4a2ae5,_0x53a4c1),_0x4af7e8['removeStyle']('aspect-ratio',_0x4ce5fe);});});}function M(_0x318afb){if(Array['isArray'](_0x318afb)){const _0x4f78f0=_0x318afb['map'](M);return _0x46d3b2=>_0x4f78f0['some'](_0x3d341f=>_0x3d341f(_0x46d3b2));}if('origin'==_0x318afb){const _0x1bfa5c=_0x1ef7fb['window']['location']['origin'];return _0x9c905c=>new URL(_0x9c905c,_0x1ef7fb['document']['baseURI'])['origin']==_0x1bfa5c;}return'function'==typeof _0x318afb?_0x318afb:_0x318afb instanceof RegExp?_0xa9ccc2=>!(!_0xa9ccc2['match'](_0x318afb)&&!_0xa9ccc2['replace'](/^https?:\/\//,'')['match'](_0x318afb)):()=>!0x1;}function H(_0x4dd91d,_0x453936){return _0x43ed9b(_0x4dd91d['target'])['includes'](_0x453936);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x11e1f5();var G=class extends W{_editor;['_dialog'];_editing;['_api'];_type=null;['_formView']=null;constructor(_0x3347c0,_0x507a66,_0x268eb2){super(),this['_editor']=_0x3347c0,this['_editing']=_0x507a66,this['_dialog']=_0x3347c0['plugins']['get'](_0x4b745b),this['_api']=_0x507a66['ctxElement']['getAPI'](),this['_type']=_0x268eb2,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:_0xbbf14a,model:_0x2f009e}=this['_editor'],_0x2f9e0=_0x2f009e['document']['selection']['getSelectedElement'](),_0x226db4=_0x2f9e0&&(_0x2f9e0['is']('element','imageBlock')||_0x2f9e0['is']('element','imageInline'));this['_formView']=new $(_0xbbf14a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x174823,'title':T(_0xbbf14a,this['_type'],_0x226db4?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4c0d29['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x44e72c=>!H(_0x44e72c,this['_formView']['element'])}});}_initListeners(){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x54179b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5d64c5=>{const _0x19051c=_0x54179b['length'];for(const _0x299ea0 of _0x54179b){const _0x5b2788=_0x299ea0===_0x54179b[_0x19051c-0x1],{cdnUrl:_0x41f4c9,fileInfo:_0x4b6ec3}=_0x299ea0;if(!_0x41f4c9||!_0x4b6ec3)continue;const {width:_0x4bd328,height:_0x489f40}=_0x4b6ec3['imageInfo'],_0xdec4bf=j(_0x41f4c9,_0x4bd328,_0x489f40),_0xd159c4=B(_0x41f4c9,_0xdec4bf['width']),_0x3ba739={'id':_0x4b6ec3['uuid'],'type':'image','attributes':{'imageDimension':_0xdec4bf,..._0xd159c4}};this['_insertAsset'](_0x3ba739,_0x5b2788,_0x5d64c5);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x182462=>{'idle'===_0x182462['detail']['status']&&!_0x182462['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}_insertAsset(_0xf98872,_0xa6a23c,_0x3244d5){const _0x4d3a65=this['_editor']['model']['document']['selection'],_0x4b1998=_0x4d3a65['getSelectedElement'](),_0xe0f53f=!(!_0x4b1998||!_0x4b1998['is']('element','imageInline'));_0x3244d5['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xf98872,_0xe0f53f),_0xa6a23c||_0x3244d5['setSelection'](_0x4d3a65['getLastPosition']());}_insertImage(_0x53c0ea,_0x19470e){const _0x26693d=this['_editor'],{imageDimension:_0x4f96ed,imageFallbackUrl:_0x2697d5,imageSources:_0x2c8648}=_0x53c0ea['attributes'];_0x26693d['execute']('insertImage',{'imageType':_0x19470e?'imageInline':null,'source':{'uploadcareImageId':_0x53c0ea['id'],'src':_0x2697d5,'sources':_0x2c8648,..._0x4f96ed}});}},z=class extends _0x1626b7{_editing;_controller=null;static get requires(){return[_0x4b745b,Z];}constructor(_0x41f334){super(_0x41f334),this['_editing']=_0x41f334['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}execute(_0x308277){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x308277);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x27d045,..._0x193e85}){return _0x5b4dcd(_0x27d045,_0x193e85);}static getInfo(_0x461bff,_0x81ed1a){return _0x3b4358(_0x461bff,_0x81ed1a);}},J=class extends _0x552ce8{static get requires(){return[_0x53fb83,_0x3ba25c,_0x279a95,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async afterInit(){const _0x5dd684=this['editor'];if(!_0x5dd684['config']['get']('uploadcare'))return;_0x5dd684['plugins']['get'](_0x279a95)['createUploadAdapter']=_0x3eba11=>new X(_0x3eba11,_0x5dd684),_0x5dd684['plugins']['get'](_0x53fb83)['on']('uploadComplete',(_0x1c5678,{imageElement:_0x2d118b,data:_0xf1b32})=>{_0x5dd684['model']['change'](_0x5af008=>{_0x5af008['setAttribute']('uploadcareImageId',_0xf1b32['uploadcareImageId'],_0x2d118b);});});}},X=class{['loader'];editor;controller;constructor(_0xdc80b8,_0x212876){this['loader']=_0xdc80b8,this['editor']=_0x212876,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x565a9a=await this['loader']['file'];return Q['upload']({'file':_0x565a9a,'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':_0x2002c2=>{_0x2002c2&&_0x2002c2['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2002c2['value']);}})['then'](async _0x48959f=>{const {imageFallbackUrl:_0x5a8cf9,imageSources:_0x798fac}=B(_0x48959f['cdnUrl'],_0x48959f['imageInfo']['width']);return{'uploadcareImageId':_0x48959f['uuid'],'default':_0x5a8cf9,'sources':_0x798fac};})['catch'](()=>{const _0x408042=t('Cannot\x20upload\x20file:')+('\x20'+_0x565a9a['name']+'.');return Promise['reject'](_0x408042);});}abort(){this['controller']['abort']();}},Z=class extends _0x552ce8{_configElement=null;_ctxElement=null;static get['pluginName'](){return'UploadcareEditing';}static get requires(){return[_0x47a29d,J,_0x4b745b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}ucContextId;get configElement(){return this['_configElement'];}get ctxElement(){return this['_ctxElement'];}constructor(_0x5f0d39){super(_0x5f0d39),this['ucContextId']=_0x3d7c44();}init(){const _0x533127=this['editor'];_0x533127['commands']['add']('uploadcare',new z(_0x533127));}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 _0x466cbb=_0x1ef7fb['document']['querySelector']('input[uploadcare-file-input]');_0x466cbb&&_0x466cbb['remove']();}),async function(_0x5ea2bd){const _0x14b972='4wieLj6qmWZnpxGN9QYyFhU15kOfCBAHt2slISMXP3vErub8za07VTRoKcdDgJ',_0x174707=0x795c0,_0x205c5f={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x520383(_0x5cc7d6){const _0x56cbb8=new window['Promise'](_0x1e72ca=>{_0x5cc7d6['once']('ready',_0x1e72ca);}),_0x10d71a=window['Date']['now'](),_0x4850ab=_0x5cc7d6['config']['get']('licenseKey');async function _0x3702c0(){let _0xf8dbab,_0x5bd869=null,_0x291bb8=null;try{return'GPL'==_0x4850ab?'NotAllowed':(_0xf8dbab=_0x2fa59d(),_0xf8dbab?(_0xf8dbab['usageEndpoint']&&(_0x291bb8=_0x325a2d(_0xf8dbab['usageEndpoint'],_0xf8dbab['jti'])),await _0x364e0f()?_0x408b9e()?_0x14bf3d()?'Expired':_0x3d4548()?('evaluation'==_0xf8dbab['licenseType']&&(_0x5bd869=_0x404379('EvaluationLimit')),await _0x427fc0()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x14bf3d(){const _0x229c0a=['evaluation','trial']['includes'](_0xf8dbab['licenseType'])?_0x10d71a/0x3e8:0xe10*_0x174707;return _0xf8dbab['exp']<_0x229c0a;}function _0x408b9e(){const _0x1f99bc=_0xf8dbab['features'];return!!_0x1f99bc&&(!!_0x1f99bc['includes']('*')||!!_0x1f99bc['includes']('UPLC'));}function _0x3d4548(){const _0xb8507=_0xf8dbab['licensedHosts'];if(!_0xb8507||0x0==_0xb8507['length'])return!0x0;const {hostname:_0x56a247}=new URL(window['location']['href']);if(_0xb8507['includes'](_0x56a247))return!0x0;const _0x250ba8=_0x56a247['split']('.');return _0xb8507['filter'](_0x348705=>_0x348705['includes']('*'))['map'](_0x463807=>_0x463807['split']('.'))['filter'](_0x5e4ce4=>_0x5e4ce4['length']<=_0x250ba8['length'])['map'](_0x96594b=>Array(_0x250ba8['length']-_0x96594b['length'])['fill']('*'===_0x96594b[0x0]?'*':'')['concat'](_0x96594b))['some'](_0x35dfc5=>_0x250ba8['every']((_0x2fe64a,_0x328648)=>_0x35dfc5[_0x328648]===_0x2fe64a||'*'===_0x35dfc5[_0x328648]));}function _0x427fc0(){return _0x5bd869&&_0x291bb8?new window['Promise']((_0x120b7c,_0x437d2c)=>{_0x5bd869['then'](_0x120b7c,_0x437d2c),_0x291bb8['then'](_0x239cd3=>{'Valid'!=_0x239cd3&&_0x120b7c(_0x239cd3);},_0x437d2c);}):_0x5bd869||_0x291bb8||'Valid';}}function _0x325a2d(_0xc9ede9,_0x2daeea){return new window['Promise'](_0x349999=>{if(_0x4edfc4())return _0x349999('Valid');_0x2815fd(),_0x5cc7d6['decorate']('_sendUsageRequest');let _0x12c491=!0x1;const _0x17de81=_0x3d7c44();function _0x3aba9b(_0x3f1ebe){return!!_0x3f1ebe&&('object'==typeof _0x3f1ebe||'function'==typeof _0x3f1ebe)&&'function'==typeof _0x3f1ebe['then']&&'function'==typeof _0x3f1ebe['catch'];}function _0x493338(_0x20be40){_0x29727a(_0x20be40)['then'](_0x1f6b28=>_0x1f6b28&&'ok'==_0x1f6b28['status']?_0x103659(_0x1177bb(_0x17de81+_0x2daeea))!=_0x1f6b28['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2d593e=>(_0x44fe19(),_0x2d593e),()=>{const _0x8de032=_0xd7cced();return null==_0x8de032?(_0x44fe19(),'Valid'):_0x10d71a-_0x8de032>0x240c8400?'UsageLimit':'Valid';})['then'](_0x349999)['catch'](()=>{_0x349999('UsageLimit');});const _0x5860ed=0x36ee80;function _0x44fe19(){const _0x13944c='llct-'+_0x103659(_0x1177bb(_0xc9ede9)),_0x3458cb=_0xc00aa8(_0x103659(window['Math']['ceil'](_0x10d71a/_0x5860ed)));window['localStorage']['setItem'](_0x13944c,_0x3458cb);}function _0xd7cced(){const _0x4c3aa2='llct-'+_0x103659(_0x1177bb(_0xc9ede9)),_0x3d2567=window['localStorage']['getItem'](_0x4c3aa2);return _0x3d2567?window['parseInt'](_0xc00aa8(_0x3d2567),0x10)*_0x5860ed:null;}function _0x29727a(_0x367b98){return new window['Promise']((_0x485b2d,_0x505fbf)=>{_0x367b98['then'](_0x485b2d,_0x505fbf),window['setTimeout'](_0x505fbf,0x1d4c0);});}}_0x5cc7d6['on']('_sendUsageRequest',(_0x3b2e1b,_0x5e54b0)=>{if(_0x5e54b0[0x0]!=_0xc9ede9)return _0x349999('UsageLimit');_0x5e54b0[0x1]={..._0x5e54b0[0x1],'requestId':_0x17de81};},{'priority':'high'}),_0x5cc7d6['on']('_sendUsageRequest',_0x21e4aa=>{_0x3aba9b(_0x21e4aa['return'])&&(_0x12c491=!0x0,_0x493338(_0x21e4aa['return']));},{'priority':'low'}),_0x56cbb8['then'](()=>{_0x12c491||_0x349999('UsageLimit');});});function _0x4edfc4(){return'auto'==_0x5cc7d6['editing']['view']['_overlayModeHint'];}function _0x2815fd(){_0x5cc7d6['editing']['view']['_overlayModeHint']='auto';}}function _0x404379(_0x284ccb){const _0xae1afc=[new window['Promise'](_0x3e51da=>setTimeout(_0x3e51da,0x93ecc)),_0x56cbb8['then'](()=>new window['Promise'](_0x280779=>{let _0x32a4c9=0x0;_0x5cc7d6['model']['on']('applyOperation',(_0x1513fe,_0x26c403)=>{_0x26c403[0x0]['isDocumentOperation']&&_0x32a4c9++,0x5e8==_0x32a4c9&&(_0x280779(),_0x1513fe['off']());});}))];return window['Promise']['race'](_0xae1afc)['then'](()=>_0x284ccb);}async function _0x3be582(){await _0x56cbb8,_0x5cc7d6['model']['change']=_0x11f426,_0x5cc7d6['model']['enqueueChange']=_0x11f426,_0x5cc7d6['enableReadOnlyMode']('model');}function _0x146e8c(_0x4733f4){const _0x44ad5c=_0x3d5700();_0x5cc7d6[_0x44ad5c]='uploadcareLicenseKey'+_0x4733f4,'Valid'!=_0x4733f4&&_0x3be582();}function _0x3d5700(){const _0x426a90=window['String'](window['performance']['now']())['replace']('.','');let _0x3436b7='w';for(let _0x1654e4=0x0;_0x1654e4<_0x426a90['length'];_0x1654e4+=0x2){let _0x3fa846=window['parseInt'](_0x426a90['substring'](_0x1654e4,_0x1654e4+0x2));_0x3fa846>=0x3e&&(_0x3fa846-=0x3e),_0x3436b7+=_0x14b972[_0x3fa846];}return _0x3436b7;}function _0x2fa59d(){const _0x46da21=_0x4850ab['split']('.');if(0x3!=_0x46da21['length'])return null;return _0x282b1b(_0x46da21[0x1]);function _0x282b1b(_0x3937c5){const _0x33439a=_0x5ac334(_0x3937c5);return _0x33439a&&_0x227b5c()?_0x33439a:null;function _0x227b5c(){const _0x50741f=_0x33439a['jti'],_0x3cb4ed=window['parseInt'](_0x50741f['substring'](_0x50741f['length']-0x8),0x10),_0x2f3c27={..._0x33439a,'jti':_0x50741f['substring'](0x0,_0x50741f['length']-0x8)};return delete _0x2f3c27['vc'],_0x1177bb(_0x2f3c27)==_0x3cb4ed;}}}async function _0x364e0f(){let _0x3f0604=!0x0;try{const [_0x177e61,_0x55e710,_0x5ef32c]=_0x4850ab['split']('.');return _0x10d0d6(_0x177e61),await _0x1d853f(_0x177e61,_0x55e710,_0x5ef32c),_0x3f0604;}catch{return!0x1;}function _0x10d0d6(_0x951650){const _0x20a3ee=_0x5ac334(_0x951650);_0x20a3ee&&'ES256'==_0x20a3ee['alg']||(_0x3f0604=!0x1);}async function _0x1d853f(_0x506cec,_0x48af27,_0x14f15f){const _0x4f36c3=window['Uint8Array']['from'](_0x52d8c1(_0x14f15f),_0x85a16b=>_0x85a16b['charCodeAt'](0x0)),_0x44e769=new window['TextEncoder']()['encode'](_0x506cec+'.'+_0x48af27),_0x36f3d9=window['crypto']['subtle'];if(!_0x36f3d9)return;const _0xd20751=await _0x36f3d9['importKey']('jwk',_0x205c5f,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x36f3d9['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0xd20751,_0x4f36c3,_0x44e769)||(_0x3f0604=!0x1);}}function _0x5ac334(_0x5b0d6a){return _0x5b0d6a['startsWith']('ey')?JSON['parse'](_0x52d8c1(_0x5b0d6a)):null;}function _0x52d8c1(_0x1adb3a){return window['atob'](_0x1adb3a['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1177bb(_0xf2d26){let _0x4246bd=0x1505;function _0x4f8741(_0x255caf){for(let _0x548cfd=0x0;_0x548cfd<_0x255caf['length'];_0x548cfd++){const _0x1020c4=_0x255caf['charCodeAt'](_0x548cfd);_0x4246bd=(_0x4246bd<<0x5)+_0x4246bd+_0x1020c4,_0x4246bd&=_0x4246bd;}}function _0x219997(_0x51f7c0){Array['isArray'](_0x51f7c0)?_0x51f7c0['forEach'](_0x219997):_0x51f7c0&&'object'==typeof _0x51f7c0?Object['entries'](_0x51f7c0)['sort']()['forEach'](([_0x16495e,_0x22b555])=>{_0x4f8741(_0x16495e),_0x219997(_0x22b555);}):_0x4f8741(window['String'](_0x51f7c0));}return _0x219997(_0xf2d26),_0x4246bd>>>0x0;}function _0x103659(_0x57ef6d){return _0x57ef6d['toString'](0x10)['padStart'](0x8,'0');}function _0xc00aa8(_0x38d616){return _0x38d616['split']('')['reverse']()['join']('');}function _0x11f426(){}_0x146e8c(await _0x3702c0());}_0x520383(_0x5ea2bd['editor']);}(this);}_initSchema(){const _0x5dcf66=this['editor']['model']['schema'];_0x5dcf66['isRegistered']('imageBlock')&&_0x5dcf66['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5dcf66['isRegistered']('imageInline')&&_0x5dcf66['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}_initConversion(){const _0x56ff0c=this['editor'];_0x56ff0c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x56ff0c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1cc21a=>_0x1cc21a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x53d749=_0x56ff0c['commands']['get']('replaceImageSource');_0x53d749&&this['listenTo'](_0x53d749,'cleanupImage',(_0x49c937,[_0x55f220,_0x371e26])=>{_0x55f220['removeAttribute']('uploadcareImageId',_0x371e26);});}_initConfig(){const _0x37e43b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2848c5=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x215b7a(_0x1ef7fb['document'],'uc-config',{..._0x37e43b,'pubkey':_0x2848c5,'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']=_0x11e184=>{if('closeMax'==_0x11e184)return'#uc-icon-arrow-down';},_0x1ef7fb['document']['body']['appendChild'](this['_configElement']);}_initCtx(){this['_ctxElement']=_0x215b7a(_0x1ef7fb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1ef7fb['document']['body']['appendChild'](this['_ctxElement']);}_initImageProcessingIndicator(){const _0x27cb9f=this['editor']['commands']['get']('insertImage');_0x27cb9f&&this['listenTo'](_0x27cb9f,'execute',()=>{const _0x1d0baa=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1d0baa&&_0x1d0baa['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x1d0baa);});});const _0x5271cc=this['editor']['commands']['get']('uploadcareImageReplace');_0x5271cc&&this['listenTo'](_0x5271cc,'execute',()=>{const _0x3b37b5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3b37b5&&_0x3b37b5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x3b37b5);});});}},Y=class extends _0x552ce8{static get requires(){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f31ba){super(_0x1f31ba),_0x1f31ba['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x2df5c7['defineComponents'](_0x2df5c7),this['_defineLocale']();}['_defineLocale'](){const _0x557382=this['editor']['config']['get']('uploadcare.locale'),_0x32bcdf=this['editor']['locale']['contentLanguage'];_0x557382&&_0x2df5c7['defineLocale'](_0x32bcdf,_0x557382);}},tt=class extends _0x19f681{constructor(_0x374d6b){super(_0x374d6b);const t=_0x374d6b['t'],_0x4789d8=this['bindTemplate'],_0x380a0e=new _0x1f62b7();_0x380a0e['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':[_0x380a0e,{'text':_0x4789d8['to']('imageUploadProgress',_0x4a9539=>t('Loading\x20image...')+'\x20('+(_0x4a9539||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 _0x19f681{constructor(_0xdaeb8f){super(_0xdaeb8f);const t=_0xdaeb8f['t'];this['set']('errorType',null);const _0x4e3783=new _0x573cda(_0xdaeb8f);_0x4e3783['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4e3783['withText']=!0x0,_0x4e3783['class']='ck-button-action',_0x4e3783['on']('execute',()=>{this['fire']('retry');}),_0x4e3783['bind']('isVisible')['to'](this,'errorType',_0x138e0d=>'NotFound'!==_0x138e0d);const _0x58bf51=new _0x70ec5c();_0x58bf51['content']=_0x4b9c19,_0x58bf51['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x27dcf6=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':[_0x58bf51,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x27dcf6['to']('errorType',_0x4613ec=>t('NotFound'!==_0x4613ec?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4e3783]},{'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 _0x19f681{constructor(_0x41e18a,_0x3608d6){super(_0x41e18a);const _0x239091=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3608d6,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x239091['to']('imageSrc')}});}},st=class extends F{_items;['_loadingView'];['_errorView'];_editingView;['_focusableView'];constructor(_0x4e6f14,_0x439452,_0x34a9d3){super(_0x4e6f14),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x4e6f14),this['_errorView']=new et(_0x4e6f14),this['_editingView']=new it(_0x4e6f14,_0x34a9d3),this['_focusableView']=new _0x19f681(_0x4e6f14),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x439452),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'],_0x94fd5=>{this['_addUploadcareImageEditorListeners'](_0x94fd5);});}),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(_0x45c8e0,_0x9ff335){const _0x503d1a='uc-cloud-image-editor',_0x173ed6=_0x45c8e0['querySelector'](_0x503d1a);if(_0x173ed6)return _0x9ff335(_0x173ed6);const _0x49631b=new MutationObserver(_0x2c1446=>{const _0x3783b0=_0x2c1446['filter'](_0x35f681=>_0x35f681['target']===_0x45c8e0&&_0x35f681['addedNodes']['length']>0x0&&_0x35f681['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x503d1a);_0x3783b0['length']&&(_0x49631b['disconnect'](),_0x9ff335(_0x3783b0[0x0]['addedNodes'][0x0]));});_0x49631b['observe'](_0x45c8e0,{'childList':!0x0,'subtree':!0x0});}_addUploadcareImageEditorListeners(_0x3633c5){_0x3633c5['addEventListener']('apply',_0x8bf18f=>{this['fire']('apply',{'imageSrc':_0x8bf18f['detail']['cdnUrl']});}),_0x3633c5['addEventListener']('cancel',()=>{this['fire']('cancel');});}_addErrorViewListeners(){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const nt=/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x11e1f5();var rt=class extends nt{_editor;['_dialog'];_imageElement;['_imageCache'];_controller;_attributes;constructor(_0x1c2313,_0x251499,_0x1c625c){super(),this['_editor']=_0x1c2313,this['_dialog']=_0x251499,this['_imageElement']=_0x1c625c,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 _0x478875=this['_imageElement'],_0x43f41d=_0x478875['getAttribute']('uploadcareImageId'),_0x2e8e05=_0x478875['getAttribute']('src');if(_0x43f41d)await this['_loadImageInfo'](_0x43f41d,_0x2e8e05);else{if(this['_imageCache']['has'](_0x2e8e05)){const _0xbb80a6=this['_imageCache']['get'](_0x2e8e05);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xbb80a6['url'],this['imageDimension']=_0xbb80a6['dimension'],this['imageId']=_0xbb80a6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x20e457}=this['_editor'],t=_0x20e457['t'],_0xbb57d5=new st(_0x20e457,this['imageStatus'],this['_attributes']);_0xbb57d5['bind']('status')['to'](this,'imageStatus'),_0xbb57d5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xbb57d5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xbb57d5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xbb57d5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x7cde51,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xbb57d5,'position':_0x4c0d29['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xbb57d5['focus']();},'onHide':()=>{_0xbb57d5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e76b8=>!H(_0x5e76b8,_0xbb57d5['element'])}});}['_loadImageInfo'](_0x3ad563,_0x21423e){return Q['getInfo'](_0x3ad563,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1d53b2=>{const {width:_0x3c3ec6,height:_0x6744ab}=_0x1d53b2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x21423e,this['imageDimension']={'width':_0x3c3ec6,'height':_0x6744ab},this['imageId']=_0x3ad563;})['catch'](_0x1f6450=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1f6450['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x26e942,_0x4f746c){return this['_getImageAsFile'](_0x26e942)['then'](_0x5cb231=>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':_0x4f746c['signal'],'file':_0x5cb231,'onProgress':_0x3cd32a=>{_0x3cd32a&&_0x3cd32a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3cd32a['value']));}}))['then'](_0x15b8f6=>{const {width:_0x51143f,height:_0x28a1bc}=_0x15b8f6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x15b8f6['cdnUrl'],this['imageDimension']={'width':_0x51143f,'height':_0x28a1bc},this['imageId']=_0x15b8f6['uuid'],this['imageUploadProgress']=null;const _0x1f1df2=_0x26e942['getAttribute']('src');this['_imageCache']['set'](_0x1f1df2,{'id':_0x15b8f6['uuid'],'url':_0x15b8f6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x38c66a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x38c66a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}_addEditViewListeners(_0x3f8603,_0x1acadc){_0x3f8603['on']('apply',(_0x165152,_0x4af5c7)=>{this['_replaceImage'](_0x1acadc,_0x4af5c7['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3f8603['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3f8603['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x85a405,_0xa8f39c,_0x1f349e){const _0x12f1a8=this['_editor'],{width:_0x24f805,height:_0x11af60}=j(_0xa8f39c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x36977c,imageSources:_0x9a7e70}=B(_0xa8f39c,_0x24f805);_0x12f1a8['model']['change'](_0x203b01=>{if('$graveyard'!==_0x85a405['root']['rootName'])_0x203b01['setSelection'](_0x85a405,'on'),_0x12f1a8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x85a405['getAttributes']()),'uploadcareImageId':_0x1f349e,'src':_0x36977c,'sources':_0x9a7e70,'width':_0x24f805,'height':_0x11af60},_0x85a405);else{_0x12f1a8['execute']('insertImage',{'imageType':_0x85a405['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x85a405['getAttributes']()),'uploadcareImageId':_0x1f349e,'src':_0x36977c,'sources':_0x9a7e70,'width':_0x24f805,'height':_0x11af60}});const _0xa0ada0=_0x85a405['getChildren']();_0x85a405=_0x12f1a8['model']['document']['selection']['getSelectedElement']();for(const _0x490f5c of _0xa0ada0)_0x203b01['append'](_0x203b01['cloneElement'](_0x490f5c),_0x85a405);}_0x203b01['setSelection'](_0x85a405,'on');});}async _getImageAsFile(_0x250033){const _0x55f040=_0x1ef7fb['window'],_0x89d392=_0x1ef7fb['document']['location']['href'],_0x2bdd4a=new _0x55f040['URL'](_0x250033['getAttribute']('src'),_0x89d392);if('data:'===_0x2bdd4a['protocol']){const _0x9e8bef=_0x2bdd4a['href']['split'](','),_0x24deab=_0x9e8bef[0x0]['match'](/:(.*?);/)[0x1],_0xfb3100=_0x24deab['split']('/')[0x1],_0x10527e=_0x55f040['atob'](_0x9e8bef[_0x9e8bef['length']-0x1]);let _0x4582bb=_0x10527e['length'];const _0x3587eb=new _0x55f040['Uint8Array'](_0x4582bb);for(;_0x4582bb--;)_0x3587eb[_0x4582bb]=_0x10527e['charCodeAt'](_0x4582bb);return new _0x55f040['File']([_0x3587eb],'image.'+_0xfb3100,{'type':_0x24deab});}const _0x1266b9=_0x2bdd4a['href']['split']('/'),_0x222f3c=_0x1266b9[_0x1266b9['length']-0x1],_0x2c0c04=_0x222f3c['split']('.')[0x1];return _0x55f040['fetch'](_0x2bdd4a['href'])['then'](_0x244846=>_0x244846['clone']()['blob']())['then'](_0x2c8467=>new _0x55f040['File']([_0x2c8467],_0x222f3c,{'type':'image/'+_0x2c0c04}));}},at=class extends _0x1626b7{imageEditController;static get requires(){return[_0x4b745b];}_isEditable;constructor(_0x3fd4f6){super(_0x3fd4f6),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x47c3ed){const _0x5b345c=M(_0x47c3ed);return _0x32c555=>!(!_0x32c555||!_0x32c555['is']('element','imageBlock')&&!_0x32c555['is']('element','imageInline'))&&(!!_0x32c555['hasAttribute']('uploadcareImageId')||!!_0x32c555['hasAttribute']('src')&&_0x5b345c(_0x32c555['getAttribute']('src')));}(_0x3fd4f6['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x40040=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x40040);}execute(){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1b447a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1b447a&&(_0x1b447a['is']('element','imageBlock')||_0x1b447a['is']('element','imageInline'))&&(this['imageEditController']=new rt(this['editor'],this['editor']['plugins']['get'](_0x4b745b),_0x1b447a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x1626b7{['refresh'](){const _0x4b4bf0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4b4bf0&&(_0x4b4bf0['is']('element','imageBlock')||_0x4b4bf0['is']('element','imageInline')));}execute(_0x16336b){const _0x4ac12f=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x31b98c=>{_0x31b98c['setAttributes'](_0x16336b,_0x4ac12f),_0x31b98c['removeAttribute']('srcset',_0x4ac12f),_0x31b98c['removeAttribute']('sizes',_0x4ac12f);});}},ct=class extends _0x552ce8{static get['pluginName'](){return'UploadcareImageEditEditing';}static get requires(){return[Z,_0x3d326d,_0x21cb90,_0x3f3ec8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x1d5759}=this;_0x1d5759['commands']['add']('uploadcareImageEdit',new at(_0x1d5759)),_0x1d5759['commands']['add']('uploadcareImageReplace',new ot(_0x1d5759));}},lt=class extends _0x552ce8{['_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 _0xd3fddb=this['editor'];_0xd3fddb['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3c5576=>{const _0x1be529=_0xd3fddb['commands']['get']('uploadcareImageEdit'),_0x381a77=new _0x573cda(_0x3c5576),t=_0x3c5576['t'];return _0x381a77['set']({'icon':_0x7cde51,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x381a77['bind']('isEnabled')['to'](_0x1be529),_0x381a77['bind']('isOn')['to'](_0x1be529,'isActive'),this['listenTo'](_0x381a77,'execute',()=>{_0xd3fddb['execute']('uploadcareImageEdit'),_0xd3fddb['editing']['view']['focus']();}),_0x381a77;}),this['_initConfig']();}_initConfig(){const _0x8a67d7=_0x215b7a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x8a67d7),this['listenTo'](this['editor'],'destroy',()=>{_0x8a67d7['remove']();});}},ut=class extends _0x552ce8{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 _0x222962,Plugin as _0xe336f7}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x352078,IconError as _0x368c3c,IconFacebook as _0x366600,IconGoogleDrive as _0x1a1f7b,IconGooglePhotos as _0x4eb083,IconOneDrive as _0x23dccd,IconUploadcareImageEdit as _0x5b6194,IconUploadcareImageUpload as _0x450662,IconUploadcareLink as _0x1f2b76}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x47faf1,Dialog as _0xa8dce,DialogViewPosition as _0x36db8e,FocusCycler as _0x5b4d84,IconView as _0x521563,MenuBarMenuListItemButtonView as _0x461679,Notification as _0xf7ffb4,SpinnerView as _0x8066b3,View as _0x20d3b4}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x517ebc,FocusTracker as _0x4a6c88,ObservableMixin as _0x3fe2e9,createElement as _0x2d4b0a,getAncestors as _0x3e6a0b,global as _0x5031e2,uid as _0x339fac}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x4a8656,ImageUploadEditing as _0x480d2f,ImageUploadProgress as _0x4f67cf,ImageUtils as _0x6b0771,PictureEditing as _0x208266}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x188196}from'@ckeditor/ckeditor5-upload';import{info as _0x49c86f,uploadFile as _0x3ea936}from'@uploadcare/upload-client';import*as _0x239496 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x4cdefe,_0x396f80,_0x1525b5){const t=_0x4cdefe['t'],_0x2e4022=_0x4cdefe['t'];switch(_0x396f80){case'local':return{'text':_0x2e4022('Insert'===_0x1525b5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2e4022('From\x20computer')};case'url':return{'text':'Insert'===_0x1525b5?_0x2e4022('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2e4022('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x1525b5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x1525b5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x1525b5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x1525b5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x1525b5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x396f80;}}var V=class extends _0xe336f7{['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 _0x586b92=[this['editor']];for(const _0x537145 of _0x586b92){let _0xbc1c4f;for(const _0x3bcb3f in _0x537145){const _0xf2879b=_0x3bcb3f,_0x379c8c=_0x537145[_0xf2879b];if('uploadcareLicenseKeyValid'==_0x379c8c||'uploadcareLicenseKeyInvalid'==_0x379c8c||'uploadcareLicenseKeyExpired'==_0x379c8c||'uploadcareLicenseKeyDomainLimit'==_0x379c8c||'uploadcareLicenseKeyNotAllowed'==_0x379c8c||'uploadcareLicenseKeyEvaluationLimit'==_0x379c8c||'uploadcareLicenseKeyUsageLimit'==_0x379c8c){delete _0x537145[_0xf2879b],_0xbc1c4f=_0x379c8c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xbc1c4f&&_0x537145['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xbc1c4f&&_0x537145['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xbc1c4f&&_0x537145['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xbc1c4f&&_0x537145['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xbc1c4f&&_0x537145['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0xbc1c4f&&_0x537145['_showLicenseError']('usageLimit');}},0x3e8);}afterInit(){const {editor:_0x25f8a9}=this,_0x3a590d=_0x25f8a9['commands']['get']('uploadcare');if(!_0x3a590d)return;const _0x50577a=this['_normalizeConfigSourceList'](_0x25f8a9['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x39edf2,_0x1f884e)=>{const _0xadc38e=this['_getIntegrationKey'](_0x1f884e['type']);return _0x39edf2[_0xadc38e]||(_0x39edf2[_0xadc38e]=[]),_0x39edf2[_0xadc38e]['push'](_0x1f884e),_0x39edf2;},{});_0x25f8a9['plugins']['has']('ImageInsertUI')&&_0x25f8a9['commands']['get']('uploadcare')&&Object['entries'](_0x50577a)['forEach'](([_0x1c4bc0,_0xb003d3])=>{_0x25f8a9['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1c4bc0,'observable':()=>_0x3a590d,'buttonViewCreator':()=>this['_createToolbarButton'](_0xb003d3),'formViewCreator':()=>this['_createDropdownButtons'](_0xb003d3),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xb003d3),'override':'assetManager'!==_0x1c4bc0});});}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_normalizeConfigSourceList(_0x5c48bf){const {locale:_0x585e57}=this['editor'];return _0x5c48bf['map'](_0x5757d9=>{const _0x5dcf64=T(_0x585e57,_0x5757d9,'Insert');switch(_0x5757d9){case'local':return{'icon':_0x450662,'type':'local',..._0x5dcf64};case'url':return{'icon':_0x1f2b76,'type':'url',..._0x5dcf64};case'dropbox':return{'icon':_0x352078,'type':'dropbox',..._0x5dcf64};case'facebook':return{'icon':_0x366600,'type':'facebook',..._0x5dcf64};case'gdrive':return{'icon':_0x1a1f7b,'type':'gdrive',..._0x5dcf64};case'gphotos':return{'icon':_0x4eb083,'type':'gphotos',..._0x5dcf64};case'onedrive':return{'icon':_0x23dccd,'type':'onedrive',..._0x5dcf64};}});}_getIntegrationKey(_0xbc38e1){switch(_0xbc38e1){case'local':return'upload';case'url':return'url';default:return'assetManager';}}_createButton(_0x3d73ec,_0x1774c7){const _0x191c16=this['editor'],_0x1866aa=new _0x3d73ec(_0x191c16['locale']),_0x3119a1=_0x191c16['commands']['get']('uploadcare');return _0x1866aa['bind']('isEnabled')['to'](_0x3119a1),_0x1866aa['on']('execute',()=>{_0x3119a1['execute'](_0x1774c7);}),_0x1866aa;}_createToolbarButton(_0x3704d6){const {locale:_0x464682}=this['editor'],_0x4114f6=this['editor']['plugins']['get']('ImageInsertUI'),_0x69e9a6=_0x3704d6[0x0],_0x221a4e=this['_createButton'](_0x47faf1,_0x69e9a6['type']);return _0x221a4e['icon']=_0x69e9a6['icon'],_0x221a4e['bind']('label')['to'](_0x4114f6,'isImageSelected',_0xca42aa=>T(_0x464682,_0x69e9a6['type'],_0xca42aa?'Replace':'Insert')['text']),_0x221a4e['tooltip']=!0x0,_0x221a4e;}_createDropdownButtons(_0xe8391c){const {locale:_0x27e4f5}=this['editor'],_0x36e6a5=this['editor']['plugins']['get']('ImageInsertUI');return _0xe8391c['map'](_0x26f8a1=>{const _0x16c9d8=this['_createButton'](_0x47faf1,_0x26f8a1['type']);return _0x16c9d8['withText']=!0x0,_0x16c9d8['icon']=_0x26f8a1['icon'],_0x16c9d8['bind']('label')['to'](_0x36e6a5,'isImageSelected',_0x4b77e6=>T(_0x27e4f5,_0x26f8a1['type'],_0x4b77e6?'Replace':'Insert')['text']),_0x16c9d8;});}_createMenuBarButtons(_0x576e4a){return _0x576e4a['map'](_0x5e5380=>{const _0x39b6ac=this['_createButton'](_0x461679,_0x5e5380['type']);return _0x39b6ac['icon']=_0x5e5380['icon'],_0x39b6ac['label']=_0x5e5380['shortText'],_0x39b6ac;});}},F=class extends _0x20d3b4{['focusTracker'];['focusCycler'];constructor(_0x5b8d79){super(_0x5b8d79),this['focusTracker']=new _0x4a6c88(),this['focusCycler']=new _0x5b4d84({'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(_0x59e55c,_0x3a5ea6){super(_0x59e55c),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-'+_0x3a5ea6}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x13f495,_0x27783b){const _0x3fabfe=_0x13f495['replace'](/\/$/,'');return{'imageFallbackUrl':_0x13f495,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3552d3=>_0x3552d3<_0x27783b)['map'](_0x530d6f=>_0x3fabfe+'/-/resize/'+_0x530d6f+'x/\x20'+_0x530d6f+'w'),_0x13f495+'\x20'+_0x27783b+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x27783b+'px)\x20100vw,\x20'+_0x27783b+'px','type':'image/webp'}]};}function j(_0x9c34bf,_0x41a8a8,_0x11bafb){const _0x1f9fbe=_0x9c34bf['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1f9fbe?parseInt(_0x1f9fbe[0x1],0xa):_0x41a8a8,'height':_0x1f9fbe?parseInt(_0x1f9fbe[0x2],0xa):_0x11bafb};}function q(_0x1e8226,_0x3763f2){const _0x3b07bf=new(_0x517ebc())(),_0x131ccc=_0x1e8226['plugins']['get']('ImageUtils'),_0x4a4dec=_0x1e8226['editing']['mapper']['toViewElement'](_0x3763f2),_0x13eab9=_0x131ccc['findViewImgElement'](_0x4a4dec),_0x4545c4=_0x1e8226['editing']['view']['domConverter']['viewToDom'](_0x13eab9),_0x4c8983=_0x3763f2['getAttribute']('width'),_0x5210dc=_0x3763f2['getAttribute']('height'),_0x51712b='image-processing';_0x1e8226['editing']['view']['change'](_0x113627=>{_0x113627['addClass'](_0x51712b,_0x4a4dec),_0x113627['setStyle']('aspect-ratio',_0x4c8983+'/'+_0x5210dc,_0x13eab9);}),_0x3b07bf['listenTo'](_0x4545c4,'load',()=>{_0x3b07bf['stopListening'](_0x4545c4,'load'),_0x1e8226['editing']['view']['change'](_0x5c5a02=>{_0x5c5a02['removeClass'](_0x51712b,_0x4a4dec),_0x5c5a02['removeStyle']('aspect-ratio',_0x13eab9);});});}function M(_0x5f2b67){if(Array['isArray'](_0x5f2b67)){const _0x3d4e64=_0x5f2b67['map'](M);return _0x564c48=>_0x3d4e64['some'](_0x598a06=>_0x598a06(_0x564c48));}if('origin'==_0x5f2b67){const _0xedb4c0=_0x5031e2['window']['location']['origin'];return _0x6a2ae1=>new URL(_0x6a2ae1,_0x5031e2['document']['baseURI'])['origin']==_0xedb4c0;}return'function'==typeof _0x5f2b67?_0x5f2b67:_0x5f2b67 instanceof RegExp?_0x13c073=>!(!_0x13c073['match'](_0x5f2b67)&&!_0x13c073['replace'](/^https?:\/\//,'')['match'](_0x5f2b67)):()=>!0x1;}function H(_0x2f3d78,_0x5a373c){return _0x3e6a0b(_0x2f3d78['target'])['includes'](_0x5a373c);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3fe2e9();var G=class extends W{_editor;['_dialog'];_editing;['_api'];_type=null;['_formView']=null;constructor(_0x4fb08e,_0x566b17,_0x2f793b){super(),this['_editor']=_0x4fb08e,this['_editing']=_0x566b17,this['_dialog']=_0x4fb08e['plugins']['get'](_0xa8dce),this['_api']=_0x566b17['ctxElement']['getAPI'](),this['_type']=_0x2f793b,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:_0x3fca54,model:_0x3b3eda}=this['_editor'],_0x4d5346=_0x3b3eda['document']['selection']['getSelectedElement'](),_0x41427a=_0x4d5346&&(_0x4d5346['is']('element','imageBlock')||_0x4d5346['is']('element','imageInline'));this['_formView']=new $(_0x3fca54,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x450662,'title':T(_0x3fca54,this['_type'],_0x41427a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x36db8e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x176406=>!H(_0x176406,this['_formView']['element'])}});}_initListeners(){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x230cbc}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x463890=>{const _0x103de3=_0x230cbc['length'];for(const _0x487554 of _0x230cbc){const _0x32d1a5=_0x487554===_0x230cbc[_0x103de3-0x1],{cdnUrl:_0x46cd6b,fileInfo:_0x546a03}=_0x487554;if(!_0x46cd6b||!_0x546a03)continue;const {width:_0x1be3b6,height:_0x1d04e5}=_0x546a03['imageInfo'],_0x3680eb=j(_0x46cd6b,_0x1be3b6,_0x1d04e5),_0x53b3e8=B(_0x46cd6b,_0x3680eb['width']),_0x15bd1a={'id':_0x546a03['uuid'],'type':'image','attributes':{'imageDimension':_0x3680eb,..._0x53b3e8}};this['_insertAsset'](_0x15bd1a,_0x32d1a5,_0x463890);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x34ddf8=>{'idle'===_0x34ddf8['detail']['status']&&!_0x34ddf8['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}_insertAsset(_0x5a3c49,_0x2a609e,_0x5cc942){const _0xb02c57=this['_editor']['model']['document']['selection'],_0x5a230=_0xb02c57['getSelectedElement'](),_0x1ae233=!(!_0x5a230||!_0x5a230['is']('element','imageInline'));_0x5cc942['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5a3c49,_0x1ae233),_0x2a609e||_0x5cc942['setSelection'](_0xb02c57['getLastPosition']());}_insertImage(_0x2c870a,_0x10cc35){const _0x32eeec=this['_editor'],{imageDimension:_0xacc796,imageFallbackUrl:_0x5684be,imageSources:_0x459be1}=_0x2c870a['attributes'];_0x32eeec['execute']('insertImage',{'imageType':_0x10cc35?'imageInline':null,'source':{'uploadcareImageId':_0x2c870a['id'],'src':_0x5684be,'sources':_0x459be1,..._0xacc796}});}},z=class extends _0x222962{_editing;_controller=null;static get requires(){return[_0xa8dce,Z];}constructor(_0x3a512a){super(_0x3a512a),this['_editing']=_0x3a512a['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}execute(_0x567dd3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x567dd3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x3be1d7,..._0x436fcc}){return _0x3ea936(_0x3be1d7,_0x436fcc);}static getInfo(_0x3221b5,_0x4916f6){return _0x49c86f(_0x3221b5,_0x4916f6);}},J=class extends _0xe336f7{static get requires(){return[_0x480d2f,_0x4f67cf,_0x188196,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async afterInit(){const _0x431843=this['editor'];if(!_0x431843['config']['get']('uploadcare'))return;_0x431843['plugins']['get'](_0x188196)['createUploadAdapter']=_0x46324d=>new X(_0x46324d,_0x431843),_0x431843['plugins']['get'](_0x480d2f)['on']('uploadComplete',(_0x42571c,{imageElement:_0x378120,data:_0x4f83c9})=>{_0x431843['model']['change'](_0x334006=>{_0x334006['setAttribute']('uploadcareImageId',_0x4f83c9['uploadcareImageId'],_0x378120);});});}},X=class{['loader'];editor;controller;constructor(_0x1cff6c,_0x4ec281){this['loader']=_0x1cff6c,this['editor']=_0x4ec281,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2d8fdf=await this['loader']['file'];return Q['upload']({'file':_0x2d8fdf,'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':_0xef598f=>{_0xef598f&&_0xef598f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xef598f['value']);}})['then'](async _0x282bc3=>{const {imageFallbackUrl:_0x1bdce0,imageSources:_0x437a1b}=B(_0x282bc3['cdnUrl'],_0x282bc3['imageInfo']['width']);return{'uploadcareImageId':_0x282bc3['uuid'],'default':_0x1bdce0,'sources':_0x437a1b};})['catch'](()=>{const _0x2d73b6=t('Cannot\x20upload\x20file:')+('\x20'+_0x2d8fdf['name']+'.');return Promise['reject'](_0x2d73b6);});}abort(){this['controller']['abort']();}},Z=class extends _0xe336f7{_configElement=null;_ctxElement=null;static get['pluginName'](){return'UploadcareEditing';}static get requires(){return[_0x208266,J,_0xa8dce];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}ucContextId;get configElement(){return this['_configElement'];}get ctxElement(){return this['_ctxElement'];}constructor(_0x20d622){super(_0x20d622),this['ucContextId']=_0x339fac();}init(){const _0x130549=this['editor'];_0x130549['commands']['add']('uploadcare',new z(_0x130549));}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 _0x286f5c=_0x5031e2['document']['querySelector']('input[uploadcare-file-input]');_0x286f5c&&_0x286f5c['remove']();}),async function(_0x53e6c2){const _0x4443b9='4wieLj6qmWZnpxGN9QYyFhU15kOfCBAHt2slISMXP3vErub8za07VTRoKcdDgJ',_0xfc2591=0x79650,_0x4b6aa4={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x48f75c(_0x5d8f5f){const _0x119f9f=new window['Promise'](_0x59aa12=>{_0x5d8f5f['once']('ready',_0x59aa12);}),_0x572a47=window['Date']['now'](),_0x267f3e=_0x5d8f5f['config']['get']('licenseKey');async function _0x5c23d1(){let _0x1ebc53,_0x2c5db9=null,_0x4a302e=null;try{return'GPL'==_0x267f3e?'NotAllowed':(_0x1ebc53=_0x57cd07(),_0x1ebc53?(_0x1ebc53['usageEndpoint']&&(_0x4a302e=_0x32a353(_0x1ebc53['usageEndpoint'],_0x1ebc53['jti'])),await _0x446188()?_0x533859()?_0x4c17e2()?'Expired':_0x295d99()?('evaluation'==_0x1ebc53['licenseType']&&(_0x2c5db9=_0x532f12('EvaluationLimit')),await _0x180e38()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4c17e2(){const _0x3902cd=['evaluation','trial']['includes'](_0x1ebc53['licenseType'])?_0x572a47/0x3e8:0xe10*_0xfc2591;return _0x1ebc53['exp']<_0x3902cd;}function _0x533859(){const _0x2cca6b=_0x1ebc53['features'];return!!_0x2cca6b&&(!!_0x2cca6b['includes']('*')||!!_0x2cca6b['includes']('UPLC'));}function _0x295d99(){const _0xc4d019=_0x1ebc53['licensedHosts'];if(!_0xc4d019||0x0==_0xc4d019['length'])return!0x0;const {hostname:_0x53f1ad}=new URL(window['location']['href']);if(_0xc4d019['includes'](_0x53f1ad))return!0x0;const _0x465dbb=_0x53f1ad['split']('.');return _0xc4d019['filter'](_0x418135=>_0x418135['includes']('*'))['map'](_0x4f0d9e=>_0x4f0d9e['split']('.'))['filter'](_0x200f67=>_0x200f67['length']<=_0x465dbb['length'])['map'](_0x322500=>Array(_0x465dbb['length']-_0x322500['length'])['fill']('*'===_0x322500[0x0]?'*':'')['concat'](_0x322500))['some'](_0xd3ddd4=>_0x465dbb['every']((_0x4c7481,_0x2777be)=>_0xd3ddd4[_0x2777be]===_0x4c7481||'*'===_0xd3ddd4[_0x2777be]));}function _0x180e38(){return _0x2c5db9&&_0x4a302e?new window['Promise']((_0xeb5c73,_0x5971af)=>{_0x2c5db9['then'](_0xeb5c73,_0x5971af),_0x4a302e['then'](_0x42ce4a=>{'Valid'!=_0x42ce4a&&_0xeb5c73(_0x42ce4a);},_0x5971af);}):_0x2c5db9||_0x4a302e||'Valid';}}function _0x32a353(_0x26b5f0,_0x516af0){return new window['Promise'](_0xfcbb1f=>{if(_0x41c5a3())return _0xfcbb1f('Valid');_0xa7fb2d(),_0x5d8f5f['decorate']('_sendUsageRequest');let _0x48083f=!0x1;const _0x15bd4b=_0x339fac();function _0x131f90(_0x1a7c88){return!!_0x1a7c88&&('object'==typeof _0x1a7c88||'function'==typeof _0x1a7c88)&&'function'==typeof _0x1a7c88['then']&&'function'==typeof _0x1a7c88['catch'];}function _0x459960(_0x5b8cdf){_0x28d9b7(_0x5b8cdf)['then'](_0x3cd5af=>_0x3cd5af&&'ok'==_0x3cd5af['status']?_0x1d8b68(_0x25941c(_0x15bd4b+_0x516af0))!=_0x3cd5af['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3b8d49=>(_0x1033c1(),_0x3b8d49),()=>{const _0x4b5fea=_0x3d1106();return null==_0x4b5fea?(_0x1033c1(),'Valid'):_0x572a47-_0x4b5fea>0x240c8400?'UsageLimit':'Valid';})['then'](_0xfcbb1f)['catch'](()=>{_0xfcbb1f('UsageLimit');});const _0x349ba5=0x36ee80;function _0x1033c1(){const _0x5bc2c1='llct-'+_0x1d8b68(_0x25941c(_0x26b5f0)),_0x1aa072=_0x45a7ed(_0x1d8b68(window['Math']['ceil'](_0x572a47/_0x349ba5)));window['localStorage']['setItem'](_0x5bc2c1,_0x1aa072);}function _0x3d1106(){const _0x19a613='llct-'+_0x1d8b68(_0x25941c(_0x26b5f0)),_0xd712a3=window['localStorage']['getItem'](_0x19a613);return _0xd712a3?window['parseInt'](_0x45a7ed(_0xd712a3),0x10)*_0x349ba5:null;}function _0x28d9b7(_0x1a6b7e){return new window['Promise']((_0x501c6d,_0x4eacd1)=>{_0x1a6b7e['then'](_0x501c6d,_0x4eacd1),window['setTimeout'](_0x4eacd1,0x1d4c0);});}}_0x5d8f5f['on']('_sendUsageRequest',(_0x27cb1a,_0x423327)=>{if(_0x423327[0x0]!=_0x26b5f0)return _0xfcbb1f('UsageLimit');_0x423327[0x1]={..._0x423327[0x1],'requestId':_0x15bd4b};},{'priority':'high'}),_0x5d8f5f['on']('_sendUsageRequest',_0x38b42b=>{_0x131f90(_0x38b42b['return'])&&(_0x48083f=!0x0,_0x459960(_0x38b42b['return']));},{'priority':'low'}),_0x119f9f['then'](()=>{_0x48083f||_0xfcbb1f('UsageLimit');});});function _0x41c5a3(){return'auto'==_0x5d8f5f['editing']['view']['_overlayModeHint'];}function _0xa7fb2d(){_0x5d8f5f['editing']['view']['_overlayModeHint']='auto';}}function _0x532f12(_0x4fe9f6){const _0x3f243e=[new window['Promise'](_0x4cad08=>setTimeout(_0x4cad08,0x93ecc)),_0x119f9f['then'](()=>new window['Promise'](_0x4e1291=>{let _0x2b264d=0x0;_0x5d8f5f['model']['on']('applyOperation',(_0x2f5190,_0x4ad9a9)=>{_0x4ad9a9[0x0]['isDocumentOperation']&&_0x2b264d++,0x5e8==_0x2b264d&&(_0x4e1291(),_0x2f5190['off']());});}))];return window['Promise']['race'](_0x3f243e)['then'](()=>_0x4fe9f6);}async function _0x10202e(){await _0x119f9f,_0x5d8f5f['model']['change']=_0x50fc8e,_0x5d8f5f['model']['enqueueChange']=_0x50fc8e,_0x5d8f5f['enableReadOnlyMode']('model');}function _0x9dbc2c(_0x570599){const _0x56fb48=_0x21a1d4();_0x5d8f5f[_0x56fb48]='uploadcareLicenseKey'+_0x570599,'Valid'!=_0x570599&&_0x10202e();}function _0x21a1d4(){const _0x3337e5=window['String'](window['performance']['now']())['replace']('.','');let _0x4aae8e='w';for(let _0x12cec1=0x0;_0x12cec1<_0x3337e5['length'];_0x12cec1+=0x2){let _0x4219a8=window['parseInt'](_0x3337e5['substring'](_0x12cec1,_0x12cec1+0x2));_0x4219a8>=0x3e&&(_0x4219a8-=0x3e),_0x4aae8e+=_0x4443b9[_0x4219a8];}return _0x4aae8e;}function _0x57cd07(){const _0x593434=_0x267f3e['split']('.');if(0x3!=_0x593434['length'])return null;return _0x1dfb31(_0x593434[0x1]);function _0x1dfb31(_0x562354){const _0x598da2=_0x4134bf(_0x562354);return _0x598da2&&_0x39c769()?_0x598da2:null;function _0x39c769(){const _0x2601bd=_0x598da2['jti'],_0x16194f=window['parseInt'](_0x2601bd['substring'](_0x2601bd['length']-0x8),0x10),_0x30654a={..._0x598da2,'jti':_0x2601bd['substring'](0x0,_0x2601bd['length']-0x8)};return delete _0x30654a['vc'],_0x25941c(_0x30654a)==_0x16194f;}}}async function _0x446188(){let _0x73e95d=!0x0;try{const [_0x41e0df,_0x588a23,_0x27e43c]=_0x267f3e['split']('.');return _0x4432e5(_0x41e0df),await _0x29b708(_0x41e0df,_0x588a23,_0x27e43c),_0x73e95d;}catch{return!0x1;}function _0x4432e5(_0x3601cc){const _0x449017=_0x4134bf(_0x3601cc);_0x449017&&'ES256'==_0x449017['alg']||(_0x73e95d=!0x1);}async function _0x29b708(_0x276221,_0x1d883f,_0x43db17){const _0x211b7c=window['Uint8Array']['from'](_0x59d844(_0x43db17),_0x2d7774=>_0x2d7774['charCodeAt'](0x0)),_0x1446f4=new window['TextEncoder']()['encode'](_0x276221+'.'+_0x1d883f),_0x20c857=window['crypto']['subtle'];if(!_0x20c857)return;const _0x1a8546=await _0x20c857['importKey']('jwk',_0x4b6aa4,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x20c857['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x1a8546,_0x211b7c,_0x1446f4)||(_0x73e95d=!0x1);}}function _0x4134bf(_0x3a4560){return _0x3a4560['startsWith']('ey')?JSON['parse'](_0x59d844(_0x3a4560)):null;}function _0x59d844(_0x21db0f){return window['atob'](_0x21db0f['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x25941c(_0x451961){let _0x30f1e1=0x1505;function _0x197d27(_0x2660ec){for(let _0x1912a1=0x0;_0x1912a1<_0x2660ec['length'];_0x1912a1++){const _0x2c0237=_0x2660ec['charCodeAt'](_0x1912a1);_0x30f1e1=(_0x30f1e1<<0x5)+_0x30f1e1+_0x2c0237,_0x30f1e1&=_0x30f1e1;}}function _0xbe8fe5(_0x32ea11){Array['isArray'](_0x32ea11)?_0x32ea11['forEach'](_0xbe8fe5):_0x32ea11&&'object'==typeof _0x32ea11?Object['entries'](_0x32ea11)['sort']()['forEach'](([_0x1f8baf,_0x13cefc])=>{_0x197d27(_0x1f8baf),_0xbe8fe5(_0x13cefc);}):_0x197d27(window['String'](_0x32ea11));}return _0xbe8fe5(_0x451961),_0x30f1e1>>>0x0;}function _0x1d8b68(_0x11de09){return _0x11de09['toString'](0x10)['padStart'](0x8,'0');}function _0x45a7ed(_0x1498b8){return _0x1498b8['split']('')['reverse']()['join']('');}function _0x50fc8e(){}_0x9dbc2c(await _0x5c23d1());}_0x48f75c(_0x53e6c2['editor']);}(this);}_initSchema(){const _0x21b351=this['editor']['model']['schema'];_0x21b351['isRegistered']('imageBlock')&&_0x21b351['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x21b351['isRegistered']('imageInline')&&_0x21b351['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}_initConversion(){const _0x9bad71=this['editor'];_0x9bad71['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x9bad71['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x445b23=>_0x445b23['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5e1bc8=_0x9bad71['commands']['get']('replaceImageSource');_0x5e1bc8&&this['listenTo'](_0x5e1bc8,'cleanupImage',(_0x1fda86,[_0x24a5db,_0x349f54])=>{_0x24a5db['removeAttribute']('uploadcareImageId',_0x349f54);});}_initConfig(){const _0x131d4a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1415f6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2d4b0a(_0x5031e2['document'],'uc-config',{..._0x131d4a,'pubkey':_0x1415f6,'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']=_0x3aa6cd=>{if('closeMax'==_0x3aa6cd)return'#uc-icon-arrow-down';},_0x5031e2['document']['body']['appendChild'](this['_configElement']);}_initCtx(){this['_ctxElement']=_0x2d4b0a(_0x5031e2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5031e2['document']['body']['appendChild'](this['_ctxElement']);}_initImageProcessingIndicator(){const _0x26033b=this['editor']['commands']['get']('insertImage');_0x26033b&&this['listenTo'](_0x26033b,'execute',()=>{const _0x3369f9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3369f9&&_0x3369f9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x3369f9);});});const _0x3177db=this['editor']['commands']['get']('uploadcareImageReplace');_0x3177db&&this['listenTo'](_0x3177db,'execute',()=>{const _0xd14636=this['editor']['model']['document']['selection']['getSelectedElement']();_0xd14636&&_0xd14636['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0xd14636);});});}},Y=class extends _0xe336f7{static get requires(){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15b035){super(_0x15b035),_0x15b035['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x239496['defineComponents'](_0x239496),this['_defineLocale']();}['_defineLocale'](){const _0x8f7be7=this['editor']['config']['get']('uploadcare.locale'),_0x533854=this['editor']['locale']['contentLanguage'];_0x8f7be7&&_0x239496['defineLocale'](_0x533854,_0x8f7be7);}},tt=class extends _0x20d3b4{constructor(_0x4aba04){super(_0x4aba04);const t=_0x4aba04['t'],_0x4ca7cf=this['bindTemplate'],_0x479bc4=new _0x8066b3();_0x479bc4['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':[_0x479bc4,{'text':_0x4ca7cf['to']('imageUploadProgress',_0x3e7411=>t('Loading\x20image...')+'\x20('+(_0x3e7411||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 _0x20d3b4{constructor(_0x2e5711){super(_0x2e5711);const t=_0x2e5711['t'];this['set']('errorType',null);const _0x1abb65=new _0x47faf1(_0x2e5711);_0x1abb65['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1abb65['withText']=!0x0,_0x1abb65['class']='ck-button-action',_0x1abb65['on']('execute',()=>{this['fire']('retry');}),_0x1abb65['bind']('isVisible')['to'](this,'errorType',_0xe586f7=>'NotFound'!==_0xe586f7);const _0x22a46c=new _0x521563();_0x22a46c['content']=_0x368c3c,_0x22a46c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5d21e1=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':[_0x22a46c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5d21e1['to']('errorType',_0x75914=>t('NotFound'!==_0x75914?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1abb65]},{'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 _0x20d3b4{constructor(_0x3aebe6,_0x5a01fc){super(_0x3aebe6);const _0x3bb619=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5a01fc,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3bb619['to']('imageSrc')}});}},st=class extends F{_items;['_loadingView'];['_errorView'];_editingView;['_focusableView'];constructor(_0x3aee7a,_0x817968,_0x1f029c){super(_0x3aee7a),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x3aee7a),this['_errorView']=new et(_0x3aee7a),this['_editingView']=new it(_0x3aee7a,_0x1f029c),this['_focusableView']=new _0x20d3b4(_0x3aee7a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x817968),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'],_0x539502=>{this['_addUploadcareImageEditorListeners'](_0x539502);});}),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(_0x14166a,_0x5e477a){const _0x58db70='uc-cloud-image-editor',_0x3bef0b=_0x14166a['querySelector'](_0x58db70);if(_0x3bef0b)return _0x5e477a(_0x3bef0b);const _0xe0dd60=new MutationObserver(_0x4d0a09=>{const _0x35d49f=_0x4d0a09['filter'](_0x517d2a=>_0x517d2a['target']===_0x14166a&&_0x517d2a['addedNodes']['length']>0x0&&_0x517d2a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x58db70);_0x35d49f['length']&&(_0xe0dd60['disconnect'](),_0x5e477a(_0x35d49f[0x0]['addedNodes'][0x0]));});_0xe0dd60['observe'](_0x14166a,{'childList':!0x0,'subtree':!0x0});}_addUploadcareImageEditorListeners(_0x2ff6a1){_0x2ff6a1['addEventListener']('apply',_0x568d86=>{this['fire']('apply',{'imageSrc':_0x568d86['detail']['cdnUrl']});}),_0x2ff6a1['addEventListener']('cancel',()=>{this['fire']('cancel');});}_addErrorViewListeners(){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const nt=/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3fe2e9();var rt=class extends nt{_editor;['_dialog'];_imageElement;['_imageCache'];_controller;_attributes;constructor(_0x293a19,_0x5b9def,_0x48de18){super(),this['_editor']=_0x293a19,this['_dialog']=_0x5b9def,this['_imageElement']=_0x48de18,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 _0x447486=this['_imageElement'],_0x3fe9fe=_0x447486['getAttribute']('uploadcareImageId'),_0xd050ed=_0x447486['getAttribute']('src');if(_0x3fe9fe)await this['_loadImageInfo'](_0x3fe9fe,_0xd050ed);else{if(this['_imageCache']['has'](_0xd050ed)){const _0x38fdb5=this['_imageCache']['get'](_0xd050ed);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x38fdb5['url'],this['imageDimension']=_0x38fdb5['dimension'],this['imageId']=_0x38fdb5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x268b4b}=this['_editor'],t=_0x268b4b['t'],_0x17a0df=new st(_0x268b4b,this['imageStatus'],this['_attributes']);_0x17a0df['bind']('status')['to'](this,'imageStatus'),_0x17a0df['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x17a0df['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x17a0df['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x17a0df,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5b6194,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x17a0df,'position':_0x36db8e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x17a0df['focus']();},'onHide':()=>{_0x17a0df['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x59433d=>!H(_0x59433d,_0x17a0df['element'])}});}['_loadImageInfo'](_0x5679d9,_0x4c1457){return Q['getInfo'](_0x5679d9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1e1936=>{const {width:_0x9aba22,height:_0x502ebe}=_0x1e1936['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c1457,this['imageDimension']={'width':_0x9aba22,'height':_0x502ebe},this['imageId']=_0x5679d9;})['catch'](_0x1ea58c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1ea58c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1aedca,_0x2ad289){return this['_getImageAsFile'](_0x1aedca)['then'](_0x5deff0=>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':_0x2ad289['signal'],'file':_0x5deff0,'onProgress':_0xf7c606=>{_0xf7c606&&_0xf7c606['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xf7c606['value']));}}))['then'](_0x59785f=>{const {width:_0x4a3e32,height:_0x5802e1}=_0x59785f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x59785f['cdnUrl'],this['imageDimension']={'width':_0x4a3e32,'height':_0x5802e1},this['imageId']=_0x59785f['uuid'],this['imageUploadProgress']=null;const _0x3a434d=_0x1aedca['getAttribute']('src');this['_imageCache']['set'](_0x3a434d,{'id':_0x59785f['uuid'],'url':_0x59785f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4f3a1a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4f3a1a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}_addEditViewListeners(_0xe1d2a6,_0x5edd03){_0xe1d2a6['on']('apply',(_0x3477ee,_0x5032c3)=>{this['_replaceImage'](_0x5edd03,_0x5032c3['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xe1d2a6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xe1d2a6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x43e474,_0x26ce6e,_0x4433a7){const _0x444dbe=this['_editor'],{width:_0x193413,height:_0x20e294}=j(_0x26ce6e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x26f233,imageSources:_0x49d0df}=B(_0x26ce6e,_0x193413);_0x444dbe['model']['change'](_0x356a60=>{if('$graveyard'!==_0x43e474['root']['rootName'])_0x356a60['setSelection'](_0x43e474,'on'),_0x444dbe['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x43e474['getAttributes']()),'uploadcareImageId':_0x4433a7,'src':_0x26f233,'sources':_0x49d0df,'width':_0x193413,'height':_0x20e294},_0x43e474);else{_0x444dbe['execute']('insertImage',{'imageType':_0x43e474['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x43e474['getAttributes']()),'uploadcareImageId':_0x4433a7,'src':_0x26f233,'sources':_0x49d0df,'width':_0x193413,'height':_0x20e294}});const _0x46e2c3=_0x43e474['getChildren']();_0x43e474=_0x444dbe['model']['document']['selection']['getSelectedElement']();for(const _0x382830 of _0x46e2c3)_0x356a60['append'](_0x356a60['cloneElement'](_0x382830),_0x43e474);}_0x356a60['setSelection'](_0x43e474,'on');});}async _getImageAsFile(_0x1d42cb){const _0x1e92a9=_0x5031e2['window'],_0x453d0c=_0x5031e2['document']['location']['href'],_0x5f3b9d=new _0x1e92a9['URL'](_0x1d42cb['getAttribute']('src'),_0x453d0c);if('data:'===_0x5f3b9d['protocol']){const _0x5ae163=_0x5f3b9d['href']['split'](','),_0x48d7f7=_0x5ae163[0x0]['match'](/:(.*?);/)[0x1],_0x178420=_0x48d7f7['split']('/')[0x1],_0x41b373=_0x1e92a9['atob'](_0x5ae163[_0x5ae163['length']-0x1]);let _0x1dcb7c=_0x41b373['length'];const _0x2cc8fb=new _0x1e92a9['Uint8Array'](_0x1dcb7c);for(;_0x1dcb7c--;)_0x2cc8fb[_0x1dcb7c]=_0x41b373['charCodeAt'](_0x1dcb7c);return new _0x1e92a9['File']([_0x2cc8fb],'image.'+_0x178420,{'type':_0x48d7f7});}const _0x4b1c90=_0x5f3b9d['href']['split']('/'),_0x55fb4f=_0x4b1c90[_0x4b1c90['length']-0x1],_0x2bc192=_0x55fb4f['split']('.')[0x1];return _0x1e92a9['fetch'](_0x5f3b9d['href'])['then'](_0x4b6b8d=>_0x4b6b8d['clone']()['blob']())['then'](_0x1cc4df=>new _0x1e92a9['File']([_0x1cc4df],_0x55fb4f,{'type':'image/'+_0x2bc192}));}},at=class extends _0x222962{imageEditController;static get requires(){return[_0xa8dce];}_isEditable;constructor(_0x48e6ef){super(_0x48e6ef),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3d23de){const _0x5254a7=M(_0x3d23de);return _0x4692e0=>!(!_0x4692e0||!_0x4692e0['is']('element','imageBlock')&&!_0x4692e0['is']('element','imageInline'))&&(!!_0x4692e0['hasAttribute']('uploadcareImageId')||!!_0x4692e0['hasAttribute']('src')&&_0x5254a7(_0x4692e0['getAttribute']('src')));}(_0x48e6ef['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x35ad7e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x35ad7e);}execute(){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4b66f0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4b66f0&&(_0x4b66f0['is']('element','imageBlock')||_0x4b66f0['is']('element','imageInline'))&&(this['imageEditController']=new rt(this['editor'],this['editor']['plugins']['get'](_0xa8dce),_0x4b66f0),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x222962{['refresh'](){const _0x54621e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x54621e&&(_0x54621e['is']('element','imageBlock')||_0x54621e['is']('element','imageInline')));}execute(_0x120a97){const _0x22e35d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2b93f4=>{_0x2b93f4['setAttributes'](_0x120a97,_0x22e35d),_0x2b93f4['removeAttribute']('srcset',_0x22e35d),_0x2b93f4['removeAttribute']('sizes',_0x22e35d);});}},ct=class extends _0xe336f7{static get['pluginName'](){return'UploadcareImageEditEditing';}static get requires(){return[Z,_0xf7ffb4,_0x6b0771,_0x4a8656];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x287f6b}=this;_0x287f6b['commands']['add']('uploadcareImageEdit',new at(_0x287f6b)),_0x287f6b['commands']['add']('uploadcareImageReplace',new ot(_0x287f6b));}},lt=class extends _0xe336f7{['_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 _0x1ea334=this['editor'];_0x1ea334['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5279c6=>{const _0x28f9ce=_0x1ea334['commands']['get']('uploadcareImageEdit'),_0x10c207=new _0x47faf1(_0x5279c6),t=_0x5279c6['t'];return _0x10c207['set']({'icon':_0x5b6194,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x10c207['bind']('isEnabled')['to'](_0x28f9ce),_0x10c207['bind']('isOn')['to'](_0x28f9ce,'isActive'),this['listenTo'](_0x10c207,'execute',()=>{_0x1ea334['execute']('uploadcareImageEdit'),_0x1ea334['editing']['view']['focus']();}),_0x10c207;}),this['_initConfig']();}_initConfig(){const _0x292002=_0x2d4b0a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x292002),this['listenTo'](this['editor'],'destroy',()=>{_0x292002['remove']();});}},ut=class extends _0xe336f7{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
|
+
(_0x2ac4cf=>{const {af:_0x1cbbf7}={'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.':''}}};_0x2ac4cf['af']||={'dictionary':{},'getPluralForm':null},_0x2ac4cf['af']['dictionary']=Object['assign'](_0x2ac4cf['af']['dictionary'],_0x1cbbf7['dictionary']),_0x1cbbf7['getPluralForm']&&(_0x2ac4cf['af']['getPluralForm']=_0x1cbbf7['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x29e466=>{const {ar:_0x187fe3}={'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مصدرها.'}}};_0x29e466['ar']||={'dictionary':{},'getPluralForm':null},_0x29e466['ar']['dictionary']=Object['assign'](_0x29e466['ar']['dictionary'],_0x187fe3['dictionary']),_0x187fe3['getPluralForm']&&(_0x29e466['ar']['getPluralForm']=_0x187fe3['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xd52853=>{const {ast:_0x518d9c}={'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.':''}}};_0xd52853['ast']||={'dictionary':{},'getPluralForm':null},_0xd52853['ast']['dictionary']=Object['assign'](_0xd52853['ast']['dictionary'],_0x518d9c['dictionary']),_0x518d9c['getPluralForm']&&(_0xd52853['ast']['getPluralForm']=_0x518d9c['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x215011=>{const {az:_0x4ea3a6}={'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.':''}}};_0x215011['az']||={'dictionary':{},'getPluralForm':null},_0x215011['az']['dictionary']=Object['assign'](_0x215011['az']['dictionary'],_0x4ea3a6['dictionary']),_0x4ea3a6['getPluralForm']&&(_0x215011['az']['getPluralForm']=_0x4ea3a6['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x377c80=>{const {be:_0x25302a}={'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.':''}}};_0x377c80['be']||={'dictionary':{},'getPluralForm':null},_0x377c80['be']['dictionary']=Object['assign'](_0x377c80['be']['dictionary'],_0x25302a['dictionary']),_0x25302a['getPluralForm']&&(_0x377c80['be']['getPluralForm']=_0x25302a['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2ee98a=>{const {bg:_0x1d2949}={'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премахнат.'}}};_0x2ee98a['bg']||={'dictionary':{},'getPluralForm':null},_0x2ee98a['bg']['dictionary']=Object['assign'](_0x2ee98a['bg']['dictionary'],_0x1d2949['dictionary']),_0x1d2949['getPluralForm']&&(_0x2ee98a['bg']['getPluralForm']=_0x1d2949['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x426973=>{const {bn:_0x186dd0}={'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হয়েছে।'}}};_0x426973['bn']||={'dictionary':{},'getPluralForm':null},_0x426973['bn']['dictionary']=Object['assign'](_0x426973['bn']['dictionary'],_0x186dd0['dictionary']),_0x186dd0['getPluralForm']&&(_0x426973['bn']['getPluralForm']=_0x186dd0['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5ad760=>{const {bs:_0x33751b}={'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.':''}}};_0x5ad760['bs']||={'dictionary':{},'getPluralForm':null},_0x5ad760['bs']['dictionary']=Object['assign'](_0x5ad760['bs']['dictionary'],_0x33751b['dictionary']),_0x33751b['getPluralForm']&&(_0x5ad760['bs']['getPluralForm']=_0x33751b['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x67bdea=>{const {ca:_0x32367d}={'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.'}}};_0x67bdea['ca']||={'dictionary':{},'getPluralForm':null},_0x67bdea['ca']['dictionary']=Object['assign'](_0x67bdea['ca']['dictionary'],_0x32367d['dictionary']),_0x32367d['getPluralForm']&&(_0x67bdea['ca']['getPluralForm']=_0x32367d['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5dfbad=>{const {cs:_0x4e600f}={'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.'}}};_0x5dfbad['cs']||={'dictionary':{},'getPluralForm':null},_0x5dfbad['cs']['dictionary']=Object['assign'](_0x5dfbad['cs']['dictionary'],_0x4e600f['dictionary']),_0x4e600f['getPluralForm']&&(_0x5dfbad['cs']['getPluralForm']=_0x4e600f['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x31dc86=>{const {da:_0x432db4}={'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.'}}};_0x31dc86['da']||={'dictionary':{},'getPluralForm':null},_0x31dc86['da']['dictionary']=Object['assign'](_0x31dc86['da']['dictionary'],_0x432db4['dictionary']),_0x432db4['getPluralForm']&&(_0x31dc86['da']['getPluralForm']=_0x432db4['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2189e7=>{const {'de-ch':_0x446e55}={'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.':''}}};_0x2189e7['de-ch']||={'dictionary':{},'getPluralForm':null},_0x2189e7['de-ch']['dictionary']=Object['assign'](_0x2189e7['de-ch']['dictionary'],_0x446e55['dictionary']),_0x446e55['getPluralForm']&&(_0x2189e7['de-ch']['getPluralForm']=_0x446e55['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1cb1ae=>{const {de:_0x53b6c0}={'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.'}}};_0x1cb1ae['de']||={'dictionary':{},'getPluralForm':null},_0x1cb1ae['de']['dictionary']=Object['assign'](_0x1cb1ae['de']['dictionary'],_0x53b6c0['dictionary']),_0x53b6c0['getPluralForm']&&(_0x1cb1ae['de']['getPluralForm']=_0x53b6c0['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x218f36=>{const {el:_0x47f6e9}={'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καταργηθεί.'}}};_0x218f36['el']||={'dictionary':{},'getPluralForm':null},_0x218f36['el']['dictionary']=Object['assign'](_0x218f36['el']['dictionary'],_0x47f6e9['dictionary']),_0x47f6e9['getPluralForm']&&(_0x218f36['el']['getPluralForm']=_0x47f6e9['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5a8417=>{const {'en-au':_0x2930d1}={'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.'}}};_0x5a8417['en-au']||={'dictionary':{},'getPluralForm':null},_0x5a8417['en-au']['dictionary']=Object['assign'](_0x5a8417['en-au']['dictionary'],_0x2930d1['dictionary']),_0x2930d1['getPluralForm']&&(_0x5a8417['en-au']['getPluralForm']=_0x2930d1['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4abdd8=>{const {'en-gb':_0x54424e}={'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.'}}};_0x4abdd8['en-gb']||={'dictionary':{},'getPluralForm':null},_0x4abdd8['en-gb']['dictionary']=Object['assign'](_0x4abdd8['en-gb']['dictionary'],_0x54424e['dictionary']),_0x54424e['getPluralForm']&&(_0x4abdd8['en-gb']['getPluralForm']=_0x54424e['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x58dd63=>{const {en:_0x11ecb4}={'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.'}}};_0x58dd63['en']||={'dictionary':{},'getPluralForm':null},_0x58dd63['en']['dictionary']=Object['assign'](_0x58dd63['en']['dictionary'],_0x11ecb4['dictionary']),_0x11ecb4['getPluralForm']&&(_0x58dd63['en']['getPluralForm']=_0x11ecb4['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|