@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260122.0 → 0.0.0-nightly-20260123.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/lang/contexts.json +24 -0
- package/lang/translations/af.po +100 -0
- package/lang/translations/ar.po +100 -0
- package/lang/translations/ast.po +100 -0
- package/lang/translations/az.po +100 -0
- package/lang/translations/be.po +100 -0
- package/lang/translations/bg.po +100 -0
- package/lang/translations/bn.po +100 -0
- package/lang/translations/bs.po +100 -0
- package/lang/translations/ca.po +100 -0
- package/lang/translations/cs.po +100 -0
- package/lang/translations/da.po +100 -0
- package/lang/translations/de-ch.po +100 -0
- package/lang/translations/de.po +100 -0
- package/lang/translations/el.po +100 -0
- package/lang/translations/en-au.po +100 -0
- package/lang/translations/en-gb.po +100 -0
- package/lang/translations/en.po +100 -0
- package/lang/translations/eo.po +100 -0
- package/lang/translations/es-co.po +100 -0
- package/lang/translations/es.po +100 -0
- package/lang/translations/et.po +100 -0
- package/lang/translations/eu.po +100 -0
- package/lang/translations/fa.po +100 -0
- package/lang/translations/fi.po +100 -0
- package/lang/translations/fr.po +100 -0
- package/lang/translations/gl.po +100 -0
- package/lang/translations/gu.po +100 -0
- package/lang/translations/he.po +100 -0
- package/lang/translations/hi.po +100 -0
- package/lang/translations/hr.po +100 -0
- package/lang/translations/hu.po +100 -0
- package/lang/translations/hy.po +100 -0
- package/lang/translations/id.po +100 -0
- package/lang/translations/it.po +100 -0
- package/lang/translations/ja.po +100 -0
- package/lang/translations/jv.po +100 -0
- package/lang/translations/kk.po +100 -0
- package/lang/translations/km.po +100 -0
- package/lang/translations/kn.po +100 -0
- package/lang/translations/ko.po +100 -0
- package/lang/translations/ku.po +100 -0
- package/lang/translations/lt.po +100 -0
- package/lang/translations/lv.po +100 -0
- package/lang/translations/ms.po +100 -0
- package/lang/translations/nb.po +100 -0
- package/lang/translations/ne.po +100 -0
- package/lang/translations/nl.po +100 -0
- package/lang/translations/no.po +100 -0
- package/lang/translations/oc.po +100 -0
- package/lang/translations/pl.po +100 -0
- package/lang/translations/pt-br.po +100 -0
- package/lang/translations/pt.po +100 -0
- package/lang/translations/ro.po +100 -0
- package/lang/translations/ru.po +100 -0
- package/lang/translations/si.po +100 -0
- package/lang/translations/sk.po +100 -0
- package/lang/translations/sl.po +100 -0
- package/lang/translations/sq.po +100 -0
- package/lang/translations/sr-latn.po +100 -0
- package/lang/translations/sr.po +100 -0
- package/lang/translations/sv.po +100 -0
- package/lang/translations/th.po +100 -0
- package/lang/translations/ti.po +100 -0
- package/lang/translations/tk.po +100 -0
- package/lang/translations/tr.po +100 -0
- package/lang/translations/tt.po +100 -0
- package/lang/translations/ug.po +100 -0
- package/lang/translations/uk.po +100 -0
- package/lang/translations/ur.po +100 -0
- package/lang/translations/uz.po +100 -0
- package/lang/translations/vi.po +100 -0
- package/lang/translations/zh-cn.po +100 -0
- package/lang/translations/zh.po +100 -0
- package/package.json +46 -23
- package/src/augmentation.js +23 -0
- package/src/index.js +23 -0
- package/{dist → src}/ui/uploadcarecontroller.d.ts +3 -3
- package/src/ui/uploadcarecontroller.js +24 -0
- package/{dist → src}/ui/uploadcareformview.d.ts +1 -1
- package/src/ui/uploadcareformview.js +23 -0
- package/{dist → src}/uploadcare.d.ts +1 -1
- package/src/uploadcare.js +23 -0
- package/{dist → src}/uploadcarecommand.d.ts +2 -2
- package/src/uploadcarecommand.js +23 -0
- package/{dist → src}/uploadcareconfig.d.ts +1 -1
- package/src/uploadcareconfig.js +23 -0
- package/{dist → src}/uploadcareediting.d.ts +2 -2
- package/src/uploadcareediting.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +5 -5
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +24 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimageeditcommand.d.ts +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimageeditediting.d.ts +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimageeditui.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +23 -0
- package/{dist → src}/uploadcareimageedit.d.ts +1 -1
- package/src/uploadcareimageedit.js +23 -0
- package/{dist → src}/uploadcareui.d.ts +1 -1
- package/src/uploadcareui.js +23 -0
- package/{dist → src}/uploadcareuploadadapter.d.ts +2 -2
- package/src/uploadcareuploadadapter.js +23 -0
- package/src/utils/common-translations.js +23 -0
- package/{dist → src}/utils/dialogfocusmanagerview.d.ts +2 -2
- package/src/utils/dialogfocusmanagerview.js +23 -0
- package/src/utils/editingutils.js +23 -0
- package/src/utils/isancestor.js +23 -0
- package/src/utils/uploadutils.js +23 -0
- package/theme/uploadcare-form.css +201 -0
- package/theme/uploadcare-theme.css +20 -0
- package/theme/uploadcareimageedit.css +64 -0
- /package/{dist → src}/augmentation.d.ts +0 -0
- /package/{dist → src}/index.d.ts +0 -0
- /package/{dist → src}/utils/common-translations.d.ts +0 -0
- /package/{dist → src}/utils/editingutils.d.ts +0 -0
- /package/{dist → src}/utils/isancestor.d.ts +0 -0
- /package/{dist → src}/utils/uploadutils.d.ts +0 -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 _0x43e20b,Command as _0x2f742b}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xbdfff6,IconGooglePhotos as _0x26a327,IconGoogleDrive as _0x4261ae,IconFacebook as _0x292c7b,IconDropbox as _0x3a06bc,IconUploadcareLink as _0x1c614f,IconUploadcareImageUpload as _0x261f2a,IconError as _0x478afb,IconUploadcareImageEdit as _0x1e48c2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x547574,MenuBarMenuListItemButtonView as _0x3720a3,View as _0x3d7314,FocusCycler as _0x36389c,Dialog as _0x5a8c70,DialogViewPosition as _0x213fe5,SpinnerView as _0x8bc8c2,IconView as _0x58cd42,Notification as _0xd4ff4d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2bdf21,DomEmitterMixin as _0x2d4279,global as _0x4132cc,getAncestors as _0x584b86,ObservableMixin as _0x53f7df,uid as _0x45265f,createElement as _0x2598b2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2421b9}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x436e0a,info as _0x54e229}from'@uploadcare/upload-client';import*as _0x3b54fd from'@uploadcare/file-uploader';var S=function(_0x34de20){return _0x34de20['Local']='local',_0x34de20['URL']='url',_0x34de20['Dropbox']='dropbox',_0x34de20['GDrive']='gdrive',_0x34de20['Facebook']='facebook',_0x34de20['GPhotos']='gphotos',_0x34de20['OneDrive']='onedrive',_0x34de20;}({});function T(_0x4ce684,_0x5de1c6,_0x3c57cd){const t=_0x4ce684['t'],_0xf296cc=_0x4ce684['t'];switch(_0x5de1c6){case S['Local']:return{'text':_0xf296cc('Insert'===_0x3c57cd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xf296cc('From\x20computer')};case S['URL']:return{'text':'Insert'===_0x3c57cd?_0xf296cc('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xf296cc('Via\x20URL')};case S['Dropbox']:return{'text':t('Insert'===_0x3c57cd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case S['Facebook']:return{'text':t('Insert'===_0x3c57cd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case S['GDrive']:return{'text':t('Insert'===_0x3c57cd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case S['GPhotos']:return{'text':t('Insert'===_0x3c57cd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case S['OneDrive']:return{'text':t('Insert'===_0x3c57cd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5de1c6;}}class A extends _0x43e20b{['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 _0x47dd3b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x39e445;for(const _0x931a4a in _0x47dd3b){const _0x316257=_0x931a4a,_0x285a99=_0x47dd3b[_0x316257];if('uploadcareLicenseKeyValid'==_0x285a99||'uploadcareLicenseKeyInvalid'==_0x285a99||'uploadcareLicenseKeyExpired'==_0x285a99||'uploadcareLicenseKeyDomainLimit'==_0x285a99||'uploadcareLicenseKeyNotAllowed'==_0x285a99||'uploadcareLicenseKeyEvaluationLimit'==_0x285a99||'uploadcareLicenseKeyUsageLimit'==_0x285a99){delete _0x47dd3b[_0x316257],_0x39e445=_0x285a99,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x39e445&&_0x47dd3b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x39e445&&_0x47dd3b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x39e445&&_0x47dd3b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x39e445&&_0x47dd3b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x39e445&&_0x47dd3b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x39e445&&_0x47dd3b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x287ef9}=this,_0x19065d=_0x287ef9['commands']['get']('uploadcare');if(!_0x19065d)return;const _0x26ed02=this['_normalizeConfigSourceList'](_0x287ef9['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3fbbfe,_0x1acbae)=>{const _0x2db2f6=this['_getIntegrationKey'](_0x1acbae['type']);return _0x3fbbfe[_0x2db2f6]||(_0x3fbbfe[_0x2db2f6]=[]),_0x3fbbfe[_0x2db2f6]['push'](_0x1acbae),_0x3fbbfe;},{});_0x287ef9['plugins']['has']('ImageInsertUI')&&_0x287ef9['commands']['get']('uploadcare')&&Object['entries'](_0x26ed02)['forEach'](([_0x32d7a8,_0x5f41c8])=>{_0x287ef9['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x32d7a8,'observable':()=>_0x19065d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5f41c8),'formViewCreator':()=>this['_createDropdownButtons'](_0x5f41c8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5f41c8),'override':'assetManager'!==_0x32d7a8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2dbc37){const {locale:_0x5de33b}=this['editor'];return _0x2dbc37['map'](_0x58ca97=>{const _0x317667=T(_0x5de33b,_0x58ca97,'Insert');switch(_0x58ca97){case S['Local']:return{'icon':_0x261f2a,'type':S['Local'],..._0x317667};case S['URL']:return{'icon':_0x1c614f,'type':S['URL'],..._0x317667};case S['Dropbox']:return{'icon':_0x3a06bc,'type':S['Dropbox'],..._0x317667};case S['Facebook']:return{'icon':_0x292c7b,'type':S['Facebook'],..._0x317667};case S['GDrive']:return{'icon':_0x4261ae,'type':S['GDrive'],..._0x317667};case S['GPhotos']:return{'icon':_0x26a327,'type':S['GPhotos'],..._0x317667};case S['OneDrive']:return{'icon':_0xbdfff6,'type':S['OneDrive'],..._0x317667};}});}['_getIntegrationKey'](_0x2690fa){switch(_0x2690fa){case S['Local']:return'upload';case S['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x51c49b,_0x196e4e){const _0x50ddbd=this['editor'],_0x585c43=new _0x51c49b(_0x50ddbd['locale']),_0x3d9aa5=_0x50ddbd['commands']['get']('uploadcare');return _0x585c43['bind']('isEnabled')['to'](_0x3d9aa5),_0x585c43['on']('execute',()=>{_0x3d9aa5['execute'](_0x196e4e);}),_0x585c43;}['_createToolbarButton'](_0x1a6e05){const {locale:_0x304c8c}=this['editor'],_0x1cd32a=this['editor']['plugins']['get']('ImageInsertUI'),_0x3c626b=_0x1a6e05[0x0],_0x46f968=this['_createButton'](_0x547574,_0x3c626b['type']);return _0x46f968['icon']=_0x3c626b['icon'],_0x46f968['bind']('label')['to'](_0x1cd32a,'isImageSelected',_0x4991d0=>T(_0x304c8c,_0x3c626b['type'],_0x4991d0?'Replace':'Insert')['text']),_0x46f968['tooltip']=!0x0,_0x46f968;}['_createDropdownButtons'](_0x8c7027){const {locale:_0x591234}=this['editor'],_0x3b68c4=this['editor']['plugins']['get']('ImageInsertUI');return _0x8c7027['map'](_0x20e3c0=>{const _0x2eba0d=this['_createButton'](_0x547574,_0x20e3c0['type']);return _0x2eba0d['withText']=!0x0,_0x2eba0d['icon']=_0x20e3c0['icon'],_0x2eba0d['bind']('label')['to'](_0x3b68c4,'isImageSelected',_0x41dd70=>T(_0x591234,_0x20e3c0['type'],_0x41dd70?'Replace':'Insert')['text']),_0x2eba0d;});}['_createMenuBarButtons'](_0x70db8e){return _0x70db8e['map'](_0x259903=>{const _0x159c0e=this['_createButton'](_0x3720a3,_0x259903['type']);return _0x159c0e['icon']=_0x259903['icon'],_0x159c0e['label']=_0x259903['shortText'],_0x159c0e;});}}class K extends _0x3d7314{['focusTracker'];['focusCycler'];constructor(_0x40f998){super(_0x40f998),this['focusTracker']=new _0x2bdf21(),this['focusCycler']=new _0x36389c({'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(_0x3b0628,_0x1943f1){super(_0x3b0628),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-'+_0x1943f1}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function D(_0x52bb8f,_0x2f504b){const _0x3957ca=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1066d3=>_0x1066d3<=_0x2f504b)['map'](_0x1c29ef=>_0x52bb8f['replace'](/\/$/,'')+'/-/resize/'+_0x1c29ef+'x/\x20'+_0x1c29ef+'w');return{'imageFallbackUrl':_0x52bb8f,'imageSources':[{'srcset':_0x3957ca['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2f504b+'px)\x20100vw,\x20'+_0x2f504b+'px','type':'image/webp'}]};}function F(_0x3fc848,_0x48317d,_0x5efb28){const _0x57da1d=_0x3fc848['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x57da1d?parseInt(_0x57da1d[0x1],0xa):_0x48317d,'height':_0x57da1d?parseInt(_0x57da1d[0x2],0xa):_0x5efb28};}function $(_0x48f6af,_0x4e6a7f){const _0x4b7283=new(_0x2d4279())(),_0x289e1b=_0x48f6af['plugins']['get']('ImageUtils'),_0x3ebd89=_0x48f6af['editing']['mapper']['toViewElement'](_0x4e6a7f),_0x3dfe07=_0x289e1b['findViewImgElement'](_0x3ebd89),_0x7f2c1=_0x48f6af['editing']['view']['domConverter']['viewToDom'](_0x3dfe07),_0x1b045f=_0x4e6a7f['getAttribute']('width'),_0x5938b0=_0x4e6a7f['getAttribute']('height'),_0x529a72='image-processing';_0x48f6af['editing']['view']['change'](_0x13d49a=>{_0x13d49a['addClass'](_0x529a72,_0x3ebd89),_0x13d49a['setStyle']('aspect-ratio',_0x1b045f+'/'+_0x5938b0,_0x3dfe07);}),_0x4b7283['listenTo'](_0x7f2c1,'load',()=>{_0x4b7283['stopListening'](_0x7f2c1,'load'),_0x48f6af['editing']['view']['change'](_0xaab154=>{_0xaab154['removeClass'](_0x529a72,_0x3ebd89),_0xaab154['removeStyle']('aspect-ratio',_0x3dfe07);});});}function B(_0x2d7a79){if(Array['isArray'](_0x2d7a79)){const _0x236ff7=_0x2d7a79['map'](B);return _0x30dc82=>_0x236ff7['some'](_0x1be483=>_0x1be483(_0x30dc82));}if('origin'==_0x2d7a79){const _0x37e8be=_0x4132cc['window']['location']['origin'];return _0x58d1e4=>new URL(_0x58d1e4,_0x4132cc['document']['baseURI'])['origin']==_0x37e8be;}return'function'==typeof _0x2d7a79?_0x2d7a79:_0x2d7a79 instanceof RegExp?_0x51d80b=>!(!_0x51d80b['match'](_0x2d7a79)&&!_0x51d80b['replace'](/^https?:\/\//,'')['match'](_0x2d7a79)):()=>!0x1;}function V(_0x41e69f,_0x393df0){return _0x584b86(_0x41e69f['target'])['includes'](_0x393df0);}class j extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x53f7df(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2702ed,_0x1dfdf6,_0x14cc4f){super(),this['_editor']=_0x2702ed,this['_editing']=_0x1dfdf6,this['_dialog']=_0x2702ed['plugins']['get'](_0x5a8c70),this['_api']=_0x1dfdf6['ctxElement']['getAPI'](),this['_type']=_0x14cc4f,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:_0x407141,model:_0x1b8819}=this['_editor'],_0x19d049=_0x1b8819['document']['selection']['getSelectedElement'](),_0x2d0001=_0x19d049&&(_0x19d049['is']('element','imageBlock')||_0x19d049['is']('element','imageInline'));this['_formView']=new O(_0x407141,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x261f2a,'title':T(_0x407141,this['_type'],_0x2d0001?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x213fe5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x522fec=>!V(_0x522fec,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x23dfa3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4cc304=>{const _0x374db9=_0x23dfa3['length'];for(const _0x4ca2a6 of _0x23dfa3){const _0x28398a=_0x4ca2a6===_0x23dfa3[_0x374db9-0x1],{cdnUrl:_0x2fb809,fileInfo:_0x4d1168}=_0x4ca2a6;if(!_0x2fb809||!_0x4d1168)continue;const {width:_0x5abad6,height:_0x3814cc}=_0x4d1168['imageInfo'],_0x3dd36e=F(_0x2fb809,_0x5abad6,_0x3814cc),_0x10f820=D(_0x2fb809,_0x3dd36e['width']),_0x2ec16b={'id':_0x4d1168['uuid'],'type':'image','attributes':{'imageDimension':_0x3dd36e,..._0x10f820}};this['_insertAsset'](_0x2ec16b,_0x28398a,_0x4cc304);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x371fe9=>{'idle'===_0x371fe9['detail']['status']&&!_0x371fe9['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===S['Local']?this['_api']['setCurrentActivity'](S['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x28cb36,_0x5bc6e0,_0x20a1ee){const _0x548f94=this['_editor']['model']['document']['selection'],_0x71ee69=_0x548f94['getSelectedElement'](),_0x5b9730=!(!_0x71ee69||!_0x71ee69['is']('element','imageInline'));_0x20a1ee['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x28cb36,_0x5b9730),_0x5bc6e0||_0x20a1ee['setSelection'](_0x548f94['getLastPosition']());}['_insertImage'](_0x1403db,_0x180757){const _0x463374=this['_editor'],{imageDimension:_0x441d14,imageFallbackUrl:_0xa4c5dd,imageSources:_0x1516c3}=_0x1403db['attributes'];_0x463374['execute']('insertImage',{'imageType':_0x180757?'imageInline':null,'source':{'uploadcareImageId':_0x1403db['id'],'src':_0xa4c5dd,'sources':_0x1516c3,..._0x441d14}});}}class M extends _0x2f742b{['_editing'];['_controller']=null;static get['requires'](){return[_0x5a8c70,z];}constructor(_0x4d948e){super(_0x4d948e),this['_editing']=_0x4d948e['plugins']['get'](z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1085be){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new j(this['editor'],this['_editing'],_0x1085be);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class q{static['upload']({file:_0x4fc0df,..._0x42563e}){return _0x436e0a(_0x4fc0df,_0x42563e);}static['getInfo'](_0x5e6210,_0x113f67){return _0x54e229(_0x5e6210,_0x113f67);}}class W extends _0x43e20b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2421b9,z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2fec51=this['editor'];if(!!!_0x2fec51['config']['get']('uploadcare'))return;_0x2fec51['plugins']['get'](_0x2421b9)['createUploadAdapter']=_0x1c3533=>new G(_0x1c3533,_0x2fec51),_0x2fec51['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x42a795,{imageElement:_0x248f73,data:_0x2f6c8a})=>{_0x2fec51['model']['change'](_0x5e3ad5=>{_0x5e3ad5['setAttribute']('uploadcareImageId',_0x2f6c8a['uploadcareImageId'],_0x248f73);});});}}class G{['loader'];['editor'];['controller'];constructor(_0x4feb,_0x20928c){this['loader']=_0x4feb,this['editor']=_0x20928c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x27250c=await this['loader']['file'];return q['upload']({'file':_0x27250c,'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':_0x1b431c=>{_0x1b431c&&_0x1b431c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1b431c['value']);}})['then'](async _0x38c985=>{const {imageFallbackUrl:_0x42f1ca,imageSources:_0x3693ef}=D(_0x38c985['cdnUrl'],_0x38c985['imageInfo']['width']);return{'uploadcareImageId':_0x38c985['uuid'],'default':_0x42f1ca,'sources':_0x3693ef};})['catch'](()=>{const _0x2b70dc=t('Cannot\x20upload\x20file:')+('\x20'+_0x27250c['name']+'.');return Promise['reject'](_0x2b70dc);});}['abort'](){this['controller']['abort']();}}class z extends _0x43e20b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',W,_0x5a8c70];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4df0fd){super(_0x4df0fd),this['ucContextId']=_0x45265f();}['init'](){const _0x436b8a=this['editor'];_0x436b8a['commands']['add']('uploadcare',new M(_0x436b8a));}['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 _0xacdb3d=_0x4132cc['document']['querySelector']('input[uploadcare-file-input]');_0xacdb3d&&_0xacdb3d['remove']();}),async function(_0x237220){const _0x1d6b9a=_0x127d57([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]),_0x2c3ea4=0x535f8c3a,_0x1d1322=0x5358f3b2^_0x2c3ea4,_0x171b27=window[_0x127d57([0x44,0x61,0x74,0x65])][_0x127d57([0x6e,0x6f,0x77])](),_0x109a93=_0x237220[_0x127d57([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x246ed7=new window[(_0x127d57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bd47c=>{_0x109a93[_0x127d57([0x6f,0x6e,0x63,0x65])](_0x127d57([0x72,0x65,0x61,0x64,0x79]),_0x4bd47c);}),_0x254fde={[_0x127d57([0x6b,0x74,0x79])]:_0x127d57([0x45,0x43]),[_0x127d57([0x75,0x73,0x65])]:_0x127d57([0x73,0x69,0x67]),[_0x127d57([0x63,0x72,0x76])]:_0x127d57([0x50,0x2d,0x32,0x35,0x36]),[_0x127d57([0x78])]:_0x127d57([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]),[_0x127d57([0x79])]:_0x127d57([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]),[_0x127d57([0x61,0x6c,0x67])]:_0x127d57([0x45,0x53,0x32,0x35,0x36])},_0x940414=_0x109a93[_0x127d57([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x127d57([0x67,0x65,0x74])](_0x127d57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4edbd7(){let _0x1b0a56,_0x44055a=null,_0x389183=null;try{if(_0x940414==_0x127d57([0x47,0x50,0x4c]))return _0x127d57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b0a56=_0x43d55e(),!_0x1b0a56)return _0x127d57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b0a56[_0x127d57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x389183=_0x497de2(_0x1b0a56[_0x127d57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b0a56[_0x127d57([0x6a,0x74,0x69])])),await _0x2891fb()?_0x4af91e()?_0x27076a()?_0x127d57([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c79ce()?(_0x1b0a56[_0x127d57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x127d57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x44055a=_0x3e400d(_0x127d57([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x6ac0f9()):_0x127d57([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x127d57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x127d57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x127d57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x27076a(){const _0x4f900e=[_0x127d57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x127d57([0x74,0x72,0x69,0x61,0x6c])][_0x127d57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b0a56[_0x127d57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x171b27/0x3e8:0xe10*_0x1d1322;return _0x1b0a56[_0x127d57([0x65,0x78,0x70])]<_0x4f900e;}function _0x4af91e(){const _0x5b823f=_0x1b0a56[_0x127d57([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5b823f&&(!!_0x5b823f[_0x127d57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x127d57([0x2a]))||!!_0x5b823f[_0x127d57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x127d57([0x55,0x50,0x4c,0x43])));}function _0x2c79ce(){const _0xf3693c=_0x1b0a56[_0x127d57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf3693c||0x0==_0xf3693c[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x38522e}=new URL(window[_0x127d57([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xf3693c[_0x127d57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38522e))return!0x0;const _0x36994d=_0x38522e[_0x127d57([0x73,0x70,0x6c,0x69,0x74])](_0x127d57([0x2e]));return _0xf3693c[_0x127d57([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a4960=>_0x1a4960[_0x127d57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x127d57([0x2a])))[_0x127d57([0x6d,0x61,0x70])](_0x506e5b=>_0x506e5b[_0x127d57([0x73,0x70,0x6c,0x69,0x74])](_0x127d57([0x2e])))[_0x127d57([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43d55c=>_0x43d55c[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x36994d[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x127d57([0x6d,0x61,0x70])](_0x40586a=>Array(_0x36994d[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x40586a[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x127d57([0x66,0x69,0x6c,0x6c])](_0x40586a[0x0]===_0x127d57([0x2a])?_0x127d57([0x2a]):'')[_0x127d57([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x40586a))[_0x127d57([0x73,0x6f,0x6d,0x65])](_0x51cf0b=>_0x36994d[_0x127d57([0x65,0x76,0x65,0x72,0x79])]((_0x34c662,_0x16e165)=>_0x51cf0b[_0x16e165]===_0x34c662||_0x51cf0b[_0x16e165]===_0x127d57([0x2a])));}function _0x6ac0f9(){return _0x44055a&&_0x389183?new window[(_0x127d57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53ac22,_0x308347)=>{_0x44055a[_0x127d57([0x74,0x68,0x65,0x6e])](_0x53ac22,_0x308347),_0x389183[_0x127d57([0x74,0x68,0x65,0x6e])](_0x3c3309=>{_0x3c3309!=_0x127d57([0x56,0x61,0x6c,0x69,0x64])&&_0x53ac22(_0x3c3309);},_0x308347);}):_0x44055a||_0x389183||_0x127d57([0x56,0x61,0x6c,0x69,0x64]);}}function _0x497de2(_0x1f52fe,_0x99f08){return new window[(_0x127d57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c7c25=>{if(_0x518f25())return _0x2c7c25(_0x127d57([0x56,0x61,0x6c,0x69,0x64]));_0x1bf1cf(),_0x109a93[_0x127d57([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x127d57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x31e3f0=!0x1;const _0xaa9807=_0x45265f();function _0x23b64e(_0x522859){return!!_0x522859&&(typeof _0x522859===_0x127d57([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x522859===_0x127d57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x522859[_0x127d57([0x74,0x68,0x65,0x6e])]===_0x127d57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x522859[_0x127d57([0x63,0x61,0x74,0x63,0x68])]===_0x127d57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x37c506(_0x418d60){_0x26ead0(_0x418d60)[_0x127d57([0x74,0x68,0x65,0x6e])](_0x31ad6d=>{if(!_0x31ad6d||_0x31ad6d[_0x127d57([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x127d57([0x6f,0x6b]))return _0x127d57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4326ce(_0x465325(_0xaa9807+_0x99f08))!=_0x31ad6d[_0x127d57([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x127d57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x127d57([0x56,0x61,0x6c,0x69,0x64]);})[_0x127d57([0x74,0x68,0x65,0x6e])](_0x330c6e=>(_0x150dec(),_0x330c6e),()=>{const _0x498e81=_0x33e8aa();return null==_0x498e81?(_0x150dec(),_0x127d57([0x56,0x61,0x6c,0x69,0x64])):_0x127d57(_0x171b27-_0x498e81>(0x7753083a^_0x2c3ea4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x127d57([0x74,0x68,0x65,0x6e])](_0x2c7c25)[_0x127d57([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2c7c25(_0x127d57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x111e1b=0x536962ba^_0x2c3ea4;function _0x150dec(){const _0x310a15=_0x127d57([0x6c,0x6c,0x63,0x74,0x2d])+_0x4326ce(_0x465325(_0x1f52fe)),_0x52259c=_0x3949c4(_0x4326ce(window[_0x127d57([0x4d,0x61,0x74,0x68])][_0x127d57([0x63,0x65,0x69,0x6c])](_0x171b27/_0x111e1b)));window[_0x127d57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x127d57([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x310a15,_0x52259c);}function _0x33e8aa(){const _0x2bc4b2=_0x127d57([0x6c,0x6c,0x63,0x74,0x2d])+_0x4326ce(_0x465325(_0x1f52fe)),_0x408416=window[_0x127d57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x127d57([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2bc4b2);return _0x408416?window[_0x127d57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3949c4(_0x408416),0x10)*_0x111e1b:null;}function _0x26ead0(_0x39a286){return new window[(_0x127d57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5dc8cb,_0x4f0cbb)=>{_0x39a286[_0x127d57([0x74,0x68,0x65,0x6e])](_0x5dc8cb,_0x4f0cbb),window[_0x127d57([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f0cbb,0x535e58fa^_0x2c3ea4);});}}_0x109a93[_0x127d57([0x6f,0x6e])](_0x127d57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5baeb3,_0x185686)=>{if(_0x185686[0x0]!=_0x1f52fe)return _0x2c7c25(_0x127d57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x185686[0x1]={..._0x185686[0x1],[_0x127d57([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xaa9807};},{[_0x127d57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x127d57([0x68,0x69,0x67,0x68])}),_0x109a93[_0x127d57([0x6f,0x6e])](_0x127d57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x39d5fc=>{_0x23b64e(_0x39d5fc[_0x127d57([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x31e3f0=!0x0,_0x37c506(_0x39d5fc[_0x127d57([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x127d57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x127d57([0x6c,0x6f,0x77])}),_0x246ed7[_0x127d57([0x74,0x68,0x65,0x6e])](()=>{_0x31e3f0||_0x2c7c25(_0x127d57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x518f25(){return _0x109a93[_0x127d57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x127d57([0x76,0x69,0x65,0x77])][_0x127d57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x127d57([0x61,0x75,0x74,0x6f]);}function _0x1bf1cf(){_0x109a93[_0x127d57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x127d57([0x76,0x69,0x65,0x77])][_0x127d57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x127d57([0x61,0x75,0x74,0x6f]);}}function _0x3e400d(_0x34ccd2){const _0x26bb02=[new window[(_0x127d57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x76f07c=>setTimeout(_0x76f07c,0x5356b2f6^_0x2c3ea4)),_0x246ed7[_0x127d57([0x74,0x68,0x65,0x6e])](()=>new window[(_0x127d57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54df2d=>{let _0x102149=0x0;_0x109a93[_0x127d57([0x6d,0x6f,0x64,0x65,0x6c])][_0x127d57([0x6f,0x6e])](_0x127d57([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26e4fd,_0x437f0d)=>{_0x437f0d[0x0][_0x127d57([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x102149++,_0x102149==(0x535f89d2^_0x2c3ea4)&&(_0x54df2d(),_0x26e4fd[_0x127d57([0x6f,0x66,0x66])]());});}))];return window[_0x127d57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x127d57([0x72,0x61,0x63,0x65])](_0x26bb02)[_0x127d57([0x74,0x68,0x65,0x6e])](()=>_0x34ccd2);}async function _0x4b831f(){await _0x246ed7,_0x109a93[_0x127d57([0x6d,0x6f,0x64,0x65,0x6c])][_0x127d57([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x307ae3,_0x109a93[_0x127d57([0x6d,0x6f,0x64,0x65,0x6c])][_0x127d57([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x307ae3,_0x109a93[_0x127d57([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x127d57([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5018cf(_0x1375f1){const _0x24c118=_0x142d56();_0x109a93[_0x24c118]=_0x127d57([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1375f1,_0x1375f1!=_0x127d57([0x56,0x61,0x6c,0x69,0x64])&&_0x4b831f();}function _0x142d56(){const _0x4e6c5b=window[_0x127d57([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x127d57([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x127d57([0x6e,0x6f,0x77])]())[_0x127d57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x127d57([0x2e]),'');let _0x314f88=_0x127d57([0x68]);for(let _0x363c92=0x0;_0x363c92<_0x4e6c5b[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x363c92+=0x2){let _0x569dd7=window[_0x127d57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e6c5b[_0x127d57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x363c92,_0x363c92+0x2));_0x569dd7>=_0x1d6b9a[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x569dd7-=_0x1d6b9a[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x314f88+=_0x1d6b9a[_0x569dd7];}return _0x314f88;}function _0x43d55e(){const _0x56ff02=_0x940414[_0x127d57([0x73,0x70,0x6c,0x69,0x74])](_0x127d57([0x2e]));if(0x3!=_0x56ff02[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x19beeb(_0x56ff02[0x1]);function _0x19beeb(_0x15290e){const _0x3ca921=_0x3a7475(_0x15290e);return _0x3ca921&&_0x1f3c1a()?_0x3ca921:null;function _0x1f3c1a(){const _0x2250d2=_0x3ca921[_0x127d57([0x6a,0x74,0x69])],_0x3180c7=window[_0x127d57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2250d2[_0x127d57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2250d2[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e3427={..._0x3ca921,[_0x127d57([0x6a,0x74,0x69])]:_0x2250d2[_0x127d57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2250d2[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e3427[_0x127d57([0x76,0x63])],_0x465325(_0x3e3427)==_0x3180c7;}}}async function _0x2891fb(){let _0x339d38=!0x0;try{const _0x5c75c3=_0x940414[_0x127d57([0x73,0x70,0x6c,0x69,0x74])](_0x127d57([0x2e])),[_0x5a64b6,_0x24ed69,_0x217150]=_0x5c75c3;return _0x5482f9(_0x5a64b6),await _0xefe2e2(_0x5a64b6,_0x24ed69,_0x217150),_0x339d38;}catch{return!0x1;}function _0x5482f9(_0x187333){const _0x1196cb=_0x3a7475(_0x187333);_0x1196cb&&_0x1196cb[_0x127d57([0x61,0x6c,0x67])]==_0x127d57([0x45,0x53,0x32,0x35,0x36])||(_0x339d38=!0x1);}async function _0xefe2e2(_0x51a16e,_0x228dd9,_0x161a56){const _0xb55cc4=window[_0x127d57([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x127d57([0x66,0x72,0x6f,0x6d])](_0x38b7ff(_0x161a56),_0x16f7f8=>_0x16f7f8[_0x127d57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35858b=new window[(_0x127d57([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x127d57([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51a16e+_0x127d57([0x2e])+_0x228dd9),_0x1d49d3=window[_0x127d57([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x127d57([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d49d3)return;const _0xe7888b=await _0x1d49d3[_0x127d57([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x127d57([0x6a,0x77,0x6b]),_0x254fde,{[_0x127d57([0x6e,0x61,0x6d,0x65])]:_0x127d57([0x45,0x43,0x44,0x53,0x41]),[_0x127d57([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x127d57([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x127d57([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d49d3[_0x127d57([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x127d57([0x6e,0x61,0x6d,0x65])]:_0x127d57([0x45,0x43,0x44,0x53,0x41]),[_0x127d57([0x68,0x61,0x73,0x68])]:{[_0x127d57([0x6e,0x61,0x6d,0x65])]:_0x127d57([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe7888b,_0xb55cc4,_0x35858b)||(_0x339d38=!0x1);}}function _0x3a7475(_0xbc075f){return _0xbc075f[_0x127d57([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x127d57([0x65,0x79]))?JSON[_0x127d57([0x70,0x61,0x72,0x73,0x65])](_0x38b7ff(_0xbc075f)):null;}function _0x38b7ff(_0x590a6c){return window[_0x127d57([0x61,0x74,0x6f,0x62])](_0x590a6c[_0x127d57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x127d57([0x2b]))[_0x127d57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x127d57([0x2f])));}function _0x465325(_0x1ff298){let _0x91ccd1=0x1505;function _0x12d86e(_0x403076){for(let _0x38f4ba=0x0;_0x38f4ba<_0x403076[_0x127d57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38f4ba++){const _0x2eaef8=_0x403076[_0x127d57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x38f4ba);_0x91ccd1=(_0x91ccd1<<0x5)+_0x91ccd1+_0x2eaef8,_0x91ccd1&=_0x91ccd1;}}function _0x4d6ee7(_0xf67b4c){Array[_0x127d57([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf67b4c)?_0xf67b4c[_0x127d57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4d6ee7):_0xf67b4c&&typeof _0xf67b4c==_0x127d57([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x127d57([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf67b4c)[_0x127d57([0x73,0x6f,0x72,0x74])]()[_0x127d57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1f3709,_0x139257])=>{_0x12d86e(_0x1f3709),_0x4d6ee7(_0x139257);}):_0x12d86e(window[_0x127d57([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf67b4c));}return _0x4d6ee7(_0x1ff298),_0x91ccd1>>>0x0;}function _0x4326ce(_0x27a38c){return _0x27a38c[_0x127d57([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x127d57([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x127d57([0x30]));}function _0x3949c4(_0x3595ae){return _0x3595ae[_0x127d57([0x73,0x70,0x6c,0x69,0x74])]('')[_0x127d57([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x127d57([0x6a,0x6f,0x69,0x6e])]('');}function _0x307ae3(){}function _0x127d57(_0x35fa4e){return _0x35fa4e['map'](_0x31fe53=>String['fromCharCode'](_0x31fe53))['join']('');}_0x5018cf(await _0x4edbd7());}(this);}['_initSchema'](){const _0x410c0b=this['editor']['model']['schema'];_0x410c0b['isRegistered']('imageBlock')&&_0x410c0b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x410c0b['isRegistered']('imageInline')&&_0x410c0b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3ab3ed=this['editor'];_0x3ab3ed['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3ab3ed['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5ecbdb=>_0x5ecbdb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x30afab=_0x3ab3ed['commands']['get']('replaceImageSource');_0x30afab&&this['listenTo'](_0x30afab,'cleanupImage',(_0x5084ff,[_0x33074d,_0x488004])=>{_0x33074d['removeAttribute']('uploadcareImageId',_0x488004);});}['_initConfig'](){const _0x54cac7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x243e21=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2598b2(_0x4132cc['document'],'uc-config',{..._0x54cac7,'pubkey':_0x243e21,'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']=_0x8c131b=>{if('closeMax'==_0x8c131b)return'#uc-icon-arrow-down';},_0x4132cc['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2598b2(_0x4132cc['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4132cc['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1ac574=this['editor']['commands']['get']('insertImage');_0x1ac574&&this['listenTo'](_0x1ac574,'execute',()=>{const _0xf2d5e5=this['editor']['model']['document']['selection']['getSelectedElement']();_0xf2d5e5&&_0xf2d5e5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0xf2d5e5);});});const _0x21be1a=this['editor']['commands']['get']('uploadcareImageReplace');_0x21be1a&&this['listenTo'](_0x21be1a,'execute',()=>{const _0x357f13=this['editor']['model']['document']['selection']['getSelectedElement']();_0x357f13&&_0x357f13['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x357f13);});});}}class H extends _0x43e20b{static get['requires'](){return[z,A];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44d618){super(_0x44d618),_0x44d618['config']['define']('uploadcare.uploader.sourceList',[S['Local'],S['URL']]),_0x3b54fd['defineComponents'](_0x3b54fd),this['_defineLocale']();}['_defineLocale'](){const _0x349af6=this['editor']['config']['get']('uploadcare.locale'),_0xe7a2c8=this['editor']['locale']['contentLanguage'];_0x349af6&&_0x3b54fd['defineLocale'](_0xe7a2c8,_0x349af6);}}class J extends _0x3d7314{constructor(_0x517114){super(_0x517114);const t=_0x517114['t'],_0x371a99=this['bindTemplate'],_0x5a07ef=new _0x8bc8c2();_0x5a07ef['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':[_0x5a07ef,{'text':_0x371a99['to']('imageUploadProgress',_0x5d8b95=>t('Loading\x20image...')+'\x20('+(_0x5d8b95||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 _0x3d7314{constructor(_0x4ee6e4){super(_0x4ee6e4);const t=_0x4ee6e4['t'];this['set']('errorType',null);const _0x5f55d8=new _0x547574(_0x4ee6e4);_0x5f55d8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5f55d8['withText']=!0x0,_0x5f55d8['class']='ck-button-action',_0x5f55d8['on']('execute',()=>{this['fire']('retry');}),_0x5f55d8['bind']('isVisible')['to'](this,'errorType',_0x4abac2=>'NotFound'!==_0x4abac2);const _0x2ac208=new _0x58cd42();_0x2ac208['content']=_0x478afb,_0x2ac208['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x32d0d6=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':[_0x2ac208,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x32d0d6['to']('errorType',_0x64e0c3=>t('NotFound'!==_0x64e0c3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5f55d8]},{'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 _0x3d7314{constructor(_0x398fa0,_0x49d0a4){super(_0x398fa0);const _0x28a7a3=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x49d0a4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x28a7a3['to']('imageSrc')}});}}class X extends K{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2df046,_0x394dd3,_0x34bf6d){super(_0x2df046),this['_items']=this['createCollection'](),this['_loadingView']=new J(_0x2df046),this['_errorView']=new Z(_0x2df046),this['_editingView']=new Q(_0x2df046,_0x34bf6d),this['_focusableView']=new _0x3d7314(_0x2df046),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x394dd3),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'],_0x3b8cf0=>{this['_addUploadcareImageEditorListeners'](_0x3b8cf0);});}),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'](_0x5bb6bc,_0x2a9b77){const _0x4a6d81='uc-cloud-image-editor',_0x21aa50=_0x5bb6bc['querySelector'](_0x4a6d81);if(_0x21aa50)return _0x2a9b77(_0x21aa50);const _0x2bc14d=new MutationObserver(_0x3f38d8=>{const _0x9b1606=_0x3f38d8['filter'](_0x295031=>_0x295031['target']===_0x5bb6bc&&_0x295031['addedNodes']['length']>0x0&&_0x295031['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4a6d81);_0x9b1606['length']&&(_0x2bc14d['disconnect'](),_0x2a9b77(_0x9b1606[0x0]['addedNodes'][0x0]));});_0x2bc14d['observe'](_0x5bb6bc,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x105e9e){_0x105e9e['addEventListener']('apply',_0xc2adc8=>{this['fire']('apply',{'imageSrc':_0xc2adc8['detail']['cdnUrl']});}),_0x105e9e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Y extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x53f7df(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2ed0d6,_0x246be1,_0x4b154e){super(),this['_editor']=_0x2ed0d6,this['_dialog']=_0x246be1,this['_imageElement']=_0x4b154e,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 _0x4036c2=this['_imageElement'],_0x1f1dc3=_0x4036c2['getAttribute']('uploadcareImageId'),_0x4fe454=_0x4036c2['getAttribute']('src');if(_0x1f1dc3)await this['_loadImageInfo'](_0x1f1dc3,_0x4fe454);else{if(this['_imageCache']['has'](_0x4fe454)){const _0x31b77c=this['_imageCache']['get'](_0x4fe454);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x31b77c['url'],this['imageDimension']=_0x31b77c['dimension'],this['imageId']=_0x31b77c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2823af}=this['_editor'],t=_0x2823af['t'],_0x410db6=new X(_0x2823af,this['imageStatus'],this['_attributes']);_0x410db6['bind']('status')['to'](this,'imageStatus'),_0x410db6['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x410db6['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x410db6['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x410db6,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1e48c2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x410db6,'position':_0x213fe5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x410db6['focus']();},'onHide':()=>{_0x410db6['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x11e854=>!V(_0x11e854,_0x410db6['element'])}});}['_loadImageInfo'](_0x40fea5,_0x3af6d9){return q['getInfo'](_0x40fea5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x19bf87=>{const {width:_0x2e01dd,height:_0x1bf649}=_0x19bf87['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3af6d9,this['imageDimension']={'width':_0x2e01dd,'height':_0x1bf649},this['imageId']=_0x40fea5;})['catch'](_0x5edbe8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5edbe8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x26f116,_0x582a2e){return this['_getImageAsFile'](_0x26f116)['then'](_0x1a9ad4=>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':_0x582a2e['signal'],'file':_0x1a9ad4,'onProgress':_0x560e5a=>{_0x560e5a&&_0x560e5a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x560e5a['value']));}}))['then'](_0x50a536=>{const {width:_0x1fc4b4,height:_0x54deba}=_0x50a536['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50a536['cdnUrl'],this['imageDimension']={'width':_0x1fc4b4,'height':_0x54deba},this['imageId']=_0x50a536['uuid'],this['imageUploadProgress']=null;const _0x4217c2=_0x26f116['getAttribute']('src');this['_imageCache']['set'](_0x4217c2,{'id':_0x50a536['uuid'],'url':_0x50a536['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x60bf59=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x60bf59['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x435bea,_0xdcb9ac){_0x435bea['on']('apply',(_0x3f0880,_0x26aaba)=>{this['_replaceImage'](_0xdcb9ac,_0x26aaba['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x435bea['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x435bea['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x50c04c,_0x38b387,_0x449027){const _0x4dde9b=this['_editor'],{width:_0x4a089d,height:_0x56cc9a}=F(_0x38b387,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x409e3b,imageSources:_0x718691}=D(_0x38b387,_0x4a089d);_0x4dde9b['model']['change'](_0x597565=>{if('$graveyard'===_0x50c04c['root']['rootName']){_0x4dde9b['execute']('insertImage',{'imageType':_0x50c04c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x50c04c['getAttributes']()),'uploadcareImageId':_0x449027,'src':_0x409e3b,'sources':_0x718691,'width':_0x4a089d,'height':_0x56cc9a}});const _0x291b21=_0x50c04c['getChildren']();_0x50c04c=_0x4dde9b['model']['document']['selection']['getSelectedElement']();for(const _0x65819f of _0x291b21)_0x597565['append'](_0x597565['cloneElement'](_0x65819f),_0x50c04c);}else _0x597565['setSelection'](_0x50c04c,'on'),_0x4dde9b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x50c04c['getAttributes']()),'uploadcareImageId':_0x449027,'src':_0x409e3b,'sources':_0x718691,'width':_0x4a089d,'height':_0x56cc9a},_0x50c04c);_0x597565['setSelection'](_0x50c04c,'on');});}async['_getImageAsFile'](_0xfe343f){const _0x3d6027=_0x4132cc['window'],_0x4de2ea=_0x4132cc['document']['location']['href'],_0x3a6793=new _0x3d6027['URL'](_0xfe343f['getAttribute']('src'),_0x4de2ea);if('data:'===_0x3a6793['protocol']){const _0x4cd966=_0x3a6793['href']['split'](','),_0x566ebf=_0x4cd966[0x0]['match'](/:(.*?);/)[0x1],_0x3d6308=_0x566ebf['split']('/')[0x1],_0x3bc134=_0x3d6027['atob'](_0x4cd966[_0x4cd966['length']-0x1]);let _0x3e71ef=_0x3bc134['length'];const _0x1213d9=new _0x3d6027['Uint8Array'](_0x3e71ef);for(;_0x3e71ef--;)_0x1213d9[_0x3e71ef]=_0x3bc134['charCodeAt'](_0x3e71ef);return new _0x3d6027['File']([_0x1213d9],'image.'+_0x3d6308,{'type':_0x566ebf});}const _0x9f888f=_0x3a6793['href']['split']('/'),_0x6606f4=_0x9f888f[_0x9f888f['length']-0x1],_0x27872c=_0x6606f4['split']('.')[0x1];return _0x3d6027['fetch'](_0x3a6793['href'])['then'](_0x1cd1d4=>_0x1cd1d4['clone']()['blob']())['then'](_0x4283cd=>new _0x3d6027['File']([_0x4283cd],_0x6606f4,{'type':'image/'+_0x27872c}));}}class tt extends _0x2f742b{['imageEditController'];static get['requires'](){return[_0x5a8c70];}['_isEditable'];constructor(_0x5ab750){super(_0x5ab750),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x49c09e){const _0x50fb8c=B(_0x49c09e);return _0x36e744=>!(!_0x36e744||!_0x36e744['is']('element','imageBlock')&&!_0x36e744['is']('element','imageInline'))&&(!!_0x36e744['hasAttribute']('uploadcareImageId')||!!_0x36e744['hasAttribute']('src')&&_0x50fb8c(_0x36e744['getAttribute']('src')));}(_0x5ab750['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x584ea8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x584ea8);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x27efd1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x27efd1&&(_0x27efd1['is']('element','imageBlock')||_0x27efd1['is']('element','imageInline'))&&(this['imageEditController']=new Y(this['editor'],this['editor']['plugins']['get'](_0x5a8c70),_0x27efd1),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class et extends _0x2f742b{['refresh'](){const _0x219c87=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x219c87&&(_0x219c87['is']('element','imageBlock')||_0x219c87['is']('element','imageInline')));}['execute'](_0x46709f){const _0x3870c0=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x36942d=>{_0x36942d['setAttributes'](_0x46709f,_0x3870c0),_0x36942d['removeAttribute']('srcset',_0x3870c0),_0x36942d['removeAttribute']('sizes',_0x3870c0);});}}class it extends _0x43e20b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[z,_0xd4ff4d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x373c0c}=this;_0x373c0c['commands']['add']('uploadcareImageEdit',new tt(_0x373c0c)),_0x373c0c['commands']['add']('uploadcareImageReplace',new et(_0x373c0c));}}class st extends _0x43e20b{['_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 _0x2b235d=this['editor'];_0x2b235d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x114897=>{const _0x1ef091=_0x2b235d['commands']['get']('uploadcareImageEdit'),_0x265969=new _0x547574(_0x114897),t=_0x114897['t'];return _0x265969['set']({'icon':_0x1e48c2,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x265969['bind']('isEnabled')['to'](_0x1ef091),_0x265969['bind']('isOn')['to'](_0x1ef091,'isActive'),this['listenTo'](_0x265969,'execute',()=>{_0x2b235d['execute']('uploadcareImageEdit'),_0x2b235d['editing']['view']['focus']();}),_0x265969;}),this['_initConfig']();}['_initConfig'](){const _0x5bf3c3=_0x2598b2(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5bf3c3),this['listenTo'](this['editor'],'destroy',()=>{_0x5bf3c3['remove']();});}}class nt extends _0x43e20b{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 _0x49cc3e,Command as _0x2f66f8}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x563c56,IconGooglePhotos as _0x4c021d,IconGoogleDrive as _0xb3c516,IconFacebook as _0x43bd5d,IconDropbox as _0x151515,IconUploadcareLink as _0x5d6ffb,IconUploadcareImageUpload as _0x42410e,IconError as _0x359b88,IconUploadcareImageEdit as _0x1fb0ac}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x12de04,MenuBarMenuListItemButtonView as _0x153807,View as _0xac7b03,FocusCycler as _0x56eb38,Dialog as _0x3ce802,DialogViewPosition as _0x2d2d85,SpinnerView as _0x521391,IconView as _0x22566a,Notification as _0x162ff5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x295a8b,DomEmitterMixin as _0x216c1d,global as _0x31348a,getAncestors as _0x2f24f3,ObservableMixin as _0x10c472,uid as _0x5c5bbc,createElement as _0x2ba8a1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x55f136}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x332e80,info as _0x4da681}from'@uploadcare/upload-client';import*as _0x5166bf from'@uploadcare/file-uploader';var i=function(_0x292ade){return _0x292ade['Local']='local',_0x292ade['URL']='url',_0x292ade['Dropbox']='dropbox',_0x292ade['GDrive']='gdrive',_0x292ade['Facebook']='facebook',_0x292ade['GPhotos']='gphotos',_0x292ade['OneDrive']='onedrive',_0x292ade;}({});function _(_0x678b93,_0x42b596,_0x5d67ca){const t=_0x678b93['t'],_0xe079f5=_0x678b93['t'];switch(_0x42b596){case i['Local']:return{'text':_0xe079f5('Insert'===_0x5d67ca?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xe079f5('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5d67ca?_0xe079f5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xe079f5('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5d67ca?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5d67ca?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5d67ca?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5d67ca?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5d67ca?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x42b596;}}class e extends _0x49cc3e{['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 _0x44d7d2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x76b15d;for(const _0x35cd4d in _0x44d7d2){const _0xcd92e8=_0x35cd4d,_0x2b3e35=_0x44d7d2[_0xcd92e8];if('uploadcareLicenseKeyValid'==_0x2b3e35||'uploadcareLicenseKeyInvalid'==_0x2b3e35||'uploadcareLicenseKeyExpired'==_0x2b3e35||'uploadcareLicenseKeyDomainLimit'==_0x2b3e35||'uploadcareLicenseKeyNotAllowed'==_0x2b3e35||'uploadcareLicenseKeyEvaluationLimit'==_0x2b3e35||'uploadcareLicenseKeyUsageLimit'==_0x2b3e35){delete _0x44d7d2[_0xcd92e8],_0x76b15d=_0x2b3e35,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x76b15d&&_0x44d7d2['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x76b15d&&_0x44d7d2['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x76b15d&&_0x44d7d2['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x76b15d&&_0x44d7d2['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x76b15d&&_0x44d7d2['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x76b15d&&_0x44d7d2['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x34047d}=this,_0xa6fcb6=_0x34047d['commands']['get']('uploadcare');if(!_0xa6fcb6)return;const _0x5e3c1e=this['_normalizeConfigSourceList'](_0x34047d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3a2e8a,_0x570ed1)=>{const _0x20b337=this['_getIntegrationKey'](_0x570ed1['type']);return _0x3a2e8a[_0x20b337]||(_0x3a2e8a[_0x20b337]=[]),_0x3a2e8a[_0x20b337]['push'](_0x570ed1),_0x3a2e8a;},{});_0x34047d['plugins']['has']('ImageInsertUI')&&_0x34047d['commands']['get']('uploadcare')&&Object['entries'](_0x5e3c1e)['forEach'](([_0x1328b6,_0x2eba80])=>{_0x34047d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1328b6,'observable':()=>_0xa6fcb6,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2eba80),'formViewCreator':()=>this['_createDropdownButtons'](_0x2eba80),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2eba80),'override':'assetManager'!==_0x1328b6});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x38d226){const {locale:_0x2adba6}=this['editor'];return _0x38d226['map'](_0x468e38=>{const _0x15238e=_(_0x2adba6,_0x468e38,'Insert');switch(_0x468e38){case i['Local']:return{'icon':_0x42410e,'type':i['Local'],..._0x15238e};case i['URL']:return{'icon':_0x5d6ffb,'type':i['URL'],..._0x15238e};case i['Dropbox']:return{'icon':_0x151515,'type':i['Dropbox'],..._0x15238e};case i['Facebook']:return{'icon':_0x43bd5d,'type':i['Facebook'],..._0x15238e};case i['GDrive']:return{'icon':_0xb3c516,'type':i['GDrive'],..._0x15238e};case i['GPhotos']:return{'icon':_0x4c021d,'type':i['GPhotos'],..._0x15238e};case i['OneDrive']:return{'icon':_0x563c56,'type':i['OneDrive'],..._0x15238e};}});}['_getIntegrationKey'](_0x5dce63){switch(_0x5dce63){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x35e836,_0x194dca){const _0xb1e609=this['editor'],_0x4c9d31=new _0x35e836(_0xb1e609['locale']),_0xe47e3e=_0xb1e609['commands']['get']('uploadcare');return _0x4c9d31['bind']('isEnabled')['to'](_0xe47e3e),_0x4c9d31['on']('execute',()=>{_0xe47e3e['execute'](_0x194dca);}),_0x4c9d31;}['_createToolbarButton'](_0x950535){const {locale:_0x53c374}=this['editor'],_0x540ad6=this['editor']['plugins']['get']('ImageInsertUI'),_0x1c7e9b=_0x950535[0x0],_0xe31325=this['_createButton'](_0x12de04,_0x1c7e9b['type']);return _0xe31325['icon']=_0x1c7e9b['icon'],_0xe31325['bind']('label')['to'](_0x540ad6,'isImageSelected',_0x1f362a=>_(_0x53c374,_0x1c7e9b['type'],_0x1f362a?'Replace':'Insert')['text']),_0xe31325['tooltip']=!0x0,_0xe31325;}['_createDropdownButtons'](_0x587ee4){const {locale:_0xbd7aa4}=this['editor'],_0xcab80a=this['editor']['plugins']['get']('ImageInsertUI');return _0x587ee4['map'](_0xb82c7=>{const _0x4c7d6e=this['_createButton'](_0x12de04,_0xb82c7['type']);return _0x4c7d6e['withText']=!0x0,_0x4c7d6e['icon']=_0xb82c7['icon'],_0x4c7d6e['bind']('label')['to'](_0xcab80a,'isImageSelected',_0x368f27=>_(_0xbd7aa4,_0xb82c7['type'],_0x368f27?'Replace':'Insert')['text']),_0x4c7d6e;});}['_createMenuBarButtons'](_0x3f2ba4){return _0x3f2ba4['map'](_0x222070=>{const _0x2a17a9=this['_createButton'](_0x153807,_0x222070['type']);return _0x2a17a9['icon']=_0x222070['icon'],_0x2a17a9['label']=_0x222070['shortText'],_0x2a17a9;});}}class F extends _0xac7b03{['focusTracker'];['focusCycler'];constructor(_0x1e8a01){super(_0x1e8a01),this['focusTracker']=new _0x295a8b(),this['focusCycler']=new _0x56eb38({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x1dcf9d,_0x3ebead){super(_0x1dcf9d),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-'+_0x3ebead}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3351fb,_0x4848fc){const _0x4428f7=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x106bed=>_0x106bed<=_0x4848fc)['map'](_0x37bf01=>_0x3351fb['replace'](/\/$/,'')+'/-/resize/'+_0x37bf01+'x/\x20'+_0x37bf01+'w');return{'imageFallbackUrl':_0x3351fb,'imageSources':[{'srcset':_0x4428f7['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4848fc+'px)\x20100vw,\x20'+_0x4848fc+'px','type':'image/webp'}]};}function S(_0x2c9205,_0x3594d4,_0x6d73ce){const _0x309941=_0x2c9205['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x309941?parseInt(_0x309941[0x1],0xa):_0x3594d4,'height':_0x309941?parseInt(_0x309941[0x2],0xa):_0x6d73ce};}function p(_0x5afb78,_0x4c5e60){const _0x214aa5=new(_0x216c1d())(),_0x477de2=_0x5afb78['plugins']['get']('ImageUtils'),_0x4e7d6a=_0x5afb78['editing']['mapper']['toViewElement'](_0x4c5e60),_0x299538=_0x477de2['findViewImgElement'](_0x4e7d6a),_0x48d3e1=_0x5afb78['editing']['view']['domConverter']['viewToDom'](_0x299538),_0x54a757=_0x4c5e60['getAttribute']('width'),_0x2452d1=_0x4c5e60['getAttribute']('height'),_0x2fc715='image-processing';_0x5afb78['editing']['view']['change'](_0x300bb7=>{_0x300bb7['addClass'](_0x2fc715,_0x4e7d6a),_0x300bb7['setStyle']('aspect-ratio',_0x54a757+'/'+_0x2452d1,_0x299538);}),_0x214aa5['listenTo'](_0x48d3e1,'load',()=>{_0x214aa5['stopListening'](_0x48d3e1,'load'),_0x5afb78['editing']['view']['change'](_0x4829af=>{_0x4829af['removeClass'](_0x2fc715,_0x4e7d6a),_0x4829af['removeStyle']('aspect-ratio',_0x299538);});});}function z(_0xcb075e){if(Array['isArray'](_0xcb075e)){const _0x52c10b=_0xcb075e['map'](z);return _0x543a72=>_0x52c10b['some'](_0x3abe52=>_0x3abe52(_0x543a72));}if('origin'==_0xcb075e){const _0x1bb0ba=_0x31348a['window']['location']['origin'];return _0x3341d7=>new URL(_0x3341d7,_0x31348a['document']['baseURI'])['origin']==_0x1bb0ba;}return'function'==typeof _0xcb075e?_0xcb075e:_0xcb075e instanceof RegExp?_0x260f26=>!(!_0x260f26['match'](_0xcb075e)&&!_0x260f26['replace'](/^https?:\/\//,'')['match'](_0xcb075e)):()=>!0x1;}function A(_0x2df8fc,_0x89b1ad){return _0x2f24f3(_0x2df8fc['target'])['includes'](_0x89b1ad);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x10c472(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xe79b5c,_0x4095fb,_0x16c5bd){super(),this['_editor']=_0xe79b5c,this['_editing']=_0x4095fb,this['_dialog']=_0xe79b5c['plugins']['get'](_0x3ce802),this['_api']=_0x4095fb['ctxElement']['getAPI'](),this['_type']=_0x16c5bd,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:_0x39d099,model:_0x10260b}=this['_editor'],_0x26d918=_0x10260b['document']['selection']['getSelectedElement'](),_0x293c40=_0x26d918&&(_0x26d918['is']('element','imageBlock')||_0x26d918['is']('element','imageInline'));this['_formView']=new x(_0x39d099,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x42410e,'title':_(_0x39d099,this['_type'],_0x293c40?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2d2d85['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3a5487=>!A(_0x3a5487,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5f16b2}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x63b9c6=>{const _0x77484d=_0x5f16b2['length'];for(const _0x2b739d of _0x5f16b2){const _0x54dbc2=_0x2b739d===_0x5f16b2[_0x77484d-0x1],{cdnUrl:_0x2017cd,fileInfo:_0x484101}=_0x2b739d;if(!_0x2017cd||!_0x484101)continue;const {width:_0x1e97c5,height:_0x5cc5f9}=_0x484101['imageInfo'],_0x5094ff=S(_0x2017cd,_0x1e97c5,_0x5cc5f9),_0x27c38f=C(_0x2017cd,_0x5094ff['width']),_0x48e119={'id':_0x484101['uuid'],'type':'image','attributes':{'imageDimension':_0x5094ff,..._0x27c38f}};this['_insertAsset'](_0x48e119,_0x54dbc2,_0x63b9c6);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x407e9b=>{'idle'===_0x407e9b['detail']['status']&&!_0x407e9b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x123413,_0x1a2894,_0x54e84f){const _0x21e8cf=this['_editor']['model']['document']['selection'],_0xa795f4=_0x21e8cf['getSelectedElement'](),_0x5df248=!(!_0xa795f4||!_0xa795f4['is']('element','imageInline'));_0x54e84f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x123413,_0x5df248),_0x1a2894||_0x54e84f['setSelection'](_0x21e8cf['getLastPosition']());}['_insertImage'](_0x3dd7da,_0xd36dbc){const _0x1e54db=this['_editor'],{imageDimension:_0x2d0aea,imageFallbackUrl:_0x4130c5,imageSources:_0x5674cb}=_0x3dd7da['attributes'];_0x1e54db['execute']('insertImage',{'imageType':_0xd36dbc?'imageInline':null,'source':{'uploadcareImageId':_0x3dd7da['id'],'src':_0x4130c5,'sources':_0x5674cb,..._0x2d0aea}});}}class w extends _0x2f66f8{['_editing'];['_controller']=null;static get['requires'](){return[_0x3ce802,o];}constructor(_0x188a3e){super(_0x188a3e),this['_editing']=_0x188a3e['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x38e07e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x38e07e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x26c122,..._0x229e8d}){return _0x332e80(_0x26c122,_0x229e8d);}static['getInfo'](_0x37e4fe,_0x1012d8){return _0x4da681(_0x37e4fe,_0x1012d8);}}class f extends _0x49cc3e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x55f136,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3809f4=this['editor'];if(!!!_0x3809f4['config']['get']('uploadcare'))return;_0x3809f4['plugins']['get'](_0x55f136)['createUploadAdapter']=_0x132e74=>new k(_0x132e74,_0x3809f4),_0x3809f4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x30b646,{imageElement:_0x1f42ee,data:_0x821a25})=>{_0x3809f4['model']['change'](_0x77d322=>{_0x77d322['setAttribute']('uploadcareImageId',_0x821a25['uploadcareImageId'],_0x1f42ee);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x37f7b1,_0x427cc8){this['loader']=_0x37f7b1,this['editor']=_0x427cc8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x7f987b=await this['loader']['file'];return j['upload']({'file':_0x7f987b,'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':_0x44b37f=>{_0x44b37f&&_0x44b37f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x44b37f['value']);}})['then'](async _0x224d49=>{const {imageFallbackUrl:_0x3b76e8,imageSources:_0x244c8}=C(_0x224d49['cdnUrl'],_0x224d49['imageInfo']['width']);return{'uploadcareImageId':_0x224d49['uuid'],'default':_0x3b76e8,'sources':_0x244c8};})['catch'](()=>{const _0x5c7dfc=t('Cannot\x20upload\x20file:')+('\x20'+_0x7f987b['name']+'.');return Promise['reject'](_0x5c7dfc);});}['abort'](){this['controller']['abort']();}}class o extends _0x49cc3e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3ce802];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x388757){super(_0x388757),this['ucContextId']=_0x5c5bbc();}['init'](){const _0x22ba89=this['editor'];_0x22ba89['commands']['add']('uploadcare',new w(_0x22ba89));}['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 _0x1b40b6=_0x31348a['document']['querySelector']('input[uploadcare-file-input]');_0x1b40b6&&_0x1b40b6['remove']();}),async function(_0x403c7b){const _0x5ac04d=_0x312859([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]),_0x1e694b=0x535f8c3a,_0x19115d=0x5358f39a^_0x1e694b,_0x4d66af=window[_0x312859([0x44,0x61,0x74,0x65])][_0x312859([0x6e,0x6f,0x77])](),_0x47ffd1=_0x403c7b[_0x312859([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x35d1d1=new window[(_0x312859([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb298b7=>{_0x47ffd1[_0x312859([0x6f,0x6e,0x63,0x65])](_0x312859([0x72,0x65,0x61,0x64,0x79]),_0xb298b7);}),_0x1ef75b={[_0x312859([0x6b,0x74,0x79])]:_0x312859([0x45,0x43]),[_0x312859([0x75,0x73,0x65])]:_0x312859([0x73,0x69,0x67]),[_0x312859([0x63,0x72,0x76])]:_0x312859([0x50,0x2d,0x32,0x35,0x36]),[_0x312859([0x78])]:_0x312859([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]),[_0x312859([0x79])]:_0x312859([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]),[_0x312859([0x61,0x6c,0x67])]:_0x312859([0x45,0x53,0x32,0x35,0x36])},_0x47c64c=_0x47ffd1[_0x312859([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x312859([0x67,0x65,0x74])](_0x312859([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b49e5(){let _0x58d442,_0x5f23b5=null,_0x20dab1=null;try{if(_0x47c64c==_0x312859([0x47,0x50,0x4c]))return _0x312859([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x58d442=_0x230460(),!_0x58d442)return _0x312859([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x58d442[_0x312859([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x20dab1=_0x517aee(_0x58d442[_0x312859([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x58d442[_0x312859([0x6a,0x74,0x69])])),await _0x41fb5d()?_0x2e8c04()?_0x3f1130()?_0x312859([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e5d5e()?(_0x58d442[_0x312859([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x312859([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5f23b5=_0x131ff0(_0x312859([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x48ce23()):_0x312859([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x312859([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x312859([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x312859([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3f1130(){const _0x53df23=[_0x312859([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x312859([0x74,0x72,0x69,0x61,0x6c])][_0x312859([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58d442[_0x312859([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4d66af/0x3e8:0xe10*_0x19115d;return _0x58d442[_0x312859([0x65,0x78,0x70])]<_0x53df23;}function _0x2e8c04(){const _0x352315=_0x58d442[_0x312859([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x352315&&(!!_0x352315[_0x312859([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x312859([0x2a]))||!!_0x352315[_0x312859([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x312859([0x55,0x50,0x4c,0x43])));}function _0x5e5d5e(){const _0x451a20=_0x58d442[_0x312859([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x451a20||0x0==_0x451a20[_0x312859([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x437d8a}=new URL(window[_0x312859([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x451a20[_0x312859([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x437d8a))return!0x0;const _0x219a88=_0x437d8a[_0x312859([0x73,0x70,0x6c,0x69,0x74])](_0x312859([0x2e]));return _0x451a20[_0x312859([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21499c=>_0x21499c[_0x312859([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x312859([0x2a])))[_0x312859([0x6d,0x61,0x70])](_0x2998db=>_0x2998db[_0x312859([0x73,0x70,0x6c,0x69,0x74])](_0x312859([0x2e])))[_0x312859([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x484e2f=>_0x484e2f[_0x312859([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x219a88[_0x312859([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x312859([0x6d,0x61,0x70])](_0x127a9b=>Array(_0x219a88[_0x312859([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x127a9b[_0x312859([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x312859([0x66,0x69,0x6c,0x6c])](_0x127a9b[0x0]===_0x312859([0x2a])?_0x312859([0x2a]):'')[_0x312859([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x127a9b))[_0x312859([0x73,0x6f,0x6d,0x65])](_0x2b4064=>_0x219a88[_0x312859([0x65,0x76,0x65,0x72,0x79])]((_0xe08a9d,_0x5904c6)=>_0x2b4064[_0x5904c6]===_0xe08a9d||_0x2b4064[_0x5904c6]===_0x312859([0x2a])));}function _0x48ce23(){return _0x5f23b5&&_0x20dab1?new window[(_0x312859([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30f4eb,_0x3bdcf3)=>{_0x5f23b5[_0x312859([0x74,0x68,0x65,0x6e])](_0x30f4eb,_0x3bdcf3),_0x20dab1[_0x312859([0x74,0x68,0x65,0x6e])](_0x224519=>{_0x224519!=_0x312859([0x56,0x61,0x6c,0x69,0x64])&&_0x30f4eb(_0x224519);},_0x3bdcf3);}):_0x5f23b5||_0x20dab1||_0x312859([0x56,0x61,0x6c,0x69,0x64]);}}function _0x517aee(_0x48cff5,_0x43c2f1){return new window[(_0x312859([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6a2a95=>{if(_0x11def8())return _0x6a2a95(_0x312859([0x56,0x61,0x6c,0x69,0x64]));_0xf392ae(),_0x47ffd1[_0x312859([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x312859([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x561fb2=!0x1;const _0x2d6bdd=_0x5c5bbc();function _0x2d7690(_0x307106){return!!_0x307106&&(typeof _0x307106===_0x312859([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x307106===_0x312859([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x307106[_0x312859([0x74,0x68,0x65,0x6e])]===_0x312859([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x307106[_0x312859([0x63,0x61,0x74,0x63,0x68])]===_0x312859([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x17b48f(_0x130ac9){_0xda73d7(_0x130ac9)[_0x312859([0x74,0x68,0x65,0x6e])](_0x2748e6=>{if(!_0x2748e6||_0x2748e6[_0x312859([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x312859([0x6f,0x6b]))return _0x312859([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b7505(_0x7e56be(_0x2d6bdd+_0x43c2f1))!=_0x2748e6[_0x312859([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x312859([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x312859([0x56,0x61,0x6c,0x69,0x64]);})[_0x312859([0x74,0x68,0x65,0x6e])](_0x261a0c=>(_0x1514a6(),_0x261a0c),()=>{const _0x57e31e=_0x2dc7f4();return null==_0x57e31e?(_0x1514a6(),_0x312859([0x56,0x61,0x6c,0x69,0x64])):_0x312859(_0x4d66af-_0x57e31e>(0x7753083a^_0x1e694b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x312859([0x74,0x68,0x65,0x6e])](_0x6a2a95)[_0x312859([0x63,0x61,0x74,0x63,0x68])](()=>{_0x6a2a95(_0x312859([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6e614d=0x536962ba^_0x1e694b;function _0x1514a6(){const _0x51c5a5=_0x312859([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b7505(_0x7e56be(_0x48cff5)),_0x1ef964=_0x58c82e(_0x4b7505(window[_0x312859([0x4d,0x61,0x74,0x68])][_0x312859([0x63,0x65,0x69,0x6c])](_0x4d66af/_0x6e614d)));window[_0x312859([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x312859([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51c5a5,_0x1ef964);}function _0x2dc7f4(){const _0x480ccf=_0x312859([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b7505(_0x7e56be(_0x48cff5)),_0x457872=window[_0x312859([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x312859([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x480ccf);return _0x457872?window[_0x312859([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58c82e(_0x457872),0x10)*_0x6e614d:null;}function _0xda73d7(_0x15a30b){return new window[(_0x312859([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x127e69,_0x49e3f8)=>{_0x15a30b[_0x312859([0x74,0x68,0x65,0x6e])](_0x127e69,_0x49e3f8),window[_0x312859([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49e3f8,0x535e58fa^_0x1e694b);});}}_0x47ffd1[_0x312859([0x6f,0x6e])](_0x312859([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5789f3,_0x114a6d)=>{if(_0x114a6d[0x0]!=_0x48cff5)return _0x6a2a95(_0x312859([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x114a6d[0x1]={..._0x114a6d[0x1],[_0x312859([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d6bdd};},{[_0x312859([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x312859([0x68,0x69,0x67,0x68])}),_0x47ffd1[_0x312859([0x6f,0x6e])](_0x312859([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2f3878=>{_0x2d7690(_0x2f3878[_0x312859([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x561fb2=!0x0,_0x17b48f(_0x2f3878[_0x312859([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x312859([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x312859([0x6c,0x6f,0x77])}),_0x35d1d1[_0x312859([0x74,0x68,0x65,0x6e])](()=>{_0x561fb2||_0x6a2a95(_0x312859([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x11def8(){return _0x47ffd1[_0x312859([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x312859([0x76,0x69,0x65,0x77])][_0x312859([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x312859([0x61,0x75,0x74,0x6f]);}function _0xf392ae(){_0x47ffd1[_0x312859([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x312859([0x76,0x69,0x65,0x77])][_0x312859([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x312859([0x61,0x75,0x74,0x6f]);}}function _0x131ff0(_0x29d521){const _0x1013ad=[new window[(_0x312859([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x433e2b=>setTimeout(_0x433e2b,0x5356b2f6^_0x1e694b)),_0x35d1d1[_0x312859([0x74,0x68,0x65,0x6e])](()=>new window[(_0x312859([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd46051=>{let _0x44d28b=0x0;_0x47ffd1[_0x312859([0x6d,0x6f,0x64,0x65,0x6c])][_0x312859([0x6f,0x6e])](_0x312859([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3dd159,_0x78d170)=>{_0x78d170[0x0][_0x312859([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44d28b++,_0x44d28b==(0x535f89d2^_0x1e694b)&&(_0xd46051(),_0x3dd159[_0x312859([0x6f,0x66,0x66])]());});}))];return window[_0x312859([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x312859([0x72,0x61,0x63,0x65])](_0x1013ad)[_0x312859([0x74,0x68,0x65,0x6e])](()=>_0x29d521);}async function _0xb2124a(){await _0x35d1d1,_0x47ffd1[_0x312859([0x6d,0x6f,0x64,0x65,0x6c])][_0x312859([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x395e37,_0x47ffd1[_0x312859([0x6d,0x6f,0x64,0x65,0x6c])][_0x312859([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x395e37,_0x47ffd1[_0x312859([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x312859([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b1e14(_0x2284f5){const _0xbd0797=_0x349e6c();_0x47ffd1[_0xbd0797]=_0x312859([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2284f5,_0x2284f5!=_0x312859([0x56,0x61,0x6c,0x69,0x64])&&_0xb2124a();}function _0x349e6c(){const _0x15d686=window[_0x312859([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x312859([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x312859([0x6e,0x6f,0x77])]())[_0x312859([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x312859([0x2e]),'');let _0x58cd61=_0x312859([0x68]);for(let _0x5a63a4=0x0;_0x5a63a4<_0x15d686[_0x312859([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a63a4+=0x2){let _0x1a4d05=window[_0x312859([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15d686[_0x312859([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a63a4,_0x5a63a4+0x2));_0x1a4d05>=_0x5ac04d[_0x312859([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a4d05-=_0x5ac04d[_0x312859([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58cd61+=_0x5ac04d[_0x1a4d05];}return _0x58cd61;}function _0x230460(){const _0x28fd40=_0x47c64c[_0x312859([0x73,0x70,0x6c,0x69,0x74])](_0x312859([0x2e]));if(0x3!=_0x28fd40[_0x312859([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x24b66c(_0x28fd40[0x1]);function _0x24b66c(_0x418c5e){const _0xce7848=_0x7625b9(_0x418c5e);return _0xce7848&&_0x3a6d96()?_0xce7848:null;function _0x3a6d96(){const _0x48ed1b=_0xce7848[_0x312859([0x6a,0x74,0x69])],_0x441aa0=window[_0x312859([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48ed1b[_0x312859([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48ed1b[_0x312859([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x212cda={..._0xce7848,[_0x312859([0x6a,0x74,0x69])]:_0x48ed1b[_0x312859([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x48ed1b[_0x312859([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x212cda[_0x312859([0x76,0x63])],_0x7e56be(_0x212cda)==_0x441aa0;}}}async function _0x41fb5d(){let _0x1f066a=!0x0;try{const _0x4ff246=_0x47c64c[_0x312859([0x73,0x70,0x6c,0x69,0x74])](_0x312859([0x2e])),[_0x157e52,_0x9c356,_0x236167]=_0x4ff246;return _0x1c9145(_0x157e52),await _0x196b50(_0x157e52,_0x9c356,_0x236167),_0x1f066a;}catch{return!0x1;}function _0x1c9145(_0x2bbac7){const _0x576f35=_0x7625b9(_0x2bbac7);_0x576f35&&_0x576f35[_0x312859([0x61,0x6c,0x67])]==_0x312859([0x45,0x53,0x32,0x35,0x36])||(_0x1f066a=!0x1);}async function _0x196b50(_0x51e7fe,_0x48d31d,_0x378f77){const _0x4b24a9=window[_0x312859([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x312859([0x66,0x72,0x6f,0x6d])](_0x46175f(_0x378f77),_0x21d23c=>_0x21d23c[_0x312859([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d11ab=new window[(_0x312859([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x312859([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51e7fe+_0x312859([0x2e])+_0x48d31d),_0x5e490a=window[_0x312859([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x312859([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e490a)return;const _0xb84995=await _0x5e490a[_0x312859([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x312859([0x6a,0x77,0x6b]),_0x1ef75b,{[_0x312859([0x6e,0x61,0x6d,0x65])]:_0x312859([0x45,0x43,0x44,0x53,0x41]),[_0x312859([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x312859([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x312859([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e490a[_0x312859([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x312859([0x6e,0x61,0x6d,0x65])]:_0x312859([0x45,0x43,0x44,0x53,0x41]),[_0x312859([0x68,0x61,0x73,0x68])]:{[_0x312859([0x6e,0x61,0x6d,0x65])]:_0x312859([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb84995,_0x4b24a9,_0x4d11ab)||(_0x1f066a=!0x1);}}function _0x7625b9(_0x31988e){return _0x31988e[_0x312859([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x312859([0x65,0x79]))?JSON[_0x312859([0x70,0x61,0x72,0x73,0x65])](_0x46175f(_0x31988e)):null;}function _0x46175f(_0x16a7ac){return window[_0x312859([0x61,0x74,0x6f,0x62])](_0x16a7ac[_0x312859([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x312859([0x2b]))[_0x312859([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x312859([0x2f])));}function _0x7e56be(_0x431e5c){let _0x4cc92d=0x1505;function _0x369e85(_0x3b6cf3){for(let _0x1695e9=0x0;_0x1695e9<_0x3b6cf3[_0x312859([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1695e9++){const _0xe6161a=_0x3b6cf3[_0x312859([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1695e9);_0x4cc92d=(_0x4cc92d<<0x5)+_0x4cc92d+_0xe6161a,_0x4cc92d&=_0x4cc92d;}}function _0x365f1d(_0x46acf1){Array[_0x312859([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x46acf1)?_0x46acf1[_0x312859([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x365f1d):_0x46acf1&&typeof _0x46acf1==_0x312859([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x312859([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x46acf1)[_0x312859([0x73,0x6f,0x72,0x74])]()[_0x312859([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f2970,_0x136a10])=>{_0x369e85(_0x2f2970),_0x365f1d(_0x136a10);}):_0x369e85(window[_0x312859([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x46acf1));}return _0x365f1d(_0x431e5c),_0x4cc92d>>>0x0;}function _0x4b7505(_0x35bf88){return _0x35bf88[_0x312859([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x312859([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x312859([0x30]));}function _0x58c82e(_0x1d4f36){return _0x1d4f36[_0x312859([0x73,0x70,0x6c,0x69,0x74])]('')[_0x312859([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x312859([0x6a,0x6f,0x69,0x6e])]('');}function _0x395e37(){}function _0x312859(_0x597e67){return _0x597e67['map'](_0x2506cb=>String['fromCharCode'](_0x2506cb))['join']('');}_0x1b1e14(await _0x3b49e5());}(this);}['_initSchema'](){const _0x4b9af2=this['editor']['model']['schema'];_0x4b9af2['isRegistered']('imageBlock')&&_0x4b9af2['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4b9af2['isRegistered']('imageInline')&&_0x4b9af2['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5413eb=this['editor'];_0x5413eb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5413eb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1b1b61=>_0x1b1b61['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x21b080=_0x5413eb['commands']['get']('replaceImageSource');_0x21b080&&this['listenTo'](_0x21b080,'cleanupImage',(_0x5a4076,[_0x536060,_0xa51a18])=>{_0x536060['removeAttribute']('uploadcareImageId',_0xa51a18);});}['_initConfig'](){const _0x4e1ee7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x54e3ae=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2ba8a1(_0x31348a['document'],'uc-config',{..._0x4e1ee7,'pubkey':_0x54e3ae,'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']=_0x361bf4=>{if('closeMax'==_0x361bf4)return'#uc-icon-arrow-down';},_0x31348a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2ba8a1(_0x31348a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x31348a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5b408d=this['editor']['commands']['get']('insertImage');_0x5b408d&&this['listenTo'](_0x5b408d,'execute',()=>{const _0x1d2674=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1d2674&&_0x1d2674['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1d2674);});});const _0x30b4ac=this['editor']['commands']['get']('uploadcareImageReplace');_0x30b4ac&&this['listenTo'](_0x30b4ac,'execute',()=>{const _0x5bd2c4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5bd2c4&&_0x5bd2c4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5bd2c4);});});}}class tt extends _0x49cc3e{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3627e2){super(_0x3627e2),_0x3627e2['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5166bf['defineComponents'](_0x5166bf),this['_defineLocale']();}['_defineLocale'](){const _0x17a45e=this['editor']['config']['get']('uploadcare.locale'),_0x26a2be=this['editor']['locale']['contentLanguage'];_0x17a45e&&_0x5166bf['defineLocale'](_0x26a2be,_0x17a45e);}}class ii extends _0xac7b03{constructor(_0xe36353){super(_0xe36353);const t=_0xe36353['t'],_0x41bf9b=this['bindTemplate'],_0x220094=new _0x521391();_0x220094['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':[_0x220094,{'text':_0x41bf9b['to']('imageUploadProgress',_0x48e6dc=>t('Loading\x20image...')+'\x20('+(_0x48e6dc||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 _0xac7b03{constructor(_0x2e424c){super(_0x2e424c);const t=_0x2e424c['t'];this['set']('errorType',null);const _0x83ff11=new _0x12de04(_0x2e424c);_0x83ff11['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x83ff11['withText']=!0x0,_0x83ff11['class']='ck-button-action',_0x83ff11['on']('execute',()=>{this['fire']('retry');}),_0x83ff11['bind']('isVisible')['to'](this,'errorType',_0x15b5c3=>'NotFound'!==_0x15b5c3);const _0x28d183=new _0x22566a();_0x28d183['content']=_0x359b88,_0x28d183['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x12c8fc=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':[_0x28d183,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x12c8fc['to']('errorType',_0x2e42ee=>t('NotFound'!==_0x2e42ee?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x83ff11]},{'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 _0xac7b03{constructor(_0x13224a,_0x3864d8){super(_0x13224a);const _0x4a6fe3=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3864d8,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4a6fe3['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3a7c59,_0x4a37c3,_0x45282){super(_0x3a7c59),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3a7c59),this['_errorView']=new ti(_0x3a7c59),this['_editingView']=new ei(_0x3a7c59,_0x45282),this['_focusableView']=new _0xac7b03(_0x3a7c59),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4a37c3),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'],_0x820626=>{this['_addUploadcareImageEditorListeners'](_0x820626);});}),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'](_0x16cd04,_0x4bd19b){const _0x5d968f='uc-cloud-image-editor',_0x2c50da=_0x16cd04['querySelector'](_0x5d968f);if(_0x2c50da)return _0x4bd19b(_0x2c50da);const _0x58c1ce=new MutationObserver(_0xd563e=>{const _0x42dc13=_0xd563e['filter'](_0x3ae6c3=>_0x3ae6c3['target']===_0x16cd04&&_0x3ae6c3['addedNodes']['length']>0x0&&_0x3ae6c3['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5d968f);_0x42dc13['length']&&(_0x58c1ce['disconnect'](),_0x4bd19b(_0x42dc13[0x0]['addedNodes'][0x0]));});_0x58c1ce['observe'](_0x16cd04,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2f03d2){_0x2f03d2['addEventListener']('apply',_0x5e0f29=>{this['fire']('apply',{'imageSrc':_0x5e0f29['detail']['cdnUrl']});}),_0x2f03d2['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x10c472(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5a7b0a,_0x59b6ae,_0x4cdcdc){super(),this['_editor']=_0x5a7b0a,this['_dialog']=_0x59b6ae,this['_imageElement']=_0x4cdcdc,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 _0x261942=this['_imageElement'],_0x956650=_0x261942['getAttribute']('uploadcareImageId'),_0x1014e7=_0x261942['getAttribute']('src');if(_0x956650)await this['_loadImageInfo'](_0x956650,_0x1014e7);else{if(this['_imageCache']['has'](_0x1014e7)){const _0x207e60=this['_imageCache']['get'](_0x1014e7);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x207e60['url'],this['imageDimension']=_0x207e60['dimension'],this['imageId']=_0x207e60['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3e499f}=this['_editor'],t=_0x3e499f['t'],_0x4b8eb0=new X(_0x3e499f,this['imageStatus'],this['_attributes']);_0x4b8eb0['bind']('status')['to'](this,'imageStatus'),_0x4b8eb0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4b8eb0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4b8eb0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4b8eb0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1fb0ac,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4b8eb0,'position':_0x2d2d85['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4b8eb0['focus']();},'onHide':()=>{_0x4b8eb0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x596391=>!A(_0x596391,_0x4b8eb0['element'])}});}['_loadImageInfo'](_0xc6ab34,_0xa26b01){return j['getInfo'](_0xc6ab34,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3bd907=>{const {width:_0x27a7eb,height:_0x276a77}=_0x3bd907['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xa26b01,this['imageDimension']={'width':_0x27a7eb,'height':_0x276a77},this['imageId']=_0xc6ab34;})['catch'](_0x2189a8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2189a8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x42751a,_0x20f633){return this['_getImageAsFile'](_0x42751a)['then'](_0x394ca8=>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':_0x20f633['signal'],'file':_0x394ca8,'onProgress':_0x8142ee=>{_0x8142ee&&_0x8142ee['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x8142ee['value']));}}))['then'](_0x55ecc7=>{const {width:_0x4034a8,height:_0x4d7663}=_0x55ecc7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x55ecc7['cdnUrl'],this['imageDimension']={'width':_0x4034a8,'height':_0x4d7663},this['imageId']=_0x55ecc7['uuid'],this['imageUploadProgress']=null;const _0x14f8a6=_0x42751a['getAttribute']('src');this['_imageCache']['set'](_0x14f8a6,{'id':_0x55ecc7['uuid'],'url':_0x55ecc7['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x40e276=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x40e276['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5581a7,_0x561253){_0x5581a7['on']('apply',(_0x216689,_0x1b9286)=>{this['_replaceImage'](_0x561253,_0x1b9286['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5581a7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5581a7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4e9a0c,_0x17da4b,_0x27dbfa){const _0x44e042=this['_editor'],{width:_0x3176d5,height:_0x6d26a8}=S(_0x17da4b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5cfe26,imageSources:_0x22ae14}=C(_0x17da4b,_0x3176d5);_0x44e042['model']['change'](_0x454cf9=>{if('$graveyard'===_0x4e9a0c['root']['rootName']){_0x44e042['execute']('insertImage',{'imageType':_0x4e9a0c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4e9a0c['getAttributes']()),'uploadcareImageId':_0x27dbfa,'src':_0x5cfe26,'sources':_0x22ae14,'width':_0x3176d5,'height':_0x6d26a8}});const _0x380ffa=_0x4e9a0c['getChildren']();_0x4e9a0c=_0x44e042['model']['document']['selection']['getSelectedElement']();for(const _0x5b5a5a of _0x380ffa)_0x454cf9['append'](_0x454cf9['cloneElement'](_0x5b5a5a),_0x4e9a0c);}else _0x454cf9['setSelection'](_0x4e9a0c,'on'),_0x44e042['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4e9a0c['getAttributes']()),'uploadcareImageId':_0x27dbfa,'src':_0x5cfe26,'sources':_0x22ae14,'width':_0x3176d5,'height':_0x6d26a8},_0x4e9a0c);_0x454cf9['setSelection'](_0x4e9a0c,'on');});}async['_getImageAsFile'](_0x13c512){const _0x3cc94b=_0x31348a['window'],_0x3d0181=_0x31348a['document']['location']['href'],_0x55c2a2=new _0x3cc94b['URL'](_0x13c512['getAttribute']('src'),_0x3d0181);if('data:'===_0x55c2a2['protocol']){const _0x3d612e=_0x55c2a2['href']['split'](','),_0x1b7bc8=_0x3d612e[0x0]['match'](/:(.*?);/)[0x1],_0x1b8cab=_0x1b7bc8['split']('/')[0x1],_0x124361=_0x3cc94b['atob'](_0x3d612e[_0x3d612e['length']-0x1]);let _0x4074e3=_0x124361['length'];const _0x22a4db=new _0x3cc94b['Uint8Array'](_0x4074e3);for(;_0x4074e3--;)_0x22a4db[_0x4074e3]=_0x124361['charCodeAt'](_0x4074e3);return new _0x3cc94b['File']([_0x22a4db],'image.'+_0x1b8cab,{'type':_0x1b7bc8});}const _0x5b5a6c=_0x55c2a2['href']['split']('/'),_0x5abf99=_0x5b5a6c[_0x5b5a6c['length']-0x1],_0x2741e5=_0x5abf99['split']('.')[0x1];return _0x3cc94b['fetch'](_0x55c2a2['href'])['then'](_0x29be1b=>_0x29be1b['clone']()['blob']())['then'](_0x46921a=>new _0x3cc94b['File']([_0x46921a],_0x5abf99,{'type':'image/'+_0x2741e5}));}}class Q extends _0x2f66f8{['imageEditController'];static get['requires'](){return[_0x3ce802];}['_isEditable'];constructor(_0x23c43b){super(_0x23c43b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x560a78){const _0x308d83=z(_0x560a78);return _0x2887a3=>!(!_0x2887a3||!_0x2887a3['is']('element','imageBlock')&&!_0x2887a3['is']('element','imageInline'))&&(!!_0x2887a3['hasAttribute']('uploadcareImageId')||!!_0x2887a3['hasAttribute']('src')&&_0x308d83(_0x2887a3['getAttribute']('src')));}(_0x23c43b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x45e93d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x45e93d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3eddd5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3eddd5&&(_0x3eddd5['is']('element','imageBlock')||_0x3eddd5['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x3ce802),_0x3eddd5),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x2f66f8{['refresh'](){const _0x9f533=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x9f533&&(_0x9f533['is']('element','imageBlock')||_0x9f533['is']('element','imageInline')));}['execute'](_0x1c4e96){const _0x40d70e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x34804c=>{_0x34804c['setAttributes'](_0x1c4e96,_0x40d70e),_0x34804c['removeAttribute']('srcset',_0x40d70e),_0x34804c['removeAttribute']('sizes',_0x40d70e);});}}class m extends _0x49cc3e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x162ff5,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x6b517f}=this;_0x6b517f['commands']['add']('uploadcareImageEdit',new Q(_0x6b517f)),_0x6b517f['commands']['add']('uploadcareImageReplace',new V(_0x6b517f));}}class g extends _0x49cc3e{['_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 _0x4d38e4=this['editor'];_0x4d38e4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4ed673=>{const _0x5b14a4=_0x4d38e4['commands']['get']('uploadcareImageEdit'),_0x3f3615=new _0x12de04(_0x4ed673),t=_0x4ed673['t'];return _0x3f3615['set']({'icon':_0x1fb0ac,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3f3615['bind']('isEnabled')['to'](_0x5b14a4),_0x3f3615['bind']('isOn')['to'](_0x5b14a4,'isActive'),this['listenTo'](_0x3f3615,'execute',()=>{_0x4d38e4['execute']('uploadcareImageEdit'),_0x4d38e4['editing']['view']['focus']();}),_0x3f3615;}),this['_initConfig']();}['_initConfig'](){const _0x4b33c0=_0x2ba8a1(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4b33c0),this['listenTo'](this['editor'],'destroy',()=>{_0x4b33c0['remove']();});}}class et extends _0x49cc3e{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,Q 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':_0x607184=>0x1!=_0x607184}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xaf8230=>{const {af:{dictionary:_0x3b7afc,getPluralForm:_0x337dc9}}={'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':_0x3d3d10=>0x1!=_0x3d3d10}};_0xaf8230['af']||={'dictionary':{},'getPluralForm':null},_0xaf8230['af']['dictionary']=Object['assign'](_0xaf8230['af']['dictionary'],_0x3b7afc),_0xaf8230['af']['getPluralForm']=_0x337dc9;})(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':_0x2eb1e5=>0x0==_0x2eb1e5?0x0:0x1==_0x2eb1e5?0x1:0x2==_0x2eb1e5?0x2:_0x2eb1e5%0x64>=0x3&&_0x2eb1e5%0x64<=0xa?0x3:_0x2eb1e5%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1e6363=>{const {ar:{dictionary:_0x2fd5a7,getPluralForm:_0x183f90}}={'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':_0x1cda19=>0x0==_0x1cda19?0x0:0x1==_0x1cda19?0x1:0x2==_0x1cda19?0x2:_0x1cda19%0x64>=0x3&&_0x1cda19%0x64<=0xa?0x3:_0x1cda19%0x64>=0xb?0x4:0x5}};_0x1e6363['ar']||={'dictionary':{},'getPluralForm':null},_0x1e6363['ar']['dictionary']=Object['assign'](_0x1e6363['ar']['dictionary'],_0x2fd5a7),_0x1e6363['ar']['getPluralForm']=_0x183f90;})(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':_0x5e36b9=>0x1!=_0x5e36b9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5e7c20=>{const {ast:{dictionary:_0x11163a,getPluralForm:_0x4ec55a}}={'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':_0x40d8d6=>0x1!=_0x40d8d6}};_0x5e7c20['ast']||={'dictionary':{},'getPluralForm':null},_0x5e7c20['ast']['dictionary']=Object['assign'](_0x5e7c20['ast']['dictionary'],_0x11163a),_0x5e7c20['ast']['getPluralForm']=_0x4ec55a;})(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':_0x8d9430=>0x1!=_0x8d9430}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x430910=>{const {az:{dictionary:_0x50de95,getPluralForm:_0x32c091}}={'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':_0x278614=>0x1!=_0x278614}};_0x430910['az']||={'dictionary':{},'getPluralForm':null},_0x430910['az']['dictionary']=Object['assign'](_0x430910['az']['dictionary'],_0x50de95),_0x430910['az']['getPluralForm']=_0x32c091;})(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':_0x188785=>_0x188785%0xa==0x1&&_0x188785%0x64!=0xb?0x0:_0x188785%0xa>=0x2&&_0x188785%0xa<=0x4&&(_0x188785%0x64<0xa||_0x188785%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x50f820=>{const {be:{dictionary:_0xaa6fe4,getPluralForm:_0x27db54}}={'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':_0x51561f=>_0x51561f%0xa==0x1&&_0x51561f%0x64!=0xb?0x0:_0x51561f%0xa>=0x2&&_0x51561f%0xa<=0x4&&(_0x51561f%0x64<0xa||_0x51561f%0x64>=0x14)?0x1:0x2}};_0x50f820['be']||={'dictionary':{},'getPluralForm':null},_0x50f820['be']['dictionary']=Object['assign'](_0x50f820['be']['dictionary'],_0xaa6fe4),_0x50f820['be']['getPluralForm']=_0x27db54;})(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':_0x1793b2=>0x1!=_0x1793b2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x214f2a=>{const {bg:{dictionary:_0x3888ed,getPluralForm:_0x3c671a}}={'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':_0x2d6ba8=>0x1!=_0x2d6ba8}};_0x214f2a['bg']||={'dictionary':{},'getPluralForm':null},_0x214f2a['bg']['dictionary']=Object['assign'](_0x214f2a['bg']['dictionary'],_0x3888ed),_0x214f2a['bg']['getPluralForm']=_0x3c671a;})(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':_0x30c6fb=>0x1!=_0x30c6fb}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3ae5e3=>{const {bn:{dictionary:_0x54ed37,getPluralForm:_0x17fc3d}}={'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':_0x2b52c4=>0x1!=_0x2b52c4}};_0x3ae5e3['bn']||={'dictionary':{},'getPluralForm':null},_0x3ae5e3['bn']['dictionary']=Object['assign'](_0x3ae5e3['bn']['dictionary'],_0x54ed37),_0x3ae5e3['bn']['getPluralForm']=_0x17fc3d;})(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':_0x1b9b59=>_0x1b9b59%0xa==0x1&&_0x1b9b59%0x64!=0xb?0x0:_0x1b9b59%0xa>=0x2&&_0x1b9b59%0xa<=0x4&&(_0x1b9b59%0x64<0xa||_0x1b9b59%0x64>=0x14)?0x1:0x2}};
|