@ckeditor/ckeditor5-uploadcare 48.5.0-alpha.0 → 48.5.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _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 _0x156dc2,Plugin as _0x34daf5}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x171b08,IconError as _0x510b2d,IconFacebook as _0x2f8874,IconGoogleDrive as _0x444904,IconGooglePhotos as _0x3a66c8,IconOneDrive as _0x240be7,IconUploadcareImageEdit as _0x40ecc3,IconUploadcareImageUpload as _0xe3a25d,IconUploadcareLink as _0x2f7360}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x132e37,Dialog as _0x19e9a8,DialogViewPosition as _0x1d4d33,FocusCycler as _0x1d4657,IconView as _0x589907,MenuBarMenuListItemButtonView as _0x21f668,Notification as _0x2b28a9,SpinnerView as _0x2cc1bd,View as _0x4fdd4a}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x1bc89a,FocusTracker as _0x42896a,ObservableMixin as _0x3fae10,createElement as _0x1f0b24,getAncestors as _0x190a9c,global as _0x9ae635,uid as _0xd84b24}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x42cebf,ImageUploadEditing as _0x39c9e2,ImageUploadProgress as _0x431de7,ImageUtils as _0x187a9d,PictureEditing as _0x2ae5bf}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x4499f5}from'@ckeditor/ckeditor5-upload';import{info as _0x1a29af,uploadFile as _0x18029c}from'@uploadcare/upload-client';import*as _0x4d6e90 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x2bf331,_0x1e0106,_0x3e28a3){const t=_0x2bf331['t'],_0x2369eb=_0x2bf331['t'];switch(_0x1e0106){case'local':return{'text':_0x2369eb('Insert'===_0x3e28a3?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2369eb('From\x20computer')};case'url':return{'text':'Insert'===_0x3e28a3?_0x2369eb('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2369eb('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x3e28a3?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x3e28a3?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x3e28a3?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x3e28a3?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x3e28a3?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1e0106;}}var V=class extends _0x34daf5{['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 _0x7bf3b=[this['editor']];for(const _0x140ad2 of _0x7bf3b){let _0x1ed91f;for(const _0x575661 in _0x140ad2){const _0x2befc3=_0x575661,_0x4bad4f=_0x140ad2[_0x2befc3];if('uploadcareLicenseKeyValid'==_0x4bad4f||'uploadcareLicenseKeyInvalid'==_0x4bad4f||'uploadcareLicenseKeyExpired'==_0x4bad4f||'uploadcareLicenseKeyDomainLimit'==_0x4bad4f||'uploadcareLicenseKeyNotAllowed'==_0x4bad4f||'uploadcareLicenseKeyEvaluationLimit'==_0x4bad4f||'uploadcareLicenseKeyUsageLimit'==_0x4bad4f){delete _0x140ad2[_0x2befc3],_0x1ed91f=_0x4bad4f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1ed91f&&_0x140ad2['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1ed91f&&_0x140ad2['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1ed91f&&_0x140ad2['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1ed91f&&_0x140ad2['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1ed91f&&_0x140ad2['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1ed91f&&_0x140ad2['_showLicenseError']('usageLimit');}},0x3e8);}afterInit(){const {editor:_0x2f353b}=this,_0x167a13=_0x2f353b['commands']['get']('uploadcare');if(!_0x167a13)return;const _0xb2e5c8=this['_normalizeConfigSourceList'](_0x2f353b['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x7f7ed8,_0x4de951)=>{const _0x349f17=this['_getIntegrationKey'](_0x4de951['type']);return _0x7f7ed8[_0x349f17]||(_0x7f7ed8[_0x349f17]=[]),_0x7f7ed8[_0x349f17]['push'](_0x4de951),_0x7f7ed8;},{});_0x2f353b['plugins']['has']('ImageInsertUI')&&_0x2f353b['commands']['get']('uploadcare')&&Object['entries'](_0xb2e5c8)['forEach'](([_0x3fe708,_0x1cfec4])=>{_0x2f353b['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3fe708,'observable':()=>_0x167a13,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1cfec4),'formViewCreator':()=>this['_createDropdownButtons'](_0x1cfec4),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1cfec4),'override':'assetManager'!==_0x3fe708});});}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_normalizeConfigSourceList(_0x345dc8){const {locale:_0x277513}=this['editor'];return _0x345dc8['map'](_0x4895e9=>{const _0x2eda95=T(_0x277513,_0x4895e9,'Insert');switch(_0x4895e9){case'local':return{'icon':_0xe3a25d,'type':'local',..._0x2eda95};case'url':return{'icon':_0x2f7360,'type':'url',..._0x2eda95};case'dropbox':return{'icon':_0x171b08,'type':'dropbox',..._0x2eda95};case'facebook':return{'icon':_0x2f8874,'type':'facebook',..._0x2eda95};case'gdrive':return{'icon':_0x444904,'type':'gdrive',..._0x2eda95};case'gphotos':return{'icon':_0x3a66c8,'type':'gphotos',..._0x2eda95};case'onedrive':return{'icon':_0x240be7,'type':'onedrive',..._0x2eda95};}});}_getIntegrationKey(_0x5925d7){switch(_0x5925d7){case'local':return'upload';case'url':return'url';default:return'assetManager';}}_createButton(_0x299472,_0x219b67){const _0x8db635=this['editor'],_0x541195=new _0x299472(_0x8db635['locale']),_0x2fe29e=_0x8db635['commands']['get']('uploadcare');return _0x541195['bind']('isEnabled')['to'](_0x2fe29e),_0x541195['on']('execute',()=>{_0x2fe29e['execute'](_0x219b67);}),_0x541195;}_createToolbarButton(_0x2e28dd){const {locale:_0x31dc6f}=this['editor'],_0x1394a5=this['editor']['plugins']['get']('ImageInsertUI'),_0x19ead8=_0x2e28dd[0x0],_0x50953d=this['_createButton'](_0x132e37,_0x19ead8['type']);return _0x50953d['icon']=_0x19ead8['icon'],_0x50953d['bind']('label')['to'](_0x1394a5,'isImageSelected',_0x48220a=>T(_0x31dc6f,_0x19ead8['type'],_0x48220a?'Replace':'Insert')['text']),_0x50953d['tooltip']=!0x0,_0x50953d;}_createDropdownButtons(_0x3fdec9){const {locale:_0x529f89}=this['editor'],_0x55ad3f=this['editor']['plugins']['get']('ImageInsertUI');return _0x3fdec9['map'](_0x4d4da5=>{const _0x454625=this['_createButton'](_0x132e37,_0x4d4da5['type']);return _0x454625['withText']=!0x0,_0x454625['icon']=_0x4d4da5['icon'],_0x454625['bind']('label')['to'](_0x55ad3f,'isImageSelected',_0x3f0079=>T(_0x529f89,_0x4d4da5['type'],_0x3f0079?'Replace':'Insert')['text']),_0x454625;});}_createMenuBarButtons(_0x42141e){return _0x42141e['map'](_0x41934d=>{const _0xe3a80b=this['_createButton'](_0x21f668,_0x41934d['type']);return _0xe3a80b['icon']=_0x41934d['icon'],_0xe3a80b['label']=_0x41934d['shortText'],_0xe3a80b;});}},F=class extends _0x4fdd4a{['focusTracker'];['focusCycler'];constructor(_0x2248d4){super(_0x2248d4),this['focusTracker']=new _0x42896a(),this['focusCycler']=new _0x1d4657({'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(_0x308af8,_0x1dadb6){super(_0x308af8),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-'+_0x1dadb6}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x5de3f1,_0x286e60){const _0x1d8672=_0x5de3f1['replace'](/\/$/,'');return{'imageFallbackUrl':_0x5de3f1,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x472312=>_0x472312<_0x286e60)['map'](_0x3e3d5c=>_0x1d8672+'/-/resize/'+_0x3e3d5c+'x/\x20'+_0x3e3d5c+'w'),_0x5de3f1+'\x20'+_0x286e60+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x286e60+'px)\x20100vw,\x20'+_0x286e60+'px','type':'image/webp'}]};}function j(_0x4e1d15,_0x3e17,_0x4644af){const _0x1bcfa3=_0x4e1d15['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1bcfa3?parseInt(_0x1bcfa3[0x1],0xa):_0x3e17,'height':_0x1bcfa3?parseInt(_0x1bcfa3[0x2],0xa):_0x4644af};}function q(_0x14ff03,_0x103167){const _0x5b6697=new(_0x1bc89a())(),_0xd2a515=_0x14ff03['plugins']['get']('ImageUtils'),_0x127ddb=_0x14ff03['editing']['mapper']['toViewElement'](_0x103167),_0x5bb407=_0xd2a515['findViewImgElement'](_0x127ddb),_0x1f7883=_0x14ff03['editing']['view']['domConverter']['viewToDom'](_0x5bb407),_0x59d2fb=_0x103167['getAttribute']('width'),_0xda9513=_0x103167['getAttribute']('height'),_0x14f6ff='image-processing';_0x14ff03['editing']['view']['change'](_0x2dd210=>{_0x2dd210['addClass'](_0x14f6ff,_0x127ddb),_0x2dd210['setStyle']('aspect-ratio',_0x59d2fb+'/'+_0xda9513,_0x5bb407);}),_0x5b6697['listenTo'](_0x1f7883,'load',()=>{_0x5b6697['stopListening'](_0x1f7883,'load'),_0x14ff03['editing']['view']['change'](_0x2f54db=>{_0x2f54db['removeClass'](_0x14f6ff,_0x127ddb),_0x2f54db['removeStyle']('aspect-ratio',_0x5bb407);});});}function M(_0x3679ee){if(Array['isArray'](_0x3679ee)){const _0x1a580f=_0x3679ee['map'](M);return _0xd69ca2=>_0x1a580f['some'](_0x3cff60=>_0x3cff60(_0xd69ca2));}if('origin'==_0x3679ee){const _0x3a604=_0x9ae635['window']['location']['origin'];return _0x26c2a4=>new URL(_0x26c2a4,_0x9ae635['document']['baseURI'])['origin']==_0x3a604;}return'function'==typeof _0x3679ee?_0x3679ee:_0x3679ee instanceof RegExp?_0xf379a1=>!(!_0xf379a1['match'](_0x3679ee)&&!_0xf379a1['replace'](/^https?:\/\//,'')['match'](_0x3679ee)):()=>!0x1;}function H(_0x55f36d,_0x68e1c4){return _0x190a9c(_0x55f36d['target'])['includes'](_0x68e1c4);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3fae10();var G=class extends W{_editor;['_dialog'];_editing;['_api'];_type=null;['_formView']=null;constructor(_0x217d74,_0x2bfdf7,_0x330e02){super(),this['_editor']=_0x217d74,this['_editing']=_0x2bfdf7,this['_dialog']=_0x217d74['plugins']['get'](_0x19e9a8),this['_api']=_0x2bfdf7['ctxElement']['getAPI'](),this['_type']=_0x330e02,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:_0x3ecc35,model:_0x1fa1bd}=this['_editor'],_0x466241=_0x1fa1bd['document']['selection']['getSelectedElement'](),_0x49cc52=_0x466241&&(_0x466241['is']('element','imageBlock')||_0x466241['is']('element','imageInline'));this['_formView']=new $(_0x3ecc35,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xe3a25d,'title':T(_0x3ecc35,this['_type'],_0x49cc52?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1d4d33['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x41fab6=>!H(_0x41fab6,this['_formView']['element'])}});}_initListeners(){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2ffce6}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1b63d1=>{const _0xd63765=_0x2ffce6['length'];for(const _0x52e048 of _0x2ffce6){const _0x2e0995=_0x52e048===_0x2ffce6[_0xd63765-0x1],{cdnUrl:_0xd1475a,fileInfo:_0x1aca8f}=_0x52e048;if(!_0xd1475a||!_0x1aca8f)continue;const {width:_0x5ea7ec,height:_0x275abd}=_0x1aca8f['imageInfo'],_0x152db7=j(_0xd1475a,_0x5ea7ec,_0x275abd),_0xd1950f=B(_0xd1475a,_0x152db7['width']),_0x3a2683={'id':_0x1aca8f['uuid'],'type':'image','attributes':{'imageDimension':_0x152db7,..._0xd1950f}};this['_insertAsset'](_0x3a2683,_0x2e0995,_0x1b63d1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3a4edd=>{'idle'===_0x3a4edd['detail']['status']&&!_0x3a4edd['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}_insertAsset(_0x40b44a,_0x1861a6,_0x43261d){const _0x16ffd8=this['_editor']['model']['document']['selection'],_0x288cc8=_0x16ffd8['getSelectedElement'](),_0x36da05=!(!_0x288cc8||!_0x288cc8['is']('element','imageInline'));_0x43261d['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x40b44a,_0x36da05),_0x1861a6||_0x43261d['setSelection'](_0x16ffd8['getLastPosition']());}_insertImage(_0x56daba,_0x11be94){const _0x4d0052=this['_editor'],{imageDimension:_0x3e3dce,imageFallbackUrl:_0xf828b8,imageSources:_0xd82ffb}=_0x56daba['attributes'];_0x4d0052['execute']('insertImage',{'imageType':_0x11be94?'imageInline':null,'source':{'uploadcareImageId':_0x56daba['id'],'src':_0xf828b8,'sources':_0xd82ffb,..._0x3e3dce}});}},z=class extends _0x156dc2{_editing;_controller=null;static get requires(){return[_0x19e9a8,Z];}constructor(_0x2364e6){super(_0x2364e6),this['_editing']=_0x2364e6['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}execute(_0x31bbb9){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x31bbb9);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x2d7174,..._0x145cbc}){return _0x18029c(_0x2d7174,_0x145cbc);}static getInfo(_0x27b32f,_0x20b313){return _0x1a29af(_0x27b32f,_0x20b313);}},J=class extends _0x34daf5{static get requires(){return[_0x39c9e2,_0x431de7,_0x4499f5,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async afterInit(){const _0x51a6f6=this['editor'];if(!_0x51a6f6['config']['get']('uploadcare'))return;_0x51a6f6['plugins']['get'](_0x4499f5)['createUploadAdapter']=_0x1ac610=>new X(_0x1ac610,_0x51a6f6),_0x51a6f6['plugins']['get'](_0x39c9e2)['on']('uploadComplete',(_0x1d517f,{imageElement:_0x54621d,data:_0x18340c})=>{_0x51a6f6['model']['change'](_0x25fe35=>{_0x25fe35['setAttribute']('uploadcareImageId',_0x18340c['uploadcareImageId'],_0x54621d);});});}},X=class{['loader'];editor;controller;constructor(_0x26e18a,_0x4beb6e){this['loader']=_0x26e18a,this['editor']=_0x4beb6e,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x36dc39=await this['loader']['file'];return Q['upload']({'file':_0x36dc39,'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':_0x14b789=>{_0x14b789&&_0x14b789['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x14b789['value']);}})['then'](async _0x1e98e=>{const {imageFallbackUrl:_0x53bae6,imageSources:_0x4375b0}=B(_0x1e98e['cdnUrl'],_0x1e98e['imageInfo']['width']);return{'uploadcareImageId':_0x1e98e['uuid'],'default':_0x53bae6,'sources':_0x4375b0};})['catch'](()=>{const _0xc41218=t('Cannot\x20upload\x20file:')+('\x20'+_0x36dc39['name']+'.');return Promise['reject'](_0xc41218);});}abort(){this['controller']['abort']();}},Z=class extends _0x34daf5{_configElement=null;_ctxElement=null;static get['pluginName'](){return'UploadcareEditing';}static get requires(){return[_0x2ae5bf,J,_0x19e9a8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}ucContextId;get configElement(){return this['_configElement'];}get ctxElement(){return this['_ctxElement'];}constructor(_0x17705e){super(_0x17705e),this['ucContextId']=_0xd84b24();}init(){const _0x278d57=this['editor'];_0x278d57['commands']['add']('uploadcare',new z(_0x278d57));}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 _0x56ddea=_0x9ae635['document']['querySelector']('input[uploadcare-file-input]');_0x56ddea&&_0x56ddea['remove']();}),async function(_0x4c5d46){const _0x20570f='4wieLj6qmWZnpxGN9QYyFhU15kOfCBAHt2slISMXP3vErub8za07VTRoKcdDgJ',_0x146991=0x793f8,_0x3d175c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x377e3a(_0xb11664){const _0x233136=new window['Promise'](_0x3a8313=>{_0xb11664['once']('ready',_0x3a8313);}),_0xe60845=window['Date']['now'](),_0x35fef0=_0xb11664['config']['get']('licenseKey');async function _0x1d534a(){let _0x25ddd6,_0x3ca374=null,_0x343d87=null;try{return'GPL'==_0x35fef0?'NotAllowed':(_0x25ddd6=_0x307e95(),_0x25ddd6?(_0x25ddd6['usageEndpoint']&&(_0x343d87=_0x257f25(_0x25ddd6['usageEndpoint'],_0x25ddd6['jti'])),await _0x22733d()?_0x559dfb()?_0x45f60e()?'Expired':_0x49020e()?('evaluation'==_0x25ddd6['licenseType']&&(_0x3ca374=_0x556413('EvaluationLimit')),await _0x310c71()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x45f60e(){const _0x32354c=['evaluation','trial']['includes'](_0x25ddd6['licenseType'])?_0xe60845/0x3e8:0xe10*_0x146991;return _0x25ddd6['exp']<_0x32354c;}function _0x559dfb(){const _0x294ae1=_0x25ddd6['features'];return!!_0x294ae1&&(!!_0x294ae1['includes']('*')||!!_0x294ae1['includes']('UPLC'));}function _0x49020e(){const _0x5bab4d=_0x25ddd6['licensedHosts'];if(!_0x5bab4d||0x0==_0x5bab4d['length'])return!0x0;const {hostname:_0x1a1fc4}=new URL(window['location']['href']);if(_0x5bab4d['includes'](_0x1a1fc4))return!0x0;const _0x5dc553=_0x1a1fc4['split']('.');return _0x5bab4d['filter'](_0x4bbc0e=>_0x4bbc0e['includes']('*'))['map'](_0x4c16e0=>_0x4c16e0['split']('.'))['filter'](_0x58666d=>_0x58666d['length']<=_0x5dc553['length'])['map'](_0x8d33f3=>Array(_0x5dc553['length']-_0x8d33f3['length'])['fill']('*'===_0x8d33f3[0x0]?'*':'')['concat'](_0x8d33f3))['some'](_0x5ac9b6=>_0x5dc553['every']((_0x239ce1,_0x235999)=>_0x5ac9b6[_0x235999]===_0x239ce1||'*'===_0x5ac9b6[_0x235999]));}function _0x310c71(){return _0x3ca374&&_0x343d87?new window['Promise']((_0x2b6351,_0x366c9b)=>{_0x3ca374['then'](_0x2b6351,_0x366c9b),_0x343d87['then'](_0x271f1b=>{'Valid'!=_0x271f1b&&_0x2b6351(_0x271f1b);},_0x366c9b);}):_0x3ca374||_0x343d87||'Valid';}}function _0x257f25(_0x365403,_0x345c44){return new window['Promise'](_0x2e5bb3=>{if(_0x298d37())return _0x2e5bb3('Valid');_0x3e3631(),_0xb11664['decorate']('_sendUsageRequest');let _0x5d343d=!0x1;const _0x22d143=_0xd84b24();function _0x2dcf39(_0xb25ad5){return!!_0xb25ad5&&('object'==typeof _0xb25ad5||'function'==typeof _0xb25ad5)&&'function'==typeof _0xb25ad5['then']&&'function'==typeof _0xb25ad5['catch'];}function _0x53a22a(_0x4b56c4){_0x5cc804(_0x4b56c4)['then'](_0x392f91=>_0x392f91&&'ok'==_0x392f91['status']?_0x41118a(_0x19571a(_0x22d143+_0x345c44))!=_0x392f91['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x418350=>(_0x1f6e11(),_0x418350),()=>{const _0x32410a=_0x39cb4e();return null==_0x32410a?(_0x1f6e11(),'Valid'):_0xe60845-_0x32410a>0x240c8400?'UsageLimit':'Valid';})['then'](_0x2e5bb3)['catch'](()=>{_0x2e5bb3('UsageLimit');});const _0x1010d7=0x36ee80;function _0x1f6e11(){const _0x537c89='llct-'+_0x41118a(_0x19571a(_0x365403)),_0x306b5b=_0x200d7e(_0x41118a(window['Math']['ceil'](_0xe60845/_0x1010d7)));window['localStorage']['setItem'](_0x537c89,_0x306b5b);}function _0x39cb4e(){const _0x5ec9cb='llct-'+_0x41118a(_0x19571a(_0x365403)),_0x2f3673=window['localStorage']['getItem'](_0x5ec9cb);return _0x2f3673?window['parseInt'](_0x200d7e(_0x2f3673),0x10)*_0x1010d7:null;}function _0x5cc804(_0x124f23){return new window['Promise']((_0x2b369b,_0x399f1e)=>{_0x124f23['then'](_0x2b369b,_0x399f1e),window['setTimeout'](_0x399f1e,0x1d4c0);});}}_0xb11664['on']('_sendUsageRequest',(_0x181b6a,_0x1dd0f1)=>{if(_0x1dd0f1[0x0]!=_0x365403)return _0x2e5bb3('UsageLimit');_0x1dd0f1[0x1]={..._0x1dd0f1[0x1],'requestId':_0x22d143};},{'priority':'high'}),_0xb11664['on']('_sendUsageRequest',_0xbd5a19=>{_0x2dcf39(_0xbd5a19['return'])&&(_0x5d343d=!0x0,_0x53a22a(_0xbd5a19['return']));},{'priority':'low'}),_0x233136['then'](()=>{_0x5d343d||_0x2e5bb3('UsageLimit');});});function _0x298d37(){return'auto'==_0xb11664['editing']['view']['_overlayModeHint'];}function _0x3e3631(){_0xb11664['editing']['view']['_overlayModeHint']='auto';}}function _0x556413(_0x3c2a7d){const _0x14bd6c=[new window['Promise'](_0xd0e102=>setTimeout(_0xd0e102,0x93ecc)),_0x233136['then'](()=>new window['Promise'](_0x13fedf=>{let _0x2291c5=0x0;_0xb11664['model']['on']('applyOperation',(_0x128fbb,_0x1b79e8)=>{_0x1b79e8[0x0]['isDocumentOperation']&&_0x2291c5++,0x5e8==_0x2291c5&&(_0x13fedf(),_0x128fbb['off']());});}))];return window['Promise']['race'](_0x14bd6c)['then'](()=>_0x3c2a7d);}async function _0x373248(){await _0x233136,_0xb11664['model']['change']=_0x38e5d9,_0xb11664['model']['enqueueChange']=_0x38e5d9,_0xb11664['enableReadOnlyMode']('model');}function _0x4e7576(_0x5552fe){const _0x249afb=_0x3240ab();_0xb11664[_0x249afb]='uploadcareLicenseKey'+_0x5552fe,'Valid'!=_0x5552fe&&_0x373248();}function _0x3240ab(){const _0x41b883=window['String'](window['performance']['now']())['replace']('.','');let _0x34a48e='w';for(let _0x4d6c99=0x0;_0x4d6c99<_0x41b883['length'];_0x4d6c99+=0x2){let _0x3f5f88=window['parseInt'](_0x41b883['substring'](_0x4d6c99,_0x4d6c99+0x2));_0x3f5f88>=0x3e&&(_0x3f5f88-=0x3e),_0x34a48e+=_0x20570f[_0x3f5f88];}return _0x34a48e;}function _0x307e95(){const _0x4a9daf=_0x35fef0['split']('.');if(0x3!=_0x4a9daf['length'])return null;return _0x3186bf(_0x4a9daf[0x1]);function _0x3186bf(_0x23133e){const _0x384319=_0x4cbd48(_0x23133e);return _0x384319&&_0x3e50c7()?_0x384319:null;function _0x3e50c7(){const _0x36c49e=_0x384319['jti'],_0x311209=window['parseInt'](_0x36c49e['substring'](_0x36c49e['length']-0x8),0x10),_0x2bdf07={..._0x384319,'jti':_0x36c49e['substring'](0x0,_0x36c49e['length']-0x8)};return delete _0x2bdf07['vc'],_0x19571a(_0x2bdf07)==_0x311209;}}}async function _0x22733d(){let _0x4fab83=!0x0;try{const [_0x4e3d1c,_0x20298f,_0x42c6ce]=_0x35fef0['split']('.');return _0x12e059(_0x4e3d1c),await _0x27552c(_0x4e3d1c,_0x20298f,_0x42c6ce),_0x4fab83;}catch{return!0x1;}function _0x12e059(_0x42ae79){const _0x3458c3=_0x4cbd48(_0x42ae79);_0x3458c3&&'ES256'==_0x3458c3['alg']||(_0x4fab83=!0x1);}async function _0x27552c(_0x31eb76,_0x552369,_0x19e6aa){const _0x46b593=window['Uint8Array']['from'](_0x3a9cd6(_0x19e6aa),_0x22bf0a=>_0x22bf0a['charCodeAt'](0x0)),_0x5423c4=new window['TextEncoder']()['encode'](_0x31eb76+'.'+_0x552369),_0x2498e7=window['crypto']['subtle'];if(!_0x2498e7)return;const _0x13e05d=await _0x2498e7['importKey']('jwk',_0x3d175c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2498e7['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x13e05d,_0x46b593,_0x5423c4)||(_0x4fab83=!0x1);}}function _0x4cbd48(_0x41fa18){return _0x41fa18['startsWith']('ey')?JSON['parse'](_0x3a9cd6(_0x41fa18)):null;}function _0x3a9cd6(_0xf32f2c){return window['atob'](_0xf32f2c['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x19571a(_0x4dbb57){let _0x272ec9=0x1505;function _0x589830(_0x49ef5c){for(let _0xfecc03=0x0;_0xfecc03<_0x49ef5c['length'];_0xfecc03++){const _0x167b13=_0x49ef5c['charCodeAt'](_0xfecc03);_0x272ec9=(_0x272ec9<<0x5)+_0x272ec9+_0x167b13,_0x272ec9&=_0x272ec9;}}function _0x4e6473(_0x480893){Array['isArray'](_0x480893)?_0x480893['forEach'](_0x4e6473):_0x480893&&'object'==typeof _0x480893?Object['entries'](_0x480893)['sort']()['forEach'](([_0x16bd40,_0x9aa7d5])=>{_0x589830(_0x16bd40),_0x4e6473(_0x9aa7d5);}):_0x589830(window['String'](_0x480893));}return _0x4e6473(_0x4dbb57),_0x272ec9>>>0x0;}function _0x41118a(_0x1a7837){return _0x1a7837['toString'](0x10)['padStart'](0x8,'0');}function _0x200d7e(_0xdda905){return _0xdda905['split']('')['reverse']()['join']('');}function _0x38e5d9(){}_0x4e7576(await _0x1d534a());}_0x377e3a(_0x4c5d46['editor']);}(this);}_initSchema(){const _0x367348=this['editor']['model']['schema'];_0x367348['isRegistered']('imageBlock')&&_0x367348['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x367348['isRegistered']('imageInline')&&_0x367348['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}_initConversion(){const _0x1d4d5a=this['editor'];_0x1d4d5a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1d4d5a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x53119b=>_0x53119b['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3e309d=_0x1d4d5a['commands']['get']('replaceImageSource');_0x3e309d&&this['listenTo'](_0x3e309d,'cleanupImage',(_0x585322,[_0x393aff,_0x3d4c98])=>{_0x393aff['removeAttribute']('uploadcareImageId',_0x3d4c98);});}_initConfig(){const _0x5e2db3=this['editor']['config']['get']('uploadcare.uploader')||{},_0x748881=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1f0b24(_0x9ae635['document'],'uc-config',{..._0x5e2db3,'pubkey':_0x748881,'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']=_0x43fba4=>{if('closeMax'==_0x43fba4)return'#uc-icon-arrow-down';},_0x9ae635['document']['body']['appendChild'](this['_configElement']);}_initCtx(){this['_ctxElement']=_0x1f0b24(_0x9ae635['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x9ae635['document']['body']['appendChild'](this['_ctxElement']);}_initImageProcessingIndicator(){const _0x17b446=this['editor']['commands']['get']('insertImage');_0x17b446&&this['listenTo'](_0x17b446,'execute',()=>{const _0x155846=this['editor']['model']['document']['selection']['getSelectedElement']();_0x155846&&_0x155846['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x155846);});});const _0x1cc9be=this['editor']['commands']['get']('uploadcareImageReplace');_0x1cc9be&&this['listenTo'](_0x1cc9be,'execute',()=>{const _0x43ff46=this['editor']['model']['document']['selection']['getSelectedElement']();_0x43ff46&&_0x43ff46['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x43ff46);});});}},Y=class extends _0x34daf5{static get requires(){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2fcda1){super(_0x2fcda1),_0x2fcda1['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x4d6e90['defineComponents'](_0x4d6e90),this['_defineLocale']();}['_defineLocale'](){const _0xc4e3bb=this['editor']['config']['get']('uploadcare.locale'),_0x3b01a3=this['editor']['locale']['contentLanguage'];_0xc4e3bb&&_0x4d6e90['defineLocale'](_0x3b01a3,_0xc4e3bb);}},tt=class extends _0x4fdd4a{constructor(_0x51b340){super(_0x51b340);const t=_0x51b340['t'],_0x195c1d=this['bindTemplate'],_0x3801fd=new _0x2cc1bd();_0x3801fd['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':[_0x3801fd,{'text':_0x195c1d['to']('imageUploadProgress',_0x3acc97=>t('Loading\x20image...')+'\x20('+(_0x3acc97||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 _0x4fdd4a{constructor(_0x48b262){super(_0x48b262);const t=_0x48b262['t'];this['set']('errorType',null);const _0x51eaf9=new _0x132e37(_0x48b262);_0x51eaf9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x51eaf9['withText']=!0x0,_0x51eaf9['class']='ck-button-action',_0x51eaf9['on']('execute',()=>{this['fire']('retry');}),_0x51eaf9['bind']('isVisible')['to'](this,'errorType',_0x4dd3d8=>'NotFound'!==_0x4dd3d8);const _0x25368e=new _0x589907();_0x25368e['content']=_0x510b2d,_0x25368e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x337ba2=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':[_0x25368e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x337ba2['to']('errorType',_0x2d1ab7=>t('NotFound'!==_0x2d1ab7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x51eaf9]},{'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 _0x4fdd4a{constructor(_0x35b1d8,_0x2ec0fa){super(_0x35b1d8);const _0x163809=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2ec0fa,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x163809['to']('imageSrc')}});}},st=class extends F{_items;['_loadingView'];['_errorView'];_editingView;['_focusableView'];constructor(_0x4bb77f,_0x12b283,_0x5806ef){super(_0x4bb77f),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x4bb77f),this['_errorView']=new et(_0x4bb77f),this['_editingView']=new it(_0x4bb77f,_0x5806ef),this['_focusableView']=new _0x4fdd4a(_0x4bb77f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x12b283),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'],_0x124c4f=>{this['_addUploadcareImageEditorListeners'](_0x124c4f);});}),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(_0x558d71,_0x445648){const _0x1a69bd='uc-cloud-image-editor',_0x432055=_0x558d71['querySelector'](_0x1a69bd);if(_0x432055)return _0x445648(_0x432055);const _0x2d3b19=new MutationObserver(_0xca27f4=>{const _0x2e36d1=_0xca27f4['filter'](_0x54ed85=>_0x54ed85['target']===_0x558d71&&_0x54ed85['addedNodes']['length']>0x0&&_0x54ed85['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1a69bd);_0x2e36d1['length']&&(_0x2d3b19['disconnect'](),_0x445648(_0x2e36d1[0x0]['addedNodes'][0x0]));});_0x2d3b19['observe'](_0x558d71,{'childList':!0x0,'subtree':!0x0});}_addUploadcareImageEditorListeners(_0x3aa144){_0x3aa144['addEventListener']('apply',_0x4087bf=>{this['fire']('apply',{'imageSrc':_0x4087bf['detail']['cdnUrl']});}),_0x3aa144['addEventListener']('cancel',()=>{this['fire']('cancel');});}_addErrorViewListeners(){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const nt=/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3fae10();var rt=class extends nt{_editor;['_dialog'];_imageElement;['_imageCache'];_controller;_attributes;constructor(_0x4078e2,_0x35e627,_0x5815a2){super(),this['_editor']=_0x4078e2,this['_dialog']=_0x35e627,this['_imageElement']=_0x5815a2,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 _0x47c86a=this['_imageElement'],_0x398b11=_0x47c86a['getAttribute']('uploadcareImageId'),_0x1cb43f=_0x47c86a['getAttribute']('src');if(_0x398b11)await this['_loadImageInfo'](_0x398b11,_0x1cb43f);else{if(this['_imageCache']['has'](_0x1cb43f)){const _0x1c6d4f=this['_imageCache']['get'](_0x1cb43f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1c6d4f['url'],this['imageDimension']=_0x1c6d4f['dimension'],this['imageId']=_0x1c6d4f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5164b4}=this['_editor'],t=_0x5164b4['t'],_0xc6b5d8=new st(_0x5164b4,this['imageStatus'],this['_attributes']);_0xc6b5d8['bind']('status')['to'](this,'imageStatus'),_0xc6b5d8['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xc6b5d8['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xc6b5d8['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xc6b5d8,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x40ecc3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xc6b5d8,'position':_0x1d4d33['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xc6b5d8['focus']();},'onHide':()=>{_0xc6b5d8['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3c5863=>!H(_0x3c5863,_0xc6b5d8['element'])}});}['_loadImageInfo'](_0xfe8be9,_0x489e1e){return Q['getInfo'](_0xfe8be9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x284d4a=>{const {width:_0x1227f2,height:_0x46f5a4}=_0x284d4a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x489e1e,this['imageDimension']={'width':_0x1227f2,'height':_0x46f5a4},this['imageId']=_0xfe8be9;})['catch'](_0x1d637a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1d637a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1314fd,_0x3ee4c3){return this['_getImageAsFile'](_0x1314fd)['then'](_0x2da71c=>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':_0x3ee4c3['signal'],'file':_0x2da71c,'onProgress':_0xe217b7=>{_0xe217b7&&_0xe217b7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xe217b7['value']));}}))['then'](_0x59a163=>{const {width:_0x1a9882,height:_0x42830a}=_0x59a163['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x59a163['cdnUrl'],this['imageDimension']={'width':_0x1a9882,'height':_0x42830a},this['imageId']=_0x59a163['uuid'],this['imageUploadProgress']=null;const _0x84d172=_0x1314fd['getAttribute']('src');this['_imageCache']['set'](_0x84d172,{'id':_0x59a163['uuid'],'url':_0x59a163['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2c4e7a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c4e7a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}_addEditViewListeners(_0x2bdff6,_0x47136f){_0x2bdff6['on']('apply',(_0xfa00ed,_0x5ac7cc)=>{this['_replaceImage'](_0x47136f,_0x5ac7cc['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2bdff6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2bdff6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2591bb,_0x3179cf,_0x534200){const _0x5a99d7=this['_editor'],{width:_0x2d95e4,height:_0x3db802}=j(_0x3179cf,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1c4ca6,imageSources:_0x4500ab}=B(_0x3179cf,_0x2d95e4);_0x5a99d7['model']['change'](_0x191a3e=>{if('$graveyard'!==_0x2591bb['root']['rootName'])_0x191a3e['setSelection'](_0x2591bb,'on'),_0x5a99d7['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2591bb['getAttributes']()),'uploadcareImageId':_0x534200,'src':_0x1c4ca6,'sources':_0x4500ab,'width':_0x2d95e4,'height':_0x3db802},_0x2591bb);else{_0x5a99d7['execute']('insertImage',{'imageType':_0x2591bb['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2591bb['getAttributes']()),'uploadcareImageId':_0x534200,'src':_0x1c4ca6,'sources':_0x4500ab,'width':_0x2d95e4,'height':_0x3db802}});const _0x452f7b=_0x2591bb['getChildren']();_0x2591bb=_0x5a99d7['model']['document']['selection']['getSelectedElement']();for(const _0x2501e3 of _0x452f7b)_0x191a3e['append'](_0x191a3e['cloneElement'](_0x2501e3),_0x2591bb);}_0x191a3e['setSelection'](_0x2591bb,'on');});}async _getImageAsFile(_0x564679){const _0x15eaee=_0x9ae635['window'],_0x16075e=_0x9ae635['document']['location']['href'],_0x28e566=new _0x15eaee['URL'](_0x564679['getAttribute']('src'),_0x16075e);if('data:'===_0x28e566['protocol']){const _0x11eb89=_0x28e566['href']['split'](','),_0x1aca55=_0x11eb89[0x0]['match'](/:(.*?);/)[0x1],_0x262838=_0x1aca55['split']('/')[0x1],_0x1992d5=_0x15eaee['atob'](_0x11eb89[_0x11eb89['length']-0x1]);let _0xc7e6c9=_0x1992d5['length'];const _0x25deaf=new _0x15eaee['Uint8Array'](_0xc7e6c9);for(;_0xc7e6c9--;)_0x25deaf[_0xc7e6c9]=_0x1992d5['charCodeAt'](_0xc7e6c9);return new _0x15eaee['File']([_0x25deaf],'image.'+_0x262838,{'type':_0x1aca55});}const _0xb225b3=_0x28e566['href']['split']('/'),_0x3449a0=_0xb225b3[_0xb225b3['length']-0x1],_0x36e958=_0x3449a0['split']('.')[0x1];return _0x15eaee['fetch'](_0x28e566['href'])['then'](_0x5161a7=>_0x5161a7['clone']()['blob']())['then'](_0x230d00=>new _0x15eaee['File']([_0x230d00],_0x3449a0,{'type':'image/'+_0x36e958}));}},at=class extends _0x156dc2{imageEditController;static get requires(){return[_0x19e9a8];}_isEditable;constructor(_0xbc3c84){super(_0xbc3c84),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x6c5f48){const _0x54f023=M(_0x6c5f48);return _0x20e7b3=>!(!_0x20e7b3||!_0x20e7b3['is']('element','imageBlock')&&!_0x20e7b3['is']('element','imageInline'))&&(!!_0x20e7b3['hasAttribute']('uploadcareImageId')||!!_0x20e7b3['hasAttribute']('src')&&_0x54f023(_0x20e7b3['getAttribute']('src')));}(_0xbc3c84['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x18b234=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x18b234);}execute(){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x14b87a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x14b87a&&(_0x14b87a['is']('element','imageBlock')||_0x14b87a['is']('element','imageInline'))&&(this['imageEditController']=new rt(this['editor'],this['editor']['plugins']['get'](_0x19e9a8),_0x14b87a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x156dc2{['refresh'](){const _0x6600ed=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x6600ed&&(_0x6600ed['is']('element','imageBlock')||_0x6600ed['is']('element','imageInline')));}execute(_0x39b59b){const _0x25f155=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2c1e9c=>{_0x2c1e9c['setAttributes'](_0x39b59b,_0x25f155),_0x2c1e9c['removeAttribute']('srcset',_0x25f155),_0x2c1e9c['removeAttribute']('sizes',_0x25f155);});}},ct=class extends _0x34daf5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get requires(){return[Z,_0x2b28a9,_0x187a9d,_0x42cebf];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x218f1a}=this;_0x218f1a['commands']['add']('uploadcareImageEdit',new at(_0x218f1a)),_0x218f1a['commands']['add']('uploadcareImageReplace',new ot(_0x218f1a));}},lt=class extends _0x34daf5{['_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 _0x4b4832=this['editor'];_0x4b4832['ui']['componentFactory']['add']('uploadcareImageEdit',_0x28b926=>{const _0x34d774=_0x4b4832['commands']['get']('uploadcareImageEdit'),_0x3ed5c2=new _0x132e37(_0x28b926),t=_0x28b926['t'];return _0x3ed5c2['set']({'icon':_0x40ecc3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3ed5c2['bind']('isEnabled')['to'](_0x34d774),_0x3ed5c2['bind']('isOn')['to'](_0x34d774,'isActive'),this['listenTo'](_0x3ed5c2,'execute',()=>{_0x4b4832['execute']('uploadcareImageEdit'),_0x4b4832['editing']['view']['focus']();}),_0x3ed5c2;}),this['_initConfig']();}_initConfig(){const _0xac1af7=_0x1f0b24(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xac1af7),this['listenTo'](this['editor'],'destroy',()=>{_0xac1af7['remove']();});}},ut=class extends _0x34daf5{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']||={});
|