@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260106.0 → 0.0.0-nightly-20260107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/ast.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/be.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/eo.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/eu.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/gu.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/hy.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/kk.js +1 -0
- package/build/translations/km.js +1 -0
- package/build/translations/kn.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nb.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/oc.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/si.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sl.js +1 -0
- package/build/translations/sq.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/ti.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/build/uploadcare.js +5 -0
- package/ckeditor5-metadata.json +2 -2
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +33 -23
- package/{dist → src}/augmentation.d.ts +0 -4
- package/src/augmentation.js +23 -0
- package/{dist → src}/index.d.ts +0 -4
- package/src/index.js +23 -0
- package/{dist → src}/ui/uploadcarecontroller.d.ts +3 -7
- package/src/ui/uploadcarecontroller.js +24 -0
- package/{dist → src}/ui/uploadcareformview.d.ts +1 -5
- package/src/ui/uploadcareformview.js +23 -0
- package/{dist → src}/uploadcare.d.ts +1 -5
- package/src/uploadcare.js +23 -0
- package/{dist → src}/uploadcarecommand.d.ts +2 -6
- package/src/uploadcarecommand.js +23 -0
- package/{dist → src}/uploadcareconfig.d.ts +1 -5
- package/src/uploadcareconfig.js +23 -0
- package/{dist → src}/uploadcareediting.d.ts +2 -6
- package/src/uploadcareediting.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +5 -9
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +24 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +2 -6
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +2 -6
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +2 -6
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +1 -5
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimageeditcommand.d.ts +2 -6
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimageeditediting.d.ts +2 -6
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimageeditui.d.ts +1 -5
- package/src/uploadcareimageedit/uploadcareimageeditui.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +1 -5
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +23 -0
- package/{dist → src}/uploadcareimageedit.d.ts +1 -5
- package/src/uploadcareimageedit.js +23 -0
- package/{dist → src}/uploadcareui.d.ts +1 -5
- package/src/uploadcareui.js +23 -0
- package/{dist → src}/uploadcareuploadadapter.d.ts +2 -6
- package/src/uploadcareuploadadapter.js +23 -0
- package/{dist → src}/utils/common-translations.d.ts +0 -4
- package/src/utils/common-translations.js +23 -0
- package/{dist → src}/utils/dialogfocusmanagerview.d.ts +2 -6
- package/src/utils/dialogfocusmanagerview.js +23 -0
- package/{dist → src}/utils/editingutils.d.ts +0 -4
- package/src/utils/editingutils.js +23 -0
- package/{dist → src}/utils/isancestor.d.ts +0 -4
- package/src/utils/isancestor.js +23 -0
- package/{dist → src}/utils/uploadutils.d.ts +0 -4
- package/src/utils/uploadutils.js +23 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x5de4(){var _0x567635=['div','2037870gJlDNv','14548600AuyQZv','24vShnFH','ck-reset_all-excluded','element','2690824AIjKnb','1759060ogwiaJ','1132545FOcPcZ','952049Lndpop','uc-light','ck-uploadcare-theme','5688ieQiob','4OEWXGX','setTemplate','getFocusableElement','uc-file-uploader-inline','354PsYZog','focus','uploader-','ck-uploadcare-form'];_0x5de4=function(){return _0x567635;};return _0x5de4();}var _0x58bb72=_0x571b;(function(_0x4c5cf1,_0x178bd1){var _0x109b47=_0x571b,_0x370ac2=_0x4c5cf1();while(!![]){try{var _0x4dda20=-parseInt(_0x109b47(0xa9))/0x1*(-parseInt(_0x109b47(0x99))/0x2)+parseInt(_0x109b47(0xa5))/0x3*(-parseInt(_0x109b47(0xaa))/0x4)+parseInt(_0x109b47(0xa4))/0x5+-parseInt(_0x109b47(0xa0))/0x6*(-parseInt(_0x109b47(0xa6))/0x7)+parseInt(_0x109b47(0xa3))/0x8+parseInt(_0x109b47(0x9e))/0x9+-parseInt(_0x109b47(0x9f))/0xa;if(_0x4dda20===_0x178bd1)break;else _0x370ac2['push'](_0x370ac2['shift']());}catch(_0x47b1a2){_0x370ac2['push'](_0x370ac2['shift']());}}}(_0x5de4,0x9a8c0));function _0x571b(_0x5b9a9e,_0x1a57b0){var _0x5de4ac=_0x5de4();return _0x571b=function(_0x571b33,_0x5c0f9d){_0x571b33=_0x571b33-0x98;var _0x11af0a=_0x5de4ac[_0x571b33];return _0x11af0a;},_0x571b(_0x5b9a9e,_0x1a57b0);}import{DialogFocusManagerView as _0x188106}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x188106{constructor(_0x5501d5,_0x3b7933){var _0x2a62c5=_0x571b;super(_0x5501d5),this[_0x2a62c5(0xab)]({'tag':_0x2a62c5(0x9d),'attributes':{'class':['ck',_0x2a62c5(0xa1),_0x2a62c5(0x9c)],'tabindex':'-1'},'children':[{'tag':_0x2a62c5(0x98),'attributes':{'class':[_0x2a62c5(0xa7),_0x2a62c5(0xa8)],'ctx-name':_0x2a62c5(0x9b)+_0x3b7933}},this[_0x2a62c5(0xac)]()]});}[_0x58bb72(0x9a)](){var _0x35aada=_0x58bb72;this[_0x35aada(0xa2)][_0x35aada(0x9a)]();}}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
1
|
/**
|
|
6
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -10,7 +6,7 @@
|
|
|
10
6
|
* @module uploadcare/uploadcare
|
|
11
7
|
* @publicApi
|
|
12
8
|
*/
|
|
13
|
-
import { Plugin, type Editor } from '
|
|
9
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
14
10
|
import { UploadcareUI } from './uploadcareui.js';
|
|
15
11
|
import { UploadcareEditing } from './uploadcareediting.js';
|
|
16
12
|
import * as UC from '@uploadcare/file-uploader';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x33d9e3=_0x24f8;(function(_0x43ae38,_0x372523){const _0x53a76e=_0x24f8,_0x2401a4=_0x43ae38();while(!![]){try{const _0x13bafd=-parseInt(_0x53a76e(0x1ef))/0x1*(-parseInt(_0x53a76e(0x1f9))/0x2)+-parseInt(_0x53a76e(0x200))/0x3+-parseInt(_0x53a76e(0x1eb))/0x4*(-parseInt(_0x53a76e(0x1ec))/0x5)+parseInt(_0x53a76e(0x203))/0x6*(-parseInt(_0x53a76e(0x1f5))/0x7)+-parseInt(_0x53a76e(0x1ff))/0x8+-parseInt(_0x53a76e(0x1f2))/0x9+-parseInt(_0x53a76e(0x1fa))/0xa*(-parseInt(_0x53a76e(0x1f0))/0xb);if(_0x13bafd===_0x372523)break;else _0x2401a4['push'](_0x2401a4['shift']());}catch(_0x4731c6){_0x2401a4['push'](_0x2401a4['shift']());}}}(_0x18d4,0xcde0f));import{Plugin as _0x2321e6}from'ckeditor5/src/core.js';import{UploadcareUI as _0x3c0429}from'./uploadcareui.js';function _0x24f8(_0x320c02,_0x134c74){const _0x18d4cf=_0x18d4();return _0x24f8=function(_0x24f873,_0x1c7eff){_0x24f873=_0x24f873-0x1e8;let _0x1021ab=_0x18d4cf[_0x24f873];return _0x1021ab;},_0x24f8(_0x320c02,_0x134c74);}function _0x18d4(){const _0x402c70=['_defineLocale','9840104QjxwSX','4159023ISEvpx','defineLocale','define','6jSrbGu','URL','uploadcare.uploader.sourceList','Local','editor','299628BkUPgk','10Fogmlx','defineComponents','get','6DHFaOy','22EFLkEa','uploadcare.locale','14058144mPfYQW','config','Uploadcare','7273567vhvfoi','isPremiumPlugin','contentLanguage','isOfficialPlugin','2098YZxCBi','29523110aXpsjN','requires','pluginName','locale'];_0x18d4=function(){return _0x402c70;};return _0x18d4();}import{UploadcareEditing as _0x117565}from'./uploadcareediting.js';import{UploadcareSource as _0x40868b}from'./uploadcareconfig.js';import*as _0x4a028d from'@uploadcare/file-uploader';export class Uploadcare extends _0x2321e6{static get[_0x33d9e3(0x1fb)](){return[_0x117565,_0x3c0429];}static get[_0x33d9e3(0x1fc)](){const _0x47b315=_0x33d9e3;return _0x47b315(0x1f4);}static get[_0x33d9e3(0x1f8)](){return!0x0;}static get[_0x33d9e3(0x1f6)](){return!0x0;}constructor(_0x520ee8){const _0x8b64cc=_0x33d9e3;super(_0x520ee8),_0x520ee8[_0x8b64cc(0x1f3)][_0x8b64cc(0x202)](_0x8b64cc(0x1e8),[_0x40868b[_0x8b64cc(0x1e9)],_0x40868b[_0x8b64cc(0x204)]]),_0x4a028d[_0x8b64cc(0x1ed)](_0x4a028d),this[_0x8b64cc(0x1fe)]();}[_0x33d9e3(0x1fe)](){const _0x4c1911=_0x33d9e3,_0x120927=this[_0x4c1911(0x1ea)][_0x4c1911(0x1f3)][_0x4c1911(0x1ee)](_0x4c1911(0x1f1)),_0xc27363=this[_0x4c1911(0x1ea)][_0x4c1911(0x1fd)][_0x4c1911(0x1f7)];_0x120927&&_0x4a028d[_0x4c1911(0x201)](_0xc27363,_0x120927);}}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
1
|
/**
|
|
6
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -10,8 +6,8 @@
|
|
|
10
6
|
* @module uploadcare/uploadcarecommand
|
|
11
7
|
* @publicApi
|
|
12
8
|
*/
|
|
13
|
-
import { Command, type Editor } from '
|
|
14
|
-
import { Dialog } from '
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
15
11
|
import { UploadcareEditing } from './uploadcareediting.js';
|
|
16
12
|
import type { UploadcareSource } from './uploadcareconfig.js';
|
|
17
13
|
/**
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
var _0x2ba333=_0x1e6a;(function(_0x1abd81,_0x537f44){var _0x52d419=_0x1e6a,_0x42b133=_0x1abd81();while(!![]){try{var _0xae398d=-parseInt(_0x52d419(0xdf))/0x1+parseInt(_0x52d419(0xd4))/0x2*(-parseInt(_0x52d419(0xdc))/0x3)+-parseInt(_0x52d419(0xda))/0x4*(-parseInt(_0x52d419(0xca))/0x5)+-parseInt(_0x52d419(0xd3))/0x6*(-parseInt(_0x52d419(0xd8))/0x7)+parseInt(_0x52d419(0xdb))/0x8*(-parseInt(_0x52d419(0xe2))/0x9)+-parseInt(_0x52d419(0xe0))/0xa*(parseInt(_0x52d419(0xdd))/0xb)+parseInt(_0x52d419(0xd2))/0xc*(parseInt(_0x52d419(0xd1))/0xd);if(_0xae398d===_0x537f44)break;else _0x42b133['push'](_0x42b133['shift']());}catch(_0x3a375f){_0x42b133['push'](_0x42b133['shift']());}}}(_0x40be,0xed1bf));import{Command as _0x2748e8}from'ckeditor5/src/core.js';function _0x40be(){var _0x55fc70=['_checkEnabled','_controller','requires','plugins','3341LvSSSd','275532SVAIuJ','72qlQeMk','20tteyOP','isEnabled','refresh','get','80843bRtRqN','commands','1662432AqVfgv','104tZWbpV','128667oLeYaq','11rfolSZ','execute','1917592XUaWrZ','18787910SEvZOz','_editing','1159137EVbyyT','editor','10TWuAiz','destroy','insertImage'];_0x40be=function(){return _0x55fc70;};return _0x40be();}import{Dialog as _0x2dbdbf}from'ckeditor5/src/ui.js';function _0x1e6a(_0x17c942,_0x1b2909){var _0x40beb0=_0x40be();return _0x1e6a=function(_0x1e6a35,_0x22db38){_0x1e6a35=_0x1e6a35-0xc9;var _0x2ccfa2=_0x40beb0[_0x1e6a35];return _0x2ccfa2;},_0x1e6a(_0x17c942,_0x1b2909);}import{UploadcareEditing as _0x4fd98f}from'./uploadcareediting.js';import{UploadcareController as _0x3ef7df}from'./ui/uploadcarecontroller.js';export class UploadcareCommand extends _0x2748e8{[_0x2ba333(0xe1)];[_0x2ba333(0xce)]=null;static get[_0x2ba333(0xcf)](){return[_0x2dbdbf,_0x4fd98f];}constructor(_0x556eb6){var _0x4270bd=_0x2ba333;super(_0x556eb6),this[_0x4270bd(0xe1)]=_0x556eb6[_0x4270bd(0xd0)][_0x4270bd(0xd7)](_0x4fd98f);}[_0x2ba333(0xd6)](){var _0xeea8c6=_0x2ba333;this[_0xeea8c6(0xd5)]=this[_0xeea8c6(0xcd)]();}[_0x2ba333(0xde)](_0x4e265c){var _0x204f21=_0x2ba333;this[_0x204f21(0xce)]&&(this[_0x204f21(0xce)][_0x204f21(0xcb)](),this[_0x204f21(0xce)]=null),this[_0x204f21(0xce)]=new _0x3ef7df(this[_0x204f21(0xc9)],this[_0x204f21(0xe1)],_0x4e265c);}[_0x2ba333(0xcd)](){var _0x22f1ed=_0x2ba333;return this[_0x22f1ed(0xc9)][_0x22f1ed(0xd9)][_0x22f1ed(0xd7)](_0x22f1ed(0xcc))[_0x22f1ed(0xd5)];}}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
1
|
/**
|
|
6
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -10,7 +6,7 @@
|
|
|
10
6
|
* @module uploadcare/uploadcareconfig
|
|
11
7
|
* @publicApi
|
|
12
8
|
*/
|
|
13
|
-
import type { ArrayOrItem } from '
|
|
9
|
+
import type { ArrayOrItem } from 'ckeditor5/src/utils.js';
|
|
14
10
|
import type { ConfigType } from '@uploadcare/file-uploader';
|
|
15
11
|
/**
|
|
16
12
|
* Locale definition type matching Uploadcare `LocaleDefinition` type.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(function(_0x4bc355,_0x1c81fb){var _0x1ec82f=_0x4e30,_0x58a4a0=_0x4bc355();while(!![]){try{var _0x5f445a=-parseInt(_0x1ec82f(0xb5))/0x1+-parseInt(_0x1ec82f(0xb9))/0x2*(parseInt(_0x1ec82f(0xb0))/0x3)+-parseInt(_0x1ec82f(0xa9))/0x4*(-parseInt(_0x1ec82f(0xbc))/0x5)+parseInt(_0x1ec82f(0xa8))/0x6+parseInt(_0x1ec82f(0xac))/0x7+-parseInt(_0x1ec82f(0xb2))/0x8+-parseInt(_0x1ec82f(0xbe))/0x9;if(_0x5f445a===_0x1c81fb)break;else _0x58a4a0['push'](_0x58a4a0['shift']());}catch(_0x1045e1){_0x58a4a0['push'](_0x58a4a0['shift']());}}}(_0x516f,0xf0538));export var UploadcareSource;function _0x516f(){var _0x4b93f1=['gdrive','3029400PpKLpG','10807212dtvECD','12dfLafL','onedrive','gphotos','13158607LRZDys','Local','facebook','GPhotos','1635099HVEslC','Dropbox','744544VWMqFF','local','URL','997047eXspJW','Facebook','url','GDrive','6DQPOCD','dropbox','OneDrive','608645JHPiWF'];_0x516f=function(){return _0x4b93f1;};return _0x516f();}function _0x4e30(_0x5c5154,_0x3812f4){var _0x516f46=_0x516f();return _0x4e30=function(_0x4e3012,_0x485d8f){_0x4e3012=_0x4e3012-0xa8;var _0xe7e6f4=_0x516f46[_0x4e3012];return _0xe7e6f4;},_0x4e30(_0x5c5154,_0x3812f4);}!function(_0x42a914){var _0x24a081=_0x4e30;_0x42a914[_0x24a081(0xad)]=_0x24a081(0xb3),_0x42a914[_0x24a081(0xb4)]=_0x24a081(0xb7),_0x42a914[_0x24a081(0xb1)]=_0x24a081(0xba),_0x42a914[_0x24a081(0xb8)]=_0x24a081(0xbd),_0x42a914[_0x24a081(0xb6)]=_0x24a081(0xae),_0x42a914[_0x24a081(0xaf)]=_0x24a081(0xab),_0x42a914[_0x24a081(0xbb)]=_0x24a081(0xaa);}(UploadcareSource||(UploadcareSource={}));
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
1
|
/**
|
|
6
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -10,8 +6,8 @@
|
|
|
10
6
|
* @module uploadcare/uploadcareediting
|
|
11
7
|
* @publicApi
|
|
12
8
|
*/
|
|
13
|
-
import { Plugin, type Editor } from '
|
|
14
|
-
import { Dialog } from '
|
|
9
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
15
11
|
import { UploadcareUploadAdapter } from './uploadcareuploadadapter.js';
|
|
16
12
|
import type { UploaderBlock } from '@uploadcare/file-uploader';
|
|
17
13
|
/**
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x74c410=_0x5052;(function(_0x2f4d7a,_0x199b00){const _0x1312eb=_0x5052,_0x1d36a2=_0x2f4d7a();while(!![]){try{const _0x312458=-parseInt(_0x1312eb(0x1ed))/0x1*(parseInt(_0x1312eb(0x1ec))/0x2)+parseInt(_0x1312eb(0x1de))/0x3+parseInt(_0x1312eb(0x215))/0x4+-parseInt(_0x1312eb(0x1f4))/0x5+-parseInt(_0x1312eb(0x21b))/0x6*(parseInt(_0x1312eb(0x212))/0x7)+parseInt(_0x1312eb(0x20d))/0x8+-parseInt(_0x1312eb(0x202))/0x9*(-parseInt(_0x1312eb(0x221))/0xa);if(_0x312458===_0x199b00)break;else _0x1d36a2['push'](_0x1d36a2['shift']());}catch(_0x2748ee){_0x1d36a2['push'](_0x1d36a2['shift']());}}}(_0x2188,0x67975));import{Plugin as _0x8a7c83}from'ckeditor5/src/core.js';import{Dialog as _0x198477}from'ckeditor5/src/ui.js';import{createElement as _0x840eea,global as _0x1b4f4b,uid as _0x4eddcf}from'ckeditor5/src/utils.js';function _0x2188(){const _0x41d75f=['\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','body','appendChild','_initCtx','getAttribute','_initConversion','execute','for','ctxElement','206qPGJZw','177MsViLf','model','isOfficialPlugin','uploadcareImageReplace','uploader-','iconHrefResolver','remove','4188400DWKbMB','extend','fromCharCode','contentLanguage','_initSchema','listenTo','cleanupImage','_initImageProcessingIndicator','querySelector','uc-config','editor','once','editing','getSelectedElement','9rkLqzx','PictureEditing','conversion','elementToAttribute','uc-upload-ctx-provider','closeMax','init','attributeToAttribute','UploadcareEditing','upcast','isRegistered','2386016dfODCv','locale','imageInline','map','replaceImageSource','261009BsaNlt','pluginName','_initConfig','1389944gsCXYe','_configElement','config','removeAttribute','true','add','114TOToKL','schema','render','_ctxElement','requires','uploadcare','12248130slKytL','#uc-icon-arrow-down','uploadcare.uploader','imageBlock','data-uc-image-id','document','insertImage','afterInit','join','commands','destroy','view','ucContextId','downcast','uploadcare.pubkey','href','isPremiumPlugin','uploadcareImageId','354366CQZvkV','input[uploadcare-file-input]','get','configElement','selection'];_0x2188=function(){return _0x41d75f;};return _0x2188();}import{UploadcareCommand as _0x36c666}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5c6f13}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x509b29}from'./utils/editingutils.js';function _0x5052(_0x4cb4c3,_0x59b5a9){const _0x218850=_0x2188();return _0x5052=function(_0x505295,_0x16ed7b){_0x505295=_0x505295-0x1d4;let _0x31ff05=_0x218850[_0x505295];return _0x31ff05;},_0x5052(_0x4cb4c3,_0x59b5a9);}export class UploadcareEditing extends _0x8a7c83{[_0x74c410(0x216)]=null;[_0x74c410(0x21e)]=null;static get[_0x74c410(0x213)](){const _0x5adbbe=_0x74c410;return _0x5adbbe(0x20a);}static get[_0x74c410(0x21f)](){const _0x436098=_0x74c410;return[_0x436098(0x203),_0x5c6f13,_0x198477];}static get[_0x74c410(0x1ef)](){return!0x0;}static get[_0x74c410(0x1dc)](){return!0x0;}[_0x74c410(0x1d8)];get[_0x74c410(0x1e1)](){const _0xe15358=_0x74c410;return this[_0xe15358(0x216)];}get[_0x74c410(0x1eb)](){const _0x75c9a6=_0x74c410;return this[_0x75c9a6(0x21e)];}constructor(_0x2f8a81){const _0x53cea1=_0x74c410;super(_0x2f8a81),this[_0x53cea1(0x1d8)]=_0x4eddcf();}[_0x74c410(0x208)](){const _0x37d481=_0x74c410,_0x265e83=this[_0x37d481(0x1fe)];_0x265e83[_0x37d481(0x1d5)][_0x37d481(0x21a)](_0x37d481(0x220),new _0x36c666(_0x265e83));}[_0x74c410(0x228)](){const _0x370550=_0x74c410;this[_0x370550(0x1f8)](),this[_0x370550(0x1e8)](),this[_0x370550(0x214)](),this[_0x370550(0x1e6)](),this[_0x370550(0x1fb)](),this[_0x370550(0x1f9)](this[_0x370550(0x1fe)],_0x370550(0x1d6),()=>{const _0x59c3e0=_0x370550;this[_0x59c3e0(0x216)]&&(this[_0x59c3e0(0x216)][_0x59c3e0(0x1f3)](),this[_0x59c3e0(0x216)]=null),this[_0x59c3e0(0x21e)]&&(this[_0x59c3e0(0x21e)][_0x59c3e0(0x1f3)](),this[_0x59c3e0(0x21e)]=null);const _0x9ff9fe=_0x1b4f4b[_0x59c3e0(0x226)][_0x59c3e0(0x1fc)](_0x59c3e0(0x1df));_0x9ff9fe&&_0x9ff9fe[_0x59c3e0(0x1f3)]();}),async function(_0x1f0d68){const _0x540aff=_0x4609e4([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x478fa8=0x535f8c3a,_0x3c4463=0x5358f21a^_0x478fa8,_0x263d90=window[_0x4609e4([0x44,0x61,0x74,0x65])][_0x4609e4([0x6e,0x6f,0x77])](),_0x5caa5e=_0x1f0d68[_0x4609e4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4653fd=new window[(_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e3476=>{_0x5caa5e[_0x4609e4([0x6f,0x6e,0x63,0x65])](_0x4609e4([0x72,0x65,0x61,0x64,0x79]),_0x1e3476);}),_0x10710d={[_0x4609e4([0x6b,0x74,0x79])]:_0x4609e4([0x45,0x43]),[_0x4609e4([0x75,0x73,0x65])]:_0x4609e4([0x73,0x69,0x67]),[_0x4609e4([0x63,0x72,0x76])]:_0x4609e4([0x50,0x2d,0x32,0x35,0x36]),[_0x4609e4([0x78])]:_0x4609e4([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]),[_0x4609e4([0x79])]:_0x4609e4([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]),[_0x4609e4([0x61,0x6c,0x67])]:_0x4609e4([0x45,0x53,0x32,0x35,0x36])},_0x227b39=_0x5caa5e[_0x4609e4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4609e4([0x67,0x65,0x74])](_0x4609e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8f0904(){let _0x386512,_0x3c2424=null,_0x2a52bf=null;try{if(_0x227b39==_0x4609e4([0x47,0x50,0x4c]))return _0x4609e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x386512=_0x3906a0(),!_0x386512)return _0x4609e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x386512[_0x4609e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a52bf=_0x355039(_0x386512[_0x4609e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x386512[_0x4609e4([0x6a,0x74,0x69])])),await _0x240ec5()?_0x45bf9b()?_0x143e31()?_0x4609e4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x54160a()?(_0x386512[_0x4609e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4609e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3c2424=_0x393b21(_0x4609e4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x386512[_0x4609e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4609e4([0x74,0x72,0x69,0x61,0x6c])&&(_0x3c2424=_0x393b21(_0x4609e4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1db0ac()):_0x4609e4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4609e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4609e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4609e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x143e31(){const _0x3639a9=[_0x4609e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4609e4([0x74,0x72,0x69,0x61,0x6c])][_0x4609e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x386512[_0x4609e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x263d90/0x3e8:0xe10*_0x3c4463;return _0x386512[_0x4609e4([0x65,0x78,0x70])]<_0x3639a9;}function _0x45bf9b(){const _0x10ae45=_0x386512[_0x4609e4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x10ae45&&(!!_0x10ae45[_0x4609e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4609e4([0x2a]))||!!_0x10ae45[_0x4609e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4609e4([0x55,0x50,0x4c,0x43])));}function _0x54160a(){const _0x21a817=_0x5052,_0x4ea13c=_0x386512[_0x4609e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ea13c||0x0==_0x4ea13c[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58badf}=new URL(window[_0x4609e4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x21a817(0x1db)]);if(_0x4ea13c[_0x4609e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58badf))return!0x0;const _0x170de0=_0x58badf[_0x4609e4([0x73,0x70,0x6c,0x69,0x74])](_0x4609e4([0x2e]));return _0x4ea13c[_0x4609e4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x137d3a=>_0x137d3a[_0x4609e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4609e4([0x2a])))[_0x4609e4([0x6d,0x61,0x70])](_0x763328=>_0x763328[_0x4609e4([0x73,0x70,0x6c,0x69,0x74])](_0x4609e4([0x2e])))[_0x4609e4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a25ed=>_0x1a25ed[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x170de0[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4609e4([0x6d,0x61,0x70])](_0x5708d9=>Array(_0x170de0[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5708d9[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4609e4([0x66,0x69,0x6c,0x6c])](_0x5708d9[0x0]===_0x4609e4([0x2a])?_0x4609e4([0x2a]):'')[_0x4609e4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5708d9))[_0x4609e4([0x73,0x6f,0x6d,0x65])](_0x597ed2=>_0x170de0[_0x4609e4([0x65,0x76,0x65,0x72,0x79])]((_0x419733,_0x26b13e)=>_0x597ed2[_0x26b13e]===_0x419733||_0x597ed2[_0x26b13e]===_0x4609e4([0x2a])));}function _0x1db0ac(){return _0x3c2424&&_0x2a52bf?new window[(_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e01c1,_0x4fbafb)=>{_0x3c2424[_0x4609e4([0x74,0x68,0x65,0x6e])](_0x4e01c1,_0x4fbafb),_0x2a52bf[_0x4609e4([0x74,0x68,0x65,0x6e])](_0x431f67=>{_0x431f67!=_0x4609e4([0x56,0x61,0x6c,0x69,0x64])&&_0x4e01c1(_0x431f67);},_0x4fbafb);}):_0x3c2424||_0x2a52bf||_0x4609e4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x355039(_0x505c85,_0x3fabd0){return new window[(_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18184f=>{if(_0x1b3381())return _0x18184f(_0x4609e4([0x56,0x61,0x6c,0x69,0x64]));_0xec57bd(),_0x5caa5e[_0x4609e4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4609e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x26d3bc=!0x1;const _0x434409=_0x4eddcf();function _0x4fff5f(_0x2974f9){return!!_0x2974f9&&(typeof _0x2974f9===_0x4609e4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2974f9===_0x4609e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2974f9[_0x4609e4([0x74,0x68,0x65,0x6e])]===_0x4609e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2974f9[_0x4609e4([0x63,0x61,0x74,0x63,0x68])]===_0x4609e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4a2777(_0x318967){_0x22e93f(_0x318967)[_0x4609e4([0x74,0x68,0x65,0x6e])](_0x2f5185=>{if(!_0x2f5185||_0x2f5185[_0x4609e4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4609e4([0x6f,0x6b]))return _0x4609e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b9a90(_0x34b939(_0x434409+_0x3fabd0))!=_0x2f5185[_0x4609e4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4609e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4609e4([0x56,0x61,0x6c,0x69,0x64]);})[_0x4609e4([0x74,0x68,0x65,0x6e])](_0x4d41a9=>(_0x33faf5(),_0x4d41a9),()=>{const _0x199eb4=_0x156fe9();return null==_0x199eb4?(_0x33faf5(),_0x4609e4([0x56,0x61,0x6c,0x69,0x64])):_0x4609e4(_0x263d90-_0x199eb4>(0x7753083a^_0x478fa8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4609e4([0x74,0x68,0x65,0x6e])](_0x18184f)[_0x4609e4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x18184f(_0x4609e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x22ccd5=0x536962ba^_0x478fa8;function _0x33faf5(){const _0x2ea674=_0x4609e4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b9a90(_0x34b939(_0x505c85)),_0x2392b0=_0x245c3f(_0x1b9a90(window[_0x4609e4([0x4d,0x61,0x74,0x68])][_0x4609e4([0x63,0x65,0x69,0x6c])](_0x263d90/_0x22ccd5)));window[_0x4609e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4609e4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ea674,_0x2392b0);}function _0x156fe9(){const _0x470e04=_0x4609e4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b9a90(_0x34b939(_0x505c85)),_0x52bf15=window[_0x4609e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4609e4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x470e04);return _0x52bf15?window[_0x4609e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x245c3f(_0x52bf15),0x10)*_0x22ccd5:null;}function _0x22e93f(_0x3445f5){return new window[(_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32972f,_0x53f7d8)=>{_0x3445f5[_0x4609e4([0x74,0x68,0x65,0x6e])](_0x32972f,_0x53f7d8),window[_0x4609e4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53f7d8,0x535e58fa^_0x478fa8);});}}_0x5caa5e[_0x4609e4([0x6f,0x6e])](_0x4609e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e6853,_0x36792d)=>{if(_0x36792d[0x0]!=_0x505c85)return _0x18184f(_0x4609e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36792d[0x1]={..._0x36792d[0x1],[_0x4609e4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x434409};},{[_0x4609e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4609e4([0x68,0x69,0x67,0x68])}),_0x5caa5e[_0x4609e4([0x6f,0x6e])](_0x4609e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4202d6=>{_0x4fff5f(_0x4202d6[_0x4609e4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x26d3bc=!0x0,_0x4a2777(_0x4202d6[_0x4609e4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4609e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4609e4([0x6c,0x6f,0x77])}),_0x4653fd[_0x4609e4([0x74,0x68,0x65,0x6e])](()=>{_0x26d3bc||_0x18184f(_0x4609e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b3381(){return _0x5caa5e[_0x4609e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4609e4([0x76,0x69,0x65,0x77])][_0x4609e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4609e4([0x61,0x75,0x74,0x6f]);}function _0xec57bd(){_0x5caa5e[_0x4609e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4609e4([0x76,0x69,0x65,0x77])][_0x4609e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4609e4([0x61,0x75,0x74,0x6f]);}}function _0x393b21(_0x39506f){const _0x17de54=[new window[(_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e4838=>setTimeout(_0x1e4838,0x5356b2f6^_0x478fa8)),_0x4653fd[_0x4609e4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5866f7=>{let _0x51c7e5=0x0;_0x5caa5e[_0x4609e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4609e4([0x6f,0x6e])](_0x4609e4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4aa38e,_0x86bd5a)=>{_0x86bd5a[0x0][_0x4609e4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x51c7e5++,_0x51c7e5==(0x535f89d2^_0x478fa8)&&(_0x5866f7(),_0x4aa38e[_0x4609e4([0x6f,0x66,0x66])]());});}))];return window[_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4609e4([0x72,0x61,0x63,0x65])](_0x17de54)[_0x4609e4([0x74,0x68,0x65,0x6e])](()=>_0x39506f);}async function _0x2fe959(){await _0x4653fd,_0x5caa5e[_0x4609e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4609e4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5689a2,_0x5caa5e[_0x4609e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4609e4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5689a2,_0x5caa5e[_0x4609e4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4609e4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19d9d2(_0x163c8f){const _0x1a3eb4=_0x217fbe();_0x5caa5e[_0x1a3eb4]=_0x4609e4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x163c8f,_0x163c8f!=_0x4609e4([0x56,0x61,0x6c,0x69,0x64])&&_0x2fe959();}function _0x217fbe(){const _0x5f0799=window[_0x4609e4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4609e4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4609e4([0x6e,0x6f,0x77])]())[_0x4609e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4609e4([0x2e]),'');let _0x234de8=_0x4609e4([0x68]);for(let _0x5d3190=0x0;_0x5d3190<_0x5f0799[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d3190+=0x2){let _0x14acb1=window[_0x4609e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f0799[_0x4609e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d3190,_0x5d3190+0x2));_0x14acb1>=_0x540aff[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14acb1-=_0x540aff[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x234de8+=_0x540aff[_0x14acb1];}return _0x234de8;}function _0x3906a0(){const _0x114e88=_0x227b39[_0x4609e4([0x73,0x70,0x6c,0x69,0x74])](_0x4609e4([0x2e]));if(0x3!=_0x114e88[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2cee32(_0x114e88[0x1]);function _0x2cee32(_0x24feaa){const _0x4ab6fe=_0x4fa41a(_0x24feaa);return _0x4ab6fe&&_0x116fa6()?_0x4ab6fe:null;function _0x116fa6(){const _0x5cb300=_0x4ab6fe[_0x4609e4([0x6a,0x74,0x69])],_0x1e2f3d=window[_0x4609e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cb300[_0x4609e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cb300[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5c72ae={..._0x4ab6fe,[_0x4609e4([0x6a,0x74,0x69])]:_0x5cb300[_0x4609e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5cb300[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5c72ae[_0x4609e4([0x76,0x63])],_0x34b939(_0x5c72ae)==_0x1e2f3d;}}}async function _0x240ec5(){let _0x2d0c09=!0x0;try{const _0x3883ea=_0x227b39[_0x4609e4([0x73,0x70,0x6c,0x69,0x74])](_0x4609e4([0x2e])),[_0x3501c5,_0x4070d8,_0x26a460]=_0x3883ea;return _0x283123(_0x3501c5),await _0x26cff4(_0x3501c5,_0x4070d8,_0x26a460),_0x2d0c09;}catch{return!0x1;}function _0x283123(_0x416e51){const _0x5ac813=_0x4fa41a(_0x416e51);_0x5ac813&&_0x5ac813[_0x4609e4([0x61,0x6c,0x67])]==_0x4609e4([0x45,0x53,0x32,0x35,0x36])||(_0x2d0c09=!0x1);}async function _0x26cff4(_0x166069,_0x1f20af,_0x22b586){const _0x2f83dc=window[_0x4609e4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4609e4([0x66,0x72,0x6f,0x6d])](_0x5a458a(_0x22b586),_0x14d54f=>_0x14d54f[_0x4609e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x267d8f=new window[(_0x4609e4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4609e4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x166069+_0x4609e4([0x2e])+_0x1f20af),_0x1fd0f5=window[_0x4609e4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4609e4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1fd0f5)return;const _0x8e67f7=await _0x1fd0f5[_0x4609e4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4609e4([0x6a,0x77,0x6b]),_0x10710d,{[_0x4609e4([0x6e,0x61,0x6d,0x65])]:_0x4609e4([0x45,0x43,0x44,0x53,0x41]),[_0x4609e4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4609e4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4609e4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1fd0f5[_0x4609e4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4609e4([0x6e,0x61,0x6d,0x65])]:_0x4609e4([0x45,0x43,0x44,0x53,0x41]),[_0x4609e4([0x68,0x61,0x73,0x68])]:{[_0x4609e4([0x6e,0x61,0x6d,0x65])]:_0x4609e4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x8e67f7,_0x2f83dc,_0x267d8f)||(_0x2d0c09=!0x1);}}function _0x4fa41a(_0x2adaf0){return _0x2adaf0[_0x4609e4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4609e4([0x65,0x79]))?JSON[_0x4609e4([0x70,0x61,0x72,0x73,0x65])](_0x5a458a(_0x2adaf0)):null;}function _0x5a458a(_0x4d7cf7){return window[_0x4609e4([0x61,0x74,0x6f,0x62])](_0x4d7cf7[_0x4609e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4609e4([0x2b]))[_0x4609e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4609e4([0x2f])));}function _0x34b939(_0x259b7e){let _0x7672b0=0x1505;function _0x1e7227(_0x42972e){for(let _0x107a62=0x0;_0x107a62<_0x42972e[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x107a62++){const _0x287ced=_0x42972e[_0x4609e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x107a62);_0x7672b0=(_0x7672b0<<0x5)+_0x7672b0+_0x287ced,_0x7672b0&=_0x7672b0;}}function _0xe79984(_0x410d8d){Array[_0x4609e4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x410d8d)?_0x410d8d[_0x4609e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xe79984):_0x410d8d&&typeof _0x410d8d==_0x4609e4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4609e4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x410d8d)[_0x4609e4([0x73,0x6f,0x72,0x74])]()[_0x4609e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x510566,_0x110a99])=>{_0x1e7227(_0x510566),_0xe79984(_0x110a99);}):_0x1e7227(window[_0x4609e4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x410d8d));}return _0xe79984(_0x259b7e),_0x7672b0>>>0x0;}function _0x1b9a90(_0x16b019){return _0x16b019[_0x4609e4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4609e4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4609e4([0x30]));}function _0x245c3f(_0x33eb50){return _0x33eb50[_0x4609e4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4609e4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4609e4([0x6a,0x6f,0x69,0x6e])]('');}function _0x5689a2(){}function _0x4609e4(_0x55a1c6){const _0x3ef467=_0x5052;return _0x55a1c6[_0x3ef467(0x210)](_0x371ae2=>String[_0x3ef467(0x1f6)](_0x371ae2))[_0x3ef467(0x1d4)]('');}_0x19d9d2(await _0x8f0904());}(this);}[_0x74c410(0x1f8)](){const _0x4f1e74=_0x74c410,_0xbff8af=this[_0x4f1e74(0x1fe)][_0x4f1e74(0x1ee)][_0x4f1e74(0x21c)];_0xbff8af[_0x4f1e74(0x20c)](_0x4f1e74(0x224))&&_0xbff8af[_0x4f1e74(0x1f5)](_0x4f1e74(0x224),{'allowAttributes':[_0x4f1e74(0x1dd)]}),_0xbff8af[_0x4f1e74(0x20c)](_0x4f1e74(0x20f))&&_0xbff8af[_0x4f1e74(0x1f5)](_0x4f1e74(0x20f),{'allowAttributes':[_0x4f1e74(0x1dd)]});}[_0x74c410(0x1e8)](){const _0x4b1d22=_0x74c410,_0x1d0d87=this[_0x4b1d22(0x1fe)];_0x1d0d87[_0x4b1d22(0x204)][_0x4b1d22(0x1ea)](_0x4b1d22(0x1d9))[_0x4b1d22(0x209)]({'model':_0x4b1d22(0x1dd),'view':_0x4b1d22(0x225)}),_0x1d0d87[_0x4b1d22(0x204)][_0x4b1d22(0x1ea)](_0x4b1d22(0x20b))[_0x4b1d22(0x205)]({'model':{'key':_0x4b1d22(0x1dd),'value':_0x382e5f=>_0x382e5f[_0x4b1d22(0x1e7)](_0x4b1d22(0x225))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x445e92=_0x1d0d87[_0x4b1d22(0x1d5)][_0x4b1d22(0x1e0)](_0x4b1d22(0x211));_0x445e92&&this[_0x4b1d22(0x1f9)](_0x445e92,_0x4b1d22(0x1fa),(_0x1d2635,[_0x4e178e,_0x2b73e0])=>{const _0x336f59=_0x4b1d22;_0x4e178e[_0x336f59(0x218)](_0x336f59(0x1dd),_0x2b73e0);});}[_0x74c410(0x214)](){const _0x29437d=_0x74c410,_0x341fcd=this[_0x29437d(0x1fe)][_0x29437d(0x217)][_0x29437d(0x1e0)](_0x29437d(0x223))||{},_0x5818fd=this[_0x29437d(0x1fe)][_0x29437d(0x217)][_0x29437d(0x1e0)](_0x29437d(0x1da))||'';this[_0x29437d(0x216)]=_0x840eea(_0x1b4f4b[_0x29437d(0x226)],_0x29437d(0x1fd),{..._0x341fcd,'pubkey':_0x5818fd,'ctx-name':_0x29437d(0x1f1)+this[_0x29437d(0x1d8)],'sourceList':'','imgOnly':_0x29437d(0x219),'removeCopyright':_0x29437d(0x219),'localeName':this[_0x29437d(0x1fe)][_0x29437d(0x20e)][_0x29437d(0x1f7)],'externalSourcesEmbedCss':_0x29437d(0x1e3)}),this[_0x29437d(0x216)][_0x29437d(0x1f2)]=_0x298bd1=>{const _0xacafd0=_0x29437d;if(_0xacafd0(0x207)==_0x298bd1)return _0xacafd0(0x222);},_0x1b4f4b[_0x29437d(0x226)][_0x29437d(0x1e4)][_0x29437d(0x1e5)](this[_0x29437d(0x216)]);}[_0x74c410(0x1e6)](){const _0x591409=_0x74c410;this[_0x591409(0x21e)]=_0x840eea(_0x1b4f4b[_0x591409(0x226)],_0x591409(0x206),{'ctx-name':_0x591409(0x1f1)+this[_0x591409(0x1d8)]}),_0x1b4f4b[_0x591409(0x226)][_0x591409(0x1e4)][_0x591409(0x1e5)](this[_0x591409(0x21e)]);}[_0x74c410(0x1fb)](){const _0x7dee32=_0x74c410,_0x514cff=this[_0x7dee32(0x1fe)][_0x7dee32(0x1d5)][_0x7dee32(0x1e0)](_0x7dee32(0x227));_0x514cff&&this[_0x7dee32(0x1f9)](_0x514cff,_0x7dee32(0x1e9),()=>{const _0x109f72=_0x7dee32,_0x16c12e=this[_0x109f72(0x1fe)][_0x109f72(0x1ee)][_0x109f72(0x226)][_0x109f72(0x1e2)][_0x109f72(0x201)]();_0x16c12e&&_0x16c12e[_0x109f72(0x1e7)](_0x109f72(0x1dd))&&this[_0x109f72(0x1fe)][_0x109f72(0x200)][_0x109f72(0x1d7)][_0x109f72(0x1ff)](_0x109f72(0x21d),()=>{const _0x1869f9=_0x109f72;_0x509b29(this[_0x1869f9(0x1fe)],_0x16c12e);});});const _0x524a77=this[_0x7dee32(0x1fe)][_0x7dee32(0x1d5)][_0x7dee32(0x1e0)](_0x7dee32(0x1f0));_0x524a77&&this[_0x7dee32(0x1f9)](_0x524a77,_0x7dee32(0x1e9),()=>{const _0x50b358=_0x7dee32,_0x4cd3cb=this[_0x50b358(0x1fe)][_0x50b358(0x1ee)][_0x50b358(0x226)][_0x50b358(0x1e2)][_0x50b358(0x201)]();_0x4cd3cb&&_0x4cd3cb[_0x50b358(0x1e7)](_0x50b358(0x1dd))&&this[_0x50b358(0x1fe)][_0x50b358(0x200)][_0x50b358(0x1d7)][_0x50b358(0x1ff)](_0x50b358(0x21d),()=>{const _0x47c6af=_0x50b358;_0x509b29(this[_0x47c6af(0x1fe)],_0x4cd3cb);});});}}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
1
|
/**
|
|
6
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
4
|
*/
|
|
9
|
-
import { type Dialog } from '
|
|
10
|
-
import type { Editor } from '
|
|
11
|
-
import type { ModelElement } from '
|
|
5
|
+
import { type Dialog } from 'ckeditor5/src/ui.js';
|
|
6
|
+
import type { Editor } from 'ckeditor5/src/core.js';
|
|
7
|
+
import type { ModelElement } from 'ckeditor5/src/engine.js';
|
|
12
8
|
declare const UploadcareImageEditController_base: {
|
|
13
|
-
new (): import("
|
|
14
|
-
prototype: import("
|
|
9
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
10
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
15
11
|
};
|
|
16
12
|
/**
|
|
17
13
|
* Controller for the Image Edit Dialog.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
import{global as _0x1db50c,ObservableMixin as _0x45f95f}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3453e4}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x42fb45}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x2fade0}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x2bacf2}from'../../utils/uploadutils.js';import{getImageUrls as _0x835e86,getImageDimension as _0x3905f9}from'../../utils/editingutils.js';import{isAncestor as _0x5726c4}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x45f95f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x14944b,_0x36f6da,_0x1141fd){super(),this['_editor']=_0x14944b,this['_dialog']=_0x36f6da,this['_imageElement']=_0x1141fd,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 _0x135da8=this['_imageElement'],_0xbe52b5=_0x135da8['getAttribute']('uploadcareImageId'),_0x17856b=_0x135da8['getAttribute']('src');if(_0xbe52b5)await this['_loadImageInfo'](_0xbe52b5,_0x17856b);else{if(this['_imageCache']['has'](_0x17856b)){const _0x13062d=this['_imageCache']['get'](_0x17856b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13062d['url'],this['imageDimension']=_0x13062d['dimension'],this['imageId']=_0x13062d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x478d91}=this['_editor'],t=_0x478d91['t'],_0x2feca5=new _0x2fade0(_0x478d91,this['imageStatus'],this['_attributes']);_0x2feca5['bind']('status')['to'](this,'imageStatus'),_0x2feca5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2feca5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2feca5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2feca5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x42fb45,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2feca5,'position':_0x3453e4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2feca5['focus']();},'onHide':()=>{_0x2feca5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x187f28=>!_0x5726c4(_0x187f28,_0x2feca5['element'])}});}['_loadImageInfo'](_0x2ad621,_0x3c2ca1){return _0x2bacf2['getInfo'](_0x2ad621,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x175d0b=>{const {width:_0x1c61c3,height:_0x12eda1}=_0x175d0b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c2ca1,this['imageDimension']={'width':_0x1c61c3,'height':_0x12eda1},this['imageId']=_0x2ad621;})['catch'](_0x1bf04f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1bf04f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1f6d5b,_0x37ab11){return this['_getImageAsFile'](_0x1f6d5b)['then'](_0x326454=>_0x2bacf2['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x37ab11['signal'],'file':_0x326454,'onProgress':_0x14a087=>{_0x14a087&&_0x14a087['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x14a087['value']));}}))['then'](_0x205123=>{const {width:_0x557a8c,height:_0x3c1a4d}=_0x205123['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x205123['cdnUrl'],this['imageDimension']={'width':_0x557a8c,'height':_0x3c1a4d},this['imageId']=_0x205123['uuid'],this['imageUploadProgress']=null;const _0x231b0c=_0x1f6d5b['getAttribute']('src');this['_imageCache']['set'](_0x231b0c,{'id':_0x205123['uuid'],'url':_0x205123['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x79516f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x79516f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x58878c,_0x19437a){_0x58878c['on']('apply',(_0x516bd3,_0x1d027c)=>{this['_replaceImage'](_0x19437a,_0x1d027c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x58878c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x58878c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x560a5d,_0x4b4764,_0x258c70){const _0xd58617=this['_editor'],{width:_0x4092b5,height:_0x496e4b}=_0x3905f9(_0x4b4764,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x54e24e,imageSources:_0x8a9bf}=_0x835e86(_0x4b4764,_0x4092b5);_0xd58617['model']['change'](_0x9a5e06=>{if('$graveyard'===_0x560a5d['root']['rootName']){_0xd58617['execute']('insertImage',{'imageType':_0x560a5d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x560a5d['getAttributes']()),'uploadcareImageId':_0x258c70,'src':_0x54e24e,'sources':_0x8a9bf,'width':_0x4092b5,'height':_0x496e4b}});const _0x113f55=_0x560a5d['getChildren']();_0x560a5d=_0xd58617['model']['document']['selection']['getSelectedElement']();for(const _0x4c0865 of _0x113f55)_0x9a5e06['append'](_0x9a5e06['cloneElement'](_0x4c0865),_0x560a5d);}else _0x9a5e06['setSelection'](_0x560a5d,'on'),_0xd58617['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x560a5d['getAttributes']()),'uploadcareImageId':_0x258c70,'src':_0x54e24e,'sources':_0x8a9bf,'width':_0x4092b5,'height':_0x496e4b},_0x560a5d);_0x9a5e06['setSelection'](_0x560a5d,'on');});}async['_getImageAsFile'](_0x19e96c){const _0x1d4d72=_0x1db50c['window'],_0x21cdbc=_0x1db50c['document']['location']['href'],_0x1a8b08=new _0x1d4d72['URL'](_0x19e96c['getAttribute']('src'),_0x21cdbc);if('data:'===_0x1a8b08['protocol']){const _0x284023=_0x1a8b08['href']['split'](','),_0x545dab=_0x284023[0x0]['match'](/:(.*?);/)[0x1],_0x37031f=_0x545dab['split']('/')[0x1],_0x22d484=_0x1d4d72['atob'](_0x284023[_0x284023['length']-0x1]);let _0x781da0=_0x22d484['length'];const _0x3bf4ba=new _0x1d4d72['Uint8Array'](_0x781da0);for(;_0x781da0--;)_0x3bf4ba[_0x781da0]=_0x22d484['charCodeAt'](_0x781da0);return new _0x1d4d72['File']([_0x3bf4ba],'image.'+_0x37031f,{'type':_0x545dab});}const _0x3b7585=_0x1a8b08['href']['split']('/'),_0x58e0ec=_0x3b7585[_0x3b7585['length']-0x1],_0x5d2c4b=_0x58e0ec['split']('.')[0x1];return _0x1d4d72['fetch'](_0x1a8b08['href'])['then'](_0x597228=>_0x597228['clone']()['blob']())['then'](_0xd56608=>new _0x1d4d72['File']([_0xd56608],_0x58e0ec,{'type':'image/'+_0x5d2c4b}));}}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
1
|
/**
|
|
6
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -9,8 +5,8 @@
|
|
|
9
5
|
/**
|
|
10
6
|
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformeditingview
|
|
11
7
|
*/
|
|
12
|
-
import { type Locale } from '
|
|
13
|
-
import { View } from '
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
14
10
|
import type { UploadcareEditorConfig } from '../../uploadcareconfig.js';
|
|
15
11
|
/**
|
|
16
12
|
* A class representing the form editing view of the Uploadcare image edit feature.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(function(_0x14f874,_0x1f99a2){const _0x9e0f40=_0xa2e2,_0x35d46f=_0x14f874();while(!![]){try{const _0x5becbe=parseInt(_0x9e0f40(0xde))/0x1+parseInt(_0x9e0f40(0xdc))/0x2+parseInt(_0x9e0f40(0xd8))/0x3*(parseInt(_0x9e0f40(0xd5))/0x4)+parseInt(_0x9e0f40(0xd7))/0x5*(parseInt(_0x9e0f40(0xd2))/0x6)+-parseInt(_0x9e0f40(0xd3))/0x7*(-parseInt(_0x9e0f40(0xd1))/0x8)+parseInt(_0x9e0f40(0xdb))/0x9*(-parseInt(_0x9e0f40(0xe0))/0xa)+-parseInt(_0x9e0f40(0xdf))/0xb;if(_0x5becbe===_0x1f99a2)break;else _0x35d46f['push'](_0x35d46f['shift']());}catch(_0x5ca980){_0x35d46f['push'](_0x35d46f['shift']());}}}(_0x307d,0x1c38a));import{View as _0x5a7c8a}from'ckeditor5/src/ui.js';function _0xa2e2(_0x4855e5,_0x34ad67){const _0x307df7=_0x307d();return _0xa2e2=function(_0xa2e28d,_0x4065c7){_0xa2e28d=_0xa2e28d-0xcf;let _0x55175c=_0x307df7[_0xa2e28d];return _0x55175c;},_0xa2e2(_0x4855e5,_0x34ad67);}export class UploadcareImageEditFormEditingView extends _0x5a7c8a{constructor(_0x496b4e,_0x1ff9c7){const _0x3f9d30=_0xa2e2;super(_0x496b4e);const _0x54972c=this[_0x3f9d30(0xdd)];this[_0x3f9d30(0xd4)](_0x3f9d30(0xcf),''),this[_0x3f9d30(0xd6)]({'tag':_0x3f9d30(0xd0),'attributes':{..._0x1ff9c7,'class':[_0x3f9d30(0xe1),_0x3f9d30(0xd9)],'ctx-name':_0x3f9d30(0xda),'cdn-url':_0x54972c['to'](_0x3f9d30(0xcf))}});}}function _0x307d(){const _0x587421=['24LCvtIF','13074PDCaMb','52024TKdhCn','set','627076BiXXcC','setTemplate','110zQaOEj','3wFFmht','ck-uploadcare-theme','image-edit','45xRVIpW','449310aRIIRz','bindTemplate','16168tINybp','1849947oEdhBV','368110gMYvDq','uc-light','imageSrc','uc-cloud-image-editor'];_0x307d=function(){return _0x587421;};return _0x307d();}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
1
|
/**
|
|
6
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
4
|
*/
|
|
9
|
-
import { View } from '
|
|
10
|
-
import type { Locale } from '
|
|
5
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
11
7
|
import { type UploadcareImageEditController } from './uploadcareimageeditcontroller.js';
|
|
12
8
|
/**
|
|
13
9
|
* A class representing the form error view of the Uploadcare image edit feature.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
import{IconError as _0x48de4b}from'ckeditor5/src/icons.js';import{ButtonView as _0x44f3d6,IconView as _0x11d681,View as _0x5cd180}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x5cd180{constructor(_0x3097d5){super(_0x3097d5);const t=_0x3097d5['t'];this['set']('errorType',null);const _0x322a40=new _0x44f3d6(_0x3097d5);_0x322a40['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x322a40['withText']=!0x0,_0x322a40['class']='ck-button-action',_0x322a40['on']('execute',()=>{this['fire']('retry');}),_0x322a40['bind']('isVisible')['to'](this,'errorType',_0x109b79=>'NotFound'!==_0x109b79);const _0x1b2824=new _0x11d681();_0x1b2824['content']=_0x48de4b,_0x1b2824['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5c5f5a=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':[_0x1b2824,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5c5f5a['to']('errorType',_0x32726e=>t('NotFound'!==_0x32726e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x322a40]},{'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'}]}]}]});}}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
1
|
/**
|
|
6
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -9,8 +5,8 @@
|
|
|
9
5
|
/**
|
|
10
6
|
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformloadingview
|
|
11
7
|
*/
|
|
12
|
-
import { type Locale } from '
|
|
13
|
-
import { View } from '
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
14
10
|
/**
|
|
15
11
|
* A class representing the form loading view of the Uploadcare image edit feature.
|
|
16
12
|
*/
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
import{SpinnerView as _0x4ee0b5,View as _0x1a822a}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x1a822a{constructor(_0x478330){super(_0x478330);const t=_0x478330['t'],_0x17fc73=this['bindTemplate'],_0xd1ad7=new _0x4ee0b5();_0xd1ad7['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':[_0xd1ad7,{'text':_0x17fc73['to']('imageUploadProgress',_0x1b6587=>t('Loading\x20image...')+'\x20('+(_0x1b6587||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'}]}]}]});}}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
1
|
/**
|
|
6
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -9,7 +5,7 @@
|
|
|
9
5
|
/**
|
|
10
6
|
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformview
|
|
11
7
|
*/
|
|
12
|
-
import { type Locale } from '
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
13
9
|
import { type UploadcareImageEditController } from './uploadcareimageeditcontroller.js';
|
|
14
10
|
import { DialogFocusManagerView } from '../../utils/dialogfocusmanagerview.js';
|
|
15
11
|
import type { UploadcareEditorConfig } from '../../uploadcareconfig.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x1533e9=_0x3ab5;(function(_0x35c114,_0x158d79){const _0xac25a2=_0x3ab5,_0x3b7462=_0x35c114();while(!![]){try{const _0x2f3591=-parseInt(_0xac25a2(0x17c))/0x1+parseInt(_0xac25a2(0x16c))/0x2*(-parseInt(_0xac25a2(0x188))/0x3)+-parseInt(_0xac25a2(0x179))/0x4*(-parseInt(_0xac25a2(0x171))/0x5)+parseInt(_0xac25a2(0x196))/0x6*(-parseInt(_0xac25a2(0x168))/0x7)+parseInt(_0xac25a2(0x198))/0x8+parseInt(_0xac25a2(0x16f))/0x9*(parseInt(_0xac25a2(0x190))/0xa)+parseInt(_0xac25a2(0x16b))/0xb;if(_0x2f3591===_0x158d79)break;else _0x3b7462['push'](_0x3b7462['shift']());}catch(_0x4921e9){_0x3b7462['push'](_0x3b7462['shift']());}}}(_0x4222,0xc8911));import{View as _0x3faf54}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x4a1b9a}from'./uploadcareimageeditformloadingview.js';function _0x3ab5(_0x7baba2,_0x5f2b5d){const _0x4222e=_0x4222();return _0x3ab5=function(_0x3ab52d,_0x211e71){_0x3ab52d=_0x3ab52d-0x164;let _0x2293b6=_0x4222e[_0x3ab52d];return _0x2293b6;},_0x3ab5(_0x7baba2,_0x5f2b5d);}import{UploadcareImageEditFormErrorView as _0xa88d4d}from'./uploadcareimageeditformerrorview.js';function _0x4222(){const _0x3b0cab=['once','nodeName','set','getFocusableElement','_items','error','3476718nQSoRp','createCollection','render','6894173qRECsU','5722HjpAqD','addEventListener','ck-uploadcare-form','521568CMCZBo','_editingView','195395SpZooW','add','element','clear','querySelector','retry','addMany','addedNodes','140kDgJys','filter','_addUploadcareImageEditorListeners','1443103ianeEE','uploading','target','div','_addErrorViewListeners','_errorView','uc-cloud-image-editor','setTemplate','length','change:status','_loadingView','fire','477glZAMm','disconnect','cdnUrl','_waitForImageEditorComponent','detail','toLowerCase','observe','apply','20xnGrYK','ck-reset_all-excluded','_focusableView','_setView','focus','ready','6OloJME','status','8846280FRyjNs','cancel'];_0x4222=function(){return _0x3b0cab;};return _0x4222();}import{UploadcareImageEditFormEditingView as _0x57b38c}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3dd2d6}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x3dd2d6{[_0x1533e9(0x166)];[_0x1533e9(0x186)];[_0x1533e9(0x181)];[_0x1533e9(0x170)];[_0x1533e9(0x192)];constructor(_0x458539,_0x1956b6,_0x33f916){const _0x3c4256=_0x1533e9;super(_0x458539),this[_0x3c4256(0x166)]=this[_0x3c4256(0x169)](),this[_0x3c4256(0x186)]=new _0x4a1b9a(_0x458539),this[_0x3c4256(0x181)]=new _0xa88d4d(_0x458539),this[_0x3c4256(0x170)]=new _0x57b38c(_0x458539,_0x33f916),this[_0x3c4256(0x192)]=new _0x3faf54(_0x458539),this[_0x3c4256(0x192)][_0x3c4256(0x183)](this[_0x3c4256(0x165)]()),this[_0x3c4256(0x164)](_0x3c4256(0x197),_0x1956b6),this[_0x3c4256(0x183)]({'tag':_0x3c4256(0x17f),'attributes':{'class':['ck',_0x3c4256(0x191),_0x3c4256(0x16e)],'tabindex':'-1'},'children':this[_0x3c4256(0x166)]}),this[_0x3c4256(0x193)](),this[_0x3c4256(0x19a)](_0x3c4256(0x16a),()=>{const _0x595a47=_0x3c4256;this[_0x595a47(0x18b)](this[_0x595a47(0x173)],_0x196771=>{const _0x3c7885=_0x595a47;this[_0x3c7885(0x17b)](_0x196771);});}),this['on'](_0x3c4256(0x185),()=>{const _0x4ab2bf=_0x3c4256;this[_0x4ab2bf(0x193)]();}),this[_0x3c4256(0x180)]();}[_0x1533e9(0x194)](){const _0xaca009=_0x1533e9;this[_0xaca009(0x173)][_0xaca009(0x194)]();}[_0x1533e9(0x193)](){const _0x49113a=_0x1533e9;switch(this[_0x49113a(0x166)][_0x49113a(0x174)](),this[_0x49113a(0x197)]){case _0x49113a(0x17d):this[_0x49113a(0x166)][_0x49113a(0x172)](this[_0x49113a(0x186)]);break;case _0x49113a(0x167):this[_0x49113a(0x166)][_0x49113a(0x172)](this[_0x49113a(0x181)]);break;case _0x49113a(0x195):this[_0x49113a(0x166)][_0x49113a(0x177)]([this[_0x49113a(0x170)],this[_0x49113a(0x192)]]);}}[_0x1533e9(0x18b)](_0x47a43b,_0x54dd86){const _0x349e8b=_0x1533e9,_0x172b42=_0x349e8b(0x182),_0x481be4=_0x47a43b[_0x349e8b(0x175)](_0x172b42);if(_0x481be4)return _0x54dd86(_0x481be4);const _0x5a2485=new MutationObserver(_0x2e4700=>{const _0x34b1b4=_0x349e8b,_0x10ae20=_0x2e4700[_0x34b1b4(0x17a)](_0x4da2d6=>_0x4da2d6[_0x34b1b4(0x17e)]===_0x47a43b&&_0x4da2d6[_0x34b1b4(0x178)][_0x34b1b4(0x184)]>0x0&&_0x4da2d6[_0x34b1b4(0x178)][0x0][_0x34b1b4(0x19b)][_0x34b1b4(0x18d)]()===_0x172b42);_0x10ae20[_0x34b1b4(0x184)]&&(_0x5a2485[_0x34b1b4(0x189)](),_0x54dd86(_0x10ae20[0x0][_0x34b1b4(0x178)][0x0]));});_0x5a2485[_0x349e8b(0x18e)](_0x47a43b,{'childList':!0x0,'subtree':!0x0});}[_0x1533e9(0x17b)](_0x2229fc){const _0x4c9633=_0x1533e9;_0x2229fc[_0x4c9633(0x16d)](_0x4c9633(0x18f),_0x1cbe07=>{const _0x5d9fc9=_0x4c9633;this[_0x5d9fc9(0x187)](_0x5d9fc9(0x18f),{'imageSrc':_0x1cbe07[_0x5d9fc9(0x18c)][_0x5d9fc9(0x18a)]});}),_0x2229fc[_0x4c9633(0x16d)](_0x4c9633(0x199),()=>{const _0x3130b2=_0x4c9633;this[_0x3130b2(0x187)](_0x3130b2(0x199));});}[_0x1533e9(0x180)](){const _0xd14de5=_0x1533e9;this[_0xd14de5(0x181)]['on'](_0xd14de5(0x176),()=>{const _0x2351aa=_0xd14de5;this[_0x2351aa(0x187)](_0x2351aa(0x176));});}}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
1
|
/**
|
|
6
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -10,8 +6,8 @@
|
|
|
10
6
|
* @module uploadcare/uploadcareimageedit/uploadcareimageeditcommand
|
|
11
7
|
* @publicApi
|
|
12
8
|
*/
|
|
13
|
-
import { Command, type Editor } from '
|
|
14
|
-
import { Dialog } from '
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
15
11
|
import { UploadcareImageEditController } from './ui/uploadcareimageeditcontroller.js';
|
|
16
12
|
/**
|
|
17
13
|
* The Uploadcare edit image command.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x19424f=_0x2a3d;(function(_0x477c6f,_0x5ac9a3){const _0x15c9ed=_0x2a3d,_0x130fd7=_0x477c6f();while(!![]){try{const _0x48d334=parseInt(_0x15c9ed(0x18a))/0x1+parseInt(_0x15c9ed(0x182))/0x2*(-parseInt(_0x15c9ed(0x179))/0x3)+parseInt(_0x15c9ed(0x181))/0x4+parseInt(_0x15c9ed(0x173))/0x5*(-parseInt(_0x15c9ed(0x17e))/0x6)+-parseInt(_0x15c9ed(0x17a))/0x7+parseInt(_0x15c9ed(0x17b))/0x8+-parseInt(_0x15c9ed(0x18d))/0x9*(parseInt(_0x15c9ed(0x171))/0xa);if(_0x48d334===_0x5ac9a3)break;else _0x130fd7['push'](_0x130fd7['shift']());}catch(_0x549a7){_0x130fd7['push'](_0x130fd7['shift']());}}}(_0x32eb,0x7041e));import{Command as _0x28204a}from'ckeditor5/src/core.js';import{Dialog as _0xa6f7e3}from'ckeditor5/src/ui.js';function _0x32eb(){const _0x348878=['isActive','execute','679299WJHeMT','4529QRzQXf','1066448bYqheG','refresh','imageEditController','66nnDmwO','element','model','3582952VGdgmA','2tjaNFX','getSelectedElement','_isEditable','plugins','editor','bind','isEnabled','get','663791MDQlns','unbind','requires','8759511uJgLgb','set','uploadcare.allowExternalImagesEditing','config','10ndrkjb','imageInline','14850rbPUTg','imageBlock','document','selection'];_0x32eb=function(){return _0x348878;};return _0x32eb();}import{UploadcareImageEditController as _0x40eb16}from'./ui/uploadcareimageeditcontroller.js';function _0x2a3d(_0x16a30b,_0x29aac5){const _0x32eb9e=_0x32eb();return _0x2a3d=function(_0x2a3d32,_0x5efd00){_0x2a3d32=_0x2a3d32-0x170;let _0x5443ff=_0x32eb9e[_0x2a3d32];return _0x5443ff;},_0x2a3d(_0x16a30b,_0x29aac5);}import{createEditabilityChecker as _0xf8de8a}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x28204a{[_0x19424f(0x17d)];static get[_0x19424f(0x18c)](){return[_0xa6f7e3];}[_0x19424f(0x184)];constructor(_0x330cb8){const _0xb2c4cc=_0x19424f;super(_0x330cb8),this[_0xb2c4cc(0x17d)]=void 0x0,this[_0xb2c4cc(0x184)]=_0xf8de8a(_0x330cb8[_0xb2c4cc(0x170)][_0xb2c4cc(0x189)](_0xb2c4cc(0x18f))||[]),this[_0xb2c4cc(0x18e)]({'isActive':!0x1});}[_0x19424f(0x17c)](){const _0x6ea99=_0x19424f,_0x237f16=this[_0x6ea99(0x186)][_0x6ea99(0x180)][_0x6ea99(0x175)][_0x6ea99(0x176)][_0x6ea99(0x183)]();this[_0x6ea99(0x188)]=this[_0x6ea99(0x184)](_0x237f16);}[_0x19424f(0x178)](){const _0x52cea5=_0x19424f;this[_0x52cea5(0x17d)]&&(this[_0x52cea5(0x18b)](_0x52cea5(0x177)),this[_0x52cea5(0x17d)]=void 0x0);const _0x465fe0=this[_0x52cea5(0x186)][_0x52cea5(0x180)][_0x52cea5(0x175)][_0x52cea5(0x176)][_0x52cea5(0x183)]();_0x465fe0&&(_0x465fe0['is'](_0x52cea5(0x17f),_0x52cea5(0x174))||_0x465fe0['is'](_0x52cea5(0x17f),_0x52cea5(0x172)))&&(this[_0x52cea5(0x17d)]=new _0x40eb16(this[_0x52cea5(0x186)],this[_0x52cea5(0x186)][_0x52cea5(0x185)][_0x52cea5(0x189)](_0xa6f7e3),_0x465fe0),this[_0x52cea5(0x187)](_0x52cea5(0x177))['to'](this[_0x52cea5(0x17d)],_0x52cea5(0x177)));}}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
1
|
/**
|
|
6
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
@@ -10,8 +6,8 @@
|
|
|
10
6
|
* @module uploadcare/uploadcareimageedit/uploadcareimageeditediting
|
|
11
7
|
* @publicApi
|
|
12
8
|
*/
|
|
13
|
-
import { Plugin } from '
|
|
14
|
-
import { Notification } from '
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { Notification } from 'ckeditor5/src/ui.js';
|
|
15
11
|
import { UploadcareEditing } from '../uploadcareediting.js';
|
|
16
12
|
/**
|
|
17
13
|
* The Uploadcare image editing plugin.
|