@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260113.0 → 0.0.0-nightly-20260114.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/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/ast.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/be.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/eo.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/eu.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/gu.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/hy.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/kk.js +1 -0
- package/build/translations/km.js +1 -0
- package/build/translations/kn.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nb.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/oc.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/si.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sl.js +1 -0
- package/build/translations/sq.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/ti.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/build/uploadcare.js +5 -0
- package/ckeditor5-metadata.json +2 -2
- 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/package.json +33 -23
- package/{dist → src}/augmentation.d.ts +0 -4
- package/src/augmentation.js +23 -0
- package/{dist → src}/index.d.ts +0 -4
- package/src/index.js +23 -0
- package/{dist → src}/ui/uploadcarecontroller.d.ts +3 -7
- package/src/ui/uploadcarecontroller.js +24 -0
- package/{dist → src}/ui/uploadcareformview.d.ts +1 -5
- package/src/ui/uploadcareformview.js +23 -0
- package/{dist → src}/uploadcare.d.ts +1 -5
- package/src/uploadcare.js +23 -0
- package/{dist → src}/uploadcarecommand.d.ts +2 -6
- package/src/uploadcarecommand.js +23 -0
- package/{dist → src}/uploadcareconfig.d.ts +1 -5
- package/src/uploadcareconfig.js +23 -0
- package/{dist → src}/uploadcareediting.d.ts +2 -6
- package/src/uploadcareediting.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +5 -9
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +24 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +2 -6
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +2 -6
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +2 -6
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +1 -5
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimageeditcommand.d.ts +2 -6
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimageeditediting.d.ts +2 -6
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimageeditui.d.ts +1 -5
- package/src/uploadcareimageedit/uploadcareimageeditui.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +1 -5
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +23 -0
- package/{dist → src}/uploadcareimageedit.d.ts +1 -5
- package/src/uploadcareimageedit.js +23 -0
- package/{dist → src}/uploadcareui.d.ts +1 -5
- package/src/uploadcareui.js +23 -0
- package/{dist → src}/uploadcareuploadadapter.d.ts +2 -6
- package/src/uploadcareuploadadapter.js +23 -0
- package/{dist → src}/utils/common-translations.d.ts +0 -4
- package/src/utils/common-translations.js +23 -0
- package/{dist → src}/utils/dialogfocusmanagerview.d.ts +2 -6
- package/src/utils/dialogfocusmanagerview.js +23 -0
- package/{dist → src}/utils/editingutils.d.ts +0 -4
- package/src/utils/editingutils.js +23 -0
- package/{dist → src}/utils/isancestor.d.ts +0 -4
- package/src/utils/isancestor.js +23 -0
- package/{dist → src}/utils/uploadutils.d.ts +0 -4
- package/src/utils/uploadutils.js +23 -0
package/ckeditor5-metadata.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"className": "Uploadcare",
|
|
6
6
|
"description": "Allows inserting images into the rich-text editor content and to the Uploadcare cloud.",
|
|
7
7
|
"docs": "",
|
|
8
|
-
"path": "src/uploadcare.
|
|
8
|
+
"path": "src/uploadcare.js",
|
|
9
9
|
"requires": [
|
|
10
10
|
[
|
|
11
11
|
"ImageBlock",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"className": "UploadcareImageEdit",
|
|
32
32
|
"description": "Allows editing images.",
|
|
33
33
|
"docs": "",
|
|
34
|
-
"path": "src/uploadcareimageedit.
|
|
34
|
+
"path": "src/uploadcareimageedit.js",
|
|
35
35
|
"requires": [
|
|
36
36
|
"Uploadcare"
|
|
37
37
|
],
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x41d798,Command as _0x2c9eb8}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1296f4,IconGooglePhotos as _0x2b533f,IconGoogleDrive as _0x59bb10,IconFacebook as _0x3c36f4,IconDropbox as _0x281bb2,IconUploadcareLink as _0x3fbb2f,IconUploadcareImageUpload as _0x138699,IconError as _0x3f8819,IconUploadcareImageEdit as _0x36b588}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x40aa4b,MenuBarMenuListItemButtonView as _0x4c0f79,View as _0x371a0c,FocusCycler as _0x1a0f41,Dialog as _0x447a09,DialogViewPosition as _0x22f0a7,SpinnerView as _0x193a62,IconView as _0x4dd9dc,Notification as _0x73e358}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5bf015,DomEmitterMixin as _0xd2a10c,global as _0x2b8df2,getAncestors as _0x28d2de,ObservableMixin as _0x2aadfe,uid as _0x33f4d2,createElement as _0x1f7e0e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x53c2a6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x7bb793,info as _0x4761ca}from'@uploadcare/upload-client';import*as _0x157a6b from'@uploadcare/file-uploader';var S=function(_0x2caef9){return _0x2caef9['Local']='local',_0x2caef9['URL']='url',_0x2caef9['Dropbox']='dropbox',_0x2caef9['GDrive']='gdrive',_0x2caef9['Facebook']='facebook',_0x2caef9['GPhotos']='gphotos',_0x2caef9['OneDrive']='onedrive',_0x2caef9;}({});function T(_0x4423f4,_0x3cc1fe,_0x384af0){const t=_0x4423f4['t'],_0x450389=_0x4423f4['t'];switch(_0x3cc1fe){case S['Local']:return{'text':_0x450389('Insert'===_0x384af0?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x450389('From\x20computer')};case S['URL']:return{'text':'Insert'===_0x384af0?_0x450389('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x450389('Via\x20URL')};case S['Dropbox']:return{'text':t('Insert'===_0x384af0?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case S['Facebook']:return{'text':t('Insert'===_0x384af0?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case S['GDrive']:return{'text':t('Insert'===_0x384af0?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case S['GPhotos']:return{'text':t('Insert'===_0x384af0?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case S['OneDrive']:return{'text':t('Insert'===_0x384af0?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3cc1fe;}}class A extends _0x41d798{['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 _0x363298=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x43793f;for(const _0x1a9867 in _0x363298){const _0x460174=_0x1a9867,_0xfeac90=_0x363298[_0x460174];if('uploadcareLicenseKeyValid'==_0xfeac90||'uploadcareLicenseKeyInvalid'==_0xfeac90||'uploadcareLicenseKeyExpired'==_0xfeac90||'uploadcareLicenseKeyDomainLimit'==_0xfeac90||'uploadcareLicenseKeyNotAllowed'==_0xfeac90||'uploadcareLicenseKeyEvaluationLimit'==_0xfeac90||'uploadcareLicenseKeyUsageLimit'==_0xfeac90){delete _0x363298[_0x460174],_0x43793f=_0xfeac90,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x43793f&&_0x363298['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x43793f&&_0x363298['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x43793f&&_0x363298['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x43793f&&_0x363298['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x43793f&&_0x363298['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x43793f&&_0x363298['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2c4224}=this,_0x5c8e96=_0x2c4224['commands']['get']('uploadcare');if(!_0x5c8e96)return;const _0x175cd8=this['_normalizeConfigSourceList'](_0x2c4224['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4137c9,_0x54cc44)=>{const _0x52a4ec=this['_getIntegrationKey'](_0x54cc44['type']);return _0x4137c9[_0x52a4ec]||(_0x4137c9[_0x52a4ec]=[]),_0x4137c9[_0x52a4ec]['push'](_0x54cc44),_0x4137c9;},{});_0x2c4224['plugins']['has']('ImageInsertUI')&&_0x2c4224['commands']['get']('uploadcare')&&Object['entries'](_0x175cd8)['forEach'](([_0x1548a5,_0x11ce33])=>{_0x2c4224['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1548a5,'observable':()=>_0x5c8e96,'buttonViewCreator':()=>this['_createToolbarButton'](_0x11ce33),'formViewCreator':()=>this['_createDropdownButtons'](_0x11ce33),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x11ce33),'override':'assetManager'!==_0x1548a5});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x562c07){const {locale:_0x46fed7}=this['editor'];return _0x562c07['map'](_0x1753c0=>{const _0x2bc931=T(_0x46fed7,_0x1753c0,'Insert');switch(_0x1753c0){case S['Local']:return{'icon':_0x138699,'type':S['Local'],..._0x2bc931};case S['URL']:return{'icon':_0x3fbb2f,'type':S['URL'],..._0x2bc931};case S['Dropbox']:return{'icon':_0x281bb2,'type':S['Dropbox'],..._0x2bc931};case S['Facebook']:return{'icon':_0x3c36f4,'type':S['Facebook'],..._0x2bc931};case S['GDrive']:return{'icon':_0x59bb10,'type':S['GDrive'],..._0x2bc931};case S['GPhotos']:return{'icon':_0x2b533f,'type':S['GPhotos'],..._0x2bc931};case S['OneDrive']:return{'icon':_0x1296f4,'type':S['OneDrive'],..._0x2bc931};}});}['_getIntegrationKey'](_0x59ad34){switch(_0x59ad34){case S['Local']:return'upload';case S['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5c49ce,_0x41e406){const _0x345ba9=this['editor'],_0x344e73=new _0x5c49ce(_0x345ba9['locale']),_0x4cbf0b=_0x345ba9['commands']['get']('uploadcare');return _0x344e73['bind']('isEnabled')['to'](_0x4cbf0b),_0x344e73['on']('execute',()=>{_0x4cbf0b['execute'](_0x41e406);}),_0x344e73;}['_createToolbarButton'](_0x31aac2){const {locale:_0x212d14}=this['editor'],_0x5f40d0=this['editor']['plugins']['get']('ImageInsertUI'),_0x1035f2=_0x31aac2[0x0],_0x77978a=this['_createButton'](_0x40aa4b,_0x1035f2['type']);return _0x77978a['icon']=_0x1035f2['icon'],_0x77978a['bind']('label')['to'](_0x5f40d0,'isImageSelected',_0x163f17=>T(_0x212d14,_0x1035f2['type'],_0x163f17?'Replace':'Insert')['text']),_0x77978a['tooltip']=!0x0,_0x77978a;}['_createDropdownButtons'](_0x385528){const {locale:_0x52f6e3}=this['editor'],_0x185e9b=this['editor']['plugins']['get']('ImageInsertUI');return _0x385528['map'](_0xfa8bd6=>{const _0x271d9e=this['_createButton'](_0x40aa4b,_0xfa8bd6['type']);return _0x271d9e['withText']=!0x0,_0x271d9e['icon']=_0xfa8bd6['icon'],_0x271d9e['bind']('label')['to'](_0x185e9b,'isImageSelected',_0x2516fa=>T(_0x52f6e3,_0xfa8bd6['type'],_0x2516fa?'Replace':'Insert')['text']),_0x271d9e;});}['_createMenuBarButtons'](_0x266f4e){return _0x266f4e['map'](_0xa560f9=>{const _0xf4093d=this['_createButton'](_0x4c0f79,_0xa560f9['type']);return _0xf4093d['icon']=_0xa560f9['icon'],_0xf4093d['label']=_0xa560f9['shortText'],_0xf4093d;});}}class K extends _0x371a0c{['focusTracker'];['focusCycler'];constructor(_0x5d03ef){super(_0x5d03ef),this['focusTracker']=new _0x5bf015(),this['focusCycler']=new _0x1a0f41({'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 O extends K{constructor(_0x5d4395,_0x2980bd){super(_0x5d4395),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-'+_0x2980bd}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function D(_0x45b391,_0x4f9c76){const _0x23f709=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4c2d77=>_0x4c2d77<=_0x4f9c76)['map'](_0x4b906d=>_0x45b391['replace'](/\/$/,'')+'/-/resize/'+_0x4b906d+'x/\x20'+_0x4b906d+'w');return{'imageFallbackUrl':_0x45b391,'imageSources':[{'srcset':_0x23f709['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4f9c76+'px)\x20100vw,\x20'+_0x4f9c76+'px','type':'image/webp'}]};}function F(_0x811cc2,_0x380dc4,_0x2bb60d){const _0x4f6839=_0x811cc2['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4f6839?parseInt(_0x4f6839[0x1],0xa):_0x380dc4,'height':_0x4f6839?parseInt(_0x4f6839[0x2],0xa):_0x2bb60d};}function $(_0x4a019a,_0xa74e94){const _0x2f06da=new(_0xd2a10c())(),_0x197aca=_0x4a019a['plugins']['get']('ImageUtils'),_0x3f2b38=_0x4a019a['editing']['mapper']['toViewElement'](_0xa74e94),_0x2cb2df=_0x197aca['findViewImgElement'](_0x3f2b38),_0x43c01f=_0x4a019a['editing']['view']['domConverter']['viewToDom'](_0x2cb2df),_0x2bd415=_0xa74e94['getAttribute']('width'),_0x2f7eb7=_0xa74e94['getAttribute']('height'),_0x2c53b9='image-processing';_0x4a019a['editing']['view']['change'](_0x560012=>{_0x560012['addClass'](_0x2c53b9,_0x3f2b38),_0x560012['setStyle']('aspect-ratio',_0x2bd415+'/'+_0x2f7eb7,_0x2cb2df);}),_0x2f06da['listenTo'](_0x43c01f,'load',()=>{_0x2f06da['stopListening'](_0x43c01f,'load'),_0x4a019a['editing']['view']['change'](_0x1f7668=>{_0x1f7668['removeClass'](_0x2c53b9,_0x3f2b38),_0x1f7668['removeStyle']('aspect-ratio',_0x2cb2df);});});}function B(_0x4092a9){if(Array['isArray'](_0x4092a9)){const _0x20d518=_0x4092a9['map'](B);return _0x180d3a=>_0x20d518['some'](_0x5267d4=>_0x5267d4(_0x180d3a));}if('origin'==_0x4092a9){const _0x620978=_0x2b8df2['window']['location']['origin'];return _0xd9b1a=>new URL(_0xd9b1a,_0x2b8df2['document']['baseURI'])['origin']==_0x620978;}return'function'==typeof _0x4092a9?_0x4092a9:_0x4092a9 instanceof RegExp?_0x38a0e2=>!(!_0x38a0e2['match'](_0x4092a9)&&!_0x38a0e2['replace'](/^https?:\/\//,'')['match'](_0x4092a9)):()=>!0x1;}function V(_0xf9f572,_0x1722f8){return _0x28d2de(_0xf9f572['target'])['includes'](_0x1722f8);}class j extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2aadfe(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x360717,_0x11cd2c,_0x585ba9){super(),this['_editor']=_0x360717,this['_editing']=_0x11cd2c,this['_dialog']=_0x360717['plugins']['get'](_0x447a09),this['_api']=_0x11cd2c['ctxElement']['getAPI'](),this['_type']=_0x585ba9,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:_0x2a41fa,model:_0x4f717b}=this['_editor'],_0x2a6fbf=_0x4f717b['document']['selection']['getSelectedElement'](),_0x3096b5=_0x2a6fbf&&(_0x2a6fbf['is']('element','imageBlock')||_0x2a6fbf['is']('element','imageInline'));this['_formView']=new O(_0x2a41fa,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x138699,'title':T(_0x2a41fa,this['_type'],_0x3096b5?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x22f0a7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4e0f04=>!V(_0x4e0f04,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x20d384}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x318ecc=>{const _0x525c13=_0x20d384['length'];for(const _0x53a700 of _0x20d384){const _0x146587=_0x53a700===_0x20d384[_0x525c13-0x1],{cdnUrl:_0x3e9a27,fileInfo:_0x5cf460}=_0x53a700;if(!_0x3e9a27||!_0x5cf460)continue;const {width:_0x545848,height:_0x2316f1}=_0x5cf460['imageInfo'],_0x1408e8=F(_0x3e9a27,_0x545848,_0x2316f1),_0x25cf50=D(_0x3e9a27,_0x1408e8['width']),_0x3ca622={'id':_0x5cf460['uuid'],'type':'image','attributes':{'imageDimension':_0x1408e8,..._0x25cf50}};this['_insertAsset'](_0x3ca622,_0x146587,_0x318ecc);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2bee31=>{'idle'===_0x2bee31['detail']['status']&&!_0x2bee31['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===S['Local']?this['_api']['setCurrentActivity'](S['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x21ea2f,_0x4f04a1,_0x338c2b){const _0x587cbb=this['_editor']['model']['document']['selection'],_0x409c94=_0x587cbb['getSelectedElement'](),_0x208a1f=!(!_0x409c94||!_0x409c94['is']('element','imageInline'));_0x338c2b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x21ea2f,_0x208a1f),_0x4f04a1||_0x338c2b['setSelection'](_0x587cbb['getLastPosition']());}['_insertImage'](_0x192b39,_0x400b27){const _0x3040b4=this['_editor'],{imageDimension:_0x2f79d6,imageFallbackUrl:_0x2fb451,imageSources:_0xcd00ba}=_0x192b39['attributes'];_0x3040b4['execute']('insertImage',{'imageType':_0x400b27?'imageInline':null,'source':{'uploadcareImageId':_0x192b39['id'],'src':_0x2fb451,'sources':_0xcd00ba,..._0x2f79d6}});}}class M extends _0x2c9eb8{['_editing'];['_controller']=null;static get['requires'](){return[_0x447a09,z];}constructor(_0x5fe587){super(_0x5fe587),this['_editing']=_0x5fe587['plugins']['get'](z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2b2fef){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new j(this['editor'],this['_editing'],_0x2b2fef);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class q{static['upload']({file:_0x51b67d,..._0x5ad58b}){return _0x7bb793(_0x51b67d,_0x5ad58b);}static['getInfo'](_0x4aaf5b,_0x3f9ae5){return _0x4761ca(_0x4aaf5b,_0x3f9ae5);}}class W extends _0x41d798{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x53c2a6,z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1744e1=this['editor'];if(!!!_0x1744e1['config']['get']('uploadcare'))return;_0x1744e1['plugins']['get'](_0x53c2a6)['createUploadAdapter']=_0x2b3215=>new G(_0x2b3215,_0x1744e1),_0x1744e1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x14dc2b,{imageElement:_0x30c5e0,data:_0x23c5ad})=>{_0x1744e1['model']['change'](_0x1c20c6=>{_0x1c20c6['setAttribute']('uploadcareImageId',_0x23c5ad['uploadcareImageId'],_0x30c5e0);});});}}class G{['loader'];['editor'];['controller'];constructor(_0xabfffb,_0x30c55c){this['loader']=_0xabfffb,this['editor']=_0x30c55c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5c34e5=await this['loader']['file'];return q['upload']({'file':_0x5c34e5,'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':_0x34803d=>{_0x34803d&&_0x34803d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x34803d['value']);}})['then'](async _0x370073=>{const {imageFallbackUrl:_0xfbd74d,imageSources:_0x138676}=D(_0x370073['cdnUrl'],_0x370073['imageInfo']['width']);return{'uploadcareImageId':_0x370073['uuid'],'default':_0xfbd74d,'sources':_0x138676};})['catch'](()=>{const _0x4b15a3=t('Cannot\x20upload\x20file:')+('\x20'+_0x5c34e5['name']+'.');return Promise['reject'](_0x4b15a3);});}['abort'](){this['controller']['abort']();}}class z extends _0x41d798{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',W,_0x447a09];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xd43bd7){super(_0xd43bd7),this['ucContextId']=_0x33f4d2();}['init'](){const _0x59b300=this['editor'];_0x59b300['commands']['add']('uploadcare',new M(_0x59b300));}['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 _0x508c76=_0x2b8df2['document']['querySelector']('input[uploadcare-file-input]');_0x508c76&&_0x508c76['remove']();}),async function(_0x361921){const _0x3d5e7e=_0x3b5f05([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x47c687=0x535f8c3a,_0xe15d0d=0x5358f28a^_0x47c687,_0x1caa4a=window[_0x3b5f05([0x44,0x61,0x74,0x65])][_0x3b5f05([0x6e,0x6f,0x77])](),_0x4898b2=_0x361921[_0x3b5f05([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5567ea=new window[(_0x3b5f05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa59428=>{_0x4898b2[_0x3b5f05([0x6f,0x6e,0x63,0x65])](_0x3b5f05([0x72,0x65,0x61,0x64,0x79]),_0xa59428);}),_0x1552dc={[_0x3b5f05([0x6b,0x74,0x79])]:_0x3b5f05([0x45,0x43]),[_0x3b5f05([0x75,0x73,0x65])]:_0x3b5f05([0x73,0x69,0x67]),[_0x3b5f05([0x63,0x72,0x76])]:_0x3b5f05([0x50,0x2d,0x32,0x35,0x36]),[_0x3b5f05([0x78])]:_0x3b5f05([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3b5f05([0x79])]:_0x3b5f05([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3b5f05([0x61,0x6c,0x67])]:_0x3b5f05([0x45,0x53,0x32,0x35,0x36])},_0x12ddc4=_0x4898b2[_0x3b5f05([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b5f05([0x67,0x65,0x74])](_0x3b5f05([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e65f8(){let _0x16f86d,_0x25d37e=null,_0x47932e=null;try{if(_0x12ddc4==_0x3b5f05([0x47,0x50,0x4c]))return _0x3b5f05([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16f86d=_0x37e30b(),!_0x16f86d)return _0x3b5f05([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16f86d[_0x3b5f05([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x47932e=_0x383f06(_0x16f86d[_0x3b5f05([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16f86d[_0x3b5f05([0x6a,0x74,0x69])])),await _0x232fc0()?_0xb895a0()?_0x29ad2f()?_0x3b5f05([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25fcdc()?(_0x16f86d[_0x3b5f05([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b5f05([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x25d37e=_0xe353f8(_0x3b5f05([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x584d39()):_0x3b5f05([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b5f05([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b5f05([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b5f05([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x29ad2f(){const _0x303a0c=[_0x3b5f05([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b5f05([0x74,0x72,0x69,0x61,0x6c])][_0x3b5f05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16f86d[_0x3b5f05([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1caa4a/0x3e8:0xe10*_0xe15d0d;return _0x16f86d[_0x3b5f05([0x65,0x78,0x70])]<_0x303a0c;}function _0xb895a0(){const _0x566545=_0x16f86d[_0x3b5f05([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x566545&&(!!_0x566545[_0x3b5f05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b5f05([0x2a]))||!!_0x566545[_0x3b5f05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b5f05([0x55,0x50,0x4c,0x43])));}function _0x25fcdc(){const _0x34f90b=_0x16f86d[_0x3b5f05([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34f90b||0x0==_0x34f90b[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f55ff}=new URL(window[_0x3b5f05([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x34f90b[_0x3b5f05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f55ff))return!0x0;const _0x28048f=_0x4f55ff[_0x3b5f05([0x73,0x70,0x6c,0x69,0x74])](_0x3b5f05([0x2e]));return _0x34f90b[_0x3b5f05([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x261141=>_0x261141[_0x3b5f05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b5f05([0x2a])))[_0x3b5f05([0x6d,0x61,0x70])](_0x47f7a6=>_0x47f7a6[_0x3b5f05([0x73,0x70,0x6c,0x69,0x74])](_0x3b5f05([0x2e])))[_0x3b5f05([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x235078=>_0x235078[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28048f[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b5f05([0x6d,0x61,0x70])](_0x25b619=>Array(_0x28048f[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x25b619[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b5f05([0x66,0x69,0x6c,0x6c])](_0x25b619[0x0]===_0x3b5f05([0x2a])?_0x3b5f05([0x2a]):'')[_0x3b5f05([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x25b619))[_0x3b5f05([0x73,0x6f,0x6d,0x65])](_0x4a0b23=>_0x28048f[_0x3b5f05([0x65,0x76,0x65,0x72,0x79])]((_0x29dcda,_0x390d21)=>_0x4a0b23[_0x390d21]===_0x29dcda||_0x4a0b23[_0x390d21]===_0x3b5f05([0x2a])));}function _0x584d39(){return _0x25d37e&&_0x47932e?new window[(_0x3b5f05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x24de60,_0x24c264)=>{_0x25d37e[_0x3b5f05([0x74,0x68,0x65,0x6e])](_0x24de60,_0x24c264),_0x47932e[_0x3b5f05([0x74,0x68,0x65,0x6e])](_0x4aaac1=>{_0x4aaac1!=_0x3b5f05([0x56,0x61,0x6c,0x69,0x64])&&_0x24de60(_0x4aaac1);},_0x24c264);}):_0x25d37e||_0x47932e||_0x3b5f05([0x56,0x61,0x6c,0x69,0x64]);}}function _0x383f06(_0x511013,_0x3b9baa){return new window[(_0x3b5f05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf02e4e=>{if(_0x304196())return _0xf02e4e(_0x3b5f05([0x56,0x61,0x6c,0x69,0x64]));_0x155369(),_0x4898b2[_0x3b5f05([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b5f05([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3a77b4=!0x1;const _0x1cf50c=_0x33f4d2();function _0x21bd65(_0x22a88c){return!!_0x22a88c&&(typeof _0x22a88c===_0x3b5f05([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22a88c===_0x3b5f05([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22a88c[_0x3b5f05([0x74,0x68,0x65,0x6e])]===_0x3b5f05([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22a88c[_0x3b5f05([0x63,0x61,0x74,0x63,0x68])]===_0x3b5f05([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x95c9ec(_0x37b209){_0xd06d75(_0x37b209)[_0x3b5f05([0x74,0x68,0x65,0x6e])](_0x22e2d2=>{if(!_0x22e2d2||_0x22e2d2[_0x3b5f05([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b5f05([0x6f,0x6b]))return _0x3b5f05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c7440(_0x3435d4(_0x1cf50c+_0x3b9baa))!=_0x22e2d2[_0x3b5f05([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b5f05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b5f05([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b5f05([0x74,0x68,0x65,0x6e])](_0xebd956=>(_0x2b617f(),_0xebd956),()=>{const _0x3d81ba=_0x56b984();return null==_0x3d81ba?(_0x2b617f(),_0x3b5f05([0x56,0x61,0x6c,0x69,0x64])):_0x3b5f05(_0x1caa4a-_0x3d81ba>(0x7753083a^_0x47c687)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b5f05([0x74,0x68,0x65,0x6e])](_0xf02e4e)[_0x3b5f05([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf02e4e(_0x3b5f05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35c1c7=0x536962ba^_0x47c687;function _0x2b617f(){const _0xbd911a=_0x3b5f05([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c7440(_0x3435d4(_0x511013)),_0x318caf=_0x8f2ca5(_0x2c7440(window[_0x3b5f05([0x4d,0x61,0x74,0x68])][_0x3b5f05([0x63,0x65,0x69,0x6c])](_0x1caa4a/_0x35c1c7)));window[_0x3b5f05([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b5f05([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xbd911a,_0x318caf);}function _0x56b984(){const _0x5ddf38=_0x3b5f05([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c7440(_0x3435d4(_0x511013)),_0x26138c=window[_0x3b5f05([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b5f05([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ddf38);return _0x26138c?window[_0x3b5f05([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8f2ca5(_0x26138c),0x10)*_0x35c1c7:null;}function _0xd06d75(_0x43090a){return new window[(_0x3b5f05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44b624,_0x7e4ddf)=>{_0x43090a[_0x3b5f05([0x74,0x68,0x65,0x6e])](_0x44b624,_0x7e4ddf),window[_0x3b5f05([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x7e4ddf,0x535e58fa^_0x47c687);});}}_0x4898b2[_0x3b5f05([0x6f,0x6e])](_0x3b5f05([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2cb02b,_0x16a05c)=>{if(_0x16a05c[0x0]!=_0x511013)return _0xf02e4e(_0x3b5f05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x16a05c[0x1]={..._0x16a05c[0x1],[_0x3b5f05([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1cf50c};},{[_0x3b5f05([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b5f05([0x68,0x69,0x67,0x68])}),_0x4898b2[_0x3b5f05([0x6f,0x6e])](_0x3b5f05([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5620c3=>{_0x21bd65(_0x5620c3[_0x3b5f05([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3a77b4=!0x0,_0x95c9ec(_0x5620c3[_0x3b5f05([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b5f05([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b5f05([0x6c,0x6f,0x77])}),_0x5567ea[_0x3b5f05([0x74,0x68,0x65,0x6e])](()=>{_0x3a77b4||_0xf02e4e(_0x3b5f05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x304196(){return _0x4898b2[_0x3b5f05([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b5f05([0x76,0x69,0x65,0x77])][_0x3b5f05([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b5f05([0x61,0x75,0x74,0x6f]);}function _0x155369(){_0x4898b2[_0x3b5f05([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b5f05([0x76,0x69,0x65,0x77])][_0x3b5f05([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b5f05([0x61,0x75,0x74,0x6f]);}}function _0xe353f8(_0x588e8b){const _0x42c2b7=[new window[(_0x3b5f05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51f7b9=>setTimeout(_0x51f7b9,0x5356b2f6^_0x47c687)),_0x5567ea[_0x3b5f05([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b5f05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19016c=>{let _0x4a5f01=0x0;_0x4898b2[_0x3b5f05([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b5f05([0x6f,0x6e])](_0x3b5f05([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2cbd80,_0x1aba84)=>{_0x1aba84[0x0][_0x3b5f05([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a5f01++,_0x4a5f01==(0x535f89d2^_0x47c687)&&(_0x19016c(),_0x2cbd80[_0x3b5f05([0x6f,0x66,0x66])]());});}))];return window[_0x3b5f05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b5f05([0x72,0x61,0x63,0x65])](_0x42c2b7)[_0x3b5f05([0x74,0x68,0x65,0x6e])](()=>_0x588e8b);}async function _0x1a41df(){await _0x5567ea,_0x4898b2[_0x3b5f05([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b5f05([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38a0f6,_0x4898b2[_0x3b5f05([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b5f05([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38a0f6,_0x4898b2[_0x3b5f05([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b5f05([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c609c(_0x2f136b){const _0x24e66b=_0x2db115();_0x4898b2[_0x24e66b]=_0x3b5f05([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2f136b,_0x2f136b!=_0x3b5f05([0x56,0x61,0x6c,0x69,0x64])&&_0x1a41df();}function _0x2db115(){const _0x3a9706=window[_0x3b5f05([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b5f05([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b5f05([0x6e,0x6f,0x77])]())[_0x3b5f05([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b5f05([0x2e]),'');let _0x17a6f3=_0x3b5f05([0x68]);for(let _0x52ee33=0x0;_0x52ee33<_0x3a9706[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52ee33+=0x2){let _0x24ee1c=window[_0x3b5f05([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a9706[_0x3b5f05([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52ee33,_0x52ee33+0x2));_0x24ee1c>=_0x3d5e7e[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x24ee1c-=_0x3d5e7e[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17a6f3+=_0x3d5e7e[_0x24ee1c];}return _0x17a6f3;}function _0x37e30b(){const _0xca224=_0x12ddc4[_0x3b5f05([0x73,0x70,0x6c,0x69,0x74])](_0x3b5f05([0x2e]));if(0x3!=_0xca224[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e7e9c(_0xca224[0x1]);function _0x4e7e9c(_0x1fb940){const _0x429b2d=_0x196be9(_0x1fb940);return _0x429b2d&&_0x1b36b8()?_0x429b2d:null;function _0x1b36b8(){const _0x2d315b=_0x429b2d[_0x3b5f05([0x6a,0x74,0x69])],_0x2c6ae3=window[_0x3b5f05([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d315b[_0x3b5f05([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d315b[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48329b={..._0x429b2d,[_0x3b5f05([0x6a,0x74,0x69])]:_0x2d315b[_0x3b5f05([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d315b[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48329b[_0x3b5f05([0x76,0x63])],_0x3435d4(_0x48329b)==_0x2c6ae3;}}}async function _0x232fc0(){let _0x49e233=!0x0;try{const _0x3bd277=_0x12ddc4[_0x3b5f05([0x73,0x70,0x6c,0x69,0x74])](_0x3b5f05([0x2e])),[_0x4929fa,_0x11ffa9,_0x3a7210]=_0x3bd277;return _0x97ffbd(_0x4929fa),await _0x256ad4(_0x4929fa,_0x11ffa9,_0x3a7210),_0x49e233;}catch{return!0x1;}function _0x97ffbd(_0x5df3ef){const _0x7aec82=_0x196be9(_0x5df3ef);_0x7aec82&&_0x7aec82[_0x3b5f05([0x61,0x6c,0x67])]==_0x3b5f05([0x45,0x53,0x32,0x35,0x36])||(_0x49e233=!0x1);}async function _0x256ad4(_0x3d84fa,_0x25f22b,_0x26879d){const _0x122306=window[_0x3b5f05([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b5f05([0x66,0x72,0x6f,0x6d])](_0x423be8(_0x26879d),_0x3b744e=>_0x3b744e[_0x3b5f05([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x219904=new window[(_0x3b5f05([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b5f05([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d84fa+_0x3b5f05([0x2e])+_0x25f22b),_0x5af5f9=window[_0x3b5f05([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b5f05([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5af5f9)return;const _0x41d4ee=await _0x5af5f9[_0x3b5f05([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b5f05([0x6a,0x77,0x6b]),_0x1552dc,{[_0x3b5f05([0x6e,0x61,0x6d,0x65])]:_0x3b5f05([0x45,0x43,0x44,0x53,0x41]),[_0x3b5f05([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b5f05([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b5f05([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5af5f9[_0x3b5f05([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b5f05([0x6e,0x61,0x6d,0x65])]:_0x3b5f05([0x45,0x43,0x44,0x53,0x41]),[_0x3b5f05([0x68,0x61,0x73,0x68])]:{[_0x3b5f05([0x6e,0x61,0x6d,0x65])]:_0x3b5f05([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x41d4ee,_0x122306,_0x219904)||(_0x49e233=!0x1);}}function _0x196be9(_0x4c4de9){return _0x4c4de9[_0x3b5f05([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b5f05([0x65,0x79]))?JSON[_0x3b5f05([0x70,0x61,0x72,0x73,0x65])](_0x423be8(_0x4c4de9)):null;}function _0x423be8(_0x52ae47){return window[_0x3b5f05([0x61,0x74,0x6f,0x62])](_0x52ae47[_0x3b5f05([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b5f05([0x2b]))[_0x3b5f05([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b5f05([0x2f])));}function _0x3435d4(_0x5af071){let _0x360669=0x1505;function _0x335e9d(_0x47dbfc){for(let _0x3eaac5=0x0;_0x3eaac5<_0x47dbfc[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3eaac5++){const _0x46465b=_0x47dbfc[_0x3b5f05([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3eaac5);_0x360669=(_0x360669<<0x5)+_0x360669+_0x46465b,_0x360669&=_0x360669;}}function _0x15b54a(_0x10c0c9){Array[_0x3b5f05([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10c0c9)?_0x10c0c9[_0x3b5f05([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15b54a):_0x10c0c9&&typeof _0x10c0c9==_0x3b5f05([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b5f05([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10c0c9)[_0x3b5f05([0x73,0x6f,0x72,0x74])]()[_0x3b5f05([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x373ba1,_0x4404c2])=>{_0x335e9d(_0x373ba1),_0x15b54a(_0x4404c2);}):_0x335e9d(window[_0x3b5f05([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10c0c9));}return _0x15b54a(_0x5af071),_0x360669>>>0x0;}function _0x2c7440(_0x2f16c7){return _0x2f16c7[_0x3b5f05([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b5f05([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b5f05([0x30]));}function _0x8f2ca5(_0x5eb0ce){return _0x5eb0ce[_0x3b5f05([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b5f05([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b5f05([0x6a,0x6f,0x69,0x6e])]('');}function _0x38a0f6(){}function _0x3b5f05(_0x529c33){return _0x529c33['map'](_0xc946cb=>String['fromCharCode'](_0xc946cb))['join']('');}_0x1c609c(await _0x3e65f8());}(this);}['_initSchema'](){const _0x1f149a=this['editor']['model']['schema'];_0x1f149a['isRegistered']('imageBlock')&&_0x1f149a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1f149a['isRegistered']('imageInline')&&_0x1f149a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2ce92a=this['editor'];_0x2ce92a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2ce92a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x547b8a=>_0x547b8a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1610a4=_0x2ce92a['commands']['get']('replaceImageSource');_0x1610a4&&this['listenTo'](_0x1610a4,'cleanupImage',(_0x389928,[_0x126516,_0x323f14])=>{_0x126516['removeAttribute']('uploadcareImageId',_0x323f14);});}['_initConfig'](){const _0x4da48d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x22cf01=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1f7e0e(_0x2b8df2['document'],'uc-config',{..._0x4da48d,'pubkey':_0x22cf01,'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']=_0x4995bb=>{if('closeMax'==_0x4995bb)return'#uc-icon-arrow-down';},_0x2b8df2['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1f7e0e(_0x2b8df2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2b8df2['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x13a279=this['editor']['commands']['get']('insertImage');_0x13a279&&this['listenTo'](_0x13a279,'execute',()=>{const _0x2b2f7c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2b2f7c&&_0x2b2f7c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x2b2f7c);});});const _0x442006=this['editor']['commands']['get']('uploadcareImageReplace');_0x442006&&this['listenTo'](_0x442006,'execute',()=>{const _0xd058bf=this['editor']['model']['document']['selection']['getSelectedElement']();_0xd058bf&&_0xd058bf['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0xd058bf);});});}}class H extends _0x41d798{static get['requires'](){return[z,A];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x140bd9){super(_0x140bd9),_0x140bd9['config']['define']('uploadcare.uploader.sourceList',[S['Local'],S['URL']]),_0x157a6b['defineComponents'](_0x157a6b),this['_defineLocale']();}['_defineLocale'](){const _0x513825=this['editor']['config']['get']('uploadcare.locale'),_0x3ec151=this['editor']['locale']['contentLanguage'];_0x513825&&_0x157a6b['defineLocale'](_0x3ec151,_0x513825);}}class J extends _0x371a0c{constructor(_0x17df4c){super(_0x17df4c);const t=_0x17df4c['t'],_0x26d87c=this['bindTemplate'],_0x2ed3b8=new _0x193a62();_0x2ed3b8['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':[_0x2ed3b8,{'text':_0x26d87c['to']('imageUploadProgress',_0x5091a3=>t('Loading\x20image...')+'\x20('+(_0x5091a3||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'}]}]}]});}}class Z extends _0x371a0c{constructor(_0x4766c3){super(_0x4766c3);const t=_0x4766c3['t'];this['set']('errorType',null);const _0x437761=new _0x40aa4b(_0x4766c3);_0x437761['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x437761['withText']=!0x0,_0x437761['class']='ck-button-action',_0x437761['on']('execute',()=>{this['fire']('retry');}),_0x437761['bind']('isVisible')['to'](this,'errorType',_0x30b210=>'NotFound'!==_0x30b210);const _0x5ea057=new _0x4dd9dc();_0x5ea057['content']=_0x3f8819,_0x5ea057['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x125cde=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':[_0x5ea057,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x125cde['to']('errorType',_0x241da1=>t('NotFound'!==_0x241da1?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x437761]},{'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'}]}]}]});}}class Q extends _0x371a0c{constructor(_0x3b5585,_0x266a1b){super(_0x3b5585);const _0x54f561=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x266a1b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x54f561['to']('imageSrc')}});}}class X extends K{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5cb3e9,_0x1ac762,_0x18830c){super(_0x5cb3e9),this['_items']=this['createCollection'](),this['_loadingView']=new J(_0x5cb3e9),this['_errorView']=new Z(_0x5cb3e9),this['_editingView']=new Q(_0x5cb3e9,_0x18830c),this['_focusableView']=new _0x371a0c(_0x5cb3e9),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1ac762),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'],_0xcc67f1=>{this['_addUploadcareImageEditorListeners'](_0xcc67f1);});}),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'](_0x50c367,_0x86f7b2){const _0x18da27='uc-cloud-image-editor',_0x2921a5=_0x50c367['querySelector'](_0x18da27);if(_0x2921a5)return _0x86f7b2(_0x2921a5);const _0x469e66=new MutationObserver(_0x430b80=>{const _0x485e69=_0x430b80['filter'](_0xc31684=>_0xc31684['target']===_0x50c367&&_0xc31684['addedNodes']['length']>0x0&&_0xc31684['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x18da27);_0x485e69['length']&&(_0x469e66['disconnect'](),_0x86f7b2(_0x485e69[0x0]['addedNodes'][0x0]));});_0x469e66['observe'](_0x50c367,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x151c89){_0x151c89['addEventListener']('apply',_0x28e957=>{this['fire']('apply',{'imageSrc':_0x28e957['detail']['cdnUrl']});}),_0x151c89['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Y extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2aadfe(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x40acd1,_0x335d85,_0x40642e){super(),this['_editor']=_0x40acd1,this['_dialog']=_0x335d85,this['_imageElement']=_0x40642e,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 _0x1f5783=this['_imageElement'],_0x3472d4=_0x1f5783['getAttribute']('uploadcareImageId'),_0x17b017=_0x1f5783['getAttribute']('src');if(_0x3472d4)await this['_loadImageInfo'](_0x3472d4,_0x17b017);else{if(this['_imageCache']['has'](_0x17b017)){const _0x1fcad6=this['_imageCache']['get'](_0x17b017);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1fcad6['url'],this['imageDimension']=_0x1fcad6['dimension'],this['imageId']=_0x1fcad6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x584828}=this['_editor'],t=_0x584828['t'],_0xd6e35e=new X(_0x584828,this['imageStatus'],this['_attributes']);_0xd6e35e['bind']('status')['to'](this,'imageStatus'),_0xd6e35e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xd6e35e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xd6e35e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xd6e35e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x36b588,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xd6e35e,'position':_0x22f0a7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xd6e35e['focus']();},'onHide':()=>{_0xd6e35e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x28abe8=>!V(_0x28abe8,_0xd6e35e['element'])}});}['_loadImageInfo'](_0x166865,_0x50fcd3){return q['getInfo'](_0x166865,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2a81ff=>{const {width:_0x6c1ee3,height:_0x450b40}=_0x2a81ff['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50fcd3,this['imageDimension']={'width':_0x6c1ee3,'height':_0x450b40},this['imageId']=_0x166865;})['catch'](_0x34a2db=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x34a2db['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d36e1,_0x2de05d){return this['_getImageAsFile'](_0x1d36e1)['then'](_0x57fd6c=>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':_0x2de05d['signal'],'file':_0x57fd6c,'onProgress':_0x39c538=>{_0x39c538&&_0x39c538['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x39c538['value']));}}))['then'](_0x1e0f07=>{const {width:_0x511f5a,height:_0xabe8de}=_0x1e0f07['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1e0f07['cdnUrl'],this['imageDimension']={'width':_0x511f5a,'height':_0xabe8de},this['imageId']=_0x1e0f07['uuid'],this['imageUploadProgress']=null;const _0x4b7be3=_0x1d36e1['getAttribute']('src');this['_imageCache']['set'](_0x4b7be3,{'id':_0x1e0f07['uuid'],'url':_0x1e0f07['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x450eb5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x450eb5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x238f7f,_0x24800d){_0x238f7f['on']('apply',(_0x4b75,_0x596a5a)=>{this['_replaceImage'](_0x24800d,_0x596a5a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x238f7f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x238f7f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x17b551,_0x2d2d04,_0x11fab7){const _0x725ad=this['_editor'],{width:_0x3b40b7,height:_0x2c2ae3}=F(_0x2d2d04,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5861fc,imageSources:_0x37c58c}=D(_0x2d2d04,_0x3b40b7);_0x725ad['model']['change'](_0x16a8e2=>{if('$graveyard'===_0x17b551['root']['rootName']){_0x725ad['execute']('insertImage',{'imageType':_0x17b551['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x17b551['getAttributes']()),'uploadcareImageId':_0x11fab7,'src':_0x5861fc,'sources':_0x37c58c,'width':_0x3b40b7,'height':_0x2c2ae3}});const _0x1f3e2d=_0x17b551['getChildren']();_0x17b551=_0x725ad['model']['document']['selection']['getSelectedElement']();for(const _0x2d4ff0 of _0x1f3e2d)_0x16a8e2['append'](_0x16a8e2['cloneElement'](_0x2d4ff0),_0x17b551);}else _0x16a8e2['setSelection'](_0x17b551,'on'),_0x725ad['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x17b551['getAttributes']()),'uploadcareImageId':_0x11fab7,'src':_0x5861fc,'sources':_0x37c58c,'width':_0x3b40b7,'height':_0x2c2ae3},_0x17b551);_0x16a8e2['setSelection'](_0x17b551,'on');});}async['_getImageAsFile'](_0x1c9801){const _0x5c10b8=_0x2b8df2['window'],_0x2fa408=_0x2b8df2['document']['location']['href'],_0x26cf1f=new _0x5c10b8['URL'](_0x1c9801['getAttribute']('src'),_0x2fa408);if('data:'===_0x26cf1f['protocol']){const _0x4917c4=_0x26cf1f['href']['split'](','),_0x405ec4=_0x4917c4[0x0]['match'](/:(.*?);/)[0x1],_0x42b6c1=_0x405ec4['split']('/')[0x1],_0x23eba5=_0x5c10b8['atob'](_0x4917c4[_0x4917c4['length']-0x1]);let _0x243de0=_0x23eba5['length'];const _0x552c47=new _0x5c10b8['Uint8Array'](_0x243de0);for(;_0x243de0--;)_0x552c47[_0x243de0]=_0x23eba5['charCodeAt'](_0x243de0);return new _0x5c10b8['File']([_0x552c47],'image.'+_0x42b6c1,{'type':_0x405ec4});}const _0x3485e3=_0x26cf1f['href']['split']('/'),_0x410f28=_0x3485e3[_0x3485e3['length']-0x1],_0x1ad64c=_0x410f28['split']('.')[0x1];return _0x5c10b8['fetch'](_0x26cf1f['href'])['then'](_0x4355b2=>_0x4355b2['clone']()['blob']())['then'](_0x2ae728=>new _0x5c10b8['File']([_0x2ae728],_0x410f28,{'type':'image/'+_0x1ad64c}));}}class tt extends _0x2c9eb8{['imageEditController'];static get['requires'](){return[_0x447a09];}['_isEditable'];constructor(_0x52b77f){super(_0x52b77f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x354337){const _0x4df0b5=B(_0x354337);return _0x573c94=>!(!_0x573c94||!_0x573c94['is']('element','imageBlock')&&!_0x573c94['is']('element','imageInline'))&&(!!_0x573c94['hasAttribute']('uploadcareImageId')||!!_0x573c94['hasAttribute']('src')&&_0x4df0b5(_0x573c94['getAttribute']('src')));}(_0x52b77f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x358f79=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x358f79);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x26d425=this['editor']['model']['document']['selection']['getSelectedElement']();_0x26d425&&(_0x26d425['is']('element','imageBlock')||_0x26d425['is']('element','imageInline'))&&(this['imageEditController']=new Y(this['editor'],this['editor']['plugins']['get'](_0x447a09),_0x26d425),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class et extends _0x2c9eb8{['refresh'](){const _0x5493ed=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5493ed&&(_0x5493ed['is']('element','imageBlock')||_0x5493ed['is']('element','imageInline')));}['execute'](_0x3d2f7e){const _0x5cbe9d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x326a27=>{_0x326a27['setAttributes'](_0x3d2f7e,_0x5cbe9d),_0x326a27['removeAttribute']('srcset',_0x5cbe9d),_0x326a27['removeAttribute']('sizes',_0x5cbe9d);});}}class it extends _0x41d798{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[z,_0x73e358,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x508186}=this;_0x508186['commands']['add']('uploadcareImageEdit',new tt(_0x508186)),_0x508186['commands']['add']('uploadcareImageReplace',new et(_0x508186));}}class st extends _0x41d798{['_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 _0x3a0828=this['editor'];_0x3a0828['ui']['componentFactory']['add']('uploadcareImageEdit',_0x35c45b=>{const _0x7a2ee4=_0x3a0828['commands']['get']('uploadcareImageEdit'),_0x12d507=new _0x40aa4b(_0x35c45b),t=_0x35c45b['t'];return _0x12d507['set']({'icon':_0x36b588,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x12d507['bind']('isEnabled')['to'](_0x7a2ee4),_0x12d507['bind']('isOn')['to'](_0x7a2ee4,'isActive'),this['listenTo'](_0x12d507,'execute',()=>{_0x3a0828['execute']('uploadcareImageEdit'),_0x3a0828['editing']['view']['focus']();}),_0x12d507;}),this['_initConfig']();}['_initConfig'](){const _0x5d6130=_0x1f7e0e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5d6130),this['listenTo'](this['editor'],'destroy',()=>{_0x5d6130['remove']();});}}class nt extends _0x41d798{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[it,st];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{H as Uploadcare,M as UploadcareCommand,z as UploadcareEditing,nt as UploadcareImageEdit,tt as UploadcareImageEditCommand,it as UploadcareImageEditEditing,st as UploadcareImageEditUI,A as UploadcareUI,W as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x560d60,Command as _0x535468}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x279bed,IconGooglePhotos as _0x5a0987,IconGoogleDrive as _0x51298d,IconFacebook as _0x505788,IconDropbox as _0x47932b,IconUploadcareLink as _0xe0db01,IconUploadcareImageUpload as _0x1f78d1,IconError as _0x58b3d1,IconUploadcareImageEdit as _0x2984bb}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x30d939,MenuBarMenuListItemButtonView as _0x29ba53,View as _0x413c47,FocusCycler as _0x4ddc8b,Dialog as _0x1dd5e7,DialogViewPosition as _0x32e211,SpinnerView as _0x1882d2,IconView as _0x52b910,Notification as _0x5ab41a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2c9a92,DomEmitterMixin as _0x5893f8,global as _0x307abd,getAncestors as _0x180e64,ObservableMixin as _0x34e424,uid as _0x34dab9,createElement as _0x121370}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x17a602}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xd74fe6,info as _0x431dad}from'@uploadcare/upload-client';import*as _0x254e66 from'@uploadcare/file-uploader';var i=function(_0x3a8971){return _0x3a8971['Local']='local',_0x3a8971['URL']='url',_0x3a8971['Dropbox']='dropbox',_0x3a8971['GDrive']='gdrive',_0x3a8971['Facebook']='facebook',_0x3a8971['GPhotos']='gphotos',_0x3a8971['OneDrive']='onedrive',_0x3a8971;}({});function _(_0x453910,_0x13531a,_0x27a72e){const t=_0x453910['t'],_0x3d3464=_0x453910['t'];switch(_0x13531a){case i['Local']:return{'text':_0x3d3464('Insert'===_0x27a72e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3d3464('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x27a72e?_0x3d3464('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3d3464('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x27a72e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x27a72e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x27a72e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x27a72e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x27a72e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x13531a;}}class e extends _0x560d60{['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 _0x35d8a2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1958df;for(const _0x5932d5 in _0x35d8a2){const _0x32c178=_0x5932d5,_0x54c01c=_0x35d8a2[_0x32c178];if('uploadcareLicenseKeyValid'==_0x54c01c||'uploadcareLicenseKeyInvalid'==_0x54c01c||'uploadcareLicenseKeyExpired'==_0x54c01c||'uploadcareLicenseKeyDomainLimit'==_0x54c01c||'uploadcareLicenseKeyNotAllowed'==_0x54c01c||'uploadcareLicenseKeyEvaluationLimit'==_0x54c01c||'uploadcareLicenseKeyUsageLimit'==_0x54c01c){delete _0x35d8a2[_0x32c178],_0x1958df=_0x54c01c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1958df&&_0x35d8a2['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1958df&&_0x35d8a2['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1958df&&_0x35d8a2['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1958df&&_0x35d8a2['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1958df&&_0x35d8a2['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1958df&&_0x35d8a2['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3ffe1f}=this,_0x1e7a8d=_0x3ffe1f['commands']['get']('uploadcare');if(!_0x1e7a8d)return;const _0x3723c5=this['_normalizeConfigSourceList'](_0x3ffe1f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5b0261,_0x28b21a)=>{const _0x3e4c49=this['_getIntegrationKey'](_0x28b21a['type']);return _0x5b0261[_0x3e4c49]||(_0x5b0261[_0x3e4c49]=[]),_0x5b0261[_0x3e4c49]['push'](_0x28b21a),_0x5b0261;},{});_0x3ffe1f['plugins']['has']('ImageInsertUI')&&_0x3ffe1f['commands']['get']('uploadcare')&&Object['entries'](_0x3723c5)['forEach'](([_0x3afc4e,_0x48b9cb])=>{_0x3ffe1f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3afc4e,'observable':()=>_0x1e7a8d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x48b9cb),'formViewCreator':()=>this['_createDropdownButtons'](_0x48b9cb),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x48b9cb),'override':'assetManager'!==_0x3afc4e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xb95230){const {locale:_0x3fef7f}=this['editor'];return _0xb95230['map'](_0x5fa601=>{const _0x50d3e2=_(_0x3fef7f,_0x5fa601,'Insert');switch(_0x5fa601){case i['Local']:return{'icon':_0x1f78d1,'type':i['Local'],..._0x50d3e2};case i['URL']:return{'icon':_0xe0db01,'type':i['URL'],..._0x50d3e2};case i['Dropbox']:return{'icon':_0x47932b,'type':i['Dropbox'],..._0x50d3e2};case i['Facebook']:return{'icon':_0x505788,'type':i['Facebook'],..._0x50d3e2};case i['GDrive']:return{'icon':_0x51298d,'type':i['GDrive'],..._0x50d3e2};case i['GPhotos']:return{'icon':_0x5a0987,'type':i['GPhotos'],..._0x50d3e2};case i['OneDrive']:return{'icon':_0x279bed,'type':i['OneDrive'],..._0x50d3e2};}});}['_getIntegrationKey'](_0x2861d5){switch(_0x2861d5){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x584213,_0x437e16){const _0x3c5e7c=this['editor'],_0x3f3451=new _0x584213(_0x3c5e7c['locale']),_0x8638b0=_0x3c5e7c['commands']['get']('uploadcare');return _0x3f3451['bind']('isEnabled')['to'](_0x8638b0),_0x3f3451['on']('execute',()=>{_0x8638b0['execute'](_0x437e16);}),_0x3f3451;}['_createToolbarButton'](_0x1e5a9c){const {locale:_0x36492b}=this['editor'],_0x501894=this['editor']['plugins']['get']('ImageInsertUI'),_0x228f3e=_0x1e5a9c[0x0],_0x55294f=this['_createButton'](_0x30d939,_0x228f3e['type']);return _0x55294f['icon']=_0x228f3e['icon'],_0x55294f['bind']('label')['to'](_0x501894,'isImageSelected',_0x2db469=>_(_0x36492b,_0x228f3e['type'],_0x2db469?'Replace':'Insert')['text']),_0x55294f['tooltip']=!0x0,_0x55294f;}['_createDropdownButtons'](_0x5c3709){const {locale:_0x195a48}=this['editor'],_0x1d6bb6=this['editor']['plugins']['get']('ImageInsertUI');return _0x5c3709['map'](_0x5a1249=>{const _0x1c9099=this['_createButton'](_0x30d939,_0x5a1249['type']);return _0x1c9099['withText']=!0x0,_0x1c9099['icon']=_0x5a1249['icon'],_0x1c9099['bind']('label')['to'](_0x1d6bb6,'isImageSelected',_0x77b8fd=>_(_0x195a48,_0x5a1249['type'],_0x77b8fd?'Replace':'Insert')['text']),_0x1c9099;});}['_createMenuBarButtons'](_0x576ec8){return _0x576ec8['map'](_0x1ac2eb=>{const _0x3dd2d9=this['_createButton'](_0x29ba53,_0x1ac2eb['type']);return _0x3dd2d9['icon']=_0x1ac2eb['icon'],_0x3dd2d9['label']=_0x1ac2eb['shortText'],_0x3dd2d9;});}}class F extends _0x413c47{['focusTracker'];['focusCycler'];constructor(_0x2b4fbc){super(_0x2b4fbc),this['focusTracker']=new _0x2c9a92(),this['focusCycler']=new _0x4ddc8b({'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 x extends F{constructor(_0x359ec8,_0x19a1f3){super(_0x359ec8),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-'+_0x19a1f3}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5511ae,_0x4637b0){const _0x3a5ab9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1441fb=>_0x1441fb<=_0x4637b0)['map'](_0x28d9ff=>_0x5511ae['replace'](/\/$/,'')+'/-/resize/'+_0x28d9ff+'x/\x20'+_0x28d9ff+'w');return{'imageFallbackUrl':_0x5511ae,'imageSources':[{'srcset':_0x3a5ab9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4637b0+'px)\x20100vw,\x20'+_0x4637b0+'px','type':'image/webp'}]};}function S(_0x4d981,_0x25e7e2,_0x1493c8){const _0xe5fd7f=_0x4d981['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xe5fd7f?parseInt(_0xe5fd7f[0x1],0xa):_0x25e7e2,'height':_0xe5fd7f?parseInt(_0xe5fd7f[0x2],0xa):_0x1493c8};}function p(_0x285a95,_0x1fb7d5){const _0x594615=new(_0x5893f8())(),_0x424a92=_0x285a95['plugins']['get']('ImageUtils'),_0x4f2ef9=_0x285a95['editing']['mapper']['toViewElement'](_0x1fb7d5),_0x31560e=_0x424a92['findViewImgElement'](_0x4f2ef9),_0x55a5de=_0x285a95['editing']['view']['domConverter']['viewToDom'](_0x31560e),_0x1cdaba=_0x1fb7d5['getAttribute']('width'),_0x4b337b=_0x1fb7d5['getAttribute']('height'),_0x4f3c9b='image-processing';_0x285a95['editing']['view']['change'](_0x1c94a9=>{_0x1c94a9['addClass'](_0x4f3c9b,_0x4f2ef9),_0x1c94a9['setStyle']('aspect-ratio',_0x1cdaba+'/'+_0x4b337b,_0x31560e);}),_0x594615['listenTo'](_0x55a5de,'load',()=>{_0x594615['stopListening'](_0x55a5de,'load'),_0x285a95['editing']['view']['change'](_0x5eb798=>{_0x5eb798['removeClass'](_0x4f3c9b,_0x4f2ef9),_0x5eb798['removeStyle']('aspect-ratio',_0x31560e);});});}function G(_0x10b5e1){if(Array['isArray'](_0x10b5e1)){const _0x4073fa=_0x10b5e1['map'](G);return _0x2fe6c9=>_0x4073fa['some'](_0x1f8a96=>_0x1f8a96(_0x2fe6c9));}if('origin'==_0x10b5e1){const _0x545b1e=_0x307abd['window']['location']['origin'];return _0x465acb=>new URL(_0x465acb,_0x307abd['document']['baseURI'])['origin']==_0x545b1e;}return'function'==typeof _0x10b5e1?_0x10b5e1:_0x10b5e1 instanceof RegExp?_0x1b2539=>!(!_0x1b2539['match'](_0x10b5e1)&&!_0x1b2539['replace'](/^https?:\/\//,'')['match'](_0x10b5e1)):()=>!0x1;}function A(_0x574861,_0x2ecac1){return _0x180e64(_0x574861['target'])['includes'](_0x2ecac1);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x34e424(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x196f30,_0x192d4b,_0xbba2a6){super(),this['_editor']=_0x196f30,this['_editing']=_0x192d4b,this['_dialog']=_0x196f30['plugins']['get'](_0x1dd5e7),this['_api']=_0x192d4b['ctxElement']['getAPI'](),this['_type']=_0xbba2a6,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:_0x3f3d4e,model:_0x5edb2c}=this['_editor'],_0x388a19=_0x5edb2c['document']['selection']['getSelectedElement'](),_0x241365=_0x388a19&&(_0x388a19['is']('element','imageBlock')||_0x388a19['is']('element','imageInline'));this['_formView']=new x(_0x3f3d4e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1f78d1,'title':_(_0x3f3d4e,this['_type'],_0x241365?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x32e211['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x594443=>!A(_0x594443,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x234fcb}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5db990=>{const _0x1eaad7=_0x234fcb['length'];for(const _0x11b5e3 of _0x234fcb){const _0xd35e9=_0x11b5e3===_0x234fcb[_0x1eaad7-0x1],{cdnUrl:_0x5cca87,fileInfo:_0x26d679}=_0x11b5e3;if(!_0x5cca87||!_0x26d679)continue;const {width:_0x2bc80f,height:_0x458634}=_0x26d679['imageInfo'],_0x460eda=S(_0x5cca87,_0x2bc80f,_0x458634),_0x5c7443=C(_0x5cca87,_0x460eda['width']),_0x4bcb0e={'id':_0x26d679['uuid'],'type':'image','attributes':{'imageDimension':_0x460eda,..._0x5c7443}};this['_insertAsset'](_0x4bcb0e,_0xd35e9,_0x5db990);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x128e60=>{'idle'===_0x128e60['detail']['status']&&!_0x128e60['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1c32ef,_0x4d0e66,_0x59ab8e){const _0x1bec24=this['_editor']['model']['document']['selection'],_0x5d794f=_0x1bec24['getSelectedElement'](),_0x5608ff=!(!_0x5d794f||!_0x5d794f['is']('element','imageInline'));_0x59ab8e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1c32ef,_0x5608ff),_0x4d0e66||_0x59ab8e['setSelection'](_0x1bec24['getLastPosition']());}['_insertImage'](_0x23d50e,_0x297e4c){const _0x588714=this['_editor'],{imageDimension:_0x21a194,imageFallbackUrl:_0x215366,imageSources:_0x4eecbe}=_0x23d50e['attributes'];_0x588714['execute']('insertImage',{'imageType':_0x297e4c?'imageInline':null,'source':{'uploadcareImageId':_0x23d50e['id'],'src':_0x215366,'sources':_0x4eecbe,..._0x21a194}});}}class w extends _0x535468{['_editing'];['_controller']=null;static get['requires'](){return[_0x1dd5e7,o];}constructor(_0x366120){super(_0x366120),this['_editing']=_0x366120['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x480043){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x480043);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1dc5cc,..._0x32f7a2}){return _0xd74fe6(_0x1dc5cc,_0x32f7a2);}static['getInfo'](_0x5de014,_0x5999fd){return _0x431dad(_0x5de014,_0x5999fd);}}class f extends _0x560d60{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x17a602,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4970da=this['editor'];if(!!!_0x4970da['config']['get']('uploadcare'))return;_0x4970da['plugins']['get'](_0x17a602)['createUploadAdapter']=_0x2a18d6=>new k(_0x2a18d6,_0x4970da),_0x4970da['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x574881,{imageElement:_0x47f5a8,data:_0x3e3d10})=>{_0x4970da['model']['change'](_0x163f7d=>{_0x163f7d['setAttribute']('uploadcareImageId',_0x3e3d10['uploadcareImageId'],_0x47f5a8);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x415599,_0x10eb93){this['loader']=_0x415599,this['editor']=_0x10eb93,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5ce7b3=await this['loader']['file'];return j['upload']({'file':_0x5ce7b3,'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':_0x1383dc=>{_0x1383dc&&_0x1383dc['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1383dc['value']);}})['then'](async _0x4e9271=>{const {imageFallbackUrl:_0x4672bf,imageSources:_0x3071a8}=C(_0x4e9271['cdnUrl'],_0x4e9271['imageInfo']['width']);return{'uploadcareImageId':_0x4e9271['uuid'],'default':_0x4672bf,'sources':_0x3071a8};})['catch'](()=>{const _0x399f56=t('Cannot\x20upload\x20file:')+('\x20'+_0x5ce7b3['name']+'.');return Promise['reject'](_0x399f56);});}['abort'](){this['controller']['abort']();}}class o extends _0x560d60{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1dd5e7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x57c059){super(_0x57c059),this['ucContextId']=_0x34dab9();}['init'](){const _0x131f1f=this['editor'];_0x131f1f['commands']['add']('uploadcare',new w(_0x131f1f));}['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 _0x3ebc7a=_0x307abd['document']['querySelector']('input[uploadcare-file-input]');_0x3ebc7a&&_0x3ebc7a['remove']();}),async function(_0x132356){const _0x597e97=_0x4581b8([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5e131d=0x535f8c3a,_0x350c87=0x5358f2f2^_0x5e131d,_0x5f1cd3=window[_0x4581b8([0x44,0x61,0x74,0x65])][_0x4581b8([0x6e,0x6f,0x77])](),_0x5aaec4=_0x132356[_0x4581b8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2cef0a=new window[(_0x4581b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e8030=>{_0x5aaec4[_0x4581b8([0x6f,0x6e,0x63,0x65])](_0x4581b8([0x72,0x65,0x61,0x64,0x79]),_0x3e8030);}),_0xeaf5cd={[_0x4581b8([0x6b,0x74,0x79])]:_0x4581b8([0x45,0x43]),[_0x4581b8([0x75,0x73,0x65])]:_0x4581b8([0x73,0x69,0x67]),[_0x4581b8([0x63,0x72,0x76])]:_0x4581b8([0x50,0x2d,0x32,0x35,0x36]),[_0x4581b8([0x78])]:_0x4581b8([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4581b8([0x79])]:_0x4581b8([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4581b8([0x61,0x6c,0x67])]:_0x4581b8([0x45,0x53,0x32,0x35,0x36])},_0x26ec91=_0x5aaec4[_0x4581b8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4581b8([0x67,0x65,0x74])](_0x4581b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x44f8d7(){let _0x460a84,_0x224797=null,_0x28f162=null;try{if(_0x26ec91==_0x4581b8([0x47,0x50,0x4c]))return _0x4581b8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x460a84=_0x224318(),!_0x460a84)return _0x4581b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x460a84[_0x4581b8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x28f162=_0x4dff37(_0x460a84[_0x4581b8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x460a84[_0x4581b8([0x6a,0x74,0x69])])),await _0x33b7bb()?_0x39c716()?_0x4105e3()?_0x4581b8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x310971()?(_0x460a84[_0x4581b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4581b8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x224797=_0x42c96e(_0x4581b8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e6ce8()):_0x4581b8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4581b8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4581b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4581b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4105e3(){const _0x3a4a06=[_0x4581b8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4581b8([0x74,0x72,0x69,0x61,0x6c])][_0x4581b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x460a84[_0x4581b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f1cd3/0x3e8:0xe10*_0x350c87;return _0x460a84[_0x4581b8([0x65,0x78,0x70])]<_0x3a4a06;}function _0x39c716(){const _0x352d39=_0x460a84[_0x4581b8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x352d39&&(!!_0x352d39[_0x4581b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4581b8([0x2a]))||!!_0x352d39[_0x4581b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4581b8([0x55,0x50,0x4c,0x43])));}function _0x310971(){const _0x5ef7a8=_0x460a84[_0x4581b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ef7a8||0x0==_0x5ef7a8[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x107b0b}=new URL(window[_0x4581b8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5ef7a8[_0x4581b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x107b0b))return!0x0;const _0x1009e7=_0x107b0b[_0x4581b8([0x73,0x70,0x6c,0x69,0x74])](_0x4581b8([0x2e]));return _0x5ef7a8[_0x4581b8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc28ed=>_0xc28ed[_0x4581b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4581b8([0x2a])))[_0x4581b8([0x6d,0x61,0x70])](_0x20f898=>_0x20f898[_0x4581b8([0x73,0x70,0x6c,0x69,0x74])](_0x4581b8([0x2e])))[_0x4581b8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x332f2f=>_0x332f2f[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1009e7[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4581b8([0x6d,0x61,0x70])](_0x19f6ce=>Array(_0x1009e7[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x19f6ce[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4581b8([0x66,0x69,0x6c,0x6c])](_0x19f6ce[0x0]===_0x4581b8([0x2a])?_0x4581b8([0x2a]):'')[_0x4581b8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x19f6ce))[_0x4581b8([0x73,0x6f,0x6d,0x65])](_0x95dd4e=>_0x1009e7[_0x4581b8([0x65,0x76,0x65,0x72,0x79])]((_0x50c685,_0x1d217e)=>_0x95dd4e[_0x1d217e]===_0x50c685||_0x95dd4e[_0x1d217e]===_0x4581b8([0x2a])));}function _0x2e6ce8(){return _0x224797&&_0x28f162?new window[(_0x4581b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x207326,_0x4cede8)=>{_0x224797[_0x4581b8([0x74,0x68,0x65,0x6e])](_0x207326,_0x4cede8),_0x28f162[_0x4581b8([0x74,0x68,0x65,0x6e])](_0x1adfad=>{_0x1adfad!=_0x4581b8([0x56,0x61,0x6c,0x69,0x64])&&_0x207326(_0x1adfad);},_0x4cede8);}):_0x224797||_0x28f162||_0x4581b8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4dff37(_0x2f4c1b,_0x575b34){return new window[(_0x4581b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dd7d0=>{if(_0x3037e5())return _0x2dd7d0(_0x4581b8([0x56,0x61,0x6c,0x69,0x64]));_0x18bf6d(),_0x5aaec4[_0x4581b8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4581b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x413696=!0x1;const _0x16b210=_0x34dab9();function _0x5d3fbc(_0x160671){return!!_0x160671&&(typeof _0x160671===_0x4581b8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x160671===_0x4581b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x160671[_0x4581b8([0x74,0x68,0x65,0x6e])]===_0x4581b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x160671[_0x4581b8([0x63,0x61,0x74,0x63,0x68])]===_0x4581b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fdb26(_0x5448ba){_0x4ca30a(_0x5448ba)[_0x4581b8([0x74,0x68,0x65,0x6e])](_0x1201d5=>{if(!_0x1201d5||_0x1201d5[_0x4581b8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4581b8([0x6f,0x6b]))return _0x4581b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x58c2c0(_0x7505f3(_0x16b210+_0x575b34))!=_0x1201d5[_0x4581b8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4581b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4581b8([0x56,0x61,0x6c,0x69,0x64]);})[_0x4581b8([0x74,0x68,0x65,0x6e])](_0x20000a=>(_0x4f238f(),_0x20000a),()=>{const _0x2ed42b=_0x1f215c();return null==_0x2ed42b?(_0x4f238f(),_0x4581b8([0x56,0x61,0x6c,0x69,0x64])):_0x4581b8(_0x5f1cd3-_0x2ed42b>(0x7753083a^_0x5e131d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4581b8([0x74,0x68,0x65,0x6e])](_0x2dd7d0)[_0x4581b8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2dd7d0(_0x4581b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x276ebc=0x536962ba^_0x5e131d;function _0x4f238f(){const _0x43d253=_0x4581b8([0x6c,0x6c,0x63,0x74,0x2d])+_0x58c2c0(_0x7505f3(_0x2f4c1b)),_0x324852=_0x38f118(_0x58c2c0(window[_0x4581b8([0x4d,0x61,0x74,0x68])][_0x4581b8([0x63,0x65,0x69,0x6c])](_0x5f1cd3/_0x276ebc)));window[_0x4581b8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4581b8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43d253,_0x324852);}function _0x1f215c(){const _0x4587be=_0x4581b8([0x6c,0x6c,0x63,0x74,0x2d])+_0x58c2c0(_0x7505f3(_0x2f4c1b)),_0x258208=window[_0x4581b8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4581b8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4587be);return _0x258208?window[_0x4581b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38f118(_0x258208),0x10)*_0x276ebc:null;}function _0x4ca30a(_0x397c2d){return new window[(_0x4581b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1581ea,_0x5a2866)=>{_0x397c2d[_0x4581b8([0x74,0x68,0x65,0x6e])](_0x1581ea,_0x5a2866),window[_0x4581b8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a2866,0x535e58fa^_0x5e131d);});}}_0x5aaec4[_0x4581b8([0x6f,0x6e])](_0x4581b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x75617d,_0x1d2d63)=>{if(_0x1d2d63[0x0]!=_0x2f4c1b)return _0x2dd7d0(_0x4581b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d2d63[0x1]={..._0x1d2d63[0x1],[_0x4581b8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16b210};},{[_0x4581b8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4581b8([0x68,0x69,0x67,0x68])}),_0x5aaec4[_0x4581b8([0x6f,0x6e])](_0x4581b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a8965=>{_0x5d3fbc(_0x3a8965[_0x4581b8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x413696=!0x0,_0x2fdb26(_0x3a8965[_0x4581b8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4581b8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4581b8([0x6c,0x6f,0x77])}),_0x2cef0a[_0x4581b8([0x74,0x68,0x65,0x6e])](()=>{_0x413696||_0x2dd7d0(_0x4581b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3037e5(){return _0x5aaec4[_0x4581b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4581b8([0x76,0x69,0x65,0x77])][_0x4581b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4581b8([0x61,0x75,0x74,0x6f]);}function _0x18bf6d(){_0x5aaec4[_0x4581b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4581b8([0x76,0x69,0x65,0x77])][_0x4581b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4581b8([0x61,0x75,0x74,0x6f]);}}function _0x42c96e(_0x296808){const _0x38f271=[new window[(_0x4581b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22f52c=>setTimeout(_0x22f52c,0x5356b2f6^_0x5e131d)),_0x2cef0a[_0x4581b8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4581b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53fff5=>{let _0xf09416=0x0;_0x5aaec4[_0x4581b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4581b8([0x6f,0x6e])](_0x4581b8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe1232b,_0x12827b)=>{_0x12827b[0x0][_0x4581b8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf09416++,_0xf09416==(0x535f89d2^_0x5e131d)&&(_0x53fff5(),_0xe1232b[_0x4581b8([0x6f,0x66,0x66])]());});}))];return window[_0x4581b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4581b8([0x72,0x61,0x63,0x65])](_0x38f271)[_0x4581b8([0x74,0x68,0x65,0x6e])](()=>_0x296808);}async function _0x4b5ea6(){await _0x2cef0a,_0x5aaec4[_0x4581b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4581b8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5605d1,_0x5aaec4[_0x4581b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4581b8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5605d1,_0x5aaec4[_0x4581b8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4581b8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x876bfa(_0x59d37b){const _0x31cacf=_0x4bed7e();_0x5aaec4[_0x31cacf]=_0x4581b8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59d37b,_0x59d37b!=_0x4581b8([0x56,0x61,0x6c,0x69,0x64])&&_0x4b5ea6();}function _0x4bed7e(){const _0x2660a3=window[_0x4581b8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4581b8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4581b8([0x6e,0x6f,0x77])]())[_0x4581b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4581b8([0x2e]),'');let _0x8f7983=_0x4581b8([0x68]);for(let _0x2e7abe=0x0;_0x2e7abe<_0x2660a3[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e7abe+=0x2){let _0x5e3b9c=window[_0x4581b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2660a3[_0x4581b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e7abe,_0x2e7abe+0x2));_0x5e3b9c>=_0x597e97[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e3b9c-=_0x597e97[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8f7983+=_0x597e97[_0x5e3b9c];}return _0x8f7983;}function _0x224318(){const _0x17dbea=_0x26ec91[_0x4581b8([0x73,0x70,0x6c,0x69,0x74])](_0x4581b8([0x2e]));if(0x3!=_0x17dbea[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5cf8cf(_0x17dbea[0x1]);function _0x5cf8cf(_0x5b8fdf){const _0x58e061=_0x1b583b(_0x5b8fdf);return _0x58e061&&_0x1e4335()?_0x58e061:null;function _0x1e4335(){const _0x12ec4a=_0x58e061[_0x4581b8([0x6a,0x74,0x69])],_0x2f4570=window[_0x4581b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12ec4a[_0x4581b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12ec4a[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18219f={..._0x58e061,[_0x4581b8([0x6a,0x74,0x69])]:_0x12ec4a[_0x4581b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x12ec4a[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18219f[_0x4581b8([0x76,0x63])],_0x7505f3(_0x18219f)==_0x2f4570;}}}async function _0x33b7bb(){let _0x1e0fdc=!0x0;try{const _0x531916=_0x26ec91[_0x4581b8([0x73,0x70,0x6c,0x69,0x74])](_0x4581b8([0x2e])),[_0xea57a7,_0x254598,_0x3641b3]=_0x531916;return _0x295a02(_0xea57a7),await _0x592721(_0xea57a7,_0x254598,_0x3641b3),_0x1e0fdc;}catch{return!0x1;}function _0x295a02(_0x5b9e95){const _0x1d2f25=_0x1b583b(_0x5b9e95);_0x1d2f25&&_0x1d2f25[_0x4581b8([0x61,0x6c,0x67])]==_0x4581b8([0x45,0x53,0x32,0x35,0x36])||(_0x1e0fdc=!0x1);}async function _0x592721(_0x55acce,_0x3d8352,_0x2f4f49){const _0x43b6d8=window[_0x4581b8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4581b8([0x66,0x72,0x6f,0x6d])](_0x415282(_0x2f4f49),_0x21d48d=>_0x21d48d[_0x4581b8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28fd04=new window[(_0x4581b8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4581b8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55acce+_0x4581b8([0x2e])+_0x3d8352),_0x2665ed=window[_0x4581b8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4581b8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2665ed)return;const _0x2c6771=await _0x2665ed[_0x4581b8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4581b8([0x6a,0x77,0x6b]),_0xeaf5cd,{[_0x4581b8([0x6e,0x61,0x6d,0x65])]:_0x4581b8([0x45,0x43,0x44,0x53,0x41]),[_0x4581b8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4581b8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4581b8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2665ed[_0x4581b8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4581b8([0x6e,0x61,0x6d,0x65])]:_0x4581b8([0x45,0x43,0x44,0x53,0x41]),[_0x4581b8([0x68,0x61,0x73,0x68])]:{[_0x4581b8([0x6e,0x61,0x6d,0x65])]:_0x4581b8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c6771,_0x43b6d8,_0x28fd04)||(_0x1e0fdc=!0x1);}}function _0x1b583b(_0x24a3a6){return _0x24a3a6[_0x4581b8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4581b8([0x65,0x79]))?JSON[_0x4581b8([0x70,0x61,0x72,0x73,0x65])](_0x415282(_0x24a3a6)):null;}function _0x415282(_0x5133f7){return window[_0x4581b8([0x61,0x74,0x6f,0x62])](_0x5133f7[_0x4581b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4581b8([0x2b]))[_0x4581b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4581b8([0x2f])));}function _0x7505f3(_0x4d6ec5){let _0x394c54=0x1505;function _0x21e5b0(_0x4843a8){for(let _0x454249=0x0;_0x454249<_0x4843a8[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x454249++){const _0x37d8f0=_0x4843a8[_0x4581b8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x454249);_0x394c54=(_0x394c54<<0x5)+_0x394c54+_0x37d8f0,_0x394c54&=_0x394c54;}}function _0x4cdb05(_0x31fbc2){Array[_0x4581b8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31fbc2)?_0x31fbc2[_0x4581b8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4cdb05):_0x31fbc2&&typeof _0x31fbc2==_0x4581b8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4581b8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31fbc2)[_0x4581b8([0x73,0x6f,0x72,0x74])]()[_0x4581b8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x38cb01,_0x128d3e])=>{_0x21e5b0(_0x38cb01),_0x4cdb05(_0x128d3e);}):_0x21e5b0(window[_0x4581b8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31fbc2));}return _0x4cdb05(_0x4d6ec5),_0x394c54>>>0x0;}function _0x58c2c0(_0x16763e){return _0x16763e[_0x4581b8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4581b8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4581b8([0x30]));}function _0x38f118(_0x3d6fc2){return _0x3d6fc2[_0x4581b8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4581b8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4581b8([0x6a,0x6f,0x69,0x6e])]('');}function _0x5605d1(){}function _0x4581b8(_0x6a7539){return _0x6a7539['map'](_0x38c356=>String['fromCharCode'](_0x38c356))['join']('');}_0x876bfa(await _0x44f8d7());}(this);}['_initSchema'](){const _0x398e5e=this['editor']['model']['schema'];_0x398e5e['isRegistered']('imageBlock')&&_0x398e5e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x398e5e['isRegistered']('imageInline')&&_0x398e5e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x28dbc5=this['editor'];_0x28dbc5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x28dbc5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5d5d38=>_0x5d5d38['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x361954=_0x28dbc5['commands']['get']('replaceImageSource');_0x361954&&this['listenTo'](_0x361954,'cleanupImage',(_0x1c1901,[_0x244b98,_0x44dfc1])=>{_0x244b98['removeAttribute']('uploadcareImageId',_0x44dfc1);});}['_initConfig'](){const _0x4c6dbf=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1b0b10=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x121370(_0x307abd['document'],'uc-config',{..._0x4c6dbf,'pubkey':_0x1b0b10,'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']=_0x2ddb2b=>{if('closeMax'==_0x2ddb2b)return'#uc-icon-arrow-down';},_0x307abd['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x121370(_0x307abd['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x307abd['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4e2f49=this['editor']['commands']['get']('insertImage');_0x4e2f49&&this['listenTo'](_0x4e2f49,'execute',()=>{const _0x31128c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x31128c&&_0x31128c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x31128c);});});const _0x36ab29=this['editor']['commands']['get']('uploadcareImageReplace');_0x36ab29&&this['listenTo'](_0x36ab29,'execute',()=>{const _0x5aa2b9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5aa2b9&&_0x5aa2b9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5aa2b9);});});}}class tt extends _0x560d60{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42efd7){super(_0x42efd7),_0x42efd7['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x254e66['defineComponents'](_0x254e66),this['_defineLocale']();}['_defineLocale'](){const _0x5e56e4=this['editor']['config']['get']('uploadcare.locale'),_0x1aabef=this['editor']['locale']['contentLanguage'];_0x5e56e4&&_0x254e66['defineLocale'](_0x1aabef,_0x5e56e4);}}class ii extends _0x413c47{constructor(_0x57350c){super(_0x57350c);const t=_0x57350c['t'],_0x452c06=this['bindTemplate'],_0x5c64cf=new _0x1882d2();_0x5c64cf['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':[_0x5c64cf,{'text':_0x452c06['to']('imageUploadProgress',_0x3968a3=>t('Loading\x20image...')+'\x20('+(_0x3968a3||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'}]}]}]});}}class ti extends _0x413c47{constructor(_0x3e78a9){super(_0x3e78a9);const t=_0x3e78a9['t'];this['set']('errorType',null);const _0x537db3=new _0x30d939(_0x3e78a9);_0x537db3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x537db3['withText']=!0x0,_0x537db3['class']='ck-button-action',_0x537db3['on']('execute',()=>{this['fire']('retry');}),_0x537db3['bind']('isVisible')['to'](this,'errorType',_0x27f2ee=>'NotFound'!==_0x27f2ee);const _0x296e52=new _0x52b910();_0x296e52['content']=_0x58b3d1,_0x296e52['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x432a10=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':[_0x296e52,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x432a10['to']('errorType',_0x5a4c2a=>t('NotFound'!==_0x5a4c2a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x537db3]},{'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'}]}]}]});}}class ei extends _0x413c47{constructor(_0x3ceec6,_0x435fbd){super(_0x3ceec6);const _0x11ae04=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x435fbd,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x11ae04['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3439c5,_0x216bc5,_0x45617a){super(_0x3439c5),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3439c5),this['_errorView']=new ti(_0x3439c5),this['_editingView']=new ei(_0x3439c5,_0x45617a),this['_focusableView']=new _0x413c47(_0x3439c5),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x216bc5),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'],_0x1bcb1f=>{this['_addUploadcareImageEditorListeners'](_0x1bcb1f);});}),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'](_0x3e551d,_0x3db84e){const _0x685828='uc-cloud-image-editor',_0x397e8c=_0x3e551d['querySelector'](_0x685828);if(_0x397e8c)return _0x3db84e(_0x397e8c);const _0x2ab48e=new MutationObserver(_0x21021=>{const _0x25d963=_0x21021['filter'](_0x2f4e19=>_0x2f4e19['target']===_0x3e551d&&_0x2f4e19['addedNodes']['length']>0x0&&_0x2f4e19['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x685828);_0x25d963['length']&&(_0x2ab48e['disconnect'](),_0x3db84e(_0x25d963[0x0]['addedNodes'][0x0]));});_0x2ab48e['observe'](_0x3e551d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x246b58){_0x246b58['addEventListener']('apply',_0xc788ce=>{this['fire']('apply',{'imageSrc':_0xc788ce['detail']['cdnUrl']});}),_0x246b58['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x34e424(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3d325f,_0x311bd4,_0x4c8911){super(),this['_editor']=_0x3d325f,this['_dialog']=_0x311bd4,this['_imageElement']=_0x4c8911,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 _0x2db26b=this['_imageElement'],_0x5361fe=_0x2db26b['getAttribute']('uploadcareImageId'),_0x4aa18c=_0x2db26b['getAttribute']('src');if(_0x5361fe)await this['_loadImageInfo'](_0x5361fe,_0x4aa18c);else{if(this['_imageCache']['has'](_0x4aa18c)){const _0xc58efd=this['_imageCache']['get'](_0x4aa18c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xc58efd['url'],this['imageDimension']=_0xc58efd['dimension'],this['imageId']=_0xc58efd['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1c2cf0}=this['_editor'],t=_0x1c2cf0['t'],_0x5f04bb=new X(_0x1c2cf0,this['imageStatus'],this['_attributes']);_0x5f04bb['bind']('status')['to'](this,'imageStatus'),_0x5f04bb['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5f04bb['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5f04bb['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5f04bb,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2984bb,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5f04bb,'position':_0x32e211['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5f04bb['focus']();},'onHide':()=>{_0x5f04bb['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2cae2a=>!A(_0x2cae2a,_0x5f04bb['element'])}});}['_loadImageInfo'](_0x5008ef,_0x16075a){return j['getInfo'](_0x5008ef,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3c3545=>{const {width:_0x1d1846,height:_0xa90d1c}=_0x3c3545['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x16075a,this['imageDimension']={'width':_0x1d1846,'height':_0xa90d1c},this['imageId']=_0x5008ef;})['catch'](_0x520635=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x520635['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x56a1b1,_0x32017b){return this['_getImageAsFile'](_0x56a1b1)['then'](_0x45f345=>j['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':_0x32017b['signal'],'file':_0x45f345,'onProgress':_0x19b09c=>{_0x19b09c&&_0x19b09c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x19b09c['value']));}}))['then'](_0x1af422=>{const {width:_0x531c1d,height:_0x3b9546}=_0x1af422['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1af422['cdnUrl'],this['imageDimension']={'width':_0x531c1d,'height':_0x3b9546},this['imageId']=_0x1af422['uuid'],this['imageUploadProgress']=null;const _0x442e92=_0x56a1b1['getAttribute']('src');this['_imageCache']['set'](_0x442e92,{'id':_0x1af422['uuid'],'url':_0x1af422['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x260150=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x260150['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x47db82,_0x17e331){_0x47db82['on']('apply',(_0x4e497e,_0x3e1f73)=>{this['_replaceImage'](_0x17e331,_0x3e1f73['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x47db82['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x47db82['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5f4aa8,_0xd1c777,_0x17fe4f){const _0x172b5a=this['_editor'],{width:_0x3a4a43,height:_0x4dac87}=S(_0xd1c777,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4c3ddb,imageSources:_0x1cfe8c}=C(_0xd1c777,_0x3a4a43);_0x172b5a['model']['change'](_0x2a13c7=>{if('$graveyard'===_0x5f4aa8['root']['rootName']){_0x172b5a['execute']('insertImage',{'imageType':_0x5f4aa8['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5f4aa8['getAttributes']()),'uploadcareImageId':_0x17fe4f,'src':_0x4c3ddb,'sources':_0x1cfe8c,'width':_0x3a4a43,'height':_0x4dac87}});const _0x337c0a=_0x5f4aa8['getChildren']();_0x5f4aa8=_0x172b5a['model']['document']['selection']['getSelectedElement']();for(const _0x20228f of _0x337c0a)_0x2a13c7['append'](_0x2a13c7['cloneElement'](_0x20228f),_0x5f4aa8);}else _0x2a13c7['setSelection'](_0x5f4aa8,'on'),_0x172b5a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5f4aa8['getAttributes']()),'uploadcareImageId':_0x17fe4f,'src':_0x4c3ddb,'sources':_0x1cfe8c,'width':_0x3a4a43,'height':_0x4dac87},_0x5f4aa8);_0x2a13c7['setSelection'](_0x5f4aa8,'on');});}async['_getImageAsFile'](_0x598ac7){const _0x5b65d0=_0x307abd['window'],_0x5490ac=_0x307abd['document']['location']['href'],_0x4b5024=new _0x5b65d0['URL'](_0x598ac7['getAttribute']('src'),_0x5490ac);if('data:'===_0x4b5024['protocol']){const _0x57e854=_0x4b5024['href']['split'](','),_0x36ca69=_0x57e854[0x0]['match'](/:(.*?);/)[0x1],_0x346f07=_0x36ca69['split']('/')[0x1],_0x59cd3e=_0x5b65d0['atob'](_0x57e854[_0x57e854['length']-0x1]);let _0x3e9de6=_0x59cd3e['length'];const _0x3e3589=new _0x5b65d0['Uint8Array'](_0x3e9de6);for(;_0x3e9de6--;)_0x3e3589[_0x3e9de6]=_0x59cd3e['charCodeAt'](_0x3e9de6);return new _0x5b65d0['File']([_0x3e3589],'image.'+_0x346f07,{'type':_0x36ca69});}const _0x4538da=_0x4b5024['href']['split']('/'),_0x56dee4=_0x4538da[_0x4538da['length']-0x1],_0x1c56cb=_0x56dee4['split']('.')[0x1];return _0x5b65d0['fetch'](_0x4b5024['href'])['then'](_0x24deff=>_0x24deff['clone']()['blob']())['then'](_0xc6331f=>new _0x5b65d0['File']([_0xc6331f],_0x56dee4,{'type':'image/'+_0x1c56cb}));}}class O extends _0x535468{['imageEditController'];static get['requires'](){return[_0x1dd5e7];}['_isEditable'];constructor(_0xd88694){super(_0xd88694),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x971e9a){const _0x5afe8d=G(_0x971e9a);return _0x409ac6=>!(!_0x409ac6||!_0x409ac6['is']('element','imageBlock')&&!_0x409ac6['is']('element','imageInline'))&&(!!_0x409ac6['hasAttribute']('uploadcareImageId')||!!_0x409ac6['hasAttribute']('src')&&_0x5afe8d(_0x409ac6['getAttribute']('src')));}(_0xd88694['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x57a898=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x57a898);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x449632=this['editor']['model']['document']['selection']['getSelectedElement']();_0x449632&&(_0x449632['is']('element','imageBlock')||_0x449632['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1dd5e7),_0x449632),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x535468{['refresh'](){const _0x34f3a2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x34f3a2&&(_0x34f3a2['is']('element','imageBlock')||_0x34f3a2['is']('element','imageInline')));}['execute'](_0x5be063){const _0x4597ec=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x20429d=>{_0x20429d['setAttributes'](_0x5be063,_0x4597ec),_0x20429d['removeAttribute']('srcset',_0x4597ec),_0x20429d['removeAttribute']('sizes',_0x4597ec);});}}class m extends _0x560d60{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5ab41a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x581faf}=this;_0x581faf['commands']['add']('uploadcareImageEdit',new O(_0x581faf)),_0x581faf['commands']['add']('uploadcareImageReplace',new R(_0x581faf));}}class g extends _0x560d60{['_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 _0x486fdf=this['editor'];_0x486fdf['ui']['componentFactory']['add']('uploadcareImageEdit',_0x234360=>{const _0x4ed039=_0x486fdf['commands']['get']('uploadcareImageEdit'),_0x457052=new _0x30d939(_0x234360),t=_0x234360['t'];return _0x457052['set']({'icon':_0x2984bb,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x457052['bind']('isEnabled')['to'](_0x4ed039),_0x457052['bind']('isOn')['to'](_0x4ed039,'isActive'),this['listenTo'](_0x457052,'execute',()=>{_0x486fdf['execute']('uploadcareImageEdit'),_0x486fdf['editing']['view']['focus']();}),_0x457052;}),this['_initConfig']();}['_initConfig'](){const _0x54e5de=_0x121370(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x54e5de),this['listenTo'](this['editor'],'destroy',()=>{_0x54e5de['remove']();});}}class et extends _0x560d60{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f 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':_0x5d49f8=>0x1!=_0x5d49f8}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x58f7b5=>{const {af:{dictionary:_0x19bab8,getPluralForm:_0x623cff}}={'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':_0x5614b4=>0x1!=_0x5614b4}};_0x58f7b5['af']||={'dictionary':{},'getPluralForm':null},_0x58f7b5['af']['dictionary']=Object['assign'](_0x58f7b5['af']['dictionary'],_0x19bab8),_0x58f7b5['af']['getPluralForm']=_0x623cff;})(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':_0x23cec2=>0x0==_0x23cec2?0x0:0x1==_0x23cec2?0x1:0x2==_0x23cec2?0x2:_0x23cec2%0x64>=0x3&&_0x23cec2%0x64<=0xa?0x3:_0x23cec2%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x36f33a=>{const {ar:{dictionary:_0x5cc2fd,getPluralForm:_0x2abd27}}={'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':_0x3df084=>0x0==_0x3df084?0x0:0x1==_0x3df084?0x1:0x2==_0x3df084?0x2:_0x3df084%0x64>=0x3&&_0x3df084%0x64<=0xa?0x3:_0x3df084%0x64>=0xb?0x4:0x5}};_0x36f33a['ar']||={'dictionary':{},'getPluralForm':null},_0x36f33a['ar']['dictionary']=Object['assign'](_0x36f33a['ar']['dictionary'],_0x5cc2fd),_0x36f33a['ar']['getPluralForm']=_0x2abd27;})(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':_0x24a1f1=>0x1!=_0x24a1f1}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x19d8c5=>{const {ast:{dictionary:_0x1185db,getPluralForm:_0x2e4fe8}}={'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':_0x4f699d=>0x1!=_0x4f699d}};_0x19d8c5['ast']||={'dictionary':{},'getPluralForm':null},_0x19d8c5['ast']['dictionary']=Object['assign'](_0x19d8c5['ast']['dictionary'],_0x1185db),_0x19d8c5['ast']['getPluralForm']=_0x2e4fe8;})(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':_0x43e886=>0x1!=_0x43e886}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x477e99=>{const {az:{dictionary:_0x223926,getPluralForm:_0x5db262}}={'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':_0x5d58b7=>0x1!=_0x5d58b7}};_0x477e99['az']||={'dictionary':{},'getPluralForm':null},_0x477e99['az']['dictionary']=Object['assign'](_0x477e99['az']['dictionary'],_0x223926),_0x477e99['az']['getPluralForm']=_0x5db262;})(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':_0x435606=>_0x435606%0xa==0x1&&_0x435606%0x64!=0xb?0x0:_0x435606%0xa>=0x2&&_0x435606%0xa<=0x4&&(_0x435606%0x64<0xa||_0x435606%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x415a88=>{const {be:{dictionary:_0x3237ae,getPluralForm:_0x2521a9}}={'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':_0x380f0a=>_0x380f0a%0xa==0x1&&_0x380f0a%0x64!=0xb?0x0:_0x380f0a%0xa>=0x2&&_0x380f0a%0xa<=0x4&&(_0x380f0a%0x64<0xa||_0x380f0a%0x64>=0x14)?0x1:0x2}};_0x415a88['be']||={'dictionary':{},'getPluralForm':null},_0x415a88['be']['dictionary']=Object['assign'](_0x415a88['be']['dictionary'],_0x3237ae),_0x415a88['be']['getPluralForm']=_0x2521a9;})(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':_0x3291fa=>0x1!=_0x3291fa}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x445c8f=>{const {bg:{dictionary:_0x10259f,getPluralForm:_0x179c6f}}={'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':_0x530516=>0x1!=_0x530516}};_0x445c8f['bg']||={'dictionary':{},'getPluralForm':null},_0x445c8f['bg']['dictionary']=Object['assign'](_0x445c8f['bg']['dictionary'],_0x10259f),_0x445c8f['bg']['getPluralForm']=_0x179c6f;})(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':_0x218f66=>0x1!=_0x218f66}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1cc30c=>{const {bn:{dictionary:_0x3e52b2,getPluralForm:_0x26db6d}}={'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':_0x45a5e8=>0x1!=_0x45a5e8}};_0x1cc30c['bn']||={'dictionary':{},'getPluralForm':null},_0x1cc30c['bn']['dictionary']=Object['assign'](_0x1cc30c['bn']['dictionary'],_0x3e52b2),_0x1cc30c['bn']['getPluralForm']=_0x26db6d;})(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':_0x18d817=>_0x18d817%0xa==0x1&&_0x18d817%0x64!=0xb?0x0:_0x18d817%0xa>=0x2&&_0x18d817%0xa<=0x4&&(_0x18d817%0x64<0xa||_0x18d817%0x64>=0x14)?0x1:0x2}};
|