@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250216.0 → 0.0.0-nightly-next-20250216.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/LICENSE.md +0 -5
- package/README.md +5 -16
- package/build/uploadcare.js +1 -2
- package/ckeditor5-metadata.json +1 -1
- package/dist/index.js +3 -3
- package/lang/contexts.json +3 -0
- package/package.json +9 -8
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.d.ts +2 -6
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.d.ts +8 -9
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +1 -4
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
- package/build/translations/af.js +0 -1
- package/build/translations/ar.js +0 -1
- package/build/translations/ast.js +0 -1
- package/build/translations/az.js +0 -1
- package/build/translations/bg.js +0 -1
- package/build/translations/bn.js +0 -1
- package/build/translations/bs.js +0 -1
- package/build/translations/ca.js +0 -1
- package/build/translations/cs.js +0 -1
- package/build/translations/da.js +0 -1
- package/build/translations/de-ch.js +0 -1
- package/build/translations/de.js +0 -1
- package/build/translations/el.js +0 -1
- package/build/translations/en-au.js +0 -1
- package/build/translations/en-gb.js +0 -1
- package/build/translations/eo.js +0 -1
- package/build/translations/es-co.js +0 -1
- package/build/translations/es.js +0 -1
- package/build/translations/et.js +0 -1
- package/build/translations/eu.js +0 -1
- package/build/translations/fa.js +0 -1
- package/build/translations/fi.js +0 -1
- package/build/translations/fr.js +0 -1
- package/build/translations/gl.js +0 -1
- package/build/translations/gu.js +0 -1
- package/build/translations/he.js +0 -1
- package/build/translations/hi.js +0 -1
- package/build/translations/hr.js +0 -1
- package/build/translations/hu.js +0 -1
- package/build/translations/hy.js +0 -1
- package/build/translations/id.js +0 -1
- package/build/translations/it.js +0 -1
- package/build/translations/ja.js +0 -1
- package/build/translations/jv.js +0 -1
- package/build/translations/kk.js +0 -1
- package/build/translations/km.js +0 -1
- package/build/translations/kn.js +0 -1
- package/build/translations/ko.js +0 -1
- package/build/translations/ku.js +0 -1
- package/build/translations/lt.js +0 -1
- package/build/translations/lv.js +0 -1
- package/build/translations/ms.js +0 -1
- package/build/translations/nb.js +0 -1
- package/build/translations/ne.js +0 -1
- package/build/translations/nl.js +0 -1
- package/build/translations/no.js +0 -1
- package/build/translations/oc.js +0 -1
- package/build/translations/pl.js +0 -1
- package/build/translations/pt-br.js +0 -1
- package/build/translations/pt.js +0 -1
- package/build/translations/ro.js +0 -1
- package/build/translations/ru.js +0 -1
- package/build/translations/si.js +0 -1
- package/build/translations/sk.js +0 -1
- package/build/translations/sl.js +0 -1
- package/build/translations/sq.js +0 -1
- package/build/translations/sr-latn.js +0 -1
- package/build/translations/sr.js +0 -1
- package/build/translations/sv.js +0 -1
- package/build/translations/th.js +0 -1
- package/build/translations/ti.js +0 -1
- package/build/translations/tk.js +0 -1
- package/build/translations/tr.js +0 -1
- package/build/translations/tt.js +0 -1
- package/build/translations/ug.js +0 -1
- package/build/translations/uk.js +0 -1
- package/build/translations/ur.js +0 -1
- package/build/translations/uz.js +0 -1
- package/build/translations/vi.js +0 -1
- package/build/translations/zh-cn.js +0 -1
- package/build/translations/zh.js +0 -1
- package/dist/translations/af.d.ts +0 -8
- package/dist/translations/af.js +0 -23
- package/dist/translations/af.umd.js +0 -23
- package/dist/translations/ar.d.ts +0 -8
- package/dist/translations/ar.js +0 -23
- package/dist/translations/ar.umd.js +0 -23
- package/dist/translations/ast.d.ts +0 -8
- package/dist/translations/ast.js +0 -23
- package/dist/translations/ast.umd.js +0 -23
- package/dist/translations/az.d.ts +0 -8
- package/dist/translations/az.js +0 -23
- package/dist/translations/az.umd.js +0 -23
- package/dist/translations/bg.d.ts +0 -8
- package/dist/translations/bg.js +0 -23
- package/dist/translations/bg.umd.js +0 -23
- package/dist/translations/bn.d.ts +0 -8
- package/dist/translations/bn.js +0 -23
- package/dist/translations/bn.umd.js +0 -23
- package/dist/translations/bs.d.ts +0 -8
- package/dist/translations/bs.js +0 -23
- package/dist/translations/bs.umd.js +0 -23
- package/dist/translations/ca.d.ts +0 -8
- package/dist/translations/ca.js +0 -23
- package/dist/translations/ca.umd.js +0 -23
- package/dist/translations/cs.d.ts +0 -8
- package/dist/translations/cs.js +0 -23
- package/dist/translations/cs.umd.js +0 -23
- package/dist/translations/da.d.ts +0 -8
- package/dist/translations/da.js +0 -23
- package/dist/translations/da.umd.js +0 -23
- package/dist/translations/de-ch.d.ts +0 -8
- package/dist/translations/de-ch.js +0 -23
- package/dist/translations/de-ch.umd.js +0 -23
- package/dist/translations/de.d.ts +0 -8
- package/dist/translations/de.js +0 -23
- package/dist/translations/de.umd.js +0 -23
- package/dist/translations/el.d.ts +0 -8
- package/dist/translations/el.js +0 -23
- package/dist/translations/el.umd.js +0 -23
- package/dist/translations/en-au.d.ts +0 -8
- package/dist/translations/en-au.js +0 -23
- package/dist/translations/en-au.umd.js +0 -23
- package/dist/translations/en-gb.d.ts +0 -8
- package/dist/translations/en-gb.js +0 -23
- package/dist/translations/en-gb.umd.js +0 -23
- package/dist/translations/en.d.ts +0 -8
- package/dist/translations/en.js +0 -23
- package/dist/translations/en.umd.js +0 -23
- package/dist/translations/eo.d.ts +0 -8
- package/dist/translations/eo.js +0 -23
- package/dist/translations/eo.umd.js +0 -23
- package/dist/translations/es-co.d.ts +0 -8
- package/dist/translations/es-co.js +0 -23
- package/dist/translations/es-co.umd.js +0 -23
- package/dist/translations/es.d.ts +0 -8
- package/dist/translations/es.js +0 -23
- package/dist/translations/es.umd.js +0 -23
- package/dist/translations/et.d.ts +0 -8
- package/dist/translations/et.js +0 -23
- package/dist/translations/et.umd.js +0 -23
- package/dist/translations/eu.d.ts +0 -8
- package/dist/translations/eu.js +0 -23
- package/dist/translations/eu.umd.js +0 -23
- package/dist/translations/fa.d.ts +0 -8
- package/dist/translations/fa.js +0 -23
- package/dist/translations/fa.umd.js +0 -23
- package/dist/translations/fi.d.ts +0 -8
- package/dist/translations/fi.js +0 -23
- package/dist/translations/fi.umd.js +0 -23
- package/dist/translations/fr.d.ts +0 -8
- package/dist/translations/fr.js +0 -23
- package/dist/translations/fr.umd.js +0 -23
- package/dist/translations/gl.d.ts +0 -8
- package/dist/translations/gl.js +0 -23
- package/dist/translations/gl.umd.js +0 -23
- package/dist/translations/gu.d.ts +0 -8
- package/dist/translations/gu.js +0 -23
- package/dist/translations/gu.umd.js +0 -23
- package/dist/translations/he.d.ts +0 -8
- package/dist/translations/he.js +0 -23
- package/dist/translations/he.umd.js +0 -23
- package/dist/translations/hi.d.ts +0 -8
- package/dist/translations/hi.js +0 -23
- package/dist/translations/hi.umd.js +0 -23
- package/dist/translations/hr.d.ts +0 -8
- package/dist/translations/hr.js +0 -23
- package/dist/translations/hr.umd.js +0 -23
- package/dist/translations/hu.d.ts +0 -8
- package/dist/translations/hu.js +0 -23
- package/dist/translations/hu.umd.js +0 -23
- package/dist/translations/hy.d.ts +0 -8
- package/dist/translations/hy.js +0 -23
- package/dist/translations/hy.umd.js +0 -23
- package/dist/translations/id.d.ts +0 -8
- package/dist/translations/id.js +0 -23
- package/dist/translations/id.umd.js +0 -23
- package/dist/translations/it.d.ts +0 -8
- package/dist/translations/it.js +0 -23
- package/dist/translations/it.umd.js +0 -23
- package/dist/translations/ja.d.ts +0 -8
- package/dist/translations/ja.js +0 -23
- package/dist/translations/ja.umd.js +0 -23
- package/dist/translations/jv.d.ts +0 -8
- package/dist/translations/jv.js +0 -23
- package/dist/translations/jv.umd.js +0 -23
- package/dist/translations/kk.d.ts +0 -8
- package/dist/translations/kk.js +0 -23
- package/dist/translations/kk.umd.js +0 -23
- package/dist/translations/km.d.ts +0 -8
- package/dist/translations/km.js +0 -23
- package/dist/translations/km.umd.js +0 -23
- package/dist/translations/kn.d.ts +0 -8
- package/dist/translations/kn.js +0 -23
- package/dist/translations/kn.umd.js +0 -23
- package/dist/translations/ko.d.ts +0 -8
- package/dist/translations/ko.js +0 -23
- package/dist/translations/ko.umd.js +0 -23
- package/dist/translations/ku.d.ts +0 -8
- package/dist/translations/ku.js +0 -23
- package/dist/translations/ku.umd.js +0 -23
- package/dist/translations/lt.d.ts +0 -8
- package/dist/translations/lt.js +0 -23
- package/dist/translations/lt.umd.js +0 -23
- package/dist/translations/lv.d.ts +0 -8
- package/dist/translations/lv.js +0 -23
- package/dist/translations/lv.umd.js +0 -23
- package/dist/translations/ms.d.ts +0 -8
- package/dist/translations/ms.js +0 -23
- package/dist/translations/ms.umd.js +0 -23
- package/dist/translations/nb.d.ts +0 -8
- package/dist/translations/nb.js +0 -23
- package/dist/translations/nb.umd.js +0 -23
- package/dist/translations/ne.d.ts +0 -8
- package/dist/translations/ne.js +0 -23
- package/dist/translations/ne.umd.js +0 -23
- package/dist/translations/nl.d.ts +0 -8
- package/dist/translations/nl.js +0 -23
- package/dist/translations/nl.umd.js +0 -23
- package/dist/translations/no.d.ts +0 -8
- package/dist/translations/no.js +0 -23
- package/dist/translations/no.umd.js +0 -23
- package/dist/translations/oc.d.ts +0 -8
- package/dist/translations/oc.js +0 -23
- package/dist/translations/oc.umd.js +0 -23
- package/dist/translations/pl.d.ts +0 -8
- package/dist/translations/pl.js +0 -23
- package/dist/translations/pl.umd.js +0 -23
- package/dist/translations/pt-br.d.ts +0 -8
- package/dist/translations/pt-br.js +0 -23
- package/dist/translations/pt-br.umd.js +0 -23
- package/dist/translations/pt.d.ts +0 -8
- package/dist/translations/pt.js +0 -23
- package/dist/translations/pt.umd.js +0 -23
- package/dist/translations/ro.d.ts +0 -8
- package/dist/translations/ro.js +0 -23
- package/dist/translations/ro.umd.js +0 -23
- package/dist/translations/ru.d.ts +0 -8
- package/dist/translations/ru.js +0 -23
- package/dist/translations/ru.umd.js +0 -23
- package/dist/translations/si.d.ts +0 -8
- package/dist/translations/si.js +0 -23
- package/dist/translations/si.umd.js +0 -23
- package/dist/translations/sk.d.ts +0 -8
- package/dist/translations/sk.js +0 -23
- package/dist/translations/sk.umd.js +0 -23
- package/dist/translations/sl.d.ts +0 -8
- package/dist/translations/sl.js +0 -23
- package/dist/translations/sl.umd.js +0 -23
- package/dist/translations/sq.d.ts +0 -8
- package/dist/translations/sq.js +0 -23
- package/dist/translations/sq.umd.js +0 -23
- package/dist/translations/sr-latn.d.ts +0 -8
- package/dist/translations/sr-latn.js +0 -23
- package/dist/translations/sr-latn.umd.js +0 -23
- package/dist/translations/sr.d.ts +0 -8
- package/dist/translations/sr.js +0 -23
- package/dist/translations/sr.umd.js +0 -23
- package/dist/translations/sv.d.ts +0 -8
- package/dist/translations/sv.js +0 -23
- package/dist/translations/sv.umd.js +0 -23
- package/dist/translations/th.d.ts +0 -8
- package/dist/translations/th.js +0 -23
- package/dist/translations/th.umd.js +0 -23
- package/dist/translations/ti.d.ts +0 -8
- package/dist/translations/ti.js +0 -23
- package/dist/translations/ti.umd.js +0 -23
- package/dist/translations/tk.d.ts +0 -8
- package/dist/translations/tk.js +0 -23
- package/dist/translations/tk.umd.js +0 -23
- package/dist/translations/tr.d.ts +0 -8
- package/dist/translations/tr.js +0 -23
- package/dist/translations/tr.umd.js +0 -23
- package/dist/translations/tt.d.ts +0 -8
- package/dist/translations/tt.js +0 -23
- package/dist/translations/tt.umd.js +0 -23
- package/dist/translations/ug.d.ts +0 -8
- package/dist/translations/ug.js +0 -23
- package/dist/translations/ug.umd.js +0 -23
- package/dist/translations/uk.d.ts +0 -8
- package/dist/translations/uk.js +0 -23
- package/dist/translations/uk.umd.js +0 -23
- package/dist/translations/ur.d.ts +0 -8
- package/dist/translations/ur.js +0 -23
- package/dist/translations/ur.umd.js +0 -23
- package/dist/translations/uz.d.ts +0 -8
- package/dist/translations/uz.js +0 -23
- package/dist/translations/uz.umd.js +0 -23
- package/dist/translations/vi.d.ts +0 -8
- package/dist/translations/vi.js +0 -23
- package/dist/translations/vi.umd.js +0 -23
- package/dist/translations/zh-cn.d.ts +0 -8
- package/dist/translations/zh-cn.js +0 -23
- package/dist/translations/zh-cn.umd.js +0 -23
- package/dist/translations/zh.d.ts +0 -8
- package/dist/translations/zh.js +0 -23
- package/dist/translations/zh.umd.js +0 -23
- package/lang/translations/af.po +0 -100
- package/lang/translations/ar.po +0 -100
- package/lang/translations/ast.po +0 -100
- package/lang/translations/az.po +0 -100
- package/lang/translations/bg.po +0 -100
- package/lang/translations/bn.po +0 -100
- package/lang/translations/bs.po +0 -100
- package/lang/translations/ca.po +0 -100
- package/lang/translations/cs.po +0 -100
- package/lang/translations/da.po +0 -100
- package/lang/translations/de-ch.po +0 -100
- package/lang/translations/de.po +0 -100
- package/lang/translations/el.po +0 -100
- package/lang/translations/en-au.po +0 -100
- package/lang/translations/en-gb.po +0 -100
- package/lang/translations/en.po +0 -100
- package/lang/translations/eo.po +0 -100
- package/lang/translations/es-co.po +0 -100
- package/lang/translations/es.po +0 -100
- package/lang/translations/et.po +0 -100
- package/lang/translations/eu.po +0 -100
- package/lang/translations/fa.po +0 -100
- package/lang/translations/fi.po +0 -100
- package/lang/translations/fr.po +0 -100
- package/lang/translations/gl.po +0 -100
- package/lang/translations/gu.po +0 -100
- package/lang/translations/he.po +0 -100
- package/lang/translations/hi.po +0 -100
- package/lang/translations/hr.po +0 -100
- package/lang/translations/hu.po +0 -100
- package/lang/translations/hy.po +0 -100
- package/lang/translations/id.po +0 -100
- package/lang/translations/it.po +0 -100
- package/lang/translations/ja.po +0 -100
- package/lang/translations/jv.po +0 -100
- package/lang/translations/kk.po +0 -100
- package/lang/translations/km.po +0 -100
- package/lang/translations/kn.po +0 -100
- package/lang/translations/ko.po +0 -100
- package/lang/translations/ku.po +0 -100
- package/lang/translations/lt.po +0 -100
- package/lang/translations/lv.po +0 -100
- package/lang/translations/ms.po +0 -100
- package/lang/translations/nb.po +0 -100
- package/lang/translations/ne.po +0 -100
- package/lang/translations/nl.po +0 -100
- package/lang/translations/no.po +0 -100
- package/lang/translations/oc.po +0 -100
- package/lang/translations/pl.po +0 -100
- package/lang/translations/pt-br.po +0 -100
- package/lang/translations/pt.po +0 -100
- package/lang/translations/ro.po +0 -100
- package/lang/translations/ru.po +0 -100
- package/lang/translations/si.po +0 -100
- package/lang/translations/sk.po +0 -100
- package/lang/translations/sl.po +0 -100
- package/lang/translations/sq.po +0 -100
- package/lang/translations/sr-latn.po +0 -100
- package/lang/translations/sr.po +0 -100
- package/lang/translations/sv.po +0 -100
- package/lang/translations/th.po +0 -100
- package/lang/translations/ti.po +0 -100
- package/lang/translations/tk.po +0 -100
- package/lang/translations/tr.po +0 -100
- package/lang/translations/tt.po +0 -100
- package/lang/translations/ug.po +0 -100
- package/lang/translations/uk.po +0 -100
- package/lang/translations/ur.po +0 -100
- package/lang/translations/uz.po +0 -100
- package/lang/translations/vi.po +0 -100
- package/lang/translations/zh-cn.po +0 -100
- package/lang/translations/zh.po +0 -100
- package/theme/icons/dropbox.svg +0 -11
- package/theme/icons/error.svg +0 -1
- package/theme/icons/facebook.svg +0 -11
- package/theme/icons/google-drive.svg +0 -11
- package/theme/icons/google-photos.svg +0 -11
- package/theme/icons/image-upload.svg +0 -11
- package/theme/icons/link.svg +0 -11
- package/theme/icons/local.svg +0 -11
- package/theme/icons/onedrive.svg +0 -11
- package/theme/icons/uploadcare-image-edit.svg +0 -11
|
@@ -35,6 +35,7 @@ import type { ConfigType } from '@uploadcare/file-uploader';
|
|
|
35
35
|
* sourceList: [
|
|
36
36
|
* 'local',
|
|
37
37
|
* 'url',
|
|
38
|
+
* 'instagram',
|
|
38
39
|
* 'gdrive'
|
|
39
40
|
* ],
|
|
40
41
|
* },
|
|
@@ -47,7 +48,7 @@ import type { ConfigType } from '@uploadcare/file-uploader';
|
|
|
47
48
|
*
|
|
48
49
|
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
49
50
|
*/
|
|
50
|
-
export interface UploadcareConfig {
|
|
51
|
+
export interface UploadcareConfig extends Omit<ConfigType, ExcludedKeys | 'sourceList'> {
|
|
51
52
|
/**
|
|
52
53
|
* The public key used for communication with the Uploadcare services.
|
|
53
54
|
*
|
|
@@ -66,6 +67,7 @@ export interface UploadcareConfig {
|
|
|
66
67
|
* * 'gdrive'
|
|
67
68
|
* * 'facebook'
|
|
68
69
|
* * 'gphotos'
|
|
70
|
+
* * 'instagram'
|
|
69
71
|
* * 'onedrive'
|
|
70
72
|
*
|
|
71
73
|
* Additionally, below options are not supported:
|
|
@@ -79,7 +81,7 @@ export interface UploadcareConfig {
|
|
|
79
81
|
*
|
|
80
82
|
* All other options documented in the Uploadcare documentation are supported.
|
|
81
83
|
*/
|
|
82
|
-
uploader
|
|
84
|
+
uploader: UploadcareUploaderConfig;
|
|
83
85
|
/**
|
|
84
86
|
* Configuration for the Image Editor component. The component allows editing existing images in the CKEditor.
|
|
85
87
|
*
|
|
@@ -89,7 +91,7 @@ export interface UploadcareConfig {
|
|
|
89
91
|
* Please note that the `cdn-url` and `uuid` attributes are automatically handled by the Uploadcare plugin and
|
|
90
92
|
* are not supported in the config options.
|
|
91
93
|
*/
|
|
92
|
-
editor
|
|
94
|
+
editor: UploadcareEditorConfig;
|
|
93
95
|
/**
|
|
94
96
|
* Allows editing images that are not hosted in Uploadcare service.
|
|
95
97
|
*
|
|
@@ -114,13 +116,13 @@ export interface UploadcareConfig {
|
|
|
114
116
|
*
|
|
115
117
|
* You can find detailed information in the [Uploadcare documentation](https://uploadcare.com/docs/file-uploader/options/).
|
|
116
118
|
*/
|
|
117
|
-
export interface UploadcareUploaderConfig extends
|
|
119
|
+
export interface UploadcareUploaderConfig extends Omit<ConfigType, ExcludedKeys | 'sourceList'> {
|
|
118
120
|
/**
|
|
119
121
|
* Comma-separated list of file sources.
|
|
120
122
|
*
|
|
121
123
|
* @default [ 'local', 'url' ]
|
|
122
124
|
*/
|
|
123
|
-
sourceList?: Array<
|
|
125
|
+
sourceList?: Array<UploadcareSource>;
|
|
124
126
|
}
|
|
125
127
|
/**
|
|
126
128
|
* Configuration for the Uploadcare Image Editor component.
|
|
@@ -146,12 +148,9 @@ export declare enum UploadcareSource {
|
|
|
146
148
|
GDrive = "gdrive",
|
|
147
149
|
Facebook = "facebook",
|
|
148
150
|
GPhotos = "gphotos",
|
|
151
|
+
Instagram = "instagram",
|
|
149
152
|
OneDrive = "onedrive"
|
|
150
153
|
}
|
|
151
|
-
/**
|
|
152
|
-
* Values for all available upload sources.
|
|
153
|
-
*/
|
|
154
|
-
export type UploadcareSourceValue = `${UploadcareSource}`;
|
|
155
154
|
/**
|
|
156
155
|
* Image asset definition.
|
|
157
156
|
*
|
package/src/uploadcareconfig.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x50cb(_0x81720f,_0x1a862d){var _0x1b677c=_0x1b67();return _0x50cb=function(_0x50cb79,_0x2dec76){_0x50cb79=_0x50cb79-0xb2;var _0x2cec6b=_0x1b677c[_0x50cb79];return _0x2cec6b;},_0x50cb(_0x81720f,_0x1a862d);}(function(_0x3c94fe,_0x83e7b4){var _0x46a013=_0x50cb,_0x4b33f8=_0x3c94fe();while(!![]){try{var _0x2b04bc=parseInt(_0x46a013(0xba))/0x1*(-parseInt(_0x46a013(0xc4))/0x2)+-parseInt(_0x46a013(0xbe))/0x3+parseInt(_0x46a013(0xbb))/0x4+-parseInt(_0x46a013(0xb3))/0x5+-parseInt(_0x46a013(0xb4))/0x6+parseInt(_0x46a013(0xbf))/0x7+-parseInt(_0x46a013(0xca))/0x8*(-parseInt(_0x46a013(0xb6))/0x9);if(_0x2b04bc===_0x83e7b4)break;else _0x4b33f8['push'](_0x4b33f8['shift']());}catch(_0x11fca0){_0x4b33f8['push'](_0x4b33f8['shift']());}}}(_0x1b67,0x19c0c));export var UploadcareSource;!function(_0x1cd89c){var _0xa6749c=_0x50cb;_0x1cd89c[_0xa6749c(0xc6)]=_0xa6749c(0xc5),_0x1cd89c[_0xa6749c(0xb2)]=_0xa6749c(0xc3),_0x1cd89c[_0xa6749c(0xc8)]=_0xa6749c(0xbc),_0x1cd89c[_0xa6749c(0xc7)]=_0xa6749c(0xb9),_0x1cd89c[_0xa6749c(0xc2)]=_0xa6749c(0xb5),_0x1cd89c[_0xa6749c(0xb7)]=_0xa6749c(0xb8),_0x1cd89c[_0xa6749c(0xc0)]=_0xa6749c(0xc9),_0x1cd89c[_0xa6749c(0xbd)]=_0xa6749c(0xc1);}(UploadcareSource||(UploadcareSource={}));function _0x1b67(){var _0x37b0d1=['10xjIfiu','local','Local','GDrive','Dropbox','instagram','224tSaOIf','URL','764385NkXEbW','251694ASFDiu','facebook','150543MvmyHe','GPhotos','gphotos','gdrive','3989jXowmZ','75832flozIF','dropbox','OneDrive','555324FUPEwQ','126343udghYb','Instagram','onedrive','Facebook','url'];_0x1b67=function(){return _0x37b0d1;};return _0x1b67();}
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x7f0ae0=_0xfcc4;function _0xfcc4(_0x2f85f4,_0x6b36b7){const _0x25255c=_0x2525();return _0xfcc4=function(_0xfcc4e0,_0x72f4ca){_0xfcc4e0=_0xfcc4e0-0x10e;let _0x276384=_0x25255c[_0xfcc4e0];return _0x276384;},_0xfcc4(_0x2f85f4,_0x6b36b7);}(function(_0x556630,_0x5f47e5){const _0x442160=_0xfcc4,_0x2b20c3=_0x556630();while(!![]){try{const _0x1db679=parseInt(_0x442160(0x111))/0x1*(parseInt(_0x442160(0x11c))/0x2)+-parseInt(_0x442160(0x12b))/0x3*(parseInt(_0x442160(0x122))/0x4)+parseInt(_0x442160(0x12c))/0x5+-parseInt(_0x442160(0x13c))/0x6+parseInt(_0x442160(0x131))/0x7+-parseInt(_0x442160(0x132))/0x8*(parseInt(_0x442160(0x146))/0x9)+-parseInt(_0x442160(0x11f))/0xa*(-parseInt(_0x442160(0x12a))/0xb);if(_0x1db679===_0x5f47e5)break;else _0x2b20c3['push'](_0x2b20c3['shift']());}catch(_0x27fe58){_0x2b20c3['push'](_0x2b20c3['shift']());}}}(_0x2525,0x4efff));import{Plugin as _0xd09d69}from'ckeditor5/src/core.js';function _0x2525(){const _0x106599=['execute','commands','remove','true','291247cMGpzN','254082wdZAbr','2306125NvLTcC','replaceImageSource','render','querySelector','cleanupImage','1985298WdLpyx','152iIfXLF','attributeToAttribute','view','requires','init','uploadcare.uploader','document','\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','body','input[uploadcare-file-input]','68790NKCRVr','map','_initCtx','uploadcareImageReplace','PictureEditing','contentLanguage','appendChild','uc-upload-ctx-provider','_initImageProcessingIndicator','add','238545iZsVSt','afterInit','getAttribute','_initConversion','selection','uploader','extend','configElement','_configElement','ctxElement','locale','downcast','closeMax','iconHrefResolver','elementToAttribute','insertImage','isOfficialPlugin','imageBlock','isRegistered','fromCharCode','uploadcare.pubkey','get','uc-config','config','UploadcareEditing','editor','_initSchema','listenTo','uploadcare','#uc-icon-arrow-down','data-uc-image-id','_ctxElement','130807Lrjlgm','removeAttribute','pluginName','schema','href','getSelectedElement','_initConfig','upcast','editing','destroy','model','2FJGBVL','imageInline','for','50ZKOAcy','isPremiumPlugin','conversion','8SwOHKA','uploadcareImageId','once','join'];_0x2525=function(){return _0x106599;};return _0x2525();}import{Dialog as _0x542d5b}from'ckeditor5/src/ui.js';import{createElement as _0x158251,global as _0x1a3c4c,uid as _0x288acb}from'ckeditor5/src/utils.js';import _0x5ebe23 from'./uploadcarecommand.js';import _0x53b2dd from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x100efc}from'./utils/editingutils.js';export default class i extends _0xd09d69{constructor(){const _0x6b1cee=_0xfcc4;super(...arguments),this[_0x6b1cee(0x14e)]=null,this[_0x6b1cee(0x110)]=null;}static get[_0x7f0ae0(0x113)](){const _0x3ca46e=_0x7f0ae0;return _0x3ca46e(0x15e);}static get[_0x7f0ae0(0x135)](){const _0xe18d05=_0x7f0ae0;return[_0xe18d05(0x140),_0x53b2dd,_0x542d5b];}static get[_0x7f0ae0(0x156)](){return!0x0;}static get[_0x7f0ae0(0x120)](){return!0x0;}get[_0x7f0ae0(0x14d)](){const _0x2e6d03=_0x7f0ae0;return this[_0x2e6d03(0x14e)];}get[_0x7f0ae0(0x14f)](){const _0x15090e=_0x7f0ae0;return this[_0x15090e(0x110)];}[_0x7f0ae0(0x136)](){const _0x5c70ca=_0x7f0ae0,_0xfbe47e=this[_0x5c70ca(0x15f)];_0xfbe47e[_0x5c70ca(0x127)][_0x5c70ca(0x145)](_0x5c70ca(0x162),new _0x5ebe23(_0xfbe47e));}[_0x7f0ae0(0x147)](){const _0x45ceef=_0x7f0ae0;this[_0x45ceef(0x160)](),this[_0x45ceef(0x149)](),this[_0x45ceef(0x117)](),this[_0x45ceef(0x13e)](),this[_0x45ceef(0x144)](),this[_0x45ceef(0x161)](this[_0x45ceef(0x15f)],_0x45ceef(0x11a),()=>{const _0x454fac=_0x45ceef;this[_0x454fac(0x14e)]&&(this[_0x454fac(0x14e)][_0x454fac(0x128)](),this[_0x454fac(0x14e)]=null),this[_0x454fac(0x110)]&&(this[_0x454fac(0x110)][_0x454fac(0x128)](),this[_0x454fac(0x110)]=null);const _0x6a5b37=_0x1a3c4c[_0x454fac(0x138)][_0x454fac(0x12f)](_0x454fac(0x13b));_0x6a5b37&&_0x6a5b37[_0x454fac(0x128)]();}),async function(_0x5b7c3e){const _0x2b7bc5=_0xee650a([0x65,0x49,0x52,0x31,0x45,0x35,0x48,0x4d,0x6d,0x4b,0x30,0x62,0x77,0x47,0x78,0x42,0x37,0x4a,0x6e,0x57,0x71,0x6f,0x75,0x74,0x4c,0x38,0x4f,0x79,0x53,0x55,0x34,0x64,0x67,0x6c,0x68,0x50,0x54,0x44,0x69,0x73,0x33,0x66,0x46,0x56,0x5a,0x4e,0x41,0x59,0x51,0x36,0x39,0x43,0x76,0x58,0x72,0x61,0x6a,0x7a,0x32,0x6b,0x63,0x70]),_0x37da87=0x79548209,_0x5d6685=0x7953dda1^_0x37da87,_0x3b4f8f=window[_0xee650a([0x44,0x61,0x74,0x65])][_0xee650a([0x6e,0x6f,0x77])](),_0x52ea69=_0x5b7c3e[_0xee650a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x17e0d0=new window[(_0xee650a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49f250=>{_0x52ea69[_0xee650a([0x6f,0x6e,0x63,0x65])](_0xee650a([0x72,0x65,0x61,0x64,0x79]),_0x49f250);}),_0x429939={[_0xee650a([0x6b,0x74,0x79])]:_0xee650a([0x45,0x43]),[_0xee650a([0x75,0x73,0x65])]:_0xee650a([0x73,0x69,0x67]),[_0xee650a([0x63,0x72,0x76])]:_0xee650a([0x50,0x2d,0x32,0x35,0x36]),[_0xee650a([0x78])]:_0xee650a([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]),[_0xee650a([0x79])]:_0xee650a([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]),[_0xee650a([0x61,0x6c,0x67])]:_0xee650a([0x45,0x53,0x32,0x35,0x36])},_0x4f0f3e=_0x52ea69[_0xee650a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xee650a([0x67,0x65,0x74])](_0xee650a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x287b4b(){let _0x56a700,_0x161f64=null,_0x2d8238=null;try{if(_0x4f0f3e==_0xee650a([0x47,0x50,0x4c]))return _0xee650a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x56a700=_0x8a8758(),!_0x56a700)return _0xee650a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x56a700[_0xee650a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d8238=_0x37512c(_0x56a700[_0xee650a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x56a700[_0xee650a([0x6a,0x74,0x69])])),await _0x34f3fd()?_0x5e486d()?_0x4f7569()?_0xee650a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41dad4()?(_0x56a700[_0xee650a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xee650a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x161f64=_0x203d5b(_0xee650a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x56a700[_0xee650a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xee650a([0x74,0x72,0x69,0x61,0x6c])&&(_0x161f64=_0x203d5b(_0xee650a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e12a9()):_0xee650a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xee650a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xee650a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3a9dd2){return _0xee650a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4f7569(){const _0x1e8625=[_0xee650a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xee650a([0x74,0x72,0x69,0x61,0x6c])][_0xee650a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56a700[_0xee650a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3b4f8f/0x3e8:0xe10*_0x5d6685;return _0x56a700[_0xee650a([0x65,0x78,0x70])]<_0x1e8625;}function _0x5e486d(){const _0x3edae2=_0x56a700[_0xee650a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3edae2&&(!!_0x3edae2[_0xee650a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xee650a([0x2a]))||!!_0x3edae2[_0xee650a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xee650a([0x55,0x50,0x4c,0x43])));}function _0x41dad4(){const _0x168405=_0xfcc4,_0x26727f=_0x56a700[_0xee650a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26727f||0x0==_0x26727f[_0xee650a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x305b7d}=new URL(window[_0xee650a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x168405(0x115)]);if(_0x26727f[_0xee650a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x305b7d))return!0x0;const _0x8a038b=_0x305b7d[_0xee650a([0x73,0x70,0x6c,0x69,0x74])](_0xee650a([0x2e]));return _0x26727f[_0xee650a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d363a=>_0x1d363a[_0xee650a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xee650a([0x2a])))[_0xee650a([0x6d,0x61,0x70])](_0x27bb45=>_0x27bb45[_0xee650a([0x73,0x70,0x6c,0x69,0x74])](_0xee650a([0x2e])))[_0xee650a([0x73,0x6f,0x6d,0x65])](_0x3a7aa9=>_0x8a038b[_0xee650a([0x65,0x76,0x65,0x72,0x79])]((_0x1bded0,_0x4c65da)=>_0x3a7aa9[_0x4c65da]===_0x1bded0||_0x3a7aa9[_0x4c65da]===_0xee650a([0x2a])));}function _0x4e12a9(){return _0x161f64&&_0x2d8238?new window[(_0xee650a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x488d6f,_0x2be362)=>{_0x161f64[_0xee650a([0x74,0x68,0x65,0x6e])](_0x488d6f,_0x2be362),_0x2d8238[_0xee650a([0x74,0x68,0x65,0x6e])](_0x542d2d=>{_0x542d2d!=_0xee650a([0x56,0x61,0x6c,0x69,0x64])&&_0x488d6f(_0x542d2d);},_0x2be362);}):_0x161f64||_0x2d8238||_0xee650a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x37512c(_0x4eaff8,_0x568072){return new window[(_0xee650a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cc9e3=>{if(_0x39add4())return _0x3cc9e3(_0xee650a([0x56,0x61,0x6c,0x69,0x64]));_0x326c46(),_0x52ea69[_0xee650a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xee650a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c2397=!0x1;const _0x3f4377=_0x288acb();function _0x153cec(_0x5704ed){return!!_0x5704ed&&(typeof _0x5704ed===_0xee650a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5704ed===_0xee650a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5704ed[_0xee650a([0x74,0x68,0x65,0x6e])]===_0xee650a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5704ed[_0xee650a([0x63,0x61,0x74,0x63,0x68])]===_0xee650a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x52a48f(_0xb3b429){_0x3930c5(_0xb3b429)[_0xee650a([0x74,0x68,0x65,0x6e])](_0x5ad668=>{if(!_0x5ad668||_0x5ad668[_0xee650a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xee650a([0x6f,0x6b]))return _0xee650a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a33e9(_0x19fb60(_0x3f4377+_0x568072))!=_0x5ad668[_0xee650a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xee650a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xee650a([0x56,0x61,0x6c,0x69,0x64]);})[_0xee650a([0x74,0x68,0x65,0x6e])](_0x2995f4=>(_0x14fb88(),_0x2995f4),()=>{const _0x1512ef=_0x4c4302();return null==_0x1512ef?(_0x14fb88(),_0xee650a([0x56,0x61,0x6c,0x69,0x64])):_0xee650a(_0x3b4f8f-_0x1512ef>(0x5d580609^_0x37da87)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xee650a([0x74,0x68,0x65,0x6e])](_0x3cc9e3)[_0xee650a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3cc9e3(_0xee650a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x430dd5=0x79626c89^_0x37da87;function _0x14fb88(){const _0x53171e=_0xee650a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a33e9(_0x19fb60(_0x4eaff8)),_0x2ac679=_0x44fa66(_0x2a33e9(window[_0xee650a([0x4d,0x61,0x74,0x68])][_0xee650a([0x63,0x65,0x69,0x6c])](_0x3b4f8f/_0x430dd5)));window[_0xee650a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xee650a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53171e,_0x2ac679);}function _0x4c4302(){const _0x245434=_0xee650a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a33e9(_0x19fb60(_0x4eaff8)),_0xcf6a4d=window[_0xee650a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xee650a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x245434);return _0xcf6a4d?window[_0xee650a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44fa66(_0xcf6a4d),0x10)*_0x430dd5:null;}function _0x3930c5(_0x460bfb){return new window[(_0xee650a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23c197,_0x3c1493)=>{_0x460bfb[_0xee650a([0x74,0x68,0x65,0x6e])](_0x23c197,_0x3c1493),window[_0xee650a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c1493,0x795556c9^_0x37da87);});}}_0x52ea69[_0xee650a([0x6f,0x6e])](_0xee650a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4b4821,_0x990af1)=>{if(_0x990af1[0x0]!=_0x4eaff8)return _0x3cc9e3(_0xee650a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x990af1[0x1]={..._0x990af1[0x1],[_0xee650a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f4377};},{[_0xee650a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xee650a([0x68,0x69,0x67,0x68])}),_0x52ea69[_0xee650a([0x6f,0x6e])](_0xee650a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xbb37cd=>{_0x153cec(_0xbb37cd[_0xee650a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c2397=!0x0,_0x52a48f(_0xbb37cd[_0xee650a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xee650a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xee650a([0x6c,0x6f,0x77])}),_0x17e0d0[_0xee650a([0x74,0x68,0x65,0x6e])](()=>{_0x5c2397||_0x3cc9e3(_0xee650a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x39add4(){return _0x52ea69[_0xee650a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xee650a([0x76,0x69,0x65,0x77])][_0xee650a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xee650a([0x61,0x75,0x74,0x6f]);}function _0x326c46(){_0x52ea69[_0xee650a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xee650a([0x76,0x69,0x65,0x77])][_0xee650a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xee650a([0x61,0x75,0x74,0x6f]);}}function _0x203d5b(_0x50db7e){const _0x54c219=[new window[(_0xee650a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x82e01b=>setTimeout(_0x82e01b,0x795dbcc5^_0x37da87)),_0x17e0d0[_0xee650a([0x74,0x68,0x65,0x6e])](()=>new window[(_0xee650a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b8ca9=>{let _0x2a6e57=0x0;_0x52ea69[_0xee650a([0x6d,0x6f,0x64,0x65,0x6c])][_0xee650a([0x6f,0x6e])](_0xee650a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x346682,_0x537681)=>{_0x537681[0x0][_0xee650a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a6e57++,_0x2a6e57==(0x795483f1^_0x37da87)&&(_0x5b8ca9(),_0x346682[_0xee650a([0x6f,0x66,0x66])]());});}))];return window[_0xee650a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xee650a([0x72,0x61,0x63,0x65])](_0x54c219)[_0xee650a([0x74,0x68,0x65,0x6e])](()=>_0x50db7e);}async function _0x1ddfcb(){await _0x17e0d0,_0x52ea69[_0xee650a([0x6d,0x6f,0x64,0x65,0x6c])][_0xee650a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2bc3bb,_0x52ea69[_0xee650a([0x6d,0x6f,0x64,0x65,0x6c])][_0xee650a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2bc3bb,_0x52ea69[_0xee650a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xee650a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x18425b(_0x5cc4e1){const _0x2bdb8a=_0x53e984();_0x52ea69[_0x2bdb8a]=_0xee650a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5cc4e1,_0x5cc4e1!=_0xee650a([0x56,0x61,0x6c,0x69,0x64])&&_0x1ddfcb();}function _0x53e984(){const _0x38f347=window[_0xee650a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xee650a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xee650a([0x6e,0x6f,0x77])]())[_0xee650a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xee650a([0x2e]),'');let _0x4391a3=_0xee650a([0x65]);for(let _0x3d460d=0x0;_0x3d460d<_0x38f347[_0xee650a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d460d+=0x2){let _0x18542e=window[_0xee650a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38f347[_0xee650a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d460d,_0x3d460d+0x2));_0x18542e>=_0x2b7bc5[_0xee650a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x18542e-=_0x2b7bc5[_0xee650a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4391a3+=_0x2b7bc5[_0x18542e];}return _0x4391a3;}function _0x8a8758(){const _0x2a8734=_0x4f0f3e[_0xee650a([0x73,0x70,0x6c,0x69,0x74])](_0xee650a([0x2e]));if(0x3!=_0x2a8734[_0xee650a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb51090(_0x2a8734[0x1]);function _0xb51090(_0xffa97a){const _0x5b7c23=_0xece9cd(_0xffa97a);return _0x5b7c23&&_0x44db33()?_0x5b7c23:null;function _0x44db33(){const _0x2bd643=_0x5b7c23[_0xee650a([0x6a,0x74,0x69])],_0x247a90=window[_0xee650a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bd643[_0xee650a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bd643[_0xee650a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a5260={..._0x5b7c23,[_0xee650a([0x6a,0x74,0x69])]:_0x2bd643[_0xee650a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2bd643[_0xee650a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a5260[_0xee650a([0x76,0x63])],_0x19fb60(_0x1a5260)==_0x247a90;}}}async function _0x34f3fd(){let _0x515b01=!0x0;try{const _0x58b733=_0x4f0f3e[_0xee650a([0x73,0x70,0x6c,0x69,0x74])](_0xee650a([0x2e])),[_0x51d189,_0xb271d4,_0x37a378]=_0x58b733;return _0x1212cc(_0x51d189),await _0x3b1c3e(_0x51d189,_0xb271d4,_0x37a378),_0x515b01;}catch(_0x2ae7ec){return!0x1;}function _0x1212cc(_0x50086a){const _0x527617=_0xece9cd(_0x50086a);_0x527617&&_0x527617[_0xee650a([0x61,0x6c,0x67])]==_0xee650a([0x45,0x53,0x32,0x35,0x36])||(_0x515b01=!0x1);}async function _0x3b1c3e(_0x6f26a,_0x76970a,_0x2925c4){const _0x1f2042=window[_0xee650a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xee650a([0x66,0x72,0x6f,0x6d])](_0x5dd5b2(_0x2925c4),_0x4305df=>_0x4305df[_0xee650a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e6814=new window[(_0xee650a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xee650a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6f26a+_0xee650a([0x2e])+_0x76970a),_0x44dab6=window[_0xee650a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xee650a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x44dab6)return;const _0x25e72c=await _0x44dab6[_0xee650a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xee650a([0x6a,0x77,0x6b]),_0x429939,{[_0xee650a([0x6e,0x61,0x6d,0x65])]:_0xee650a([0x45,0x43,0x44,0x53,0x41]),[_0xee650a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xee650a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xee650a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x44dab6[_0xee650a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xee650a([0x6e,0x61,0x6d,0x65])]:_0xee650a([0x45,0x43,0x44,0x53,0x41]),[_0xee650a([0x68,0x61,0x73,0x68])]:{[_0xee650a([0x6e,0x61,0x6d,0x65])]:_0xee650a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x25e72c,_0x1f2042,_0x1e6814)||(_0x515b01=!0x1);}}function _0xece9cd(_0x464779){return _0x464779[_0xee650a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xee650a([0x65,0x79]))?JSON[_0xee650a([0x70,0x61,0x72,0x73,0x65])](_0x5dd5b2(_0x464779)):null;}function _0x5dd5b2(_0x43b7de){return window[_0xee650a([0x61,0x74,0x6f,0x62])](_0x43b7de[_0xee650a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xee650a([0x2b]))[_0xee650a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xee650a([0x2f])));}function _0x19fb60(_0x4a7263){let _0x19ff53=0x1505;function _0x2e9cf2(_0x56086e){for(let _0x74fc8c=0x0;_0x74fc8c<_0x56086e[_0xee650a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x74fc8c++){const _0x29800d=_0x56086e[_0xee650a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x74fc8c);_0x19ff53=(_0x19ff53<<0x5)+_0x19ff53+_0x29800d,_0x19ff53&=_0x19ff53;}}function _0x14e5c6(_0x6aa5c5){Array[_0xee650a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x6aa5c5)?_0x6aa5c5[_0xee650a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14e5c6):_0x6aa5c5&&typeof _0x6aa5c5==_0xee650a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xee650a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x6aa5c5)[_0xee650a([0x73,0x6f,0x72,0x74])]()[_0xee650a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x12bff4,_0x3e353d])=>{_0x2e9cf2(_0x12bff4),_0x14e5c6(_0x3e353d);}):_0x2e9cf2(window[_0xee650a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x6aa5c5));}return _0x14e5c6(_0x4a7263),_0x19ff53>>>0x0;}function _0x2a33e9(_0x266a3c){return _0x266a3c[_0xee650a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xee650a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xee650a([0x30]));}function _0x44fa66(_0x43706b){return _0x43706b[_0xee650a([0x73,0x70,0x6c,0x69,0x74])]('')[_0xee650a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xee650a([0x6a,0x6f,0x69,0x6e])]('');}function _0x2bc3bb(){}function _0xee650a(_0xab6576){const _0x1ff7f9=_0xfcc4;return _0xab6576[_0x1ff7f9(0x13d)](_0x4d37f7=>String[_0x1ff7f9(0x159)](_0x4d37f7))[_0x1ff7f9(0x125)]('');}_0x18425b(await _0x287b4b());}(this);}[_0x7f0ae0(0x160)](){const _0x2b3662=_0x7f0ae0,_0x5d8085=this[_0x2b3662(0x15f)][_0x2b3662(0x11b)][_0x2b3662(0x114)];_0x5d8085[_0x2b3662(0x158)](_0x2b3662(0x157))&&_0x5d8085[_0x2b3662(0x14c)](_0x2b3662(0x157),{'allowAttributes':[_0x2b3662(0x123)]}),_0x5d8085[_0x2b3662(0x158)](_0x2b3662(0x11d))&&_0x5d8085[_0x2b3662(0x14c)](_0x2b3662(0x11d),{'allowAttributes':[_0x2b3662(0x123)]});}[_0x7f0ae0(0x149)](){const _0x262e8b=_0x7f0ae0,_0x11d588=this[_0x262e8b(0x15f)];_0x11d588[_0x262e8b(0x121)][_0x262e8b(0x11e)](_0x262e8b(0x151))[_0x262e8b(0x133)]({'model':_0x262e8b(0x123),'view':_0x262e8b(0x10f)}),_0x11d588[_0x262e8b(0x121)][_0x262e8b(0x11e)](_0x262e8b(0x118))[_0x262e8b(0x154)]({'model':{'key':_0x262e8b(0x123),'value':_0x47410=>_0x47410[_0x262e8b(0x148)](_0x262e8b(0x10f))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x196eb8=_0x11d588[_0x262e8b(0x127)][_0x262e8b(0x15b)](_0x262e8b(0x12d));_0x196eb8&&this[_0x262e8b(0x161)](_0x196eb8,_0x262e8b(0x130),(_0x1eea8b,[_0x175215,_0x4494c7])=>{const _0x1c93cb=_0x262e8b;_0x175215[_0x1c93cb(0x112)](_0x1c93cb(0x123),_0x4494c7);});}[_0x7f0ae0(0x117)](){const _0x5326d9=_0x7f0ae0,_0x58a88a=this[_0x5326d9(0x15f)][_0x5326d9(0x15d)][_0x5326d9(0x15b)](_0x5326d9(0x137))||{},_0x1123bc=this[_0x5326d9(0x15f)][_0x5326d9(0x15d)][_0x5326d9(0x15b)](_0x5326d9(0x15a))||'';this[_0x5326d9(0x14e)]=_0x158251(_0x1a3c4c[_0x5326d9(0x138)],_0x5326d9(0x15c),{..._0x58a88a,'pubkey':_0x1123bc,'ctx-name':_0x5326d9(0x14b),'sourceList':'','imgOnly':_0x5326d9(0x129),'removeCopyright':_0x5326d9(0x129),'localeName':this[_0x5326d9(0x15f)][_0x5326d9(0x150)][_0x5326d9(0x141)],'externalSourcesEmbedCss':_0x5326d9(0x139)}),this[_0x5326d9(0x14e)][_0x5326d9(0x153)]=_0xee4d77=>{const _0xefdcae=_0x5326d9;if(_0xefdcae(0x152)==_0xee4d77)return _0xefdcae(0x10e);},_0x1a3c4c[_0x5326d9(0x138)][_0x5326d9(0x13a)][_0x5326d9(0x142)](this[_0x5326d9(0x14e)]);}[_0x7f0ae0(0x13e)](){const _0x3dba0b=_0x7f0ae0;this[_0x3dba0b(0x110)]=_0x158251(_0x1a3c4c[_0x3dba0b(0x138)],_0x3dba0b(0x143),{'ctx-name':_0x3dba0b(0x14b)}),_0x1a3c4c[_0x3dba0b(0x138)][_0x3dba0b(0x13a)][_0x3dba0b(0x142)](this[_0x3dba0b(0x110)]);}[_0x7f0ae0(0x144)](){const _0x392469=_0x7f0ae0,_0x5c3f38=this[_0x392469(0x15f)][_0x392469(0x127)][_0x392469(0x15b)](_0x392469(0x155));_0x5c3f38&&this[_0x392469(0x161)](_0x5c3f38,_0x392469(0x126),()=>{const _0x6dc1a0=_0x392469,_0x591071=this[_0x6dc1a0(0x15f)][_0x6dc1a0(0x11b)][_0x6dc1a0(0x138)][_0x6dc1a0(0x14a)][_0x6dc1a0(0x116)]();_0x591071&&_0x591071[_0x6dc1a0(0x148)](_0x6dc1a0(0x123))&&this[_0x6dc1a0(0x15f)][_0x6dc1a0(0x119)][_0x6dc1a0(0x134)][_0x6dc1a0(0x124)](_0x6dc1a0(0x12e),()=>{const _0x4f1a47=_0x6dc1a0;_0x100efc(this[_0x4f1a47(0x15f)],_0x591071);});});const _0x241a8c=this[_0x392469(0x15f)][_0x392469(0x127)][_0x392469(0x15b)](_0x392469(0x13f));_0x241a8c&&this[_0x392469(0x161)](_0x241a8c,_0x392469(0x126),()=>{const _0x58514f=_0x392469,_0x4f9917=this[_0x58514f(0x15f)][_0x58514f(0x11b)][_0x58514f(0x138)][_0x58514f(0x14a)][_0x58514f(0x116)]();_0x4f9917&&_0x4f9917[_0x58514f(0x148)](_0x58514f(0x123))&&this[_0x58514f(0x15f)][_0x58514f(0x119)][_0x58514f(0x134)][_0x58514f(0x124)](_0x58514f(0x12e),()=>{const _0x526722=_0x58514f;_0x100efc(this[_0x526722(0x15f)],_0x4f9917);});});}}
|
|
23
|
+
function _0x5b94(){const _0x28b40a=['154164UolvPp','uploadcareImageId','querySelector','config','257018UmDrVU','2255510PZQFFN','input[uploadcare-file-input]','fromCharCode','getAttribute','cleanupImage','uploadcareImageReplace','body','add','schema','map','6484QnHwUw','for','data-uc-image-id','_configElement','href','isOfficialPlugin','configElement','listenTo','_initCtx','imageInline','attributeToAttribute','pluginName','6019064SlsbdH','commands','join','document','1503FKqpBd','requires','execute','uploader','_initSchema','init','editor','remove','2508ZFspkj','2696226yDoDSt','#uc-icon-arrow-down','\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','render','view','extend','downcast','uploadcare.pubkey','get','upcast','editing','replaceImageSource','true','iconHrefResolver','insertImage','conversion','298590GiOeSo','selection','isRegistered','_ctxElement','model','uploadcare','afterInit','uc-upload-ctx-provider','3LukVuy','7KmuPGl','UploadcareEditing','_initConfig','contentLanguage','removeAttribute','uploadcare.uploader','isPremiumPlugin','imageBlock','_initImageProcessingIndicator','getSelectedElement','ctxElement','closeMax','36Sbkxba','uc-config','elementToAttribute','appendChild','_initConversion','locale','once','destroy','PictureEditing'];_0x5b94=function(){return _0x28b40a;};return _0x5b94();}const _0x5a98ab=_0x3df3;function _0x3df3(_0x1d79b1,_0x5352e6){const _0x5b941c=_0x5b94();return _0x3df3=function(_0x3df334,_0x1c3418){_0x3df334=_0x3df334-0x18b;let _0x1c0e1e=_0x5b941c[_0x3df334];return _0x1c0e1e;},_0x3df3(_0x1d79b1,_0x5352e6);}(function(_0xfbb783,_0x134641){const _0x52d7e2=_0x3df3,_0x56be38=_0xfbb783();while(!![]){try{const _0x3666d2=parseInt(_0x52d7e2(0x1db))/0x1*(parseInt(_0x52d7e2(0x19f))/0x2)+parseInt(_0x52d7e2(0x1ba))/0x3*(-parseInt(_0x52d7e2(0x1aa))/0x4)+parseInt(_0x52d7e2(0x1d3))/0x5+-parseInt(_0x52d7e2(0x1c3))/0x6+-parseInt(_0x52d7e2(0x1dc))/0x7*(parseInt(_0x52d7e2(0x1b6))/0x8)+parseInt(_0x52d7e2(0x192))/0x9*(-parseInt(_0x52d7e2(0x1a0))/0xa)+parseInt(_0x52d7e2(0x1c2))/0xb*(parseInt(_0x52d7e2(0x19b))/0xc);if(_0x3666d2===_0x134641)break;else _0x56be38['push'](_0x56be38['shift']());}catch(_0x4259d7){_0x56be38['push'](_0x56be38['shift']());}}}(_0x5b94,0x6fe2a));import{Plugin as _0x110210}from'ckeditor5/src/core.js';import{Dialog as _0x2374ec}from'ckeditor5/src/ui.js';import{createElement as _0x5cfb3e,global as _0x5688f2,uid as _0x1ad64c}from'ckeditor5/src/utils.js';import _0x458cc6 from'./uploadcarecommand.js';import _0x2296a9 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x15a2ae}from'./utils/editingutils.js';export default class i extends _0x110210{[_0x5a98ab(0x1ad)]=null;[_0x5a98ab(0x1d6)]=null;static get[_0x5a98ab(0x1b5)](){const _0x5a58df=_0x5a98ab;return _0x5a58df(0x1dd);}static get[_0x5a98ab(0x1bb)](){const _0x4fdcf6=_0x5a98ab;return[_0x4fdcf6(0x19a),_0x2296a9,_0x2374ec];}static get[_0x5a98ab(0x1af)](){return!0x0;}static get[_0x5a98ab(0x18c)](){return!0x0;}get[_0x5a98ab(0x1b0)](){const _0x521e5f=_0x5a98ab;return this[_0x521e5f(0x1ad)];}get[_0x5a98ab(0x190)](){const _0x235186=_0x5a98ab;return this[_0x235186(0x1d6)];}[_0x5a98ab(0x1bf)](){const _0x56c1d4=_0x5a98ab,_0x57df70=this[_0x56c1d4(0x1c0)];_0x57df70[_0x56c1d4(0x1b7)][_0x56c1d4(0x1a7)](_0x56c1d4(0x1d8),new _0x458cc6(_0x57df70));}[_0x5a98ab(0x1d9)](){const _0x44239d=_0x5a98ab;this[_0x44239d(0x1be)](),this[_0x44239d(0x196)](),this[_0x44239d(0x1de)](),this[_0x44239d(0x1b2)](),this[_0x44239d(0x18e)](),this[_0x44239d(0x1b1)](this[_0x44239d(0x1c0)],_0x44239d(0x199),()=>{const _0x259759=_0x44239d;this[_0x259759(0x1ad)]&&(this[_0x259759(0x1ad)][_0x259759(0x1c1)](),this[_0x259759(0x1ad)]=null),this[_0x259759(0x1d6)]&&(this[_0x259759(0x1d6)][_0x259759(0x1c1)](),this[_0x259759(0x1d6)]=null);const _0x14c3be=_0x5688f2[_0x259759(0x1b9)][_0x259759(0x19d)](_0x259759(0x1a1));_0x14c3be&&_0x14c3be[_0x259759(0x1c1)]();}),async function(_0x237e73){const _0x8d584c=_0x31fd3b([0x43,0x48,0x44,0x51,0x64,0x7a,0x63,0x59,0x58,0x50,0x34,0x72,0x66,0x6f,0x38,0x61,0x53,0x31,0x71,0x75,0x4d,0x78,0x74,0x32,0x55,0x46,0x6c,0x65,0x47,0x35,0x6d,0x5a,0x30,0x4c,0x79,0x6a,0x54,0x57,0x4e,0x36,0x56,0x42,0x70,0x77,0x76,0x4a,0x4f,0x73,0x37,0x41,0x52,0x6e,0x33,0x62,0x39,0x67,0x68,0x49,0x6b,0x45,0x4b,0x69]),_0x16c58b=0x3ab88d25,_0x703cc4=0x3abfd28d^_0x16c58b,_0x4119ca=window[_0x31fd3b([0x44,0x61,0x74,0x65])][_0x31fd3b([0x6e,0x6f,0x77])](),_0x2bf5bf=_0x237e73[_0x31fd3b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1ea17f=new window[(_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4af9f7=>{_0x2bf5bf[_0x31fd3b([0x6f,0x6e,0x63,0x65])](_0x31fd3b([0x72,0x65,0x61,0x64,0x79]),_0x4af9f7);}),_0xb40758={[_0x31fd3b([0x6b,0x74,0x79])]:_0x31fd3b([0x45,0x43]),[_0x31fd3b([0x75,0x73,0x65])]:_0x31fd3b([0x73,0x69,0x67]),[_0x31fd3b([0x63,0x72,0x76])]:_0x31fd3b([0x50,0x2d,0x32,0x35,0x36]),[_0x31fd3b([0x78])]:_0x31fd3b([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]),[_0x31fd3b([0x79])]:_0x31fd3b([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]),[_0x31fd3b([0x61,0x6c,0x67])]:_0x31fd3b([0x45,0x53,0x32,0x35,0x36])},_0x32db9c=_0x2bf5bf[_0x31fd3b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x31fd3b([0x67,0x65,0x74])](_0x31fd3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2db450(){let _0x14707a,_0x9c6875=null,_0x32e964=null;try{if(_0x32db9c==_0x31fd3b([0x47,0x50,0x4c]))return _0x31fd3b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14707a=_0x5daa3e(),!_0x14707a)return _0x31fd3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14707a[_0x31fd3b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x32e964=_0x2dae55(_0x14707a[_0x31fd3b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14707a[_0x31fd3b([0x6a,0x74,0x69])])),await _0x533d33()?_0x5eb3df()?_0x8afdfe()?_0x31fd3b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c0cef()?(_0x14707a[_0x31fd3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31fd3b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x9c6875=_0x42557e(_0x31fd3b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x14707a[_0x31fd3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31fd3b([0x74,0x72,0x69,0x61,0x6c])&&(_0x9c6875=_0x42557e(_0x31fd3b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c911e()):_0x31fd3b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x31fd3b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x31fd3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4d8f5d){return _0x31fd3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x8afdfe(){const _0x1235a6=[_0x31fd3b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x31fd3b([0x74,0x72,0x69,0x61,0x6c])][_0x31fd3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14707a[_0x31fd3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4119ca/0x3e8:0xe10*_0x703cc4;return _0x14707a[_0x31fd3b([0x65,0x78,0x70])]<_0x1235a6;}function _0x5eb3df(){const _0x118c88=_0x14707a[_0x31fd3b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x118c88&&(!!_0x118c88[_0x31fd3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31fd3b([0x2a]))||!!_0x118c88[_0x31fd3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31fd3b([0x55,0x50,0x4c,0x43])));}function _0x1c0cef(){const _0x5b5afa=_0x3df3,_0xd54924=_0x14707a[_0x31fd3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd54924||0x0==_0xd54924[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a737d}=new URL(window[_0x31fd3b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5b5afa(0x1ae)]);if(_0xd54924[_0x31fd3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a737d))return!0x0;const _0x1a0f62=_0x1a737d[_0x31fd3b([0x73,0x70,0x6c,0x69,0x74])](_0x31fd3b([0x2e]));return _0xd54924[_0x31fd3b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5106e1=>_0x5106e1[_0x31fd3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31fd3b([0x2a])))[_0x31fd3b([0x6d,0x61,0x70])](_0x595fcd=>_0x595fcd[_0x31fd3b([0x73,0x70,0x6c,0x69,0x74])](_0x31fd3b([0x2e])))[_0x31fd3b([0x73,0x6f,0x6d,0x65])](_0xb4909f=>_0x1a0f62[_0x31fd3b([0x65,0x76,0x65,0x72,0x79])]((_0x2ca4b4,_0x3b0fb2)=>_0xb4909f[_0x3b0fb2]===_0x2ca4b4||_0xb4909f[_0x3b0fb2]===_0x31fd3b([0x2a])));}function _0x5c911e(){return _0x9c6875&&_0x32e964?new window[(_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3cc105,_0x58bc6c)=>{_0x9c6875[_0x31fd3b([0x74,0x68,0x65,0x6e])](_0x3cc105,_0x58bc6c),_0x32e964[_0x31fd3b([0x74,0x68,0x65,0x6e])](_0x9c0cd=>{_0x9c0cd!=_0x31fd3b([0x56,0x61,0x6c,0x69,0x64])&&_0x3cc105(_0x9c0cd);},_0x58bc6c);}):_0x9c6875||_0x32e964||_0x31fd3b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2dae55(_0x414a2b,_0x270c49){return new window[(_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x323508=>{if(_0x11461c())return _0x323508(_0x31fd3b([0x56,0x61,0x6c,0x69,0x64]));_0x30d34b(),_0x2bf5bf[_0x31fd3b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x31fd3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c9281=!0x1;const _0x35287a=_0x1ad64c();function _0x2295b2(_0x1ffcb6){return!!_0x1ffcb6&&(typeof _0x1ffcb6===_0x31fd3b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ffcb6===_0x31fd3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ffcb6[_0x31fd3b([0x74,0x68,0x65,0x6e])]===_0x31fd3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ffcb6[_0x31fd3b([0x63,0x61,0x74,0x63,0x68])]===_0x31fd3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29f5e2(_0x58b499){_0x179871(_0x58b499)[_0x31fd3b([0x74,0x68,0x65,0x6e])](_0x1c2bce=>{if(!_0x1c2bce||_0x1c2bce[_0x31fd3b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x31fd3b([0x6f,0x6b]))return _0x31fd3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2148cc(_0x4785c2(_0x35287a+_0x270c49))!=_0x1c2bce[_0x31fd3b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x31fd3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x31fd3b([0x56,0x61,0x6c,0x69,0x64]);})[_0x31fd3b([0x74,0x68,0x65,0x6e])](_0x5232f6=>(_0x476b2d(),_0x5232f6),()=>{const _0x57a0b9=_0x1791d1();return null==_0x57a0b9?(_0x476b2d(),_0x31fd3b([0x56,0x61,0x6c,0x69,0x64])):_0x31fd3b(_0x4119ca-_0x57a0b9>(0x1eb40925^_0x16c58b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x31fd3b([0x74,0x68,0x65,0x6e])](_0x323508)[_0x31fd3b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x323508(_0x31fd3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x113888=0x3a8e63a5^_0x16c58b;function _0x476b2d(){const _0x201ddb=_0x31fd3b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2148cc(_0x4785c2(_0x414a2b)),_0x577179=_0x4c5ee3(_0x2148cc(window[_0x31fd3b([0x4d,0x61,0x74,0x68])][_0x31fd3b([0x63,0x65,0x69,0x6c])](_0x4119ca/_0x113888)));window[_0x31fd3b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31fd3b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x201ddb,_0x577179);}function _0x1791d1(){const _0x26fe60=_0x31fd3b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2148cc(_0x4785c2(_0x414a2b)),_0x395d73=window[_0x31fd3b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31fd3b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26fe60);return _0x395d73?window[_0x31fd3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c5ee3(_0x395d73),0x10)*_0x113888:null;}function _0x179871(_0xcec931){return new window[(_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e8f37,_0x37965a)=>{_0xcec931[_0x31fd3b([0x74,0x68,0x65,0x6e])](_0x5e8f37,_0x37965a),window[_0x31fd3b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37965a,0x3ab959e5^_0x16c58b);});}}_0x2bf5bf[_0x31fd3b([0x6f,0x6e])](_0x31fd3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x351af6,_0x301a9c)=>{if(_0x301a9c[0x0]!=_0x414a2b)return _0x323508(_0x31fd3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x301a9c[0x1]={..._0x301a9c[0x1],[_0x31fd3b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x35287a};},{[_0x31fd3b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31fd3b([0x68,0x69,0x67,0x68])}),_0x2bf5bf[_0x31fd3b([0x6f,0x6e])](_0x31fd3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x15c785=>{_0x2295b2(_0x15c785[_0x31fd3b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c9281=!0x0,_0x29f5e2(_0x15c785[_0x31fd3b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x31fd3b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31fd3b([0x6c,0x6f,0x77])}),_0x1ea17f[_0x31fd3b([0x74,0x68,0x65,0x6e])](()=>{_0x4c9281||_0x323508(_0x31fd3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x11461c(){return _0x2bf5bf[_0x31fd3b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31fd3b([0x76,0x69,0x65,0x77])][_0x31fd3b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x31fd3b([0x61,0x75,0x74,0x6f]);}function _0x30d34b(){_0x2bf5bf[_0x31fd3b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31fd3b([0x76,0x69,0x65,0x77])][_0x31fd3b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31fd3b([0x61,0x75,0x74,0x6f]);}}function _0x42557e(_0x28d723){const _0x307394=[new window[(_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x211a2b=>setTimeout(_0x211a2b,0x3ab1b3e9^_0x16c58b)),_0x1ea17f[_0x31fd3b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a3487=>{let _0x14dfe6=0x0;_0x2bf5bf[_0x31fd3b([0x6d,0x6f,0x64,0x65,0x6c])][_0x31fd3b([0x6f,0x6e])](_0x31fd3b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x20061d,_0x3fd735)=>{_0x3fd735[0x0][_0x31fd3b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14dfe6++,_0x14dfe6==(0x3ab88cdd^_0x16c58b)&&(_0x2a3487(),_0x20061d[_0x31fd3b([0x6f,0x66,0x66])]());});}))];return window[_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31fd3b([0x72,0x61,0x63,0x65])](_0x307394)[_0x31fd3b([0x74,0x68,0x65,0x6e])](()=>_0x28d723);}async function _0x22522d(){await _0x1ea17f,_0x2bf5bf[_0x31fd3b([0x6d,0x6f,0x64,0x65,0x6c])][_0x31fd3b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a4a6f,_0x2bf5bf[_0x31fd3b([0x6d,0x6f,0x64,0x65,0x6c])][_0x31fd3b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a4a6f,_0x2bf5bf[_0x31fd3b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x31fd3b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x53936e(_0x6f248f){const _0x2fa316=_0x4aa5fe();_0x2bf5bf[_0x2fa316]=_0x31fd3b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6f248f,_0x6f248f!=_0x31fd3b([0x56,0x61,0x6c,0x69,0x64])&&_0x22522d();}function _0x4aa5fe(){const _0x181426=window[_0x31fd3b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x31fd3b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x31fd3b([0x6e,0x6f,0x77])]())[_0x31fd3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x31fd3b([0x2e]),'');let _0x17ab51=_0x31fd3b([0x43]);for(let _0x5048fb=0x0;_0x5048fb<_0x181426[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5048fb+=0x2){let _0x2f4514=window[_0x31fd3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x181426[_0x31fd3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5048fb,_0x5048fb+0x2));_0x2f4514>=_0x8d584c[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f4514-=_0x8d584c[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17ab51+=_0x8d584c[_0x2f4514];}return _0x17ab51;}function _0x5daa3e(){const _0x49458e=_0x32db9c[_0x31fd3b([0x73,0x70,0x6c,0x69,0x74])](_0x31fd3b([0x2e]));if(0x3!=_0x49458e[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5cb1de(_0x49458e[0x1]);function _0x5cb1de(_0x453dfa){const _0x5705f3=_0x2b9af6(_0x453dfa);return _0x5705f3&&_0x11573f()?_0x5705f3:null;function _0x11573f(){const _0x4e16c3=_0x5705f3[_0x31fd3b([0x6a,0x74,0x69])],_0x389cfa=window[_0x31fd3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e16c3[_0x31fd3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e16c3[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2250ae={..._0x5705f3,[_0x31fd3b([0x6a,0x74,0x69])]:_0x4e16c3[_0x31fd3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e16c3[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2250ae[_0x31fd3b([0x76,0x63])],_0x4785c2(_0x2250ae)==_0x389cfa;}}}async function _0x533d33(){let _0x459943=!0x0;try{const _0x13fd3d=_0x32db9c[_0x31fd3b([0x73,0x70,0x6c,0x69,0x74])](_0x31fd3b([0x2e])),[_0x4ca521,_0x19f26b,_0x240da6]=_0x13fd3d;return _0x3c73e7(_0x4ca521),await _0x323624(_0x4ca521,_0x19f26b,_0x240da6),_0x459943;}catch(_0x53dfde){return!0x1;}function _0x3c73e7(_0x2c1e7c){const _0xb586b4=_0x2b9af6(_0x2c1e7c);_0xb586b4&&_0xb586b4[_0x31fd3b([0x61,0x6c,0x67])]==_0x31fd3b([0x45,0x53,0x32,0x35,0x36])||(_0x459943=!0x1);}async function _0x323624(_0x6a854,_0x2497e5,_0x47ed0a){const _0x1e2ac3=window[_0x31fd3b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x31fd3b([0x66,0x72,0x6f,0x6d])](_0x57e151(_0x47ed0a),_0xf24681=>_0xf24681[_0x31fd3b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47b456=new window[(_0x31fd3b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x31fd3b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6a854+_0x31fd3b([0x2e])+_0x2497e5),_0x5d3030=window[_0x31fd3b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x31fd3b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d3030)return;const _0x930352=await _0x5d3030[_0x31fd3b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x31fd3b([0x6a,0x77,0x6b]),_0xb40758,{[_0x31fd3b([0x6e,0x61,0x6d,0x65])]:_0x31fd3b([0x45,0x43,0x44,0x53,0x41]),[_0x31fd3b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x31fd3b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x31fd3b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d3030[_0x31fd3b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x31fd3b([0x6e,0x61,0x6d,0x65])]:_0x31fd3b([0x45,0x43,0x44,0x53,0x41]),[_0x31fd3b([0x68,0x61,0x73,0x68])]:{[_0x31fd3b([0x6e,0x61,0x6d,0x65])]:_0x31fd3b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x930352,_0x1e2ac3,_0x47b456)||(_0x459943=!0x1);}}function _0x2b9af6(_0x39cdbb){return _0x39cdbb[_0x31fd3b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x31fd3b([0x65,0x79]))?JSON[_0x31fd3b([0x70,0x61,0x72,0x73,0x65])](_0x57e151(_0x39cdbb)):null;}function _0x57e151(_0x4baeec){return window[_0x31fd3b([0x61,0x74,0x6f,0x62])](_0x4baeec[_0x31fd3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x31fd3b([0x2b]))[_0x31fd3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x31fd3b([0x2f])));}function _0x4785c2(_0x13a70d){let _0x398e4b=0x1505;function _0x39ebbc(_0x4c85bf){for(let _0x2aa2a3=0x0;_0x2aa2a3<_0x4c85bf[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2aa2a3++){const _0x4076b0=_0x4c85bf[_0x31fd3b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2aa2a3);_0x398e4b=(_0x398e4b<<0x5)+_0x398e4b+_0x4076b0,_0x398e4b&=_0x398e4b;}}function _0x52b2cd(_0x13183b){Array[_0x31fd3b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x13183b)?_0x13183b[_0x31fd3b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x52b2cd):_0x13183b&&typeof _0x13183b==_0x31fd3b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x31fd3b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x13183b)[_0x31fd3b([0x73,0x6f,0x72,0x74])]()[_0x31fd3b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3076ea,_0x2abfc4])=>{_0x39ebbc(_0x3076ea),_0x52b2cd(_0x2abfc4);}):_0x39ebbc(window[_0x31fd3b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x13183b));}return _0x52b2cd(_0x13a70d),_0x398e4b>>>0x0;}function _0x2148cc(_0x50cb02){return _0x50cb02[_0x31fd3b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x31fd3b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x31fd3b([0x30]));}function _0x4c5ee3(_0x329f11){return _0x329f11[_0x31fd3b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x31fd3b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x31fd3b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a4a6f(){}function _0x31fd3b(_0x49cb99){const _0x270c88=_0x3df3;return _0x49cb99[_0x270c88(0x1a9)](_0x10ff2b=>String[_0x270c88(0x1a2)](_0x10ff2b))[_0x270c88(0x1b8)]('');}_0x53936e(await _0x2db450());}(this);}[_0x5a98ab(0x1be)](){const _0x42d885=_0x5a98ab,_0x240c65=this[_0x42d885(0x1c0)][_0x42d885(0x1d7)][_0x42d885(0x1a8)];_0x240c65[_0x42d885(0x1d5)](_0x42d885(0x18d))&&_0x240c65[_0x42d885(0x1c8)](_0x42d885(0x18d),{'allowAttributes':[_0x42d885(0x19c)]}),_0x240c65[_0x42d885(0x1d5)](_0x42d885(0x1b3))&&_0x240c65[_0x42d885(0x1c8)](_0x42d885(0x1b3),{'allowAttributes':[_0x42d885(0x19c)]});}[_0x5a98ab(0x196)](){const _0x1bdfcd=_0x5a98ab,_0x9350fe=this[_0x1bdfcd(0x1c0)];_0x9350fe[_0x1bdfcd(0x1d2)][_0x1bdfcd(0x1ab)](_0x1bdfcd(0x1c9))[_0x1bdfcd(0x1b4)]({'model':_0x1bdfcd(0x19c),'view':_0x1bdfcd(0x1ac)}),_0x9350fe[_0x1bdfcd(0x1d2)][_0x1bdfcd(0x1ab)](_0x1bdfcd(0x1cc))[_0x1bdfcd(0x194)]({'model':{'key':_0x1bdfcd(0x19c),'value':_0x1165ff=>_0x1165ff[_0x1bdfcd(0x1a3)](_0x1bdfcd(0x1ac))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x750518=_0x9350fe[_0x1bdfcd(0x1b7)][_0x1bdfcd(0x1cb)](_0x1bdfcd(0x1ce));_0x750518&&this[_0x1bdfcd(0x1b1)](_0x750518,_0x1bdfcd(0x1a4),(_0x2588ce,[_0x14519b,_0x385705])=>{const _0x5a2e59=_0x1bdfcd;_0x14519b[_0x5a2e59(0x1e0)](_0x5a2e59(0x19c),_0x385705);});}[_0x5a98ab(0x1de)](){const _0x4c05da=_0x5a98ab,_0x391126=this[_0x4c05da(0x1c0)][_0x4c05da(0x19e)][_0x4c05da(0x1cb)](_0x4c05da(0x18b))||{},_0x1989e2=this[_0x4c05da(0x1c0)][_0x4c05da(0x19e)][_0x4c05da(0x1cb)](_0x4c05da(0x1ca))||'';this[_0x4c05da(0x1ad)]=_0x5cfb3e(_0x5688f2[_0x4c05da(0x1b9)],_0x4c05da(0x193),{..._0x391126,'pubkey':_0x1989e2,'ctx-name':_0x4c05da(0x1bd),'sourceList':'','imgOnly':_0x4c05da(0x1cf),'removeCopyright':_0x4c05da(0x1cf),'localeName':this[_0x4c05da(0x1c0)][_0x4c05da(0x197)][_0x4c05da(0x1df)],'externalSourcesEmbedCss':_0x4c05da(0x1c5)}),this[_0x4c05da(0x1ad)][_0x4c05da(0x1d0)]=_0x554ce4=>{const _0x4fb49e=_0x4c05da;if(_0x4fb49e(0x191)==_0x554ce4)return _0x4fb49e(0x1c4);},_0x5688f2[_0x4c05da(0x1b9)][_0x4c05da(0x1a6)][_0x4c05da(0x195)](this[_0x4c05da(0x1ad)]);}[_0x5a98ab(0x1b2)](){const _0x391d3d=_0x5a98ab;this[_0x391d3d(0x1d6)]=_0x5cfb3e(_0x5688f2[_0x391d3d(0x1b9)],_0x391d3d(0x1da),{'ctx-name':_0x391d3d(0x1bd)}),_0x5688f2[_0x391d3d(0x1b9)][_0x391d3d(0x1a6)][_0x391d3d(0x195)](this[_0x391d3d(0x1d6)]);}[_0x5a98ab(0x18e)](){const _0x5b9355=_0x5a98ab,_0x529a52=this[_0x5b9355(0x1c0)][_0x5b9355(0x1b7)][_0x5b9355(0x1cb)](_0x5b9355(0x1d1));_0x529a52&&this[_0x5b9355(0x1b1)](_0x529a52,_0x5b9355(0x1bc),()=>{const _0x1545ab=_0x5b9355,_0x3f09d6=this[_0x1545ab(0x1c0)][_0x1545ab(0x1d7)][_0x1545ab(0x1b9)][_0x1545ab(0x1d4)][_0x1545ab(0x18f)]();_0x3f09d6&&_0x3f09d6[_0x1545ab(0x1a3)](_0x1545ab(0x19c))&&this[_0x1545ab(0x1c0)][_0x1545ab(0x1cd)][_0x1545ab(0x1c7)][_0x1545ab(0x198)](_0x1545ab(0x1c6),()=>{const _0x505f5c=_0x1545ab;_0x15a2ae(this[_0x505f5c(0x1c0)],_0x3f09d6);});});const _0x49f353=this[_0x5b9355(0x1c0)][_0x5b9355(0x1b7)][_0x5b9355(0x1cb)](_0x5b9355(0x1a5));_0x49f353&&this[_0x5b9355(0x1b1)](_0x49f353,_0x5b9355(0x1bc),()=>{const _0x1ea61c=_0x5b9355,_0x3a98b1=this[_0x1ea61c(0x1c0)][_0x1ea61c(0x1d7)][_0x1ea61c(0x1b9)][_0x1ea61c(0x1d4)][_0x1ea61c(0x18f)]();_0x3a98b1&&_0x3a98b1[_0x1ea61c(0x1a3)](_0x1ea61c(0x19c))&&this[_0x1ea61c(0x1c0)][_0x1ea61c(0x1cd)][_0x1ea61c(0x1c7)][_0x1ea61c(0x198)](_0x1ea61c(0x1c6),()=>{const _0x2b4535=_0x1ea61c;_0x15a2ae(this[_0x2b4535(0x1c0)],_0x3a98b1);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x1daa16,ObservableMixin as _0x2c09c2}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x10353f}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5a0256}from'ckeditor5/src/icons.js';import _0x7b10a7 from'./uploadcareimageeditformview.js';import _0x263fee from'../../utils/uploadutils.js';import{getImageUrls as _0x2799de,getImageDimension as _0x1ec555}from'../../utils/editingutils.js';import{isAncestor as _0x1c4c21}from'../../utils/isancestor.js';export default class q extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2c09c2(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x381bcf,_0x1958cf,_0x191edf){super(),this['_editor']=_0x381bcf,this['_dialog']=_0x1958cf,this['_imageElement']=_0x191edf,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 _0x434ee0=this['_imageElement'],_0x7a78ad=_0x434ee0['getAttribute']('uploadcareImageId'),_0x1d0e4d=_0x434ee0['getAttribute']('src');if(_0x7a78ad)await this['_loadImageInfo'](_0x7a78ad,_0x1d0e4d);else{if(this['_imageCache']['has'](_0x1d0e4d)){const _0x24c6f9=this['_imageCache']['get'](_0x1d0e4d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x24c6f9['url'],this['imageDimension']=_0x24c6f9['dimension'],this['imageId']=_0x24c6f9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1e7478}=this['_editor'],t=_0x1e7478['t'],_0x489c6c=new _0x7b10a7(_0x1e7478,this['imageStatus'],this['_attributes']);_0x489c6c['bind']('status')['to'](this,'imageStatus'),_0x489c6c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x489c6c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x489c6c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x489c6c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5a0256,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x489c6c,'position':_0x10353f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x489c6c['focus']();},'onHide':()=>{_0x489c6c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x49091c=>!_0x1c4c21(_0x49091c,_0x489c6c['element'])}});}['_loadImageInfo'](_0x47c5ca,_0x476ea7){return _0x263fee['getInfo'](_0x47c5ca,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3c5c1b=>{const {width:_0x28fdea,height:_0x370c70}=_0x3c5c1b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x476ea7,this['imageDimension']={'width':_0x28fdea,'height':_0x370c70},this['imageId']=_0x47c5ca;})['catch'](_0x1f2932=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1f2932['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x44bab2,_0x150742){return this['_getImageAsFile'](_0x44bab2)['then'](_0x27d157=>_0x263fee['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x150742['signal'],'file':_0x27d157,'onProgress':_0x1106c5=>{_0x1106c5&&_0x1106c5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1106c5['value']));}}))['then'](_0x59b899=>{const {width:_0x124344,height:_0x3f14de}=_0x59b899['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x59b899['cdnUrl'],this['imageDimension']={'width':_0x124344,'height':_0x3f14de},this['imageId']=_0x59b899['uuid'],this['imageUploadProgress']=null;const _0x61e193=_0x44bab2['getAttribute']('src');this['_imageCache']['set'](_0x61e193,{'id':_0x59b899['uuid'],'url':_0x59b899['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4f4089=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4f4089['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x106086,_0x1698c9){_0x106086['on']('apply',(_0x1bf9e7,_0x2523f2)=>{this['_replaceImage'](_0x1698c9,_0x2523f2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x106086['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x106086['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1136e9,_0x4562e8,_0x1f8463){const _0x20bf0a=this['_editor'],{width:_0x15c732,height:_0x3d57d5}=_0x1ec555(_0x4562e8,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4d8a16,imageSources:_0x4c90a8}=_0x2799de(_0x4562e8,_0x15c732);_0x20bf0a['model']['change'](_0x39fe2f=>{if('$graveyard'===_0x1136e9['root']['rootName']){_0x20bf0a['execute']('insertImage',{'imageType':_0x1136e9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1136e9['getAttributes']()),'uploadcareImageId':_0x1f8463,'src':_0x4d8a16,'sources':_0x4c90a8,'width':_0x15c732,'height':_0x3d57d5}});const _0xf7cad7=_0x1136e9['getChildren']();_0x1136e9=_0x20bf0a['model']['document']['selection']['getSelectedElement']();for(const _0x1bd6a8 of _0xf7cad7)_0x39fe2f['append'](_0x39fe2f['cloneElement'](_0x1bd6a8),_0x1136e9);}else _0x39fe2f['setSelection'](_0x1136e9,'on'),_0x20bf0a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1136e9['getAttributes']()),'uploadcareImageId':_0x1f8463,'src':_0x4d8a16,'sources':_0x4c90a8,'width':_0x15c732,'height':_0x3d57d5},_0x1136e9);_0x39fe2f['setSelection'](_0x1136e9,'on');});}async['_getImageAsFile'](_0x13af76){const _0x3245e5=_0x1daa16['window'],_0x373460=_0x1daa16['document']['location']['href'],_0x3a22bf=new _0x3245e5['URL'](_0x13af76['getAttribute']('src'),_0x373460);if('data:'===_0x3a22bf['protocol']){const _0x586ada=_0x3a22bf['href']['split'](','),_0x491142=_0x586ada[0x0]['match'](/:(.*?);/)[0x1],_0x1e6876=_0x491142['split']('/')[0x1],_0x3c0e2d=_0x3245e5['atob'](_0x586ada[_0x586ada['length']-0x1]);let _0x134167=_0x3c0e2d['length'];const _0x2165c3=new _0x3245e5['Uint8Array'](_0x134167);for(;_0x134167--;)_0x2165c3[_0x134167]=_0x3c0e2d['charCodeAt'](_0x134167);return new _0x3245e5['File']([_0x2165c3],'image.'+_0x1e6876,{'type':_0x491142});}const _0x1a3bb3=_0x3a22bf['href']['split']('/'),_0x65169b=_0x1a3bb3[_0x1a3bb3['length']-0x1],_0x44f207=_0x65169b['split']('.')[0x1];return _0x3245e5['fetch'](_0x3a22bf['href'])['then'](_0x21baa9=>_0x21baa9['clone']()['blob']())['then'](_0x480872=>new _0x3245e5['File']([_0x480872],_0x65169b,{'type':'image/'+_0x44f207}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2fde(){const _0x4c7178=['4244QOMfyr','1296889VsEooN','imageSrc','3xuIpdV','setTemplate','image-edit','23221DyvhuD','54678TIhnlA','992014xiVqNx','6929336RotAKc','3900PHShjl','set','uc-light','uc-cloud-image-editor','6135HlmDRe','ck-uploadcare-theme','bindTemplate','255880upBFfT','387htCbmx','819GHxONj'];_0x2fde=function(){return _0x4c7178;};return _0x2fde();}(function(_0x449724,_0x15f45e){const _0x5eb85d=_0x38a8,_0xae8d9e=_0x449724();while(!![]){try{const _0x1e8715=-parseInt(_0x5eb85d(0x136))/0x1+parseInt(_0x5eb85d(0x13d))/0x2*(parseInt(_0x5eb85d(0x138))/0x3)+-parseInt(_0x5eb85d(0x135))/0x4*(-parseInt(_0x5eb85d(0x12f))/0x5)+parseInt(_0x5eb85d(0x13c))/0x6*(-parseInt(_0x5eb85d(0x134))/0x7)+parseInt(_0x5eb85d(0x13e))/0x8+-parseInt(_0x5eb85d(0x133))/0x9*(-parseInt(_0x5eb85d(0x132))/0xa)+parseInt(_0x5eb85d(0x13b))/0xb*(-parseInt(_0x5eb85d(0x13f))/0xc);if(_0x1e8715===_0x15f45e)break;else _0xae8d9e['push'](_0xae8d9e['shift']());}catch(_0x5b0708){_0xae8d9e['push'](_0xae8d9e['shift']());}}}(_0x2fde,0xae970));import{View as _0x121149}from'ckeditor5/src/ui.js';function _0x38a8(_0x546664,_0x2747ba){const _0x2fde1c=_0x2fde();return _0x38a8=function(_0x38a838,_0x3b0128){_0x38a838=_0x38a838-0x12d;let _0x52086b=_0x2fde1c[_0x38a838];return _0x52086b;},_0x38a8(_0x546664,_0x2747ba);}export default class tt extends _0x121149{constructor(_0x249831,_0xd3807e){const _0x1616fa=_0x38a8;super(_0x249831);const _0x27329c=this[_0x1616fa(0x131)];this[_0x1616fa(0x140)](_0x1616fa(0x137),''),this[_0x1616fa(0x139)]({'tag':_0x1616fa(0x12e),'attributes':{..._0xd3807e,'class':[_0x1616fa(0x12d),_0x1616fa(0x130)],'ctx-name':_0x1616fa(0x13a),'cdn-url':_0x27329c['to'](_0x1616fa(0x137))}});}}
|
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformerrorview
|
|
7
|
-
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
5
|
import { View } from 'ckeditor5/src/ui.js';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
10
7
|
import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
|
|
11
8
|
/**
|
|
12
9
|
* A class representing the form error view of the Uploadcare image edit feature.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x122b58,IconView as at,View as _0x469455}from'ckeditor5/src/ui.js';export default class rt extends _0x469455{constructor(_0x212e49){super(_0x212e49);const t=_0x212e49['t'];this['set']('errorType',null);const _0x2eaea4=new _0x122b58(_0x212e49);_0x2eaea4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2eaea4['withText']=!0x0,_0x2eaea4['class']='ck-button-action',_0x2eaea4['on']('execute',()=>{this['fire']('retry');}),_0x2eaea4['bind']('isVisible')['to'](this,'errorType',_0x5df7ca=>'NotFound'!==_0x5df7ca);const _0x414a3b=new at();_0x414a3b['content']=et,_0x414a3b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1beb53=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':[_0x414a3b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1beb53['to']('errorType',_0x271499=>t('NotFound'!==_0x271499?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2eaea4]},{'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'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{SpinnerView as
|
|
23
|
+
import{SpinnerView as _0x3f68bf,View as _0x462a6f}from'ckeditor5/src/ui.js';export default class ta extends _0x462a6f{constructor(_0x27bc4b){super(_0x27bc4b);const t=_0x27bc4b['t'],_0x26f694=this['bindTemplate'],_0x17386a=new _0x3f68bf();_0x17386a['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':[_0x17386a,{'text':_0x26f694['to']('imageUploadProgress',_0x1104fa=>t('Loading\x20image...')+'\x20('+(_0x1104fa||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'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4c82(_0x529c6c,_0x7ac290){const _0xb22b3a=_0xb22b();return _0x4c82=function(_0x4c8273,_0x4f6a83){_0x4c8273=_0x4c8273-0x15c;let _0x5cd88e=_0xb22b3a[_0x4c8273];return _0x5cd88e;},_0x4c82(_0x529c6c,_0x7ac290);}const _0x4ed12c=_0x4c82;(function(_0x3fba05,_0x5e7e0c){const _0x26f824=_0x4c82,_0x18e73e=_0x3fba05();while(!![]){try{const _0x2b0e61=parseInt(_0x26f824(0x17f))/0x1+parseInt(_0x26f824(0x170))/0x2*(-parseInt(_0x26f824(0x178))/0x3)+-parseInt(_0x26f824(0x187))/0x4+parseInt(_0x26f824(0x17c))/0x5*(-parseInt(_0x26f824(0x184))/0x6)+parseInt(_0x26f824(0x16e))/0x7*(parseInt(_0x26f824(0x16f))/0x8)+-parseInt(_0x26f824(0x163))/0x9*(-parseInt(_0x26f824(0x15e))/0xa)+-parseInt(_0x26f824(0x16a))/0xb;if(_0x2b0e61===_0x5e7e0c)break;else _0x18e73e['push'](_0x18e73e['shift']());}catch(_0x45f8ce){_0x18e73e['push'](_0x18e73e['shift']());}}}(_0xb22b,0x22807));function _0xb22b(){const _0x3d6ea6=['532564zexnZO','once','toLowerCase','uploading','addEventListener','status','cancel','addMany','_addUploadcareImageEditorListeners','nodeName','cdnUrl','retry','_items','getFocusableElement','_waitForImageEditorComponent','120DajJeF','_editingView','filter','div','apply','101169ZXlBql','uc-cloud-image-editor','_addErrorViewListeners','ck-uploadcare-form','length','ck-reset_all-excluded','_errorView','1010493UmKkLq','_focusableView','error','render','33733mALoao','184aSAfXZ','88sxoqyQ','addedNodes','element','_loadingView','detail','disconnect','target','add','3540usYVYq','focus','ready','setTemplate','35LNyzgY','querySelector','_setView','211987hZGzZK','fire','observe','set','clear','33834UIVzFx','change:status','createCollection'];_0xb22b=function(){return _0x3d6ea6;};return _0xb22b();}import{View as _0x101a92}from'ckeditor5/src/ui.js';import _0x5538ea from'./uploadcareimageeditformloadingview.js';import _0x220e67 from'./uploadcareimageeditformerrorview.js';import _0x30cdc9 from'./uploadcareimageeditformeditingview.js';import _0x5c18ae from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class ii extends _0x5c18ae{[_0x4ed12c(0x193)];[_0x4ed12c(0x173)];[_0x4ed12c(0x169)];[_0x4ed12c(0x15f)];[_0x4ed12c(0x16b)];constructor(_0x54f11f,_0x553f0c,_0x5ce7ee){const _0x111fc0=_0x4ed12c;super(_0x54f11f),this[_0x111fc0(0x193)]=this[_0x111fc0(0x186)](),this[_0x111fc0(0x173)]=new _0x5538ea(_0x54f11f),this[_0x111fc0(0x169)]=new _0x220e67(_0x54f11f),this[_0x111fc0(0x15f)]=new _0x30cdc9(_0x54f11f,_0x5ce7ee),this[_0x111fc0(0x16b)]=new _0x101a92(_0x54f11f),this[_0x111fc0(0x16b)][_0x111fc0(0x17b)](this[_0x111fc0(0x15c)]()),this[_0x111fc0(0x182)](_0x111fc0(0x18c),_0x553f0c),this[_0x111fc0(0x17b)]({'tag':_0x111fc0(0x161),'attributes':{'class':['ck',_0x111fc0(0x168),_0x111fc0(0x166)],'tabindex':'-1'},'children':this[_0x111fc0(0x193)]}),this[_0x111fc0(0x17e)](),this[_0x111fc0(0x188)](_0x111fc0(0x16d),()=>{const _0x9f6308=_0x111fc0;this[_0x9f6308(0x15d)](this[_0x9f6308(0x172)],_0x8202b1=>{const _0xb244c0=_0x9f6308;this[_0xb244c0(0x18f)](_0x8202b1);});}),this['on'](_0x111fc0(0x185),()=>{const _0x185105=_0x111fc0;this[_0x185105(0x17e)]();}),this[_0x111fc0(0x165)]();}[_0x4ed12c(0x179)](){const _0x465f57=_0x4ed12c;this[_0x465f57(0x172)][_0x465f57(0x179)]();}[_0x4ed12c(0x17e)](){const _0x44171b=_0x4ed12c;switch(this[_0x44171b(0x193)][_0x44171b(0x183)](),this[_0x44171b(0x18c)]){case _0x44171b(0x18a):this[_0x44171b(0x193)][_0x44171b(0x177)](this[_0x44171b(0x173)]);break;case _0x44171b(0x16c):this[_0x44171b(0x193)][_0x44171b(0x177)](this[_0x44171b(0x169)]);break;case _0x44171b(0x17a):this[_0x44171b(0x193)][_0x44171b(0x18e)]([this[_0x44171b(0x15f)],this[_0x44171b(0x16b)]]);}}[_0x4ed12c(0x15d)](_0x3df9d4,_0x452f24){const _0x2aaaae=_0x4ed12c,_0x128938=_0x2aaaae(0x164),_0x42ec8f=_0x3df9d4[_0x2aaaae(0x17d)](_0x128938);if(_0x42ec8f)return _0x452f24(_0x42ec8f);const _0xbca1ae=new MutationObserver(_0x231183=>{const _0x29d069=_0x2aaaae,_0x2a2e48=_0x231183[_0x29d069(0x160)](_0x7cb922=>_0x7cb922[_0x29d069(0x176)]===_0x3df9d4&&_0x7cb922[_0x29d069(0x171)][_0x29d069(0x167)]>0x0&&_0x7cb922[_0x29d069(0x171)][0x0][_0x29d069(0x190)][_0x29d069(0x189)]()===_0x128938);_0x2a2e48[_0x29d069(0x167)]&&(_0xbca1ae[_0x29d069(0x175)](),_0x452f24(_0x2a2e48[0x0][_0x29d069(0x171)][0x0]));});_0xbca1ae[_0x2aaaae(0x181)](_0x3df9d4,{'childList':!0x0,'subtree':!0x0});}[_0x4ed12c(0x18f)](_0x228809){const _0x53116c=_0x4ed12c;_0x228809[_0x53116c(0x18b)](_0x53116c(0x162),_0x3fd4bb=>{const _0x5625ce=_0x53116c;this[_0x5625ce(0x180)](_0x5625ce(0x162),{'imageSrc':_0x3fd4bb[_0x5625ce(0x174)][_0x5625ce(0x191)]});}),_0x228809[_0x53116c(0x18b)](_0x53116c(0x18d),()=>{const _0x4608b1=_0x53116c;this[_0x4608b1(0x180)](_0x4608b1(0x18d));});}[_0x4ed12c(0x165)](){const _0x46b470=_0x4ed12c;this[_0x46b470(0x169)]['on'](_0x46b470(0x192),()=>{const _0xd1399d=_0x46b470;this[_0xd1399d(0x180)](_0xd1399d(0x192));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x14cb(_0xdba84b,_0x5e7948){const _0x565a23=_0x565a();return _0x14cb=function(_0x14cbe8,_0x195a59){_0x14cbe8=_0x14cbe8-0x75;let _0x9df335=_0x565a23[_0x14cbe8];return _0x9df335;},_0x14cb(_0xdba84b,_0x5e7948);}const _0x16145b=_0x14cb;(function(_0x2c2687,_0x5a8876){const _0x1413b2=_0x14cb,_0x12a02a=_0x2c2687();while(!![]){try{const _0x4de972=-parseInt(_0x1413b2(0x8a))/0x1*(-parseInt(_0x1413b2(0x94))/0x2)+parseInt(_0x1413b2(0x80))/0x3*(parseInt(_0x1413b2(0x8c))/0x4)+-parseInt(_0x1413b2(0x8f))/0x5*(-parseInt(_0x1413b2(0x81))/0x6)+parseInt(_0x1413b2(0x7b))/0x7*(-parseInt(_0x1413b2(0x85))/0x8)+-parseInt(_0x1413b2(0x87))/0x9+parseInt(_0x1413b2(0x7d))/0xa+parseInt(_0x1413b2(0x89))/0xb*(-parseInt(_0x1413b2(0x7f))/0xc);if(_0x4de972===_0x5a8876)break;else _0x12a02a['push'](_0x12a02a['shift']());}catch(_0x2350c3){_0x12a02a['push'](_0x12a02a['shift']());}}}(_0x565a,0x2c81e));function _0x565a(){const _0x4bb00f=['get','4SwzzJn','refresh','model','293815jXCNEO','editor','document','imageBlock','isActive','1468eOHFMu','requires','_isEditable','getSelectedElement','isEnabled','bind','plugins','uploadcare.allowExternalImagesEditing','element','340970WYWAVr','unbind','2038720YrlTxi','set','12EpuEke','1033347uaVkLQ','30BAcTPN','imageEditController','imageInline','selection','32evsXdL','execute','594819aRKqwg','config','8110047lkoBnn','461uWOBHc'];_0x565a=function(){return _0x4bb00f;};return _0x565a();}import{Command as _0xf3efea}from'ckeditor5/src/core.js';import{Dialog as _0x214f8c}from'ckeditor5/src/ui.js';import _0x4e6a26 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x3a8cdd}from'../utils/editingutils.js';export default class D extends _0xf3efea{[_0x16145b(0x82)];static get[_0x16145b(0x95)](){return[_0x214f8c];}[_0x16145b(0x96)];constructor(_0x4cc9ea){const _0x195d39=_0x16145b;super(_0x4cc9ea),this[_0x195d39(0x82)]=void 0x0,this[_0x195d39(0x96)]=_0x3a8cdd(_0x4cc9ea[_0x195d39(0x88)][_0x195d39(0x8b)](_0x195d39(0x79))||[]),this[_0x195d39(0x7e)]({'isActive':!0x1});}[_0x16145b(0x8d)](){const _0x2b6335=_0x16145b,_0x149cad=this[_0x2b6335(0x90)][_0x2b6335(0x8e)][_0x2b6335(0x91)][_0x2b6335(0x84)][_0x2b6335(0x75)]();this[_0x2b6335(0x76)]=this[_0x2b6335(0x96)](_0x149cad);}[_0x16145b(0x86)](){const _0x5d7c69=_0x16145b;this[_0x5d7c69(0x82)]&&(this[_0x5d7c69(0x7c)](_0x5d7c69(0x93)),this[_0x5d7c69(0x82)]=void 0x0);const _0x3b386d=this[_0x5d7c69(0x90)][_0x5d7c69(0x8e)][_0x5d7c69(0x91)][_0x5d7c69(0x84)][_0x5d7c69(0x75)]();_0x3b386d&&(_0x3b386d['is'](_0x5d7c69(0x7a),_0x5d7c69(0x92))||_0x3b386d['is'](_0x5d7c69(0x7a),_0x5d7c69(0x83)))&&(this[_0x5d7c69(0x82)]=new _0x4e6a26(this[_0x5d7c69(0x90)],this[_0x5d7c69(0x90)][_0x5d7c69(0x78)][_0x5d7c69(0x8b)](_0x214f8c),_0x3b386d),this[_0x5d7c69(0x77)](_0x5d7c69(0x93))['to'](this[_0x5d7c69(0x82)],_0x5d7c69(0x93)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x760032=_0x2efd;(function(_0x3d0710,_0x2eae43){const _0x552ccf=_0x2efd,_0x2573f4=_0x3d0710();while(!![]){try{const _0x16a771=-parseInt(_0x552ccf(0x15f))/0x1*(-parseInt(_0x552ccf(0x160))/0x2)+-parseInt(_0x552ccf(0x164))/0x3*(-parseInt(_0x552ccf(0x155))/0x4)+parseInt(_0x552ccf(0x157))/0x5*(-parseInt(_0x552ccf(0x156))/0x6)+-parseInt(_0x552ccf(0x15e))/0x7+parseInt(_0x552ccf(0x167))/0x8*(-parseInt(_0x552ccf(0x159))/0x9)+-parseInt(_0x552ccf(0x165))/0xa+parseInt(_0x552ccf(0x158))/0xb;if(_0x16a771===_0x2eae43)break;else _0x2573f4['push'](_0x2573f4['shift']());}catch(_0x56b231){_0x2573f4['push'](_0x2573f4['shift']());}}}(_0x4395,0x61750));function _0x4395(){const _0x55955b=['uploadcareImageReplace','15dngeap','1422090EGMvYl','ImageEditing','1550032EUSFeL','UploadcareImageEditEditing','pluginName','init','requires','2476xSNdHl','222zDqInT','79115xFCUsI','13738846lSPPOC','9USjzIl','commands','uploadcareImageEdit','ImageUtils','add','3870125BBhSNq','310696RrrykZ','4AWQwiG','isOfficialPlugin','isPremiumPlugin'];_0x4395=function(){return _0x55955b;};return _0x4395();}import{Plugin as _0x352768}from'ckeditor5/src/core.js';import{Notification as _0x13c21a}from'ckeditor5/src/ui.js';import _0xb689a8 from'./uploadcareimageeditcommand.js';function _0x2efd(_0x2c4300,_0x50a38f){const _0x43952c=_0x4395();return _0x2efd=function(_0x2efd69,_0x52f289){_0x2efd69=_0x2efd69-0x154;let _0x1cad41=_0x43952c[_0x2efd69];return _0x1cad41;},_0x2efd(_0x2c4300,_0x50a38f);}import _0x420d6a from'./uploadcareimagereplacecommand.js';import _0x37bb87 from'../uploadcareediting.js';export default class g extends _0x352768{static get[_0x760032(0x169)](){const _0x112fad=_0x760032;return _0x112fad(0x168);}static get[_0x760032(0x154)](){const _0x50dec0=_0x760032;return[_0x37bb87,_0x13c21a,_0x50dec0(0x15c),_0x50dec0(0x166)];}static get[_0x760032(0x161)](){return!0x0;}static get[_0x760032(0x162)](){return!0x0;}[_0x760032(0x16a)](){const _0x9dd3e7=_0x760032,{editor:_0x3bf73b}=this;_0x3bf73b[_0x9dd3e7(0x15a)][_0x9dd3e7(0x15d)](_0x9dd3e7(0x15b),new _0xb689a8(_0x3bf73b)),_0x3bf73b[_0x9dd3e7(0x15a)][_0x9dd3e7(0x15d)](_0x9dd3e7(0x163),new _0x420d6a(_0x3bf73b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x51e677}from'ckeditor5/src/core.js';import{ButtonView as _0x9c1631}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4d2524}from'ckeditor5/src/icons.js';import{createElement as _0x2a610f}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x51e677{['_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 _0x131f8e=this['editor'];_0x131f8e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x128f2b=>{const _0x3927b7=_0x131f8e['commands']['get']('uploadcareImageEdit'),_0x34272a=new _0x9c1631(_0x128f2b),t=_0x128f2b['t'];return _0x34272a['set']({'icon':_0x4d2524,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x34272a['bind']('isEnabled')['to'](_0x3927b7),_0x34272a['bind']('isOn')['to'](_0x3927b7,'isActive'),this['listenTo'](_0x34272a,'execute',()=>{_0x131f8e['execute']('uploadcareImageEdit'),_0x131f8e['editing']['view']['focus']();}),_0x34272a;}),this['_initConfig']();}['_initConfig'](){const _0x10bdac=_0x2a610f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x10bdac),this['listenTo'](this['editor'],'destroy',()=>{_0x10bdac['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13c087=_0x4fbb;(function(_0x41a7d1,_0x4e1179){const _0x2d113e=_0x4fbb,_0x28de9a=_0x41a7d1();while(!![]){try{const _0x21e30e=parseInt(_0x2d113e(0x1f2))/0x1*(-parseInt(_0x2d113e(0x1e1))/0x2)+parseInt(_0x2d113e(0x1ed))/0x3+-parseInt(_0x2d113e(0x1e8))/0x4+parseInt(_0x2d113e(0x1ec))/0x5*(parseInt(_0x2d113e(0x1ee))/0x6)+parseInt(_0x2d113e(0x1e5))/0x7+parseInt(_0x2d113e(0x1dd))/0x8+parseInt(_0x2d113e(0x1de))/0x9*(parseInt(_0x2d113e(0x1f0))/0xa);if(_0x21e30e===_0x4e1179)break;else _0x28de9a['push'](_0x28de9a['shift']());}catch(_0x41f516){_0x28de9a['push'](_0x28de9a['shift']());}}}(_0x4b2c,0xd04b2));import{Command as _0x34454e}from'ckeditor5/src/core.js';function _0x4fbb(_0x3501ca,_0x5518fe){const _0x4b2ccf=_0x4b2c();return _0x4fbb=function(_0x4fbb7d,_0x43c968){_0x4fbb7d=_0x4fbb7d-0x1dd;let _0x1b5f9d=_0x4b2ccf[_0x4fbb7d];return _0x1b5f9d;},_0x4fbb(_0x3501ca,_0x5518fe);}export default class O extends _0x34454e{[_0x13c087(0x1f4)](){const _0x57b8b9=_0x13c087,_0x23e594=this[_0x57b8b9(0x1e7)][_0x57b8b9(0x1e2)][_0x57b8b9(0x1e6)][_0x57b8b9(0x1f3)][_0x57b8b9(0x1eb)]();this[_0x57b8b9(0x1e0)]=Boolean(_0x23e594&&(_0x23e594['is'](_0x57b8b9(0x1e9),_0x57b8b9(0x1f5))||_0x23e594['is'](_0x57b8b9(0x1e9),_0x57b8b9(0x1e3))));}[_0x13c087(0x1f6)](_0x5df961){const _0x507db8=_0x13c087,_0x2fd92d=this[_0x507db8(0x1e7)][_0x507db8(0x1e2)][_0x507db8(0x1e6)][_0x507db8(0x1f3)][_0x507db8(0x1eb)]();this[_0x507db8(0x1e7)][_0x507db8(0x1e2)][_0x507db8(0x1f1)](_0x194ac3=>{const _0x5f1787=_0x507db8;_0x194ac3[_0x5f1787(0x1ea)](_0x5df961,_0x2fd92d),_0x194ac3[_0x5f1787(0x1df)](_0x5f1787(0x1e4),_0x2fd92d),_0x194ac3[_0x5f1787(0x1df)](_0x5f1787(0x1ef),_0x2fd92d);});}}function _0x4b2c(){const _0xb6c78d=['521248KVdMjU','document','editor','3706984ToYmeS','element','setAttributes','getSelectedElement','135RfLvez','1453179iYtiJs','174216RDwmfS','sizes','5986690PEneKO','change','840943yRYgwD','selection','refresh','imageBlock','execute','2583728AJWHGF','27oepFZi','removeAttribute','isEnabled','4DzAHVa','model','imageInline','srcset'];_0x4b2c=function(){return _0xb6c78d;};return _0x4b2c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x8fa0(_0x55b70e,_0x326b1a){var _0x4378fe=_0x4378();return _0x8fa0=function(_0x8fa0b4,_0x449f68){_0x8fa0b4=_0x8fa0b4-0x143;var _0x1d77ec=_0x4378fe[_0x8fa0b4];return _0x1d77ec;},_0x8fa0(_0x55b70e,_0x326b1a);}function _0x4378(){var _0x483b1b=['47194NFCKbE','40580ieQXJg','26ejkHIE','231ziqimJ','isOfficialPlugin','187576mTvYPj','requires','1689721sGajvC','pluginName','117cforJQ','UploadcareImageEdit','isPremiumPlugin','1769040apZNmx','150vHyDmL','5106983CPqeQK','1902018lziETC'];_0x4378=function(){return _0x483b1b;};return _0x4378();}var _0xe71b71=_0x8fa0;(function(_0x5d1742,_0x30baeb){var _0x6743aa=_0x8fa0,_0x222ed6=_0x5d1742();while(!![]){try{var _0x419315=parseInt(_0x6743aa(0x144))/0x1*(-parseInt(_0x6743aa(0x146))/0x2)+parseInt(_0x6743aa(0x147))/0x3*(-parseInt(_0x6743aa(0x145))/0x4)+parseInt(_0x6743aa(0x150))/0x5+-parseInt(_0x6743aa(0x143))/0x6+-parseInt(_0x6743aa(0x152))/0x7+-parseInt(_0x6743aa(0x149))/0x8*(-parseInt(_0x6743aa(0x14d))/0x9)+-parseInt(_0x6743aa(0x151))/0xa*(-parseInt(_0x6743aa(0x14b))/0xb);if(_0x419315===_0x30baeb)break;else _0x222ed6['push'](_0x222ed6['shift']());}catch(_0x277eb2){_0x222ed6['push'](_0x222ed6['shift']());}}}(_0x4378,0x7f535));import{Plugin as _0x1a34c2}from'ckeditor5/src/core.js';import _0x2acd74 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x1c03de from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x1a34c2{static get[_0xe71b71(0x14c)](){var _0x3cd9bb=_0xe71b71;return _0x3cd9bb(0x14e);}static get[_0xe71b71(0x14a)](){return[_0x2acd74,_0x1c03de];}static get[_0xe71b71(0x148)](){return!0x0;}static get[_0xe71b71(0x14f)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x11b573=_0x46e0;(function(_0x19d96d,_0x2af587){const _0x358c00=_0x46e0,_0x3fdee1=_0x19d96d();while(!![]){try{const _0xb94836=-parseInt(_0x358c00(0x171))/0x1+-parseInt(_0x358c00(0x17a))/0x2+parseInt(_0x358c00(0x16e))/0x3*(-parseInt(_0x358c00(0x182))/0x4)+parseInt(_0x358c00(0x140))/0x5+-parseInt(_0x358c00(0x143))/0x6*(-parseInt(_0x358c00(0x14d))/0x7)+parseInt(_0x358c00(0x180))/0x8+-parseInt(_0x358c00(0x16d))/0x9*(-parseInt(_0x358c00(0x13e))/0xa);if(_0xb94836===_0x2af587)break;else _0x3fdee1['push'](_0x3fdee1['shift']());}catch(_0x2cc4a0){_0x3fdee1['push'](_0x3fdee1['shift']());}}}(_0x3b8a,0xba6ca));import{Plugin as _0x294094}from'ckeditor5/src/core.js';function _0x3b8a(){const _0x4b98d0=['2553940bYibHe','config','init','6846gdYJrD','get','Insert','uploadcareLicenseKeyNotAllowed','_createDropdownButtons','uploadcareLicenseKeyDomainLimit','URL','Dropbox','destroy','GPhotos','3780LHujQM','text','featureNotAllowed','pluginName','_createButton','execute','_createMenuBarButtons','plugins','isEnabled','uploadcare.uploader.sourceList','upload','_normalizeConfigSourceList','forEach','trialLimit','reduce','_createToolbarButton','commands','domainLimit','shortText','icon','has','expired','Uploadcare','invalid','uploadcareLicenseKeyEvaluationLimit','usageLimit','entries','licenseKey','url','isImageSelected','assetManager','isPremiumPlugin','139149ZYqGUv','16374AONreX','UploadcareUI','editor','157295naXTqO','withText','GDrive','uploadcare','bind','label','map','OneDrive','Instagram','1068550UechLK','_getIntegrationKey','isOfficialPlugin','Facebook','tooltip','evaluationLimit','3179872XVXPXk','uploadcareLicenseKeyInvalid','436TFEhck','uploadcareLicenseKeyTrialLimit','_showLicenseError','_licenseKeyCheckInterval','locale','Local','uploadcareLicenseKeyExpired','ImageInsertUI','afterInit','type','uploadcareLicenseKeyUsageLimit','uploadcareLicenseKeyValid','registerIntegration','push','340chdDNH','Replace'];_0x3b8a=function(){return _0x4b98d0;};return _0x3b8a();}import{IconDropbox as _0x3bb9cd,IconFacebook as _0x4c3831,IconGoogleDrive as _0x858ee3,IconGooglePhotos as _0x4c70ec,IconUploadcareImageUpload as _0xc68339,IconInstagram as _0x456f2b,IconUploadcareLink as _0x349808,IconOneDrive as _0x1c4968}from'ckeditor5/src/icons.js';import{ButtonView as _0x3a5a84,MenuBarMenuListItemButtonView as _0x32f2c3}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x29b6e6}from'./uploadcareconfig.js';function _0x46e0(_0x26c129,_0x2f5c7c){const _0x3b8a20=_0x3b8a();return _0x46e0=function(_0x46e0d6,_0x2f89af){_0x46e0d6=_0x46e0d6-0x13c;let _0x4c1d61=_0x3b8a20[_0x46e0d6];return _0x4c1d61;},_0x46e0(_0x26c129,_0x2f5c7c);}import{getTranslation as _0x436051}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x294094{[_0x11b573(0x168)];[_0x11b573(0x185)];static get[_0x11b573(0x150)](){const _0x3bf759=_0x11b573;return _0x3bf759(0x16f);}static get[_0x11b573(0x17c)](){return!0x0;}static get[_0x11b573(0x16c)](){return!0x0;}[_0x11b573(0x142)](){const _0x5676bc=_0x11b573;this[_0x5676bc(0x168)]=this[_0x5676bc(0x170)][_0x5676bc(0x141)][_0x5676bc(0x144)](_0x5676bc(0x168));const _0x16cb44=this[_0x5676bc(0x170)];this[_0x5676bc(0x185)]=setInterval(()=>{const _0x93e774=_0x5676bc;let _0x253b87;for(const _0x3c7dfa in _0x16cb44){const _0x5b541f=_0x3c7dfa,_0x55bbf8=_0x16cb44[_0x5b541f];if(_0x93e774(0x18d)==_0x55bbf8||_0x93e774(0x181)==_0x55bbf8||_0x93e774(0x188)==_0x55bbf8||_0x93e774(0x148)==_0x55bbf8||_0x93e774(0x146)==_0x55bbf8||_0x93e774(0x165)==_0x55bbf8||_0x93e774(0x183)==_0x55bbf8||_0x93e774(0x18c)==_0x55bbf8){delete _0x16cb44[_0x5b541f],_0x253b87=_0x55bbf8,clearInterval(this[_0x93e774(0x185)]),this[_0x93e774(0x185)]=void 0x0;break;}}_0x93e774(0x181)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x164)),_0x93e774(0x188)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x162)),_0x93e774(0x148)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x15e)),_0x93e774(0x146)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x14f),_0x93e774(0x163)),_0x93e774(0x165)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x17f)),_0x93e774(0x183)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x15a)),_0x93e774(0x18c)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x166));},0x3e8);}[_0x11b573(0x18a)](){const _0x5ca118=_0x11b573,{editor:_0x565867}=this,_0x3db466=_0x565867[_0x5ca118(0x15d)][_0x5ca118(0x144)](_0x5ca118(0x174));if(!_0x3db466)return;const _0x485d9a=this[_0x5ca118(0x158)](_0x565867[_0x5ca118(0x141)][_0x5ca118(0x144)](_0x5ca118(0x156)))[_0x5ca118(0x15b)]((_0x461a53,_0x2b3b8b)=>{const _0x56f232=_0x5ca118,_0x13c49b=this[_0x56f232(0x17b)](_0x2b3b8b[_0x56f232(0x18b)]);return _0x461a53[_0x13c49b]||(_0x461a53[_0x13c49b]=[]),_0x461a53[_0x13c49b][_0x56f232(0x13d)](_0x2b3b8b),_0x461a53;},{});_0x565867[_0x5ca118(0x154)][_0x5ca118(0x161)](_0x5ca118(0x189))&&_0x565867[_0x5ca118(0x15d)][_0x5ca118(0x144)](_0x5ca118(0x174))&&Object[_0x5ca118(0x167)](_0x485d9a)[_0x5ca118(0x159)](([_0x6a53ac,_0x345481])=>{const _0x277108=_0x5ca118;_0x565867[_0x277108(0x154)][_0x277108(0x144)](_0x277108(0x189))[_0x277108(0x13c)]({'name':_0x6a53ac,'observable':()=>_0x3db466,'buttonViewCreator':()=>this[_0x277108(0x15c)](_0x345481),'formViewCreator':()=>this[_0x277108(0x147)](_0x345481),'menuBarButtonViewCreator':()=>this[_0x277108(0x153)](_0x345481),'override':_0x277108(0x16b)!==_0x6a53ac});});}[_0x11b573(0x14b)](){const _0x29edec=_0x11b573;super[_0x29edec(0x14b)](),this[_0x29edec(0x185)]&&clearInterval(this[_0x29edec(0x185)]);}[_0x11b573(0x158)](_0x527a87){const _0x5eeeb4=_0x11b573,{locale:_0x4ff76e}=this[_0x5eeeb4(0x170)];return _0x527a87[_0x5eeeb4(0x177)](_0x459bfc=>{const _0x55140f=_0x5eeeb4,_0x3f7805=_0x436051(_0x4ff76e,_0x459bfc,_0x55140f(0x145));switch(_0x459bfc){case _0x29b6e6[_0x55140f(0x187)]:return{'icon':_0xc68339,'type':_0x29b6e6[_0x55140f(0x187)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x149)]:return{'icon':_0x349808,'type':_0x29b6e6[_0x55140f(0x149)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x14a)]:return{'icon':_0x3bb9cd,'type':_0x29b6e6[_0x55140f(0x14a)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x17d)]:return{'icon':_0x4c3831,'type':_0x29b6e6[_0x55140f(0x17d)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x173)]:return{'icon':_0x858ee3,'type':_0x29b6e6[_0x55140f(0x173)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x14c)]:return{'icon':_0x4c70ec,'type':_0x29b6e6[_0x55140f(0x14c)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x179)]:return{'icon':_0x456f2b,'type':_0x29b6e6[_0x55140f(0x179)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x178)]:return{'icon':_0x1c4968,'type':_0x29b6e6[_0x55140f(0x178)],..._0x3f7805};}});}[_0x11b573(0x17b)](_0x131b10){const _0x2b3138=_0x11b573;switch(_0x131b10){case _0x29b6e6[_0x2b3138(0x187)]:return _0x2b3138(0x157);case _0x29b6e6[_0x2b3138(0x149)]:return _0x2b3138(0x169);default:return _0x2b3138(0x16b);}}[_0x11b573(0x151)](_0x2e6f83,_0x14a4db){const _0x158a6d=_0x11b573,_0x10b196=this[_0x158a6d(0x170)],_0x18ec1d=new _0x2e6f83(_0x10b196[_0x158a6d(0x186)]),_0x1f7c30=_0x10b196[_0x158a6d(0x15d)][_0x158a6d(0x144)](_0x158a6d(0x174));return _0x18ec1d[_0x158a6d(0x175)](_0x158a6d(0x155))['to'](_0x1f7c30),_0x18ec1d['on'](_0x158a6d(0x152),()=>{const _0x2b0938=_0x158a6d;_0x1f7c30[_0x2b0938(0x152)](_0x14a4db);}),_0x18ec1d;}[_0x11b573(0x15c)](_0x45979a){const _0x1edc1c=_0x11b573,{locale:_0x26b0c5}=this[_0x1edc1c(0x170)],_0x5370f3=this[_0x1edc1c(0x170)][_0x1edc1c(0x154)][_0x1edc1c(0x144)](_0x1edc1c(0x189)),_0x471fac=_0x45979a[0x0],_0x2382f8=this[_0x1edc1c(0x151)](_0x3a5a84,_0x471fac[_0x1edc1c(0x18b)]);return _0x2382f8[_0x1edc1c(0x160)]=_0x471fac[_0x1edc1c(0x160)],_0x2382f8[_0x1edc1c(0x175)](_0x1edc1c(0x176))['to'](_0x5370f3,_0x1edc1c(0x16a),_0x1b0ca9=>_0x436051(_0x26b0c5,_0x471fac[_0x1edc1c(0x18b)],_0x1b0ca9?_0x1edc1c(0x13f):_0x1edc1c(0x145))[_0x1edc1c(0x14e)]),_0x2382f8[_0x1edc1c(0x17e)]=!0x0,_0x2382f8;}[_0x11b573(0x147)](_0x47b2f5){const _0x446473=_0x11b573,{locale:_0x599a7c}=this[_0x446473(0x170)],_0x41ff37=this[_0x446473(0x170)][_0x446473(0x154)][_0x446473(0x144)](_0x446473(0x189));return _0x47b2f5[_0x446473(0x177)](_0x325aa0=>{const _0x53f0e4=_0x446473,_0x51753d=this[_0x53f0e4(0x151)](_0x3a5a84,_0x325aa0[_0x53f0e4(0x18b)]);return _0x51753d[_0x53f0e4(0x172)]=!0x0,_0x51753d[_0x53f0e4(0x160)]=_0x325aa0[_0x53f0e4(0x160)],_0x51753d[_0x53f0e4(0x175)](_0x53f0e4(0x176))['to'](_0x41ff37,_0x53f0e4(0x16a),_0x2a49e1=>_0x436051(_0x599a7c,_0x325aa0[_0x53f0e4(0x18b)],_0x2a49e1?_0x53f0e4(0x13f):_0x53f0e4(0x145))[_0x53f0e4(0x14e)]),_0x51753d;});}[_0x11b573(0x153)](_0x13cf93){const _0x4f5d0f=_0x11b573;return _0x13cf93[_0x4f5d0f(0x177)](_0x3ee24d=>{const _0x526680=_0x4f5d0f,_0x3a4ea8=this[_0x526680(0x151)](_0x32f2c3,_0x3ee24d[_0x526680(0x18b)]);return _0x3a4ea8[_0x526680(0x160)]=_0x3ee24d[_0x526680(0x160)],_0x3a4ea8[_0x526680(0x176)]=_0x3ee24d[_0x526680(0x15f)],_0x3a4ea8;});}}
|