@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260111.0 → 0.0.0-nightly-20260112.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 _0x35bcf2,Command as _0x344b9c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xacb543,IconGooglePhotos as _0x3dfb9f,IconGoogleDrive as _0x2bdc4f,IconFacebook as _0x1d2898,IconDropbox as _0x13e0f2,IconUploadcareLink as _0x4e99a4,IconUploadcareImageUpload as _0x4f4a2f,IconError as _0x3cac49,IconUploadcareImageEdit as _0x4882dd}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xeb5fa0,MenuBarMenuListItemButtonView as _0x319f8b,View as _0x1ae180,FocusCycler as _0x246209,Dialog as _0x1dac6c,DialogViewPosition as _0x2857d0,SpinnerView as _0x166f58,IconView as _0x5c05eb,Notification as _0x111ea3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x532b36,DomEmitterMixin as _0x461074,global as _0x5c3320,getAncestors as _0x147f80,ObservableMixin as _0x4079d,uid as _0x30a2d4,createElement as _0x443707}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x597ee9}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x151677,info as _0x2cc042}from'@uploadcare/upload-client';import*as _0x438bcd from'@uploadcare/file-uploader';var S=function(_0x21ffd8){return _0x21ffd8['Local']='local',_0x21ffd8['URL']='url',_0x21ffd8['Dropbox']='dropbox',_0x21ffd8['GDrive']='gdrive',_0x21ffd8['Facebook']='facebook',_0x21ffd8['GPhotos']='gphotos',_0x21ffd8['OneDrive']='onedrive',_0x21ffd8;}({});function T(_0xe353d0,_0x580993,_0x2a77f4){const t=_0xe353d0['t'],_0x4b40de=_0xe353d0['t'];switch(_0x580993){case S['Local']:return{'text':_0x4b40de('Insert'===_0x2a77f4?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4b40de('From\x20computer')};case S['URL']:return{'text':'Insert'===_0x2a77f4?_0x4b40de('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4b40de('Via\x20URL')};case S['Dropbox']:return{'text':t('Insert'===_0x2a77f4?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case S['Facebook']:return{'text':t('Insert'===_0x2a77f4?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case S['GDrive']:return{'text':t('Insert'===_0x2a77f4?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case S['GPhotos']:return{'text':t('Insert'===_0x2a77f4?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case S['OneDrive']:return{'text':t('Insert'===_0x2a77f4?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x580993;}}class A extends _0x35bcf2{['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 _0x21f095=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c2504;for(const _0x44b196 in _0x21f095){const _0x45493f=_0x44b196,_0x35d81c=_0x21f095[_0x45493f];if('uploadcareLicenseKeyValid'==_0x35d81c||'uploadcareLicenseKeyInvalid'==_0x35d81c||'uploadcareLicenseKeyExpired'==_0x35d81c||'uploadcareLicenseKeyDomainLimit'==_0x35d81c||'uploadcareLicenseKeyNotAllowed'==_0x35d81c||'uploadcareLicenseKeyEvaluationLimit'==_0x35d81c||'uploadcareLicenseKeyUsageLimit'==_0x35d81c){delete _0x21f095[_0x45493f],_0x2c2504=_0x35d81c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2c2504&&_0x21f095['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2c2504&&_0x21f095['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2c2504&&_0x21f095['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2c2504&&_0x21f095['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2c2504&&_0x21f095['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2c2504&&_0x21f095['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x43c226}=this,_0x31325d=_0x43c226['commands']['get']('uploadcare');if(!_0x31325d)return;const _0x4d5ff4=this['_normalizeConfigSourceList'](_0x43c226['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x233eb6,_0x496561)=>{const _0x516a97=this['_getIntegrationKey'](_0x496561['type']);return _0x233eb6[_0x516a97]||(_0x233eb6[_0x516a97]=[]),_0x233eb6[_0x516a97]['push'](_0x496561),_0x233eb6;},{});_0x43c226['plugins']['has']('ImageInsertUI')&&_0x43c226['commands']['get']('uploadcare')&&Object['entries'](_0x4d5ff4)['forEach'](([_0x238c90,_0x3a9555])=>{_0x43c226['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x238c90,'observable':()=>_0x31325d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3a9555),'formViewCreator':()=>this['_createDropdownButtons'](_0x3a9555),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3a9555),'override':'assetManager'!==_0x238c90});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x30710b){const {locale:_0x30ae1f}=this['editor'];return _0x30710b['map'](_0x38a486=>{const _0x57c999=T(_0x30ae1f,_0x38a486,'Insert');switch(_0x38a486){case S['Local']:return{'icon':_0x4f4a2f,'type':S['Local'],..._0x57c999};case S['URL']:return{'icon':_0x4e99a4,'type':S['URL'],..._0x57c999};case S['Dropbox']:return{'icon':_0x13e0f2,'type':S['Dropbox'],..._0x57c999};case S['Facebook']:return{'icon':_0x1d2898,'type':S['Facebook'],..._0x57c999};case S['GDrive']:return{'icon':_0x2bdc4f,'type':S['GDrive'],..._0x57c999};case S['GPhotos']:return{'icon':_0x3dfb9f,'type':S['GPhotos'],..._0x57c999};case S['OneDrive']:return{'icon':_0xacb543,'type':S['OneDrive'],..._0x57c999};}});}['_getIntegrationKey'](_0x1b1f02){switch(_0x1b1f02){case S['Local']:return'upload';case S['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x307cca,_0x554983){const _0x3e9b1f=this['editor'],_0xc40494=new _0x307cca(_0x3e9b1f['locale']),_0x180e38=_0x3e9b1f['commands']['get']('uploadcare');return _0xc40494['bind']('isEnabled')['to'](_0x180e38),_0xc40494['on']('execute',()=>{_0x180e38['execute'](_0x554983);}),_0xc40494;}['_createToolbarButton'](_0x57f7ad){const {locale:_0x320e1d}=this['editor'],_0x530da4=this['editor']['plugins']['get']('ImageInsertUI'),_0x22c0f6=_0x57f7ad[0x0],_0x2794f5=this['_createButton'](_0xeb5fa0,_0x22c0f6['type']);return _0x2794f5['icon']=_0x22c0f6['icon'],_0x2794f5['bind']('label')['to'](_0x530da4,'isImageSelected',_0x2fb07e=>T(_0x320e1d,_0x22c0f6['type'],_0x2fb07e?'Replace':'Insert')['text']),_0x2794f5['tooltip']=!0x0,_0x2794f5;}['_createDropdownButtons'](_0x4a67bc){const {locale:_0x4ea834}=this['editor'],_0x5a2ce3=this['editor']['plugins']['get']('ImageInsertUI');return _0x4a67bc['map'](_0x301771=>{const _0xf3851e=this['_createButton'](_0xeb5fa0,_0x301771['type']);return _0xf3851e['withText']=!0x0,_0xf3851e['icon']=_0x301771['icon'],_0xf3851e['bind']('label')['to'](_0x5a2ce3,'isImageSelected',_0xf8f702=>T(_0x4ea834,_0x301771['type'],_0xf8f702?'Replace':'Insert')['text']),_0xf3851e;});}['_createMenuBarButtons'](_0xa59fd6){return _0xa59fd6['map'](_0x2ff073=>{const _0x49412f=this['_createButton'](_0x319f8b,_0x2ff073['type']);return _0x49412f['icon']=_0x2ff073['icon'],_0x49412f['label']=_0x2ff073['shortText'],_0x49412f;});}}class K extends _0x1ae180{['focusTracker'];['focusCycler'];constructor(_0x258638){super(_0x258638),this['focusTracker']=new _0x532b36(),this['focusCycler']=new _0x246209({'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(_0x2d9c12,_0x41c86b){super(_0x2d9c12),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-'+_0x41c86b}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function D(_0x4e6c0b,_0x3f7588){const _0xc3bcf=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5bfbeb=>_0x5bfbeb<=_0x3f7588)['map'](_0x5a5916=>_0x4e6c0b['replace'](/\/$/,'')+'/-/resize/'+_0x5a5916+'x/\x20'+_0x5a5916+'w');return{'imageFallbackUrl':_0x4e6c0b,'imageSources':[{'srcset':_0xc3bcf['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3f7588+'px)\x20100vw,\x20'+_0x3f7588+'px','type':'image/webp'}]};}function F(_0x484748,_0x1c7b3b,_0x3753f5){const _0x434652=_0x484748['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x434652?parseInt(_0x434652[0x1],0xa):_0x1c7b3b,'height':_0x434652?parseInt(_0x434652[0x2],0xa):_0x3753f5};}function $(_0x1644da,_0x55caf2){const _0x1a7e30=new(_0x461074())(),_0x1f7a94=_0x1644da['plugins']['get']('ImageUtils'),_0x71de18=_0x1644da['editing']['mapper']['toViewElement'](_0x55caf2),_0x38d31=_0x1f7a94['findViewImgElement'](_0x71de18),_0x1dafe1=_0x1644da['editing']['view']['domConverter']['viewToDom'](_0x38d31),_0x3beae1=_0x55caf2['getAttribute']('width'),_0x3e8a88=_0x55caf2['getAttribute']('height'),_0x524ba3='image-processing';_0x1644da['editing']['view']['change'](_0x3ac322=>{_0x3ac322['addClass'](_0x524ba3,_0x71de18),_0x3ac322['setStyle']('aspect-ratio',_0x3beae1+'/'+_0x3e8a88,_0x38d31);}),_0x1a7e30['listenTo'](_0x1dafe1,'load',()=>{_0x1a7e30['stopListening'](_0x1dafe1,'load'),_0x1644da['editing']['view']['change'](_0x2c745c=>{_0x2c745c['removeClass'](_0x524ba3,_0x71de18),_0x2c745c['removeStyle']('aspect-ratio',_0x38d31);});});}function B(_0x40f2c2){if(Array['isArray'](_0x40f2c2)){const _0xbed8be=_0x40f2c2['map'](B);return _0x28ea47=>_0xbed8be['some'](_0x464067=>_0x464067(_0x28ea47));}if('origin'==_0x40f2c2){const _0x3abc06=_0x5c3320['window']['location']['origin'];return _0x3d2cb7=>new URL(_0x3d2cb7,_0x5c3320['document']['baseURI'])['origin']==_0x3abc06;}return'function'==typeof _0x40f2c2?_0x40f2c2:_0x40f2c2 instanceof RegExp?_0x51cfdb=>!(!_0x51cfdb['match'](_0x40f2c2)&&!_0x51cfdb['replace'](/^https?:\/\//,'')['match'](_0x40f2c2)):()=>!0x1;}function V(_0x22d92c,_0x242fb7){return _0x147f80(_0x22d92c['target'])['includes'](_0x242fb7);}class j extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4079d(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x8cdf3d,_0x1a1939,_0x573b06){super(),this['_editor']=_0x8cdf3d,this['_editing']=_0x1a1939,this['_dialog']=_0x8cdf3d['plugins']['get'](_0x1dac6c),this['_api']=_0x1a1939['ctxElement']['getAPI'](),this['_type']=_0x573b06,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:_0x905710,model:_0x2a2972}=this['_editor'],_0x2997b2=_0x2a2972['document']['selection']['getSelectedElement'](),_0x3abc46=_0x2997b2&&(_0x2997b2['is']('element','imageBlock')||_0x2997b2['is']('element','imageInline'));this['_formView']=new O(_0x905710,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4f4a2f,'title':T(_0x905710,this['_type'],_0x3abc46?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2857d0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4d8a56=>!V(_0x4d8a56,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x408a40}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5b9699=>{const _0x40e16a=_0x408a40['length'];for(const _0x3cb17a of _0x408a40){const _0x1ac341=_0x3cb17a===_0x408a40[_0x40e16a-0x1],{cdnUrl:_0x584667,fileInfo:_0x3567b2}=_0x3cb17a;if(!_0x584667||!_0x3567b2)continue;const {width:_0x1e649,height:_0x38f442}=_0x3567b2['imageInfo'],_0x5965ab=F(_0x584667,_0x1e649,_0x38f442),_0x152b55=D(_0x584667,_0x5965ab['width']),_0x4d1060={'id':_0x3567b2['uuid'],'type':'image','attributes':{'imageDimension':_0x5965ab,..._0x152b55}};this['_insertAsset'](_0x4d1060,_0x1ac341,_0x5b9699);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3df8a6=>{'idle'===_0x3df8a6['detail']['status']&&!_0x3df8a6['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===S['Local']?this['_api']['setCurrentActivity'](S['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x31ac8c,_0x502a7d,_0x1ca7e7){const _0x1060a8=this['_editor']['model']['document']['selection'],_0x257673=_0x1060a8['getSelectedElement'](),_0x2fff99=!(!_0x257673||!_0x257673['is']('element','imageInline'));_0x1ca7e7['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x31ac8c,_0x2fff99),_0x502a7d||_0x1ca7e7['setSelection'](_0x1060a8['getLastPosition']());}['_insertImage'](_0xfa55fb,_0x141cd0){const _0x56a815=this['_editor'],{imageDimension:_0x265d4c,imageFallbackUrl:_0x4e4695,imageSources:_0x3c96f8}=_0xfa55fb['attributes'];_0x56a815['execute']('insertImage',{'imageType':_0x141cd0?'imageInline':null,'source':{'uploadcareImageId':_0xfa55fb['id'],'src':_0x4e4695,'sources':_0x3c96f8,..._0x265d4c}});}}class M extends _0x344b9c{['_editing'];['_controller']=null;static get['requires'](){return[_0x1dac6c,z];}constructor(_0x35d3d3){super(_0x35d3d3),this['_editing']=_0x35d3d3['plugins']['get'](z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2de98d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new j(this['editor'],this['_editing'],_0x2de98d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class q{static['upload']({file:_0x3e2c5b,..._0x2992ff}){return _0x151677(_0x3e2c5b,_0x2992ff);}static['getInfo'](_0x985361,_0x516e4e){return _0x2cc042(_0x985361,_0x516e4e);}}class W extends _0x35bcf2{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x597ee9,z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x57897a=this['editor'];if(!!!_0x57897a['config']['get']('uploadcare'))return;_0x57897a['plugins']['get'](_0x597ee9)['createUploadAdapter']=_0x49ba6d=>new G(_0x49ba6d,_0x57897a),_0x57897a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5c927b,{imageElement:_0x3468d9,data:_0x4d74bc})=>{_0x57897a['model']['change'](_0x6619c5=>{_0x6619c5['setAttribute']('uploadcareImageId',_0x4d74bc['uploadcareImageId'],_0x3468d9);});});}}class G{['loader'];['editor'];['controller'];constructor(_0x5c7669,_0x560152){this['loader']=_0x5c7669,this['editor']=_0x560152,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x59e7c4=await this['loader']['file'];return q['upload']({'file':_0x59e7c4,'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':_0x3a88e7=>{_0x3a88e7&&_0x3a88e7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3a88e7['value']);}})['then'](async _0x3b7da9=>{const {imageFallbackUrl:_0x25b3d3,imageSources:_0x25e15a}=D(_0x3b7da9['cdnUrl'],_0x3b7da9['imageInfo']['width']);return{'uploadcareImageId':_0x3b7da9['uuid'],'default':_0x25b3d3,'sources':_0x25e15a};})['catch'](()=>{const _0x54bc56=t('Cannot\x20upload\x20file:')+('\x20'+_0x59e7c4['name']+'.');return Promise['reject'](_0x54bc56);});}['abort'](){this['controller']['abort']();}}class z extends _0x35bcf2{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',W,_0x1dac6c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x275326){super(_0x275326),this['ucContextId']=_0x30a2d4();}['init'](){const _0x51a7fc=this['editor'];_0x51a7fc['commands']['add']('uploadcare',new M(_0x51a7fc));}['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 _0x21018c=_0x5c3320['document']['querySelector']('input[uploadcare-file-input]');_0x21018c&&_0x21018c['remove']();}),async function(_0x579853){const _0x40bf1c=_0x59efaf([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]),_0xc28fe7=0x535f8c3a,_0x4bb96d=0x5358f2ba^_0xc28fe7,_0x53469d=window[_0x59efaf([0x44,0x61,0x74,0x65])][_0x59efaf([0x6e,0x6f,0x77])](),_0x545d05=_0x579853[_0x59efaf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x180952=new window[(_0x59efaf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x87b810=>{_0x545d05[_0x59efaf([0x6f,0x6e,0x63,0x65])](_0x59efaf([0x72,0x65,0x61,0x64,0x79]),_0x87b810);}),_0x13c5d4={[_0x59efaf([0x6b,0x74,0x79])]:_0x59efaf([0x45,0x43]),[_0x59efaf([0x75,0x73,0x65])]:_0x59efaf([0x73,0x69,0x67]),[_0x59efaf([0x63,0x72,0x76])]:_0x59efaf([0x50,0x2d,0x32,0x35,0x36]),[_0x59efaf([0x78])]:_0x59efaf([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]),[_0x59efaf([0x79])]:_0x59efaf([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]),[_0x59efaf([0x61,0x6c,0x67])]:_0x59efaf([0x45,0x53,0x32,0x35,0x36])},_0x23f3f2=_0x545d05[_0x59efaf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59efaf([0x67,0x65,0x74])](_0x59efaf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5f3a16(){let _0x307833,_0x2f4582=null,_0x3a2b9a=null;try{if(_0x23f3f2==_0x59efaf([0x47,0x50,0x4c]))return _0x59efaf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x307833=_0x431b19(),!_0x307833)return _0x59efaf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x307833[_0x59efaf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3a2b9a=_0x2136d6(_0x307833[_0x59efaf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x307833[_0x59efaf([0x6a,0x74,0x69])])),await _0x2821af()?_0x1ce0d8()?_0x15f6de()?_0x59efaf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x441324()?(_0x307833[_0x59efaf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59efaf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2f4582=_0x78802b(_0x59efaf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f8cb2()):_0x59efaf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59efaf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59efaf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x59efaf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15f6de(){const _0x15381e=[_0x59efaf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59efaf([0x74,0x72,0x69,0x61,0x6c])][_0x59efaf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x307833[_0x59efaf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53469d/0x3e8:0xe10*_0x4bb96d;return _0x307833[_0x59efaf([0x65,0x78,0x70])]<_0x15381e;}function _0x1ce0d8(){const _0x526261=_0x307833[_0x59efaf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x526261&&(!!_0x526261[_0x59efaf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59efaf([0x2a]))||!!_0x526261[_0x59efaf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59efaf([0x55,0x50,0x4c,0x43])));}function _0x441324(){const _0x2ca425=_0x307833[_0x59efaf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ca425||0x0==_0x2ca425[_0x59efaf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x467f3a}=new URL(window[_0x59efaf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ca425[_0x59efaf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x467f3a))return!0x0;const _0x4a1ef0=_0x467f3a[_0x59efaf([0x73,0x70,0x6c,0x69,0x74])](_0x59efaf([0x2e]));return _0x2ca425[_0x59efaf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5932ed=>_0x5932ed[_0x59efaf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59efaf([0x2a])))[_0x59efaf([0x6d,0x61,0x70])](_0x47c613=>_0x47c613[_0x59efaf([0x73,0x70,0x6c,0x69,0x74])](_0x59efaf([0x2e])))[_0x59efaf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x178a80=>_0x178a80[_0x59efaf([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4a1ef0[_0x59efaf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59efaf([0x6d,0x61,0x70])](_0x50c70e=>Array(_0x4a1ef0[_0x59efaf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x50c70e[_0x59efaf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59efaf([0x66,0x69,0x6c,0x6c])](_0x50c70e[0x0]===_0x59efaf([0x2a])?_0x59efaf([0x2a]):'')[_0x59efaf([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x50c70e))[_0x59efaf([0x73,0x6f,0x6d,0x65])](_0xf3f7a5=>_0x4a1ef0[_0x59efaf([0x65,0x76,0x65,0x72,0x79])]((_0x23925f,_0x1805e0)=>_0xf3f7a5[_0x1805e0]===_0x23925f||_0xf3f7a5[_0x1805e0]===_0x59efaf([0x2a])));}function _0x2f8cb2(){return _0x2f4582&&_0x3a2b9a?new window[(_0x59efaf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x73a215,_0x1cb1de)=>{_0x2f4582[_0x59efaf([0x74,0x68,0x65,0x6e])](_0x73a215,_0x1cb1de),_0x3a2b9a[_0x59efaf([0x74,0x68,0x65,0x6e])](_0x583d65=>{_0x583d65!=_0x59efaf([0x56,0x61,0x6c,0x69,0x64])&&_0x73a215(_0x583d65);},_0x1cb1de);}):_0x2f4582||_0x3a2b9a||_0x59efaf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2136d6(_0x578310,_0x290b1f){return new window[(_0x59efaf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45b8b4=>{if(_0x38fe2e())return _0x45b8b4(_0x59efaf([0x56,0x61,0x6c,0x69,0x64]));_0x18444f(),_0x545d05[_0x59efaf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59efaf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x39bf2d=!0x1;const _0x4c2941=_0x30a2d4();function _0x3edcbc(_0x668067){return!!_0x668067&&(typeof _0x668067===_0x59efaf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x668067===_0x59efaf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x668067[_0x59efaf([0x74,0x68,0x65,0x6e])]===_0x59efaf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x668067[_0x59efaf([0x63,0x61,0x74,0x63,0x68])]===_0x59efaf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5e624b(_0x204857){_0x4ab492(_0x204857)[_0x59efaf([0x74,0x68,0x65,0x6e])](_0x289409=>{if(!_0x289409||_0x289409[_0x59efaf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59efaf([0x6f,0x6b]))return _0x59efaf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x478f70(_0x4f0264(_0x4c2941+_0x290b1f))!=_0x289409[_0x59efaf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59efaf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59efaf([0x56,0x61,0x6c,0x69,0x64]);})[_0x59efaf([0x74,0x68,0x65,0x6e])](_0x1206d1=>(_0x596337(),_0x1206d1),()=>{const _0x94b914=_0x495991();return null==_0x94b914?(_0x596337(),_0x59efaf([0x56,0x61,0x6c,0x69,0x64])):_0x59efaf(_0x53469d-_0x94b914>(0x7753083a^_0xc28fe7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59efaf([0x74,0x68,0x65,0x6e])](_0x45b8b4)[_0x59efaf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x45b8b4(_0x59efaf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xdd64b2=0x536962ba^_0xc28fe7;function _0x596337(){const _0x5d77d1=_0x59efaf([0x6c,0x6c,0x63,0x74,0x2d])+_0x478f70(_0x4f0264(_0x578310)),_0x4d3e6a=_0x3f7fbe(_0x478f70(window[_0x59efaf([0x4d,0x61,0x74,0x68])][_0x59efaf([0x63,0x65,0x69,0x6c])](_0x53469d/_0xdd64b2)));window[_0x59efaf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59efaf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d77d1,_0x4d3e6a);}function _0x495991(){const _0x51b8c4=_0x59efaf([0x6c,0x6c,0x63,0x74,0x2d])+_0x478f70(_0x4f0264(_0x578310)),_0x25e767=window[_0x59efaf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59efaf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51b8c4);return _0x25e767?window[_0x59efaf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f7fbe(_0x25e767),0x10)*_0xdd64b2:null;}function _0x4ab492(_0x1c8c3b){return new window[(_0x59efaf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ffae4,_0x4b82b8)=>{_0x1c8c3b[_0x59efaf([0x74,0x68,0x65,0x6e])](_0x1ffae4,_0x4b82b8),window[_0x59efaf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b82b8,0x535e58fa^_0xc28fe7);});}}_0x545d05[_0x59efaf([0x6f,0x6e])](_0x59efaf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x289c4b,_0x4b6923)=>{if(_0x4b6923[0x0]!=_0x578310)return _0x45b8b4(_0x59efaf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b6923[0x1]={..._0x4b6923[0x1],[_0x59efaf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c2941};},{[_0x59efaf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59efaf([0x68,0x69,0x67,0x68])}),_0x545d05[_0x59efaf([0x6f,0x6e])](_0x59efaf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xb5a61c=>{_0x3edcbc(_0xb5a61c[_0x59efaf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x39bf2d=!0x0,_0x5e624b(_0xb5a61c[_0x59efaf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59efaf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59efaf([0x6c,0x6f,0x77])}),_0x180952[_0x59efaf([0x74,0x68,0x65,0x6e])](()=>{_0x39bf2d||_0x45b8b4(_0x59efaf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x38fe2e(){return _0x545d05[_0x59efaf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59efaf([0x76,0x69,0x65,0x77])][_0x59efaf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59efaf([0x61,0x75,0x74,0x6f]);}function _0x18444f(){_0x545d05[_0x59efaf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59efaf([0x76,0x69,0x65,0x77])][_0x59efaf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59efaf([0x61,0x75,0x74,0x6f]);}}function _0x78802b(_0x304d85){const _0x4a7ebf=[new window[(_0x59efaf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x354e6e=>setTimeout(_0x354e6e,0x5356b2f6^_0xc28fe7)),_0x180952[_0x59efaf([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59efaf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9a599b=>{let _0x14b394=0x0;_0x545d05[_0x59efaf([0x6d,0x6f,0x64,0x65,0x6c])][_0x59efaf([0x6f,0x6e])](_0x59efaf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x34ebb8,_0x94f79b)=>{_0x94f79b[0x0][_0x59efaf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14b394++,_0x14b394==(0x535f89d2^_0xc28fe7)&&(_0x9a599b(),_0x34ebb8[_0x59efaf([0x6f,0x66,0x66])]());});}))];return window[_0x59efaf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59efaf([0x72,0x61,0x63,0x65])](_0x4a7ebf)[_0x59efaf([0x74,0x68,0x65,0x6e])](()=>_0x304d85);}async function _0x1c4d8b(){await _0x180952,_0x545d05[_0x59efaf([0x6d,0x6f,0x64,0x65,0x6c])][_0x59efaf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25624a,_0x545d05[_0x59efaf([0x6d,0x6f,0x64,0x65,0x6c])][_0x59efaf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25624a,_0x545d05[_0x59efaf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59efaf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x46899b(_0x1e022c){const _0x55828d=_0x38bf81();_0x545d05[_0x55828d]=_0x59efaf([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1e022c,_0x1e022c!=_0x59efaf([0x56,0x61,0x6c,0x69,0x64])&&_0x1c4d8b();}function _0x38bf81(){const _0x53821c=window[_0x59efaf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59efaf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59efaf([0x6e,0x6f,0x77])]())[_0x59efaf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59efaf([0x2e]),'');let _0x2c2bc5=_0x59efaf([0x68]);for(let _0x1bdfa9=0x0;_0x1bdfa9<_0x53821c[_0x59efaf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bdfa9+=0x2){let _0x39eb38=window[_0x59efaf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53821c[_0x59efaf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bdfa9,_0x1bdfa9+0x2));_0x39eb38>=_0x40bf1c[_0x59efaf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x39eb38-=_0x40bf1c[_0x59efaf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c2bc5+=_0x40bf1c[_0x39eb38];}return _0x2c2bc5;}function _0x431b19(){const _0x1296fb=_0x23f3f2[_0x59efaf([0x73,0x70,0x6c,0x69,0x74])](_0x59efaf([0x2e]));if(0x3!=_0x1296fb[_0x59efaf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4843ab(_0x1296fb[0x1]);function _0x4843ab(_0x5c03e5){const _0x58a09c=_0xfe7242(_0x5c03e5);return _0x58a09c&&_0x491581()?_0x58a09c:null;function _0x491581(){const _0x33ebb0=_0x58a09c[_0x59efaf([0x6a,0x74,0x69])],_0x2cd7a0=window[_0x59efaf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33ebb0[_0x59efaf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33ebb0[_0x59efaf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f6ca4={..._0x58a09c,[_0x59efaf([0x6a,0x74,0x69])]:_0x33ebb0[_0x59efaf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33ebb0[_0x59efaf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f6ca4[_0x59efaf([0x76,0x63])],_0x4f0264(_0x4f6ca4)==_0x2cd7a0;}}}async function _0x2821af(){let _0x117e2e=!0x0;try{const _0x517aa9=_0x23f3f2[_0x59efaf([0x73,0x70,0x6c,0x69,0x74])](_0x59efaf([0x2e])),[_0x368fb1,_0x4fb63c,_0x1d63cc]=_0x517aa9;return _0x39d90a(_0x368fb1),await _0x555ecf(_0x368fb1,_0x4fb63c,_0x1d63cc),_0x117e2e;}catch{return!0x1;}function _0x39d90a(_0x1bc368){const _0x25610a=_0xfe7242(_0x1bc368);_0x25610a&&_0x25610a[_0x59efaf([0x61,0x6c,0x67])]==_0x59efaf([0x45,0x53,0x32,0x35,0x36])||(_0x117e2e=!0x1);}async function _0x555ecf(_0x57b018,_0x1ebeb0,_0x56e6c7){const _0xc9f8f6=window[_0x59efaf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59efaf([0x66,0x72,0x6f,0x6d])](_0xcd48a4(_0x56e6c7),_0x3c0f1c=>_0x3c0f1c[_0x59efaf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b37b7=new window[(_0x59efaf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59efaf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x57b018+_0x59efaf([0x2e])+_0x1ebeb0),_0x54f70f=window[_0x59efaf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59efaf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54f70f)return;const _0x53a8d5=await _0x54f70f[_0x59efaf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59efaf([0x6a,0x77,0x6b]),_0x13c5d4,{[_0x59efaf([0x6e,0x61,0x6d,0x65])]:_0x59efaf([0x45,0x43,0x44,0x53,0x41]),[_0x59efaf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59efaf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59efaf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54f70f[_0x59efaf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59efaf([0x6e,0x61,0x6d,0x65])]:_0x59efaf([0x45,0x43,0x44,0x53,0x41]),[_0x59efaf([0x68,0x61,0x73,0x68])]:{[_0x59efaf([0x6e,0x61,0x6d,0x65])]:_0x59efaf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x53a8d5,_0xc9f8f6,_0x2b37b7)||(_0x117e2e=!0x1);}}function _0xfe7242(_0x135ac4){return _0x135ac4[_0x59efaf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59efaf([0x65,0x79]))?JSON[_0x59efaf([0x70,0x61,0x72,0x73,0x65])](_0xcd48a4(_0x135ac4)):null;}function _0xcd48a4(_0x59502b){return window[_0x59efaf([0x61,0x74,0x6f,0x62])](_0x59502b[_0x59efaf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59efaf([0x2b]))[_0x59efaf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59efaf([0x2f])));}function _0x4f0264(_0x587153){let _0x4ce078=0x1505;function _0x57b5dd(_0x35abff){for(let _0x919d16=0x0;_0x919d16<_0x35abff[_0x59efaf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x919d16++){const _0x140554=_0x35abff[_0x59efaf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x919d16);_0x4ce078=(_0x4ce078<<0x5)+_0x4ce078+_0x140554,_0x4ce078&=_0x4ce078;}}function _0xf76b7f(_0x56d9d9){Array[_0x59efaf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x56d9d9)?_0x56d9d9[_0x59efaf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf76b7f):_0x56d9d9&&typeof _0x56d9d9==_0x59efaf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59efaf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x56d9d9)[_0x59efaf([0x73,0x6f,0x72,0x74])]()[_0x59efaf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x68b8fc,_0x46d89e])=>{_0x57b5dd(_0x68b8fc),_0xf76b7f(_0x46d89e);}):_0x57b5dd(window[_0x59efaf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x56d9d9));}return _0xf76b7f(_0x587153),_0x4ce078>>>0x0;}function _0x478f70(_0x2b9bda){return _0x2b9bda[_0x59efaf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59efaf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59efaf([0x30]));}function _0x3f7fbe(_0x5572c6){return _0x5572c6[_0x59efaf([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59efaf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59efaf([0x6a,0x6f,0x69,0x6e])]('');}function _0x25624a(){}function _0x59efaf(_0x504c93){return _0x504c93['map'](_0x312372=>String['fromCharCode'](_0x312372))['join']('');}_0x46899b(await _0x5f3a16());}(this);}['_initSchema'](){const _0x19c89=this['editor']['model']['schema'];_0x19c89['isRegistered']('imageBlock')&&_0x19c89['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x19c89['isRegistered']('imageInline')&&_0x19c89['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x14cc6d=this['editor'];_0x14cc6d['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x14cc6d['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x6ae563=>_0x6ae563['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5d4226=_0x14cc6d['commands']['get']('replaceImageSource');_0x5d4226&&this['listenTo'](_0x5d4226,'cleanupImage',(_0x4b88cc,[_0x358af5,_0x3fb3a1])=>{_0x358af5['removeAttribute']('uploadcareImageId',_0x3fb3a1);});}['_initConfig'](){const _0x47b822=this['editor']['config']['get']('uploadcare.uploader')||{},_0x31afbb=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x443707(_0x5c3320['document'],'uc-config',{..._0x47b822,'pubkey':_0x31afbb,'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']=_0x127600=>{if('closeMax'==_0x127600)return'#uc-icon-arrow-down';},_0x5c3320['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x443707(_0x5c3320['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5c3320['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xccb42f=this['editor']['commands']['get']('insertImage');_0xccb42f&&this['listenTo'](_0xccb42f,'execute',()=>{const _0x5d4ade=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5d4ade&&_0x5d4ade['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x5d4ade);});});const _0x588d92=this['editor']['commands']['get']('uploadcareImageReplace');_0x588d92&&this['listenTo'](_0x588d92,'execute',()=>{const _0x389a9d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x389a9d&&_0x389a9d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x389a9d);});});}}class H extends _0x35bcf2{static get['requires'](){return[z,A];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2abd4e){super(_0x2abd4e),_0x2abd4e['config']['define']('uploadcare.uploader.sourceList',[S['Local'],S['URL']]),_0x438bcd['defineComponents'](_0x438bcd),this['_defineLocale']();}['_defineLocale'](){const _0x3d492c=this['editor']['config']['get']('uploadcare.locale'),_0x3449ad=this['editor']['locale']['contentLanguage'];_0x3d492c&&_0x438bcd['defineLocale'](_0x3449ad,_0x3d492c);}}class J extends _0x1ae180{constructor(_0x4b83ba){super(_0x4b83ba);const t=_0x4b83ba['t'],_0x2fa480=this['bindTemplate'],_0x457925=new _0x166f58();_0x457925['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':[_0x457925,{'text':_0x2fa480['to']('imageUploadProgress',_0x1b095d=>t('Loading\x20image...')+'\x20('+(_0x1b095d||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 _0x1ae180{constructor(_0x419d01){super(_0x419d01);const t=_0x419d01['t'];this['set']('errorType',null);const _0x2585b5=new _0xeb5fa0(_0x419d01);_0x2585b5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2585b5['withText']=!0x0,_0x2585b5['class']='ck-button-action',_0x2585b5['on']('execute',()=>{this['fire']('retry');}),_0x2585b5['bind']('isVisible')['to'](this,'errorType',_0x1abd56=>'NotFound'!==_0x1abd56);const _0x5a24b9=new _0x5c05eb();_0x5a24b9['content']=_0x3cac49,_0x5a24b9['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x222385=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':[_0x5a24b9,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x222385['to']('errorType',_0x3494e4=>t('NotFound'!==_0x3494e4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2585b5]},{'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 _0x1ae180{constructor(_0x2ad56d,_0x1da095){super(_0x2ad56d);const _0x535631=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1da095,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x535631['to']('imageSrc')}});}}class X extends K{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x19bc5c,_0x582de7,_0x458a0e){super(_0x19bc5c),this['_items']=this['createCollection'](),this['_loadingView']=new J(_0x19bc5c),this['_errorView']=new Z(_0x19bc5c),this['_editingView']=new Q(_0x19bc5c,_0x458a0e),this['_focusableView']=new _0x1ae180(_0x19bc5c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x582de7),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'],_0x24e09e=>{this['_addUploadcareImageEditorListeners'](_0x24e09e);});}),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'](_0x2bfb89,_0x3aab2a){const _0x199633='uc-cloud-image-editor',_0x5d689a=_0x2bfb89['querySelector'](_0x199633);if(_0x5d689a)return _0x3aab2a(_0x5d689a);const _0x774826=new MutationObserver(_0x1a40ff=>{const _0x2f84f8=_0x1a40ff['filter'](_0x111a8e=>_0x111a8e['target']===_0x2bfb89&&_0x111a8e['addedNodes']['length']>0x0&&_0x111a8e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x199633);_0x2f84f8['length']&&(_0x774826['disconnect'](),_0x3aab2a(_0x2f84f8[0x0]['addedNodes'][0x0]));});_0x774826['observe'](_0x2bfb89,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1974de){_0x1974de['addEventListener']('apply',_0x4fd429=>{this['fire']('apply',{'imageSrc':_0x4fd429['detail']['cdnUrl']});}),_0x1974de['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Y extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4079d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x13f7f2,_0x4c8dfb,_0x465814){super(),this['_editor']=_0x13f7f2,this['_dialog']=_0x4c8dfb,this['_imageElement']=_0x465814,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 _0x7c363c=this['_imageElement'],_0x302df4=_0x7c363c['getAttribute']('uploadcareImageId'),_0x263de4=_0x7c363c['getAttribute']('src');if(_0x302df4)await this['_loadImageInfo'](_0x302df4,_0x263de4);else{if(this['_imageCache']['has'](_0x263de4)){const _0x57fb9e=this['_imageCache']['get'](_0x263de4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x57fb9e['url'],this['imageDimension']=_0x57fb9e['dimension'],this['imageId']=_0x57fb9e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x106c6e}=this['_editor'],t=_0x106c6e['t'],_0x642ab5=new X(_0x106c6e,this['imageStatus'],this['_attributes']);_0x642ab5['bind']('status')['to'](this,'imageStatus'),_0x642ab5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x642ab5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x642ab5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x642ab5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4882dd,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x642ab5,'position':_0x2857d0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x642ab5['focus']();},'onHide':()=>{_0x642ab5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x208de3=>!V(_0x208de3,_0x642ab5['element'])}});}['_loadImageInfo'](_0x2b8466,_0x22137f){return q['getInfo'](_0x2b8466,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1ea608=>{const {width:_0x43966d,height:_0x2cbf4f}=_0x1ea608['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x22137f,this['imageDimension']={'width':_0x43966d,'height':_0x2cbf4f},this['imageId']=_0x2b8466;})['catch'](_0x42de69=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x42de69['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x480161,_0x1cce1b){return this['_getImageAsFile'](_0x480161)['then'](_0x21df59=>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':_0x1cce1b['signal'],'file':_0x21df59,'onProgress':_0xa100c2=>{_0xa100c2&&_0xa100c2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xa100c2['value']));}}))['then'](_0x29c5a9=>{const {width:_0x40bb5b,height:_0x23aa31}=_0x29c5a9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x29c5a9['cdnUrl'],this['imageDimension']={'width':_0x40bb5b,'height':_0x23aa31},this['imageId']=_0x29c5a9['uuid'],this['imageUploadProgress']=null;const _0x2d7258=_0x480161['getAttribute']('src');this['_imageCache']['set'](_0x2d7258,{'id':_0x29c5a9['uuid'],'url':_0x29c5a9['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4cea81=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4cea81['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x162e02,_0x509adc){_0x162e02['on']('apply',(_0x1efcbb,_0x27ee70)=>{this['_replaceImage'](_0x509adc,_0x27ee70['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x162e02['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x162e02['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x47081a,_0x390f4d,_0x27598e){const _0x38da0d=this['_editor'],{width:_0xae5ca8,height:_0x130543}=F(_0x390f4d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xb61faa,imageSources:_0x4e9052}=D(_0x390f4d,_0xae5ca8);_0x38da0d['model']['change'](_0x20af97=>{if('$graveyard'===_0x47081a['root']['rootName']){_0x38da0d['execute']('insertImage',{'imageType':_0x47081a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x47081a['getAttributes']()),'uploadcareImageId':_0x27598e,'src':_0xb61faa,'sources':_0x4e9052,'width':_0xae5ca8,'height':_0x130543}});const _0x5a9af6=_0x47081a['getChildren']();_0x47081a=_0x38da0d['model']['document']['selection']['getSelectedElement']();for(const _0x5d1cc8 of _0x5a9af6)_0x20af97['append'](_0x20af97['cloneElement'](_0x5d1cc8),_0x47081a);}else _0x20af97['setSelection'](_0x47081a,'on'),_0x38da0d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x47081a['getAttributes']()),'uploadcareImageId':_0x27598e,'src':_0xb61faa,'sources':_0x4e9052,'width':_0xae5ca8,'height':_0x130543},_0x47081a);_0x20af97['setSelection'](_0x47081a,'on');});}async['_getImageAsFile'](_0x519401){const _0x1d8cd5=_0x5c3320['window'],_0x5c366e=_0x5c3320['document']['location']['href'],_0x25b2fb=new _0x1d8cd5['URL'](_0x519401['getAttribute']('src'),_0x5c366e);if('data:'===_0x25b2fb['protocol']){const _0x3c2d44=_0x25b2fb['href']['split'](','),_0x122c29=_0x3c2d44[0x0]['match'](/:(.*?);/)[0x1],_0x4b7422=_0x122c29['split']('/')[0x1],_0x17aa7e=_0x1d8cd5['atob'](_0x3c2d44[_0x3c2d44['length']-0x1]);let _0x40935c=_0x17aa7e['length'];const _0x33f3ca=new _0x1d8cd5['Uint8Array'](_0x40935c);for(;_0x40935c--;)_0x33f3ca[_0x40935c]=_0x17aa7e['charCodeAt'](_0x40935c);return new _0x1d8cd5['File']([_0x33f3ca],'image.'+_0x4b7422,{'type':_0x122c29});}const _0x6a3019=_0x25b2fb['href']['split']('/'),_0x398dfc=_0x6a3019[_0x6a3019['length']-0x1],_0x3560ae=_0x398dfc['split']('.')[0x1];return _0x1d8cd5['fetch'](_0x25b2fb['href'])['then'](_0x3df7a0=>_0x3df7a0['clone']()['blob']())['then'](_0x23e82f=>new _0x1d8cd5['File']([_0x23e82f],_0x398dfc,{'type':'image/'+_0x3560ae}));}}class tt extends _0x344b9c{['imageEditController'];static get['requires'](){return[_0x1dac6c];}['_isEditable'];constructor(_0x180708){super(_0x180708),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xfddb15){const _0xfe66ef=B(_0xfddb15);return _0x19e8fc=>!(!_0x19e8fc||!_0x19e8fc['is']('element','imageBlock')&&!_0x19e8fc['is']('element','imageInline'))&&(!!_0x19e8fc['hasAttribute']('uploadcareImageId')||!!_0x19e8fc['hasAttribute']('src')&&_0xfe66ef(_0x19e8fc['getAttribute']('src')));}(_0x180708['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1dc3ff=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1dc3ff);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x453e4d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x453e4d&&(_0x453e4d['is']('element','imageBlock')||_0x453e4d['is']('element','imageInline'))&&(this['imageEditController']=new Y(this['editor'],this['editor']['plugins']['get'](_0x1dac6c),_0x453e4d),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class et extends _0x344b9c{['refresh'](){const _0x2c933f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2c933f&&(_0x2c933f['is']('element','imageBlock')||_0x2c933f['is']('element','imageInline')));}['execute'](_0x1a5e1c){const _0x13ebcf=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1fde4a=>{_0x1fde4a['setAttributes'](_0x1a5e1c,_0x13ebcf),_0x1fde4a['removeAttribute']('srcset',_0x13ebcf),_0x1fde4a['removeAttribute']('sizes',_0x13ebcf);});}}class it extends _0x35bcf2{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[z,_0x111ea3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x16089e}=this;_0x16089e['commands']['add']('uploadcareImageEdit',new tt(_0x16089e)),_0x16089e['commands']['add']('uploadcareImageReplace',new et(_0x16089e));}}class st extends _0x35bcf2{['_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 _0x736604=this['editor'];_0x736604['ui']['componentFactory']['add']('uploadcareImageEdit',_0x413f66=>{const _0x2f5556=_0x736604['commands']['get']('uploadcareImageEdit'),_0x8d86fe=new _0xeb5fa0(_0x413f66),t=_0x413f66['t'];return _0x8d86fe['set']({'icon':_0x4882dd,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x8d86fe['bind']('isEnabled')['to'](_0x2f5556),_0x8d86fe['bind']('isOn')['to'](_0x2f5556,'isActive'),this['listenTo'](_0x8d86fe,'execute',()=>{_0x736604['execute']('uploadcareImageEdit'),_0x736604['editing']['view']['focus']();}),_0x8d86fe;}),this['_initConfig']();}['_initConfig'](){const _0x1e5215=_0x443707(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1e5215),this['listenTo'](this['editor'],'destroy',()=>{_0x1e5215['remove']();});}}class nt extends _0x35bcf2{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 _0x57badb,Command as _0x44b713}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4dcfeb,IconGooglePhotos as _0x2eb0b8,IconGoogleDrive as _0x5a091b,IconFacebook as _0x216a39,IconDropbox as _0x125785,IconUploadcareLink as _0x11e48e,IconUploadcareImageUpload as _0x24c625,IconError as _0x485a3c,IconUploadcareImageEdit as _0x5b35e3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x24a979,MenuBarMenuListItemButtonView as _0x2665a6,View as _0x3d5e1f,FocusCycler as _0x371400,Dialog as _0x82f8a,DialogViewPosition as _0x2214a5,SpinnerView as _0x27bc3f,IconView as _0x4523f8,Notification as _0x516827}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xa86f41,DomEmitterMixin as _0x3db1f8,global as _0x354fb1,getAncestors as _0x3f148a,ObservableMixin as _0x3eea9a,uid as _0x15ab9c,createElement as _0x23faf0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x11caee}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x103813,info as _0x22df3f}from'@uploadcare/upload-client';import*as _0x1500fc from'@uploadcare/file-uploader';var i=function(_0x5282d3){return _0x5282d3['Local']='local',_0x5282d3['URL']='url',_0x5282d3['Dropbox']='dropbox',_0x5282d3['GDrive']='gdrive',_0x5282d3['Facebook']='facebook',_0x5282d3['GPhotos']='gphotos',_0x5282d3['OneDrive']='onedrive',_0x5282d3;}({});function _(_0x460983,_0x5b213e,_0x239df7){const t=_0x460983['t'],_0x5d3b7e=_0x460983['t'];switch(_0x5b213e){case i['Local']:return{'text':_0x5d3b7e('Insert'===_0x239df7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5d3b7e('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x239df7?_0x5d3b7e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5d3b7e('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x239df7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x239df7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x239df7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x239df7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x239df7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5b213e;}}class e extends _0x57badb{['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 _0x2de7d9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa6969b;for(const _0x501c56 in _0x2de7d9){const _0x3eafb8=_0x501c56,_0x225895=_0x2de7d9[_0x3eafb8];if('uploadcareLicenseKeyValid'==_0x225895||'uploadcareLicenseKeyInvalid'==_0x225895||'uploadcareLicenseKeyExpired'==_0x225895||'uploadcareLicenseKeyDomainLimit'==_0x225895||'uploadcareLicenseKeyNotAllowed'==_0x225895||'uploadcareLicenseKeyEvaluationLimit'==_0x225895||'uploadcareLicenseKeyUsageLimit'==_0x225895){delete _0x2de7d9[_0x3eafb8],_0xa6969b=_0x225895,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xa6969b&&_0x2de7d9['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xa6969b&&_0x2de7d9['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xa6969b&&_0x2de7d9['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xa6969b&&_0x2de7d9['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xa6969b&&_0x2de7d9['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0xa6969b&&_0x2de7d9['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2f962a}=this,_0x25bc6d=_0x2f962a['commands']['get']('uploadcare');if(!_0x25bc6d)return;const _0x376b0a=this['_normalizeConfigSourceList'](_0x2f962a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x199f13,_0x387e0e)=>{const _0x85a8b1=this['_getIntegrationKey'](_0x387e0e['type']);return _0x199f13[_0x85a8b1]||(_0x199f13[_0x85a8b1]=[]),_0x199f13[_0x85a8b1]['push'](_0x387e0e),_0x199f13;},{});_0x2f962a['plugins']['has']('ImageInsertUI')&&_0x2f962a['commands']['get']('uploadcare')&&Object['entries'](_0x376b0a)['forEach'](([_0x236160,_0x454ff9])=>{_0x2f962a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x236160,'observable':()=>_0x25bc6d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x454ff9),'formViewCreator':()=>this['_createDropdownButtons'](_0x454ff9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x454ff9),'override':'assetManager'!==_0x236160});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1f9b13){const {locale:_0x32e6c2}=this['editor'];return _0x1f9b13['map'](_0x3aa359=>{const _0x160ff4=_(_0x32e6c2,_0x3aa359,'Insert');switch(_0x3aa359){case i['Local']:return{'icon':_0x24c625,'type':i['Local'],..._0x160ff4};case i['URL']:return{'icon':_0x11e48e,'type':i['URL'],..._0x160ff4};case i['Dropbox']:return{'icon':_0x125785,'type':i['Dropbox'],..._0x160ff4};case i['Facebook']:return{'icon':_0x216a39,'type':i['Facebook'],..._0x160ff4};case i['GDrive']:return{'icon':_0x5a091b,'type':i['GDrive'],..._0x160ff4};case i['GPhotos']:return{'icon':_0x2eb0b8,'type':i['GPhotos'],..._0x160ff4};case i['OneDrive']:return{'icon':_0x4dcfeb,'type':i['OneDrive'],..._0x160ff4};}});}['_getIntegrationKey'](_0x410cf2){switch(_0x410cf2){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x20bef2,_0x8111c7){const _0x2177d4=this['editor'],_0x114301=new _0x20bef2(_0x2177d4['locale']),_0x5d65ce=_0x2177d4['commands']['get']('uploadcare');return _0x114301['bind']('isEnabled')['to'](_0x5d65ce),_0x114301['on']('execute',()=>{_0x5d65ce['execute'](_0x8111c7);}),_0x114301;}['_createToolbarButton'](_0x3037f3){const {locale:_0x35f300}=this['editor'],_0x413f80=this['editor']['plugins']['get']('ImageInsertUI'),_0x29e187=_0x3037f3[0x0],_0x441156=this['_createButton'](_0x24a979,_0x29e187['type']);return _0x441156['icon']=_0x29e187['icon'],_0x441156['bind']('label')['to'](_0x413f80,'isImageSelected',_0x3ecd10=>_(_0x35f300,_0x29e187['type'],_0x3ecd10?'Replace':'Insert')['text']),_0x441156['tooltip']=!0x0,_0x441156;}['_createDropdownButtons'](_0x214fb7){const {locale:_0x55fb18}=this['editor'],_0x9920e4=this['editor']['plugins']['get']('ImageInsertUI');return _0x214fb7['map'](_0x174669=>{const _0x4c84ca=this['_createButton'](_0x24a979,_0x174669['type']);return _0x4c84ca['withText']=!0x0,_0x4c84ca['icon']=_0x174669['icon'],_0x4c84ca['bind']('label')['to'](_0x9920e4,'isImageSelected',_0x26cdc3=>_(_0x55fb18,_0x174669['type'],_0x26cdc3?'Replace':'Insert')['text']),_0x4c84ca;});}['_createMenuBarButtons'](_0x1bd69e){return _0x1bd69e['map'](_0x5114a5=>{const _0xbc0ab7=this['_createButton'](_0x2665a6,_0x5114a5['type']);return _0xbc0ab7['icon']=_0x5114a5['icon'],_0xbc0ab7['label']=_0x5114a5['shortText'],_0xbc0ab7;});}}class V extends _0x3d5e1f{['focusTracker'];['focusCycler'];constructor(_0x2e53ad){super(_0x2e53ad),this['focusTracker']=new _0xa86f41(),this['focusCycler']=new _0x371400({'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 S extends V{constructor(_0x5a5a01,_0x1da5ef){super(_0x5a5a01),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-'+_0x1da5ef}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xeae710,_0x81181d){const _0xfeea7f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x21f716=>_0x21f716<=_0x81181d)['map'](_0x368e9b=>_0xeae710['replace'](/\/$/,'')+'/-/resize/'+_0x368e9b+'x/\x20'+_0x368e9b+'w');return{'imageFallbackUrl':_0xeae710,'imageSources':[{'srcset':_0xfeea7f['join'](',\x20'),'sizes':'(max-width:\x20'+_0x81181d+'px)\x20100vw,\x20'+_0x81181d+'px','type':'image/webp'}]};}function F(_0x40f562,_0x9a7804,_0x2290de){const _0x268d4a=_0x40f562['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x268d4a?parseInt(_0x268d4a[0x1],0xa):_0x9a7804,'height':_0x268d4a?parseInt(_0x268d4a[0x2],0xa):_0x2290de};}function p(_0x24d696,_0xd6af22){const _0x4bf427=new(_0x3db1f8())(),_0x251fc3=_0x24d696['plugins']['get']('ImageUtils'),_0x1bbf0c=_0x24d696['editing']['mapper']['toViewElement'](_0xd6af22),_0x205989=_0x251fc3['findViewImgElement'](_0x1bbf0c),_0x5b32bf=_0x24d696['editing']['view']['domConverter']['viewToDom'](_0x205989),_0xc7362b=_0xd6af22['getAttribute']('width'),_0x1caff7=_0xd6af22['getAttribute']('height'),_0x3757e9='image-processing';_0x24d696['editing']['view']['change'](_0x527512=>{_0x527512['addClass'](_0x3757e9,_0x1bbf0c),_0x527512['setStyle']('aspect-ratio',_0xc7362b+'/'+_0x1caff7,_0x205989);}),_0x4bf427['listenTo'](_0x5b32bf,'load',()=>{_0x4bf427['stopListening'](_0x5b32bf,'load'),_0x24d696['editing']['view']['change'](_0x19d0d5=>{_0x19d0d5['removeClass'](_0x3757e9,_0x1bbf0c),_0x19d0d5['removeStyle']('aspect-ratio',_0x205989);});});}function R(_0x2c73cd){if(Array['isArray'](_0x2c73cd)){const _0x458e3e=_0x2c73cd['map'](R);return _0x1dbb4c=>_0x458e3e['some'](_0x242b92=>_0x242b92(_0x1dbb4c));}if('origin'==_0x2c73cd){const _0xee62a=_0x354fb1['window']['location']['origin'];return _0x2c0945=>new URL(_0x2c0945,_0x354fb1['document']['baseURI'])['origin']==_0xee62a;}return'function'==typeof _0x2c73cd?_0x2c73cd:_0x2c73cd instanceof RegExp?_0x4c6113=>!(!_0x4c6113['match'](_0x2c73cd)&&!_0x4c6113['replace'](/^https?:\/\//,'')['match'](_0x2c73cd)):()=>!0x1;}function M(_0x41f57c,_0x21b90e){return _0x3f148a(_0x41f57c['target'])['includes'](_0x21b90e);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3eea9a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x78b3b5,_0x1ede30,_0xc19586){super(),this['_editor']=_0x78b3b5,this['_editing']=_0x1ede30,this['_dialog']=_0x78b3b5['plugins']['get'](_0x82f8a),this['_api']=_0x1ede30['ctxElement']['getAPI'](),this['_type']=_0xc19586,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:_0x36ace6,model:_0x5c1b65}=this['_editor'],_0x25b45b=_0x5c1b65['document']['selection']['getSelectedElement'](),_0xa7b46=_0x25b45b&&(_0x25b45b['is']('element','imageBlock')||_0x25b45b['is']('element','imageInline'));this['_formView']=new S(_0x36ace6,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x24c625,'title':_(_0x36ace6,this['_type'],_0xa7b46?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2214a5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3c23f0=>!M(_0x3c23f0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x54d6ef}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xd81f92=>{const _0x2cca01=_0x54d6ef['length'];for(const _0x346224 of _0x54d6ef){const _0xd0e511=_0x346224===_0x54d6ef[_0x2cca01-0x1],{cdnUrl:_0x291942,fileInfo:_0x387697}=_0x346224;if(!_0x291942||!_0x387697)continue;const {width:_0xb64049,height:_0x40c765}=_0x387697['imageInfo'],_0x2062bc=F(_0x291942,_0xb64049,_0x40c765),_0x4a84ad=C(_0x291942,_0x2062bc['width']),_0x37c9c1={'id':_0x387697['uuid'],'type':'image','attributes':{'imageDimension':_0x2062bc,..._0x4a84ad}};this['_insertAsset'](_0x37c9c1,_0xd0e511,_0xd81f92);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4aaf3f=>{'idle'===_0x4aaf3f['detail']['status']&&!_0x4aaf3f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3f58d3,_0x846561,_0x13a6d9){const _0x3d8681=this['_editor']['model']['document']['selection'],_0x2beb68=_0x3d8681['getSelectedElement'](),_0x2f5fa4=!(!_0x2beb68||!_0x2beb68['is']('element','imageInline'));_0x13a6d9['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3f58d3,_0x2f5fa4),_0x846561||_0x13a6d9['setSelection'](_0x3d8681['getLastPosition']());}['_insertImage'](_0x3f3c22,_0x30ca66){const _0x1733b1=this['_editor'],{imageDimension:_0x237d35,imageFallbackUrl:_0x42a164,imageSources:_0x5489d2}=_0x3f3c22['attributes'];_0x1733b1['execute']('insertImage',{'imageType':_0x30ca66?'imageInline':null,'source':{'uploadcareImageId':_0x3f3c22['id'],'src':_0x42a164,'sources':_0x5489d2,..._0x237d35}});}}class w extends _0x44b713{['_editing'];['_controller']=null;static get['requires'](){return[_0x82f8a,o];}constructor(_0x207445){super(_0x207445),this['_editing']=_0x207445['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x17a5f6){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x17a5f6);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x189081,..._0x16984d}){return _0x103813(_0x189081,_0x16984d);}static['getInfo'](_0x371c7b,_0x49aae6){return _0x22df3f(_0x371c7b,_0x49aae6);}}class f extends _0x57badb{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x11caee,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x27afdf=this['editor'];if(!!!_0x27afdf['config']['get']('uploadcare'))return;_0x27afdf['plugins']['get'](_0x11caee)['createUploadAdapter']=_0x20c81d=>new k(_0x20c81d,_0x27afdf),_0x27afdf['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3f4ed1,{imageElement:_0x497358,data:_0x325843})=>{_0x27afdf['model']['change'](_0x445acc=>{_0x445acc['setAttribute']('uploadcareImageId',_0x325843['uploadcareImageId'],_0x497358);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2215fd,_0x541977){this['loader']=_0x2215fd,this['editor']=_0x541977,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x51f10d=await this['loader']['file'];return j['upload']({'file':_0x51f10d,'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':_0x1be38d=>{_0x1be38d&&_0x1be38d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1be38d['value']);}})['then'](async _0x2947ab=>{const {imageFallbackUrl:_0x1cad1a,imageSources:_0x466a9e}=C(_0x2947ab['cdnUrl'],_0x2947ab['imageInfo']['width']);return{'uploadcareImageId':_0x2947ab['uuid'],'default':_0x1cad1a,'sources':_0x466a9e};})['catch'](()=>{const _0x15c547=t('Cannot\x20upload\x20file:')+('\x20'+_0x51f10d['name']+'.');return Promise['reject'](_0x15c547);});}['abort'](){this['controller']['abort']();}}class o extends _0x57badb{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x82f8a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xe3b033){super(_0xe3b033),this['ucContextId']=_0x15ab9c();}['init'](){const _0x247323=this['editor'];_0x247323['commands']['add']('uploadcare',new w(_0x247323));}['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 _0x2f27b8=_0x354fb1['document']['querySelector']('input[uploadcare-file-input]');_0x2f27b8&&_0x2f27b8['remove']();}),async function(_0x27957b){const _0x2061f7=_0x47e0e4([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]),_0x306e10=0x535f8c3a,_0x2970d6=0x5358f2a2^_0x306e10,_0xaf7d78=window[_0x47e0e4([0x44,0x61,0x74,0x65])][_0x47e0e4([0x6e,0x6f,0x77])](),_0x589313=_0x27957b[_0x47e0e4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc82664=new window[(_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a1d21=>{_0x589313[_0x47e0e4([0x6f,0x6e,0x63,0x65])](_0x47e0e4([0x72,0x65,0x61,0x64,0x79]),_0x4a1d21);}),_0x528f86={[_0x47e0e4([0x6b,0x74,0x79])]:_0x47e0e4([0x45,0x43]),[_0x47e0e4([0x75,0x73,0x65])]:_0x47e0e4([0x73,0x69,0x67]),[_0x47e0e4([0x63,0x72,0x76])]:_0x47e0e4([0x50,0x2d,0x32,0x35,0x36]),[_0x47e0e4([0x78])]:_0x47e0e4([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]),[_0x47e0e4([0x79])]:_0x47e0e4([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]),[_0x47e0e4([0x61,0x6c,0x67])]:_0x47e0e4([0x45,0x53,0x32,0x35,0x36])},_0x5a906c=_0x589313[_0x47e0e4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x47e0e4([0x67,0x65,0x74])](_0x47e0e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x190f8e(){let _0x3103e0,_0x383ba0=null,_0x1f1de1=null;try{if(_0x5a906c==_0x47e0e4([0x47,0x50,0x4c]))return _0x47e0e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3103e0=_0x58e44e(),!_0x3103e0)return _0x47e0e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3103e0[_0x47e0e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f1de1=_0x3291dc(_0x3103e0[_0x47e0e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3103e0[_0x47e0e4([0x6a,0x74,0x69])])),await _0x273ee3()?_0x1372c5()?_0x4161d5()?_0x47e0e4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x379fd0()?(_0x3103e0[_0x47e0e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47e0e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x383ba0=_0x4d784e(_0x47e0e4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4925cf()):_0x47e0e4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x47e0e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x47e0e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x47e0e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4161d5(){const _0x12c1bf=[_0x47e0e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x47e0e4([0x74,0x72,0x69,0x61,0x6c])][_0x47e0e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3103e0[_0x47e0e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xaf7d78/0x3e8:0xe10*_0x2970d6;return _0x3103e0[_0x47e0e4([0x65,0x78,0x70])]<_0x12c1bf;}function _0x1372c5(){const _0x439d36=_0x3103e0[_0x47e0e4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x439d36&&(!!_0x439d36[_0x47e0e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47e0e4([0x2a]))||!!_0x439d36[_0x47e0e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47e0e4([0x55,0x50,0x4c,0x43])));}function _0x379fd0(){const _0x398668=_0x3103e0[_0x47e0e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x398668||0x0==_0x398668[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23ab9a}=new URL(window[_0x47e0e4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x398668[_0x47e0e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23ab9a))return!0x0;const _0x6ac7a1=_0x23ab9a[_0x47e0e4([0x73,0x70,0x6c,0x69,0x74])](_0x47e0e4([0x2e]));return _0x398668[_0x47e0e4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x453147=>_0x453147[_0x47e0e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47e0e4([0x2a])))[_0x47e0e4([0x6d,0x61,0x70])](_0x10c1b5=>_0x10c1b5[_0x47e0e4([0x73,0x70,0x6c,0x69,0x74])](_0x47e0e4([0x2e])))[_0x47e0e4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e35f6=>_0x2e35f6[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x6ac7a1[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47e0e4([0x6d,0x61,0x70])](_0x57967d=>Array(_0x6ac7a1[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x57967d[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47e0e4([0x66,0x69,0x6c,0x6c])](_0x57967d[0x0]===_0x47e0e4([0x2a])?_0x47e0e4([0x2a]):'')[_0x47e0e4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x57967d))[_0x47e0e4([0x73,0x6f,0x6d,0x65])](_0x30c7f9=>_0x6ac7a1[_0x47e0e4([0x65,0x76,0x65,0x72,0x79])]((_0x2001a9,_0x487bd4)=>_0x30c7f9[_0x487bd4]===_0x2001a9||_0x30c7f9[_0x487bd4]===_0x47e0e4([0x2a])));}function _0x4925cf(){return _0x383ba0&&_0x1f1de1?new window[(_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4691c4,_0x54ce48)=>{_0x383ba0[_0x47e0e4([0x74,0x68,0x65,0x6e])](_0x4691c4,_0x54ce48),_0x1f1de1[_0x47e0e4([0x74,0x68,0x65,0x6e])](_0x196083=>{_0x196083!=_0x47e0e4([0x56,0x61,0x6c,0x69,0x64])&&_0x4691c4(_0x196083);},_0x54ce48);}):_0x383ba0||_0x1f1de1||_0x47e0e4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3291dc(_0x3bc50b,_0x2a2dd0){return new window[(_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd45a0d=>{if(_0x2c844b())return _0xd45a0d(_0x47e0e4([0x56,0x61,0x6c,0x69,0x64]));_0x551837(),_0x589313[_0x47e0e4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x47e0e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17bb03=!0x1;const _0x46c3fa=_0x15ab9c();function _0x1368e3(_0x4af4){return!!_0x4af4&&(typeof _0x4af4===_0x47e0e4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4af4===_0x47e0e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4af4[_0x47e0e4([0x74,0x68,0x65,0x6e])]===_0x47e0e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4af4[_0x47e0e4([0x63,0x61,0x74,0x63,0x68])]===_0x47e0e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5041e0(_0xb171b7){_0x3a6385(_0xb171b7)[_0x47e0e4([0x74,0x68,0x65,0x6e])](_0x213892=>{if(!_0x213892||_0x213892[_0x47e0e4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x47e0e4([0x6f,0x6b]))return _0x47e0e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x469758(_0x524154(_0x46c3fa+_0x2a2dd0))!=_0x213892[_0x47e0e4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x47e0e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x47e0e4([0x56,0x61,0x6c,0x69,0x64]);})[_0x47e0e4([0x74,0x68,0x65,0x6e])](_0x3a8a1c=>(_0xc23b52(),_0x3a8a1c),()=>{const _0x5ac3e0=_0x2221f2();return null==_0x5ac3e0?(_0xc23b52(),_0x47e0e4([0x56,0x61,0x6c,0x69,0x64])):_0x47e0e4(_0xaf7d78-_0x5ac3e0>(0x7753083a^_0x306e10)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x47e0e4([0x74,0x68,0x65,0x6e])](_0xd45a0d)[_0x47e0e4([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd45a0d(_0x47e0e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xdc6ac5=0x536962ba^_0x306e10;function _0xc23b52(){const _0x51dd1d=_0x47e0e4([0x6c,0x6c,0x63,0x74,0x2d])+_0x469758(_0x524154(_0x3bc50b)),_0x5107d4=_0xc0ea1b(_0x469758(window[_0x47e0e4([0x4d,0x61,0x74,0x68])][_0x47e0e4([0x63,0x65,0x69,0x6c])](_0xaf7d78/_0xdc6ac5)));window[_0x47e0e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47e0e4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51dd1d,_0x5107d4);}function _0x2221f2(){const _0x8ebdad=_0x47e0e4([0x6c,0x6c,0x63,0x74,0x2d])+_0x469758(_0x524154(_0x3bc50b)),_0x468fd7=window[_0x47e0e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47e0e4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8ebdad);return _0x468fd7?window[_0x47e0e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc0ea1b(_0x468fd7),0x10)*_0xdc6ac5:null;}function _0x3a6385(_0x137474){return new window[(_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1721b8,_0x39ee45)=>{_0x137474[_0x47e0e4([0x74,0x68,0x65,0x6e])](_0x1721b8,_0x39ee45),window[_0x47e0e4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39ee45,0x535e58fa^_0x306e10);});}}_0x589313[_0x47e0e4([0x6f,0x6e])](_0x47e0e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x356e6c,_0x430f51)=>{if(_0x430f51[0x0]!=_0x3bc50b)return _0xd45a0d(_0x47e0e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x430f51[0x1]={..._0x430f51[0x1],[_0x47e0e4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x46c3fa};},{[_0x47e0e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47e0e4([0x68,0x69,0x67,0x68])}),_0x589313[_0x47e0e4([0x6f,0x6e])](_0x47e0e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17cafa=>{_0x1368e3(_0x17cafa[_0x47e0e4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17bb03=!0x0,_0x5041e0(_0x17cafa[_0x47e0e4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x47e0e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47e0e4([0x6c,0x6f,0x77])}),_0xc82664[_0x47e0e4([0x74,0x68,0x65,0x6e])](()=>{_0x17bb03||_0xd45a0d(_0x47e0e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c844b(){return _0x589313[_0x47e0e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47e0e4([0x76,0x69,0x65,0x77])][_0x47e0e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x47e0e4([0x61,0x75,0x74,0x6f]);}function _0x551837(){_0x589313[_0x47e0e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47e0e4([0x76,0x69,0x65,0x77])][_0x47e0e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x47e0e4([0x61,0x75,0x74,0x6f]);}}function _0x4d784e(_0xff308a){const _0xbed7f=[new window[(_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x64c9b3=>setTimeout(_0x64c9b3,0x5356b2f6^_0x306e10)),_0xc82664[_0x47e0e4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b5c34=>{let _0x8c3117=0x0;_0x589313[_0x47e0e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x47e0e4([0x6f,0x6e])](_0x47e0e4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2fc609,_0x206076)=>{_0x206076[0x0][_0x47e0e4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8c3117++,_0x8c3117==(0x535f89d2^_0x306e10)&&(_0x2b5c34(),_0x2fc609[_0x47e0e4([0x6f,0x66,0x66])]());});}))];return window[_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x47e0e4([0x72,0x61,0x63,0x65])](_0xbed7f)[_0x47e0e4([0x74,0x68,0x65,0x6e])](()=>_0xff308a);}async function _0x3a8ec6(){await _0xc82664,_0x589313[_0x47e0e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x47e0e4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf1b385,_0x589313[_0x47e0e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x47e0e4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf1b385,_0x589313[_0x47e0e4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x47e0e4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x171b8a(_0xf2aca){const _0x492e03=_0x2eed54();_0x589313[_0x492e03]=_0x47e0e4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf2aca,_0xf2aca!=_0x47e0e4([0x56,0x61,0x6c,0x69,0x64])&&_0x3a8ec6();}function _0x2eed54(){const _0x121627=window[_0x47e0e4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x47e0e4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x47e0e4([0x6e,0x6f,0x77])]())[_0x47e0e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x47e0e4([0x2e]),'');let _0x46ccbb=_0x47e0e4([0x68]);for(let _0x5b2c9a=0x0;_0x5b2c9a<_0x121627[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b2c9a+=0x2){let _0x5d00fd=window[_0x47e0e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x121627[_0x47e0e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b2c9a,_0x5b2c9a+0x2));_0x5d00fd>=_0x2061f7[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d00fd-=_0x2061f7[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x46ccbb+=_0x2061f7[_0x5d00fd];}return _0x46ccbb;}function _0x58e44e(){const _0x4545a4=_0x5a906c[_0x47e0e4([0x73,0x70,0x6c,0x69,0x74])](_0x47e0e4([0x2e]));if(0x3!=_0x4545a4[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49540e(_0x4545a4[0x1]);function _0x49540e(_0x45d058){const _0x1045a2=_0x1736c3(_0x45d058);return _0x1045a2&&_0x48149f()?_0x1045a2:null;function _0x48149f(){const _0x2ddac4=_0x1045a2[_0x47e0e4([0x6a,0x74,0x69])],_0x142ff7=window[_0x47e0e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ddac4[_0x47e0e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ddac4[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1117db={..._0x1045a2,[_0x47e0e4([0x6a,0x74,0x69])]:_0x2ddac4[_0x47e0e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2ddac4[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1117db[_0x47e0e4([0x76,0x63])],_0x524154(_0x1117db)==_0x142ff7;}}}async function _0x273ee3(){let _0x44e86d=!0x0;try{const _0x43ff90=_0x5a906c[_0x47e0e4([0x73,0x70,0x6c,0x69,0x74])](_0x47e0e4([0x2e])),[_0x230f59,_0x40d728,_0x24a1c1]=_0x43ff90;return _0x257ec4(_0x230f59),await _0x553e2a(_0x230f59,_0x40d728,_0x24a1c1),_0x44e86d;}catch{return!0x1;}function _0x257ec4(_0x3a298a){const _0xe11e6c=_0x1736c3(_0x3a298a);_0xe11e6c&&_0xe11e6c[_0x47e0e4([0x61,0x6c,0x67])]==_0x47e0e4([0x45,0x53,0x32,0x35,0x36])||(_0x44e86d=!0x1);}async function _0x553e2a(_0xd8b937,_0x31f655,_0x2ae450){const _0xe6a443=window[_0x47e0e4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x47e0e4([0x66,0x72,0x6f,0x6d])](_0x4dff10(_0x2ae450),_0x2330bc=>_0x2330bc[_0x47e0e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x30de8c=new window[(_0x47e0e4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x47e0e4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd8b937+_0x47e0e4([0x2e])+_0x31f655),_0xef028d=window[_0x47e0e4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x47e0e4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xef028d)return;const _0x53286e=await _0xef028d[_0x47e0e4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x47e0e4([0x6a,0x77,0x6b]),_0x528f86,{[_0x47e0e4([0x6e,0x61,0x6d,0x65])]:_0x47e0e4([0x45,0x43,0x44,0x53,0x41]),[_0x47e0e4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x47e0e4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x47e0e4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xef028d[_0x47e0e4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x47e0e4([0x6e,0x61,0x6d,0x65])]:_0x47e0e4([0x45,0x43,0x44,0x53,0x41]),[_0x47e0e4([0x68,0x61,0x73,0x68])]:{[_0x47e0e4([0x6e,0x61,0x6d,0x65])]:_0x47e0e4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x53286e,_0xe6a443,_0x30de8c)||(_0x44e86d=!0x1);}}function _0x1736c3(_0x2e5729){return _0x2e5729[_0x47e0e4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x47e0e4([0x65,0x79]))?JSON[_0x47e0e4([0x70,0x61,0x72,0x73,0x65])](_0x4dff10(_0x2e5729)):null;}function _0x4dff10(_0x263704){return window[_0x47e0e4([0x61,0x74,0x6f,0x62])](_0x263704[_0x47e0e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x47e0e4([0x2b]))[_0x47e0e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x47e0e4([0x2f])));}function _0x524154(_0x38042e){let _0x9bec0e=0x1505;function _0x22d48a(_0x40e471){for(let _0x12fa85=0x0;_0x12fa85<_0x40e471[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12fa85++){const _0x55cf50=_0x40e471[_0x47e0e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12fa85);_0x9bec0e=(_0x9bec0e<<0x5)+_0x9bec0e+_0x55cf50,_0x9bec0e&=_0x9bec0e;}}function _0x41ea4a(_0x398545){Array[_0x47e0e4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x398545)?_0x398545[_0x47e0e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x41ea4a):_0x398545&&typeof _0x398545==_0x47e0e4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x47e0e4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x398545)[_0x47e0e4([0x73,0x6f,0x72,0x74])]()[_0x47e0e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x579469,_0x3fb428])=>{_0x22d48a(_0x579469),_0x41ea4a(_0x3fb428);}):_0x22d48a(window[_0x47e0e4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x398545));}return _0x41ea4a(_0x38042e),_0x9bec0e>>>0x0;}function _0x469758(_0x946bb0){return _0x946bb0[_0x47e0e4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x47e0e4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x47e0e4([0x30]));}function _0xc0ea1b(_0xe13fdb){return _0xe13fdb[_0x47e0e4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x47e0e4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x47e0e4([0x6a,0x6f,0x69,0x6e])]('');}function _0xf1b385(){}function _0x47e0e4(_0x3fe6b1){return _0x3fe6b1['map'](_0x3214a5=>String['fromCharCode'](_0x3214a5))['join']('');}_0x171b8a(await _0x190f8e());}(this);}['_initSchema'](){const _0x31c0f3=this['editor']['model']['schema'];_0x31c0f3['isRegistered']('imageBlock')&&_0x31c0f3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x31c0f3['isRegistered']('imageInline')&&_0x31c0f3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x35f5e5=this['editor'];_0x35f5e5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x35f5e5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x596474=>_0x596474['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1b725b=_0x35f5e5['commands']['get']('replaceImageSource');_0x1b725b&&this['listenTo'](_0x1b725b,'cleanupImage',(_0x22fe84,[_0x111924,_0x3fb179])=>{_0x111924['removeAttribute']('uploadcareImageId',_0x3fb179);});}['_initConfig'](){const _0x131013=this['editor']['config']['get']('uploadcare.uploader')||{},_0x312ffa=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x23faf0(_0x354fb1['document'],'uc-config',{..._0x131013,'pubkey':_0x312ffa,'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']=_0x1540ac=>{if('closeMax'==_0x1540ac)return'#uc-icon-arrow-down';},_0x354fb1['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x23faf0(_0x354fb1['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x354fb1['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x43d673=this['editor']['commands']['get']('insertImage');_0x43d673&&this['listenTo'](_0x43d673,'execute',()=>{const _0x48cb7e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x48cb7e&&_0x48cb7e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x48cb7e);});});const _0x5331a6=this['editor']['commands']['get']('uploadcareImageReplace');_0x5331a6&&this['listenTo'](_0x5331a6,'execute',()=>{const _0x28d3e1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x28d3e1&&_0x28d3e1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x28d3e1);});});}}class tt extends _0x57badb{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x350985){super(_0x350985),_0x350985['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1500fc['defineComponents'](_0x1500fc),this['_defineLocale']();}['_defineLocale'](){const _0x352d89=this['editor']['config']['get']('uploadcare.locale'),_0x3a7b73=this['editor']['locale']['contentLanguage'];_0x352d89&&_0x1500fc['defineLocale'](_0x3a7b73,_0x352d89);}}class ii extends _0x3d5e1f{constructor(_0x40cbc1){super(_0x40cbc1);const t=_0x40cbc1['t'],_0xf3325a=this['bindTemplate'],_0x329711=new _0x27bc3f();_0x329711['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':[_0x329711,{'text':_0xf3325a['to']('imageUploadProgress',_0x4f0f74=>t('Loading\x20image...')+'\x20('+(_0x4f0f74||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 _0x3d5e1f{constructor(_0x1e5ce9){super(_0x1e5ce9);const t=_0x1e5ce9['t'];this['set']('errorType',null);const _0x19fe4a=new _0x24a979(_0x1e5ce9);_0x19fe4a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x19fe4a['withText']=!0x0,_0x19fe4a['class']='ck-button-action',_0x19fe4a['on']('execute',()=>{this['fire']('retry');}),_0x19fe4a['bind']('isVisible')['to'](this,'errorType',_0x1d93df=>'NotFound'!==_0x1d93df);const _0x3a1090=new _0x4523f8();_0x3a1090['content']=_0x485a3c,_0x3a1090['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x598521=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':[_0x3a1090,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x598521['to']('errorType',_0x37f6c4=>t('NotFound'!==_0x37f6c4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x19fe4a]},{'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 _0x3d5e1f{constructor(_0x4f6818,_0x37d52f){super(_0x4f6818);const _0x5f47de=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x37d52f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5f47de['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x442952,_0x4bf929,_0x11783c){super(_0x442952),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x442952),this['_errorView']=new ti(_0x442952),this['_editingView']=new ei(_0x442952,_0x11783c),this['_focusableView']=new _0x3d5e1f(_0x442952),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4bf929),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'],_0x510228=>{this['_addUploadcareImageEditorListeners'](_0x510228);});}),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'](_0x13f4a7,_0x3c8d2e){const _0x4fe80d='uc-cloud-image-editor',_0x3adca6=_0x13f4a7['querySelector'](_0x4fe80d);if(_0x3adca6)return _0x3c8d2e(_0x3adca6);const _0x14be83=new MutationObserver(_0x306ad3=>{const _0x244610=_0x306ad3['filter'](_0x5d34d4=>_0x5d34d4['target']===_0x13f4a7&&_0x5d34d4['addedNodes']['length']>0x0&&_0x5d34d4['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4fe80d);_0x244610['length']&&(_0x14be83['disconnect'](),_0x3c8d2e(_0x244610[0x0]['addedNodes'][0x0]));});_0x14be83['observe'](_0x13f4a7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x59e046){_0x59e046['addEventListener']('apply',_0x5e243d=>{this['fire']('apply',{'imageSrc':_0x5e243d['detail']['cdnUrl']});}),_0x59e046['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3eea9a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1c464b,_0x20c834,_0x5ee293){super(),this['_editor']=_0x1c464b,this['_dialog']=_0x20c834,this['_imageElement']=_0x5ee293,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 _0x4100a9=this['_imageElement'],_0x15c213=_0x4100a9['getAttribute']('uploadcareImageId'),_0x10517e=_0x4100a9['getAttribute']('src');if(_0x15c213)await this['_loadImageInfo'](_0x15c213,_0x10517e);else{if(this['_imageCache']['has'](_0x10517e)){const _0x2578b6=this['_imageCache']['get'](_0x10517e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2578b6['url'],this['imageDimension']=_0x2578b6['dimension'],this['imageId']=_0x2578b6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4ba50e}=this['_editor'],t=_0x4ba50e['t'],_0x2827df=new X(_0x4ba50e,this['imageStatus'],this['_attributes']);_0x2827df['bind']('status')['to'](this,'imageStatus'),_0x2827df['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2827df['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2827df['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2827df,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5b35e3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2827df,'position':_0x2214a5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2827df['focus']();},'onHide':()=>{_0x2827df['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2bddb8=>!M(_0x2bddb8,_0x2827df['element'])}});}['_loadImageInfo'](_0x3169fd,_0x36bee6){return j['getInfo'](_0x3169fd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3e4144=>{const {width:_0x2d4199,height:_0x4bca03}=_0x3e4144['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x36bee6,this['imageDimension']={'width':_0x2d4199,'height':_0x4bca03},this['imageId']=_0x3169fd;})['catch'](_0x56c1d5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x56c1d5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x40ed70,_0x308d86){return this['_getImageAsFile'](_0x40ed70)['then'](_0x12c8d2=>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':_0x308d86['signal'],'file':_0x12c8d2,'onProgress':_0xd5b57a=>{_0xd5b57a&&_0xd5b57a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xd5b57a['value']));}}))['then'](_0x37492a=>{const {width:_0x47aed4,height:_0xa0d6c6}=_0x37492a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x37492a['cdnUrl'],this['imageDimension']={'width':_0x47aed4,'height':_0xa0d6c6},this['imageId']=_0x37492a['uuid'],this['imageUploadProgress']=null;const _0x35110d=_0x40ed70['getAttribute']('src');this['_imageCache']['set'](_0x35110d,{'id':_0x37492a['uuid'],'url':_0x37492a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x19dc2c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x19dc2c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x8bde3e,_0x5be15e){_0x8bde3e['on']('apply',(_0x1a1642,_0x5053a4)=>{this['_replaceImage'](_0x5be15e,_0x5053a4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x8bde3e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x8bde3e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4be172,_0x21d5b1,_0x19dea5){const _0x5224f0=this['_editor'],{width:_0x342e24,height:_0x5c3038}=F(_0x21d5b1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3b21f7,imageSources:_0x44d119}=C(_0x21d5b1,_0x342e24);_0x5224f0['model']['change'](_0x3da9d5=>{if('$graveyard'===_0x4be172['root']['rootName']){_0x5224f0['execute']('insertImage',{'imageType':_0x4be172['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4be172['getAttributes']()),'uploadcareImageId':_0x19dea5,'src':_0x3b21f7,'sources':_0x44d119,'width':_0x342e24,'height':_0x5c3038}});const _0x4c99fa=_0x4be172['getChildren']();_0x4be172=_0x5224f0['model']['document']['selection']['getSelectedElement']();for(const _0x7dfadb of _0x4c99fa)_0x3da9d5['append'](_0x3da9d5['cloneElement'](_0x7dfadb),_0x4be172);}else _0x3da9d5['setSelection'](_0x4be172,'on'),_0x5224f0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4be172['getAttributes']()),'uploadcareImageId':_0x19dea5,'src':_0x3b21f7,'sources':_0x44d119,'width':_0x342e24,'height':_0x5c3038},_0x4be172);_0x3da9d5['setSelection'](_0x4be172,'on');});}async['_getImageAsFile'](_0x522f7f){const _0x443c9d=_0x354fb1['window'],_0x26923d=_0x354fb1['document']['location']['href'],_0xa9f5aa=new _0x443c9d['URL'](_0x522f7f['getAttribute']('src'),_0x26923d);if('data:'===_0xa9f5aa['protocol']){const _0x371836=_0xa9f5aa['href']['split'](','),_0x1f22de=_0x371836[0x0]['match'](/:(.*?);/)[0x1],_0x4c02ac=_0x1f22de['split']('/')[0x1],_0x521cc2=_0x443c9d['atob'](_0x371836[_0x371836['length']-0x1]);let _0x4ff6f2=_0x521cc2['length'];const _0x52086c=new _0x443c9d['Uint8Array'](_0x4ff6f2);for(;_0x4ff6f2--;)_0x52086c[_0x4ff6f2]=_0x521cc2['charCodeAt'](_0x4ff6f2);return new _0x443c9d['File']([_0x52086c],'image.'+_0x4c02ac,{'type':_0x1f22de});}const _0x18bda9=_0xa9f5aa['href']['split']('/'),_0x50fe35=_0x18bda9[_0x18bda9['length']-0x1],_0x5565f8=_0x50fe35['split']('.')[0x1];return _0x443c9d['fetch'](_0xa9f5aa['href'])['then'](_0x31513f=>_0x31513f['clone']()['blob']())['then'](_0x2b1eb0=>new _0x443c9d['File']([_0x2b1eb0],_0x50fe35,{'type':'image/'+_0x5565f8}));}}class N extends _0x44b713{['imageEditController'];static get['requires'](){return[_0x82f8a];}['_isEditable'];constructor(_0x21e12b){super(_0x21e12b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x21abd1){const _0x4c8077=R(_0x21abd1);return _0x55adac=>!(!_0x55adac||!_0x55adac['is']('element','imageBlock')&&!_0x55adac['is']('element','imageInline'))&&(!!_0x55adac['hasAttribute']('uploadcareImageId')||!!_0x55adac['hasAttribute']('src')&&_0x4c8077(_0x55adac['getAttribute']('src')));}(_0x21e12b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x36c6ae=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x36c6ae);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x38883e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x38883e&&(_0x38883e['is']('element','imageBlock')||_0x38883e['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x82f8a),_0x38883e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x44b713{['refresh'](){const _0x18e602=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x18e602&&(_0x18e602['is']('element','imageBlock')||_0x18e602['is']('element','imageInline')));}['execute'](_0x11b543){const _0x3c54e2=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3644ad=>{_0x3644ad['setAttributes'](_0x11b543,_0x3c54e2),_0x3644ad['removeAttribute']('srcset',_0x3c54e2),_0x3644ad['removeAttribute']('sizes',_0x3c54e2);});}}class m extends _0x57badb{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x516827,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5b6c32}=this;_0x5b6c32['commands']['add']('uploadcareImageEdit',new N(_0x5b6c32)),_0x5b6c32['commands']['add']('uploadcareImageReplace',new O(_0x5b6c32));}}class g extends _0x57badb{['_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 _0x4dc4dc=this['editor'];_0x4dc4dc['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3ca564=>{const _0x764012=_0x4dc4dc['commands']['get']('uploadcareImageEdit'),_0x5e86f1=new _0x24a979(_0x3ca564),t=_0x3ca564['t'];return _0x5e86f1['set']({'icon':_0x5b35e3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5e86f1['bind']('isEnabled')['to'](_0x764012),_0x5e86f1['bind']('isOn')['to'](_0x764012,'isActive'),this['listenTo'](_0x5e86f1,'execute',()=>{_0x4dc4dc['execute']('uploadcareImageEdit'),_0x4dc4dc['editing']['view']['focus']();}),_0x5e86f1;}),this['_initConfig']();}['_initConfig'](){const _0x478e14=_0x23faf0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x478e14),this['listenTo'](this['editor'],'destroy',()=>{_0x478e14['remove']();});}}class et extends _0x57badb{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,N 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':_0x1b7dd0=>0x1!=_0x1b7dd0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x31101c=>{const {af:{dictionary:_0x14d055,getPluralForm:_0x3934cf}}={'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':_0x59b9a9=>0x1!=_0x59b9a9}};_0x31101c['af']||={'dictionary':{},'getPluralForm':null},_0x31101c['af']['dictionary']=Object['assign'](_0x31101c['af']['dictionary'],_0x14d055),_0x31101c['af']['getPluralForm']=_0x3934cf;})(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':_0xcee33f=>0x0==_0xcee33f?0x0:0x1==_0xcee33f?0x1:0x2==_0xcee33f?0x2:_0xcee33f%0x64>=0x3&&_0xcee33f%0x64<=0xa?0x3:_0xcee33f%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x329dd2=>{const {ar:{dictionary:_0x5843c6,getPluralForm:_0x4cf7d3}}={'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':_0x423f4c=>0x0==_0x423f4c?0x0:0x1==_0x423f4c?0x1:0x2==_0x423f4c?0x2:_0x423f4c%0x64>=0x3&&_0x423f4c%0x64<=0xa?0x3:_0x423f4c%0x64>=0xb?0x4:0x5}};_0x329dd2['ar']||={'dictionary':{},'getPluralForm':null},_0x329dd2['ar']['dictionary']=Object['assign'](_0x329dd2['ar']['dictionary'],_0x5843c6),_0x329dd2['ar']['getPluralForm']=_0x4cf7d3;})(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':_0x41f3bc=>0x1!=_0x41f3bc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x494502=>{const {ast:{dictionary:_0x20ec69,getPluralForm:_0x436c94}}={'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':_0x965ece=>0x1!=_0x965ece}};_0x494502['ast']||={'dictionary':{},'getPluralForm':null},_0x494502['ast']['dictionary']=Object['assign'](_0x494502['ast']['dictionary'],_0x20ec69),_0x494502['ast']['getPluralForm']=_0x436c94;})(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':_0x46aebd=>0x1!=_0x46aebd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2169d9=>{const {az:{dictionary:_0x1715c8,getPluralForm:_0x350c06}}={'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':_0x6513b0=>0x1!=_0x6513b0}};_0x2169d9['az']||={'dictionary':{},'getPluralForm':null},_0x2169d9['az']['dictionary']=Object['assign'](_0x2169d9['az']['dictionary'],_0x1715c8),_0x2169d9['az']['getPluralForm']=_0x350c06;})(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':_0x3d6c90=>_0x3d6c90%0xa==0x1&&_0x3d6c90%0x64!=0xb?0x0:_0x3d6c90%0xa>=0x2&&_0x3d6c90%0xa<=0x4&&(_0x3d6c90%0x64<0xa||_0x3d6c90%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x49bc95=>{const {be:{dictionary:_0x41d916,getPluralForm:_0x5b5532}}={'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':_0x2cc016=>_0x2cc016%0xa==0x1&&_0x2cc016%0x64!=0xb?0x0:_0x2cc016%0xa>=0x2&&_0x2cc016%0xa<=0x4&&(_0x2cc016%0x64<0xa||_0x2cc016%0x64>=0x14)?0x1:0x2}};_0x49bc95['be']||={'dictionary':{},'getPluralForm':null},_0x49bc95['be']['dictionary']=Object['assign'](_0x49bc95['be']['dictionary'],_0x41d916),_0x49bc95['be']['getPluralForm']=_0x5b5532;})(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':_0x120586=>0x1!=_0x120586}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x13f249=>{const {bg:{dictionary:_0x45c2ea,getPluralForm:_0x1895da}}={'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':_0x296231=>0x1!=_0x296231}};_0x13f249['bg']||={'dictionary':{},'getPluralForm':null},_0x13f249['bg']['dictionary']=Object['assign'](_0x13f249['bg']['dictionary'],_0x45c2ea),_0x13f249['bg']['getPluralForm']=_0x1895da;})(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':_0xea6626=>0x1!=_0xea6626}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x388d1e=>{const {bn:{dictionary:_0x7235e9,getPluralForm:_0x4bc96c}}={'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':_0xaa6d4=>0x1!=_0xaa6d4}};_0x388d1e['bn']||={'dictionary':{},'getPluralForm':null},_0x388d1e['bn']['dictionary']=Object['assign'](_0x388d1e['bn']['dictionary'],_0x7235e9),_0x388d1e['bn']['getPluralForm']=_0x4bc96c;})(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':_0x30a02a=>_0x30a02a%0xa==0x1&&_0x30a02a%0x64!=0xb?0x0:_0x30a02a%0xa>=0x2&&_0x30a02a%0xa<=0x4&&(_0x30a02a%0x64<0xa||_0x30a02a%0x64>=0x14)?0x1:0x2}};
|