@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250214.0 → 0.0.0-nightly-next-20250215.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
package/ckeditor5-metadata.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x2a75cc,icons as _0xf2fd3c,Command as _0x4ceeed}from'@ckeditor/ckeditor5-core/dist/index.js';import{ButtonView as _0x4d80a3,MenuBarMenuListItemButtonView as _0x4896b4,View as _0x286280,FocusCycler as _0x37922e,Dialog as _0x28db4a,DialogViewPosition as _0x3002f6,SpinnerView as _0x20dd64,IconView as et,Notification as _0x3ae78c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5ca43a,DomEmitterMixin as _0x4577d3,global as _0x43391f,getAncestors as _0x4ac239,ObservableMixin as _0x1f04a1,createElement as _0x3640d8,uid as _0x5065a3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x43add1}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x50f77a,info as _0x51a1cd}from'@uploadcare/upload-client';import*as _0xcd3c6e from'@uploadcare/file-uploader';var o=function(_0x1fedf7){return _0x1fedf7['Local']='local',_0x1fedf7['URL']='url',_0x1fedf7['Dropbox']='dropbox',_0x1fedf7['GDrive']='gdrive',_0x1fedf7['Facebook']='facebook',_0x1fedf7['GPhotos']='gphotos',_0x1fedf7['OneDrive']='onedrive',_0x1fedf7;}({});function _(_0x5be8ff,_0x16f056,_0x57e2aa){const t=_0x5be8ff['t'],_0x223cde=_0x5be8ff['t'];switch(_0x16f056){case o['Local']:return{'text':_0x223cde('Insert'===_0x57e2aa?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x223cde('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x57e2aa?_0x223cde('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x223cde('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x57e2aa?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x57e2aa?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x57e2aa?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x57e2aa?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x57e2aa?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x16f056;}}class e extends _0x2a75cc{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3f568a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a515a;for(const _0x793a52 in _0x3f568a){const _0x3b5563=_0x793a52,_0xb9ba02=_0x3f568a[_0x3b5563];if('uploadcareLicenseKeyValid'==_0xb9ba02||'uploadcareLicenseKeyInvalid'==_0xb9ba02||'uploadcareLicenseKeyExpired'==_0xb9ba02||'uploadcareLicenseKeyDomainLimit'==_0xb9ba02||'uploadcareLicenseKeyNotAllowed'==_0xb9ba02||'uploadcareLicenseKeyEvaluationLimit'==_0xb9ba02||'uploadcareLicenseKeyTrialLimit'==_0xb9ba02||'uploadcareLicenseKeyUsageLimit'==_0xb9ba02){delete _0x3f568a[_0x3b5563],_0x2a515a=_0xb9ba02,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2a515a&&_0x3f568a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2a515a&&_0x3f568a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2a515a&&_0x3f568a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2a515a&&_0x3f568a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2a515a&&_0x3f568a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2a515a&&_0x3f568a['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2a515a&&_0x3f568a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x6b01b5}=this,_0x62788e=_0x6b01b5['commands']['get']('uploadcare');if(!_0x62788e)return;const _0x508d6f=this['_normalizeConfigSourceList'](_0x6b01b5['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xcf872b,_0x3cf259)=>{const _0x4eab60=this['_getIntegrationKey'](_0x3cf259['type']);return _0xcf872b[_0x4eab60]||(_0xcf872b[_0x4eab60]=[]),_0xcf872b[_0x4eab60]['push'](_0x3cf259),_0xcf872b;},{});_0x6b01b5['plugins']['has']('ImageInsertUI')&&_0x6b01b5['commands']['get']('uploadcare')&&Object['entries'](_0x508d6f)['forEach'](([_0x1a5022,_0x1955cd])=>{_0x6b01b5['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1a5022,'observable':()=>_0x62788e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1955cd),'formViewCreator':()=>this['_createDropdownButtons'](_0x1955cd),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1955cd),'override':'assetManager'!==_0x1a5022});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3918ea){const {locale:_0x429c99}=this['editor'];return _0x3918ea['map'](_0xcf4328=>{const _0x490d62=_(_0x429c99,_0xcf4328,'Insert');switch(_0xcf4328){case o['Local']:return{'icon':_0xf2fd3c['imageUpload'],'type':o['Local'],..._0x490d62};case o['URL']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M12.748\x202a4.622\x204.622\x200\x200\x200-3.174\x201.362L8.02\x204.915a.783.783\x200\x200\x200\x20.002\x201.11.786.786\x200\x200\x200\x201.11\x200l1.55-1.553c1.185-1.185\x203.024-1.195\x204.116-.104l.851.854c1.092\x201.091\x201.083\x202.927-.101\x204.11l-1.555\x201.554a.787.787\x200\x200\x200\x20.557\x201.34.78.78\x200\x200\x200\x20.553-.23l1.554-1.552c1.758-1.757\x201.838-4.597.102-6.332l-.854-.853A4.31\x204.31\x200\x200\x200\x2012.748\x202Zm-.488\x204.973a.78.78\x200\x200\x200-.553.23L7.2\x2011.71l-.004.002a.784.784\x200\x200\x200\x201.11\x201.107l.003-.002\x204.504-4.505a.785.785\x200\x200\x200-.554-1.339Zm-6.79.815a.791.791\x200\x200\x200-.554.234L3.36\x209.573c-1.757\x201.758-1.836\x204.597-.101\x206.332l.853.852c1.736\x201.734\x204.572\x201.655\x206.33-.102l1.547-1.547.006-.008a.777.777\x200\x200\x200\x20.244-.554.782.782\x200\x200\x200-.799-.797.774.774\x200\x200\x200-.56.248l-1.545\x201.547c-1.184\x201.184-3.021\x201.195-4.113.104l-.854-.854c-1.091-1.091-1.083-2.927.102-4.111l1.552-1.555a.787.787\x200\x200\x200\x20.233-.555.79.79\x200\x200\x200-.06-.3.793.793\x200\x200\x200-.173-.253s-.104-.14-.183-.185c-.051-.03-.133-.047-.37-.047Z\x22/></svg>\x0a','type':o['URL'],..._0x490d62};case o['Dropbox']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M5.972\x203.115A.746.746\x200\x200\x201\x206.374\x203c.14\x200\x20.28.037.402.115l3.229\x202.059\x203.228-2.057a.75.75\x200\x200\x201\x20.805\x200l3.629\x202.31h.002a.757.757\x200\x200\x201\x200\x201.264h-.002L15.034\x208.37l2.633\x201.678h.002a.756.756\x200\x200\x201\x200\x201.262h-.002l-3.63\x202.312a.746.746\x200\x200\x201-.161.076c.234.08.409.275.482.5a.75.75\x200\x200\x201-.322.854l-3.629\x202.308a.75.75\x200\x200\x201-.805\x200l-3.63-2.31a.75.75\x200\x200\x201-.229-1.031l.076-.122h.022a.746.746\x200\x200\x201\x20.32-.189.75.75\x200\x200\x201-.19-.086l-3.63-2.312a.756.756\x200\x200\x201\x200-1.264l2.632-1.678-2.632-1.676a.757.757\x200\x200\x201\x200-1.263l3.63-2.313Zm2.64\x202.946L6.374\x204.635\x204.136\x206.06l2.238\x201.423\x202.238-1.423Zm7.262\x200-2.236-1.426-2.239\x201.426\x202.237\x201.423\x202.238-1.423Zm-3.637\x202.306-2.232-1.422-2.233\x201.422\x202.235\x201.422\x202.23-1.422Zm-3.625\x202.31L6.374\x209.253l-2.238\x201.426\x202.238\x201.424\x202.238-1.424Zm7.262\x200-2.236-1.425-2.239\x201.426\x202.237\x201.424\x202.238-1.424Zm-2.64\x202.944-3.23-2.056-3.228\x202.056a.75.75\x200\x200\x201-.185.084.724.724\x200\x200\x201\x20.185.08l3.229\x202.057\x203.226-2.055a.827.827\x200\x200\x201\x20.18-.084.746.746\x200\x200\x201-.178-.082Z\x22/></svg>\x0a','type':o['Dropbox'],..._0x490d62};case o['Facebook']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M10.01\x202C5.59\x202\x202\x205.59\x202\x2010.01a8.011\x208.011\x200\x200\x200\x206.775\x207.914.754.754\x200\x200\x200\x20.598-.17.75.75\x200\x200\x200\x20.262-.565v-5.02a.745.745\x200\x200\x200-.22-.524.745.745\x200\x200\x200-.526-.221H7.77v-.627H8.89a.745.745\x200\x200\x200\x20.525-.22c.14-.14.22-.329.22-.526V8.324c0-.466.122-1.083.524-1.48.33-.326\x201.017-.6\x202.332-.43v.408c-.152.012-.305.017-.457.04-.335.048-.662.136-.943.326-.313.21-.497.505-.59.804-.093.3-.107.602-.107.88v1.18a.746.746\x200\x200\x200\x20.744.746h1.158l-.098.63h-1.06a.744.744\x200\x200\x200-.744.744v5.017a.752.752\x200\x200\x200\x20.26.567c.081.07.177.119.28.148a.75.75\x200\x200\x200\x20.319.022A8.012\x208.012\x200\x200\x200\x2010.01\x202Zm0\x201.486a6.52\x206.52\x200\x200\x201\x206.521\x206.524c0\x202.945-1.973\x205.386-4.65\x206.197v-3.291h.951a.749.749\x200\x200\x200\x20.736-.63l.332-2.12a.742.742\x200\x200\x200-.17-.6.745.745\x200\x200\x200-.564-.26h-1.285V8.87c0-.252.024-.384.039-.433.003-.008.002-.012.002-.016.016-.011.104-.055.326-.088a7\x207\x200\x200\x201\x20.984-.05.746.746\x200\x200\x200\x20.528-.218c.14-.139.217-.33.217-.527V5.76a.747.747\x200\x200\x200-.586-.729c-2.04-.438-3.433-.083-4.278.75-.818.807-.968\x201.884-.968\x202.543v.983H7.027a.744.744\x200\x200\x200-.525.22.743.743\x200\x200\x200-.219.526v2.119c0\x20.197.08.386.219.525.14.14.328.221.525.221h1.118v3.291c-2.681-.809-4.659-3.25-4.659-6.197a6.523\x206.523\x200\x200\x201\x206.524-6.526Z\x22/></svg>\x0a','type':o['Facebook'],..._0x490d62};case o['GDrive']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M7.666\x203a.736.736\x200\x200\x200-.371.1.748.748\x200\x200\x200-.275.267l-4.918\x208.397a.743.743\x200\x200\x200-.006.744l2.46\x204.318a.747.747\x200\x200\x200\x20.65.377h9.606a.754.754\x200\x200\x200\x20.65-.377l2.46-4.318a.74.74\x200\x200\x200\x20.002-.735l-4.688-8.392a.754.754\x200\x200\x200-.654-.38H7.666Zm1.285\x201.492h3.195l3.854\x206.9h-3.1l-3.949-6.9Zm-1.293.742L9.223\x207.97l-4.016\x206.988-1.6-2.813\x204.051-6.91Zm2.424\x204.237\x201.098\x201.922H8.977l1.105-1.922ZM8.12\x2012.885h7.87L14.38\x2015.71H6.494l1.625-2.826Z\x22/></svg>\x0a','type':o['GDrive'],..._0x490d62};case o['GPhotos']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M9.258\x203.082c0-.594.486-1.082\x201.08-1.082a4.38\x204.38\x200\x200\x201\x204.239\x205.489c-.18.688-.633\x201.245-1.109\x201.767h3.468c.595\x200\x201.082.488\x201.082\x201.082a4.382\x204.382\x200\x200\x201-5.49\x204.24v-.001c-.689-.18-1.246-.633-1.768-1.109v3.468c0\x20.595-.487\x201.082-1.082\x201.082a4.384\x204.384\x200\x200\x201-4.111-2.866\x204.382\x204.382\x200\x200\x201-.125-2.624c.18-.689.632-1.246\x201.108-1.768H3.082A1.085\x201.085\x200\x200\x201\x202\x209.68a4.382\x204.382\x200\x200\x201\x205.49-4.238c.69.18\x201.246.632\x201.768\x201.108V3.082Zm3.164\x201.32c-.435-.46-1.043-.667-1.662-.767v5.49c.619-.1\x201.227-.307\x201.662-.766a2.875\x202.875\x200\x200\x200\x200-3.958ZM7.21\x206.918a2.876\x202.876\x200\x200\x200-2.93.789c-.396.423-.569.983-.658\x201.55h5.56c-.045-.295-.091-.59-.224-.859a2.879\x202.879\x200\x200\x200-1.748-1.48Zm9.254\x203.841h-5.653l.013.1c.012.098.025.197.053.292a2.873\x202.873\x200\x200\x200\x204.862\x201.158\x202.87\x202.87\x200\x200\x200\x20.398-.54v-.001c.111-.195.2-.403.263-.619.026-.092.038-.188.05-.283l.014-.107Zm-8.872\x204.86c.437.459\x201.045.666\x201.665.766V10.89c-1.369.222-2.456\x201.314-2.456\x202.747\x200\x20.738.283\x201.447.791\x201.981Z\x22/></svg>\x0a','type':o['GPhotos'],..._0x490d62};case o['OneDrive']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M10.223\x205.001a5.277\x205.277\x200\x200\x200-4.408\x202.258c-3.224.423-4.908\x204.123-3.032\x206.814l.004.008.002.004c.48.627\x201.712\x201.84\x203.588\x201.84h7.936c.667\x200\x201.32-.179\x201.894-.522a3.838\x203.838\x200\x200\x200\x201.381-1.46v-.005c1.13-2.16-.133-4.777-2.488-5.298-.617-1.853-2.177-3.242-4.111-3.565a5.273\x205.273\x200\x200\x200-.766-.074Zm-.092\x201.5c.078\x200\x20.154.001.23.008.077.004.154.014.231.021l.226.035a5.203\x205.203\x200\x200\x201\x20.45.116\x203.31\x203.31\x200\x200\x201\x20.433.166\x204.079\x204.079\x200\x200\x201\x20.606.348\x204.195\x204.195\x200\x200\x201\x20.37.293\x203.54\x203.54\x200\x200\x201\x20.33.348\x203.517\x203.517\x200\x200\x201\x20.505.778\x203.182\x203.182\x200\x200\x200-.42.117c-.082.03-.164.06-.244.094l-1.49.627-2.686-1.61a4.39\x204.39\x200\x200\x200-1.002-.445c.015-.01.032-.026.047-.039a3.744\x203.744\x200\x200\x201\x20.4-.289\x203.713\x203.713\x200\x200\x201\x20.424-.23\x203.02\x203.02\x200\x200\x201\x20.219-.094c.074-.03.15-.053.225-.076a3.77\x203.77\x200\x200\x201\x20.222-.06c.077-.02.157-.035.233-.05.075-.015.15-.025.228-.033.077-.007.154-.015.233-.02.078-.003.154-.005.23-.005Zm-3.8\x202.193h.003c.54.001\x201.111.156\x201.551.428l1.783\x201.07-5.867\x202.471c-.535-1.29-.15-2.788\x201.059-3.537l.007-.004c.441-.271.946-.42\x201.463-.428Zm7.974\x201.33.152.008c.086.008.173.018.258.033a1.956\x201.956\x200\x200\x201\x20.477.145\x202.179\x202.179\x200\x200\x201\x20.918.756c.046.066.09.133.127.2a2.284\x202.284\x200\x200\x201\x20.269.919c.004.081.008.165.002.248-.003.055-.012.111-.02.166l-3.507-2.102.459-.193.015-.008a2.118\x202.118\x200\x200\x201\x20.41-.125\x202.297\x202.297\x200\x200\x201\x20.44-.047Zm-3.008\x201.112\x204.506\x202.699a2.217\x202.217\x200\x200\x201-.338.26\x202.228\x202.228\x200\x200\x201-.668.275c-.078.019-.157.03-.24.04-.081.007-.164.015-.246.015H6.373c-.057\x200-.113-.001-.168-.004a1.904\x201.904\x200\x200\x201-.164-.016l-.154-.023c-.051-.008-.102-.014-.15-.026a2.942\x202.942\x200\x200\x201-.77-.3\x202.889\x202.889\x200\x200\x201-.21-.133c-.012-.008-.019-.016-.03-.024l6.57-2.763Z\x22/></svg>\x0a','type':o['OneDrive'],..._0x490d62};}});}['_getIntegrationKey'](_0x2f3c21){switch(_0x2f3c21){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x28a9c9,_0x3454f5){const _0x178f62=this['editor'],_0x43d51d=new _0x28a9c9(_0x178f62['locale']),_0x230dee=_0x178f62['commands']['get']('uploadcare');return _0x43d51d['bind']('isEnabled')['to'](_0x230dee),_0x43d51d['on']('execute',()=>{_0x230dee['execute'](_0x3454f5);}),_0x43d51d;}['_createToolbarButton'](_0x17076c){const {locale:_0x495bf3}=this['editor'],_0x44d02f=this['editor']['plugins']['get']('ImageInsertUI'),_0x581749=_0x17076c[0x0],_0x5a60d8=this['_createButton'](_0x4d80a3,_0x581749['type']);return _0x5a60d8['icon']=_0x581749['icon'],_0x5a60d8['bind']('label')['to'](_0x44d02f,'isImageSelected',_0x1269cc=>_(_0x495bf3,_0x581749['type'],_0x1269cc?'Replace':'Insert')['text']),_0x5a60d8['tooltip']=!0x0,_0x5a60d8;}['_createDropdownButtons'](_0x73f0d9){const {locale:_0x3579ba}=this['editor'],_0x7653b8=this['editor']['plugins']['get']('ImageInsertUI');return _0x73f0d9['map'](_0x88af76=>{const _0x588cae=this['_createButton'](_0x4d80a3,_0x88af76['type']);return _0x588cae['withText']=!0x0,_0x588cae['icon']=_0x88af76['icon'],_0x588cae['bind']('label')['to'](_0x7653b8,'isImageSelected',_0x3dbaaa=>_(_0x3579ba,_0x88af76['type'],_0x3dbaaa?'Replace':'Insert')['text']),_0x588cae;});}['_createMenuBarButtons'](_0x1f169d){return _0x1f169d['map'](_0x30db38=>{const _0x8531fa=this['_createButton'](_0x4896b4,_0x30db38['type']);return _0x8531fa['icon']=_0x30db38['icon'],_0x8531fa['label']=_0x30db38['shortText'],_0x8531fa;});}}class q extends _0x286280{['focusTracker'];['focusCycler'];constructor(_0x47cfaa){super(_0x47cfaa),this['focusTracker']=new _0x5ca43a(),this['focusCycler']=new _0x37922e({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x2bdf13){super(_0x2bdf13),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xa1c066,_0x355297){const _0x1c976c=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5ae630=>_0x5ae630<=_0x355297)['map'](_0x16aed7=>_0xa1c066['replace'](/\/$/,'')+'/-/resize/'+_0x16aed7+'x/\x20'+_0x16aed7+'w');return{'imageFallbackUrl':_0xa1c066,'imageSources':[{'srcset':_0x1c976c['join'](',\x20'),'sizes':'(max-width:\x20'+_0x355297+'px)\x20100vw,\x20'+_0x355297+'px','type':'image/webp'}]};}function A(_0x2d263d,_0x51a56e,_0x31e7bf){const _0x115ceb=_0x2d263d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x115ceb?parseInt(_0x115ceb[0x1],0xa):_0x51a56e,'height':_0x115ceb?parseInt(_0x115ceb[0x2],0xa):_0x31e7bf};}function p(_0x1aeaca,_0x325f38){const _0x41d45e=Object['create'](_0x4577d3),_0x4a12fd=_0x1aeaca['plugins']['get']('ImageUtils'),_0x2fa70f=_0x1aeaca['editing']['mapper']['toViewElement'](_0x325f38),_0x2bd258=_0x4a12fd['findViewImgElement'](_0x2fa70f),_0x40cd22=_0x1aeaca['editing']['view']['domConverter']['viewToDom'](_0x2bd258),_0x2305b4=_0x325f38['getAttribute']('width'),_0x310727=_0x325f38['getAttribute']('height'),_0x115350='image-processing';_0x1aeaca['editing']['view']['change'](_0x25fcef=>{_0x25fcef['addClass'](_0x115350,_0x2fa70f),_0x25fcef['setStyle']('aspect-ratio',_0x2305b4+'/'+_0x310727,_0x2bd258);}),_0x41d45e['listenTo'](_0x40cd22,'load',()=>{_0x41d45e['stopListening'](_0x40cd22,'load'),_0x1aeaca['editing']['view']['change'](_0x3a4155=>{_0x3a4155['removeClass'](_0x115350,_0x2fa70f),_0x3a4155['removeStyle']('aspect-ratio',_0x2bd258);});});}function V(_0x511a68){if(Array['isArray'](_0x511a68)){const _0x23038a=_0x511a68['map'](V);return _0x13b94c=>_0x23038a['some'](_0xb6f740=>_0xb6f740(_0x13b94c));}if('origin'==_0x511a68){const _0x396956=_0x43391f['window']['location']['origin'];return _0x5a8b53=>new URL(_0x5a8b53,_0x43391f['document']['baseURI'])['origin']==_0x396956;}return'function'==typeof _0x511a68?_0x511a68:_0x511a68 instanceof RegExp?_0x182503=>!(!_0x182503['match'](_0x511a68)&&!_0x182503['replace'](/^https?:\/\//,'')['match'](_0x511a68)):()=>!0x1;}function F(_0xa1da5f,_0x35d27e){return _0x4ac239(_0xa1da5f['target'])['includes'](_0x35d27e);}class h extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x1f04a1(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x90b58e,_0x3fc5f6,_0x1fc4b7){super(),this['_editor']=_0x90b58e,this['_editing']=_0x3fc5f6,this['_dialog']=_0x90b58e['plugins']['get'](_0x28db4a),this['_api']=_0x3fc5f6['ctxElement']['getAPI'](),this['_type']=_0x1fc4b7,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x897469,model:_0x1ec022}=this['_editor'],_0xb353e9=_0x1ec022['document']['selection']['getSelectedElement'](),_0x4bd050=_0xb353e9&&(_0xb353e9['is']('element','imageBlock')||_0xb353e9['is']('element','imageInline'));this['_formView']=new S(_0x897469),this['_dialog']['show']({'id':'uploadCare','icon':_0xf2fd3c['imageUpload'],'title':_(_0x897469,this['_type'],_0x4bd050?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3002f6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1fd704=>!F(_0x1fd704,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x46c682}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x271c6d=>{const _0x2f7449=_0x46c682['length'];for(const _0x5ea8ae of _0x46c682){const _0x3d9bd6=_0x5ea8ae===_0x46c682[_0x2f7449-0x1],{cdnUrl:_0x51fca8,fileInfo:_0x1358c7}=_0x5ea8ae;if(!_0x51fca8||!_0x1358c7)continue;const {width:_0x559587,height:_0x2dea6c}=_0x1358c7['imageInfo'],_0x5080a5=A(_0x51fca8,_0x559587,_0x2dea6c),_0x3b18cb=C(_0x51fca8,_0x5080a5['width']),_0x24a224={'id':_0x1358c7['uuid'],'type':'image','attributes':{'imageDimension':_0x5080a5,..._0x3b18cb}};this['_insertAsset'](_0x24a224,_0x3d9bd6,_0x271c6d);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3128ce=>{'idle'===_0x3128ce['detail']['status']&&!_0x3128ce['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x19a52c,_0xa2a432,_0x3421cc){const _0x376918=this['_editor']['model']['document']['selection'],_0x26bc63=_0x376918['getSelectedElement'](),_0x34d48c=!(!_0x26bc63||!_0x26bc63['is']('element','imageInline'));_0x3421cc['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x19a52c,_0x34d48c),_0xa2a432||_0x3421cc['setSelection'](_0x376918['getLastPosition']());}['_insertImage'](_0x511c1c,_0x440d01){const _0x393ab7=this['_editor'],{imageDimension:_0x39dc6f,imageFallbackUrl:_0xba95c2,imageSources:_0x12f57d}=_0x511c1c['attributes'];_0x393ab7['execute']('insertImage',{'imageType':_0x440d01?'imageInline':null,'source':{'uploadcareImageId':_0x511c1c['id'],'src':_0xba95c2,'sources':_0x12f57d,..._0x39dc6f}});}}class l extends _0x4ceeed{['_editing'];['_controller']=null;static get['requires'](){return[_0x28db4a,i];}constructor(_0x25bdc7){super(_0x25bdc7),this['_editing']=_0x25bdc7['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x402d6c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new h(this['editor'],this['_editing'],_0x402d6c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class k{static['upload']({file:_0x3cdf91,publicKey:_0x5d8276,signal:_0x11d9ad,onProgress:_0x22f0a0}){return _0x50f77a(_0x3cdf91,{'publicKey':_0x5d8276,'store':'auto','signal':_0x11d9ad,'onProgress':_0x22f0a0});}static['getInfo'](_0x62a00,_0x5ad592){return _0x51a1cd(_0x62a00,_0x5ad592);}}class f extends _0x2a75cc{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x43add1,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5c1814=this['editor'];if(!!!_0x5c1814['config']['get']('uploadcare'))return;_0x5c1814['plugins']['get'](_0x43add1)['createUploadAdapter']=_0xd9bce1=>new E(_0xd9bce1,_0x5c1814),_0x5c1814['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x393e79,{imageElement:_0x32293b,data:_0x5a9b11})=>{_0x5c1814['model']['change'](_0x43c51b=>{_0x43c51b['setAttribute']('uploadcareImageId',_0x5a9b11['uploadcareImageId'],_0x32293b);});});}}class E{['loader'];['editor'];['controller'];constructor(_0x2deb5e,_0x464c49){this['loader']=_0x2deb5e,this['editor']=_0x464c49,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x11d746=this['editor']['config']['get']('uploadcare.pubkey'),_0x2f34e9=await this['loader']['file'];return k['upload']({'file':_0x2f34e9,'publicKey':_0x11d746,'signal':this['controller']['signal'],'onProgress':_0x44bb01=>{_0x44bb01&&_0x44bb01['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x44bb01['value']);}})['then'](async _0x222ffd=>{const {imageFallbackUrl:_0x14eae0,imageSources:_0x3b4189}=C(_0x222ffd['cdnUrl'],_0x222ffd['imageInfo']['width']);return{'uploadcareImageId':_0x222ffd['uuid'],'default':_0x14eae0,'sources':_0x3b4189};})['catch'](()=>{const _0x461b43=t('Cannot\x20upload\x20file:')+('\x20'+_0x2f34e9['name']+'.');return Promise['reject'](_0x461b43);});}['abort'](){this['controller']['abort']();}}class i extends _0x2a75cc{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x28db4a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x2b50fd=this['editor'];_0x2b50fd['commands']['add']('uploadcare',new l(_0x2b50fd));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x592c74=_0x43391f['document']['querySelector']('input[uploadcare-file-input]');_0x592c74&&_0x592c74['remove']();}),async function(_0x27ca44){const _0x19c6c2=_0x43a0f2([0x52,0x45,0x39,0x79,0x43,0x71,0x4c,0x78,0x65,0x44,0x5a,0x30,0x38,0x77,0x41,0x6c,0x58,0x6e,0x49,0x42,0x47,0x37,0x4a,0x6a,0x57,0x6d,0x69,0x36,0x46,0x72,0x50,0x63,0x4d,0x32,0x48,0x31,0x67,0x76,0x56,0x33,0x70,0x6b,0x35,0x51,0x7a,0x75,0x73,0x74,0x68,0x6f,0x4b,0x53,0x54,0x59,0x62,0x34,0x55,0x4f,0x61,0x66,0x64,0x4e]),_0x3d1d68=0x418441e1,_0x2f2ce3=0x41831e99^_0x3d1d68,_0x49bbf7=window[_0x43a0f2([0x44,0x61,0x74,0x65])][_0x43a0f2([0x6e,0x6f,0x77])](),_0x3ba511=_0x27ca44[_0x43a0f2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e6769=new window[(_0x43a0f2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ab9ca=>{_0x3ba511[_0x43a0f2([0x6f,0x6e,0x63,0x65])](_0x43a0f2([0x72,0x65,0x61,0x64,0x79]),_0x1ab9ca);}),_0x551ad7={[_0x43a0f2([0x6b,0x74,0x79])]:_0x43a0f2([0x45,0x43]),[_0x43a0f2([0x75,0x73,0x65])]:_0x43a0f2([0x73,0x69,0x67]),[_0x43a0f2([0x63,0x72,0x76])]:_0x43a0f2([0x50,0x2d,0x32,0x35,0x36]),[_0x43a0f2([0x78])]:_0x43a0f2([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]),[_0x43a0f2([0x79])]:_0x43a0f2([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]),[_0x43a0f2([0x61,0x6c,0x67])]:_0x43a0f2([0x45,0x53,0x32,0x35,0x36])},_0x3f7181=_0x3ba511[_0x43a0f2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x43a0f2([0x67,0x65,0x74])](_0x43a0f2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38c2bd(){let _0x51ba22,_0x34909e=null,_0x4f8978=null;try{if(_0x3f7181==_0x43a0f2([0x47,0x50,0x4c]))return _0x43a0f2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51ba22=_0x2ea833(),!_0x51ba22)return _0x43a0f2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51ba22[_0x43a0f2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f8978=_0xf9340b(_0x51ba22[_0x43a0f2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51ba22[_0x43a0f2([0x6a,0x74,0x69])])),await _0x355339()?_0x2de9b2()?_0x422301()?_0x43a0f2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4020d3()?(_0x51ba22[_0x43a0f2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43a0f2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34909e=_0x3882f6(_0x43a0f2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51ba22[_0x43a0f2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43a0f2([0x74,0x72,0x69,0x61,0x6c])&&(_0x34909e=_0x3882f6(_0x43a0f2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x536f6a()):_0x43a0f2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x43a0f2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x43a0f2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5cabc8){return _0x43a0f2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x422301(){const _0x49fc35=[_0x43a0f2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x43a0f2([0x74,0x72,0x69,0x61,0x6c])][_0x43a0f2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51ba22[_0x43a0f2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49bbf7/0x3e8:0xe10*_0x2f2ce3;return _0x51ba22[_0x43a0f2([0x65,0x78,0x70])]<_0x49fc35;}function _0x2de9b2(){const _0x8d775e=_0x51ba22[_0x43a0f2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x8d775e&&(!!_0x8d775e[_0x43a0f2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43a0f2([0x2a]))||!!_0x8d775e[_0x43a0f2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43a0f2([0x55,0x50,0x4c,0x43])));}function _0x4020d3(){const _0x498e5c=_0x51ba22[_0x43a0f2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x498e5c||0x0==_0x498e5c[_0x43a0f2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x27b735}=new URL(window[_0x43a0f2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x498e5c[_0x43a0f2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27b735))return!0x0;const _0x19ec09=_0x27b735[_0x43a0f2([0x73,0x70,0x6c,0x69,0x74])](_0x43a0f2([0x2e]));return _0x498e5c[_0x43a0f2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e3fa0=>_0x1e3fa0[_0x43a0f2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43a0f2([0x2a])))[_0x43a0f2([0x6d,0x61,0x70])](_0x48a2a8=>_0x48a2a8[_0x43a0f2([0x73,0x70,0x6c,0x69,0x74])](_0x43a0f2([0x2e])))[_0x43a0f2([0x73,0x6f,0x6d,0x65])](_0x36f0e1=>_0x19ec09[_0x43a0f2([0x65,0x76,0x65,0x72,0x79])]((_0x59cc75,_0x81a2a4)=>_0x36f0e1[_0x81a2a4]===_0x59cc75||_0x36f0e1[_0x81a2a4]===_0x43a0f2([0x2a])));}function _0x536f6a(){return _0x34909e&&_0x4f8978?new window[(_0x43a0f2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4720e0,_0x5cab86)=>{_0x34909e[_0x43a0f2([0x74,0x68,0x65,0x6e])](_0x4720e0,_0x5cab86),_0x4f8978[_0x43a0f2([0x74,0x68,0x65,0x6e])](_0x5e8458=>{_0x5e8458!=_0x43a0f2([0x56,0x61,0x6c,0x69,0x64])&&_0x4720e0(_0x5e8458);},_0x5cab86);}):_0x34909e||_0x4f8978||_0x43a0f2([0x56,0x61,0x6c,0x69,0x64]);}}function _0xf9340b(_0x226e0a,_0x57a9fe){return new window[(_0x43a0f2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe12e48=>{if(_0x3d68fe())return _0xe12e48(_0x43a0f2([0x56,0x61,0x6c,0x69,0x64]));_0x4a1970(),_0x3ba511[_0x43a0f2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x43a0f2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x180f6b=!0x1;const _0x37437b=_0x5065a3();function _0x2d4256(_0x51ff12){return!!_0x51ff12&&(typeof _0x51ff12===_0x43a0f2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51ff12===_0x43a0f2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51ff12[_0x43a0f2([0x74,0x68,0x65,0x6e])]===_0x43a0f2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51ff12[_0x43a0f2([0x63,0x61,0x74,0x63,0x68])]===_0x43a0f2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x56f9fc(_0x3bcb81){_0x1bd2de(_0x3bcb81)[_0x43a0f2([0x74,0x68,0x65,0x6e])](_0x23a658=>{if(!_0x23a658||_0x23a658[_0x43a0f2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x43a0f2([0x6f,0x6b]))return _0x43a0f2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4985ed(_0x31e333(_0x37437b+_0x57a9fe))!=_0x23a658[_0x43a0f2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x43a0f2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x43a0f2([0x56,0x61,0x6c,0x69,0x64]);})[_0x43a0f2([0x74,0x68,0x65,0x6e])](_0x45573c=>(_0x3ce5c3(),_0x45573c),()=>{const _0x4ecd53=_0x4b7425();return null==_0x4ecd53?(_0x3ce5c3(),_0x43a0f2([0x56,0x61,0x6c,0x69,0x64])):_0x43a0f2(_0x49bbf7-_0x4ecd53>(0x6588c5e1^_0x3d1d68)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x43a0f2([0x74,0x68,0x65,0x6e])](_0xe12e48)[_0x43a0f2([0x63,0x61,0x74,0x63,0x68])](()=>{_0xe12e48(_0x43a0f2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b99de=0x41b2af61^_0x3d1d68;function _0x3ce5c3(){const _0x4b237a=_0x43a0f2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4985ed(_0x31e333(_0x226e0a)),_0x510129=_0x4a18c5(_0x4985ed(window[_0x43a0f2([0x4d,0x61,0x74,0x68])][_0x43a0f2([0x63,0x65,0x69,0x6c])](_0x49bbf7/_0x3b99de)));window[_0x43a0f2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43a0f2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b237a,_0x510129);}function _0x4b7425(){const _0x4eabdf=_0x43a0f2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4985ed(_0x31e333(_0x226e0a)),_0x54dec7=window[_0x43a0f2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43a0f2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4eabdf);return _0x54dec7?window[_0x43a0f2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a18c5(_0x54dec7),0x10)*_0x3b99de:null;}function _0x1bd2de(_0x21b5e9){return new window[(_0x43a0f2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d47a4,_0x5eaeb8)=>{_0x21b5e9[_0x43a0f2([0x74,0x68,0x65,0x6e])](_0x1d47a4,_0x5eaeb8),window[_0x43a0f2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5eaeb8,0x41859521^_0x3d1d68);});}}_0x3ba511[_0x43a0f2([0x6f,0x6e])](_0x43a0f2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19d5a3,_0x3ea7c9)=>{if(_0x3ea7c9[0x0]!=_0x226e0a)return _0xe12e48(_0x43a0f2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3ea7c9[0x1]={..._0x3ea7c9[0x1],[_0x43a0f2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37437b};},{[_0x43a0f2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43a0f2([0x68,0x69,0x67,0x68])}),_0x3ba511[_0x43a0f2([0x6f,0x6e])](_0x43a0f2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43f990=>{_0x2d4256(_0x43f990[_0x43a0f2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x180f6b=!0x0,_0x56f9fc(_0x43f990[_0x43a0f2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x43a0f2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43a0f2([0x6c,0x6f,0x77])}),_0x1e6769[_0x43a0f2([0x74,0x68,0x65,0x6e])](()=>{_0x180f6b||_0xe12e48(_0x43a0f2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3d68fe(){return _0x3ba511[_0x43a0f2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43a0f2([0x76,0x69,0x65,0x77])][_0x43a0f2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x43a0f2([0x61,0x75,0x74,0x6f]);}function _0x4a1970(){_0x3ba511[_0x43a0f2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43a0f2([0x76,0x69,0x65,0x77])][_0x43a0f2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x43a0f2([0x61,0x75,0x74,0x6f]);}}function _0x3882f6(_0x50aac1){const _0x26dbe5=[new window[(_0x43a0f2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x541f9c=>setTimeout(_0x541f9c,0x418d7f2d^_0x3d1d68)),_0x1e6769[_0x43a0f2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x43a0f2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b9c87=>{let _0x13e1a6=0x0;_0x3ba511[_0x43a0f2([0x6d,0x6f,0x64,0x65,0x6c])][_0x43a0f2([0x6f,0x6e])](_0x43a0f2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b2fba,_0x87ac5b)=>{_0x87ac5b[0x0][_0x43a0f2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x13e1a6++,_0x13e1a6==(0x41844019^_0x3d1d68)&&(_0x4b9c87(),_0x3b2fba[_0x43a0f2([0x6f,0x66,0x66])]());});}))];return window[_0x43a0f2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x43a0f2([0x72,0x61,0x63,0x65])](_0x26dbe5)[_0x43a0f2([0x74,0x68,0x65,0x6e])](()=>_0x50aac1);}async function _0x2fd638(){await _0x1e6769,_0x3ba511[_0x43a0f2([0x6d,0x6f,0x64,0x65,0x6c])][_0x43a0f2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x43e87f,_0x3ba511[_0x43a0f2([0x6d,0x6f,0x64,0x65,0x6c])][_0x43a0f2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x43e87f,_0x3ba511[_0x43a0f2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x43a0f2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4631d0(_0xae5dca){const _0x502c58=_0x48abaf();_0x3ba511[_0x502c58]=_0x43a0f2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xae5dca,_0xae5dca!=_0x43a0f2([0x56,0x61,0x6c,0x69,0x64])&&_0x2fd638();}function _0x48abaf(){const _0x53765d=window[_0x43a0f2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x43a0f2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x43a0f2([0x6e,0x6f,0x77])]())[_0x43a0f2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x43a0f2([0x2e]),'');let _0x2f4b5d=_0x43a0f2([0x52]);for(let _0x4d21cf=0x0;_0x4d21cf<_0x53765d[_0x43a0f2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d21cf+=0x2){let _0x6b26bc=window[_0x43a0f2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53765d[_0x43a0f2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d21cf,_0x4d21cf+0x2));_0x6b26bc>=_0x19c6c2[_0x43a0f2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x6b26bc-=_0x19c6c2[_0x43a0f2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f4b5d+=_0x19c6c2[_0x6b26bc];}return _0x2f4b5d;}function _0x2ea833(){const _0x1f5e31=_0x3f7181[_0x43a0f2([0x73,0x70,0x6c,0x69,0x74])](_0x43a0f2([0x2e]));if(0x3!=_0x1f5e31[_0x43a0f2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x465ddf(_0x1f5e31[0x1]);function _0x465ddf(_0x55f11e){const _0x388d75=_0x74076f(_0x55f11e);return _0x388d75&&_0x579f35()?_0x388d75:null;function _0x579f35(){const _0x445a12=_0x388d75[_0x43a0f2([0x6a,0x74,0x69])],_0x49282c=window[_0x43a0f2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x445a12[_0x43a0f2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x445a12[_0x43a0f2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1113fd={..._0x388d75,[_0x43a0f2([0x6a,0x74,0x69])]:_0x445a12[_0x43a0f2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x445a12[_0x43a0f2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1113fd[_0x43a0f2([0x76,0x63])],_0x31e333(_0x1113fd)==_0x49282c;}}}async function _0x355339(){let _0x32dc7a=!0x0;try{const _0x2f09be=_0x3f7181[_0x43a0f2([0x73,0x70,0x6c,0x69,0x74])](_0x43a0f2([0x2e])),[_0x5b43c8,_0x349322,_0x40452b]=_0x2f09be;return _0x40aba2(_0x5b43c8),await _0x36a273(_0x5b43c8,_0x349322,_0x40452b),_0x32dc7a;}catch(_0x4b1d56){return!0x1;}function _0x40aba2(_0x531807){const _0x42c8d8=_0x74076f(_0x531807);_0x42c8d8&&_0x42c8d8[_0x43a0f2([0x61,0x6c,0x67])]==_0x43a0f2([0x45,0x53,0x32,0x35,0x36])||(_0x32dc7a=!0x1);}async function _0x36a273(_0x4b8997,_0x56cbe2,_0x3ebec8){const _0x38e51f=window[_0x43a0f2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x43a0f2([0x66,0x72,0x6f,0x6d])](_0x1d0608(_0x3ebec8),_0x78a15f=>_0x78a15f[_0x43a0f2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x33d87f=new window[(_0x43a0f2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x43a0f2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b8997+_0x43a0f2([0x2e])+_0x56cbe2),_0x1f6ae0=window[_0x43a0f2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x43a0f2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1f6ae0)return;const _0x21f00c=await _0x1f6ae0[_0x43a0f2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x43a0f2([0x6a,0x77,0x6b]),_0x551ad7,{[_0x43a0f2([0x6e,0x61,0x6d,0x65])]:_0x43a0f2([0x45,0x43,0x44,0x53,0x41]),[_0x43a0f2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x43a0f2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x43a0f2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1f6ae0[_0x43a0f2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x43a0f2([0x6e,0x61,0x6d,0x65])]:_0x43a0f2([0x45,0x43,0x44,0x53,0x41]),[_0x43a0f2([0x68,0x61,0x73,0x68])]:{[_0x43a0f2([0x6e,0x61,0x6d,0x65])]:_0x43a0f2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21f00c,_0x38e51f,_0x33d87f)||(_0x32dc7a=!0x1);}}function _0x74076f(_0x2807dc){return _0x2807dc[_0x43a0f2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x43a0f2([0x65,0x79]))?JSON[_0x43a0f2([0x70,0x61,0x72,0x73,0x65])](_0x1d0608(_0x2807dc)):null;}function _0x1d0608(_0x310fef){return window[_0x43a0f2([0x61,0x74,0x6f,0x62])](_0x310fef[_0x43a0f2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x43a0f2([0x2b]))[_0x43a0f2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x43a0f2([0x2f])));}function _0x31e333(_0x5d5ae6){let _0x425666=0x1505;function _0x3476a0(_0x22883e){for(let _0x57de4d=0x0;_0x57de4d<_0x22883e[_0x43a0f2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57de4d++){const _0x10cb32=_0x22883e[_0x43a0f2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x57de4d);_0x425666=(_0x425666<<0x5)+_0x425666+_0x10cb32,_0x425666&=_0x425666;}}function _0x3ad1a4(_0x2ae88e){Array[_0x43a0f2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ae88e)?_0x2ae88e[_0x43a0f2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3ad1a4):_0x2ae88e&&typeof _0x2ae88e==_0x43a0f2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x43a0f2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ae88e)[_0x43a0f2([0x73,0x6f,0x72,0x74])]()[_0x43a0f2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x14fbdd,_0x2da3e5])=>{_0x3476a0(_0x14fbdd),_0x3ad1a4(_0x2da3e5);}):_0x3476a0(window[_0x43a0f2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ae88e));}return _0x3ad1a4(_0x5d5ae6),_0x425666>>>0x0;}function _0x4985ed(_0xe6e257){return _0xe6e257[_0x43a0f2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x43a0f2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x43a0f2([0x30]));}function _0x4a18c5(_0x3d76bf){return _0x3d76bf[_0x43a0f2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x43a0f2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x43a0f2([0x6a,0x6f,0x69,0x6e])]('');}function _0x43e87f(){}function _0x43a0f2(_0x57bba0){return _0x57bba0['map'](_0x314978=>String['fromCharCode'](_0x314978))['join']('');}_0x4631d0(await _0x38c2bd());}(this);}['_initSchema'](){const _0x17b947=this['editor']['model']['schema'];_0x17b947['isRegistered']('imageBlock')&&_0x17b947['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x17b947['isRegistered']('imageInline')&&_0x17b947['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x12a2bd=this['editor'];_0x12a2bd['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x12a2bd['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x6221f8=>_0x6221f8['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x172bd0=_0x12a2bd['commands']['get']('replaceImageSource');_0x172bd0&&this['listenTo'](_0x172bd0,'cleanupImage',(_0x3702a9,[_0x9b5fe1,_0x313050])=>{_0x9b5fe1['removeAttribute']('uploadcareImageId',_0x313050);});}['_initConfig'](){const _0x19971a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x480c6c=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3640d8(_0x43391f['document'],'uc-config',{..._0x19971a,'pubkey':_0x480c6c,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x26a59e=>{if('closeMax'==_0x26a59e)return'#uc-icon-arrow-down';},_0x43391f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3640d8(_0x43391f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x43391f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3a2579=this['editor']['commands']['get']('insertImage');_0x3a2579&&this['listenTo'](_0x3a2579,'execute',()=>{const _0x591144=this['editor']['model']['document']['selection']['getSelectedElement']();_0x591144&&_0x591144['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x591144);});});const _0x23a071=this['editor']['commands']['get']('uploadcareImageReplace');_0x23a071&&this['listenTo'](_0x23a071,'execute',()=>{const _0x511b63=this['editor']['model']['document']['selection']['getSelectedElement']();_0x511b63&&_0x511b63['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x511b63);});});}}class u extends _0x2a75cc{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f892c){super(_0x2f892c),_0x2f892c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0xcd3c6e['defineComponents'](_0xcd3c6e);}}class ta extends _0x286280{constructor(_0x5d987a){super(_0x5d987a);const t=_0x5d987a['t'],_0x2915b5=this['bindTemplate'],_0x5df7f0=new _0x20dd64();_0x5df7f0['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':[_0x5df7f0,{'text':_0x2915b5['to']('imageUploadProgress',_0x199508=>t('Loading\x20image...')+'\x20('+(_0x199508||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x286280{constructor(_0x10ad83){super(_0x10ad83);const t=_0x10ad83['t'];this['set']('errorType',null);const _0x1170d6=new _0x4d80a3(_0x10ad83);_0x1170d6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1170d6['withText']=!0x0,_0x1170d6['class']='ck-button-action',_0x1170d6['on']('execute',()=>{this['fire']('retry');}),_0x1170d6['bind']('isVisible')['to'](this,'errorType',_0x34e1bb=>'NotFound'!==_0x34e1bb);const _0x4a50db=new et();_0x4a50db['content']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M9.9\x204.385a1.2\x201.2\x200\x200\x200-.44.44h.002l-5.284\x209.15a1.2\x201.2\x200\x200\x200\x201.04\x201.8h10.564a1.2\x201.2\x200\x200\x200\x201.04-1.8l-5.282-9.15a1.2\x201.2\x200\x200\x200-1.64-.44Zm.05\x208.363a.301.301\x200\x200\x201\x20.115-.023h.9a.301.301\x200\x200\x201\x20.3.3v.9a.3.3\x200\x200\x201-.3.3h-.9a.3.3\x200\x200\x201-.3-.3v-.9a.3.3\x200\x200\x201\x20.185-.277Zm-.185-4.723a.3.3\x200\x200\x201\x20.3-.3h.9a.3.3\x200\x200\x201\x20.3.3v3.4a.3.3\x200\x200\x201-.3.3h-.9a.301.301\x200\x200\x201-.3-.3v-3.4Z\x22/></svg>\x0a',_0x4a50db['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x21944b=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':[_0x4a50db,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x21944b['to']('errorType',_0x57d45d=>t('NotFound'!==_0x57d45d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1170d6]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x286280{constructor(_0x4b4d83,_0x20efc0){super(_0x4b4d83);const _0x329b5a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x20efc0,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x329b5a['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x159f3a,_0x4da242,_0x4afedd){super(_0x159f3a),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x159f3a),this['_errorView']=new rt(_0x159f3a),this['_editingView']=new tt(_0x159f3a,_0x4afedd),this['_focusableView']=new _0x286280(_0x159f3a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4da242),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x2b523c=>{this['_addUploadcareImageEditorListeners'](_0x2b523c);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x3d9311,_0x5a8ecf){const _0x3cd646='uc-cloud-image-editor',_0x2835ed=_0x3d9311['querySelector'](_0x3cd646);if(_0x2835ed)return _0x5a8ecf(_0x2835ed);const _0x51e065=new MutationObserver(_0x4ac34b=>{const _0x2678da=_0x4ac34b['filter'](_0x4f85fc=>_0x4f85fc['target']===_0x3d9311&&_0x4f85fc['addedNodes']['length']>0x0&&_0x4f85fc['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3cd646);_0x2678da['length']&&(_0x51e065['disconnect'](),_0x5a8ecf(_0x2678da[0x0]['addedNodes'][0x0]));});_0x51e065['observe'](_0x3d9311,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x43ee30){_0x43ee30['addEventListener']('apply',_0x4546ea=>{this['fire']('apply',{'imageSrc':_0x4546ea['detail']['cdnUrl']});}),_0x43ee30['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}var M='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M1.201\x201C.538\x201\x200\x201.47\x200\x202.1v14.363c0\x20.64.534\x201.037\x201.186\x201.037H5.06l5.058-5.078L6.617\x209.15a.696.696\x200\x200\x200-.957-.033L1.5\x2013.6V2.5h15v4.354a3.478\x203.478\x200\x200\x201\x201.5.049V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713\x202.803a2.147\x202.147\x200\x200\x200-2.049\x201.992\x202.14\x202.14\x200\x200\x200\x201.28\x202.096\x202.13\x202.13\x200\x200\x200\x202.642-3.11\x202.129\x202.129\x200\x200\x200-1.873-.978ZM8.089\x2017.635v2.388h2.389l7.046-7.046-2.39-2.39-7.045\x207.048Zm11.282-6.507a.637.637\x200\x200\x200\x20.139-.692.603.603\x200\x200\x200-.139-.205l-1.49-1.488a.63.63\x200\x200\x200-.899\x200l-1.166\x201.163\x202.39\x202.39\x201.165-1.168Z\x22/></svg>\x0a';class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1f04a1(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x230bdc,_0x3b93d8,_0x2a7a5d){super(),this['_editor']=_0x230bdc,this['_dialog']=_0x3b93d8,this['_imageElement']=_0x2a7a5d,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 _0x302f8b=this['_imageElement'],_0x1d2f48=_0x302f8b['getAttribute']('uploadcareImageId'),_0x222a60=_0x302f8b['getAttribute']('src');if(_0x1d2f48)await this['_loadImageInfo'](_0x1d2f48,_0x222a60);else{if(this['_imageCache']['has'](_0x222a60)){const _0x5887c4=this['_imageCache']['get'](_0x222a60);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5887c4['url'],this['imageDimension']=_0x5887c4['dimension'],this['imageId']=_0x5887c4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5b7a87}=this['_editor'],t=_0x5b7a87['t'],_0x395f6a=new Z(_0x5b7a87,this['imageStatus'],this['_attributes']);_0x395f6a['bind']('status')['to'](this,'imageStatus'),_0x395f6a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x395f6a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x395f6a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x395f6a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':M,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x395f6a,'position':_0x3002f6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x395f6a['focus']();},'onHide':()=>{_0x395f6a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x9c48fb=>!F(_0x9c48fb,_0x395f6a['element'])}});}['_loadImageInfo'](_0x8a4564,_0x3d999e){return k['getInfo'](_0x8a4564,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x54772e=>{const {width:_0x2623d5,height:_0x3e1da4}=_0x54772e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d999e,this['imageDimension']={'width':_0x2623d5,'height':_0x3e1da4},this['imageId']=_0x8a4564;})['catch'](_0x4e0605=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4e0605['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4b6e79,_0x5f5147){return this['_getImageAsFile'](_0x4b6e79)['then'](_0x52df4b=>k['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5f5147['signal'],'file':_0x52df4b,'onProgress':_0x190c44=>{_0x190c44&&_0x190c44['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x190c44['value']));}}))['then'](_0x59d18f=>{const {width:_0x1554f0,height:_0x1b6823}=_0x59d18f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x59d18f['cdnUrl'],this['imageDimension']={'width':_0x1554f0,'height':_0x1b6823},this['imageId']=_0x59d18f['uuid'],this['imageUploadProgress']=null;const _0xaa5dca=_0x4b6e79['getAttribute']('src');this['_imageCache']['set'](_0xaa5dca,{'id':_0x59d18f['uuid'],'url':_0x59d18f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4d7ad3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d7ad3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x498c6d,_0x3f08a1){_0x498c6d['on']('apply',(_0x36975b,_0x1cd898)=>{this['_replaceImage'](_0x3f08a1,_0x1cd898['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x498c6d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x498c6d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x58ba36,_0xa3be5a,_0x4be64b){const _0x26847f=this['_editor'],{width:_0x123a4d,height:_0x3b0443}=A(_0xa3be5a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x298b88,imageSources:_0x27bf56}=C(_0xa3be5a,_0x123a4d);_0x26847f['model']['change'](_0x710a68=>{if('$graveyard'===_0x58ba36['root']['rootName']){_0x26847f['execute']('insertImage',{'imageType':_0x58ba36['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x58ba36['getAttributes']()),'uploadcareImageId':_0x4be64b,'src':_0x298b88,'sources':_0x27bf56,'width':_0x123a4d,'height':_0x3b0443}});const _0x557326=_0x58ba36['getChildren']();_0x58ba36=_0x26847f['model']['document']['selection']['getSelectedElement']();for(const _0x2de1cf of _0x557326)_0x710a68['append'](_0x710a68['cloneElement'](_0x2de1cf),_0x58ba36);}else _0x710a68['setSelection'](_0x58ba36,'on'),_0x26847f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x58ba36['getAttributes']()),'uploadcareImageId':_0x4be64b,'src':_0x298b88,'sources':_0x27bf56,'width':_0x123a4d,'height':_0x3b0443},_0x58ba36);_0x710a68['setSelection'](_0x58ba36,'on');});}async['_getImageAsFile'](_0xc8219){const _0x1e4359=_0x43391f['window'],_0xff67f4=_0x43391f['document']['location']['href'],_0x306d4a=new _0x1e4359['URL'](_0xc8219['getAttribute']('src'),_0xff67f4);if('data:'===_0x306d4a['protocol']){const _0x767eb7=_0x306d4a['href']['split'](','),_0x585322=_0x767eb7[0x0]['match'](/:(.*?);/)[0x1],_0x45c525=_0x585322['split']('/')[0x1],_0x5d29fd=_0x1e4359['atob'](_0x767eb7[_0x767eb7['length']-0x1]);let _0x4749cd=_0x5d29fd['length'];const _0x532d5b=new _0x1e4359['Uint8Array'](_0x4749cd);for(;_0x4749cd--;)_0x532d5b[_0x4749cd]=_0x5d29fd['charCodeAt'](_0x4749cd);return new _0x1e4359['File']([_0x532d5b],'image.'+_0x45c525,{'type':_0x585322});}const _0x4b3117=_0x306d4a['href']['split']('/'),_0x341067=_0x4b3117[_0x4b3117['length']-0x1],_0x5bc194=_0x341067['split']('.')[0x1];return _0x1e4359['fetch'](_0x306d4a['href'])['then'](_0x58e30e=>_0x58e30e['clone']()['blob']())['then'](_0x3fa6dc=>new _0x1e4359['File']([_0x3fa6dc],_0x341067,{'type':'image/'+_0x5bc194}));}}class J extends _0x4ceeed{['imageEditController'];static get['requires'](){return[_0x28db4a];}['_isEditable'];constructor(_0x1c9ed8){super(_0x1c9ed8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xbf752a){const _0x48105e=V(_0xbf752a);return _0x363401=>!(!_0x363401||!_0x363401['is']('element','imageBlock')&&!_0x363401['is']('element','imageInline'))&&(!!_0x363401['hasAttribute']('uploadcareImageId')||!!_0x363401['hasAttribute']('src')&&_0x48105e(_0x363401['getAttribute']('src')));}(_0x1c9ed8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x27832c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x27832c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1bbcd2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1bbcd2&&(_0x1bbcd2['is']('element','imageBlock')||_0x1bbcd2['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x28db4a),_0x1bbcd2),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x4ceeed{['refresh'](){const _0x47c68f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x47c68f&&(_0x47c68f['is']('element','imageBlock')||_0x47c68f['is']('element','imageInline')));}['execute'](_0x5926f9){const _0x3d1c9d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x10787c=>{_0x10787c['setAttributes'](_0x5926f9,_0x3d1c9d),_0x10787c['removeAttribute']('srcset',_0x3d1c9d),_0x10787c['removeAttribute']('sizes',_0x3d1c9d);});}}class m extends _0x2a75cc{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3ae78c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x22874b}=this;_0x22874b['commands']['add']('uploadcareImageEdit',new J(_0x22874b)),_0x22874b['commands']['add']('uploadcareImageReplace',new O(_0x22874b));}}class g extends _0x2a75cc{['_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 _0x3e5aa2=this['editor'];_0x3e5aa2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x57ff53=>{const _0x518173=_0x3e5aa2['commands']['get']('uploadcareImageEdit'),_0x441c68=new _0x4d80a3(_0x57ff53),t=_0x57ff53['t'];return _0x441c68['set']({'icon':M,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x441c68['bind']('isEnabled')['to'](_0x518173),_0x441c68['bind']('isOn')['to'](_0x518173,'isActive'),this['listenTo'](_0x441c68,'execute',()=>{_0x3e5aa2['execute']('uploadcareImageEdit'),_0x3e5aa2['editing']['view']['focus']();}),_0x441c68;}),this['_initConfig']();}['_initConfig'](){const _0x4d899c=_0x3640d8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4d899c),this['listenTo'](this['editor'],'destroy',()=>{_0x4d899c['remove']();});}}class j extends _0x2a75cc{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,j as UploadcareImageEdit,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x4bf305,Command as _0x5e2484}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1202e4,IconInstagram as _0x208c70,IconGooglePhotos as _0x1929cd,IconGoogleDrive as _0x442ab8,IconFacebook as _0x1d832f,IconDropbox as _0x3b709d,IconUploadcareLink as _0x1aa68d,IconUploadcareImageUpload as _0x344b8f,IconError as et,IconUploadcareImageEdit as _0x1aa9d8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5789be,MenuBarMenuListItemButtonView as _0x8b0644,View as _0x230fa2,FocusCycler as _0x17f0db,Dialog as _0x31776d,DialogViewPosition as _0x3a764c,SpinnerView as _0x139bce,IconView as at,Notification as _0x4ff535}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3d7490,DomEmitterMixin as _0x4a6713,global as _0xf500a3,getAncestors as _0x112b85,ObservableMixin as _0x5ce219,createElement as _0x1bd771,uid as _0x2701a3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x196fe4}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4073fa,info as _0x4ff86c}from'@uploadcare/upload-client';import*as _0x512567 from'@uploadcare/file-uploader';var o=function(_0x21d1e4){return _0x21d1e4['Local']='local',_0x21d1e4['URL']='url',_0x21d1e4['Dropbox']='dropbox',_0x21d1e4['GDrive']='gdrive',_0x21d1e4['Facebook']='facebook',_0x21d1e4['GPhotos']='gphotos',_0x21d1e4['Instagram']='instagram',_0x21d1e4['OneDrive']='onedrive',_0x21d1e4;}({});function x(_0x28b38c,_0x4a28c2,_0x7056b6){const t=_0x28b38c['t'],_0x27aac9=_0x28b38c['t'];switch(_0x4a28c2){case o['Local']:return{'text':_0x27aac9('Insert'===_0x7056b6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x27aac9('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x7056b6?_0x27aac9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x27aac9('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x7056b6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x7056b6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x7056b6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x7056b6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['Instagram']:return{'text':t('Insert'===_0x7056b6?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case o['OneDrive']:return{'text':t('Insert'===_0x7056b6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4a28c2;}}class e extends _0x4bf305{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4d91f3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xcb919a;for(const _0x127440 in _0x4d91f3){const _0x2e37d8=_0x127440,_0x1d87cc=_0x4d91f3[_0x2e37d8];if('uploadcareLicenseKeyValid'==_0x1d87cc||'uploadcareLicenseKeyInvalid'==_0x1d87cc||'uploadcareLicenseKeyExpired'==_0x1d87cc||'uploadcareLicenseKeyDomainLimit'==_0x1d87cc||'uploadcareLicenseKeyNotAllowed'==_0x1d87cc||'uploadcareLicenseKeyEvaluationLimit'==_0x1d87cc||'uploadcareLicenseKeyTrialLimit'==_0x1d87cc||'uploadcareLicenseKeyUsageLimit'==_0x1d87cc){delete _0x4d91f3[_0x2e37d8],_0xcb919a=_0x1d87cc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xcb919a&&_0x4d91f3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xcb919a&&_0x4d91f3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xcb919a&&_0x4d91f3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xcb919a&&_0x4d91f3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xcb919a&&_0x4d91f3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xcb919a&&_0x4d91f3['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xcb919a&&_0x4d91f3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5a100a}=this,_0x6534eb=_0x5a100a['commands']['get']('uploadcare');if(!_0x6534eb)return;const _0x20b107=this['_normalizeConfigSourceList'](_0x5a100a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x84f43b,_0x2356d4)=>{const _0x181e87=this['_getIntegrationKey'](_0x2356d4['type']);return _0x84f43b[_0x181e87]||(_0x84f43b[_0x181e87]=[]),_0x84f43b[_0x181e87]['push'](_0x2356d4),_0x84f43b;},{});_0x5a100a['plugins']['has']('ImageInsertUI')&&_0x5a100a['commands']['get']('uploadcare')&&Object['entries'](_0x20b107)['forEach'](([_0x541a53,_0x18a32e])=>{_0x5a100a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x541a53,'observable':()=>_0x6534eb,'buttonViewCreator':()=>this['_createToolbarButton'](_0x18a32e),'formViewCreator':()=>this['_createDropdownButtons'](_0x18a32e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x18a32e),'override':'assetManager'!==_0x541a53});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x49e0e3){const {locale:_0x3fafc8}=this['editor'];return _0x49e0e3['map'](_0x1a21b8=>{const _0xe6a9c=x(_0x3fafc8,_0x1a21b8,'Insert');switch(_0x1a21b8){case o['Local']:return{'icon':_0x344b8f,'type':o['Local'],..._0xe6a9c};case o['URL']:return{'icon':_0x1aa68d,'type':o['URL'],..._0xe6a9c};case o['Dropbox']:return{'icon':_0x3b709d,'type':o['Dropbox'],..._0xe6a9c};case o['Facebook']:return{'icon':_0x1d832f,'type':o['Facebook'],..._0xe6a9c};case o['GDrive']:return{'icon':_0x442ab8,'type':o['GDrive'],..._0xe6a9c};case o['GPhotos']:return{'icon':_0x1929cd,'type':o['GPhotos'],..._0xe6a9c};case o['Instagram']:return{'icon':_0x208c70,'type':o['Instagram'],..._0xe6a9c};case o['OneDrive']:return{'icon':_0x1202e4,'type':o['OneDrive'],..._0xe6a9c};}});}['_getIntegrationKey'](_0xff165c){switch(_0xff165c){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x43b86f,_0x3e667c){const _0xeefef7=this['editor'],_0x4256d1=new _0x43b86f(_0xeefef7['locale']),_0x1cc011=_0xeefef7['commands']['get']('uploadcare');return _0x4256d1['bind']('isEnabled')['to'](_0x1cc011),_0x4256d1['on']('execute',()=>{_0x1cc011['execute'](_0x3e667c);}),_0x4256d1;}['_createToolbarButton'](_0xc6f44f){const {locale:_0x25d0ab}=this['editor'],_0x53f015=this['editor']['plugins']['get']('ImageInsertUI'),_0x411092=_0xc6f44f[0x0],_0x59d631=this['_createButton'](_0x5789be,_0x411092['type']);return _0x59d631['icon']=_0x411092['icon'],_0x59d631['bind']('label')['to'](_0x53f015,'isImageSelected',_0x5a9f8d=>x(_0x25d0ab,_0x411092['type'],_0x5a9f8d?'Replace':'Insert')['text']),_0x59d631['tooltip']=!0x0,_0x59d631;}['_createDropdownButtons'](_0x1a4eca){const {locale:_0x5de993}=this['editor'],_0x12be8e=this['editor']['plugins']['get']('ImageInsertUI');return _0x1a4eca['map'](_0x147dac=>{const _0x4536b1=this['_createButton'](_0x5789be,_0x147dac['type']);return _0x4536b1['withText']=!0x0,_0x4536b1['icon']=_0x147dac['icon'],_0x4536b1['bind']('label')['to'](_0x12be8e,'isImageSelected',_0x1e3638=>x(_0x5de993,_0x147dac['type'],_0x1e3638?'Replace':'Insert')['text']),_0x4536b1;});}['_createMenuBarButtons'](_0x45652e){return _0x45652e['map'](_0x3d5cb0=>{const _0x23056c=this['_createButton'](_0x8b0644,_0x3d5cb0['type']);return _0x23056c['icon']=_0x3d5cb0['icon'],_0x23056c['label']=_0x3d5cb0['shortText'],_0x23056c;});}}class q extends _0x230fa2{['focusTracker'];['focusCycler'];constructor(_0x1389e2){super(_0x1389e2),this['focusTracker']=new _0x3d7490(),this['focusCycler']=new _0x17f0db({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x4a7f4c){super(_0x4a7f4c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x3eccb2,_0x442fd2){const _0x4e35e9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x199616=>_0x199616<=_0x442fd2)['map'](_0x48f0f6=>_0x3eccb2['replace'](/\/$/,'')+'/-/resize/'+_0x48f0f6+'x/\x20'+_0x48f0f6+'w');return{'imageFallbackUrl':_0x3eccb2,'imageSources':[{'srcset':_0x4e35e9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x442fd2+'px)\x20100vw,\x20'+_0x442fd2+'px','type':'image/webp'}]};}function F(_0x26d061,_0x19ba7f,_0x39b3a1){const _0x721a32=_0x26d061['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x721a32?parseInt(_0x721a32[0x1],0xa):_0x19ba7f,'height':_0x721a32?parseInt(_0x721a32[0x2],0xa):_0x39b3a1};}function m(_0x114d61,_0x2be40b){const _0x5e5c3a=Object['create'](_0x4a6713),_0xb78c93=_0x114d61['plugins']['get']('ImageUtils'),_0x1779c0=_0x114d61['editing']['mapper']['toViewElement'](_0x2be40b),_0xee27f7=_0xb78c93['findViewImgElement'](_0x1779c0),_0x46272a=_0x114d61['editing']['view']['domConverter']['viewToDom'](_0xee27f7),_0x333490=_0x2be40b['getAttribute']('width'),_0x4db4af=_0x2be40b['getAttribute']('height'),_0x3c41fa='image-processing';_0x114d61['editing']['view']['change'](_0x5153fc=>{_0x5153fc['addClass'](_0x3c41fa,_0x1779c0),_0x5153fc['setStyle']('aspect-ratio',_0x333490+'/'+_0x4db4af,_0xee27f7);}),_0x5e5c3a['listenTo'](_0x46272a,'load',()=>{_0x5e5c3a['stopListening'](_0x46272a,'load'),_0x114d61['editing']['view']['change'](_0x613c1=>{_0x613c1['removeClass'](_0x3c41fa,_0x1779c0),_0x613c1['removeStyle']('aspect-ratio',_0xee27f7);});});}function R(_0x9b2ff1){if(Array['isArray'](_0x9b2ff1)){const _0x2b8607=_0x9b2ff1['map'](R);return _0x114092=>_0x2b8607['some'](_0x23dfe1=>_0x23dfe1(_0x114092));}if('origin'==_0x9b2ff1){const _0x403f6c=_0xf500a3['window']['location']['origin'];return _0x2f857a=>new URL(_0x2f857a,_0xf500a3['document']['baseURI'])['origin']==_0x403f6c;}return'function'==typeof _0x9b2ff1?_0x9b2ff1:_0x9b2ff1 instanceof RegExp?_0x47dd27=>!(!_0x47dd27['match'](_0x9b2ff1)&&!_0x47dd27['replace'](/^https?:\/\//,'')['match'](_0x9b2ff1)):()=>!0x1;}function M(_0x482b6e,_0x352090){return _0x112b85(_0x482b6e['target'])['includes'](_0x352090);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5ce219(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x258503,_0x464e55,_0x4d86d2){super(),this['_editor']=_0x258503,this['_editing']=_0x464e55,this['_dialog']=_0x258503['plugins']['get'](_0x31776d),this['_api']=_0x464e55['ctxElement']['getAPI'](),this['_type']=_0x4d86d2,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x11327c,model:_0xc312f9}=this['_editor'],_0x40c8b7=_0xc312f9['document']['selection']['getSelectedElement'](),_0x3749a3=_0x40c8b7&&(_0x40c8b7['is']('element','imageBlock')||_0x40c8b7['is']('element','imageInline'));this['_formView']=new S(_0x11327c),this['_dialog']['show']({'id':'uploadCare','icon':_0x344b8f,'title':x(_0x11327c,this['_type'],_0x3749a3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3a764c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xfefe69=>!M(_0xfefe69,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1ac3fe}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2655ad=>{const _0x348828=_0x1ac3fe['length'];for(const _0x488632 of _0x1ac3fe){const _0x246a4a=_0x488632===_0x1ac3fe[_0x348828-0x1],{cdnUrl:_0x503a34,fileInfo:_0x251baf}=_0x488632;if(!_0x503a34||!_0x251baf)continue;const {width:_0x1b7934,height:_0x2f21f9}=_0x251baf['imageInfo'],_0x1189a7=F(_0x503a34,_0x1b7934,_0x2f21f9),_0x24f36e=E(_0x503a34,_0x1189a7['width']),_0x5465c7={'id':_0x251baf['uuid'],'type':'image','attributes':{'imageDimension':_0x1189a7,..._0x24f36e}};this['_insertAsset'](_0x5465c7,_0x246a4a,_0x2655ad);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x36e487=>{'idle'===_0x36e487['detail']['status']&&!_0x36e487['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x14f6e0,_0x185353,_0x5033a9){const _0x310ba4=this['_editor']['model']['document']['selection'],_0x3fb81f=_0x310ba4['getSelectedElement'](),_0x18614b=!(!_0x3fb81f||!_0x3fb81f['is']('element','imageInline'));_0x5033a9['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x14f6e0,_0x18614b),_0x185353||_0x5033a9['setSelection'](_0x310ba4['getLastPosition']());}['_insertImage'](_0x191186,_0xf69811){const _0x15a126=this['_editor'],{imageDimension:_0x19d8a5,imageFallbackUrl:_0x246e99,imageSources:_0xed1a1b}=_0x191186['attributes'];_0x15a126['execute']('insertImage',{'imageType':_0xf69811?'imageInline':null,'source':{'uploadcareImageId':_0x191186['id'],'src':_0x246e99,'sources':_0xed1a1b,..._0x19d8a5}});}}class n extends _0x5e2484{['_editing'];['_controller']=null;static get['requires'](){return[_0x31776d,i];}constructor(_0x1cfff6){super(_0x1cfff6),this['_editing']=_0x1cfff6['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2a1bf3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2a1bf3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3745e6,publicKey:_0x770d,signal:_0x4ba38a,onProgress:_0x450134}){return _0x4073fa(_0x3745e6,{'publicKey':_0x770d,'store':'auto','signal':_0x4ba38a,'onProgress':_0x450134});}static['getInfo'](_0x48d678,_0x287008){return _0x4ff86c(_0x48d678,_0x287008);}}class p extends _0x4bf305{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x196fe4,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xe20a5b=this['editor'];if(!!!_0xe20a5b['config']['get']('uploadcare'))return;_0xe20a5b['plugins']['get'](_0x196fe4)['createUploadAdapter']=_0x39338d=>new A(_0x39338d,_0xe20a5b),_0xe20a5b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x8cbf68,{imageElement:_0x68cc9f,data:_0x1906b2})=>{_0xe20a5b['model']['change'](_0x29bc41=>{_0x29bc41['setAttribute']('uploadcareImageId',_0x1906b2['uploadcareImageId'],_0x68cc9f);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xe44a7d,_0x425507){this['loader']=_0xe44a7d,this['editor']=_0x425507,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2245d6=this['editor']['config']['get']('uploadcare.pubkey'),_0x539028=await this['loader']['file'];return C['upload']({'file':_0x539028,'publicKey':_0x2245d6,'signal':this['controller']['signal'],'onProgress':_0x415a10=>{_0x415a10&&_0x415a10['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x415a10['value']);}})['then'](async _0x25930b=>{const {imageFallbackUrl:_0x3192ee,imageSources:_0x3a3c35}=E(_0x25930b['cdnUrl'],_0x25930b['imageInfo']['width']);return{'uploadcareImageId':_0x25930b['uuid'],'default':_0x3192ee,'sources':_0x3a3c35};})['catch'](()=>{const _0x4c7e7f=t('Cannot\x20upload\x20file:')+('\x20'+_0x539028['name']+'.');return Promise['reject'](_0x4c7e7f);});}['abort'](){this['controller']['abort']();}}class i extends _0x4bf305{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x31776d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x2a34c3=this['editor'];_0x2a34c3['commands']['add']('uploadcare',new n(_0x2a34c3));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x23d7f2=_0xf500a3['document']['querySelector']('input[uploadcare-file-input]');_0x23d7f2&&_0x23d7f2['remove']();}),async function(_0x58cead){const _0x3bf864=_0x4599d6([0x65,0x76,0x56,0x75,0x64,0x41,0x51,0x43,0x4e,0x57,0x63,0x4c,0x54,0x44,0x6e,0x78,0x4d,0x77,0x72,0x42,0x31,0x59,0x39,0x36,0x62,0x5a,0x46,0x48,0x58,0x73,0x4f,0x35,0x61,0x7a,0x6c,0x69,0x68,0x74,0x6f,0x47,0x53,0x30,0x50,0x33,0x52,0x6a,0x70,0x49,0x32,0x67,0x79,0x37,0x45,0x4a,0x38,0x4b,0x71,0x34,0x6d,0x55,0x66,0x6b]),_0x4bf5d0=0x1b19ef99,_0x31eb64=0x1b1eb009^_0x4bf5d0,_0x391928=window[_0x4599d6([0x44,0x61,0x74,0x65])][_0x4599d6([0x6e,0x6f,0x77])](),_0x1366f4=_0x58cead[_0x4599d6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x573b1b=new window[(_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44cc64=>{_0x1366f4[_0x4599d6([0x6f,0x6e,0x63,0x65])](_0x4599d6([0x72,0x65,0x61,0x64,0x79]),_0x44cc64);}),_0xfd3e86={[_0x4599d6([0x6b,0x74,0x79])]:_0x4599d6([0x45,0x43]),[_0x4599d6([0x75,0x73,0x65])]:_0x4599d6([0x73,0x69,0x67]),[_0x4599d6([0x63,0x72,0x76])]:_0x4599d6([0x50,0x2d,0x32,0x35,0x36]),[_0x4599d6([0x78])]:_0x4599d6([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]),[_0x4599d6([0x79])]:_0x4599d6([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]),[_0x4599d6([0x61,0x6c,0x67])]:_0x4599d6([0x45,0x53,0x32,0x35,0x36])},_0x1fedac=_0x1366f4[_0x4599d6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4599d6([0x67,0x65,0x74])](_0x4599d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x11ea9d(){let _0x5bf713,_0xb6062d=null,_0x21b025=null;try{if(_0x1fedac==_0x4599d6([0x47,0x50,0x4c]))return _0x4599d6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5bf713=_0x17a504(),!_0x5bf713)return _0x4599d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5bf713[_0x4599d6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21b025=_0x1c1442(_0x5bf713[_0x4599d6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5bf713[_0x4599d6([0x6a,0x74,0x69])])),await _0x24ebbd()?_0x4bb4bb()?_0xe10859()?_0x4599d6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x28d6cc()?(_0x5bf713[_0x4599d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4599d6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xb6062d=_0x630017(_0x4599d6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5bf713[_0x4599d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4599d6([0x74,0x72,0x69,0x61,0x6c])&&(_0xb6062d=_0x630017(_0x4599d6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f3f99()):_0x4599d6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4599d6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4599d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1676d0){return _0x4599d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe10859(){const _0x537370=[_0x4599d6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4599d6([0x74,0x72,0x69,0x61,0x6c])][_0x4599d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bf713[_0x4599d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x391928/0x3e8:0xe10*_0x31eb64;return _0x5bf713[_0x4599d6([0x65,0x78,0x70])]<_0x537370;}function _0x4bb4bb(){const _0x1b6288=_0x5bf713[_0x4599d6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b6288&&(!!_0x1b6288[_0x4599d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4599d6([0x2a]))||!!_0x1b6288[_0x4599d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4599d6([0x55,0x50,0x4c,0x43])));}function _0x28d6cc(){const _0x595992=_0x5bf713[_0x4599d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x595992||0x0==_0x595992[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3655a2}=new URL(window[_0x4599d6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x595992[_0x4599d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3655a2))return!0x0;const _0x175b9e=_0x3655a2[_0x4599d6([0x73,0x70,0x6c,0x69,0x74])](_0x4599d6([0x2e]));return _0x595992[_0x4599d6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ad842=>_0x4ad842[_0x4599d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4599d6([0x2a])))[_0x4599d6([0x6d,0x61,0x70])](_0x3cd27c=>_0x3cd27c[_0x4599d6([0x73,0x70,0x6c,0x69,0x74])](_0x4599d6([0x2e])))[_0x4599d6([0x73,0x6f,0x6d,0x65])](_0x24bb0b=>_0x175b9e[_0x4599d6([0x65,0x76,0x65,0x72,0x79])]((_0x109371,_0x37dbfb)=>_0x24bb0b[_0x37dbfb]===_0x109371||_0x24bb0b[_0x37dbfb]===_0x4599d6([0x2a])));}function _0x1f3f99(){return _0xb6062d&&_0x21b025?new window[(_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x533d7e,_0x35c5ab)=>{_0xb6062d[_0x4599d6([0x74,0x68,0x65,0x6e])](_0x533d7e,_0x35c5ab),_0x21b025[_0x4599d6([0x74,0x68,0x65,0x6e])](_0x549b94=>{_0x549b94!=_0x4599d6([0x56,0x61,0x6c,0x69,0x64])&&_0x533d7e(_0x549b94);},_0x35c5ab);}):_0xb6062d||_0x21b025||_0x4599d6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c1442(_0xcc2ee3,_0x5cc0dc){return new window[(_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdc449a=>{if(_0x35e4ce())return _0xdc449a(_0x4599d6([0x56,0x61,0x6c,0x69,0x64]));_0x361c8b(),_0x1366f4[_0x4599d6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4599d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x278756=!0x1;const _0x23991b=_0x2701a3();function _0x1bbebf(_0x23fe03){return!!_0x23fe03&&(typeof _0x23fe03===_0x4599d6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x23fe03===_0x4599d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x23fe03[_0x4599d6([0x74,0x68,0x65,0x6e])]===_0x4599d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x23fe03[_0x4599d6([0x63,0x61,0x74,0x63,0x68])]===_0x4599d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1da26b(_0xf2073d){_0x309354(_0xf2073d)[_0x4599d6([0x74,0x68,0x65,0x6e])](_0x483513=>{if(!_0x483513||_0x483513[_0x4599d6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4599d6([0x6f,0x6b]))return _0x4599d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5aec6f(_0x38d8ab(_0x23991b+_0x5cc0dc))!=_0x483513[_0x4599d6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4599d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4599d6([0x56,0x61,0x6c,0x69,0x64]);})[_0x4599d6([0x74,0x68,0x65,0x6e])](_0x1b607e=>(_0x395f71(),_0x1b607e),()=>{const _0x30b9f7=_0x1fa948();return null==_0x30b9f7?(_0x395f71(),_0x4599d6([0x56,0x61,0x6c,0x69,0x64])):_0x4599d6(_0x391928-_0x30b9f7>(0x3f156b99^_0x4bf5d0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4599d6([0x74,0x68,0x65,0x6e])](_0xdc449a)[_0x4599d6([0x63,0x61,0x74,0x63,0x68])](()=>{_0xdc449a(_0x4599d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x57b733=0x1b2f0119^_0x4bf5d0;function _0x395f71(){const _0x247549=_0x4599d6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5aec6f(_0x38d8ab(_0xcc2ee3)),_0x14b2fc=_0x4797a5(_0x5aec6f(window[_0x4599d6([0x4d,0x61,0x74,0x68])][_0x4599d6([0x63,0x65,0x69,0x6c])](_0x391928/_0x57b733)));window[_0x4599d6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4599d6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x247549,_0x14b2fc);}function _0x1fa948(){const _0xc1b7dd=_0x4599d6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5aec6f(_0x38d8ab(_0xcc2ee3)),_0x20a1d4=window[_0x4599d6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4599d6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc1b7dd);return _0x20a1d4?window[_0x4599d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4797a5(_0x20a1d4),0x10)*_0x57b733:null;}function _0x309354(_0x35ebee){return new window[(_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d6896,_0x22a6f0)=>{_0x35ebee[_0x4599d6([0x74,0x68,0x65,0x6e])](_0x3d6896,_0x22a6f0),window[_0x4599d6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22a6f0,0x1b183b59^_0x4bf5d0);});}}_0x1366f4[_0x4599d6([0x6f,0x6e])](_0x4599d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x239ba7,_0x42061a)=>{if(_0x42061a[0x0]!=_0xcc2ee3)return _0xdc449a(_0x4599d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x42061a[0x1]={..._0x42061a[0x1],[_0x4599d6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x23991b};},{[_0x4599d6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4599d6([0x68,0x69,0x67,0x68])}),_0x1366f4[_0x4599d6([0x6f,0x6e])](_0x4599d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x498388=>{_0x1bbebf(_0x498388[_0x4599d6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x278756=!0x0,_0x1da26b(_0x498388[_0x4599d6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4599d6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4599d6([0x6c,0x6f,0x77])}),_0x573b1b[_0x4599d6([0x74,0x68,0x65,0x6e])](()=>{_0x278756||_0xdc449a(_0x4599d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35e4ce(){return _0x1366f4[_0x4599d6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4599d6([0x76,0x69,0x65,0x77])][_0x4599d6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4599d6([0x61,0x75,0x74,0x6f]);}function _0x361c8b(){_0x1366f4[_0x4599d6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4599d6([0x76,0x69,0x65,0x77])][_0x4599d6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4599d6([0x61,0x75,0x74,0x6f]);}}function _0x630017(_0x53f3d9){const _0x1f1227=[new window[(_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ecd4e=>setTimeout(_0x5ecd4e,0x1b10d155^_0x4bf5d0)),_0x573b1b[_0x4599d6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5741ad=>{let _0x32700b=0x0;_0x1366f4[_0x4599d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4599d6([0x6f,0x6e])](_0x4599d6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5dda50,_0x754cb6)=>{_0x754cb6[0x0][_0x4599d6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x32700b++,_0x32700b==(0x1b19ee61^_0x4bf5d0)&&(_0x5741ad(),_0x5dda50[_0x4599d6([0x6f,0x66,0x66])]());});}))];return window[_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4599d6([0x72,0x61,0x63,0x65])](_0x1f1227)[_0x4599d6([0x74,0x68,0x65,0x6e])](()=>_0x53f3d9);}async function _0x297412(){await _0x573b1b,_0x1366f4[_0x4599d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4599d6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x292d03,_0x1366f4[_0x4599d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4599d6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x292d03,_0x1366f4[_0x4599d6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4599d6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x26214a(_0x530dfe){const _0x142ba8=_0xbc75b8();_0x1366f4[_0x142ba8]=_0x4599d6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x530dfe,_0x530dfe!=_0x4599d6([0x56,0x61,0x6c,0x69,0x64])&&_0x297412();}function _0xbc75b8(){const _0x332a97=window[_0x4599d6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4599d6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4599d6([0x6e,0x6f,0x77])]())[_0x4599d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4599d6([0x2e]),'');let _0x3fea2e=_0x4599d6([0x65]);for(let _0x1440b3=0x0;_0x1440b3<_0x332a97[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1440b3+=0x2){let _0x25747b=window[_0x4599d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x332a97[_0x4599d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1440b3,_0x1440b3+0x2));_0x25747b>=_0x3bf864[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x25747b-=_0x3bf864[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3fea2e+=_0x3bf864[_0x25747b];}return _0x3fea2e;}function _0x17a504(){const _0x4792ba=_0x1fedac[_0x4599d6([0x73,0x70,0x6c,0x69,0x74])](_0x4599d6([0x2e]));if(0x3!=_0x4792ba[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4dca03(_0x4792ba[0x1]);function _0x4dca03(_0x890454){const _0x3d9f56=_0x498bf4(_0x890454);return _0x3d9f56&&_0x36be11()?_0x3d9f56:null;function _0x36be11(){const _0x397d2b=_0x3d9f56[_0x4599d6([0x6a,0x74,0x69])],_0x47d278=window[_0x4599d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x397d2b[_0x4599d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x397d2b[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9f22f1={..._0x3d9f56,[_0x4599d6([0x6a,0x74,0x69])]:_0x397d2b[_0x4599d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x397d2b[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9f22f1[_0x4599d6([0x76,0x63])],_0x38d8ab(_0x9f22f1)==_0x47d278;}}}async function _0x24ebbd(){let _0x3c4f74=!0x0;try{const _0x41e3a7=_0x1fedac[_0x4599d6([0x73,0x70,0x6c,0x69,0x74])](_0x4599d6([0x2e])),[_0x539400,_0x387b97,_0x407a0b]=_0x41e3a7;return _0x472b4e(_0x539400),await _0xa5e5f1(_0x539400,_0x387b97,_0x407a0b),_0x3c4f74;}catch(_0x447fa5){return!0x1;}function _0x472b4e(_0x4acb15){const _0x3f6183=_0x498bf4(_0x4acb15);_0x3f6183&&_0x3f6183[_0x4599d6([0x61,0x6c,0x67])]==_0x4599d6([0x45,0x53,0x32,0x35,0x36])||(_0x3c4f74=!0x1);}async function _0xa5e5f1(_0x5174a1,_0x35e134,_0x2ad06f){const _0x18969d=window[_0x4599d6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4599d6([0x66,0x72,0x6f,0x6d])](_0x186688(_0x2ad06f),_0xdbc97=>_0xdbc97[_0x4599d6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ae145=new window[(_0x4599d6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4599d6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5174a1+_0x4599d6([0x2e])+_0x35e134),_0x27b8c2=window[_0x4599d6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4599d6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27b8c2)return;const _0x4e8b31=await _0x27b8c2[_0x4599d6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4599d6([0x6a,0x77,0x6b]),_0xfd3e86,{[_0x4599d6([0x6e,0x61,0x6d,0x65])]:_0x4599d6([0x45,0x43,0x44,0x53,0x41]),[_0x4599d6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4599d6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4599d6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27b8c2[_0x4599d6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4599d6([0x6e,0x61,0x6d,0x65])]:_0x4599d6([0x45,0x43,0x44,0x53,0x41]),[_0x4599d6([0x68,0x61,0x73,0x68])]:{[_0x4599d6([0x6e,0x61,0x6d,0x65])]:_0x4599d6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e8b31,_0x18969d,_0x3ae145)||(_0x3c4f74=!0x1);}}function _0x498bf4(_0x3bc6af){return _0x3bc6af[_0x4599d6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4599d6([0x65,0x79]))?JSON[_0x4599d6([0x70,0x61,0x72,0x73,0x65])](_0x186688(_0x3bc6af)):null;}function _0x186688(_0x4a74c1){return window[_0x4599d6([0x61,0x74,0x6f,0x62])](_0x4a74c1[_0x4599d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4599d6([0x2b]))[_0x4599d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4599d6([0x2f])));}function _0x38d8ab(_0x50ed84){let _0x314e1a=0x1505;function _0x42a9b7(_0x5c36dc){for(let _0x1fe8c0=0x0;_0x1fe8c0<_0x5c36dc[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fe8c0++){const _0x33644b=_0x5c36dc[_0x4599d6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1fe8c0);_0x314e1a=(_0x314e1a<<0x5)+_0x314e1a+_0x33644b,_0x314e1a&=_0x314e1a;}}function _0x254887(_0x3881f2){Array[_0x4599d6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3881f2)?_0x3881f2[_0x4599d6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x254887):_0x3881f2&&typeof _0x3881f2==_0x4599d6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4599d6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3881f2)[_0x4599d6([0x73,0x6f,0x72,0x74])]()[_0x4599d6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4da3eb,_0x31fac3])=>{_0x42a9b7(_0x4da3eb),_0x254887(_0x31fac3);}):_0x42a9b7(window[_0x4599d6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3881f2));}return _0x254887(_0x50ed84),_0x314e1a>>>0x0;}function _0x5aec6f(_0x180655){return _0x180655[_0x4599d6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4599d6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4599d6([0x30]));}function _0x4797a5(_0x552ad8){return _0x552ad8[_0x4599d6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4599d6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4599d6([0x6a,0x6f,0x69,0x6e])]('');}function _0x292d03(){}function _0x4599d6(_0x2cd57b){return _0x2cd57b['map'](_0x549b06=>String['fromCharCode'](_0x549b06))['join']('');}_0x26214a(await _0x11ea9d());}(this);}['_initSchema'](){const _0x1d6dc0=this['editor']['model']['schema'];_0x1d6dc0['isRegistered']('imageBlock')&&_0x1d6dc0['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1d6dc0['isRegistered']('imageInline')&&_0x1d6dc0['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x29d3b8=this['editor'];_0x29d3b8['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x29d3b8['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1ee9a1=>_0x1ee9a1['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2c4b36=_0x29d3b8['commands']['get']('replaceImageSource');_0x2c4b36&&this['listenTo'](_0x2c4b36,'cleanupImage',(_0x31d9bd,[_0x42d3a8,_0x52648])=>{_0x42d3a8['removeAttribute']('uploadcareImageId',_0x52648);});}['_initConfig'](){const _0x5ec0f9=this['editor']['config']['get']('uploadcare.uploader')||{},_0x38d36c=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1bd771(_0xf500a3['document'],'uc-config',{..._0x5ec0f9,'pubkey':_0x38d36c,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4e0b7d=>{if('closeMax'==_0x4e0b7d)return'#uc-icon-arrow-down';},_0xf500a3['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1bd771(_0xf500a3['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xf500a3['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1e4562=this['editor']['commands']['get']('insertImage');_0x1e4562&&this['listenTo'](_0x1e4562,'execute',()=>{const _0x3ef374=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3ef374&&_0x3ef374['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3ef374);});});const _0x2265eb=this['editor']['commands']['get']('uploadcareImageReplace');_0x2265eb&&this['listenTo'](_0x2265eb,'execute',()=>{const _0x49cc13=this['editor']['model']['document']['selection']['getSelectedElement']();_0x49cc13&&_0x49cc13['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x49cc13);});});}}class u extends _0x4bf305{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x566f7c){super(_0x566f7c),_0x566f7c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x512567['defineComponents'](_0x512567);}}class ta extends _0x230fa2{constructor(_0x5c8363){super(_0x5c8363);const t=_0x5c8363['t'],_0x3f6c2e=this['bindTemplate'],_0x2f9769=new _0x139bce();_0x2f9769['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':[_0x2f9769,{'text':_0x3f6c2e['to']('imageUploadProgress',_0x33862f=>t('Loading\x20image...')+'\x20('+(_0x33862f||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x230fa2{constructor(_0x46428a){super(_0x46428a);const t=_0x46428a['t'];this['set']('errorType',null);const _0x3634f1=new _0x5789be(_0x46428a);_0x3634f1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3634f1['withText']=!0x0,_0x3634f1['class']='ck-button-action',_0x3634f1['on']('execute',()=>{this['fire']('retry');}),_0x3634f1['bind']('isVisible')['to'](this,'errorType',_0x58223a=>'NotFound'!==_0x58223a);const _0x5c0a55=new at();_0x5c0a55['content']=et,_0x5c0a55['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x292f50=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':[_0x5c0a55,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x292f50['to']('errorType',_0x5d9d2c=>t('NotFound'!==_0x5d9d2c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3634f1]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x230fa2{constructor(_0x32c506,_0xedf3f){super(_0x32c506);const _0x413f44=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xedf3f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x413f44['to']('imageSrc')}});}}class ii extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x160e11,_0x19d339,_0x270510){super(_0x160e11),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x160e11),this['_errorView']=new rt(_0x160e11),this['_editingView']=new tt(_0x160e11,_0x270510),this['_focusableView']=new _0x230fa2(_0x160e11),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x19d339),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x2dc605=>{this['_addUploadcareImageEditorListeners'](_0x2dc605);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0xd0ab36,_0x4a71e2){const _0x3bfaf5='uc-cloud-image-editor',_0xcec999=_0xd0ab36['querySelector'](_0x3bfaf5);if(_0xcec999)return _0x4a71e2(_0xcec999);const _0x534632=new MutationObserver(_0x208529=>{const _0x538cf5=_0x208529['filter'](_0x48ed95=>_0x48ed95['target']===_0xd0ab36&&_0x48ed95['addedNodes']['length']>0x0&&_0x48ed95['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3bfaf5);_0x538cf5['length']&&(_0x534632['disconnect'](),_0x4a71e2(_0x538cf5[0x0]['addedNodes'][0x0]));});_0x534632['observe'](_0xd0ab36,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3a8acc){_0x3a8acc['addEventListener']('apply',_0x3b4374=>{this['fire']('apply',{'imageSrc':_0x3b4374['detail']['cdnUrl']});}),_0x3a8acc['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Q extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5ce219(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x585e7d,_0x51cc75,_0x56af5d){super(),this['_editor']=_0x585e7d,this['_dialog']=_0x51cc75,this['_imageElement']=_0x56af5d,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 _0x63e254=this['_imageElement'],_0x4eaf1b=_0x63e254['getAttribute']('uploadcareImageId'),_0xd477b4=_0x63e254['getAttribute']('src');if(_0x4eaf1b)await this['_loadImageInfo'](_0x4eaf1b,_0xd477b4);else{if(this['_imageCache']['has'](_0xd477b4)){const _0x529734=this['_imageCache']['get'](_0xd477b4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x529734['url'],this['imageDimension']=_0x529734['dimension'],this['imageId']=_0x529734['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xf555d0}=this['_editor'],t=_0xf555d0['t'],_0xa1b615=new ii(_0xf555d0,this['imageStatus'],this['_attributes']);_0xa1b615['bind']('status')['to'](this,'imageStatus'),_0xa1b615['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xa1b615['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xa1b615['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xa1b615,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1aa9d8,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xa1b615,'position':_0x3a764c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xa1b615['focus']();},'onHide':()=>{_0xa1b615['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3be535=>!M(_0x3be535,_0xa1b615['element'])}});}['_loadImageInfo'](_0x417c04,_0x593fff){return C['getInfo'](_0x417c04,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1cc4f9=>{const {width:_0x2a39b6,height:_0x3f4e34}=_0x1cc4f9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x593fff,this['imageDimension']={'width':_0x2a39b6,'height':_0x3f4e34},this['imageId']=_0x417c04;})['catch'](_0x91141f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x91141f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x551142,_0x1c428b){return this['_getImageAsFile'](_0x551142)['then'](_0x2de977=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1c428b['signal'],'file':_0x2de977,'onProgress':_0x4dc5a4=>{_0x4dc5a4&&_0x4dc5a4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4dc5a4['value']));}}))['then'](_0x17ad53=>{const {width:_0x3af84c,height:_0x26df6f}=_0x17ad53['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17ad53['cdnUrl'],this['imageDimension']={'width':_0x3af84c,'height':_0x26df6f},this['imageId']=_0x17ad53['uuid'],this['imageUploadProgress']=null;const _0x4c6d93=_0x551142['getAttribute']('src');this['_imageCache']['set'](_0x4c6d93,{'id':_0x17ad53['uuid'],'url':_0x17ad53['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x11b184=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x11b184['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1db538,_0x18e756){_0x1db538['on']('apply',(_0x57e5c6,_0x41f651)=>{this['_replaceImage'](_0x18e756,_0x41f651['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1db538['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1db538['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4ea877,_0x398f76,_0x57c663){const _0xc1657c=this['_editor'],{width:_0x4c3405,height:_0xb5ffb6}=F(_0x398f76,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2fb5a7,imageSources:_0x1dd19f}=E(_0x398f76,_0x4c3405);_0xc1657c['model']['change'](_0x309ea7=>{if('$graveyard'===_0x4ea877['root']['rootName']){_0xc1657c['execute']('insertImage',{'imageType':_0x4ea877['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4ea877['getAttributes']()),'uploadcareImageId':_0x57c663,'src':_0x2fb5a7,'sources':_0x1dd19f,'width':_0x4c3405,'height':_0xb5ffb6}});const _0x1432ab=_0x4ea877['getChildren']();_0x4ea877=_0xc1657c['model']['document']['selection']['getSelectedElement']();for(const _0x4fc290 of _0x1432ab)_0x309ea7['append'](_0x309ea7['cloneElement'](_0x4fc290),_0x4ea877);}else _0x309ea7['setSelection'](_0x4ea877,'on'),_0xc1657c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4ea877['getAttributes']()),'uploadcareImageId':_0x57c663,'src':_0x2fb5a7,'sources':_0x1dd19f,'width':_0x4c3405,'height':_0xb5ffb6},_0x4ea877);_0x309ea7['setSelection'](_0x4ea877,'on');});}async['_getImageAsFile'](_0xdca733){const _0x12eb28=_0xf500a3['window'],_0x3d60af=_0xf500a3['document']['location']['href'],_0x3d643a=new _0x12eb28['URL'](_0xdca733['getAttribute']('src'),_0x3d60af);if('data:'===_0x3d643a['protocol']){const _0x51ffc7=_0x3d643a['href']['split'](','),_0x1cad6e=_0x51ffc7[0x0]['match'](/:(.*?);/)[0x1],_0x36c11f=_0x1cad6e['split']('/')[0x1],_0x15d794=_0x12eb28['atob'](_0x51ffc7[_0x51ffc7['length']-0x1]);let _0x15bd69=_0x15d794['length'];const _0x591c73=new _0x12eb28['Uint8Array'](_0x15bd69);for(;_0x15bd69--;)_0x591c73[_0x15bd69]=_0x15d794['charCodeAt'](_0x15bd69);return new _0x12eb28['File']([_0x591c73],'image.'+_0x36c11f,{'type':_0x1cad6e});}const _0x5a0806=_0x3d643a['href']['split']('/'),_0x39f096=_0x5a0806[_0x5a0806['length']-0x1],_0x2c5fe2=_0x39f096['split']('.')[0x1];return _0x12eb28['fetch'](_0x3d643a['href'])['then'](_0xdc5ebe=>_0xdc5ebe['clone']()['blob']())['then'](_0x49b13b=>new _0x12eb28['File']([_0x49b13b],_0x39f096,{'type':'image/'+_0x2c5fe2}));}}class W extends _0x5e2484{['imageEditController'];static get['requires'](){return[_0x31776d];}['_isEditable'];constructor(_0x46c3fe){super(_0x46c3fe),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x195bab){const _0x30047b=R(_0x195bab);return _0x2ac1bd=>!(!_0x2ac1bd||!_0x2ac1bd['is']('element','imageBlock')&&!_0x2ac1bd['is']('element','imageInline'))&&(!!_0x2ac1bd['hasAttribute']('uploadcareImageId')||!!_0x2ac1bd['hasAttribute']('src')&&_0x30047b(_0x2ac1bd['getAttribute']('src')));}(_0x46c3fe['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x13b5eb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x13b5eb);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x40804f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x40804f&&(_0x40804f['is']('element','imageBlock')||_0x40804f['is']('element','imageInline'))&&(this['imageEditController']=new Q(this['editor'],this['editor']['plugins']['get'](_0x31776d),_0x40804f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class Y extends _0x5e2484{['refresh'](){const _0x325238=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x325238&&(_0x325238['is']('element','imageBlock')||_0x325238['is']('element','imageInline')));}['execute'](_0x5d8a47){const _0xefdfbb=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xe2e43d=>{_0xe2e43d['setAttributes'](_0x5d8a47,_0xefdfbb),_0xe2e43d['removeAttribute']('srcset',_0xefdfbb),_0xe2e43d['removeAttribute']('sizes',_0xefdfbb);});}}class g extends _0x4bf305{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x4ff535,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x402b75}=this;_0x402b75['commands']['add']('uploadcareImageEdit',new W(_0x402b75)),_0x402b75['commands']['add']('uploadcareImageReplace',new Y(_0x402b75));}}class j extends _0x4bf305{['_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 _0x114237=this['editor'];_0x114237['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1356d8=>{const _0x4239ad=_0x114237['commands']['get']('uploadcareImageEdit'),_0x2e7b3e=new _0x5789be(_0x1356d8),t=_0x1356d8['t'];return _0x2e7b3e['set']({'icon':_0x1aa9d8,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2e7b3e['bind']('isEnabled')['to'](_0x4239ad),_0x2e7b3e['bind']('isOn')['to'](_0x4239ad,'isActive'),this['listenTo'](_0x2e7b3e,'execute',()=>{_0x114237['execute']('uploadcareImageEdit'),_0x114237['editing']['view']['focus']();}),_0x2e7b3e;}),this['_initConfig']();}['_initConfig'](){const _0x1703bf=_0x1bd771(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1703bf),this['listenTo'](this['editor'],'destroy',()=>{_0x1703bf['remove']();});}}class P extends _0x4bf305{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/lang/contexts.json
CHANGED
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
"Insert with Google Photos": "The label for the insert image with Google Photos dropdown button.",
|
|
12
12
|
"Replace with Google Photos": "The label for the replace image with Google Photos dropdown button.",
|
|
13
13
|
"With Google Photos": "The label for the insert image with Google Photos menu bar button (inside 'Image' menu).",
|
|
14
|
+
"Insert with Instagram": "The label for the insert image with Instagram dropdown button.",
|
|
15
|
+
"Replace with Instagram": "The label for the replace image with Instagram dropdown button.",
|
|
16
|
+
"With Instagram": "The label for the insert image with Instagram menu bar button (inside 'Image' menu).",
|
|
14
17
|
"Insert with OneDrive": "The label for the insert image with OneDrive dropdown button.",
|
|
15
18
|
"Replace with OneDrive": "The label for the replace image with OneDrive dropdown button.",
|
|
16
19
|
"With OneDrive": "The label for the insert image with OneDrive menu bar button (inside 'Image' menu).",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-next-20250215.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,13 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-
|
|
28
|
-
"@ckeditor/ckeditor5-
|
|
29
|
-
"@ckeditor/ckeditor5-
|
|
30
|
-
"@ckeditor/ckeditor5-
|
|
31
|
-
"@ckeditor/ckeditor5-
|
|
32
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250215.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250215.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250215.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250215.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250215.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250215.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250215.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-next-20250215.0",
|
|
33
34
|
"@uploadcare/file-uploader": "1.12.0",
|
|
34
35
|
"@uploadcare/upload-client": "6.14.1"
|
|
35
36
|
},
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3c1916,_0x4cbcb6){var _0x3ac1ab=_0x37fc,_0xf3ea54=_0x3c1916();while(!![]){try{var _0x2b1ce4=-parseInt(_0x3ac1ab(0x154))/0x1+-parseInt(_0x3ac1ab(0x153))/0x2+parseInt(_0x3ac1ab(0x157))/0x3+-parseInt(_0x3ac1ab(0x156))/0x4+-parseInt(_0x3ac1ab(0x158))/0x5*(parseInt(_0x3ac1ab(0x155))/0x6)+parseInt(_0x3ac1ab(0x159))/0x7*(parseInt(_0x3ac1ab(0x152))/0x8)+parseInt(_0x3ac1ab(0x15a))/0x9;if(_0x2b1ce4===_0x4cbcb6)break;else _0xf3ea54['push'](_0xf3ea54['shift']());}catch(_0x3b18bc){_0xf3ea54['push'](_0xf3ea54['shift']());}}}(_0x1a9f,0x24717));export{default as Uploadcare}from'./uploadcare.js';function _0x37fc(_0x5d4484,_0x5cabb1){var _0x1a9f32=_0x1a9f();return _0x37fc=function(_0x37fca1,_0x697d34){_0x37fca1=_0x37fca1-0x152;var _0x2ccce1=_0x1a9f32[_0x37fca1];return _0x2ccce1;},_0x37fc(_0x5d4484,_0x5cabb1);}export{default as UploadcareEditing}from'./uploadcareediting.js';export{default as UploadcareUI}from'./uploadcareui.js';export{default as UploadcareImageEdit}from'./uploadcareimageedit.js';export{default as UploadcareImageEditUI}from'./uploadcareimageedit/uploadcareimageeditui.js';export{default as UploadcareImageEditEditing}from'./uploadcareimageedit/uploadcareimageeditediting.js';import'./augmentation.js';function _0x1a9f(){var _0x39102a=['5tOuPjk','44303uBRRgg','1129059pyytyW','304JrEaES','313186jNIUPL','136962gkmEIu','240582lDkWMk','219108ygCBrA','515241MBnxka'];_0x1a9f=function(){return _0x39102a;};return _0x1a9f();}
|
|
@@ -2,16 +2,12 @@
|
|
|
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
|
-
import {
|
|
5
|
+
import type { Editor } from 'ckeditor5/src/core.js';
|
|
6
6
|
import { UploadcareSource } from '../uploadcareconfig.js';
|
|
7
7
|
import type UploadcareEditing from '../uploadcareediting.js';
|
|
8
8
|
declare const UploadcareController_base: {
|
|
9
9
|
new (): import("ckeditor5/src/utils.js").Observable;
|
|
10
|
-
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
11
|
-
* Creates the Uploadcare form view and opens a dialog wit it.
|
|
12
|
-
*
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
10
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
15
11
|
};
|
|
16
12
|
/**
|
|
17
13
|
* The Uploadcare controller. It is used by the {@link module:uploadcare/uploadcarecommand~UploadcareCommand Uploadcare command}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x51c4e4=_0xf1f4;(function(_0x5cb197,_0x3532a4){const _0x12b8bb=_0xf1f4,_0x37b2fa=_0x5cb197();while(!![]){try{const _0x1b1904=-parseInt(_0x12b8bb(0x9a))/0x1*(parseInt(_0x12b8bb(0xbb))/0x2)+parseInt(_0x12b8bb(0xad))/0x3*(-parseInt(_0x12b8bb(0x98))/0x4)+-parseInt(_0x12b8bb(0xb6))/0x5+parseInt(_0x12b8bb(0xaf))/0x6+-parseInt(_0x12b8bb(0x8d))/0x7+parseInt(_0x12b8bb(0xb8))/0x8*(-parseInt(_0x12b8bb(0x97))/0x9)+parseInt(_0x12b8bb(0x85))/0xa;if(_0x1b1904===_0x3532a4)break;else _0x37b2fa['push'](_0x37b2fa['shift']());}catch(_0xf39865){_0x37b2fa['push'](_0x37b2fa['shift']());}}}(_0x3dac,0xe65ec));import{IconUploadcareImageUpload as _0x407ef3}from'ckeditor5/src/icons.js';function _0xf1f4(_0x4fa6ce,_0x44afe4){const _0x3dacd5=_0x3dac();return _0xf1f4=function(_0xf1f4c8,_0x1074c5){_0xf1f4c8=_0xf1f4c8-0x83;let _0x4909ed=_0x3dacd5[_0xf1f4c8];return _0x4909ed;},_0xf1f4(_0x4fa6ce,_0x44afe4);}import{ObservableMixin as _0x139d0c}from'ckeditor5/src/utils.js';import{Dialog as _0x495882,DialogViewPosition as _0x5d2dce}from'ckeditor5/src/ui.js';import _0x5d6c67 from'./uploadcareformview.js';import{UploadcareSource as _0x3d6106}from'../uploadcareconfig.js';import{getTranslation as _0x25a9ff}from'../utils/common-translations.js';function _0x3dac(){const _0x22cd73=['isOpen','11066004bodRes','Local','_initDialog','configElement','getLastPosition','execute','_initListeners','5824030NEWyIn','uploadCare','16yXPnxm','setAttribute','_api','836174epOxyd','element','Insert','_dialog','_insertImage','detail','_formView','plugins','hide','view','model','EDITOR_TOP_CENTER','getSelectedElement','getOutputCollectionState','initFlow','destroy','editing','uuid','insertImage','48955830xipeHn','Replace','selection','_insertAsset','imageInline','change','width','addEventListener','12042114fomLBG','imageInfo','source-list','attributes','setCurrentActivity','removeSelectionAttribute','get','ctxElement','_editor','_editing','5221611aurEaJ','396SMXTvR','allEntries','4AeXDsG','getAPI','length','document','text','removeAllFiles','show','_type','setSelection','status','linkHref','doneFlow','image','idle','stopDelegating','imageBlock','focus','stopListening','done-click','2379erMtQQ'];_0x3dac=function(){return _0x22cd73;};return _0x3dac();}import{getImageUrls as _0x5cec98,getImageDimension as _0x46727b}from'../utils/editingutils.js';import{isAncestor as _0x35ccc2}from'../utils/isancestor.js';export default class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x139d0c(){[_0x51c4e4(0x95)];[_0x51c4e4(0xbe)];[_0x51c4e4(0x96)];[_0x51c4e4(0xba)];[_0x51c4e4(0xa1)]=null;[_0x51c4e4(0xc1)]=null;constructor(_0x34d4b4,_0x9c277b,_0x15ffe2){const _0x41ba8b=_0x51c4e4;super(),this[_0x41ba8b(0x95)]=_0x34d4b4,this[_0x41ba8b(0x96)]=_0x9c277b,this[_0x41ba8b(0xbe)]=_0x34d4b4[_0x41ba8b(0xc2)][_0x41ba8b(0x93)](_0x495882),this[_0x41ba8b(0xba)]=_0x9c277b[_0x41ba8b(0x94)][_0x41ba8b(0x9b)](),this[_0x41ba8b(0xa1)]=_0x15ffe2,this[_0x41ba8b(0x96)][_0x41ba8b(0xb2)][_0x41ba8b(0xb9)](_0x41ba8b(0x8f),this[_0x41ba8b(0xa1)]),this[_0x41ba8b(0xb1)](),this[_0x41ba8b(0xb5)](),this[_0x41ba8b(0xba)][_0x41ba8b(0xc9)]();}[_0x51c4e4(0xca)](){const _0x41659e=_0x51c4e4;this[_0x41659e(0xc1)]&&(this[_0x41659e(0xc1)][_0x41659e(0xca)](),this[_0x41659e(0xc1)]=null),this[_0x41659e(0xba)]&&this[_0x41659e(0xba)][_0x41659e(0xa5)](),this[_0x41659e(0xab)](),this[_0x41659e(0xa8)]();}[_0x51c4e4(0xb1)](){const _0x4ba10a=_0x51c4e4,{locale:_0x1e6c9f,model:_0x4a2fd9}=this[_0x4ba10a(0x95)],_0x1f912d=_0x4a2fd9[_0x4ba10a(0x9d)][_0x4ba10a(0x87)][_0x4ba10a(0xc7)](),_0x3e176b=_0x1f912d&&(_0x1f912d['is'](_0x4ba10a(0xbc),_0x4ba10a(0xa9))||_0x1f912d['is'](_0x4ba10a(0xbc),_0x4ba10a(0x89)));this[_0x4ba10a(0xc1)]=new _0x5d6c67(_0x1e6c9f),this[_0x4ba10a(0xbe)][_0x4ba10a(0xa0)]({'id':_0x4ba10a(0xb7),'icon':_0x407ef3,'title':_0x25a9ff(_0x1e6c9f,this[_0x4ba10a(0xa1)],_0x3e176b?_0x4ba10a(0x86):_0x4ba10a(0xbd))[_0x4ba10a(0x9e)],'content':this[_0x4ba10a(0xc1)],'position':_0x5d2dce[_0x4ba10a(0xc6)],'isModal':!0x0,'onShow':()=>{const _0x55f2b5=_0x4ba10a;this[_0x55f2b5(0xc1)][_0x55f2b5(0xaa)]();},'onHide':()=>{const _0x34897f=_0x4ba10a;this[_0x34897f(0xba)][_0x34897f(0x9f)](),this[_0x34897f(0x95)][_0x34897f(0xcb)][_0x34897f(0xc4)][_0x34897f(0xaa)](),this[_0x34897f(0xca)]();},'keystrokeHandlerOptions':{'filter':_0x1e157c=>!_0x35ccc2(_0x1e157c,this[_0x4ba10a(0xc1)][_0x4ba10a(0xbc)])}});}[_0x51c4e4(0xb5)](){const _0x3aff57=_0x51c4e4;this[_0x3aff57(0x96)][_0x3aff57(0x94)][_0x3aff57(0x8c)](_0x3aff57(0xac),()=>{const _0x49fd69=_0x3aff57,{allEntries:_0x64f2de}=this[_0x49fd69(0xba)][_0x49fd69(0xc8)]();this[_0x49fd69(0x95)][_0x49fd69(0xc5)][_0x49fd69(0x8a)](_0x217754=>{const _0x521b38=_0x49fd69,_0x91557e=_0x64f2de[_0x521b38(0x9c)];for(const _0x48b886 of _0x64f2de){const _0x5b9bdb=_0x48b886===_0x64f2de[_0x91557e-0x1],{cdnUrl:_0x4837f6,fileInfo:_0x35665e}=_0x48b886;if(!_0x4837f6||!_0x35665e)continue;const {width:_0xc605a5,height:_0x32813e}=_0x35665e[_0x521b38(0x8e)],_0x4fc7ed=_0x46727b(_0x4837f6,_0xc605a5,_0x32813e),_0x237d7f=_0x5cec98(_0x4837f6,_0x4fc7ed[_0x521b38(0x8b)]),_0x27c162={'id':_0x35665e[_0x521b38(0x83)],'type':_0x521b38(0xa6),'attributes':{'imageDimension':_0x4fc7ed,..._0x237d7f}};this[_0x521b38(0x88)](_0x27c162,_0x5b9bdb,_0x217754);}}),this[_0x49fd69(0xbe)][_0x49fd69(0xc3)]();}),this[_0x3aff57(0x96)][_0x3aff57(0x94)][_0x3aff57(0x8c)](_0x3aff57(0x8a),_0x5ce1fb=>{const _0xe340ba=_0x3aff57;_0xe340ba(0xa7)===_0x5ce1fb[_0xe340ba(0xc0)][_0xe340ba(0xa3)]&&!_0x5ce1fb[_0xe340ba(0xc0)][_0xe340ba(0x99)][_0xe340ba(0x9c)]&&this[_0xe340ba(0xbe)][_0xe340ba(0xae)]&&(this[_0xe340ba(0xa1)]===_0x3d6106[_0xe340ba(0xb0)]?this[_0xe340ba(0xba)][_0xe340ba(0x91)](_0x3d6106[_0xe340ba(0xb0)]):this[_0xe340ba(0xba)][_0xe340ba(0xc9)]());});}[_0x51c4e4(0x88)](_0x50535c,_0x5cf8fc,_0x1d3233){const _0x3984ce=_0x51c4e4,_0x361bce=this[_0x3984ce(0x95)][_0x3984ce(0xc5)][_0x3984ce(0x9d)][_0x3984ce(0x87)],_0x4b0963=_0x361bce[_0x3984ce(0xc7)](),_0x1d501c=!(!_0x4b0963||!_0x4b0963['is'](_0x3984ce(0xbc),_0x3984ce(0x89)));_0x1d3233[_0x3984ce(0x92)](_0x3984ce(0xa4)),this[_0x3984ce(0xbf)](_0x50535c,_0x1d501c),_0x5cf8fc||_0x1d3233[_0x3984ce(0xa2)](_0x361bce[_0x3984ce(0xb3)]());}[_0x51c4e4(0xbf)](_0x1f7d48,_0x28ff20){const _0x11cc98=_0x51c4e4,_0x3d4043=this[_0x11cc98(0x95)],{imageDimension:_0x4c80a6,imageFallbackUrl:_0x2ece4a,imageSources:_0x13470e}=_0x1f7d48[_0x11cc98(0x90)];_0x3d4043[_0x11cc98(0xb4)](_0x11cc98(0x84),{'imageType':_0x28ff20?_0x11cc98(0x89):null,'source':{'uploadcareImageId':_0x1f7d48['id'],'src':_0x2ece4a,'sources':_0x13470e,..._0x4c80a6}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x361dfc=_0x1b97;function _0x1b97(_0x2499e6,_0x43dad8){var _0x282b7f=_0x282b();return _0x1b97=function(_0x1b97c0,_0x196ad4){_0x1b97c0=_0x1b97c0-0x134;var _0x102128=_0x282b7f[_0x1b97c0];return _0x102128;},_0x1b97(_0x2499e6,_0x43dad8);}(function(_0x2a6584,_0x29cade){var _0x346160=_0x1b97,_0x738fc4=_0x2a6584();while(!![]){try{var _0x3ff758=-parseInt(_0x346160(0x144))/0x1+parseInt(_0x346160(0x140))/0x2*(-parseInt(_0x346160(0x137))/0x3)+parseInt(_0x346160(0x138))/0x4+-parseInt(_0x346160(0x13b))/0x5*(-parseInt(_0x346160(0x149))/0x6)+-parseInt(_0x346160(0x143))/0x7*(-parseInt(_0x346160(0x148))/0x8)+parseInt(_0x346160(0x145))/0x9+parseInt(_0x346160(0x134))/0xa*(-parseInt(_0x346160(0x142))/0xb);if(_0x3ff758===_0x29cade)break;else _0x738fc4['push'](_0x738fc4['shift']());}catch(_0x41ee00){_0x738fc4['push'](_0x738fc4['shift']());}}}(_0x282b,0x78735));import _0x528393 from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export default class S extends _0x528393{constructor(_0x4f3416){var _0x5b28bb=_0x1b97;super(_0x4f3416),this[_0x5b28bb(0x135)]({'tag':_0x5b28bb(0x13c),'attributes':{'class':['ck',_0x5b28bb(0x141),_0x5b28bb(0x139)],'tabindex':'-1'},'children':[{'tag':_0x5b28bb(0x13d),'attributes':{'class':[_0x5b28bb(0x13e),_0x5b28bb(0x13f)],'ctx-name':_0x5b28bb(0x136)}},this[_0x5b28bb(0x147)]()]});}[_0x361dfc(0x13a)](){var _0x561499=_0x361dfc;this[_0x561499(0x146)][_0x561499(0x13a)]();}}function _0x282b(){var _0xe68726=['uc-file-uploader-inline','uc-light','ck-uploadcare-theme','62vSPGAK','ck-reset_all-excluded','55jmbezH','6013TePHYL','165070hgePCl','5675382iRYVXr','element','getFocusableElement','1352ADTxOG','60IoEdkT','232970nvhxIo','setTemplate','uploader','46581VRIYHt','1657992FJZkJF','ck-uploadcare-form','focus','32995BkZeTY','div'];_0x282b=function(){return _0xe68726;};return _0x282b();}
|
package/src/uploadcare.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x49d007=_0x510c;(function(_0x1bca22,_0x2d8689){var _0x287689=_0x510c,_0x17c0e7=_0x1bca22();while(!![]){try{var _0x265938=-parseInt(_0x287689(0x18e))/0x1+-parseInt(_0x287689(0x198))/0x2+parseInt(_0x287689(0x18b))/0x3+parseInt(_0x287689(0x191))/0x4+parseInt(_0x287689(0x18a))/0x5*(parseInt(_0x287689(0x187))/0x6)+parseInt(_0x287689(0x196))/0x7+parseInt(_0x287689(0x185))/0x8*(-parseInt(_0x287689(0x194))/0x9);if(_0x265938===_0x2d8689)break;else _0x17c0e7['push'](_0x17c0e7['shift']());}catch(_0x4c5051){_0x17c0e7['push'](_0x17c0e7['shift']());}}}(_0x30f3,0xec5e9));function _0x30f3(){var _0x5f331f=['define','63jXRXBs','requires','10929184FRbyNK','isPremiumPlugin','98894FIjBZH','4612040PHmjMz','uploadcare.uploader.sourceList','108bbFiMI','config','isOfficialPlugin','412095qmkTGi','4675356yZDsnJ','Local','defineComponents','196211JxSHWe','Uploadcare','URL','2584224FoIFDY','pluginName'];_0x30f3=function(){return _0x5f331f;};return _0x30f3();}import{Plugin as _0x399c4c}from'ckeditor5/src/core.js';import _0x57e4d0 from'./uploadcareui.js';import _0x30e9fc from'./uploadcareediting.js';import{UploadcareSource as _0x18c8f9}from'./uploadcareconfig.js';function _0x510c(_0x5a58cd,_0x5ec27c){var _0x30f3d2=_0x30f3();return _0x510c=function(_0x510cb9,_0x1b24e2){_0x510cb9=_0x510cb9-0x185;var _0x43267e=_0x30f3d2[_0x510cb9];return _0x43267e;},_0x510c(_0x5a58cd,_0x5ec27c);}import*as _0x39ba26 from'@uploadcare/file-uploader';export default class u extends _0x399c4c{static get[_0x49d007(0x195)](){return[_0x30e9fc,_0x57e4d0];}static get[_0x49d007(0x192)](){var _0x5dea0d=_0x49d007;return _0x5dea0d(0x18f);}static get[_0x49d007(0x189)](){return!0x0;}static get[_0x49d007(0x197)](){return!0x0;}constructor(_0xfadc6d){var _0x106986=_0x49d007;super(_0xfadc6d),_0xfadc6d[_0x106986(0x188)][_0x106986(0x193)](_0x106986(0x186),[_0x18c8f9[_0x106986(0x18c)],_0x18c8f9[_0x106986(0x190)]]),_0x39ba26[_0x106986(0x18d)](_0x39ba26);}}
|
package/src/uploadcarecommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4be543=_0x5994;(function(_0x5a957b,_0x10171c){var _0x2653a3=_0x5994,_0x37100e=_0x5a957b();while(!![]){try{var _0x2e0d06=parseInt(_0x2653a3(0x146))/0x1+-parseInt(_0x2653a3(0x134))/0x2*(-parseInt(_0x2653a3(0x13a))/0x3)+parseInt(_0x2653a3(0x138))/0x4*(parseInt(_0x2653a3(0x142))/0x5)+-parseInt(_0x2653a3(0x13e))/0x6+parseInt(_0x2653a3(0x135))/0x7*(-parseInt(_0x2653a3(0x133))/0x8)+parseInt(_0x2653a3(0x143))/0x9*(-parseInt(_0x2653a3(0x144))/0xa)+parseInt(_0x2653a3(0x149))/0xb;if(_0x2e0d06===_0x10171c)break;else _0x37100e['push'](_0x37100e['shift']());}catch(_0x9ca7a5){_0x37100e['push'](_0x37100e['shift']());}}}(_0x5a44,0x2b508));function _0x5a44(){var _0x10a836=['refresh','destroy','441648bXHQNJ','editor','_controller','execute','5XWiLMT','9QpLSWV','3258890wvIJMZ','isEnabled','314399LtXWHA','insertImage','_editing','1123661CIJrdS','plugins','8mNkgqb','88850JlLcFn','2245495FSjUuO','commands','get','680692jxApxz','_checkEnabled','21EBjeGa','requires'];_0x5a44=function(){return _0x10a836;};return _0x5a44();}import{Command as _0x1c176e}from'ckeditor5/src/core.js';function _0x5994(_0x2ed0ff,_0x57a9b0){var _0x5a449a=_0x5a44();return _0x5994=function(_0x599457,_0x37697a){_0x599457=_0x599457-0x132;var _0x3d8d39=_0x5a449a[_0x599457];return _0x3d8d39;},_0x5994(_0x2ed0ff,_0x57a9b0);}import{Dialog as _0x30c7f6}from'ckeditor5/src/ui.js';import _0xf3e3cd from'./uploadcareediting.js';import _0x130161 from'./ui/uploadcarecontroller.js';export default class n extends _0x1c176e{[_0x4be543(0x148)];[_0x4be543(0x140)]=null;static get[_0x4be543(0x13b)](){return[_0x30c7f6,_0xf3e3cd];}constructor(_0x2a37b3){var _0x1eedfd=_0x4be543;super(_0x2a37b3),this[_0x1eedfd(0x148)]=_0x2a37b3[_0x1eedfd(0x132)][_0x1eedfd(0x137)](_0xf3e3cd);}[_0x4be543(0x13c)](){var _0x5864ca=_0x4be543;this[_0x5864ca(0x145)]=this[_0x5864ca(0x139)]();}[_0x4be543(0x141)](_0x49e811){var _0x421c60=_0x4be543;this[_0x421c60(0x140)]&&(this[_0x421c60(0x140)][_0x421c60(0x13d)](),this[_0x421c60(0x140)]=null),this[_0x421c60(0x140)]=new _0x130161(this[_0x421c60(0x13f)],this[_0x421c60(0x148)],_0x49e811);}[_0x4be543(0x139)](){var _0x23804d=_0x4be543;return this[_0x23804d(0x13f)][_0x23804d(0x136)][_0x23804d(0x137)](_0x23804d(0x147))[_0x23804d(0x145)];}}
|