@ckeditor/ckeditor5-uploadcare 48.5.0-alpha.0 → 48.5.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/translations/af.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 _0x3ef929,Plugin as _0x3810eb}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0xbe6a17,IconError as _0x246f78,IconFacebook as _0x395812,IconGoogleDrive as _0x50ffd8,IconGooglePhotos as _0xdcc286,IconOneDrive as _0x1e5025,IconUploadcareImageEdit as _0x10cb9a,IconUploadcareImageUpload as _0x478865,IconUploadcareLink as _0x483e6e}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x200c74,Dialog as _0x4c9dbd,DialogViewPosition as _0x24347c,FocusCycler as _0x563389,IconView as _0x38a3d5,MenuBarMenuListItemButtonView as _0xeef0d5,Notification as _0x558dc1,SpinnerView as _0x38b012,View as _0x2fc8ab}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x335efc,FocusTracker as _0x143468,ObservableMixin as _0x57301a,createElement as _0x12e6b1,getAncestors as _0x4c3e67,global as _0x1cdfcb,uid as _0x4ddb3d}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x13f27d,ImageUploadEditing as _0x4dd25c,ImageUploadProgress as _0x12b32b,ImageUtils as _0x3a809b,PictureEditing as _0x7bf73f}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x231df7}from'@ckeditor/ckeditor5-upload';import{info as _0x5a55ab,uploadFile as _0x22c037}from'@uploadcare/upload-client';import*as _0x2f0a48 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x36aabf,_0x43b06c,_0x58934a){const t=_0x36aabf['t'],_0x337d08=_0x36aabf['t'];switch(_0x43b06c){case'local':return{'text':_0x337d08('Insert'===_0x58934a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x337d08('From\x20computer')};case'url':return{'text':'Insert'===_0x58934a?_0x337d08('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x337d08('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x58934a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x58934a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x58934a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x58934a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x58934a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x43b06c;}}var V=class extends _0x3810eb{['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 _0x1678a3=[this['editor']];for(const _0x12fd5d of _0x1678a3){let _0x4ce21d;for(const _0x5ef756 in _0x12fd5d){const _0x58f5d5=_0x5ef756,_0x4432dd=_0x12fd5d[_0x58f5d5];if('uploadcareLicenseKeyValid'==_0x4432dd||'uploadcareLicenseKeyInvalid'==_0x4432dd||'uploadcareLicenseKeyExpired'==_0x4432dd||'uploadcareLicenseKeyDomainLimit'==_0x4432dd||'uploadcareLicenseKeyNotAllowed'==_0x4432dd||'uploadcareLicenseKeyEvaluationLimit'==_0x4432dd||'uploadcareLicenseKeyUsageLimit'==_0x4432dd){delete _0x12fd5d[_0x58f5d5],_0x4ce21d=_0x4432dd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4ce21d&&_0x12fd5d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4ce21d&&_0x12fd5d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4ce21d&&_0x12fd5d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4ce21d&&_0x12fd5d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4ce21d&&_0x12fd5d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4ce21d&&_0x12fd5d['_showLicenseError']('usageLimit');}},0x3e8);}afterInit(){const {editor:_0x1a8ce9}=this,_0x1de980=_0x1a8ce9['commands']['get']('uploadcare');if(!_0x1de980)return;const _0x72f835=this['_normalizeConfigSourceList'](_0x1a8ce9['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4d1cef,_0x4432ce)=>{const _0x41b964=this['_getIntegrationKey'](_0x4432ce['type']);return _0x4d1cef[_0x41b964]||(_0x4d1cef[_0x41b964]=[]),_0x4d1cef[_0x41b964]['push'](_0x4432ce),_0x4d1cef;},{});_0x1a8ce9['plugins']['has']('ImageInsertUI')&&_0x1a8ce9['commands']['get']('uploadcare')&&Object['entries'](_0x72f835)['forEach'](([_0x9ecf17,_0x2411ea])=>{_0x1a8ce9['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x9ecf17,'observable':()=>_0x1de980,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2411ea),'formViewCreator':()=>this['_createDropdownButtons'](_0x2411ea),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2411ea),'override':'assetManager'!==_0x9ecf17});});}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_normalizeConfigSourceList(_0x76ca86){const {locale:_0xf874eb}=this['editor'];return _0x76ca86['map'](_0xef1265=>{const _0x343cbf=T(_0xf874eb,_0xef1265,'Insert');switch(_0xef1265){case'local':return{'icon':_0x478865,'type':'local',..._0x343cbf};case'url':return{'icon':_0x483e6e,'type':'url',..._0x343cbf};case'dropbox':return{'icon':_0xbe6a17,'type':'dropbox',..._0x343cbf};case'facebook':return{'icon':_0x395812,'type':'facebook',..._0x343cbf};case'gdrive':return{'icon':_0x50ffd8,'type':'gdrive',..._0x343cbf};case'gphotos':return{'icon':_0xdcc286,'type':'gphotos',..._0x343cbf};case'onedrive':return{'icon':_0x1e5025,'type':'onedrive',..._0x343cbf};}});}_getIntegrationKey(_0x1b9f75){switch(_0x1b9f75){case'local':return'upload';case'url':return'url';default:return'assetManager';}}_createButton(_0x54f3d6,_0x48e61f){const _0x5e8939=this['editor'],_0x54133d=new _0x54f3d6(_0x5e8939['locale']),_0x14047c=_0x5e8939['commands']['get']('uploadcare');return _0x54133d['bind']('isEnabled')['to'](_0x14047c),_0x54133d['on']('execute',()=>{_0x14047c['execute'](_0x48e61f);}),_0x54133d;}_createToolbarButton(_0x2a4df3){const {locale:_0x39a319}=this['editor'],_0x177369=this['editor']['plugins']['get']('ImageInsertUI'),_0x654d9c=_0x2a4df3[0x0],_0x5a4e9f=this['_createButton'](_0x200c74,_0x654d9c['type']);return _0x5a4e9f['icon']=_0x654d9c['icon'],_0x5a4e9f['bind']('label')['to'](_0x177369,'isImageSelected',_0x24a510=>T(_0x39a319,_0x654d9c['type'],_0x24a510?'Replace':'Insert')['text']),_0x5a4e9f['tooltip']=!0x0,_0x5a4e9f;}_createDropdownButtons(_0x50f4e1){const {locale:_0x10455c}=this['editor'],_0x5c4f45=this['editor']['plugins']['get']('ImageInsertUI');return _0x50f4e1['map'](_0x147351=>{const _0x4e3c31=this['_createButton'](_0x200c74,_0x147351['type']);return _0x4e3c31['withText']=!0x0,_0x4e3c31['icon']=_0x147351['icon'],_0x4e3c31['bind']('label')['to'](_0x5c4f45,'isImageSelected',_0x34456e=>T(_0x10455c,_0x147351['type'],_0x34456e?'Replace':'Insert')['text']),_0x4e3c31;});}_createMenuBarButtons(_0x495243){return _0x495243['map'](_0x1c1089=>{const _0x484094=this['_createButton'](_0xeef0d5,_0x1c1089['type']);return _0x484094['icon']=_0x1c1089['icon'],_0x484094['label']=_0x1c1089['shortText'],_0x484094;});}},F=class extends _0x2fc8ab{['focusTracker'];['focusCycler'];constructor(_0x33920c){super(_0x33920c),this['focusTracker']=new _0x143468(),this['focusCycler']=new _0x563389({'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(_0x56cecc,_0x1cefe0){super(_0x56cecc),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-'+_0x1cefe0}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x4420e0,_0x58158e){const _0x1df9ca=_0x4420e0['replace'](/\/$/,'');return{'imageFallbackUrl':_0x4420e0,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x283efd=>_0x283efd<_0x58158e)['map'](_0x459ceb=>_0x1df9ca+'/-/resize/'+_0x459ceb+'x/\x20'+_0x459ceb+'w'),_0x4420e0+'\x20'+_0x58158e+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x58158e+'px)\x20100vw,\x20'+_0x58158e+'px','type':'image/webp'}]};}function j(_0x2c3ac7,_0x48f95b,_0x5df500){const _0x5349c2=_0x2c3ac7['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5349c2?parseInt(_0x5349c2[0x1],0xa):_0x48f95b,'height':_0x5349c2?parseInt(_0x5349c2[0x2],0xa):_0x5df500};}function q(_0x245599,_0x20f2cc){const _0xc5d2cc=new(_0x335efc())(),_0x22b356=_0x245599['plugins']['get']('ImageUtils'),_0xcc1ac7=_0x245599['editing']['mapper']['toViewElement'](_0x20f2cc),_0x4eb164=_0x22b356['findViewImgElement'](_0xcc1ac7),_0x23d739=_0x245599['editing']['view']['domConverter']['viewToDom'](_0x4eb164),_0x4ec865=_0x20f2cc['getAttribute']('width'),_0x2fdf5c=_0x20f2cc['getAttribute']('height'),_0x4cf215='image-processing';_0x245599['editing']['view']['change'](_0x5ee668=>{_0x5ee668['addClass'](_0x4cf215,_0xcc1ac7),_0x5ee668['setStyle']('aspect-ratio',_0x4ec865+'/'+_0x2fdf5c,_0x4eb164);}),_0xc5d2cc['listenTo'](_0x23d739,'load',()=>{_0xc5d2cc['stopListening'](_0x23d739,'load'),_0x245599['editing']['view']['change'](_0x53feb3=>{_0x53feb3['removeClass'](_0x4cf215,_0xcc1ac7),_0x53feb3['removeStyle']('aspect-ratio',_0x4eb164);});});}function M(_0x2a39e6){if(Array['isArray'](_0x2a39e6)){const _0x2baa13=_0x2a39e6['map'](M);return _0x36faf9=>_0x2baa13['some'](_0x2a0ea9=>_0x2a0ea9(_0x36faf9));}if('origin'==_0x2a39e6){const _0x3f2afb=_0x1cdfcb['window']['location']['origin'];return _0x24ac4b=>new URL(_0x24ac4b,_0x1cdfcb['document']['baseURI'])['origin']==_0x3f2afb;}return'function'==typeof _0x2a39e6?_0x2a39e6:_0x2a39e6 instanceof RegExp?_0x523154=>!(!_0x523154['match'](_0x2a39e6)&&!_0x523154['replace'](/^https?:\/\//,'')['match'](_0x2a39e6)):()=>!0x1;}function H(_0x4d9c33,_0xf180d6){return _0x4c3e67(_0x4d9c33['target'])['includes'](_0xf180d6);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x57301a();var G=class extends W{_editor;['_dialog'];_editing;['_api'];_type=null;['_formView']=null;constructor(_0x1db2a9,_0x46430c,_0x53fb9b){super(),this['_editor']=_0x1db2a9,this['_editing']=_0x46430c,this['_dialog']=_0x1db2a9['plugins']['get'](_0x4c9dbd),this['_api']=_0x46430c['ctxElement']['getAPI'](),this['_type']=_0x53fb9b,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:_0x41e835,model:_0x381258}=this['_editor'],_0x33a0b8=_0x381258['document']['selection']['getSelectedElement'](),_0x37d9e1=_0x33a0b8&&(_0x33a0b8['is']('element','imageBlock')||_0x33a0b8['is']('element','imageInline'));this['_formView']=new $(_0x41e835,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x478865,'title':T(_0x41e835,this['_type'],_0x37d9e1?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x24347c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2e3322=>!H(_0x2e3322,this['_formView']['element'])}});}_initListeners(){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3ad20d}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1bd79a=>{const _0x3c2571=_0x3ad20d['length'];for(const _0x5bd0a7 of _0x3ad20d){const _0x2020be=_0x5bd0a7===_0x3ad20d[_0x3c2571-0x1],{cdnUrl:_0x8e665f,fileInfo:_0x4da1f7}=_0x5bd0a7;if(!_0x8e665f||!_0x4da1f7)continue;const {width:_0x51f17c,height:_0x7e55d1}=_0x4da1f7['imageInfo'],_0x3e42e3=j(_0x8e665f,_0x51f17c,_0x7e55d1),_0x2d4500=B(_0x8e665f,_0x3e42e3['width']),_0x47e774={'id':_0x4da1f7['uuid'],'type':'image','attributes':{'imageDimension':_0x3e42e3,..._0x2d4500}};this['_insertAsset'](_0x47e774,_0x2020be,_0x1bd79a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1262fd=>{'idle'===_0x1262fd['detail']['status']&&!_0x1262fd['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}_insertAsset(_0x2a3ac4,_0x41586f,_0x2eebc3){const _0x360f5c=this['_editor']['model']['document']['selection'],_0x515aa7=_0x360f5c['getSelectedElement'](),_0x1afc29=!(!_0x515aa7||!_0x515aa7['is']('element','imageInline'));_0x2eebc3['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2a3ac4,_0x1afc29),_0x41586f||_0x2eebc3['setSelection'](_0x360f5c['getLastPosition']());}_insertImage(_0x4e17fe,_0x12a208){const _0x4a1ec0=this['_editor'],{imageDimension:_0x18bb79,imageFallbackUrl:_0x2f7c77,imageSources:_0x5a5f3b}=_0x4e17fe['attributes'];_0x4a1ec0['execute']('insertImage',{'imageType':_0x12a208?'imageInline':null,'source':{'uploadcareImageId':_0x4e17fe['id'],'src':_0x2f7c77,'sources':_0x5a5f3b,..._0x18bb79}});}},z=class extends _0x3ef929{_editing;_controller=null;static get requires(){return[_0x4c9dbd,Z];}constructor(_0x565d8f){super(_0x565d8f),this['_editing']=_0x565d8f['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}execute(_0x3eb44e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x3eb44e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x4843b7,..._0x519152}){return _0x22c037(_0x4843b7,_0x519152);}static getInfo(_0xa730a2,_0x355c44){return _0x5a55ab(_0xa730a2,_0x355c44);}},J=class extends _0x3810eb{static get requires(){return[_0x4dd25c,_0x12b32b,_0x231df7,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async afterInit(){const _0x4b2982=this['editor'];if(!_0x4b2982['config']['get']('uploadcare'))return;_0x4b2982['plugins']['get'](_0x231df7)['createUploadAdapter']=_0x49a7cb=>new X(_0x49a7cb,_0x4b2982),_0x4b2982['plugins']['get'](_0x4dd25c)['on']('uploadComplete',(_0x50301c,{imageElement:_0x1f94b0,data:_0x2da7c6})=>{_0x4b2982['model']['change'](_0x3b4c4d=>{_0x3b4c4d['setAttribute']('uploadcareImageId',_0x2da7c6['uploadcareImageId'],_0x1f94b0);});});}},X=class{['loader'];editor;controller;constructor(_0x1206a5,_0x24f791){this['loader']=_0x1206a5,this['editor']=_0x24f791,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5b5902=await this['loader']['file'];return Q['upload']({'file':_0x5b5902,'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':_0x1381ba=>{_0x1381ba&&_0x1381ba['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1381ba['value']);}})['then'](async _0x391903=>{const {imageFallbackUrl:_0x4da8f5,imageSources:_0x33e381}=B(_0x391903['cdnUrl'],_0x391903['imageInfo']['width']);return{'uploadcareImageId':_0x391903['uuid'],'default':_0x4da8f5,'sources':_0x33e381};})['catch'](()=>{const _0xa17234=t('Cannot\x20upload\x20file:')+('\x20'+_0x5b5902['name']+'.');return Promise['reject'](_0xa17234);});}abort(){this['controller']['abort']();}},Z=class extends _0x3810eb{_configElement=null;_ctxElement=null;static get['pluginName'](){return'UploadcareEditing';}static get requires(){return[_0x7bf73f,J,_0x4c9dbd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}ucContextId;get configElement(){return this['_configElement'];}get ctxElement(){return this['_ctxElement'];}constructor(_0x487b7c){super(_0x487b7c),this['ucContextId']=_0x4ddb3d();}init(){const _0x420f72=this['editor'];_0x420f72['commands']['add']('uploadcare',new z(_0x420f72));}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 _0x1bf3bc=_0x1cdfcb['document']['querySelector']('input[uploadcare-file-input]');_0x1bf3bc&&_0x1bf3bc['remove']();}),async function(_0x2270ff){const _0x4568ff='4wieLj6qmWZnpxGN9QYyFhU15kOfCBAHt2slISMXP3vErub8za07VTRoKcdDgJ',_0x42c8b4=0x793c8,_0x190ebc={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x302bc1(_0x54140c){const _0x3ac41a=new window['Promise'](_0x3f08d0=>{_0x54140c['once']('ready',_0x3f08d0);}),_0x587dd4=window['Date']['now'](),_0x2fc30e=_0x54140c['config']['get']('licenseKey');async function _0x24975e(){let _0x5ea2f2,_0x20a054=null,_0x24c988=null;try{return'GPL'==_0x2fc30e?'NotAllowed':(_0x5ea2f2=_0x1e9dc7(),_0x5ea2f2?(_0x5ea2f2['usageEndpoint']&&(_0x24c988=_0x248ee7(_0x5ea2f2['usageEndpoint'],_0x5ea2f2['jti'])),await _0x5ae859()?_0x48165b()?_0x40ba2b()?'Expired':_0x5da5a5()?('evaluation'==_0x5ea2f2['licenseType']&&(_0x20a054=_0x22e719('EvaluationLimit')),await _0x1cbed9()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x40ba2b(){const _0x1c949c=['evaluation','trial']['includes'](_0x5ea2f2['licenseType'])?_0x587dd4/0x3e8:0xe10*_0x42c8b4;return _0x5ea2f2['exp']<_0x1c949c;}function _0x48165b(){const _0x38841f=_0x5ea2f2['features'];return!!_0x38841f&&(!!_0x38841f['includes']('*')||!!_0x38841f['includes']('UPLC'));}function _0x5da5a5(){const _0x1d058a=_0x5ea2f2['licensedHosts'];if(!_0x1d058a||0x0==_0x1d058a['length'])return!0x0;const {hostname:_0x5cf131}=new URL(window['location']['href']);if(_0x1d058a['includes'](_0x5cf131))return!0x0;const _0x2c1294=_0x5cf131['split']('.');return _0x1d058a['filter'](_0x2eaf3a=>_0x2eaf3a['includes']('*'))['map'](_0x2f2b6a=>_0x2f2b6a['split']('.'))['filter'](_0x21d089=>_0x21d089['length']<=_0x2c1294['length'])['map'](_0x2bdc79=>Array(_0x2c1294['length']-_0x2bdc79['length'])['fill']('*'===_0x2bdc79[0x0]?'*':'')['concat'](_0x2bdc79))['some'](_0x2b7b00=>_0x2c1294['every']((_0x531f05,_0x5d7e15)=>_0x2b7b00[_0x5d7e15]===_0x531f05||'*'===_0x2b7b00[_0x5d7e15]));}function _0x1cbed9(){return _0x20a054&&_0x24c988?new window['Promise']((_0x170aae,_0x159bb1)=>{_0x20a054['then'](_0x170aae,_0x159bb1),_0x24c988['then'](_0x1e4de8=>{'Valid'!=_0x1e4de8&&_0x170aae(_0x1e4de8);},_0x159bb1);}):_0x20a054||_0x24c988||'Valid';}}function _0x248ee7(_0x2d0943,_0x57f2ff){return new window['Promise'](_0x107599=>{if(_0x3773df())return _0x107599('Valid');_0x4403f4(),_0x54140c['decorate']('_sendUsageRequest');let _0x29ad11=!0x1;const _0x7d92f2=_0x4ddb3d();function _0x1ed159(_0x539d31){return!!_0x539d31&&('object'==typeof _0x539d31||'function'==typeof _0x539d31)&&'function'==typeof _0x539d31['then']&&'function'==typeof _0x539d31['catch'];}function _0x5dc99c(_0x5c28da){_0x5f3769(_0x5c28da)['then'](_0x4882e8=>_0x4882e8&&'ok'==_0x4882e8['status']?_0x6e0d1d(_0x236399(_0x7d92f2+_0x57f2ff))!=_0x4882e8['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1540a6=>(_0x16bddf(),_0x1540a6),()=>{const _0x192efb=_0x5962d6();return null==_0x192efb?(_0x16bddf(),'Valid'):_0x587dd4-_0x192efb>0x240c8400?'UsageLimit':'Valid';})['then'](_0x107599)['catch'](()=>{_0x107599('UsageLimit');});const _0x160b6e=0x36ee80;function _0x16bddf(){const _0x4971e6='llct-'+_0x6e0d1d(_0x236399(_0x2d0943)),_0x11ff40=_0xce2584(_0x6e0d1d(window['Math']['ceil'](_0x587dd4/_0x160b6e)));window['localStorage']['setItem'](_0x4971e6,_0x11ff40);}function _0x5962d6(){const _0x4d7438='llct-'+_0x6e0d1d(_0x236399(_0x2d0943)),_0x3f69d8=window['localStorage']['getItem'](_0x4d7438);return _0x3f69d8?window['parseInt'](_0xce2584(_0x3f69d8),0x10)*_0x160b6e:null;}function _0x5f3769(_0x182130){return new window['Promise']((_0x5f5577,_0x3dd03a)=>{_0x182130['then'](_0x5f5577,_0x3dd03a),window['setTimeout'](_0x3dd03a,0x1d4c0);});}}_0x54140c['on']('_sendUsageRequest',(_0x13bda6,_0x584604)=>{if(_0x584604[0x0]!=_0x2d0943)return _0x107599('UsageLimit');_0x584604[0x1]={..._0x584604[0x1],'requestId':_0x7d92f2};},{'priority':'high'}),_0x54140c['on']('_sendUsageRequest',_0x17cd08=>{_0x1ed159(_0x17cd08['return'])&&(_0x29ad11=!0x0,_0x5dc99c(_0x17cd08['return']));},{'priority':'low'}),_0x3ac41a['then'](()=>{_0x29ad11||_0x107599('UsageLimit');});});function _0x3773df(){return'auto'==_0x54140c['editing']['view']['_overlayModeHint'];}function _0x4403f4(){_0x54140c['editing']['view']['_overlayModeHint']='auto';}}function _0x22e719(_0x2acf52){const _0x5227c0=[new window['Promise'](_0x13b85e=>setTimeout(_0x13b85e,0x93ecc)),_0x3ac41a['then'](()=>new window['Promise'](_0x22e753=>{let _0x57c6be=0x0;_0x54140c['model']['on']('applyOperation',(_0x4cd256,_0x19ae00)=>{_0x19ae00[0x0]['isDocumentOperation']&&_0x57c6be++,0x5e8==_0x57c6be&&(_0x22e753(),_0x4cd256['off']());});}))];return window['Promise']['race'](_0x5227c0)['then'](()=>_0x2acf52);}async function _0x58d258(){await _0x3ac41a,_0x54140c['model']['change']=_0x18d22a,_0x54140c['model']['enqueueChange']=_0x18d22a,_0x54140c['enableReadOnlyMode']('model');}function _0x4eae2d(_0x47ad34){const _0x4a0ca=_0x15ee84();_0x54140c[_0x4a0ca]='uploadcareLicenseKey'+_0x47ad34,'Valid'!=_0x47ad34&&_0x58d258();}function _0x15ee84(){const _0x3e19f1=window['String'](window['performance']['now']())['replace']('.','');let _0x1f3a39='w';for(let _0x46023f=0x0;_0x46023f<_0x3e19f1['length'];_0x46023f+=0x2){let _0x45238a=window['parseInt'](_0x3e19f1['substring'](_0x46023f,_0x46023f+0x2));_0x45238a>=0x3e&&(_0x45238a-=0x3e),_0x1f3a39+=_0x4568ff[_0x45238a];}return _0x1f3a39;}function _0x1e9dc7(){const _0x2412f8=_0x2fc30e['split']('.');if(0x3!=_0x2412f8['length'])return null;return _0x17281e(_0x2412f8[0x1]);function _0x17281e(_0x5e8e30){const _0x1aeea8=_0x6dc95b(_0x5e8e30);return _0x1aeea8&&_0x1b4fba()?_0x1aeea8:null;function _0x1b4fba(){const _0x2e1966=_0x1aeea8['jti'],_0x982548=window['parseInt'](_0x2e1966['substring'](_0x2e1966['length']-0x8),0x10),_0x3bb472={..._0x1aeea8,'jti':_0x2e1966['substring'](0x0,_0x2e1966['length']-0x8)};return delete _0x3bb472['vc'],_0x236399(_0x3bb472)==_0x982548;}}}async function _0x5ae859(){let _0x497a75=!0x0;try{const [_0x42c38d,_0x2f6da5,_0x399b13]=_0x2fc30e['split']('.');return _0x40a18c(_0x42c38d),await _0x5393f2(_0x42c38d,_0x2f6da5,_0x399b13),_0x497a75;}catch{return!0x1;}function _0x40a18c(_0x412eb0){const _0x3f0ec5=_0x6dc95b(_0x412eb0);_0x3f0ec5&&'ES256'==_0x3f0ec5['alg']||(_0x497a75=!0x1);}async function _0x5393f2(_0x23be50,_0x27b246,_0x18d964){const _0x10181e=window['Uint8Array']['from'](_0xca42e3(_0x18d964),_0xd76b7a=>_0xd76b7a['charCodeAt'](0x0)),_0x190280=new window['TextEncoder']()['encode'](_0x23be50+'.'+_0x27b246),_0xe29ad7=window['crypto']['subtle'];if(!_0xe29ad7)return;const _0x33895b=await _0xe29ad7['importKey']('jwk',_0x190ebc,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xe29ad7['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x33895b,_0x10181e,_0x190280)||(_0x497a75=!0x1);}}function _0x6dc95b(_0x3a74e6){return _0x3a74e6['startsWith']('ey')?JSON['parse'](_0xca42e3(_0x3a74e6)):null;}function _0xca42e3(_0x3a9c3f){return window['atob'](_0x3a9c3f['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x236399(_0x58d273){let _0x3afc45=0x1505;function _0x38115f(_0x235ea9){for(let _0x317634=0x0;_0x317634<_0x235ea9['length'];_0x317634++){const _0x531a31=_0x235ea9['charCodeAt'](_0x317634);_0x3afc45=(_0x3afc45<<0x5)+_0x3afc45+_0x531a31,_0x3afc45&=_0x3afc45;}}function _0xd55fd8(_0x3b0d92){Array['isArray'](_0x3b0d92)?_0x3b0d92['forEach'](_0xd55fd8):_0x3b0d92&&'object'==typeof _0x3b0d92?Object['entries'](_0x3b0d92)['sort']()['forEach'](([_0x4f0e19,_0x5dd051])=>{_0x38115f(_0x4f0e19),_0xd55fd8(_0x5dd051);}):_0x38115f(window['String'](_0x3b0d92));}return _0xd55fd8(_0x58d273),_0x3afc45>>>0x0;}function _0x6e0d1d(_0x161e75){return _0x161e75['toString'](0x10)['padStart'](0x8,'0');}function _0xce2584(_0x366a04){return _0x366a04['split']('')['reverse']()['join']('');}function _0x18d22a(){}_0x4eae2d(await _0x24975e());}_0x302bc1(_0x2270ff['editor']);}(this);}_initSchema(){const _0x33b3cd=this['editor']['model']['schema'];_0x33b3cd['isRegistered']('imageBlock')&&_0x33b3cd['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x33b3cd['isRegistered']('imageInline')&&_0x33b3cd['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}_initConversion(){const _0x5ef627=this['editor'];_0x5ef627['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5ef627['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2cded4=>_0x2cded4['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1d9966=_0x5ef627['commands']['get']('replaceImageSource');_0x1d9966&&this['listenTo'](_0x1d9966,'cleanupImage',(_0x17ad93,[_0x52db70,_0x5d9016])=>{_0x52db70['removeAttribute']('uploadcareImageId',_0x5d9016);});}_initConfig(){const _0x119332=this['editor']['config']['get']('uploadcare.uploader')||{},_0x8423e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x12e6b1(_0x1cdfcb['document'],'uc-config',{..._0x119332,'pubkey':_0x8423e,'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']=_0x535430=>{if('closeMax'==_0x535430)return'#uc-icon-arrow-down';},_0x1cdfcb['document']['body']['appendChild'](this['_configElement']);}_initCtx(){this['_ctxElement']=_0x12e6b1(_0x1cdfcb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1cdfcb['document']['body']['appendChild'](this['_ctxElement']);}_initImageProcessingIndicator(){const _0xdbe486=this['editor']['commands']['get']('insertImage');_0xdbe486&&this['listenTo'](_0xdbe486,'execute',()=>{const _0x15b420=this['editor']['model']['document']['selection']['getSelectedElement']();_0x15b420&&_0x15b420['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x15b420);});});const _0x58876c=this['editor']['commands']['get']('uploadcareImageReplace');_0x58876c&&this['listenTo'](_0x58876c,'execute',()=>{const _0x4deda2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4deda2&&_0x4deda2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x4deda2);});});}},Y=class extends _0x3810eb{static get requires(){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x195c93){super(_0x195c93),_0x195c93['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x2f0a48['defineComponents'](_0x2f0a48),this['_defineLocale']();}['_defineLocale'](){const _0x38ec26=this['editor']['config']['get']('uploadcare.locale'),_0x40c7df=this['editor']['locale']['contentLanguage'];_0x38ec26&&_0x2f0a48['defineLocale'](_0x40c7df,_0x38ec26);}},tt=class extends _0x2fc8ab{constructor(_0x533400){super(_0x533400);const t=_0x533400['t'],_0x2bf24c=this['bindTemplate'],_0xba2495=new _0x38b012();_0xba2495['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':[_0xba2495,{'text':_0x2bf24c['to']('imageUploadProgress',_0x1c05ac=>t('Loading\x20image...')+'\x20('+(_0x1c05ac||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 _0x2fc8ab{constructor(_0x2d3b52){super(_0x2d3b52);const t=_0x2d3b52['t'];this['set']('errorType',null);const _0x22775a=new _0x200c74(_0x2d3b52);_0x22775a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x22775a['withText']=!0x0,_0x22775a['class']='ck-button-action',_0x22775a['on']('execute',()=>{this['fire']('retry');}),_0x22775a['bind']('isVisible')['to'](this,'errorType',_0x51e4ec=>'NotFound'!==_0x51e4ec);const _0x2a3145=new _0x38a3d5();_0x2a3145['content']=_0x246f78,_0x2a3145['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x37674f=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':[_0x2a3145,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x37674f['to']('errorType',_0x552f8e=>t('NotFound'!==_0x552f8e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x22775a]},{'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 _0x2fc8ab{constructor(_0x4d03a1,_0x158bd8){super(_0x4d03a1);const _0x107791=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x158bd8,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x107791['to']('imageSrc')}});}},st=class extends F{_items;['_loadingView'];['_errorView'];_editingView;['_focusableView'];constructor(_0x35b5d7,_0x197ecb,_0x58cc77){super(_0x35b5d7),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x35b5d7),this['_errorView']=new et(_0x35b5d7),this['_editingView']=new it(_0x35b5d7,_0x58cc77),this['_focusableView']=new _0x2fc8ab(_0x35b5d7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x197ecb),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'],_0x16b9cc=>{this['_addUploadcareImageEditorListeners'](_0x16b9cc);});}),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(_0x3282ac,_0x27496d){const _0x115d18='uc-cloud-image-editor',_0xf0d555=_0x3282ac['querySelector'](_0x115d18);if(_0xf0d555)return _0x27496d(_0xf0d555);const _0x40f6d9=new MutationObserver(_0x10db40=>{const _0x210f23=_0x10db40['filter'](_0x2bc8ca=>_0x2bc8ca['target']===_0x3282ac&&_0x2bc8ca['addedNodes']['length']>0x0&&_0x2bc8ca['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x115d18);_0x210f23['length']&&(_0x40f6d9['disconnect'](),_0x27496d(_0x210f23[0x0]['addedNodes'][0x0]));});_0x40f6d9['observe'](_0x3282ac,{'childList':!0x0,'subtree':!0x0});}_addUploadcareImageEditorListeners(_0x46da48){_0x46da48['addEventListener']('apply',_0x5078cf=>{this['fire']('apply',{'imageSrc':_0x5078cf['detail']['cdnUrl']});}),_0x46da48['addEventListener']('cancel',()=>{this['fire']('cancel');});}_addErrorViewListeners(){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const nt=/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x57301a();var rt=class extends nt{_editor;['_dialog'];_imageElement;['_imageCache'];_controller;_attributes;constructor(_0x359451,_0x36f64d,_0x150abf){super(),this['_editor']=_0x359451,this['_dialog']=_0x36f64d,this['_imageElement']=_0x150abf,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 _0x5bdb0c=this['_imageElement'],_0xef56aa=_0x5bdb0c['getAttribute']('uploadcareImageId'),_0x4931de=_0x5bdb0c['getAttribute']('src');if(_0xef56aa)await this['_loadImageInfo'](_0xef56aa,_0x4931de);else{if(this['_imageCache']['has'](_0x4931de)){const _0x4823a7=this['_imageCache']['get'](_0x4931de);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4823a7['url'],this['imageDimension']=_0x4823a7['dimension'],this['imageId']=_0x4823a7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3f22bc}=this['_editor'],t=_0x3f22bc['t'],_0x1cd26c=new st(_0x3f22bc,this['imageStatus'],this['_attributes']);_0x1cd26c['bind']('status')['to'](this,'imageStatus'),_0x1cd26c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1cd26c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1cd26c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1cd26c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x10cb9a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1cd26c,'position':_0x24347c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1cd26c['focus']();},'onHide':()=>{_0x1cd26c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4645f7=>!H(_0x4645f7,_0x1cd26c['element'])}});}['_loadImageInfo'](_0x4c9ace,_0x25f5fa){return Q['getInfo'](_0x4c9ace,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5d3f20=>{const {width:_0x2cfe00,height:_0x1f8b87}=_0x5d3f20['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x25f5fa,this['imageDimension']={'width':_0x2cfe00,'height':_0x1f8b87},this['imageId']=_0x4c9ace;})['catch'](_0x14448e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x14448e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xf9eec5,_0x32e7bf){return this['_getImageAsFile'](_0xf9eec5)['then'](_0x4deb7a=>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':_0x32e7bf['signal'],'file':_0x4deb7a,'onProgress':_0xb243cc=>{_0xb243cc&&_0xb243cc['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xb243cc['value']));}}))['then'](_0xb0dddf=>{const {width:_0xf2cf90,height:_0x4bfe7b}=_0xb0dddf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xb0dddf['cdnUrl'],this['imageDimension']={'width':_0xf2cf90,'height':_0x4bfe7b},this['imageId']=_0xb0dddf['uuid'],this['imageUploadProgress']=null;const _0x25bf3d=_0xf9eec5['getAttribute']('src');this['_imageCache']['set'](_0x25bf3d,{'id':_0xb0dddf['uuid'],'url':_0xb0dddf['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x39a96e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x39a96e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}_addEditViewListeners(_0x439112,_0x33b14d){_0x439112['on']('apply',(_0x22cbb5,_0x28c9e2)=>{this['_replaceImage'](_0x33b14d,_0x28c9e2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x439112['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x439112['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x85b274,_0x32cd22,_0xd8c489){const _0x492b69=this['_editor'],{width:_0xa1d6f6,height:_0x3d55aa}=j(_0x32cd22,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4f2c2a,imageSources:_0x701325}=B(_0x32cd22,_0xa1d6f6);_0x492b69['model']['change'](_0x2280d7=>{if('$graveyard'!==_0x85b274['root']['rootName'])_0x2280d7['setSelection'](_0x85b274,'on'),_0x492b69['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x85b274['getAttributes']()),'uploadcareImageId':_0xd8c489,'src':_0x4f2c2a,'sources':_0x701325,'width':_0xa1d6f6,'height':_0x3d55aa},_0x85b274);else{_0x492b69['execute']('insertImage',{'imageType':_0x85b274['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x85b274['getAttributes']()),'uploadcareImageId':_0xd8c489,'src':_0x4f2c2a,'sources':_0x701325,'width':_0xa1d6f6,'height':_0x3d55aa}});const _0x327aae=_0x85b274['getChildren']();_0x85b274=_0x492b69['model']['document']['selection']['getSelectedElement']();for(const _0x43b45a of _0x327aae)_0x2280d7['append'](_0x2280d7['cloneElement'](_0x43b45a),_0x85b274);}_0x2280d7['setSelection'](_0x85b274,'on');});}async _getImageAsFile(_0x1c5804){const _0x439902=_0x1cdfcb['window'],_0x40fd94=_0x1cdfcb['document']['location']['href'],_0x1388db=new _0x439902['URL'](_0x1c5804['getAttribute']('src'),_0x40fd94);if('data:'===_0x1388db['protocol']){const _0x34586d=_0x1388db['href']['split'](','),_0x38044e=_0x34586d[0x0]['match'](/:(.*?);/)[0x1],_0x384c13=_0x38044e['split']('/')[0x1],_0xee89f4=_0x439902['atob'](_0x34586d[_0x34586d['length']-0x1]);let _0x59d8c3=_0xee89f4['length'];const _0x9904d4=new _0x439902['Uint8Array'](_0x59d8c3);for(;_0x59d8c3--;)_0x9904d4[_0x59d8c3]=_0xee89f4['charCodeAt'](_0x59d8c3);return new _0x439902['File']([_0x9904d4],'image.'+_0x384c13,{'type':_0x38044e});}const _0x1db1f2=_0x1388db['href']['split']('/'),_0x524347=_0x1db1f2[_0x1db1f2['length']-0x1],_0x3d8271=_0x524347['split']('.')[0x1];return _0x439902['fetch'](_0x1388db['href'])['then'](_0x5a0b91=>_0x5a0b91['clone']()['blob']())['then'](_0x7eb420=>new _0x439902['File']([_0x7eb420],_0x524347,{'type':'image/'+_0x3d8271}));}},at=class extends _0x3ef929{imageEditController;static get requires(){return[_0x4c9dbd];}_isEditable;constructor(_0x2038db){super(_0x2038db),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x40bbc3){const _0x534595=M(_0x40bbc3);return _0x36e378=>!(!_0x36e378||!_0x36e378['is']('element','imageBlock')&&!_0x36e378['is']('element','imageInline'))&&(!!_0x36e378['hasAttribute']('uploadcareImageId')||!!_0x36e378['hasAttribute']('src')&&_0x534595(_0x36e378['getAttribute']('src')));}(_0x2038db['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4e61d8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4e61d8);}execute(){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3e6b4b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3e6b4b&&(_0x3e6b4b['is']('element','imageBlock')||_0x3e6b4b['is']('element','imageInline'))&&(this['imageEditController']=new rt(this['editor'],this['editor']['plugins']['get'](_0x4c9dbd),_0x3e6b4b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x3ef929{['refresh'](){const _0x403e98=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x403e98&&(_0x403e98['is']('element','imageBlock')||_0x403e98['is']('element','imageInline')));}execute(_0x2574f8){const _0x26fab8=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2822bc=>{_0x2822bc['setAttributes'](_0x2574f8,_0x26fab8),_0x2822bc['removeAttribute']('srcset',_0x26fab8),_0x2822bc['removeAttribute']('sizes',_0x26fab8);});}},ct=class extends _0x3810eb{static get['pluginName'](){return'UploadcareImageEditEditing';}static get requires(){return[Z,_0x558dc1,_0x3a809b,_0x13f27d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x903437}=this;_0x903437['commands']['add']('uploadcareImageEdit',new at(_0x903437)),_0x903437['commands']['add']('uploadcareImageReplace',new ot(_0x903437));}},lt=class extends _0x3810eb{['_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 _0x2bf344=this['editor'];_0x2bf344['ui']['componentFactory']['add']('uploadcareImageEdit',_0xc55749=>{const _0x4484f3=_0x2bf344['commands']['get']('uploadcareImageEdit'),_0x1d5985=new _0x200c74(_0xc55749),t=_0xc55749['t'];return _0x1d5985['set']({'icon':_0x10cb9a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1d5985['bind']('isEnabled')['to'](_0x4484f3),_0x1d5985['bind']('isOn')['to'](_0x4484f3,'isActive'),this['listenTo'](_0x1d5985,'execute',()=>{_0x2bf344['execute']('uploadcareImageEdit'),_0x2bf344['editing']['view']['focus']();}),_0x1d5985;}),this['_initConfig']();}_initConfig(){const _0x4a3845=_0x12e6b1(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4a3845),this['listenTo'](this['editor'],'destroy',()=>{_0x4a3845['remove']();});}},ut=class extends _0x3810eb{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 _0x3083bd,Plugin as _0x51ca24}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x4a1433,IconError as _0x13717d,IconFacebook as _0x315d20,IconGoogleDrive as _0x616648,IconGooglePhotos as _0xe44f4c,IconOneDrive as _0x36800b,IconUploadcareImageEdit as _0x3fb224,IconUploadcareImageUpload as _0x18d282,IconUploadcareLink as _0x3504ed}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x14f01c,Dialog as _0x1fa73f,DialogViewPosition as _0x96bcbf,FocusCycler as _0x36ae68,IconView as _0xc2e35,MenuBarMenuListItemButtonView as _0x20a35a,Notification as _0x4a71dc,SpinnerView as _0x136c40,View as _0x1f1b00}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x208392,FocusTracker as _0x5e1308,ObservableMixin as _0x2f3ec6,createElement as _0xcf6f91,getAncestors as _0x17f081,global as _0x14c7e2,uid as _0x170750}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x4b54a8,ImageUploadEditing as _0x2a7711,ImageUploadProgress as _0x490139,ImageUtils as _0x399c00,PictureEditing as _0xd2cc51}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x9bcb1a}from'@ckeditor/ckeditor5-upload';import{info as _0x432016,uploadFile as _0x33a151}from'@uploadcare/upload-client';import*as _0x344c96 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x38e7c3,_0x248685,_0x47a24d){const t=_0x38e7c3['t'],_0x3f69af=_0x38e7c3['t'];switch(_0x248685){case'local':return{'text':_0x3f69af('Insert'===_0x47a24d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3f69af('From\x20computer')};case'url':return{'text':'Insert'===_0x47a24d?_0x3f69af('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3f69af('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x47a24d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x47a24d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x47a24d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x47a24d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x47a24d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x248685;}}var V=class extends _0x51ca24{['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 _0x82824=[this['editor']];for(const _0x417cdc of _0x82824){let _0x27be45;for(const _0x21e119 in _0x417cdc){const _0x3bb223=_0x21e119,_0x1ee22a=_0x417cdc[_0x3bb223];if('uploadcareLicenseKeyValid'==_0x1ee22a||'uploadcareLicenseKeyInvalid'==_0x1ee22a||'uploadcareLicenseKeyExpired'==_0x1ee22a||'uploadcareLicenseKeyDomainLimit'==_0x1ee22a||'uploadcareLicenseKeyNotAllowed'==_0x1ee22a||'uploadcareLicenseKeyEvaluationLimit'==_0x1ee22a||'uploadcareLicenseKeyUsageLimit'==_0x1ee22a){delete _0x417cdc[_0x3bb223],_0x27be45=_0x1ee22a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x27be45&&_0x417cdc['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x27be45&&_0x417cdc['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x27be45&&_0x417cdc['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x27be45&&_0x417cdc['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x27be45&&_0x417cdc['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x27be45&&_0x417cdc['_showLicenseError']('usageLimit');}},0x3e8);}afterInit(){const {editor:_0x187dd3}=this,_0x6873bb=_0x187dd3['commands']['get']('uploadcare');if(!_0x6873bb)return;const _0x3e9469=this['_normalizeConfigSourceList'](_0x187dd3['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3ad0a1,_0x47bc82)=>{const _0x17c6f7=this['_getIntegrationKey'](_0x47bc82['type']);return _0x3ad0a1[_0x17c6f7]||(_0x3ad0a1[_0x17c6f7]=[]),_0x3ad0a1[_0x17c6f7]['push'](_0x47bc82),_0x3ad0a1;},{});_0x187dd3['plugins']['has']('ImageInsertUI')&&_0x187dd3['commands']['get']('uploadcare')&&Object['entries'](_0x3e9469)['forEach'](([_0x45bb2c,_0x2abee1])=>{_0x187dd3['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x45bb2c,'observable':()=>_0x6873bb,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2abee1),'formViewCreator':()=>this['_createDropdownButtons'](_0x2abee1),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2abee1),'override':'assetManager'!==_0x45bb2c});});}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_normalizeConfigSourceList(_0x568be6){const {locale:_0x98fd2c}=this['editor'];return _0x568be6['map'](_0x54b13d=>{const _0x30b66f=T(_0x98fd2c,_0x54b13d,'Insert');switch(_0x54b13d){case'local':return{'icon':_0x18d282,'type':'local',..._0x30b66f};case'url':return{'icon':_0x3504ed,'type':'url',..._0x30b66f};case'dropbox':return{'icon':_0x4a1433,'type':'dropbox',..._0x30b66f};case'facebook':return{'icon':_0x315d20,'type':'facebook',..._0x30b66f};case'gdrive':return{'icon':_0x616648,'type':'gdrive',..._0x30b66f};case'gphotos':return{'icon':_0xe44f4c,'type':'gphotos',..._0x30b66f};case'onedrive':return{'icon':_0x36800b,'type':'onedrive',..._0x30b66f};}});}_getIntegrationKey(_0x4d94ff){switch(_0x4d94ff){case'local':return'upload';case'url':return'url';default:return'assetManager';}}_createButton(_0x98dadd,_0x128da8){const _0x42dc1d=this['editor'],_0x220d67=new _0x98dadd(_0x42dc1d['locale']),_0x15a721=_0x42dc1d['commands']['get']('uploadcare');return _0x220d67['bind']('isEnabled')['to'](_0x15a721),_0x220d67['on']('execute',()=>{_0x15a721['execute'](_0x128da8);}),_0x220d67;}_createToolbarButton(_0x4347ab){const {locale:_0x207e91}=this['editor'],_0x57d2e5=this['editor']['plugins']['get']('ImageInsertUI'),_0x213396=_0x4347ab[0x0],_0x10d15a=this['_createButton'](_0x14f01c,_0x213396['type']);return _0x10d15a['icon']=_0x213396['icon'],_0x10d15a['bind']('label')['to'](_0x57d2e5,'isImageSelected',_0x53e280=>T(_0x207e91,_0x213396['type'],_0x53e280?'Replace':'Insert')['text']),_0x10d15a['tooltip']=!0x0,_0x10d15a;}_createDropdownButtons(_0x27cc9d){const {locale:_0x1242d6}=this['editor'],_0x1b4960=this['editor']['plugins']['get']('ImageInsertUI');return _0x27cc9d['map'](_0x340824=>{const _0x4187c4=this['_createButton'](_0x14f01c,_0x340824['type']);return _0x4187c4['withText']=!0x0,_0x4187c4['icon']=_0x340824['icon'],_0x4187c4['bind']('label')['to'](_0x1b4960,'isImageSelected',_0x31339e=>T(_0x1242d6,_0x340824['type'],_0x31339e?'Replace':'Insert')['text']),_0x4187c4;});}_createMenuBarButtons(_0x3b94b6){return _0x3b94b6['map'](_0x828163=>{const _0x1327f7=this['_createButton'](_0x20a35a,_0x828163['type']);return _0x1327f7['icon']=_0x828163['icon'],_0x1327f7['label']=_0x828163['shortText'],_0x1327f7;});}},F=class extends _0x1f1b00{['focusTracker'];['focusCycler'];constructor(_0x230f99){super(_0x230f99),this['focusTracker']=new _0x5e1308(),this['focusCycler']=new _0x36ae68({'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(_0x52cb36,_0x39ce08){super(_0x52cb36),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-'+_0x39ce08}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x4b2e00,_0x126dd2){const _0x20db23=_0x4b2e00['replace'](/\/$/,'');return{'imageFallbackUrl':_0x4b2e00,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5f3dc1=>_0x5f3dc1<_0x126dd2)['map'](_0x321d8f=>_0x20db23+'/-/resize/'+_0x321d8f+'x/\x20'+_0x321d8f+'w'),_0x4b2e00+'\x20'+_0x126dd2+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x126dd2+'px)\x20100vw,\x20'+_0x126dd2+'px','type':'image/webp'}]};}function j(_0xb385f8,_0x4ca3a8,_0x1b31ac){const _0x271951=_0xb385f8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x271951?parseInt(_0x271951[0x1],0xa):_0x4ca3a8,'height':_0x271951?parseInt(_0x271951[0x2],0xa):_0x1b31ac};}function q(_0x4e0020,_0x301919){const _0x252743=new(_0x208392())(),_0x5a3fea=_0x4e0020['plugins']['get']('ImageUtils'),_0x3c9230=_0x4e0020['editing']['mapper']['toViewElement'](_0x301919),_0x4082ca=_0x5a3fea['findViewImgElement'](_0x3c9230),_0x221dc3=_0x4e0020['editing']['view']['domConverter']['viewToDom'](_0x4082ca),_0x440e86=_0x301919['getAttribute']('width'),_0x4c93f3=_0x301919['getAttribute']('height'),_0x49ab89='image-processing';_0x4e0020['editing']['view']['change'](_0x5c2449=>{_0x5c2449['addClass'](_0x49ab89,_0x3c9230),_0x5c2449['setStyle']('aspect-ratio',_0x440e86+'/'+_0x4c93f3,_0x4082ca);}),_0x252743['listenTo'](_0x221dc3,'load',()=>{_0x252743['stopListening'](_0x221dc3,'load'),_0x4e0020['editing']['view']['change'](_0x51c963=>{_0x51c963['removeClass'](_0x49ab89,_0x3c9230),_0x51c963['removeStyle']('aspect-ratio',_0x4082ca);});});}function M(_0x556b97){if(Array['isArray'](_0x556b97)){const _0x2055ec=_0x556b97['map'](M);return _0x57a6ef=>_0x2055ec['some'](_0x3885d6=>_0x3885d6(_0x57a6ef));}if('origin'==_0x556b97){const _0x3c63a9=_0x14c7e2['window']['location']['origin'];return _0x18ce7b=>new URL(_0x18ce7b,_0x14c7e2['document']['baseURI'])['origin']==_0x3c63a9;}return'function'==typeof _0x556b97?_0x556b97:_0x556b97 instanceof RegExp?_0x6df150=>!(!_0x6df150['match'](_0x556b97)&&!_0x6df150['replace'](/^https?:\/\//,'')['match'](_0x556b97)):()=>!0x1;}function H(_0x713f5f,_0x229228){return _0x17f081(_0x713f5f['target'])['includes'](_0x229228);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2f3ec6();var G=class extends W{_editor;['_dialog'];_editing;['_api'];_type=null;['_formView']=null;constructor(_0xd39173,_0x56f0a4,_0x36dd3f){super(),this['_editor']=_0xd39173,this['_editing']=_0x56f0a4,this['_dialog']=_0xd39173['plugins']['get'](_0x1fa73f),this['_api']=_0x56f0a4['ctxElement']['getAPI'](),this['_type']=_0x36dd3f,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:_0x2b5060,model:_0x49943c}=this['_editor'],_0x3548e7=_0x49943c['document']['selection']['getSelectedElement'](),_0x51e2c8=_0x3548e7&&(_0x3548e7['is']('element','imageBlock')||_0x3548e7['is']('element','imageInline'));this['_formView']=new $(_0x2b5060,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x18d282,'title':T(_0x2b5060,this['_type'],_0x51e2c8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x96bcbf['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1047b1=>!H(_0x1047b1,this['_formView']['element'])}});}_initListeners(){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x53b735}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4b532d=>{const _0x517cbb=_0x53b735['length'];for(const _0x5c7e8a of _0x53b735){const _0x425031=_0x5c7e8a===_0x53b735[_0x517cbb-0x1],{cdnUrl:_0x294074,fileInfo:_0x5b6336}=_0x5c7e8a;if(!_0x294074||!_0x5b6336)continue;const {width:_0xb56768,height:_0x5438db}=_0x5b6336['imageInfo'],_0x65e29e=j(_0x294074,_0xb56768,_0x5438db),_0x487ae1=B(_0x294074,_0x65e29e['width']),_0x3609d4={'id':_0x5b6336['uuid'],'type':'image','attributes':{'imageDimension':_0x65e29e,..._0x487ae1}};this['_insertAsset'](_0x3609d4,_0x425031,_0x4b532d);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x47a1ba=>{'idle'===_0x47a1ba['detail']['status']&&!_0x47a1ba['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}_insertAsset(_0x34308f,_0x4d15a7,_0x1a9bec){const _0x2f3163=this['_editor']['model']['document']['selection'],_0x4c3c0c=_0x2f3163['getSelectedElement'](),_0x2fc8ec=!(!_0x4c3c0c||!_0x4c3c0c['is']('element','imageInline'));_0x1a9bec['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x34308f,_0x2fc8ec),_0x4d15a7||_0x1a9bec['setSelection'](_0x2f3163['getLastPosition']());}_insertImage(_0x6cf41a,_0x5b1983){const _0x2ee914=this['_editor'],{imageDimension:_0x28c16a,imageFallbackUrl:_0x302df7,imageSources:_0x5d0a83}=_0x6cf41a['attributes'];_0x2ee914['execute']('insertImage',{'imageType':_0x5b1983?'imageInline':null,'source':{'uploadcareImageId':_0x6cf41a['id'],'src':_0x302df7,'sources':_0x5d0a83,..._0x28c16a}});}},z=class extends _0x3083bd{_editing;_controller=null;static get requires(){return[_0x1fa73f,Z];}constructor(_0x57d27b){super(_0x57d27b),this['_editing']=_0x57d27b['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}execute(_0x22e452){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x22e452);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x129541,..._0xb5f0ef}){return _0x33a151(_0x129541,_0xb5f0ef);}static getInfo(_0x203ad1,_0x15f0c5){return _0x432016(_0x203ad1,_0x15f0c5);}},J=class extends _0x51ca24{static get requires(){return[_0x2a7711,_0x490139,_0x9bcb1a,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async afterInit(){const _0x28e24a=this['editor'];if(!_0x28e24a['config']['get']('uploadcare'))return;_0x28e24a['plugins']['get'](_0x9bcb1a)['createUploadAdapter']=_0x30293d=>new X(_0x30293d,_0x28e24a),_0x28e24a['plugins']['get'](_0x2a7711)['on']('uploadComplete',(_0x171c29,{imageElement:_0x4fc353,data:_0x301a4a})=>{_0x28e24a['model']['change'](_0x205bc4=>{_0x205bc4['setAttribute']('uploadcareImageId',_0x301a4a['uploadcareImageId'],_0x4fc353);});});}},X=class{['loader'];editor;controller;constructor(_0x1ad2eb,_0x34a053){this['loader']=_0x1ad2eb,this['editor']=_0x34a053,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4a56f5=await this['loader']['file'];return Q['upload']({'file':_0x4a56f5,'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':_0x3c165e=>{_0x3c165e&&_0x3c165e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3c165e['value']);}})['then'](async _0x3b3757=>{const {imageFallbackUrl:_0x3bc8d6,imageSources:_0x6ce925}=B(_0x3b3757['cdnUrl'],_0x3b3757['imageInfo']['width']);return{'uploadcareImageId':_0x3b3757['uuid'],'default':_0x3bc8d6,'sources':_0x6ce925};})['catch'](()=>{const _0x344352=t('Cannot\x20upload\x20file:')+('\x20'+_0x4a56f5['name']+'.');return Promise['reject'](_0x344352);});}abort(){this['controller']['abort']();}},Z=class extends _0x51ca24{_configElement=null;_ctxElement=null;static get['pluginName'](){return'UploadcareEditing';}static get requires(){return[_0xd2cc51,J,_0x1fa73f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}ucContextId;get configElement(){return this['_configElement'];}get ctxElement(){return this['_ctxElement'];}constructor(_0x3ff1cb){super(_0x3ff1cb),this['ucContextId']=_0x170750();}init(){const _0x5a5cd9=this['editor'];_0x5a5cd9['commands']['add']('uploadcare',new z(_0x5a5cd9));}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 _0x48dcbc=_0x14c7e2['document']['querySelector']('input[uploadcare-file-input]');_0x48dcbc&&_0x48dcbc['remove']();}),async function(_0x5ad168){const _0x4a45b3='4wieLj6qmWZnpxGN9QYyFhU15kOfCBAHt2slISMXP3vErub8za07VTRoKcdDgJ',_0x10a563=0x793e0,_0x357a46={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x1f3d13(_0x1ee22e){const _0x5e1b55=new window['Promise'](_0x481d3b=>{_0x1ee22e['once']('ready',_0x481d3b);}),_0x3e0057=window['Date']['now'](),_0x9ea60f=_0x1ee22e['config']['get']('licenseKey');async function _0x427bbe(){let _0xc49e68,_0x5cf71e=null,_0x1f0135=null;try{return'GPL'==_0x9ea60f?'NotAllowed':(_0xc49e68=_0x460b47(),_0xc49e68?(_0xc49e68['usageEndpoint']&&(_0x1f0135=_0x5d488a(_0xc49e68['usageEndpoint'],_0xc49e68['jti'])),await _0x37aa0e()?_0x4d07f6()?_0x320201()?'Expired':_0x5d8e59()?('evaluation'==_0xc49e68['licenseType']&&(_0x5cf71e=_0x28a809('EvaluationLimit')),await _0x175863()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x320201(){const _0x5a8cbd=['evaluation','trial']['includes'](_0xc49e68['licenseType'])?_0x3e0057/0x3e8:0xe10*_0x10a563;return _0xc49e68['exp']<_0x5a8cbd;}function _0x4d07f6(){const _0x38374d=_0xc49e68['features'];return!!_0x38374d&&(!!_0x38374d['includes']('*')||!!_0x38374d['includes']('UPLC'));}function _0x5d8e59(){const _0x22bdc9=_0xc49e68['licensedHosts'];if(!_0x22bdc9||0x0==_0x22bdc9['length'])return!0x0;const {hostname:_0x5e5e92}=new URL(window['location']['href']);if(_0x22bdc9['includes'](_0x5e5e92))return!0x0;const _0xe2e865=_0x5e5e92['split']('.');return _0x22bdc9['filter'](_0x5b3d0d=>_0x5b3d0d['includes']('*'))['map'](_0x36e5a7=>_0x36e5a7['split']('.'))['filter'](_0x160f79=>_0x160f79['length']<=_0xe2e865['length'])['map'](_0x5c0e19=>Array(_0xe2e865['length']-_0x5c0e19['length'])['fill']('*'===_0x5c0e19[0x0]?'*':'')['concat'](_0x5c0e19))['some'](_0x1c90c1=>_0xe2e865['every']((_0x368917,_0x35fb71)=>_0x1c90c1[_0x35fb71]===_0x368917||'*'===_0x1c90c1[_0x35fb71]));}function _0x175863(){return _0x5cf71e&&_0x1f0135?new window['Promise']((_0x2e0468,_0x48b40c)=>{_0x5cf71e['then'](_0x2e0468,_0x48b40c),_0x1f0135['then'](_0x5e10ec=>{'Valid'!=_0x5e10ec&&_0x2e0468(_0x5e10ec);},_0x48b40c);}):_0x5cf71e||_0x1f0135||'Valid';}}function _0x5d488a(_0x25d558,_0x2b31f3){return new window['Promise'](_0x1910e7=>{if(_0x2d961f())return _0x1910e7('Valid');_0x51fe35(),_0x1ee22e['decorate']('_sendUsageRequest');let _0x1438d9=!0x1;const _0x1adae2=_0x170750();function _0x1051d8(_0x2a9c02){return!!_0x2a9c02&&('object'==typeof _0x2a9c02||'function'==typeof _0x2a9c02)&&'function'==typeof _0x2a9c02['then']&&'function'==typeof _0x2a9c02['catch'];}function _0x38c4e0(_0x1cb9b7){_0x3cf1f(_0x1cb9b7)['then'](_0x36ffcb=>_0x36ffcb&&'ok'==_0x36ffcb['status']?_0x842a2b(_0x27ddb2(_0x1adae2+_0x2b31f3))!=_0x36ffcb['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1d2358=>(_0x1e67c9(),_0x1d2358),()=>{const _0x3a2d40=_0x2e4fe9();return null==_0x3a2d40?(_0x1e67c9(),'Valid'):_0x3e0057-_0x3a2d40>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1910e7)['catch'](()=>{_0x1910e7('UsageLimit');});const _0x345404=0x36ee80;function _0x1e67c9(){const _0x3bcd75='llct-'+_0x842a2b(_0x27ddb2(_0x25d558)),_0x1c56d8=_0x1c4503(_0x842a2b(window['Math']['ceil'](_0x3e0057/_0x345404)));window['localStorage']['setItem'](_0x3bcd75,_0x1c56d8);}function _0x2e4fe9(){const _0x6b5c86='llct-'+_0x842a2b(_0x27ddb2(_0x25d558)),_0x3e3248=window['localStorage']['getItem'](_0x6b5c86);return _0x3e3248?window['parseInt'](_0x1c4503(_0x3e3248),0x10)*_0x345404:null;}function _0x3cf1f(_0x18e7bb){return new window['Promise']((_0x51e4d4,_0x18fd41)=>{_0x18e7bb['then'](_0x51e4d4,_0x18fd41),window['setTimeout'](_0x18fd41,0x1d4c0);});}}_0x1ee22e['on']('_sendUsageRequest',(_0x37087f,_0x29919d)=>{if(_0x29919d[0x0]!=_0x25d558)return _0x1910e7('UsageLimit');_0x29919d[0x1]={..._0x29919d[0x1],'requestId':_0x1adae2};},{'priority':'high'}),_0x1ee22e['on']('_sendUsageRequest',_0x4849da=>{_0x1051d8(_0x4849da['return'])&&(_0x1438d9=!0x0,_0x38c4e0(_0x4849da['return']));},{'priority':'low'}),_0x5e1b55['then'](()=>{_0x1438d9||_0x1910e7('UsageLimit');});});function _0x2d961f(){return'auto'==_0x1ee22e['editing']['view']['_overlayModeHint'];}function _0x51fe35(){_0x1ee22e['editing']['view']['_overlayModeHint']='auto';}}function _0x28a809(_0x40d41a){const _0x5e95f9=[new window['Promise'](_0x3ad8d1=>setTimeout(_0x3ad8d1,0x93ecc)),_0x5e1b55['then'](()=>new window['Promise'](_0x2767f8=>{let _0x46fbe0=0x0;_0x1ee22e['model']['on']('applyOperation',(_0x3fa0f9,_0x21b42a)=>{_0x21b42a[0x0]['isDocumentOperation']&&_0x46fbe0++,0x5e8==_0x46fbe0&&(_0x2767f8(),_0x3fa0f9['off']());});}))];return window['Promise']['race'](_0x5e95f9)['then'](()=>_0x40d41a);}async function _0x4de7cf(){await _0x5e1b55,_0x1ee22e['model']['change']=_0x57f3f6,_0x1ee22e['model']['enqueueChange']=_0x57f3f6,_0x1ee22e['enableReadOnlyMode']('model');}function _0x36ef7b(_0x1c74a3){const _0x42f600=_0x2c59d0();_0x1ee22e[_0x42f600]='uploadcareLicenseKey'+_0x1c74a3,'Valid'!=_0x1c74a3&&_0x4de7cf();}function _0x2c59d0(){const _0x33d6f9=window['String'](window['performance']['now']())['replace']('.','');let _0x24e84c='w';for(let _0x39b851=0x0;_0x39b851<_0x33d6f9['length'];_0x39b851+=0x2){let _0x368b09=window['parseInt'](_0x33d6f9['substring'](_0x39b851,_0x39b851+0x2));_0x368b09>=0x3e&&(_0x368b09-=0x3e),_0x24e84c+=_0x4a45b3[_0x368b09];}return _0x24e84c;}function _0x460b47(){const _0x52848c=_0x9ea60f['split']('.');if(0x3!=_0x52848c['length'])return null;return _0x4dde30(_0x52848c[0x1]);function _0x4dde30(_0x7192dd){const _0x3c902d=_0x157388(_0x7192dd);return _0x3c902d&&_0x593100()?_0x3c902d:null;function _0x593100(){const _0x39d6af=_0x3c902d['jti'],_0x3ff528=window['parseInt'](_0x39d6af['substring'](_0x39d6af['length']-0x8),0x10),_0x51d497={..._0x3c902d,'jti':_0x39d6af['substring'](0x0,_0x39d6af['length']-0x8)};return delete _0x51d497['vc'],_0x27ddb2(_0x51d497)==_0x3ff528;}}}async function _0x37aa0e(){let _0x10daad=!0x0;try{const [_0x5cdc30,_0x3c312a,_0x27ee3b]=_0x9ea60f['split']('.');return _0x1f02cf(_0x5cdc30),await _0x49599c(_0x5cdc30,_0x3c312a,_0x27ee3b),_0x10daad;}catch{return!0x1;}function _0x1f02cf(_0x4cacfe){const _0x48ee4b=_0x157388(_0x4cacfe);_0x48ee4b&&'ES256'==_0x48ee4b['alg']||(_0x10daad=!0x1);}async function _0x49599c(_0x572927,_0x493c9a,_0x5e7f28){const _0x31c81d=window['Uint8Array']['from'](_0x585346(_0x5e7f28),_0x33bb07=>_0x33bb07['charCodeAt'](0x0)),_0x29c25f=new window['TextEncoder']()['encode'](_0x572927+'.'+_0x493c9a),_0x2bc675=window['crypto']['subtle'];if(!_0x2bc675)return;const _0x527c3a=await _0x2bc675['importKey']('jwk',_0x357a46,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2bc675['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x527c3a,_0x31c81d,_0x29c25f)||(_0x10daad=!0x1);}}function _0x157388(_0x4143ac){return _0x4143ac['startsWith']('ey')?JSON['parse'](_0x585346(_0x4143ac)):null;}function _0x585346(_0xb23ce5){return window['atob'](_0xb23ce5['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x27ddb2(_0x5f46a5){let _0x57a110=0x1505;function _0xc23366(_0x497ae0){for(let _0x5d8354=0x0;_0x5d8354<_0x497ae0['length'];_0x5d8354++){const _0x46bbb8=_0x497ae0['charCodeAt'](_0x5d8354);_0x57a110=(_0x57a110<<0x5)+_0x57a110+_0x46bbb8,_0x57a110&=_0x57a110;}}function _0x246df4(_0x1017be){Array['isArray'](_0x1017be)?_0x1017be['forEach'](_0x246df4):_0x1017be&&'object'==typeof _0x1017be?Object['entries'](_0x1017be)['sort']()['forEach'](([_0x98e7be,_0x232ddd])=>{_0xc23366(_0x98e7be),_0x246df4(_0x232ddd);}):_0xc23366(window['String'](_0x1017be));}return _0x246df4(_0x5f46a5),_0x57a110>>>0x0;}function _0x842a2b(_0x562c25){return _0x562c25['toString'](0x10)['padStart'](0x8,'0');}function _0x1c4503(_0x47142c){return _0x47142c['split']('')['reverse']()['join']('');}function _0x57f3f6(){}_0x36ef7b(await _0x427bbe());}_0x1f3d13(_0x5ad168['editor']);}(this);}_initSchema(){const _0x1d54b2=this['editor']['model']['schema'];_0x1d54b2['isRegistered']('imageBlock')&&_0x1d54b2['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1d54b2['isRegistered']('imageInline')&&_0x1d54b2['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}_initConversion(){const _0x208b58=this['editor'];_0x208b58['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x208b58['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2d51c8=>_0x2d51c8['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x19138b=_0x208b58['commands']['get']('replaceImageSource');_0x19138b&&this['listenTo'](_0x19138b,'cleanupImage',(_0x30ae32,[_0x5caf68,_0x347977])=>{_0x5caf68['removeAttribute']('uploadcareImageId',_0x347977);});}_initConfig(){const _0x522053=this['editor']['config']['get']('uploadcare.uploader')||{},_0xab396e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xcf6f91(_0x14c7e2['document'],'uc-config',{..._0x522053,'pubkey':_0xab396e,'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']=_0x2ba088=>{if('closeMax'==_0x2ba088)return'#uc-icon-arrow-down';},_0x14c7e2['document']['body']['appendChild'](this['_configElement']);}_initCtx(){this['_ctxElement']=_0xcf6f91(_0x14c7e2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x14c7e2['document']['body']['appendChild'](this['_ctxElement']);}_initImageProcessingIndicator(){const _0x28a5eb=this['editor']['commands']['get']('insertImage');_0x28a5eb&&this['listenTo'](_0x28a5eb,'execute',()=>{const _0x33d6c7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x33d6c7&&_0x33d6c7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x33d6c7);});});const _0x292932=this['editor']['commands']['get']('uploadcareImageReplace');_0x292932&&this['listenTo'](_0x292932,'execute',()=>{const _0x222e56=this['editor']['model']['document']['selection']['getSelectedElement']();_0x222e56&&_0x222e56['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x222e56);});});}},Y=class extends _0x51ca24{static get requires(){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34283a){super(_0x34283a),_0x34283a['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x344c96['defineComponents'](_0x344c96),this['_defineLocale']();}['_defineLocale'](){const _0x204dfe=this['editor']['config']['get']('uploadcare.locale'),_0x41d940=this['editor']['locale']['contentLanguage'];_0x204dfe&&_0x344c96['defineLocale'](_0x41d940,_0x204dfe);}},tt=class extends _0x1f1b00{constructor(_0xfad55d){super(_0xfad55d);const t=_0xfad55d['t'],_0x5ec8ec=this['bindTemplate'],_0x28ab5c=new _0x136c40();_0x28ab5c['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':[_0x28ab5c,{'text':_0x5ec8ec['to']('imageUploadProgress',_0xdb951a=>t('Loading\x20image...')+'\x20('+(_0xdb951a||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 _0x1f1b00{constructor(_0x46b809){super(_0x46b809);const t=_0x46b809['t'];this['set']('errorType',null);const _0x5d2816=new _0x14f01c(_0x46b809);_0x5d2816['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5d2816['withText']=!0x0,_0x5d2816['class']='ck-button-action',_0x5d2816['on']('execute',()=>{this['fire']('retry');}),_0x5d2816['bind']('isVisible')['to'](this,'errorType',_0x6ae4fd=>'NotFound'!==_0x6ae4fd);const _0xd7a63d=new _0xc2e35();_0xd7a63d['content']=_0x13717d,_0xd7a63d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x40aa83=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':[_0xd7a63d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x40aa83['to']('errorType',_0x223d72=>t('NotFound'!==_0x223d72?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5d2816]},{'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 _0x1f1b00{constructor(_0x53d683,_0x59d6a3){super(_0x53d683);const _0x4b0ef8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x59d6a3,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4b0ef8['to']('imageSrc')}});}},st=class extends F{_items;['_loadingView'];['_errorView'];_editingView;['_focusableView'];constructor(_0x522f98,_0x574a20,_0x33ee9b){super(_0x522f98),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x522f98),this['_errorView']=new et(_0x522f98),this['_editingView']=new it(_0x522f98,_0x33ee9b),this['_focusableView']=new _0x1f1b00(_0x522f98),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x574a20),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'],_0x2955d1=>{this['_addUploadcareImageEditorListeners'](_0x2955d1);});}),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(_0x521b4f,_0x38953f){const _0x5ce08e='uc-cloud-image-editor',_0x25467e=_0x521b4f['querySelector'](_0x5ce08e);if(_0x25467e)return _0x38953f(_0x25467e);const _0x4cec15=new MutationObserver(_0x2df681=>{const _0x97625a=_0x2df681['filter'](_0x538f3f=>_0x538f3f['target']===_0x521b4f&&_0x538f3f['addedNodes']['length']>0x0&&_0x538f3f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5ce08e);_0x97625a['length']&&(_0x4cec15['disconnect'](),_0x38953f(_0x97625a[0x0]['addedNodes'][0x0]));});_0x4cec15['observe'](_0x521b4f,{'childList':!0x0,'subtree':!0x0});}_addUploadcareImageEditorListeners(_0x39c982){_0x39c982['addEventListener']('apply',_0x4ab9c9=>{this['fire']('apply',{'imageSrc':_0x4ab9c9['detail']['cdnUrl']});}),_0x39c982['addEventListener']('cancel',()=>{this['fire']('cancel');});}_addErrorViewListeners(){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const nt=/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2f3ec6();var rt=class extends nt{_editor;['_dialog'];_imageElement;['_imageCache'];_controller;_attributes;constructor(_0x4c3e03,_0xa14ce5,_0x2bacc7){super(),this['_editor']=_0x4c3e03,this['_dialog']=_0xa14ce5,this['_imageElement']=_0x2bacc7,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 _0x3470a0=this['_imageElement'],_0x221387=_0x3470a0['getAttribute']('uploadcareImageId'),_0x44a1d9=_0x3470a0['getAttribute']('src');if(_0x221387)await this['_loadImageInfo'](_0x221387,_0x44a1d9);else{if(this['_imageCache']['has'](_0x44a1d9)){const _0x555ed2=this['_imageCache']['get'](_0x44a1d9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x555ed2['url'],this['imageDimension']=_0x555ed2['dimension'],this['imageId']=_0x555ed2['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x9bc542}=this['_editor'],t=_0x9bc542['t'],_0xd93d96=new st(_0x9bc542,this['imageStatus'],this['_attributes']);_0xd93d96['bind']('status')['to'](this,'imageStatus'),_0xd93d96['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xd93d96['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xd93d96['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xd93d96,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3fb224,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xd93d96,'position':_0x96bcbf['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xd93d96['focus']();},'onHide':()=>{_0xd93d96['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x26bfd4=>!H(_0x26bfd4,_0xd93d96['element'])}});}['_loadImageInfo'](_0x1554ae,_0x464c3d){return Q['getInfo'](_0x1554ae,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x47424a=>{const {width:_0x590d59,height:_0x2b843b}=_0x47424a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x464c3d,this['imageDimension']={'width':_0x590d59,'height':_0x2b843b},this['imageId']=_0x1554ae;})['catch'](_0x565ffd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x565ffd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x232a7b,_0x2b0ebd){return this['_getImageAsFile'](_0x232a7b)['then'](_0x15dc69=>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':_0x2b0ebd['signal'],'file':_0x15dc69,'onProgress':_0x30af94=>{_0x30af94&&_0x30af94['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x30af94['value']));}}))['then'](_0x57e9cc=>{const {width:_0x17f60c,height:_0x2fc4c6}=_0x57e9cc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x57e9cc['cdnUrl'],this['imageDimension']={'width':_0x17f60c,'height':_0x2fc4c6},this['imageId']=_0x57e9cc['uuid'],this['imageUploadProgress']=null;const _0xae827b=_0x232a7b['getAttribute']('src');this['_imageCache']['set'](_0xae827b,{'id':_0x57e9cc['uuid'],'url':_0x57e9cc['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x12fa11=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x12fa11['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}_addEditViewListeners(_0x325cd6,_0xd89e07){_0x325cd6['on']('apply',(_0x2ba99b,_0x44ce53)=>{this['_replaceImage'](_0xd89e07,_0x44ce53['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x325cd6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x325cd6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x62504,_0x3950a8,_0x1140ac){const _0x496dfc=this['_editor'],{width:_0x2026fd,height:_0x5b94bb}=j(_0x3950a8,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3f19ef,imageSources:_0x3ca6ef}=B(_0x3950a8,_0x2026fd);_0x496dfc['model']['change'](_0x568f25=>{if('$graveyard'!==_0x62504['root']['rootName'])_0x568f25['setSelection'](_0x62504,'on'),_0x496dfc['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x62504['getAttributes']()),'uploadcareImageId':_0x1140ac,'src':_0x3f19ef,'sources':_0x3ca6ef,'width':_0x2026fd,'height':_0x5b94bb},_0x62504);else{_0x496dfc['execute']('insertImage',{'imageType':_0x62504['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x62504['getAttributes']()),'uploadcareImageId':_0x1140ac,'src':_0x3f19ef,'sources':_0x3ca6ef,'width':_0x2026fd,'height':_0x5b94bb}});const _0x3e4c02=_0x62504['getChildren']();_0x62504=_0x496dfc['model']['document']['selection']['getSelectedElement']();for(const _0x3c543b of _0x3e4c02)_0x568f25['append'](_0x568f25['cloneElement'](_0x3c543b),_0x62504);}_0x568f25['setSelection'](_0x62504,'on');});}async _getImageAsFile(_0x19728d){const _0x35a0f4=_0x14c7e2['window'],_0x174624=_0x14c7e2['document']['location']['href'],_0x1bc9c3=new _0x35a0f4['URL'](_0x19728d['getAttribute']('src'),_0x174624);if('data:'===_0x1bc9c3['protocol']){const _0x3f3d8f=_0x1bc9c3['href']['split'](','),_0x4f53fa=_0x3f3d8f[0x0]['match'](/:(.*?);/)[0x1],_0x69946d=_0x4f53fa['split']('/')[0x1],_0x306d70=_0x35a0f4['atob'](_0x3f3d8f[_0x3f3d8f['length']-0x1]);let _0x20b3b3=_0x306d70['length'];const _0x1dbb35=new _0x35a0f4['Uint8Array'](_0x20b3b3);for(;_0x20b3b3--;)_0x1dbb35[_0x20b3b3]=_0x306d70['charCodeAt'](_0x20b3b3);return new _0x35a0f4['File']([_0x1dbb35],'image.'+_0x69946d,{'type':_0x4f53fa});}const _0x24084b=_0x1bc9c3['href']['split']('/'),_0xa0c70f=_0x24084b[_0x24084b['length']-0x1],_0x266c83=_0xa0c70f['split']('.')[0x1];return _0x35a0f4['fetch'](_0x1bc9c3['href'])['then'](_0x232f73=>_0x232f73['clone']()['blob']())['then'](_0xa99163=>new _0x35a0f4['File']([_0xa99163],_0xa0c70f,{'type':'image/'+_0x266c83}));}},at=class extends _0x3083bd{imageEditController;static get requires(){return[_0x1fa73f];}_isEditable;constructor(_0xdf9128){super(_0xdf9128),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xb15376){const _0x15eabf=M(_0xb15376);return _0xe15f02=>!(!_0xe15f02||!_0xe15f02['is']('element','imageBlock')&&!_0xe15f02['is']('element','imageInline'))&&(!!_0xe15f02['hasAttribute']('uploadcareImageId')||!!_0xe15f02['hasAttribute']('src')&&_0x15eabf(_0xe15f02['getAttribute']('src')));}(_0xdf9128['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3cef18=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3cef18);}execute(){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x280d0c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x280d0c&&(_0x280d0c['is']('element','imageBlock')||_0x280d0c['is']('element','imageInline'))&&(this['imageEditController']=new rt(this['editor'],this['editor']['plugins']['get'](_0x1fa73f),_0x280d0c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x3083bd{['refresh'](){const _0x21face=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x21face&&(_0x21face['is']('element','imageBlock')||_0x21face['is']('element','imageInline')));}execute(_0x1c7ec9){const _0x44107c=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x457f1d=>{_0x457f1d['setAttributes'](_0x1c7ec9,_0x44107c),_0x457f1d['removeAttribute']('srcset',_0x44107c),_0x457f1d['removeAttribute']('sizes',_0x44107c);});}},ct=class extends _0x51ca24{static get['pluginName'](){return'UploadcareImageEditEditing';}static get requires(){return[Z,_0x4a71dc,_0x399c00,_0x4b54a8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x40a13f}=this;_0x40a13f['commands']['add']('uploadcareImageEdit',new at(_0x40a13f)),_0x40a13f['commands']['add']('uploadcareImageReplace',new ot(_0x40a13f));}},lt=class extends _0x51ca24{['_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 _0x410904=this['editor'];_0x410904['ui']['componentFactory']['add']('uploadcareImageEdit',_0x43bbb7=>{const _0x2a7253=_0x410904['commands']['get']('uploadcareImageEdit'),_0x1fd75e=new _0x14f01c(_0x43bbb7),t=_0x43bbb7['t'];return _0x1fd75e['set']({'icon':_0x3fb224,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1fd75e['bind']('isEnabled')['to'](_0x2a7253),_0x1fd75e['bind']('isOn')['to'](_0x2a7253,'isActive'),this['listenTo'](_0x1fd75e,'execute',()=>{_0x410904['execute']('uploadcareImageEdit'),_0x410904['editing']['view']['focus']();}),_0x1fd75e;}),this['_initConfig']();}_initConfig(){const _0x472cd6=_0xcf6f91(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x472cd6),this['listenTo'](this['editor'],'destroy',()=>{_0x472cd6['remove']();});}},ut=class extends _0x51ca24{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
|
+
(_0x155cd3=>{const {af:_0x540b36}={'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.':''}}};_0x155cd3['af']||={'dictionary':{},'getPluralForm':null},_0x155cd3['af']['dictionary']=Object['assign'](_0x155cd3['af']['dictionary'],_0x540b36['dictionary']),_0x540b36['getPluralForm']&&(_0x155cd3['af']['getPluralForm']=_0x540b36['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2a75c8=>{const {ar:_0x14855e}={'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مصدرها.'}}};_0x2a75c8['ar']||={'dictionary':{},'getPluralForm':null},_0x2a75c8['ar']['dictionary']=Object['assign'](_0x2a75c8['ar']['dictionary'],_0x14855e['dictionary']),_0x14855e['getPluralForm']&&(_0x2a75c8['ar']['getPluralForm']=_0x14855e['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x18297b=>{const {ast:_0xa9f7cf}={'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.':''}}};_0x18297b['ast']||={'dictionary':{},'getPluralForm':null},_0x18297b['ast']['dictionary']=Object['assign'](_0x18297b['ast']['dictionary'],_0xa9f7cf['dictionary']),_0xa9f7cf['getPluralForm']&&(_0x18297b['ast']['getPluralForm']=_0xa9f7cf['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x385c7e=>{const {az:_0x1aef90}={'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.':''}}};_0x385c7e['az']||={'dictionary':{},'getPluralForm':null},_0x385c7e['az']['dictionary']=Object['assign'](_0x385c7e['az']['dictionary'],_0x1aef90['dictionary']),_0x1aef90['getPluralForm']&&(_0x385c7e['az']['getPluralForm']=_0x1aef90['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x294a07=>{const {be:_0x2d0b01}={'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.':''}}};_0x294a07['be']||={'dictionary':{},'getPluralForm':null},_0x294a07['be']['dictionary']=Object['assign'](_0x294a07['be']['dictionary'],_0x2d0b01['dictionary']),_0x2d0b01['getPluralForm']&&(_0x294a07['be']['getPluralForm']=_0x2d0b01['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x24d22e=>{const {bg:_0xf5bb37}={'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премахнат.'}}};_0x24d22e['bg']||={'dictionary':{},'getPluralForm':null},_0x24d22e['bg']['dictionary']=Object['assign'](_0x24d22e['bg']['dictionary'],_0xf5bb37['dictionary']),_0xf5bb37['getPluralForm']&&(_0x24d22e['bg']['getPluralForm']=_0xf5bb37['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x901b2e=>{const {bn:_0x1cd9d3}={'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হয়েছে।'}}};_0x901b2e['bn']||={'dictionary':{},'getPluralForm':null},_0x901b2e['bn']['dictionary']=Object['assign'](_0x901b2e['bn']['dictionary'],_0x1cd9d3['dictionary']),_0x1cd9d3['getPluralForm']&&(_0x901b2e['bn']['getPluralForm']=_0x1cd9d3['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4dc1de=>{const {bs:_0x572c59}={'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.':''}}};_0x4dc1de['bs']||={'dictionary':{},'getPluralForm':null},_0x4dc1de['bs']['dictionary']=Object['assign'](_0x4dc1de['bs']['dictionary'],_0x572c59['dictionary']),_0x572c59['getPluralForm']&&(_0x4dc1de['bs']['getPluralForm']=_0x572c59['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4577bf=>{const {ca:_0x314e0b}={'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.'}}};_0x4577bf['ca']||={'dictionary':{},'getPluralForm':null},_0x4577bf['ca']['dictionary']=Object['assign'](_0x4577bf['ca']['dictionary'],_0x314e0b['dictionary']),_0x314e0b['getPluralForm']&&(_0x4577bf['ca']['getPluralForm']=_0x314e0b['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5cb2d2=>{const {cs:_0x324f1b}={'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.'}}};_0x5cb2d2['cs']||={'dictionary':{},'getPluralForm':null},_0x5cb2d2['cs']['dictionary']=Object['assign'](_0x5cb2d2['cs']['dictionary'],_0x324f1b['dictionary']),_0x324f1b['getPluralForm']&&(_0x5cb2d2['cs']['getPluralForm']=_0x324f1b['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x161056=>{const {da:_0x5dfb3a}={'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.'}}};_0x161056['da']||={'dictionary':{},'getPluralForm':null},_0x161056['da']['dictionary']=Object['assign'](_0x161056['da']['dictionary'],_0x5dfb3a['dictionary']),_0x5dfb3a['getPluralForm']&&(_0x161056['da']['getPluralForm']=_0x5dfb3a['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x305ca4=>{const {'de-ch':_0x239f89}={'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.':''}}};_0x305ca4['de-ch']||={'dictionary':{},'getPluralForm':null},_0x305ca4['de-ch']['dictionary']=Object['assign'](_0x305ca4['de-ch']['dictionary'],_0x239f89['dictionary']),_0x239f89['getPluralForm']&&(_0x305ca4['de-ch']['getPluralForm']=_0x239f89['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x58af64=>{const {de:_0x4516e2}={'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.'}}};_0x58af64['de']||={'dictionary':{},'getPluralForm':null},_0x58af64['de']['dictionary']=Object['assign'](_0x58af64['de']['dictionary'],_0x4516e2['dictionary']),_0x4516e2['getPluralForm']&&(_0x58af64['de']['getPluralForm']=_0x4516e2['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xbc4687=>{const {el:_0x56c9d2}={'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καταργηθεί.'}}};_0xbc4687['el']||={'dictionary':{},'getPluralForm':null},_0xbc4687['el']['dictionary']=Object['assign'](_0xbc4687['el']['dictionary'],_0x56c9d2['dictionary']),_0x56c9d2['getPluralForm']&&(_0xbc4687['el']['getPluralForm']=_0x56c9d2['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x51cb91=>{const {'en-au':_0x58f513}={'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.'}}};_0x51cb91['en-au']||={'dictionary':{},'getPluralForm':null},_0x51cb91['en-au']['dictionary']=Object['assign'](_0x51cb91['en-au']['dictionary'],_0x58f513['dictionary']),_0x58f513['getPluralForm']&&(_0x51cb91['en-au']['getPluralForm']=_0x58f513['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x171adc=>{const {'en-gb':_0x17e75a}={'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.'}}};_0x171adc['en-gb']||={'dictionary':{},'getPluralForm':null},_0x171adc['en-gb']['dictionary']=Object['assign'](_0x171adc['en-gb']['dictionary'],_0x17e75a['dictionary']),_0x17e75a['getPluralForm']&&(_0x171adc['en-gb']['getPluralForm']=_0x17e75a['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2f35d2=>{const {en:_0x4e6324}={'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.'}}};_0x2f35d2['en']||={'dictionary':{},'getPluralForm':null},_0x2f35d2['en']['dictionary']=Object['assign'](_0x2f35d2['en']['dictionary'],_0x4e6324['dictionary']),_0x4e6324['getPluralForm']&&(_0x2f35d2['en']['getPluralForm']=_0x4e6324['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|