@ckeditor/ckeditor5-uploadcare 48.3.1-alpha.1 → 48.4.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index-content.css +0 -3
- package/dist/index-editor.css +2523 -2523
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/ui/uploadcareformview.d.ts +0 -1
- package/dist/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +0 -1
- package/dist/uploadcareimageedit/uploadcareimageeditui.d.ts +0 -2
- package/dist/uploadcareui.d.ts +0 -3
- package/dist/utils/dialogfocusmanagerview.d.ts +0 -1
- package/package.json +9 -8
package/dist/index.d.ts
CHANGED
|
@@ -15,4 +15,6 @@ export { UploadcareImageEditCommand } from "./uploadcareimageedit/uploadcareimag
|
|
|
15
15
|
export { UploadcareCommand } from "./uploadcarecommand.js";
|
|
16
16
|
export { UploadcareUploadAdapter } from "./uploadcareuploadadapter.js";
|
|
17
17
|
export type { UploadcareConfig, UploadcareSource, UploadcareAssetImageDefinition, UploadcareExcludedKeys, UploadcareUploaderConfig, UploadcareEditorConfig, UploadcareAssetImageAttributesDefinition, UploadcareLocaleDefinition, UploadcareLocaleDefinitionResolver } from "./uploadcareconfig.js";
|
|
18
|
+
import "../theme/index-editor.css";
|
|
19
|
+
import "../theme/index-content.css";
|
|
18
20
|
import "./augmentation.js";
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x4e9db0,Plugin as _0x3e1720}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x44e015,IconError as _0x52d4de,IconFacebook as _0x2e82f7,IconGoogleDrive as _0xfee826,IconGooglePhotos as _0x31269f,IconOneDrive as _0x14f801,IconUploadcareImageEdit as _0x4d5388,IconUploadcareImageUpload as _0x9c1ec4,IconUploadcareLink as _0x4944d8}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x2cb830,Dialog as _0x4bcba1,DialogViewPosition as _0x547c93,FocusCycler as _0x52ab5c,IconView as _0x1e54e6,MenuBarMenuListItemButtonView as _0x565c58,Notification as _0x1fb8fe,SpinnerView as _0x28e1c7,View as _0xbb8c0a}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x33633a,FocusTracker as _0x1cd679,ObservableMixin as _0x5c5856,createElement as _0x1b139c,getAncestors as _0x47d414,global as _0x1ae3a5,uid as _0x128b26}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x279baa,ImageUploadEditing as _0x485aee,ImageUploadProgress as _0x1a613f,ImageUtils as _0x1ba705,PictureEditing as _0x2d3baf}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x23d61e}from'@ckeditor/ckeditor5-upload';import{info as _0x3744d9,uploadFile as _0x19d243}from'@uploadcare/upload-client';import*as _0x3fde03 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x18e7a6,_0x1d714d,_0x3f7a7c){const t=_0x18e7a6['t'],_0xdd9344=_0x18e7a6['t'];switch(_0x1d714d){case'local':return{'text':_0xdd9344('Insert'===_0x3f7a7c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xdd9344('From\x20computer')};case'url':return{'text':'Insert'===_0x3f7a7c?_0xdd9344('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xdd9344('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x3f7a7c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x3f7a7c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x3f7a7c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x3f7a7c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x3f7a7c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1d714d;}}var V=class extends _0x3e1720{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xdeebcd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4be9e5;for(const _0x114b27 in _0xdeebcd){const _0x39403c=_0x114b27,_0x399da5=_0xdeebcd[_0x39403c];if('uploadcareLicenseKeyValid'==_0x399da5||'uploadcareLicenseKeyInvalid'==_0x399da5||'uploadcareLicenseKeyExpired'==_0x399da5||'uploadcareLicenseKeyDomainLimit'==_0x399da5||'uploadcareLicenseKeyNotAllowed'==_0x399da5||'uploadcareLicenseKeyEvaluationLimit'==_0x399da5||'uploadcareLicenseKeyUsageLimit'==_0x399da5){delete _0xdeebcd[_0x39403c],_0x4be9e5=_0x399da5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4be9e5&&_0xdeebcd['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4be9e5&&_0xdeebcd['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4be9e5&&_0xdeebcd['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4be9e5&&_0xdeebcd['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4be9e5&&_0xdeebcd['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4be9e5&&_0xdeebcd['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x467182}=this,_0x22553b=_0x467182['commands']['get']('uploadcare');if(!_0x22553b)return;const _0x11f47a=this['_normalizeConfigSourceList'](_0x467182['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x40b38e,_0x5cf75e)=>{const _0x21aed8=this['_getIntegrationKey'](_0x5cf75e['type']);return _0x40b38e[_0x21aed8]||(_0x40b38e[_0x21aed8]=[]),_0x40b38e[_0x21aed8]['push'](_0x5cf75e),_0x40b38e;},{});_0x467182['plugins']['has']('ImageInsertUI')&&_0x467182['commands']['get']('uploadcare')&&Object['entries'](_0x11f47a)['forEach'](([_0x4fa9c1,_0x1a7f08])=>{_0x467182['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4fa9c1,'observable':()=>_0x22553b,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1a7f08),'formViewCreator':()=>this['_createDropdownButtons'](_0x1a7f08),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1a7f08),'override':'assetManager'!==_0x4fa9c1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x404c12){const {locale:_0x85d9a4}=this['editor'];return _0x404c12['map'](_0x4e326a=>{const _0xb70a09=T(_0x85d9a4,_0x4e326a,'Insert');switch(_0x4e326a){case'local':return{'icon':_0x9c1ec4,'type':'local',..._0xb70a09};case'url':return{'icon':_0x4944d8,'type':'url',..._0xb70a09};case'dropbox':return{'icon':_0x44e015,'type':'dropbox',..._0xb70a09};case'facebook':return{'icon':_0x2e82f7,'type':'facebook',..._0xb70a09};case'gdrive':return{'icon':_0xfee826,'type':'gdrive',..._0xb70a09};case'gphotos':return{'icon':_0x31269f,'type':'gphotos',..._0xb70a09};case'onedrive':return{'icon':_0x14f801,'type':'onedrive',..._0xb70a09};}});}['_getIntegrationKey'](_0x135754){switch(_0x135754){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x5c56af,_0x16c8f5){const _0x1a8f66=this['editor'],_0x5b2e7f=new _0x5c56af(_0x1a8f66['locale']),_0x4d0f18=_0x1a8f66['commands']['get']('uploadcare');return _0x5b2e7f['bind']('isEnabled')['to'](_0x4d0f18),_0x5b2e7f['on']('execute',()=>{_0x4d0f18['execute'](_0x16c8f5);}),_0x5b2e7f;}['_createToolbarButton'](_0x489fe2){const {locale:_0x1b8e14}=this['editor'],_0x2f4225=this['editor']['plugins']['get']('ImageInsertUI'),_0x5daddf=_0x489fe2[0x0],_0x40c3ca=this['_createButton'](_0x2cb830,_0x5daddf['type']);return _0x40c3ca['icon']=_0x5daddf['icon'],_0x40c3ca['bind']('label')['to'](_0x2f4225,'isImageSelected',_0x40668d=>T(_0x1b8e14,_0x5daddf['type'],_0x40668d?'Replace':'Insert')['text']),_0x40c3ca['tooltip']=!0x0,_0x40c3ca;}['_createDropdownButtons'](_0x1f3079){const {locale:_0xbe9a1f}=this['editor'],_0x3b4141=this['editor']['plugins']['get']('ImageInsertUI');return _0x1f3079['map'](_0x1e1a4f=>{const _0x59b348=this['_createButton'](_0x2cb830,_0x1e1a4f['type']);return _0x59b348['withText']=!0x0,_0x59b348['icon']=_0x1e1a4f['icon'],_0x59b348['bind']('label')['to'](_0x3b4141,'isImageSelected',_0x161d8a=>T(_0xbe9a1f,_0x1e1a4f['type'],_0x161d8a?'Replace':'Insert')['text']),_0x59b348;});}['_createMenuBarButtons'](_0x2384eb){return _0x2384eb['map'](_0x257283=>{const _0x34d9bc=this['_createButton'](_0x565c58,_0x257283['type']);return _0x34d9bc['icon']=_0x257283['icon'],_0x34d9bc['label']=_0x257283['shortText'],_0x34d9bc;});}},F=class extends _0xbb8c0a{['focusTracker'];['focusCycler'];constructor(_0x1fce07){super(_0x1fce07),this['focusTracker']=new _0x1cd679(),this['focusCycler']=new _0x52ab5c({'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(_0x40bca0,_0x2f1f49){super(_0x40bca0),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-'+_0x2f1f49}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x19f067,_0xb8d223){const _0x82cc7c=_0x19f067['replace'](/\/$/,'');return{'imageFallbackUrl':_0x19f067,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x14ed90=>_0x14ed90<_0xb8d223)['map'](_0x396c06=>_0x82cc7c+'/-/resize/'+_0x396c06+'x/\x20'+_0x396c06+'w'),_0x19f067+'\x20'+_0xb8d223+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0xb8d223+'px)\x20100vw,\x20'+_0xb8d223+'px','type':'image/webp'}]};}function j(_0x1f43a7,_0x58a6b5,_0x156f8b){const _0x64674f=_0x1f43a7['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x64674f?parseInt(_0x64674f[0x1],0xa):_0x58a6b5,'height':_0x64674f?parseInt(_0x64674f[0x2],0xa):_0x156f8b};}function q(_0x110181,_0x584902){const _0x4329f2=new(_0x33633a())(),_0x491422=_0x110181['plugins']['get']('ImageUtils'),_0x5be013=_0x110181['editing']['mapper']['toViewElement'](_0x584902),_0x129937=_0x491422['findViewImgElement'](_0x5be013),_0x11cb46=_0x110181['editing']['view']['domConverter']['viewToDom'](_0x129937),_0x2fdcaa=_0x584902['getAttribute']('width'),_0x4a3cc8=_0x584902['getAttribute']('height'),_0x23aef4='image-processing';_0x110181['editing']['view']['change'](_0x58d2c9=>{_0x58d2c9['addClass'](_0x23aef4,_0x5be013),_0x58d2c9['setStyle']('aspect-ratio',_0x2fdcaa+'/'+_0x4a3cc8,_0x129937);}),_0x4329f2['listenTo'](_0x11cb46,'load',()=>{_0x4329f2['stopListening'](_0x11cb46,'load'),_0x110181['editing']['view']['change'](_0xcf2097=>{_0xcf2097['removeClass'](_0x23aef4,_0x5be013),_0xcf2097['removeStyle']('aspect-ratio',_0x129937);});});}function M(_0x290d76){if(Array['isArray'](_0x290d76)){const _0x584c45=_0x290d76['map'](M);return _0x264df2=>_0x584c45['some'](_0x47db89=>_0x47db89(_0x264df2));}if('origin'==_0x290d76){const _0x1be636=_0x1ae3a5['window']['location']['origin'];return _0x26731c=>new URL(_0x26731c,_0x1ae3a5['document']['baseURI'])['origin']==_0x1be636;}return'function'==typeof _0x290d76?_0x290d76:_0x290d76 instanceof RegExp?_0x1b48db=>!(!_0x1b48db['match'](_0x290d76)&&!_0x1b48db['replace'](/^https?:\/\//,'')['match'](_0x290d76)):()=>!0x1;}function H(_0x364444,_0x45028e){return _0x47d414(_0x364444['target'])['includes'](_0x45028e);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x5c5856();var G=class extends W{['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1353f0,_0x3fe8e5,_0x3ee8d5){super(),this['_editor']=_0x1353f0,this['_editing']=_0x3fe8e5,this['_dialog']=_0x1353f0['plugins']['get'](_0x4bcba1),this['_api']=_0x3fe8e5['ctxElement']['getAPI'](),this['_type']=_0x3ee8d5,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:_0x2a34ff,model:_0x48a4a9}=this['_editor'],_0x23c346=_0x48a4a9['document']['selection']['getSelectedElement'](),_0x24cb5a=_0x23c346&&(_0x23c346['is']('element','imageBlock')||_0x23c346['is']('element','imageInline'));this['_formView']=new $(_0x2a34ff,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x9c1ec4,'title':T(_0x2a34ff,this['_type'],_0x24cb5a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x547c93['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3b86c5=>!H(_0x3b86c5,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xb71c09}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x385e66=>{const _0x21acb3=_0xb71c09['length'];for(const _0x512b8e of _0xb71c09){const _0x591203=_0x512b8e===_0xb71c09[_0x21acb3-0x1],{cdnUrl:_0x1328fc,fileInfo:_0x148556}=_0x512b8e;if(!_0x1328fc||!_0x148556)continue;const {width:_0x5719dc,height:_0x166c0f}=_0x148556['imageInfo'],_0x1d7e92=j(_0x1328fc,_0x5719dc,_0x166c0f),_0x32f9e2=B(_0x1328fc,_0x1d7e92['width']),_0x4d9971={'id':_0x148556['uuid'],'type':'image','attributes':{'imageDimension':_0x1d7e92,..._0x32f9e2}};this['_insertAsset'](_0x4d9971,_0x591203,_0x385e66);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xf4df6c=>{'idle'===_0xf4df6c['detail']['status']&&!_0xf4df6c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}['_insertAsset'](_0x43ca60,_0x5a09ab,_0x42e0be){const _0xad4474=this['_editor']['model']['document']['selection'],_0x501d38=_0xad4474['getSelectedElement'](),_0x441340=!(!_0x501d38||!_0x501d38['is']('element','imageInline'));_0x42e0be['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x43ca60,_0x441340),_0x5a09ab||_0x42e0be['setSelection'](_0xad4474['getLastPosition']());}['_insertImage'](_0x3ab0a4,_0x4f0123){const _0x579c85=this['_editor'],{imageDimension:_0x5af5a8,imageFallbackUrl:_0x186e03,imageSources:_0x427e4c}=_0x3ab0a4['attributes'];_0x579c85['execute']('insertImage',{'imageType':_0x4f0123?'imageInline':null,'source':{'uploadcareImageId':_0x3ab0a4['id'],'src':_0x186e03,'sources':_0x427e4c,..._0x5af5a8}});}},z=class extends _0x4e9db0{['_editing'];['_controller']=null;static get['requires'](){return[_0x4bcba1,Z];}constructor(_0x57b1fe){super(_0x57b1fe),this['_editing']=_0x57b1fe['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x103324){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x103324);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x3fbc8f,..._0x1c2342}){return _0x19d243(_0x3fbc8f,_0x1c2342);}static['getInfo'](_0x596e43,_0x369ded){return _0x3744d9(_0x596e43,_0x369ded);}},J=class extends _0x3e1720{static get['requires'](){return[_0x485aee,_0x1a613f,_0x23d61e,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x57c6b0=this['editor'];if(!_0x57c6b0['config']['get']('uploadcare'))return;_0x57c6b0['plugins']['get'](_0x23d61e)['createUploadAdapter']=_0x4015cb=>new X(_0x4015cb,_0x57c6b0),_0x57c6b0['plugins']['get'](_0x485aee)['on']('uploadComplete',(_0x4b6681,{imageElement:_0x26bfcf,data:_0x20947d})=>{_0x57c6b0['model']['change'](_0x174a01=>{_0x174a01['setAttribute']('uploadcareImageId',_0x20947d['uploadcareImageId'],_0x26bfcf);});});}},X=class{['loader'];['editor'];['controller'];constructor(_0x28f8e9,_0x2372c9){this['loader']=_0x28f8e9,this['editor']=_0x2372c9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x27b93=await this['loader']['file'];return Q['upload']({'file':_0x27b93,'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':_0x24fadb=>{_0x24fadb&&_0x24fadb['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x24fadb['value']);}})['then'](async _0x231ef5=>{const {imageFallbackUrl:_0x5c9718,imageSources:_0x285240}=B(_0x231ef5['cdnUrl'],_0x231ef5['imageInfo']['width']);return{'uploadcareImageId':_0x231ef5['uuid'],'default':_0x5c9718,'sources':_0x285240};})['catch'](()=>{const _0x4d66d3=t('Cannot\x20upload\x20file:')+('\x20'+_0x27b93['name']+'.');return Promise['reject'](_0x4d66d3);});}['abort'](){this['controller']['abort']();}},Z=class extends _0x3e1720{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x2d3baf,J,_0x4bcba1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x406a15){super(_0x406a15),this['ucContextId']=_0x128b26();}['init'](){const _0x218ec7=this['editor'];_0x218ec7['commands']['add']('uploadcare',new z(_0x218ec7));}['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 _0x75d532=_0x1ae3a5['document']['querySelector']('input[uploadcare-file-input]');_0x75d532&&_0x75d532['remove']();}),async function(_0x38dca0){const _0x57c3ca='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0x4e1c65=0x78fc0,_0x31fb9f=window['Date']['now'](),_0x1a3365=_0x38dca0['editor'],_0x47e162=new window['Promise'](_0xdfb757=>{_0x1a3365['once']('ready',_0xdfb757);}),_0x50ee68={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x2c9f0d=_0x1a3365['config']['get']('licenseKey');async function _0x393894(){let _0x5188eb,_0x15a42c=null,_0x5aaaf5=null;try{return'GPL'==_0x2c9f0d?'NotAllowed':(_0x5188eb=_0x4e2f51(),_0x5188eb?(_0x5188eb['usageEndpoint']&&(_0x5aaaf5=_0x5eb2fe(_0x5188eb['usageEndpoint'],_0x5188eb['jti'])),await _0x11ad23()?_0x30edba()?_0xfef9f5()?'Expired':_0x2a2355()?('evaluation'==_0x5188eb['licenseType']&&(_0x15a42c=_0x3574bc('EvaluationLimit')),await _0x4bf6e7()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0xfef9f5(){const _0x4ce247=['evaluation','trial']['includes'](_0x5188eb['licenseType'])?_0x31fb9f/0x3e8:0xe10*_0x4e1c65;return _0x5188eb['exp']<_0x4ce247;}function _0x30edba(){const _0x3b6766=_0x5188eb['features'];return!!_0x3b6766&&(!!_0x3b6766['includes']('*')||!!_0x3b6766['includes']('UPLC'));}function _0x2a2355(){const _0x287e26=_0x5188eb['licensedHosts'];if(!_0x287e26||0x0==_0x287e26['length'])return!0x0;const {hostname:_0x2d5126}=new URL(window['location']['href']);if(_0x287e26['includes'](_0x2d5126))return!0x0;const _0x444384=_0x2d5126['split']('.');return _0x287e26['filter'](_0x34b2c0=>_0x34b2c0['includes']('*'))['map'](_0x59e6f3=>_0x59e6f3['split']('.'))['filter'](_0x1d5028=>_0x1d5028['length']<=_0x444384['length'])['map'](_0x91620a=>Array(_0x444384['length']-_0x91620a['length'])['fill']('*'===_0x91620a[0x0]?'*':'')['concat'](_0x91620a))['some'](_0x536036=>_0x444384['every']((_0x1aaecc,_0x56d1ea)=>_0x536036[_0x56d1ea]===_0x1aaecc||'*'===_0x536036[_0x56d1ea]));}function _0x4bf6e7(){return _0x15a42c&&_0x5aaaf5?new window['Promise']((_0x373752,_0x249add)=>{_0x15a42c['then'](_0x373752,_0x249add),_0x5aaaf5['then'](_0x5c2d5e=>{'Valid'!=_0x5c2d5e&&_0x373752(_0x5c2d5e);},_0x249add);}):_0x15a42c||_0x5aaaf5||'Valid';}}function _0x5eb2fe(_0x309cb5,_0x10fa28){return new window['Promise'](_0x282307=>{if(_0x304e13())return _0x282307('Valid');_0x5f143c(),_0x1a3365['decorate']('_sendUsageRequest');let _0x520c19=!0x1;const _0x42f342=_0x128b26();function _0x56abd1(_0x3ff8b2){return!!_0x3ff8b2&&('object'==typeof _0x3ff8b2||'function'==typeof _0x3ff8b2)&&'function'==typeof _0x3ff8b2['then']&&'function'==typeof _0x3ff8b2['catch'];}function _0xdd861a(_0x45cc86){_0x18f07c(_0x45cc86)['then'](_0x177366=>_0x177366&&'ok'==_0x177366['status']?_0x376995(_0x1fe42e(_0x42f342+_0x10fa28))!=_0x177366['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x216573=>(_0x2eaffd(),_0x216573),()=>{const _0x3428cf=_0x158b2e();return null==_0x3428cf?(_0x2eaffd(),'Valid'):_0x31fb9f-_0x3428cf>0x240c8400?'UsageLimit':'Valid';})['then'](_0x282307)['catch'](()=>{_0x282307('UsageLimit');});const _0x170a73=0x36ee80;function _0x2eaffd(){const _0x800859='llct-'+_0x376995(_0x1fe42e(_0x309cb5)),_0x2b9c3d=_0x4aa0a1(_0x376995(window['Math']['ceil'](_0x31fb9f/_0x170a73)));window['localStorage']['setItem'](_0x800859,_0x2b9c3d);}function _0x158b2e(){const _0x5eb1f1='llct-'+_0x376995(_0x1fe42e(_0x309cb5)),_0x2ea944=window['localStorage']['getItem'](_0x5eb1f1);return _0x2ea944?window['parseInt'](_0x4aa0a1(_0x2ea944),0x10)*_0x170a73:null;}function _0x18f07c(_0x5a481b){return new window['Promise']((_0x43a841,_0x2c92ea)=>{_0x5a481b['then'](_0x43a841,_0x2c92ea),window['setTimeout'](_0x2c92ea,0x1d4c0);});}}_0x1a3365['on']('_sendUsageRequest',(_0x4a200a,_0x237b94)=>{if(_0x237b94[0x0]!=_0x309cb5)return _0x282307('UsageLimit');_0x237b94[0x1]={..._0x237b94[0x1],'requestId':_0x42f342};},{'priority':'high'}),_0x1a3365['on']('_sendUsageRequest',_0x5c0bf2=>{_0x56abd1(_0x5c0bf2['return'])&&(_0x520c19=!0x0,_0xdd861a(_0x5c0bf2['return']));},{'priority':'low'}),_0x47e162['then'](()=>{_0x520c19||_0x282307('UsageLimit');});});function _0x304e13(){return'auto'==_0x1a3365['editing']['view']['_overlayModeHint'];}function _0x5f143c(){_0x1a3365['editing']['view']['_overlayModeHint']='auto';}}function _0x3574bc(_0x211db9){const _0x494d3b=[new window['Promise'](_0x201c9d=>setTimeout(_0x201c9d,0x93ecc)),_0x47e162['then'](()=>new window['Promise'](_0x57edef=>{let _0x375532=0x0;_0x1a3365['model']['on']('applyOperation',(_0x1a3b07,_0x13e3a4)=>{_0x13e3a4[0x0]['isDocumentOperation']&&_0x375532++,0x5e8==_0x375532&&(_0x57edef(),_0x1a3b07['off']());});}))];return window['Promise']['race'](_0x494d3b)['then'](()=>_0x211db9);}async function _0x43dfba(){await _0x47e162,_0x1a3365['model']['change']=_0x56ba3a,_0x1a3365['model']['enqueueChange']=_0x56ba3a,_0x1a3365['enableReadOnlyMode']('model');}function _0x4c53b5(_0x34f59b){const _0x34dab3=_0x56ce02();_0x1a3365[_0x34dab3]='uploadcareLicenseKey'+_0x34f59b,'Valid'!=_0x34f59b&&_0x43dfba();}function _0x56ce02(){const _0x62d2fe=window['String'](window['performance']['now']())['replace']('.','');let _0x717a17='h';for(let _0x3de317=0x0;_0x3de317<_0x62d2fe['length'];_0x3de317+=0x2){let _0x167ac2=window['parseInt'](_0x62d2fe['substring'](_0x3de317,_0x3de317+0x2));_0x167ac2>=0x3e&&(_0x167ac2-=0x3e),_0x717a17+=_0x57c3ca[_0x167ac2];}return _0x717a17;}function _0x4e2f51(){const _0x545a8b=_0x2c9f0d['split']('.');if(0x3!=_0x545a8b['length'])return null;return _0x11692e(_0x545a8b[0x1]);function _0x11692e(_0x16db02){const _0xc4debc=_0x578345(_0x16db02);return _0xc4debc&&_0x53d40f()?_0xc4debc:null;function _0x53d40f(){const _0x26ae8f=_0xc4debc['jti'],_0x509f05=window['parseInt'](_0x26ae8f['substring'](_0x26ae8f['length']-0x8),0x10),_0x1f0eb5={..._0xc4debc,'jti':_0x26ae8f['substring'](0x0,_0x26ae8f['length']-0x8)};return delete _0x1f0eb5['vc'],_0x1fe42e(_0x1f0eb5)==_0x509f05;}}}async function _0x11ad23(){let _0x1400a8=!0x0;try{const [_0x494441,_0x8c5481,_0x3fe511]=_0x2c9f0d['split']('.');return _0x570d75(_0x494441),await _0xc4a30(_0x494441,_0x8c5481,_0x3fe511),_0x1400a8;}catch{return!0x1;}function _0x570d75(_0x4e1e26){const _0x284527=_0x578345(_0x4e1e26);_0x284527&&'ES256'==_0x284527['alg']||(_0x1400a8=!0x1);}async function _0xc4a30(_0x4b5cc9,_0x271cbb,_0x1a6250){const _0xcf9174=window['Uint8Array']['from'](_0x2a47a0(_0x1a6250),_0x53676c=>_0x53676c['charCodeAt'](0x0)),_0x32c125=new window['TextEncoder']()['encode'](_0x4b5cc9+'.'+_0x271cbb),_0x6bd004=window['crypto']['subtle'];if(!_0x6bd004)return;const _0x5d376d=await _0x6bd004['importKey']('jwk',_0x50ee68,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x6bd004['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5d376d,_0xcf9174,_0x32c125)||(_0x1400a8=!0x1);}}function _0x578345(_0x45d198){return _0x45d198['startsWith']('ey')?JSON['parse'](_0x2a47a0(_0x45d198)):null;}function _0x2a47a0(_0x3dc535){return window['atob'](_0x3dc535['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1fe42e(_0x320510){let _0xb294e8=0x1505;function _0x5e91fe(_0x457483){for(let _0x5b4126=0x0;_0x5b4126<_0x457483['length'];_0x5b4126++){const _0x45a635=_0x457483['charCodeAt'](_0x5b4126);_0xb294e8=(_0xb294e8<<0x5)+_0xb294e8+_0x45a635,_0xb294e8&=_0xb294e8;}}function _0x7e9545(_0x20c7af){Array['isArray'](_0x20c7af)?_0x20c7af['forEach'](_0x7e9545):_0x20c7af&&'object'==typeof _0x20c7af?Object['entries'](_0x20c7af)['sort']()['forEach'](([_0x670b62,_0x59ae22])=>{_0x5e91fe(_0x670b62),_0x7e9545(_0x59ae22);}):_0x5e91fe(window['String'](_0x20c7af));}return _0x7e9545(_0x320510),_0xb294e8>>>0x0;}function _0x376995(_0xb61537){return _0xb61537['toString'](0x10)['padStart'](0x8,'0');}function _0x4aa0a1(_0x3d54da){return _0x3d54da['split']('')['reverse']()['join']('');}function _0x56ba3a(){}_0x4c53b5(await _0x393894());}(this);}['_initSchema'](){const _0x467329=this['editor']['model']['schema'];_0x467329['isRegistered']('imageBlock')&&_0x467329['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x467329['isRegistered']('imageInline')&&_0x467329['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1aa21c=this['editor'];_0x1aa21c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1aa21c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x568c00=>_0x568c00['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5f52d2=_0x1aa21c['commands']['get']('replaceImageSource');_0x5f52d2&&this['listenTo'](_0x5f52d2,'cleanupImage',(_0x459eac,[_0x37c02f,_0x1921a1])=>{_0x37c02f['removeAttribute']('uploadcareImageId',_0x1921a1);});}['_initConfig'](){const _0x20ba5a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1d2e5f=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1b139c(_0x1ae3a5['document'],'uc-config',{..._0x20ba5a,'pubkey':_0x1d2e5f,'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']=_0x556a39=>{if('closeMax'==_0x556a39)return'#uc-icon-arrow-down';},_0x1ae3a5['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1b139c(_0x1ae3a5['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1ae3a5['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1c1940=this['editor']['commands']['get']('insertImage');_0x1c1940&&this['listenTo'](_0x1c1940,'execute',()=>{const _0x56400c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x56400c&&_0x56400c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x56400c);});});const _0x14f49f=this['editor']['commands']['get']('uploadcareImageReplace');_0x14f49f&&this['listenTo'](_0x14f49f,'execute',()=>{const _0x407e8f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x407e8f&&_0x407e8f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x407e8f);});});}},Y=class extends _0x3e1720{static get['requires'](){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1aab62){super(_0x1aab62),_0x1aab62['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x3fde03['defineComponents'](_0x3fde03),this['_defineLocale']();}['_defineLocale'](){const _0x52ba0d=this['editor']['config']['get']('uploadcare.locale'),_0x2e49e6=this['editor']['locale']['contentLanguage'];_0x52ba0d&&_0x3fde03['defineLocale'](_0x2e49e6,_0x52ba0d);}},tt=class extends _0xbb8c0a{constructor(_0x75a36){super(_0x75a36);const t=_0x75a36['t'],_0x35dbe9=this['bindTemplate'],_0x5f31ad=new _0x28e1c7();_0x5f31ad['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':[_0x5f31ad,{'text':_0x35dbe9['to']('imageUploadProgress',_0x5572d3=>t('Loading\x20image...')+'\x20('+(_0x5572d3||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 _0xbb8c0a{constructor(_0x6b43d3){super(_0x6b43d3);const t=_0x6b43d3['t'];this['set']('errorType',null);const _0x2da532=new _0x2cb830(_0x6b43d3);_0x2da532['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2da532['withText']=!0x0,_0x2da532['class']='ck-button-action',_0x2da532['on']('execute',()=>{this['fire']('retry');}),_0x2da532['bind']('isVisible')['to'](this,'errorType',_0x1192ec=>'NotFound'!==_0x1192ec);const _0x14d418=new _0x1e54e6();_0x14d418['content']=_0x52d4de,_0x14d418['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x8df987=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':[_0x14d418,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x8df987['to']('errorType',_0x187403=>t('NotFound'!==_0x187403?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2da532]},{'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 _0xbb8c0a{constructor(_0x3de9fb,_0x23f1cf){super(_0x3de9fb);const _0x368c2b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x23f1cf,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x368c2b['to']('imageSrc')}});}},st=class extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5bc40b,_0x2647f2,_0x3f6a53){super(_0x5bc40b),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x5bc40b),this['_errorView']=new et(_0x5bc40b),this['_editingView']=new it(_0x5bc40b,_0x3f6a53),this['_focusableView']=new _0xbb8c0a(_0x5bc40b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2647f2),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'],_0x2f87b6=>{this['_addUploadcareImageEditorListeners'](_0x2f87b6);});}),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'](_0x6ce47d,_0x2c8250){const _0x5f0433='uc-cloud-image-editor',_0x1db01f=_0x6ce47d['querySelector'](_0x5f0433);if(_0x1db01f)return _0x2c8250(_0x1db01f);const _0x2d04ec=new MutationObserver(_0x4ece28=>{const _0x42cbf2=_0x4ece28['filter'](_0x5044bb=>_0x5044bb['target']===_0x6ce47d&&_0x5044bb['addedNodes']['length']>0x0&&_0x5044bb['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5f0433);_0x42cbf2['length']&&(_0x2d04ec['disconnect'](),_0x2c8250(_0x42cbf2[0x0]['addedNodes'][0x0]));});_0x2d04ec['observe'](_0x6ce47d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x536eed){_0x536eed['addEventListener']('apply',_0x64eb5=>{this['fire']('apply',{'imageSrc':_0x64eb5['detail']['cdnUrl']});}),_0x536eed['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const rt=/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5c5856();var nt=class extends rt{['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3a4b03,_0x5cb956,_0xba8b2c){super(),this['_editor']=_0x3a4b03,this['_dialog']=_0x5cb956,this['_imageElement']=_0xba8b2c,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 _0x5453b2=this['_imageElement'],_0x4e98b1=_0x5453b2['getAttribute']('uploadcareImageId'),_0x5e9bff=_0x5453b2['getAttribute']('src');if(_0x4e98b1)await this['_loadImageInfo'](_0x4e98b1,_0x5e9bff);else{if(this['_imageCache']['has'](_0x5e9bff)){const _0x12f576=this['_imageCache']['get'](_0x5e9bff);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x12f576['url'],this['imageDimension']=_0x12f576['dimension'],this['imageId']=_0x12f576['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x406b1f}=this['_editor'],t=_0x406b1f['t'],_0x64f0ae=new st(_0x406b1f,this['imageStatus'],this['_attributes']);_0x64f0ae['bind']('status')['to'](this,'imageStatus'),_0x64f0ae['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x64f0ae['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x64f0ae['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x64f0ae,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4d5388,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x64f0ae,'position':_0x547c93['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x64f0ae['focus']();},'onHide':()=>{_0x64f0ae['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xb99f24=>!H(_0xb99f24,_0x64f0ae['element'])}});}['_loadImageInfo'](_0x434b4d,_0x105b53){return Q['getInfo'](_0x434b4d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x23c6b3=>{const {width:_0x278e50,height:_0x39ed2c}=_0x23c6b3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x105b53,this['imageDimension']={'width':_0x278e50,'height':_0x39ed2c},this['imageId']=_0x434b4d;})['catch'](_0xd9bdb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xd9bdb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3930f7,_0x190bef){return this['_getImageAsFile'](_0x3930f7)['then'](_0x29399=>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':_0x190bef['signal'],'file':_0x29399,'onProgress':_0x5372d6=>{_0x5372d6&&_0x5372d6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5372d6['value']));}}))['then'](_0x1e8f18=>{const {width:_0x56aa9e,height:_0x2c22e9}=_0x1e8f18['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1e8f18['cdnUrl'],this['imageDimension']={'width':_0x56aa9e,'height':_0x2c22e9},this['imageId']=_0x1e8f18['uuid'],this['imageUploadProgress']=null;const _0x167677=_0x3930f7['getAttribute']('src');this['_imageCache']['set'](_0x167677,{'id':_0x1e8f18['uuid'],'url':_0x1e8f18['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x535d27=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x535d27['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x37194a,_0x21b2bc){_0x37194a['on']('apply',(_0x500427,_0x53de0d)=>{this['_replaceImage'](_0x21b2bc,_0x53de0d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x37194a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x37194a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x14c61b,_0xfc0641,_0x563ff8){const _0x21bd8b=this['_editor'],{width:_0x2d4746,height:_0x530081}=j(_0xfc0641,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4f57fc,imageSources:_0x165188}=B(_0xfc0641,_0x2d4746);_0x21bd8b['model']['change'](_0x338aba=>{if('$graveyard'!==_0x14c61b['root']['rootName'])_0x338aba['setSelection'](_0x14c61b,'on'),_0x21bd8b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x14c61b['getAttributes']()),'uploadcareImageId':_0x563ff8,'src':_0x4f57fc,'sources':_0x165188,'width':_0x2d4746,'height':_0x530081},_0x14c61b);else{_0x21bd8b['execute']('insertImage',{'imageType':_0x14c61b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x14c61b['getAttributes']()),'uploadcareImageId':_0x563ff8,'src':_0x4f57fc,'sources':_0x165188,'width':_0x2d4746,'height':_0x530081}});const _0x3a7b06=_0x14c61b['getChildren']();_0x14c61b=_0x21bd8b['model']['document']['selection']['getSelectedElement']();for(const _0x5e0c6b of _0x3a7b06)_0x338aba['append'](_0x338aba['cloneElement'](_0x5e0c6b),_0x14c61b);}_0x338aba['setSelection'](_0x14c61b,'on');});}async['_getImageAsFile'](_0x297ceb){const _0x1c6213=_0x1ae3a5['window'],_0x5e82dc=_0x1ae3a5['document']['location']['href'],_0x21da2a=new _0x1c6213['URL'](_0x297ceb['getAttribute']('src'),_0x5e82dc);if('data:'===_0x21da2a['protocol']){const _0x30eeba=_0x21da2a['href']['split'](','),_0x518de9=_0x30eeba[0x0]['match'](/:(.*?);/)[0x1],_0x7c7610=_0x518de9['split']('/')[0x1],_0x2c2266=_0x1c6213['atob'](_0x30eeba[_0x30eeba['length']-0x1]);let _0x57b1eb=_0x2c2266['length'];const _0x6119e5=new _0x1c6213['Uint8Array'](_0x57b1eb);for(;_0x57b1eb--;)_0x6119e5[_0x57b1eb]=_0x2c2266['charCodeAt'](_0x57b1eb);return new _0x1c6213['File']([_0x6119e5],'image.'+_0x7c7610,{'type':_0x518de9});}const _0xc807fa=_0x21da2a['href']['split']('/'),_0x27dbf1=_0xc807fa[_0xc807fa['length']-0x1],_0x27c754=_0x27dbf1['split']('.')[0x1];return _0x1c6213['fetch'](_0x21da2a['href'])['then'](_0x4e9644=>_0x4e9644['clone']()['blob']())['then'](_0x1a4b1c=>new _0x1c6213['File']([_0x1a4b1c],_0x27dbf1,{'type':'image/'+_0x27c754}));}},at=class extends _0x4e9db0{['imageEditController'];static get['requires'](){return[_0x4bcba1];}['_isEditable'];constructor(_0x406df1){super(_0x406df1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1edffc){const _0x3daa01=M(_0x1edffc);return _0x1cfc3e=>!(!_0x1cfc3e||!_0x1cfc3e['is']('element','imageBlock')&&!_0x1cfc3e['is']('element','imageInline'))&&(!!_0x1cfc3e['hasAttribute']('uploadcareImageId')||!!_0x1cfc3e['hasAttribute']('src')&&_0x3daa01(_0x1cfc3e['getAttribute']('src')));}(_0x406df1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4476cf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4476cf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x20760b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x20760b&&(_0x20760b['is']('element','imageBlock')||_0x20760b['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x4bcba1),_0x20760b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x4e9db0{['refresh'](){const _0x32ce6a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x32ce6a&&(_0x32ce6a['is']('element','imageBlock')||_0x32ce6a['is']('element','imageInline')));}['execute'](_0x517d42){const _0x1a9bec=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x28a6fb=>{_0x28a6fb['setAttributes'](_0x517d42,_0x1a9bec),_0x28a6fb['removeAttribute']('srcset',_0x1a9bec),_0x28a6fb['removeAttribute']('sizes',_0x1a9bec);});}},ct=class extends _0x3e1720{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[Z,_0x1fb8fe,_0x1ba705,_0x279baa];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x241bf6}=this;_0x241bf6['commands']['add']('uploadcareImageEdit',new at(_0x241bf6)),_0x241bf6['commands']['add']('uploadcareImageReplace',new ot(_0x241bf6));}},lt=class extends _0x3e1720{['_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 _0x3c21dd=this['editor'];_0x3c21dd['ui']['componentFactory']['add']('uploadcareImageEdit',_0x316897=>{const _0x5cb31a=_0x3c21dd['commands']['get']('uploadcareImageEdit'),_0x2b480c=new _0x2cb830(_0x316897),t=_0x316897['t'];return _0x2b480c['set']({'icon':_0x4d5388,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2b480c['bind']('isEnabled')['to'](_0x5cb31a),_0x2b480c['bind']('isOn')['to'](_0x5cb31a,'isActive'),this['listenTo'](_0x2b480c,'execute',()=>{_0x3c21dd['execute']('uploadcareImageEdit'),_0x3c21dd['editing']['view']['focus']();}),_0x2b480c;}),this['_initConfig']();}['_initConfig'](){const _0x1073be=_0x1b139c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1073be),this['listenTo'](this['editor'],'destroy',()=>{_0x1073be['remove']();});}},ut=class extends _0x3e1720{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 _0x1d4366,Plugin as _0x3b6558}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x1c6829,IconError as _0x4354f0,IconFacebook as _0x5e29e2,IconGoogleDrive as _0x2ea3da,IconGooglePhotos as _0xb3fc9,IconOneDrive as _0x38e883,IconUploadcareImageEdit as _0x54137f,IconUploadcareImageUpload as _0x2ccb1a,IconUploadcareLink as _0x25da04}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x195453,Dialog as _0x851813,DialogViewPosition as _0x3e98e3,FocusCycler as _0x399e05,IconView as _0x487347,MenuBarMenuListItemButtonView as _0x4baf3c,Notification as _0x2f420e,SpinnerView as _0x58e96e,View as _0x528159}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x33069f,FocusTracker as _0x47fd90,ObservableMixin as _0x196f3a,createElement as _0x112f76,getAncestors as _0xb07eb4,global as _0x49852f,uid as _0x9f5bec}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x1f6832,ImageUploadEditing as _0x4b9d29,ImageUploadProgress as _0x5a1e5f,ImageUtils as _0x3236fa,PictureEditing as _0x561fdf}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x5d6284}from'@ckeditor/ckeditor5-upload';import{info as _0x4e31f6,uploadFile as _0x4894fc}from'@uploadcare/upload-client';import*as _0x25752a from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x4217ca,_0x4e8bcb,_0x256035){const t=_0x4217ca['t'],_0x57dabe=_0x4217ca['t'];switch(_0x4e8bcb){case'local':return{'text':_0x57dabe('Insert'===_0x256035?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x57dabe('From\x20computer')};case'url':return{'text':'Insert'===_0x256035?_0x57dabe('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x57dabe('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x256035?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x256035?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x256035?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x256035?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x256035?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4e8bcb;}}var V=class extends _0x3b6558{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x33d298=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2fd813;for(const _0x30b2b3 in _0x33d298){const _0x2c054e=_0x30b2b3,_0x306927=_0x33d298[_0x2c054e];if('uploadcareLicenseKeyValid'==_0x306927||'uploadcareLicenseKeyInvalid'==_0x306927||'uploadcareLicenseKeyExpired'==_0x306927||'uploadcareLicenseKeyDomainLimit'==_0x306927||'uploadcareLicenseKeyNotAllowed'==_0x306927||'uploadcareLicenseKeyEvaluationLimit'==_0x306927||'uploadcareLicenseKeyUsageLimit'==_0x306927){delete _0x33d298[_0x2c054e],_0x2fd813=_0x306927,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2fd813&&_0x33d298['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2fd813&&_0x33d298['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2fd813&&_0x33d298['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2fd813&&_0x33d298['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2fd813&&_0x33d298['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2fd813&&_0x33d298['_showLicenseError']('usageLimit');},0x3e8);}afterInit(){const {editor:_0x3bed06}=this,_0x17a7ce=_0x3bed06['commands']['get']('uploadcare');if(!_0x17a7ce)return;const _0x47f31e=this['_normalizeConfigSourceList'](_0x3bed06['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x20c488,_0x1fcb87)=>{const _0x5836cf=this['_getIntegrationKey'](_0x1fcb87['type']);return _0x20c488[_0x5836cf]||(_0x20c488[_0x5836cf]=[]),_0x20c488[_0x5836cf]['push'](_0x1fcb87),_0x20c488;},{});_0x3bed06['plugins']['has']('ImageInsertUI')&&_0x3bed06['commands']['get']('uploadcare')&&Object['entries'](_0x47f31e)['forEach'](([_0x35d4ad,_0x3c8883])=>{_0x3bed06['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x35d4ad,'observable':()=>_0x17a7ce,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3c8883),'formViewCreator':()=>this['_createDropdownButtons'](_0x3c8883),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3c8883),'override':'assetManager'!==_0x35d4ad});});}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_normalizeConfigSourceList(_0x6dc84){const {locale:_0x59006d}=this['editor'];return _0x6dc84['map'](_0x3a9184=>{const _0x1aca4f=T(_0x59006d,_0x3a9184,'Insert');switch(_0x3a9184){case'local':return{'icon':_0x2ccb1a,'type':'local',..._0x1aca4f};case'url':return{'icon':_0x25da04,'type':'url',..._0x1aca4f};case'dropbox':return{'icon':_0x1c6829,'type':'dropbox',..._0x1aca4f};case'facebook':return{'icon':_0x5e29e2,'type':'facebook',..._0x1aca4f};case'gdrive':return{'icon':_0x2ea3da,'type':'gdrive',..._0x1aca4f};case'gphotos':return{'icon':_0xb3fc9,'type':'gphotos',..._0x1aca4f};case'onedrive':return{'icon':_0x38e883,'type':'onedrive',..._0x1aca4f};}});}_getIntegrationKey(_0x36c8ef){switch(_0x36c8ef){case'local':return'upload';case'url':return'url';default:return'assetManager';}}_createButton(_0x2b76e9,_0x3b0759){const _0x43bbe1=this['editor'],_0x6f86f6=new _0x2b76e9(_0x43bbe1['locale']),_0x4d0d00=_0x43bbe1['commands']['get']('uploadcare');return _0x6f86f6['bind']('isEnabled')['to'](_0x4d0d00),_0x6f86f6['on']('execute',()=>{_0x4d0d00['execute'](_0x3b0759);}),_0x6f86f6;}_createToolbarButton(_0x4c3c0b){const {locale:_0xfc9e10}=this['editor'],_0x4e64e3=this['editor']['plugins']['get']('ImageInsertUI'),_0x142432=_0x4c3c0b[0x0],_0x5ea4c9=this['_createButton'](_0x195453,_0x142432['type']);return _0x5ea4c9['icon']=_0x142432['icon'],_0x5ea4c9['bind']('label')['to'](_0x4e64e3,'isImageSelected',_0x3ef1e3=>T(_0xfc9e10,_0x142432['type'],_0x3ef1e3?'Replace':'Insert')['text']),_0x5ea4c9['tooltip']=!0x0,_0x5ea4c9;}_createDropdownButtons(_0x1d9b1e){const {locale:_0x2d33b8}=this['editor'],_0x167d39=this['editor']['plugins']['get']('ImageInsertUI');return _0x1d9b1e['map'](_0x3d6649=>{const _0x48354b=this['_createButton'](_0x195453,_0x3d6649['type']);return _0x48354b['withText']=!0x0,_0x48354b['icon']=_0x3d6649['icon'],_0x48354b['bind']('label')['to'](_0x167d39,'isImageSelected',_0x336340=>T(_0x2d33b8,_0x3d6649['type'],_0x336340?'Replace':'Insert')['text']),_0x48354b;});}_createMenuBarButtons(_0xea572d){return _0xea572d['map'](_0x3f3797=>{const _0x3ee0ee=this['_createButton'](_0x4baf3c,_0x3f3797['type']);return _0x3ee0ee['icon']=_0x3f3797['icon'],_0x3ee0ee['label']=_0x3f3797['shortText'],_0x3ee0ee;});}},F=class extends _0x528159{['focusTracker'];['focusCycler'];constructor(_0x4b3ff1){super(_0x4b3ff1),this['focusTracker']=new _0x47fd90(),this['focusCycler']=new _0x399e05({'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(_0x4393e8,_0x45647f){super(_0x4393e8),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-'+_0x45647f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x658f60,_0x33956a){const _0x56e131=_0x658f60['replace'](/\/$/,'');return{'imageFallbackUrl':_0x658f60,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x10126f=>_0x10126f<_0x33956a)['map'](_0x34240b=>_0x56e131+'/-/resize/'+_0x34240b+'x/\x20'+_0x34240b+'w'),_0x658f60+'\x20'+_0x33956a+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x33956a+'px)\x20100vw,\x20'+_0x33956a+'px','type':'image/webp'}]};}function j(_0x159b56,_0x5d7dae,_0x4af8c4){const _0x532741=_0x159b56['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x532741?parseInt(_0x532741[0x1],0xa):_0x5d7dae,'height':_0x532741?parseInt(_0x532741[0x2],0xa):_0x4af8c4};}function q(_0x56155c,_0x17fe31){const _0x5dd28d=new(_0x33069f())(),_0x3e474b=_0x56155c['plugins']['get']('ImageUtils'),_0x5ce2eb=_0x56155c['editing']['mapper']['toViewElement'](_0x17fe31),_0xeb4f7e=_0x3e474b['findViewImgElement'](_0x5ce2eb),_0x4c19d9=_0x56155c['editing']['view']['domConverter']['viewToDom'](_0xeb4f7e),_0x1082ba=_0x17fe31['getAttribute']('width'),_0x19c691=_0x17fe31['getAttribute']('height'),_0x360d45='image-processing';_0x56155c['editing']['view']['change'](_0x258009=>{_0x258009['addClass'](_0x360d45,_0x5ce2eb),_0x258009['setStyle']('aspect-ratio',_0x1082ba+'/'+_0x19c691,_0xeb4f7e);}),_0x5dd28d['listenTo'](_0x4c19d9,'load',()=>{_0x5dd28d['stopListening'](_0x4c19d9,'load'),_0x56155c['editing']['view']['change'](_0x489c2b=>{_0x489c2b['removeClass'](_0x360d45,_0x5ce2eb),_0x489c2b['removeStyle']('aspect-ratio',_0xeb4f7e);});});}function M(_0x4ee7ab){if(Array['isArray'](_0x4ee7ab)){const _0x1d9f6f=_0x4ee7ab['map'](M);return _0x3d9446=>_0x1d9f6f['some'](_0x1c3178=>_0x1c3178(_0x3d9446));}if('origin'==_0x4ee7ab){const _0x40a163=_0x49852f['window']['location']['origin'];return _0x428499=>new URL(_0x428499,_0x49852f['document']['baseURI'])['origin']==_0x40a163;}return'function'==typeof _0x4ee7ab?_0x4ee7ab:_0x4ee7ab instanceof RegExp?_0x453a44=>!(!_0x453a44['match'](_0x4ee7ab)&&!_0x453a44['replace'](/^https?:\/\//,'')['match'](_0x4ee7ab)):()=>!0x1;}function H(_0x3dce51,_0x462c0){return _0xb07eb4(_0x3dce51['target'])['includes'](_0x462c0);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x196f3a();var G=class extends W{_editor;['_dialog'];_editing;['_api'];_type=null;['_formView']=null;constructor(_0x15034d,_0x1d17f1,_0xb3fbd1){super(),this['_editor']=_0x15034d,this['_editing']=_0x1d17f1,this['_dialog']=_0x15034d['plugins']['get'](_0x851813),this['_api']=_0x1d17f1['ctxElement']['getAPI'](),this['_type']=_0xb3fbd1,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:_0x25ae21,model:_0x2dfcff}=this['_editor'],_0x464dca=_0x2dfcff['document']['selection']['getSelectedElement'](),_0x542b7a=_0x464dca&&(_0x464dca['is']('element','imageBlock')||_0x464dca['is']('element','imageInline'));this['_formView']=new $(_0x25ae21,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2ccb1a,'title':T(_0x25ae21,this['_type'],_0x542b7a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3e98e3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4e34bd=>!H(_0x4e34bd,this['_formView']['element'])}});}_initListeners(){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5066fd}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4c424a=>{const _0x50b21b=_0x5066fd['length'];for(const _0x249746 of _0x5066fd){const _0x5970b2=_0x249746===_0x5066fd[_0x50b21b-0x1],{cdnUrl:_0x8a463a,fileInfo:_0x3dc8c6}=_0x249746;if(!_0x8a463a||!_0x3dc8c6)continue;const {width:_0x121b3e,height:_0x1e926f}=_0x3dc8c6['imageInfo'],_0x1f253a=j(_0x8a463a,_0x121b3e,_0x1e926f),_0xf01128=B(_0x8a463a,_0x1f253a['width']),_0x2363a9={'id':_0x3dc8c6['uuid'],'type':'image','attributes':{'imageDimension':_0x1f253a,..._0xf01128}};this['_insertAsset'](_0x2363a9,_0x5970b2,_0x4c424a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1d26d0=>{'idle'===_0x1d26d0['detail']['status']&&!_0x1d26d0['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}_insertAsset(_0x152079,_0x20440f,_0x37a732){const _0x587ba3=this['_editor']['model']['document']['selection'],_0x52db13=_0x587ba3['getSelectedElement'](),_0x19fd51=!(!_0x52db13||!_0x52db13['is']('element','imageInline'));_0x37a732['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x152079,_0x19fd51),_0x20440f||_0x37a732['setSelection'](_0x587ba3['getLastPosition']());}_insertImage(_0x2eb14b,_0x28a66a){const _0x2a0054=this['_editor'],{imageDimension:_0x1b721e,imageFallbackUrl:_0x3e84ed,imageSources:_0x29e01c}=_0x2eb14b['attributes'];_0x2a0054['execute']('insertImage',{'imageType':_0x28a66a?'imageInline':null,'source':{'uploadcareImageId':_0x2eb14b['id'],'src':_0x3e84ed,'sources':_0x29e01c,..._0x1b721e}});}},z=class extends _0x1d4366{_editing;_controller=null;static get requires(){return[_0x851813,Z];}constructor(_0x32b4c6){super(_0x32b4c6),this['_editing']=_0x32b4c6['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}execute(_0x3279c5){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x3279c5);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x29f42e,..._0x472e5e}){return _0x4894fc(_0x29f42e,_0x472e5e);}static getInfo(_0x532e03,_0x2c8b93){return _0x4e31f6(_0x532e03,_0x2c8b93);}},J=class extends _0x3b6558{static get requires(){return[_0x4b9d29,_0x5a1e5f,_0x5d6284,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async afterInit(){const _0x5a7770=this['editor'];if(!_0x5a7770['config']['get']('uploadcare'))return;_0x5a7770['plugins']['get'](_0x5d6284)['createUploadAdapter']=_0xdc5e4a=>new X(_0xdc5e4a,_0x5a7770),_0x5a7770['plugins']['get'](_0x4b9d29)['on']('uploadComplete',(_0x4cf743,{imageElement:_0x42e462,data:_0x247574})=>{_0x5a7770['model']['change'](_0x217078=>{_0x217078['setAttribute']('uploadcareImageId',_0x247574['uploadcareImageId'],_0x42e462);});});}},X=class{['loader'];editor;controller;constructor(_0x38979c,_0x2345b9){this['loader']=_0x38979c,this['editor']=_0x2345b9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2f9e4e=await this['loader']['file'];return Q['upload']({'file':_0x2f9e4e,'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':_0x3d30fa=>{_0x3d30fa&&_0x3d30fa['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3d30fa['value']);}})['then'](async _0x3b3719=>{const {imageFallbackUrl:_0x37dcad,imageSources:_0x10b2c6}=B(_0x3b3719['cdnUrl'],_0x3b3719['imageInfo']['width']);return{'uploadcareImageId':_0x3b3719['uuid'],'default':_0x37dcad,'sources':_0x10b2c6};})['catch'](()=>{const _0x3949da=t('Cannot\x20upload\x20file:')+('\x20'+_0x2f9e4e['name']+'.');return Promise['reject'](_0x3949da);});}abort(){this['controller']['abort']();}},Z=class extends _0x3b6558{_configElement=null;_ctxElement=null;static get['pluginName'](){return'UploadcareEditing';}static get requires(){return[_0x561fdf,J,_0x851813];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}ucContextId;get configElement(){return this['_configElement'];}get ctxElement(){return this['_ctxElement'];}constructor(_0x8c060d){super(_0x8c060d),this['ucContextId']=_0x9f5bec();}init(){const _0x911cc7=this['editor'];_0x911cc7['commands']['add']('uploadcare',new z(_0x911cc7));}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 _0x15a343=_0x49852f['document']['querySelector']('input[uploadcare-file-input]');_0x15a343&&_0x15a343['remove']();}),async function(_0x4bd58a){const _0x383c01='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0x431299=0x79128,_0x4b18e5=window['Date']['now'](),_0xb65663=_0x4bd58a['editor'],_0x3b7bb1=new window['Promise'](_0x485f30=>{_0xb65663['once']('ready',_0x485f30);}),_0x39ab63={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x4aa2ce=_0xb65663['config']['get']('licenseKey');async function _0x49ce1c(){let _0x58fe5f,_0x53507a=null,_0x318972=null;try{return'GPL'==_0x4aa2ce?'NotAllowed':(_0x58fe5f=_0x598f18(),_0x58fe5f?(_0x58fe5f['usageEndpoint']&&(_0x318972=_0x264fc4(_0x58fe5f['usageEndpoint'],_0x58fe5f['jti'])),await _0x3510a6()?_0x3523f7()?_0x1ecc08()?'Expired':_0x15b813()?('evaluation'==_0x58fe5f['licenseType']&&(_0x53507a=_0x22459b('EvaluationLimit')),await _0x93c817()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1ecc08(){const _0x29c045=['evaluation','trial']['includes'](_0x58fe5f['licenseType'])?_0x4b18e5/0x3e8:0xe10*_0x431299;return _0x58fe5f['exp']<_0x29c045;}function _0x3523f7(){const _0x4c642b=_0x58fe5f['features'];return!!_0x4c642b&&(!!_0x4c642b['includes']('*')||!!_0x4c642b['includes']('UPLC'));}function _0x15b813(){const _0x3096db=_0x58fe5f['licensedHosts'];if(!_0x3096db||0x0==_0x3096db['length'])return!0x0;const {hostname:_0x23806a}=new URL(window['location']['href']);if(_0x3096db['includes'](_0x23806a))return!0x0;const _0x2b1048=_0x23806a['split']('.');return _0x3096db['filter'](_0x5692a4=>_0x5692a4['includes']('*'))['map'](_0x417b7a=>_0x417b7a['split']('.'))['filter'](_0xce33d1=>_0xce33d1['length']<=_0x2b1048['length'])['map'](_0xe8de48=>Array(_0x2b1048['length']-_0xe8de48['length'])['fill']('*'===_0xe8de48[0x0]?'*':'')['concat'](_0xe8de48))['some'](_0x223d22=>_0x2b1048['every']((_0x338baa,_0x51644e)=>_0x223d22[_0x51644e]===_0x338baa||'*'===_0x223d22[_0x51644e]));}function _0x93c817(){return _0x53507a&&_0x318972?new window['Promise']((_0x517969,_0xe4adfc)=>{_0x53507a['then'](_0x517969,_0xe4adfc),_0x318972['then'](_0x54b9bd=>{'Valid'!=_0x54b9bd&&_0x517969(_0x54b9bd);},_0xe4adfc);}):_0x53507a||_0x318972||'Valid';}}function _0x264fc4(_0x4a4c84,_0x54fc3d){return new window['Promise'](_0x3a94fa=>{if(_0x297188())return _0x3a94fa('Valid');_0x408f67(),_0xb65663['decorate']('_sendUsageRequest');let _0x2a2303=!0x1;const _0x4ab11f=_0x9f5bec();function _0x2e274e(_0x33ee5b){return!!_0x33ee5b&&('object'==typeof _0x33ee5b||'function'==typeof _0x33ee5b)&&'function'==typeof _0x33ee5b['then']&&'function'==typeof _0x33ee5b['catch'];}function _0x5c8596(_0x5eadbd){_0x48b55a(_0x5eadbd)['then'](_0x297a0c=>_0x297a0c&&'ok'==_0x297a0c['status']?_0x53ec20(_0x1d38d2(_0x4ab11f+_0x54fc3d))!=_0x297a0c['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x327767=>(_0x1f3a41(),_0x327767),()=>{const _0x2b5b81=_0x434e4c();return null==_0x2b5b81?(_0x1f3a41(),'Valid'):_0x4b18e5-_0x2b5b81>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3a94fa)['catch'](()=>{_0x3a94fa('UsageLimit');});const _0x3a3f3d=0x36ee80;function _0x1f3a41(){const _0x19f082='llct-'+_0x53ec20(_0x1d38d2(_0x4a4c84)),_0x24f5e9=_0x1356b8(_0x53ec20(window['Math']['ceil'](_0x4b18e5/_0x3a3f3d)));window['localStorage']['setItem'](_0x19f082,_0x24f5e9);}function _0x434e4c(){const _0x408699='llct-'+_0x53ec20(_0x1d38d2(_0x4a4c84)),_0x517335=window['localStorage']['getItem'](_0x408699);return _0x517335?window['parseInt'](_0x1356b8(_0x517335),0x10)*_0x3a3f3d:null;}function _0x48b55a(_0x40c48c){return new window['Promise']((_0x56d251,_0x4001e8)=>{_0x40c48c['then'](_0x56d251,_0x4001e8),window['setTimeout'](_0x4001e8,0x1d4c0);});}}_0xb65663['on']('_sendUsageRequest',(_0x4c5d3d,_0x4575c4)=>{if(_0x4575c4[0x0]!=_0x4a4c84)return _0x3a94fa('UsageLimit');_0x4575c4[0x1]={..._0x4575c4[0x1],'requestId':_0x4ab11f};},{'priority':'high'}),_0xb65663['on']('_sendUsageRequest',_0x559f62=>{_0x2e274e(_0x559f62['return'])&&(_0x2a2303=!0x0,_0x5c8596(_0x559f62['return']));},{'priority':'low'}),_0x3b7bb1['then'](()=>{_0x2a2303||_0x3a94fa('UsageLimit');});});function _0x297188(){return'auto'==_0xb65663['editing']['view']['_overlayModeHint'];}function _0x408f67(){_0xb65663['editing']['view']['_overlayModeHint']='auto';}}function _0x22459b(_0x4a05fb){const _0x284b3f=[new window['Promise'](_0x12afe6=>setTimeout(_0x12afe6,0x93ecc)),_0x3b7bb1['then'](()=>new window['Promise'](_0x455f31=>{let _0x572f1a=0x0;_0xb65663['model']['on']('applyOperation',(_0x157304,_0x1a6390)=>{_0x1a6390[0x0]['isDocumentOperation']&&_0x572f1a++,0x5e8==_0x572f1a&&(_0x455f31(),_0x157304['off']());});}))];return window['Promise']['race'](_0x284b3f)['then'](()=>_0x4a05fb);}async function _0x11df23(){await _0x3b7bb1,_0xb65663['model']['change']=_0x4d3883,_0xb65663['model']['enqueueChange']=_0x4d3883,_0xb65663['enableReadOnlyMode']('model');}function _0x1481f1(_0x483ca8){const _0x369722=_0x59318c();_0xb65663[_0x369722]='uploadcareLicenseKey'+_0x483ca8,'Valid'!=_0x483ca8&&_0x11df23();}function _0x59318c(){const _0x19d39b=window['String'](window['performance']['now']())['replace']('.','');let _0x249d03='h';for(let _0x15ba38=0x0;_0x15ba38<_0x19d39b['length'];_0x15ba38+=0x2){let _0x345658=window['parseInt'](_0x19d39b['substring'](_0x15ba38,_0x15ba38+0x2));_0x345658>=0x3e&&(_0x345658-=0x3e),_0x249d03+=_0x383c01[_0x345658];}return _0x249d03;}function _0x598f18(){const _0x34fc6d=_0x4aa2ce['split']('.');if(0x3!=_0x34fc6d['length'])return null;return _0x1c43d8(_0x34fc6d[0x1]);function _0x1c43d8(_0x17a7ee){const _0x56d3b0=_0x576b96(_0x17a7ee);return _0x56d3b0&&_0x4df5ec()?_0x56d3b0:null;function _0x4df5ec(){const _0x3defaa=_0x56d3b0['jti'],_0x55c94d=window['parseInt'](_0x3defaa['substring'](_0x3defaa['length']-0x8),0x10),_0x30981d={..._0x56d3b0,'jti':_0x3defaa['substring'](0x0,_0x3defaa['length']-0x8)};return delete _0x30981d['vc'],_0x1d38d2(_0x30981d)==_0x55c94d;}}}async function _0x3510a6(){let _0x1db6fe=!0x0;try{const [_0x240d24,_0x2e5f9f,_0x1cc07f]=_0x4aa2ce['split']('.');return _0x5e4d5a(_0x240d24),await _0x25671c(_0x240d24,_0x2e5f9f,_0x1cc07f),_0x1db6fe;}catch{return!0x1;}function _0x5e4d5a(_0x970d7d){const _0x249f76=_0x576b96(_0x970d7d);_0x249f76&&'ES256'==_0x249f76['alg']||(_0x1db6fe=!0x1);}async function _0x25671c(_0x56cffc,_0x456bde,_0x3b9bbe){const _0x2f0218=window['Uint8Array']['from'](_0xdecde7(_0x3b9bbe),_0x1a4a9f=>_0x1a4a9f['charCodeAt'](0x0)),_0xa3b17=new window['TextEncoder']()['encode'](_0x56cffc+'.'+_0x456bde),_0x10a313=window['crypto']['subtle'];if(!_0x10a313)return;const _0x5e5436=await _0x10a313['importKey']('jwk',_0x39ab63,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x10a313['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5e5436,_0x2f0218,_0xa3b17)||(_0x1db6fe=!0x1);}}function _0x576b96(_0x3fff24){return _0x3fff24['startsWith']('ey')?JSON['parse'](_0xdecde7(_0x3fff24)):null;}function _0xdecde7(_0x2f33e0){return window['atob'](_0x2f33e0['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1d38d2(_0x1c9d3c){let _0x7b4358=0x1505;function _0x23a87f(_0x951c78){for(let _0x265a41=0x0;_0x265a41<_0x951c78['length'];_0x265a41++){const _0x219b48=_0x951c78['charCodeAt'](_0x265a41);_0x7b4358=(_0x7b4358<<0x5)+_0x7b4358+_0x219b48,_0x7b4358&=_0x7b4358;}}function _0x2da45b(_0x5de020){Array['isArray'](_0x5de020)?_0x5de020['forEach'](_0x2da45b):_0x5de020&&'object'==typeof _0x5de020?Object['entries'](_0x5de020)['sort']()['forEach'](([_0x382359,_0x155dc1])=>{_0x23a87f(_0x382359),_0x2da45b(_0x155dc1);}):_0x23a87f(window['String'](_0x5de020));}return _0x2da45b(_0x1c9d3c),_0x7b4358>>>0x0;}function _0x53ec20(_0x3eb3db){return _0x3eb3db['toString'](0x10)['padStart'](0x8,'0');}function _0x1356b8(_0xd89756){return _0xd89756['split']('')['reverse']()['join']('');}function _0x4d3883(){}_0x1481f1(await _0x49ce1c());}(this);}_initSchema(){const _0x5c678c=this['editor']['model']['schema'];_0x5c678c['isRegistered']('imageBlock')&&_0x5c678c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5c678c['isRegistered']('imageInline')&&_0x5c678c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}_initConversion(){const _0x227078=this['editor'];_0x227078['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x227078['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x47159e=>_0x47159e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2ab786=_0x227078['commands']['get']('replaceImageSource');_0x2ab786&&this['listenTo'](_0x2ab786,'cleanupImage',(_0xa41796,[_0xe92bac,_0x1d6c10])=>{_0xe92bac['removeAttribute']('uploadcareImageId',_0x1d6c10);});}_initConfig(){const _0xdd97df=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1f309a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x112f76(_0x49852f['document'],'uc-config',{..._0xdd97df,'pubkey':_0x1f309a,'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']=_0x4f5251=>{if('closeMax'==_0x4f5251)return'#uc-icon-arrow-down';},_0x49852f['document']['body']['appendChild'](this['_configElement']);}_initCtx(){this['_ctxElement']=_0x112f76(_0x49852f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x49852f['document']['body']['appendChild'](this['_ctxElement']);}_initImageProcessingIndicator(){const _0x16cf31=this['editor']['commands']['get']('insertImage');_0x16cf31&&this['listenTo'](_0x16cf31,'execute',()=>{const _0x36f5e7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x36f5e7&&_0x36f5e7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x36f5e7);});});const _0x1b3c40=this['editor']['commands']['get']('uploadcareImageReplace');_0x1b3c40&&this['listenTo'](_0x1b3c40,'execute',()=>{const _0x51c648=this['editor']['model']['document']['selection']['getSelectedElement']();_0x51c648&&_0x51c648['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x51c648);});});}},Y=class extends _0x3b6558{static get requires(){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6a4d76){super(_0x6a4d76),_0x6a4d76['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x25752a['defineComponents'](_0x25752a),this['_defineLocale']();}['_defineLocale'](){const _0x22c00c=this['editor']['config']['get']('uploadcare.locale'),_0x83b614=this['editor']['locale']['contentLanguage'];_0x22c00c&&_0x25752a['defineLocale'](_0x83b614,_0x22c00c);}},tt=class extends _0x528159{constructor(_0x4f867e){super(_0x4f867e);const t=_0x4f867e['t'],_0x4f0540=this['bindTemplate'],_0x1d6938=new _0x58e96e();_0x1d6938['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':[_0x1d6938,{'text':_0x4f0540['to']('imageUploadProgress',_0x26c0cc=>t('Loading\x20image...')+'\x20('+(_0x26c0cc||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 _0x528159{constructor(_0x10067b){super(_0x10067b);const t=_0x10067b['t'];this['set']('errorType',null);const _0x23cd58=new _0x195453(_0x10067b);_0x23cd58['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x23cd58['withText']=!0x0,_0x23cd58['class']='ck-button-action',_0x23cd58['on']('execute',()=>{this['fire']('retry');}),_0x23cd58['bind']('isVisible')['to'](this,'errorType',_0x154f75=>'NotFound'!==_0x154f75);const _0x379233=new _0x487347();_0x379233['content']=_0x4354f0,_0x379233['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xdf265b=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':[_0x379233,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xdf265b['to']('errorType',_0x2ebd48=>t('NotFound'!==_0x2ebd48?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x23cd58]},{'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 _0x528159{constructor(_0x556ebb,_0x792b13){super(_0x556ebb);const _0x4ba918=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x792b13,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4ba918['to']('imageSrc')}});}},st=class extends F{_items;['_loadingView'];['_errorView'];_editingView;['_focusableView'];constructor(_0x3ee480,_0x3b2139,_0x159fe8){super(_0x3ee480),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x3ee480),this['_errorView']=new et(_0x3ee480),this['_editingView']=new it(_0x3ee480,_0x159fe8),this['_focusableView']=new _0x528159(_0x3ee480),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3b2139),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'],_0x4561c8=>{this['_addUploadcareImageEditorListeners'](_0x4561c8);});}),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(_0x5e7b39,_0x468d4e){const _0x57826f='uc-cloud-image-editor',_0x5cb1dd=_0x5e7b39['querySelector'](_0x57826f);if(_0x5cb1dd)return _0x468d4e(_0x5cb1dd);const _0x299492=new MutationObserver(_0x4337e8=>{const _0x20b325=_0x4337e8['filter'](_0x4249c8=>_0x4249c8['target']===_0x5e7b39&&_0x4249c8['addedNodes']['length']>0x0&&_0x4249c8['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x57826f);_0x20b325['length']&&(_0x299492['disconnect'](),_0x468d4e(_0x20b325[0x0]['addedNodes'][0x0]));});_0x299492['observe'](_0x5e7b39,{'childList':!0x0,'subtree':!0x0});}_addUploadcareImageEditorListeners(_0x120783){_0x120783['addEventListener']('apply',_0x51e8c7=>{this['fire']('apply',{'imageSrc':_0x51e8c7['detail']['cdnUrl']});}),_0x120783['addEventListener']('cancel',()=>{this['fire']('cancel');});}_addErrorViewListeners(){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const rt=/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x196f3a();var nt=class extends rt{_editor;['_dialog'];_imageElement;['_imageCache'];_controller;_attributes;constructor(_0x1d84c3,_0x1087a5,_0x4bcf46){super(),this['_editor']=_0x1d84c3,this['_dialog']=_0x1087a5,this['_imageElement']=_0x4bcf46,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 _0x26e76b=this['_imageElement'],_0x46af25=_0x26e76b['getAttribute']('uploadcareImageId'),_0x697d8a=_0x26e76b['getAttribute']('src');if(_0x46af25)await this['_loadImageInfo'](_0x46af25,_0x697d8a);else{if(this['_imageCache']['has'](_0x697d8a)){const _0x31da3f=this['_imageCache']['get'](_0x697d8a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x31da3f['url'],this['imageDimension']=_0x31da3f['dimension'],this['imageId']=_0x31da3f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x17df5d}=this['_editor'],t=_0x17df5d['t'],_0x365243=new st(_0x17df5d,this['imageStatus'],this['_attributes']);_0x365243['bind']('status')['to'](this,'imageStatus'),_0x365243['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x365243['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x365243['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x365243,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x54137f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x365243,'position':_0x3e98e3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x365243['focus']();},'onHide':()=>{_0x365243['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x301fa3=>!H(_0x301fa3,_0x365243['element'])}});}['_loadImageInfo'](_0x1633f6,_0x4ff5bf){return Q['getInfo'](_0x1633f6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5cb4ed=>{const {width:_0x57ddca,height:_0x1b91e1}=_0x5cb4ed['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ff5bf,this['imageDimension']={'width':_0x57ddca,'height':_0x1b91e1},this['imageId']=_0x1633f6;})['catch'](_0x3e2ae1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3e2ae1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x7bff7b,_0x56ffdb){return this['_getImageAsFile'](_0x7bff7b)['then'](_0x5461ae=>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':_0x56ffdb['signal'],'file':_0x5461ae,'onProgress':_0x28d119=>{_0x28d119&&_0x28d119['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x28d119['value']));}}))['then'](_0x2ddec2=>{const {width:_0x3e6f80,height:_0x876cdc}=_0x2ddec2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ddec2['cdnUrl'],this['imageDimension']={'width':_0x3e6f80,'height':_0x876cdc},this['imageId']=_0x2ddec2['uuid'],this['imageUploadProgress']=null;const _0x3283df=_0x7bff7b['getAttribute']('src');this['_imageCache']['set'](_0x3283df,{'id':_0x2ddec2['uuid'],'url':_0x2ddec2['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1db923=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1db923['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}_addEditViewListeners(_0x54e2db,_0x536758){_0x54e2db['on']('apply',(_0x41a083,_0x5f5c2a)=>{this['_replaceImage'](_0x536758,_0x5f5c2a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x54e2db['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x54e2db['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x987c07,_0x119b57,_0x5abbdc){const _0x5ce885=this['_editor'],{width:_0xa072a4,height:_0x2cc517}=j(_0x119b57,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5bcf6b,imageSources:_0xb39f93}=B(_0x119b57,_0xa072a4);_0x5ce885['model']['change'](_0x21c493=>{if('$graveyard'!==_0x987c07['root']['rootName'])_0x21c493['setSelection'](_0x987c07,'on'),_0x5ce885['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x987c07['getAttributes']()),'uploadcareImageId':_0x5abbdc,'src':_0x5bcf6b,'sources':_0xb39f93,'width':_0xa072a4,'height':_0x2cc517},_0x987c07);else{_0x5ce885['execute']('insertImage',{'imageType':_0x987c07['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x987c07['getAttributes']()),'uploadcareImageId':_0x5abbdc,'src':_0x5bcf6b,'sources':_0xb39f93,'width':_0xa072a4,'height':_0x2cc517}});const _0x31625a=_0x987c07['getChildren']();_0x987c07=_0x5ce885['model']['document']['selection']['getSelectedElement']();for(const _0x1dfe77 of _0x31625a)_0x21c493['append'](_0x21c493['cloneElement'](_0x1dfe77),_0x987c07);}_0x21c493['setSelection'](_0x987c07,'on');});}async _getImageAsFile(_0x2bb018){const _0x57fd45=_0x49852f['window'],_0x4d3ed3=_0x49852f['document']['location']['href'],_0x49d4ed=new _0x57fd45['URL'](_0x2bb018['getAttribute']('src'),_0x4d3ed3);if('data:'===_0x49d4ed['protocol']){const _0x33c962=_0x49d4ed['href']['split'](','),_0x45a32c=_0x33c962[0x0]['match'](/:(.*?);/)[0x1],_0xdfa528=_0x45a32c['split']('/')[0x1],_0x45ec27=_0x57fd45['atob'](_0x33c962[_0x33c962['length']-0x1]);let _0x151a2f=_0x45ec27['length'];const _0x3e147a=new _0x57fd45['Uint8Array'](_0x151a2f);for(;_0x151a2f--;)_0x3e147a[_0x151a2f]=_0x45ec27['charCodeAt'](_0x151a2f);return new _0x57fd45['File']([_0x3e147a],'image.'+_0xdfa528,{'type':_0x45a32c});}const _0x59588a=_0x49d4ed['href']['split']('/'),_0x399ed9=_0x59588a[_0x59588a['length']-0x1],_0x2e5306=_0x399ed9['split']('.')[0x1];return _0x57fd45['fetch'](_0x49d4ed['href'])['then'](_0x5b1d60=>_0x5b1d60['clone']()['blob']())['then'](_0x54383d=>new _0x57fd45['File']([_0x54383d],_0x399ed9,{'type':'image/'+_0x2e5306}));}},at=class extends _0x1d4366{imageEditController;static get requires(){return[_0x851813];}_isEditable;constructor(_0x34b975){super(_0x34b975),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4888ab){const _0x4723b5=M(_0x4888ab);return _0x4ee2b9=>!(!_0x4ee2b9||!_0x4ee2b9['is']('element','imageBlock')&&!_0x4ee2b9['is']('element','imageInline'))&&(!!_0x4ee2b9['hasAttribute']('uploadcareImageId')||!!_0x4ee2b9['hasAttribute']('src')&&_0x4723b5(_0x4ee2b9['getAttribute']('src')));}(_0x34b975['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x13139f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x13139f);}execute(){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5ab06b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5ab06b&&(_0x5ab06b['is']('element','imageBlock')||_0x5ab06b['is']('element','imageInline'))&&(this['imageEditController']=new nt(this['editor'],this['editor']['plugins']['get'](_0x851813),_0x5ab06b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x1d4366{['refresh'](){const _0x3277d6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3277d6&&(_0x3277d6['is']('element','imageBlock')||_0x3277d6['is']('element','imageInline')));}execute(_0x420114){const _0x2f352b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xe757e9=>{_0xe757e9['setAttributes'](_0x420114,_0x2f352b),_0xe757e9['removeAttribute']('srcset',_0x2f352b),_0xe757e9['removeAttribute']('sizes',_0x2f352b);});}},ct=class extends _0x3b6558{static get['pluginName'](){return'UploadcareImageEditEditing';}static get requires(){return[Z,_0x2f420e,_0x3236fa,_0x1f6832];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x326589}=this;_0x326589['commands']['add']('uploadcareImageEdit',new at(_0x326589)),_0x326589['commands']['add']('uploadcareImageReplace',new ot(_0x326589));}},lt=class extends _0x3b6558{['_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 _0x498bea=this['editor'];_0x498bea['ui']['componentFactory']['add']('uploadcareImageEdit',_0x40fcfa=>{const _0x3d2e55=_0x498bea['commands']['get']('uploadcareImageEdit'),_0x52129c=new _0x195453(_0x40fcfa),t=_0x40fcfa['t'];return _0x52129c['set']({'icon':_0x54137f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x52129c['bind']('isEnabled')['to'](_0x3d2e55),_0x52129c['bind']('isOn')['to'](_0x3d2e55,'isActive'),this['listenTo'](_0x52129c,'execute',()=>{_0x498bea['execute']('uploadcareImageEdit'),_0x498bea['editing']['view']['focus']();}),_0x52129c;}),this['_initConfig']();}_initConfig(){const _0x14e6cb=_0x112f76(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x14e6cb),this['listenTo'](this['editor'],'destroy',()=>{_0x14e6cb['remove']();});}},ut=class extends _0x3b6558{static get['pluginName'](){return'UploadcareImageEdit';}static get requires(){return[ct,lt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{Y as Uploadcare,z as UploadcareCommand,Z as UploadcareEditing,ut as UploadcareImageEdit,at as UploadcareImageEditCommand,ct as UploadcareImageEditEditing,lt as UploadcareImageEditUI,V as UploadcareUI,J as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x4ea7c6=>0x1!=_0x4ea7c6}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x519f4e=>{const {af:{dictionary:_0x467fb7,getPluralForm:_0x2d0bf1}}={'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x28bb1f=>0x1!=_0x28bb1f}};_0x519f4e['af']||={'dictionary':{},'getPluralForm':null},_0x519f4e['af']['dictionary']=Object['assign'](_0x519f4e['af']['dictionary'],_0x467fb7),_0x519f4e['af']['getPluralForm']=_0x2d0bf1;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ar.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':
|
|
23
|
+
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x4709c8=>0x0==_0x4709c8?0x0:0x1==_0x4709c8?0x1:0x2==_0x4709c8?0x2:_0x4709c8%0x64>=0x3&&_0x4709c8%0x64<=0xa?0x3:_0x4709c8%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1b20d2=>{const {ar:{dictionary:_0x36b99b,getPluralForm:_0x243eb2}}={'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x2b6b5b=>0x0==_0x2b6b5b?0x0:0x1==_0x2b6b5b?0x1:0x2==_0x2b6b5b?0x2:_0x2b6b5b%0x64>=0x3&&_0x2b6b5b%0x64<=0xa?0x3:_0x2b6b5b%0x64>=0xb?0x4:0x5}};_0x1b20d2['ar']||={'dictionary':{},'getPluralForm':null},_0x1b20d2['ar']['dictionary']=Object['assign'](_0x1b20d2['ar']['dictionary'],_0x36b99b),_0x1b20d2['ar']['getPluralForm']=_0x243eb2;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ast.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x56081b=>0x1!=_0x56081b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x27e6e7=>{const {ast:{dictionary:_0x4aed09,getPluralForm:_0x2c3bad}}={'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x3f6243=>0x1!=_0x3f6243}};_0x27e6e7['ast']||={'dictionary':{},'getPluralForm':null},_0x27e6e7['ast']['dictionary']=Object['assign'](_0x27e6e7['ast']['dictionary'],_0x4aed09),_0x27e6e7['ast']['getPluralForm']=_0x2c3bad;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/az.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x6bc577=>0x1!=_0x6bc577}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xe13ad0=>{const {az:{dictionary:_0x3d9e73,getPluralForm:_0x31fce9}}={'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x49b8ad=>0x1!=_0x49b8ad}};_0xe13ad0['az']||={'dictionary':{},'getPluralForm':null},_0xe13ad0['az']['dictionary']=Object['assign'](_0xe13ad0['az']['dictionary'],_0x3d9e73),_0xe13ad0['az']['getPluralForm']=_0x31fce9;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x1665bc=>_0x1665bc%0xa==0x1&&_0x1665bc%0x64!=0xb?0x0:_0x1665bc%0xa>=0x2&&_0x1665bc%0xa<=0x4&&(_0x1665bc%0x64<0xa||_0x1665bc%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xc924f9=>{const {be:{dictionary:_0x1b6b82,getPluralForm:_0x151fdf}}={'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x1f2153=>_0x1f2153%0xa==0x1&&_0x1f2153%0x64!=0xb?0x0:_0x1f2153%0xa>=0x2&&_0x1f2153%0xa<=0x4&&(_0x1f2153%0x64<0xa||_0x1f2153%0x64>=0x14)?0x1:0x2}};_0xc924f9['be']||={'dictionary':{},'getPluralForm':null},_0xc924f9['be']['dictionary']=Object['assign'](_0xc924f9['be']['dictionary'],_0x1b6b82),_0xc924f9['be']['getPluralForm']=_0x151fdf;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bg.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':
|
|
23
|
+
export default{'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x45a838=>0x1!=_0x45a838}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x34882a=>{const {bg:{dictionary:_0x39380e,getPluralForm:_0x5e205b}}={'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x2484be=>0x1!=_0x2484be}};_0x34882a['bg']||={'dictionary':{},'getPluralForm':null},_0x34882a['bg']['dictionary']=Object['assign'](_0x34882a['bg']['dictionary'],_0x39380e),_0x34882a['bg']['getPluralForm']=_0x5e205b;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bn.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':
|
|
23
|
+
export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0x3cdddb=>0x1!=_0x3cdddb}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xf68925=>{const {bn:{dictionary:_0x27779c,getPluralForm:_0x1bba5e}}={'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0xdd79b=>0x1!=_0xdd79b}};_0xf68925['bn']||={'dictionary':{},'getPluralForm':null},_0xf68925['bn']['dictionary']=Object['assign'](_0xf68925['bn']['dictionary'],_0x27779c),_0xf68925['bn']['getPluralForm']=_0x1bba5e;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bs.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bs':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'bs':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x31069f=>_0x31069f%0xa==0x1&&_0x31069f%0x64!=0xb?0x0:_0x31069f%0xa>=0x2&&_0x31069f%0xa<=0x4&&(_0x31069f%0x64<0xa||_0x31069f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x129c8e=>{const {bs:{dictionary:_0x28ac54,getPluralForm:_0x4a46a0}}={'bs':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x3fb2ac=>_0x3fb2ac%0xa==0x1&&_0x3fb2ac%0x64!=0xb?0x0:_0x3fb2ac%0xa>=0x2&&_0x3fb2ac%0xa<=0x4&&(_0x3fb2ac%0x64<0xa||_0x3fb2ac%0x64>=0x14)?0x1:0x2}};_0x129c8e['bs']||={'dictionary':{},'getPluralForm':null},_0x129c8e['bs']['dictionary']=Object['assign'](_0x129c8e['bs']['dictionary'],_0x28ac54),_0x129c8e['bs']['getPluralForm']=_0x4a46a0;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ca.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':
|
|
23
|
+
export default{'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':_0x48b2eb=>0x1!=_0x48b2eb}};
|