@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260106.0 → 0.0.0-nightly-next-20260106.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/ckeditor5-metadata.json +2 -2
- package/{src → dist}/augmentation.d.ts +4 -0
- package/{src → dist}/index.d.ts +4 -0
- 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/{src → dist}/ui/uploadcarecontroller.d.ts +7 -3
- package/{src → dist}/ui/uploadcareformview.d.ts +5 -1
- package/{src → dist}/uploadcare.d.ts +5 -1
- package/{src → dist}/uploadcarecommand.d.ts +6 -2
- package/{src → dist}/uploadcareconfig.d.ts +5 -1
- package/{src → dist}/uploadcareediting.d.ts +6 -2
- package/{src → dist}/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +9 -5
- package/{src → dist}/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +6 -2
- package/{src → dist}/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +6 -2
- package/{src → dist}/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +6 -2
- package/{src → dist}/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +5 -1
- package/{src → dist}/uploadcareimageedit/uploadcareimageeditcommand.d.ts +6 -2
- package/{src → dist}/uploadcareimageedit/uploadcareimageeditediting.d.ts +6 -2
- package/{src → dist}/uploadcareimageedit/uploadcareimageeditui.d.ts +5 -1
- package/{src → dist}/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +5 -1
- package/{src → dist}/uploadcareimageedit.d.ts +5 -1
- package/{src → dist}/uploadcareui.d.ts +5 -1
- package/{src → dist}/uploadcareuploadadapter.d.ts +6 -2
- package/{src → dist}/utils/common-translations.d.ts +4 -0
- package/{src → dist}/utils/dialogfocusmanagerview.d.ts +6 -2
- package/{src → dist}/utils/editingutils.d.ts +4 -0
- package/{src → dist}/utils/isancestor.d.ts +4 -0
- package/{src → dist}/utils/uploadutils.d.ts +4 -0
- package/package.json +23 -33
- 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/be.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/build/uploadcare.js +0 -5
- package/src/augmentation.js +0 -23
- package/src/index.js +0 -23
- package/src/ui/uploadcarecontroller.js +0 -24
- package/src/ui/uploadcareformview.js +0 -23
- package/src/uploadcare.js +0 -23
- package/src/uploadcarecommand.js +0 -23
- package/src/uploadcareconfig.js +0 -23
- package/src/uploadcareediting.js +0 -23
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +0 -24
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +0 -23
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +0 -23
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +0 -23
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +0 -23
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +0 -23
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +0 -23
- package/src/uploadcareimageedit/uploadcareimageeditui.js +0 -23
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +0 -23
- package/src/uploadcareimageedit.js +0 -23
- package/src/uploadcareui.js +0 -23
- package/src/uploadcareuploadadapter.js +0 -23
- package/src/utils/common-translations.js +0 -23
- package/src/utils/dialogfocusmanagerview.js +0 -23
- package/src/utils/editingutils.js +0 -23
- package/src/utils/isancestor.js +0 -23
- package/src/utils/uploadutils.js +0 -23
package/ckeditor5-metadata.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"className": "Uploadcare",
|
|
6
6
|
"description": "Allows inserting images into the rich-text editor content and to the Uploadcare cloud.",
|
|
7
7
|
"docs": "",
|
|
8
|
-
"path": "src/uploadcare.
|
|
8
|
+
"path": "src/uploadcare.ts",
|
|
9
9
|
"requires": [
|
|
10
10
|
[
|
|
11
11
|
"ImageBlock",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"className": "UploadcareImageEdit",
|
|
32
32
|
"description": "Allows editing images.",
|
|
33
33
|
"docs": "",
|
|
34
|
-
"path": "src/uploadcareimageedit.
|
|
34
|
+
"path": "src/uploadcareimageedit.ts",
|
|
35
35
|
"requires": [
|
|
36
36
|
"Uploadcare"
|
|
37
37
|
],
|
|
@@ -1,3 +1,7 @@
|
|
|
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
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
7
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
package/{src → dist}/index.d.ts
RENAMED
|
@@ -1,3 +1,7 @@
|
|
|
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
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
7
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x55ddf0,Command as _0x269e16}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x328107,IconGooglePhotos as _0x7110fa,IconGoogleDrive as _0x17abc7,IconFacebook as _0x58cb1e,IconDropbox as _0x1d08e4,IconUploadcareLink as _0x3038e7,IconUploadcareImageUpload as _0x441948,IconError as _0x11c53b,IconUploadcareImageEdit as _0x4de65f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2912d2,MenuBarMenuListItemButtonView as _0x40ff32,View as _0x2e0ada,FocusCycler as _0x36d203,Dialog as _0x3f728a,DialogViewPosition as _0x2956ae,SpinnerView as _0x31f18b,IconView as _0x37d47d,Notification as _0x2b1861}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4ffd6e,DomEmitterMixin as _0x38187e,global as _0x46ac85,getAncestors as _0x4b9038,ObservableMixin as _0x284938,uid as _0x55b0bc,createElement as _0x32c812}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x25f42c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1965d8,info as _0x20f17e}from'@uploadcare/upload-client';import*as _0x197638 from'@uploadcare/file-uploader';var i=function(_0x44f76e){return _0x44f76e['Local']='local',_0x44f76e['URL']='url',_0x44f76e['Dropbox']='dropbox',_0x44f76e['GDrive']='gdrive',_0x44f76e['Facebook']='facebook',_0x44f76e['GPhotos']='gphotos',_0x44f76e['OneDrive']='onedrive',_0x44f76e;}({});function _(_0x287b1c,_0x196551,_0x2efc27){const t=_0x287b1c['t'],_0x2298de=_0x287b1c['t'];switch(_0x196551){case i['Local']:return{'text':_0x2298de('Insert'===_0x2efc27?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2298de('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2efc27?_0x2298de('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2298de('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2efc27?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2efc27?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2efc27?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2efc27?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2efc27?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x196551;}}class e extends _0x55ddf0{['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 _0x582b76=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3ee99e;for(const _0x2f4cf3 in _0x582b76){const _0x415ad6=_0x2f4cf3,_0x3d34c5=_0x582b76[_0x415ad6];if('uploadcareLicenseKeyValid'==_0x3d34c5||'uploadcareLicenseKeyInvalid'==_0x3d34c5||'uploadcareLicenseKeyExpired'==_0x3d34c5||'uploadcareLicenseKeyDomainLimit'==_0x3d34c5||'uploadcareLicenseKeyNotAllowed'==_0x3d34c5||'uploadcareLicenseKeyEvaluationLimit'==_0x3d34c5||'uploadcareLicenseKeyTrialLimit'==_0x3d34c5||'uploadcareLicenseKeyUsageLimit'==_0x3d34c5){delete _0x582b76[_0x415ad6],_0x3ee99e=_0x3d34c5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3ee99e&&_0x582b76['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3ee99e&&_0x582b76['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3ee99e&&_0x582b76['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3ee99e&&_0x582b76['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3ee99e&&_0x582b76['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3ee99e&&_0x582b76['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3ee99e&&_0x582b76['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x431ee3}=this,_0x1845c2=_0x431ee3['commands']['get']('uploadcare');if(!_0x1845c2)return;const _0x35bc8e=this['_normalizeConfigSourceList'](_0x431ee3['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5acc16,_0x5f068f)=>{const _0x3b0855=this['_getIntegrationKey'](_0x5f068f['type']);return _0x5acc16[_0x3b0855]||(_0x5acc16[_0x3b0855]=[]),_0x5acc16[_0x3b0855]['push'](_0x5f068f),_0x5acc16;},{});_0x431ee3['plugins']['has']('ImageInsertUI')&&_0x431ee3['commands']['get']('uploadcare')&&Object['entries'](_0x35bc8e)['forEach'](([_0x5f815a,_0x21fc83])=>{_0x431ee3['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5f815a,'observable':()=>_0x1845c2,'buttonViewCreator':()=>this['_createToolbarButton'](_0x21fc83),'formViewCreator':()=>this['_createDropdownButtons'](_0x21fc83),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x21fc83),'override':'assetManager'!==_0x5f815a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x10867f){const {locale:_0x423cca}=this['editor'];return _0x10867f['map'](_0x165ce5=>{const _0x33641c=_(_0x423cca,_0x165ce5,'Insert');switch(_0x165ce5){case i['Local']:return{'icon':_0x441948,'type':i['Local'],..._0x33641c};case i['URL']:return{'icon':_0x3038e7,'type':i['URL'],..._0x33641c};case i['Dropbox']:return{'icon':_0x1d08e4,'type':i['Dropbox'],..._0x33641c};case i['Facebook']:return{'icon':_0x58cb1e,'type':i['Facebook'],..._0x33641c};case i['GDrive']:return{'icon':_0x17abc7,'type':i['GDrive'],..._0x33641c};case i['GPhotos']:return{'icon':_0x7110fa,'type':i['GPhotos'],..._0x33641c};case i['OneDrive']:return{'icon':_0x328107,'type':i['OneDrive'],..._0x33641c};}});}['_getIntegrationKey'](_0x109857){switch(_0x109857){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2bda55,_0x121a66){const _0x39a3a2=this['editor'],_0x4b688=new _0x2bda55(_0x39a3a2['locale']),_0xcbe70=_0x39a3a2['commands']['get']('uploadcare');return _0x4b688['bind']('isEnabled')['to'](_0xcbe70),_0x4b688['on']('execute',()=>{_0xcbe70['execute'](_0x121a66);}),_0x4b688;}['_createToolbarButton'](_0x2646c4){const {locale:_0x2ffa73}=this['editor'],_0x66e4c=this['editor']['plugins']['get']('ImageInsertUI'),_0x4ba7f1=_0x2646c4[0x0],_0x4eca73=this['_createButton'](_0x2912d2,_0x4ba7f1['type']);return _0x4eca73['icon']=_0x4ba7f1['icon'],_0x4eca73['bind']('label')['to'](_0x66e4c,'isImageSelected',_0x3d0e31=>_(_0x2ffa73,_0x4ba7f1['type'],_0x3d0e31?'Replace':'Insert')['text']),_0x4eca73['tooltip']=!0x0,_0x4eca73;}['_createDropdownButtons'](_0x450186){const {locale:_0x48734f}=this['editor'],_0x337769=this['editor']['plugins']['get']('ImageInsertUI');return _0x450186['map'](_0x19864f=>{const _0x3c5a6c=this['_createButton'](_0x2912d2,_0x19864f['type']);return _0x3c5a6c['withText']=!0x0,_0x3c5a6c['icon']=_0x19864f['icon'],_0x3c5a6c['bind']('label')['to'](_0x337769,'isImageSelected',_0x2e6c37=>_(_0x48734f,_0x19864f['type'],_0x2e6c37?'Replace':'Insert')['text']),_0x3c5a6c;});}['_createMenuBarButtons'](_0x2ac7dd){return _0x2ac7dd['map'](_0x5709e4=>{const _0xd05e31=this['_createButton'](_0x40ff32,_0x5709e4['type']);return _0xd05e31['icon']=_0x5709e4['icon'],_0xd05e31['label']=_0x5709e4['shortText'],_0xd05e31;});}}class V extends _0x2e0ada{['focusTracker'];['focusCycler'];constructor(_0x48f38a){super(_0x48f38a),this['focusTracker']=new _0x4ffd6e(),this['focusCycler']=new _0x36d203({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x55c3db,_0xe2eb4a){super(_0x55c3db),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-'+_0xe2eb4a}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3ccad4,_0x4e371f){const _0x42acd9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4058bf=>_0x4058bf<=_0x4e371f)['map'](_0x51ec01=>_0x3ccad4['replace'](/\/$/,'')+'/-/resize/'+_0x51ec01+'x/\x20'+_0x51ec01+'w');return{'imageFallbackUrl':_0x3ccad4,'imageSources':[{'srcset':_0x42acd9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4e371f+'px)\x20100vw,\x20'+_0x4e371f+'px','type':'image/webp'}]};}function F(_0x1abe9e,_0x262688,_0x7747a4){const _0x34e083=_0x1abe9e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x34e083?parseInt(_0x34e083[0x1],0xa):_0x262688,'height':_0x34e083?parseInt(_0x34e083[0x2],0xa):_0x7747a4};}function p(_0x2628b0,_0x1e8600){const _0xcc8d2b=new(_0x38187e())(),_0x256b1e=_0x2628b0['plugins']['get']('ImageUtils'),_0x4d9c0c=_0x2628b0['editing']['mapper']['toViewElement'](_0x1e8600),_0x33a5ae=_0x256b1e['findViewImgElement'](_0x4d9c0c),_0x2214a0=_0x2628b0['editing']['view']['domConverter']['viewToDom'](_0x33a5ae),_0x5d344c=_0x1e8600['getAttribute']('width'),_0x4c27c7=_0x1e8600['getAttribute']('height'),_0x5e1358='image-processing';_0x2628b0['editing']['view']['change'](_0x566e98=>{_0x566e98['addClass'](_0x5e1358,_0x4d9c0c),_0x566e98['setStyle']('aspect-ratio',_0x5d344c+'/'+_0x4c27c7,_0x33a5ae);}),_0xcc8d2b['listenTo'](_0x2214a0,'load',()=>{_0xcc8d2b['stopListening'](_0x2214a0,'load'),_0x2628b0['editing']['view']['change'](_0x45fd00=>{_0x45fd00['removeClass'](_0x5e1358,_0x4d9c0c),_0x45fd00['removeStyle']('aspect-ratio',_0x33a5ae);});});}function R(_0x13f82a){if(Array['isArray'](_0x13f82a)){const _0x121faf=_0x13f82a['map'](R);return _0x23bd82=>_0x121faf['some'](_0x651746=>_0x651746(_0x23bd82));}if('origin'==_0x13f82a){const _0x4de7a2=_0x46ac85['window']['location']['origin'];return _0xa65e24=>new URL(_0xa65e24,_0x46ac85['document']['baseURI'])['origin']==_0x4de7a2;}return'function'==typeof _0x13f82a?_0x13f82a:_0x13f82a instanceof RegExp?_0xe98723=>!(!_0xe98723['match'](_0x13f82a)&&!_0xe98723['replace'](/^https?:\/\//,'')['match'](_0x13f82a)):()=>!0x1;}function M(_0x7329bb,_0x28e5cf){return _0x4b9038(_0x7329bb['target'])['includes'](_0x28e5cf);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x284938(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3d3dfe,_0x26deec,_0x668b55){super(),this['_editor']=_0x3d3dfe,this['_editing']=_0x26deec,this['_dialog']=_0x3d3dfe['plugins']['get'](_0x3f728a),this['_api']=_0x26deec['ctxElement']['getAPI'](),this['_type']=_0x668b55,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:_0x379f12,model:_0x554a49}=this['_editor'],_0x23cfaa=_0x554a49['document']['selection']['getSelectedElement'](),_0x529cb7=_0x23cfaa&&(_0x23cfaa['is']('element','imageBlock')||_0x23cfaa['is']('element','imageInline'));this['_formView']=new S(_0x379f12,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x441948,'title':_(_0x379f12,this['_type'],_0x529cb7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2956ae['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4ae23f=>!M(_0x4ae23f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5d465d}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5ddbd4=>{const _0x36a553=_0x5d465d['length'];for(const _0x42e86f of _0x5d465d){const _0x28db89=_0x42e86f===_0x5d465d[_0x36a553-0x1],{cdnUrl:_0x201330,fileInfo:_0x2fda67}=_0x42e86f;if(!_0x201330||!_0x2fda67)continue;const {width:_0x13e26f,height:_0x1d3baf}=_0x2fda67['imageInfo'],_0x11e54c=F(_0x201330,_0x13e26f,_0x1d3baf),_0x5b28aa=C(_0x201330,_0x11e54c['width']),_0x8e5d27={'id':_0x2fda67['uuid'],'type':'image','attributes':{'imageDimension':_0x11e54c,..._0x5b28aa}};this['_insertAsset'](_0x8e5d27,_0x28db89,_0x5ddbd4);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x170e49=>{'idle'===_0x170e49['detail']['status']&&!_0x170e49['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3c05f7,_0x22f9a0,_0x111371){const _0x415934=this['_editor']['model']['document']['selection'],_0x754981=_0x415934['getSelectedElement'](),_0x565e6c=!(!_0x754981||!_0x754981['is']('element','imageInline'));_0x111371['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3c05f7,_0x565e6c),_0x22f9a0||_0x111371['setSelection'](_0x415934['getLastPosition']());}['_insertImage'](_0x2f0e0f,_0x346d91){const _0x59e6ba=this['_editor'],{imageDimension:_0x2a2d1e,imageFallbackUrl:_0xa82a03,imageSources:_0x11191b}=_0x2f0e0f['attributes'];_0x59e6ba['execute']('insertImage',{'imageType':_0x346d91?'imageInline':null,'source':{'uploadcareImageId':_0x2f0e0f['id'],'src':_0xa82a03,'sources':_0x11191b,..._0x2a2d1e}});}}class w extends _0x269e16{['_editing'];['_controller']=null;static get['requires'](){return[_0x3f728a,o];}constructor(_0x540852){super(_0x540852),this['_editing']=_0x540852['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x26b810){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x26b810);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x440110,..._0x555013}){return _0x1965d8(_0x440110,_0x555013);}static['getInfo'](_0x3a8d47,_0x1a0e2b){return _0x20f17e(_0x3a8d47,_0x1a0e2b);}}class f extends _0x55ddf0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x25f42c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x9294c1=this['editor'];if(!!!_0x9294c1['config']['get']('uploadcare'))return;_0x9294c1['plugins']['get'](_0x25f42c)['createUploadAdapter']=_0x1da0a2=>new k(_0x1da0a2,_0x9294c1),_0x9294c1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4451d3,{imageElement:_0x549a3b,data:_0x5f355f})=>{_0x9294c1['model']['change'](_0x56979a=>{_0x56979a['setAttribute']('uploadcareImageId',_0x5f355f['uploadcareImageId'],_0x549a3b);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x7417a5,_0x4cf52c){this['loader']=_0x7417a5,this['editor']=_0x4cf52c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1b2da9=await this['loader']['file'];return j['upload']({'file':_0x1b2da9,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1ad0a3=>{_0x1ad0a3&&_0x1ad0a3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1ad0a3['value']);}})['then'](async _0x435d2c=>{const {imageFallbackUrl:_0x4359a6,imageSources:_0x5407cc}=C(_0x435d2c['cdnUrl'],_0x435d2c['imageInfo']['width']);return{'uploadcareImageId':_0x435d2c['uuid'],'default':_0x4359a6,'sources':_0x5407cc};})['catch'](()=>{const _0x258438=t('Cannot\x20upload\x20file:')+('\x20'+_0x1b2da9['name']+'.');return Promise['reject'](_0x258438);});}['abort'](){this['controller']['abort']();}}class o extends _0x55ddf0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3f728a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5dba28){super(_0x5dba28),this['ucContextId']=_0x55b0bc();}['init'](){const _0x4ce4b4=this['editor'];_0x4ce4b4['commands']['add']('uploadcare',new w(_0x4ce4b4));}['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 _0x8a72c3=_0x46ac85['document']['querySelector']('input[uploadcare-file-input]');_0x8a72c3&&_0x8a72c3['remove']();}),async function(_0x92c967){const _0x1d47c7=_0x468f68([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]),_0x2948b8=0x535f8c3a,_0x42bc36=0x5358f232^_0x2948b8,_0x32d561=window[_0x468f68([0x44,0x61,0x74,0x65])][_0x468f68([0x6e,0x6f,0x77])](),_0x14748f=_0x92c967[_0x468f68([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3682cd=new window[(_0x468f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b3947=>{_0x14748f[_0x468f68([0x6f,0x6e,0x63,0x65])](_0x468f68([0x72,0x65,0x61,0x64,0x79]),_0x1b3947);}),_0x519662={[_0x468f68([0x6b,0x74,0x79])]:_0x468f68([0x45,0x43]),[_0x468f68([0x75,0x73,0x65])]:_0x468f68([0x73,0x69,0x67]),[_0x468f68([0x63,0x72,0x76])]:_0x468f68([0x50,0x2d,0x32,0x35,0x36]),[_0x468f68([0x78])]:_0x468f68([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]),[_0x468f68([0x79])]:_0x468f68([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]),[_0x468f68([0x61,0x6c,0x67])]:_0x468f68([0x45,0x53,0x32,0x35,0x36])},_0x10e2c0=_0x14748f[_0x468f68([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x468f68([0x67,0x65,0x74])](_0x468f68([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8b2f10(){let _0x4f115d,_0x329f62=null,_0xf060f2=null;try{if(_0x10e2c0==_0x468f68([0x47,0x50,0x4c]))return _0x468f68([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f115d=_0x5ab84d(),!_0x4f115d)return _0x468f68([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4f115d[_0x468f68([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf060f2=_0x1f4593(_0x4f115d[_0x468f68([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f115d[_0x468f68([0x6a,0x74,0x69])])),await _0x5a43de()?_0x477545()?_0xd4625b()?_0x468f68([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x51d54e()?(_0x4f115d[_0x468f68([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x468f68([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x329f62=_0x4d945e(_0x468f68([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4f115d[_0x468f68([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x468f68([0x74,0x72,0x69,0x61,0x6c])&&(_0x329f62=_0x4d945e(_0x468f68([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd00e3()):_0x468f68([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x468f68([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x468f68([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x468f68([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd4625b(){const _0x20568a=[_0x468f68([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x468f68([0x74,0x72,0x69,0x61,0x6c])][_0x468f68([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f115d[_0x468f68([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32d561/0x3e8:0xe10*_0x42bc36;return _0x4f115d[_0x468f68([0x65,0x78,0x70])]<_0x20568a;}function _0x477545(){const _0x24a330=_0x4f115d[_0x468f68([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x24a330&&(!!_0x24a330[_0x468f68([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x468f68([0x2a]))||!!_0x24a330[_0x468f68([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x468f68([0x55,0x50,0x4c,0x43])));}function _0x51d54e(){const _0x5abd71=_0x4f115d[_0x468f68([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5abd71||0x0==_0x5abd71[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x197d14}=new URL(window[_0x468f68([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5abd71[_0x468f68([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x197d14))return!0x0;const _0x318c73=_0x197d14[_0x468f68([0x73,0x70,0x6c,0x69,0x74])](_0x468f68([0x2e]));return _0x5abd71[_0x468f68([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1dc9b6=>_0x1dc9b6[_0x468f68([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x468f68([0x2a])))[_0x468f68([0x6d,0x61,0x70])](_0x504bbe=>_0x504bbe[_0x468f68([0x73,0x70,0x6c,0x69,0x74])](_0x468f68([0x2e])))[_0x468f68([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x31b3d7=>_0x31b3d7[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x318c73[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x468f68([0x6d,0x61,0x70])](_0x21b547=>Array(_0x318c73[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x21b547[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x468f68([0x66,0x69,0x6c,0x6c])](_0x21b547[0x0]===_0x468f68([0x2a])?_0x468f68([0x2a]):'')[_0x468f68([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x21b547))[_0x468f68([0x73,0x6f,0x6d,0x65])](_0xa1bb41=>_0x318c73[_0x468f68([0x65,0x76,0x65,0x72,0x79])]((_0x20242a,_0x4d9a4a)=>_0xa1bb41[_0x4d9a4a]===_0x20242a||_0xa1bb41[_0x4d9a4a]===_0x468f68([0x2a])));}function _0xd00e3(){return _0x329f62&&_0xf060f2?new window[(_0x468f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36bcfe,_0x52aafc)=>{_0x329f62[_0x468f68([0x74,0x68,0x65,0x6e])](_0x36bcfe,_0x52aafc),_0xf060f2[_0x468f68([0x74,0x68,0x65,0x6e])](_0x513804=>{_0x513804!=_0x468f68([0x56,0x61,0x6c,0x69,0x64])&&_0x36bcfe(_0x513804);},_0x52aafc);}):_0x329f62||_0xf060f2||_0x468f68([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f4593(_0x19ca9f,_0x816b4c){return new window[(_0x468f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ea7bb=>{if(_0x29ceb2())return _0x2ea7bb(_0x468f68([0x56,0x61,0x6c,0x69,0x64]));_0x26a62c(),_0x14748f[_0x468f68([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x468f68([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x49ba43=!0x1;const _0x53af7a=_0x55b0bc();function _0x3525db(_0xe6e557){return!!_0xe6e557&&(typeof _0xe6e557===_0x468f68([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe6e557===_0x468f68([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe6e557[_0x468f68([0x74,0x68,0x65,0x6e])]===_0x468f68([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe6e557[_0x468f68([0x63,0x61,0x74,0x63,0x68])]===_0x468f68([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x237da4(_0x5c4a3c){_0x351005(_0x5c4a3c)[_0x468f68([0x74,0x68,0x65,0x6e])](_0x27202d=>{if(!_0x27202d||_0x27202d[_0x468f68([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x468f68([0x6f,0x6b]))return _0x468f68([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1713f5(_0x20c018(_0x53af7a+_0x816b4c))!=_0x27202d[_0x468f68([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x468f68([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x468f68([0x56,0x61,0x6c,0x69,0x64]);})[_0x468f68([0x74,0x68,0x65,0x6e])](_0x28bef5=>(_0x2746d5(),_0x28bef5),()=>{const _0x4d03a4=_0xe8fd7e();return null==_0x4d03a4?(_0x2746d5(),_0x468f68([0x56,0x61,0x6c,0x69,0x64])):_0x468f68(_0x32d561-_0x4d03a4>(0x7753083a^_0x2948b8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x468f68([0x74,0x68,0x65,0x6e])](_0x2ea7bb)[_0x468f68([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ea7bb(_0x468f68([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59c6c0=0x536962ba^_0x2948b8;function _0x2746d5(){const _0x371bd8=_0x468f68([0x6c,0x6c,0x63,0x74,0x2d])+_0x1713f5(_0x20c018(_0x19ca9f)),_0x2c5a07=_0x5558f2(_0x1713f5(window[_0x468f68([0x4d,0x61,0x74,0x68])][_0x468f68([0x63,0x65,0x69,0x6c])](_0x32d561/_0x59c6c0)));window[_0x468f68([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x468f68([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x371bd8,_0x2c5a07);}function _0xe8fd7e(){const _0x5d93f9=_0x468f68([0x6c,0x6c,0x63,0x74,0x2d])+_0x1713f5(_0x20c018(_0x19ca9f)),_0x589db1=window[_0x468f68([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x468f68([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d93f9);return _0x589db1?window[_0x468f68([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5558f2(_0x589db1),0x10)*_0x59c6c0:null;}function _0x351005(_0xaa8206){return new window[(_0x468f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x151f80,_0x1e4d4f)=>{_0xaa8206[_0x468f68([0x74,0x68,0x65,0x6e])](_0x151f80,_0x1e4d4f),window[_0x468f68([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e4d4f,0x535e58fa^_0x2948b8);});}}_0x14748f[_0x468f68([0x6f,0x6e])](_0x468f68([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f2ae3,_0xf234e8)=>{if(_0xf234e8[0x0]!=_0x19ca9f)return _0x2ea7bb(_0x468f68([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xf234e8[0x1]={..._0xf234e8[0x1],[_0x468f68([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x53af7a};},{[_0x468f68([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x468f68([0x68,0x69,0x67,0x68])}),_0x14748f[_0x468f68([0x6f,0x6e])](_0x468f68([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x365e1c=>{_0x3525db(_0x365e1c[_0x468f68([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x49ba43=!0x0,_0x237da4(_0x365e1c[_0x468f68([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x468f68([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x468f68([0x6c,0x6f,0x77])}),_0x3682cd[_0x468f68([0x74,0x68,0x65,0x6e])](()=>{_0x49ba43||_0x2ea7bb(_0x468f68([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x29ceb2(){return _0x14748f[_0x468f68([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x468f68([0x76,0x69,0x65,0x77])][_0x468f68([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x468f68([0x61,0x75,0x74,0x6f]);}function _0x26a62c(){_0x14748f[_0x468f68([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x468f68([0x76,0x69,0x65,0x77])][_0x468f68([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x468f68([0x61,0x75,0x74,0x6f]);}}function _0x4d945e(_0x95d2c5){const _0x1ba1a2=[new window[(_0x468f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5845bc=>setTimeout(_0x5845bc,0x5356b2f6^_0x2948b8)),_0x3682cd[_0x468f68([0x74,0x68,0x65,0x6e])](()=>new window[(_0x468f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x371dca=>{let _0x4e6f7f=0x0;_0x14748f[_0x468f68([0x6d,0x6f,0x64,0x65,0x6c])][_0x468f68([0x6f,0x6e])](_0x468f68([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40763a,_0x102a55)=>{_0x102a55[0x0][_0x468f68([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4e6f7f++,_0x4e6f7f==(0x535f89d2^_0x2948b8)&&(_0x371dca(),_0x40763a[_0x468f68([0x6f,0x66,0x66])]());});}))];return window[_0x468f68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x468f68([0x72,0x61,0x63,0x65])](_0x1ba1a2)[_0x468f68([0x74,0x68,0x65,0x6e])](()=>_0x95d2c5);}async function _0x347694(){await _0x3682cd,_0x14748f[_0x468f68([0x6d,0x6f,0x64,0x65,0x6c])][_0x468f68([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2437ba,_0x14748f[_0x468f68([0x6d,0x6f,0x64,0x65,0x6c])][_0x468f68([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2437ba,_0x14748f[_0x468f68([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x468f68([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x43694f(_0x3fd8c4){const _0x3980aa=_0x2d6357();_0x14748f[_0x3980aa]=_0x468f68([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3fd8c4,_0x3fd8c4!=_0x468f68([0x56,0x61,0x6c,0x69,0x64])&&_0x347694();}function _0x2d6357(){const _0x7a6e9c=window[_0x468f68([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x468f68([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x468f68([0x6e,0x6f,0x77])]())[_0x468f68([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x468f68([0x2e]),'');let _0x2e8cfd=_0x468f68([0x68]);for(let _0x29d6ac=0x0;_0x29d6ac<_0x7a6e9c[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29d6ac+=0x2){let _0xcaa627=window[_0x468f68([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7a6e9c[_0x468f68([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29d6ac,_0x29d6ac+0x2));_0xcaa627>=_0x1d47c7[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xcaa627-=_0x1d47c7[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e8cfd+=_0x1d47c7[_0xcaa627];}return _0x2e8cfd;}function _0x5ab84d(){const _0x46dd5e=_0x10e2c0[_0x468f68([0x73,0x70,0x6c,0x69,0x74])](_0x468f68([0x2e]));if(0x3!=_0x46dd5e[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x30f976(_0x46dd5e[0x1]);function _0x30f976(_0x1f5981){const _0x35b1ba=_0x23fe21(_0x1f5981);return _0x35b1ba&&_0x217dc3()?_0x35b1ba:null;function _0x217dc3(){const _0x1611c2=_0x35b1ba[_0x468f68([0x6a,0x74,0x69])],_0x1657af=window[_0x468f68([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1611c2[_0x468f68([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1611c2[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x145cd2={..._0x35b1ba,[_0x468f68([0x6a,0x74,0x69])]:_0x1611c2[_0x468f68([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1611c2[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x145cd2[_0x468f68([0x76,0x63])],_0x20c018(_0x145cd2)==_0x1657af;}}}async function _0x5a43de(){let _0x2395d3=!0x0;try{const _0x4af232=_0x10e2c0[_0x468f68([0x73,0x70,0x6c,0x69,0x74])](_0x468f68([0x2e])),[_0x5a58c1,_0x447113,_0x1d8fe3]=_0x4af232;return _0x250db6(_0x5a58c1),await _0x290e89(_0x5a58c1,_0x447113,_0x1d8fe3),_0x2395d3;}catch{return!0x1;}function _0x250db6(_0x202609){const _0x128f45=_0x23fe21(_0x202609);_0x128f45&&_0x128f45[_0x468f68([0x61,0x6c,0x67])]==_0x468f68([0x45,0x53,0x32,0x35,0x36])||(_0x2395d3=!0x1);}async function _0x290e89(_0x27e937,_0x33763b,_0x14ee6c){const _0x44f7dd=window[_0x468f68([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x468f68([0x66,0x72,0x6f,0x6d])](_0x5caf96(_0x14ee6c),_0x9b6c87=>_0x9b6c87[_0x468f68([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x496dd5=new window[(_0x468f68([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x468f68([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27e937+_0x468f68([0x2e])+_0x33763b),_0x3cf80c=window[_0x468f68([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x468f68([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3cf80c)return;const _0x5c4f06=await _0x3cf80c[_0x468f68([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x468f68([0x6a,0x77,0x6b]),_0x519662,{[_0x468f68([0x6e,0x61,0x6d,0x65])]:_0x468f68([0x45,0x43,0x44,0x53,0x41]),[_0x468f68([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x468f68([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x468f68([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3cf80c[_0x468f68([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x468f68([0x6e,0x61,0x6d,0x65])]:_0x468f68([0x45,0x43,0x44,0x53,0x41]),[_0x468f68([0x68,0x61,0x73,0x68])]:{[_0x468f68([0x6e,0x61,0x6d,0x65])]:_0x468f68([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c4f06,_0x44f7dd,_0x496dd5)||(_0x2395d3=!0x1);}}function _0x23fe21(_0x36a6b5){return _0x36a6b5[_0x468f68([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x468f68([0x65,0x79]))?JSON[_0x468f68([0x70,0x61,0x72,0x73,0x65])](_0x5caf96(_0x36a6b5)):null;}function _0x5caf96(_0x11a7dd){return window[_0x468f68([0x61,0x74,0x6f,0x62])](_0x11a7dd[_0x468f68([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x468f68([0x2b]))[_0x468f68([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x468f68([0x2f])));}function _0x20c018(_0x1c9ad2){let _0x14d260=0x1505;function _0x684f3f(_0x56923f){for(let _0x5c3c28=0x0;_0x5c3c28<_0x56923f[_0x468f68([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c3c28++){const _0xf55647=_0x56923f[_0x468f68([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c3c28);_0x14d260=(_0x14d260<<0x5)+_0x14d260+_0xf55647,_0x14d260&=_0x14d260;}}function _0x264d78(_0x38662c){Array[_0x468f68([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x38662c)?_0x38662c[_0x468f68([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x264d78):_0x38662c&&typeof _0x38662c==_0x468f68([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x468f68([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x38662c)[_0x468f68([0x73,0x6f,0x72,0x74])]()[_0x468f68([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc28d9e,_0x3a6df9])=>{_0x684f3f(_0xc28d9e),_0x264d78(_0x3a6df9);}):_0x684f3f(window[_0x468f68([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x38662c));}return _0x264d78(_0x1c9ad2),_0x14d260>>>0x0;}function _0x1713f5(_0x540b89){return _0x540b89[_0x468f68([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x468f68([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x468f68([0x30]));}function _0x5558f2(_0x2b20ec){return _0x2b20ec[_0x468f68([0x73,0x70,0x6c,0x69,0x74])]('')[_0x468f68([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x468f68([0x6a,0x6f,0x69,0x6e])]('');}function _0x2437ba(){}function _0x468f68(_0x4f01a6){return _0x4f01a6['map'](_0xc2d545=>String['fromCharCode'](_0xc2d545))['join']('');}_0x43694f(await _0x8b2f10());}(this);}['_initSchema'](){const _0x32cfeb=this['editor']['model']['schema'];_0x32cfeb['isRegistered']('imageBlock')&&_0x32cfeb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x32cfeb['isRegistered']('imageInline')&&_0x32cfeb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x17e13d=this['editor'];_0x17e13d['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x17e13d['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1fcd5c=>_0x1fcd5c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3338cc=_0x17e13d['commands']['get']('replaceImageSource');_0x3338cc&&this['listenTo'](_0x3338cc,'cleanupImage',(_0x36e9e6,[_0x2b7133,_0x1e75cb])=>{_0x2b7133['removeAttribute']('uploadcareImageId',_0x1e75cb);});}['_initConfig'](){const _0x5c366a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4e9a6f=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x32c812(_0x46ac85['document'],'uc-config',{..._0x5c366a,'pubkey':_0x4e9a6f,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4543c2=>{if('closeMax'==_0x4543c2)return'#uc-icon-arrow-down';},_0x46ac85['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x32c812(_0x46ac85['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x46ac85['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x44f57d=this['editor']['commands']['get']('insertImage');_0x44f57d&&this['listenTo'](_0x44f57d,'execute',()=>{const _0x19e20e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x19e20e&&_0x19e20e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x19e20e);});});const _0xdb47cd=this['editor']['commands']['get']('uploadcareImageReplace');_0xdb47cd&&this['listenTo'](_0xdb47cd,'execute',()=>{const _0x36e2ab=this['editor']['model']['document']['selection']['getSelectedElement']();_0x36e2ab&&_0x36e2ab['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x36e2ab);});});}}class tt extends _0x55ddf0{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3bb7fd){super(_0x3bb7fd),_0x3bb7fd['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x197638['defineComponents'](_0x197638),this['_defineLocale']();}['_defineLocale'](){const _0x599718=this['editor']['config']['get']('uploadcare.locale'),_0x39b421=this['editor']['locale']['contentLanguage'];_0x599718&&_0x197638['defineLocale'](_0x39b421,_0x599718);}}class ii extends _0x2e0ada{constructor(_0x525d1f){super(_0x525d1f);const t=_0x525d1f['t'],_0x3286c0=this['bindTemplate'],_0x48628e=new _0x31f18b();_0x48628e['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':[_0x48628e,{'text':_0x3286c0['to']('imageUploadProgress',_0x45d44e=>t('Loading\x20image...')+'\x20('+(_0x45d44e||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x2e0ada{constructor(_0x54cf0c){super(_0x54cf0c);const t=_0x54cf0c['t'];this['set']('errorType',null);const _0x2f2ff5=new _0x2912d2(_0x54cf0c);_0x2f2ff5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2f2ff5['withText']=!0x0,_0x2f2ff5['class']='ck-button-action',_0x2f2ff5['on']('execute',()=>{this['fire']('retry');}),_0x2f2ff5['bind']('isVisible')['to'](this,'errorType',_0x4d5f84=>'NotFound'!==_0x4d5f84);const _0x2941f9=new _0x37d47d();_0x2941f9['content']=_0x11c53b,_0x2941f9['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x793761=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':[_0x2941f9,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x793761['to']('errorType',_0x45275d=>t('NotFound'!==_0x45275d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2f2ff5]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x2e0ada{constructor(_0x320fa3,_0x471854){super(_0x320fa3);const _0x584936=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x471854,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x584936['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x58bdad,_0x4e0b21,_0x2eab56){super(_0x58bdad),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x58bdad),this['_errorView']=new ti(_0x58bdad),this['_editingView']=new ei(_0x58bdad,_0x2eab56),this['_focusableView']=new _0x2e0ada(_0x58bdad),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4e0b21),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'],_0x12730b=>{this['_addUploadcareImageEditorListeners'](_0x12730b);});}),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'](_0x3110ab,_0x18f4da){const _0x58b7ec='uc-cloud-image-editor',_0x39c811=_0x3110ab['querySelector'](_0x58b7ec);if(_0x39c811)return _0x18f4da(_0x39c811);const _0x4e91ca=new MutationObserver(_0x485aaf=>{const _0x317147=_0x485aaf['filter'](_0x9925f1=>_0x9925f1['target']===_0x3110ab&&_0x9925f1['addedNodes']['length']>0x0&&_0x9925f1['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x58b7ec);_0x317147['length']&&(_0x4e91ca['disconnect'](),_0x18f4da(_0x317147[0x0]['addedNodes'][0x0]));});_0x4e91ca['observe'](_0x3110ab,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x464fb6){_0x464fb6['addEventListener']('apply',_0x56b7ee=>{this['fire']('apply',{'imageSrc':_0x56b7ee['detail']['cdnUrl']});}),_0x464fb6['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x284938(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3e5d3e,_0x2b4625,_0xece643){super(),this['_editor']=_0x3e5d3e,this['_dialog']=_0x2b4625,this['_imageElement']=_0xece643,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 _0x477160=this['_imageElement'],_0x12eb30=_0x477160['getAttribute']('uploadcareImageId'),_0x564a98=_0x477160['getAttribute']('src');if(_0x12eb30)await this['_loadImageInfo'](_0x12eb30,_0x564a98);else{if(this['_imageCache']['has'](_0x564a98)){const _0x338341=this['_imageCache']['get'](_0x564a98);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x338341['url'],this['imageDimension']=_0x338341['dimension'],this['imageId']=_0x338341['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4d039a}=this['_editor'],t=_0x4d039a['t'],_0x1618e0=new X(_0x4d039a,this['imageStatus'],this['_attributes']);_0x1618e0['bind']('status')['to'](this,'imageStatus'),_0x1618e0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1618e0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1618e0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1618e0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4de65f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1618e0,'position':_0x2956ae['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1618e0['focus']();},'onHide':()=>{_0x1618e0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3881f1=>!M(_0x3881f1,_0x1618e0['element'])}});}['_loadImageInfo'](_0x485714,_0x4752b4){return j['getInfo'](_0x485714,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x394fb2=>{const {width:_0x4aed2f,height:_0x57ac0d}=_0x394fb2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4752b4,this['imageDimension']={'width':_0x4aed2f,'height':_0x57ac0d},this['imageId']=_0x485714;})['catch'](_0x17cfe0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x17cfe0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x53d1ad,_0x44ccdd){return this['_getImageAsFile'](_0x53d1ad)['then'](_0x4b913a=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x44ccdd['signal'],'file':_0x4b913a,'onProgress':_0x52ae84=>{_0x52ae84&&_0x52ae84['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x52ae84['value']));}}))['then'](_0x5d0733=>{const {width:_0x5e6fb2,height:_0x462917}=_0x5d0733['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5d0733['cdnUrl'],this['imageDimension']={'width':_0x5e6fb2,'height':_0x462917},this['imageId']=_0x5d0733['uuid'],this['imageUploadProgress']=null;const _0x3d75b8=_0x53d1ad['getAttribute']('src');this['_imageCache']['set'](_0x3d75b8,{'id':_0x5d0733['uuid'],'url':_0x5d0733['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x52235f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x52235f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1e56bc,_0x27ed31){_0x1e56bc['on']('apply',(_0x3a27a1,_0xedef75)=>{this['_replaceImage'](_0x27ed31,_0xedef75['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1e56bc['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1e56bc['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4bf642,_0x5b97ea,_0x81aead){const _0x420419=this['_editor'],{width:_0x2a9885,height:_0x4e21e7}=F(_0x5b97ea,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2b1472,imageSources:_0x182214}=C(_0x5b97ea,_0x2a9885);_0x420419['model']['change'](_0x5e4f84=>{if('$graveyard'===_0x4bf642['root']['rootName']){_0x420419['execute']('insertImage',{'imageType':_0x4bf642['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4bf642['getAttributes']()),'uploadcareImageId':_0x81aead,'src':_0x2b1472,'sources':_0x182214,'width':_0x2a9885,'height':_0x4e21e7}});const _0x4f9440=_0x4bf642['getChildren']();_0x4bf642=_0x420419['model']['document']['selection']['getSelectedElement']();for(const _0x48933a of _0x4f9440)_0x5e4f84['append'](_0x5e4f84['cloneElement'](_0x48933a),_0x4bf642);}else _0x5e4f84['setSelection'](_0x4bf642,'on'),_0x420419['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4bf642['getAttributes']()),'uploadcareImageId':_0x81aead,'src':_0x2b1472,'sources':_0x182214,'width':_0x2a9885,'height':_0x4e21e7},_0x4bf642);_0x5e4f84['setSelection'](_0x4bf642,'on');});}async['_getImageAsFile'](_0x3e06fd){const _0x5c214c=_0x46ac85['window'],_0x36c8f3=_0x46ac85['document']['location']['href'],_0x56d0d3=new _0x5c214c['URL'](_0x3e06fd['getAttribute']('src'),_0x36c8f3);if('data:'===_0x56d0d3['protocol']){const _0x2a19e1=_0x56d0d3['href']['split'](','),_0x122cd4=_0x2a19e1[0x0]['match'](/:(.*?);/)[0x1],_0x24b28b=_0x122cd4['split']('/')[0x1],_0x1b9146=_0x5c214c['atob'](_0x2a19e1[_0x2a19e1['length']-0x1]);let _0x4a533e=_0x1b9146['length'];const _0xe4b3a7=new _0x5c214c['Uint8Array'](_0x4a533e);for(;_0x4a533e--;)_0xe4b3a7[_0x4a533e]=_0x1b9146['charCodeAt'](_0x4a533e);return new _0x5c214c['File']([_0xe4b3a7],'image.'+_0x24b28b,{'type':_0x122cd4});}const _0x427a4d=_0x56d0d3['href']['split']('/'),_0x59d4c3=_0x427a4d[_0x427a4d['length']-0x1],_0x2207e8=_0x59d4c3['split']('.')[0x1];return _0x5c214c['fetch'](_0x56d0d3['href'])['then'](_0x3a83b0=>_0x3a83b0['clone']()['blob']())['then'](_0x42fce0=>new _0x5c214c['File']([_0x42fce0],_0x59d4c3,{'type':'image/'+_0x2207e8}));}}class N extends _0x269e16{['imageEditController'];static get['requires'](){return[_0x3f728a];}['_isEditable'];constructor(_0x48385d){super(_0x48385d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2d6966){const _0xcef7fc=R(_0x2d6966);return _0x4246df=>!(!_0x4246df||!_0x4246df['is']('element','imageBlock')&&!_0x4246df['is']('element','imageInline'))&&(!!_0x4246df['hasAttribute']('uploadcareImageId')||!!_0x4246df['hasAttribute']('src')&&_0xcef7fc(_0x4246df['getAttribute']('src')));}(_0x48385d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2f9f9e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2f9f9e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5d8a44=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5d8a44&&(_0x5d8a44['is']('element','imageBlock')||_0x5d8a44['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x3f728a),_0x5d8a44),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x269e16{['refresh'](){const _0x2e6192=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2e6192&&(_0x2e6192['is']('element','imageBlock')||_0x2e6192['is']('element','imageInline')));}['execute'](_0x2d2b2a){const _0x55c2ca=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xf1b9e9=>{_0xf1b9e9['setAttributes'](_0x2d2b2a,_0x55c2ca),_0xf1b9e9['removeAttribute']('srcset',_0x55c2ca),_0xf1b9e9['removeAttribute']('sizes',_0x55c2ca);});}}class m extends _0x55ddf0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2b1861,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x21464d}=this;_0x21464d['commands']['add']('uploadcareImageEdit',new N(_0x21464d)),_0x21464d['commands']['add']('uploadcareImageReplace',new O(_0x21464d));}}class g extends _0x55ddf0{['_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 _0x3a433c=this['editor'];_0x3a433c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x151b0c=>{const _0x336b37=_0x3a433c['commands']['get']('uploadcareImageEdit'),_0x437bb8=new _0x2912d2(_0x151b0c),t=_0x151b0c['t'];return _0x437bb8['set']({'icon':_0x4de65f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x437bb8['bind']('isEnabled')['to'](_0x336b37),_0x437bb8['bind']('isOn')['to'](_0x336b37,'isActive'),this['listenTo'](_0x437bb8,'execute',()=>{_0x3a433c['execute']('uploadcareImageEdit'),_0x3a433c['editing']['view']['focus']();}),_0x437bb8;}),this['_initConfig']();}['_initConfig'](){const _0x2e39cb=_0x32c812(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2e39cb),this['listenTo'](this['editor'],'destroy',()=>{_0x2e39cb['remove']();});}}class et extends _0x55ddf0{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x393cb0,Command as _0x14fce6}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3ece2a,IconGooglePhotos as _0x359411,IconGoogleDrive as _0x39ccb0,IconFacebook as _0x48a015,IconDropbox as _0x5abe0c,IconUploadcareLink as _0x335b5f,IconUploadcareImageUpload as _0x4f69ca,IconError as _0x3b505b,IconUploadcareImageEdit as _0x4d436f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x205a9f,MenuBarMenuListItemButtonView as _0x6c4937,View as _0x499e59,FocusCycler as _0x1dcd86,Dialog as _0x9a7777,DialogViewPosition as _0x62811e,SpinnerView as _0x1327c8,IconView as _0x12817f,Notification as _0x143939}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x33438e,DomEmitterMixin as _0x32dfb1,global as _0x3bcb22,getAncestors as _0x3da32d,ObservableMixin as _0x4b976d,uid as _0x1bb90a,createElement as _0x4c3830}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x852788}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x18963d,info as _0x3c46d6}from'@uploadcare/upload-client';import*as _0x2fb1ea from'@uploadcare/file-uploader';var K=function(_0x31af03){return _0x31af03['Local']='local',_0x31af03['URL']='url',_0x31af03['Dropbox']='dropbox',_0x31af03['GDrive']='gdrive',_0x31af03['Facebook']='facebook',_0x31af03['GPhotos']='gphotos',_0x31af03['OneDrive']='onedrive',_0x31af03;}({});function R(_0x494763,_0xc01444,_0x6cda6f){const t=_0x494763['t'],_0x4bf5d4=_0x494763['t'];switch(_0xc01444){case K['Local']:return{'text':_0x4bf5d4('Insert'===_0x6cda6f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4bf5d4('From\x20computer')};case K['URL']:return{'text':'Insert'===_0x6cda6f?_0x4bf5d4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4bf5d4('Via\x20URL')};case K['Dropbox']:return{'text':t('Insert'===_0x6cda6f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case K['Facebook']:return{'text':t('Insert'===_0x6cda6f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case K['GDrive']:return{'text':t('Insert'===_0x6cda6f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case K['GPhotos']:return{'text':t('Insert'===_0x6cda6f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case K['OneDrive']:return{'text':t('Insert'===_0x6cda6f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xc01444;}}class S extends _0x393cb0{['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 _0x3f2248=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5bb922;for(const _0x3ea66b in _0x3f2248){const _0x53a53f=_0x3ea66b,_0x2cb41d=_0x3f2248[_0x53a53f];if('uploadcareLicenseKeyValid'==_0x2cb41d||'uploadcareLicenseKeyInvalid'==_0x2cb41d||'uploadcareLicenseKeyExpired'==_0x2cb41d||'uploadcareLicenseKeyDomainLimit'==_0x2cb41d||'uploadcareLicenseKeyNotAllowed'==_0x2cb41d||'uploadcareLicenseKeyEvaluationLimit'==_0x2cb41d||'uploadcareLicenseKeyTrialLimit'==_0x2cb41d||'uploadcareLicenseKeyUsageLimit'==_0x2cb41d){delete _0x3f2248[_0x53a53f],_0x5bb922=_0x2cb41d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5bb922&&_0x3f2248['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5bb922&&_0x3f2248['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5bb922&&_0x3f2248['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5bb922&&_0x3f2248['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5bb922&&_0x3f2248['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5bb922&&_0x3f2248['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5bb922&&_0x3f2248['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x172549}=this,_0x113d88=_0x172549['commands']['get']('uploadcare');if(!_0x113d88)return;const _0x25c318=this['_normalizeConfigSourceList'](_0x172549['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5218c7,_0x3d46c3)=>{const _0x468dd7=this['_getIntegrationKey'](_0x3d46c3['type']);return _0x5218c7[_0x468dd7]||(_0x5218c7[_0x468dd7]=[]),_0x5218c7[_0x468dd7]['push'](_0x3d46c3),_0x5218c7;},{});_0x172549['plugins']['has']('ImageInsertUI')&&_0x172549['commands']['get']('uploadcare')&&Object['entries'](_0x25c318)['forEach'](([_0x448204,_0x119b73])=>{_0x172549['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x448204,'observable':()=>_0x113d88,'buttonViewCreator':()=>this['_createToolbarButton'](_0x119b73),'formViewCreator':()=>this['_createDropdownButtons'](_0x119b73),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x119b73),'override':'assetManager'!==_0x448204});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2117e9){const {locale:_0x2d0bfa}=this['editor'];return _0x2117e9['map'](_0xad5d86=>{const _0x12f1fa=R(_0x2d0bfa,_0xad5d86,'Insert');switch(_0xad5d86){case K['Local']:return{'icon':_0x4f69ca,'type':K['Local'],..._0x12f1fa};case K['URL']:return{'icon':_0x335b5f,'type':K['URL'],..._0x12f1fa};case K['Dropbox']:return{'icon':_0x5abe0c,'type':K['Dropbox'],..._0x12f1fa};case K['Facebook']:return{'icon':_0x48a015,'type':K['Facebook'],..._0x12f1fa};case K['GDrive']:return{'icon':_0x39ccb0,'type':K['GDrive'],..._0x12f1fa};case K['GPhotos']:return{'icon':_0x359411,'type':K['GPhotos'],..._0x12f1fa};case K['OneDrive']:return{'icon':_0x3ece2a,'type':K['OneDrive'],..._0x12f1fa};}});}['_getIntegrationKey'](_0x29e550){switch(_0x29e550){case K['Local']:return'upload';case K['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x487911,_0x4e52ec){const _0x2c7d07=this['editor'],_0x188e6a=new _0x487911(_0x2c7d07['locale']),_0x1cb338=_0x2c7d07['commands']['get']('uploadcare');return _0x188e6a['bind']('isEnabled')['to'](_0x1cb338),_0x188e6a['on']('execute',()=>{_0x1cb338['execute'](_0x4e52ec);}),_0x188e6a;}['_createToolbarButton'](_0x5ed846){const {locale:_0x9be110}=this['editor'],_0x4acb18=this['editor']['plugins']['get']('ImageInsertUI'),_0x187547=_0x5ed846[0x0],_0x6bf886=this['_createButton'](_0x205a9f,_0x187547['type']);return _0x6bf886['icon']=_0x187547['icon'],_0x6bf886['bind']('label')['to'](_0x4acb18,'isImageSelected',_0x3157b7=>R(_0x9be110,_0x187547['type'],_0x3157b7?'Replace':'Insert')['text']),_0x6bf886['tooltip']=!0x0,_0x6bf886;}['_createDropdownButtons'](_0x640c3){const {locale:_0x2dfaed}=this['editor'],_0x46d8b9=this['editor']['plugins']['get']('ImageInsertUI');return _0x640c3['map'](_0x5b56bb=>{const _0x3bca02=this['_createButton'](_0x205a9f,_0x5b56bb['type']);return _0x3bca02['withText']=!0x0,_0x3bca02['icon']=_0x5b56bb['icon'],_0x3bca02['bind']('label')['to'](_0x46d8b9,'isImageSelected',_0x99d04a=>R(_0x2dfaed,_0x5b56bb['type'],_0x99d04a?'Replace':'Insert')['text']),_0x3bca02;});}['_createMenuBarButtons'](_0x156e8c){return _0x156e8c['map'](_0x59e48d=>{const _0x3959a7=this['_createButton'](_0x6c4937,_0x59e48d['type']);return _0x3959a7['icon']=_0x59e48d['icon'],_0x3959a7['label']=_0x59e48d['shortText'],_0x3959a7;});}}class A extends _0x499e59{['focusTracker'];['focusCycler'];constructor(_0x3428e5){super(_0x3428e5),this['focusTracker']=new _0x33438e(),this['focusCycler']=new _0x1dcd86({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class O extends A{constructor(_0x5ae57c,_0x12952a){super(_0x5ae57c),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-'+_0x12952a}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function D(_0x1e78f3,_0x21cc7a){const _0x36e868=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x165983=>_0x165983<=_0x21cc7a)['map'](_0x370deb=>_0x1e78f3['replace'](/\/$/,'')+'/-/resize/'+_0x370deb+'x/\x20'+_0x370deb+'w');return{'imageFallbackUrl':_0x1e78f3,'imageSources':[{'srcset':_0x36e868['join'](',\x20'),'sizes':'(max-width:\x20'+_0x21cc7a+'px)\x20100vw,\x20'+_0x21cc7a+'px','type':'image/webp'}]};}function F(_0x41a09a,_0x4f7bb4,_0x53ea9d){const _0x43ccd2=_0x41a09a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x43ccd2?parseInt(_0x43ccd2[0x1],0xa):_0x4f7bb4,'height':_0x43ccd2?parseInt(_0x43ccd2[0x2],0xa):_0x53ea9d};}function $(_0x59c14c,_0x1baa15){const _0x427c50=new(_0x32dfb1())(),_0x1f389f=_0x59c14c['plugins']['get']('ImageUtils'),_0x2cac47=_0x59c14c['editing']['mapper']['toViewElement'](_0x1baa15),_0x32c71a=_0x1f389f['findViewImgElement'](_0x2cac47),_0x36c638=_0x59c14c['editing']['view']['domConverter']['viewToDom'](_0x32c71a),_0x34297a=_0x1baa15['getAttribute']('width'),_0x10eac4=_0x1baa15['getAttribute']('height'),_0x397e31='image-processing';_0x59c14c['editing']['view']['change'](_0x4eecb9=>{_0x4eecb9['addClass'](_0x397e31,_0x2cac47),_0x4eecb9['setStyle']('aspect-ratio',_0x34297a+'/'+_0x10eac4,_0x32c71a);}),_0x427c50['listenTo'](_0x36c638,'load',()=>{_0x427c50['stopListening'](_0x36c638,'load'),_0x59c14c['editing']['view']['change'](_0x4cff66=>{_0x4cff66['removeClass'](_0x397e31,_0x2cac47),_0x4cff66['removeStyle']('aspect-ratio',_0x32c71a);});});}function B(_0x209848){if(Array['isArray'](_0x209848)){const _0x2ee9ac=_0x209848['map'](B);return _0xb9d2c9=>_0x2ee9ac['some'](_0x25926a=>_0x25926a(_0xb9d2c9));}if('origin'==_0x209848){const _0x1406d0=_0x3bcb22['window']['location']['origin'];return _0x88f489=>new URL(_0x88f489,_0x3bcb22['document']['baseURI'])['origin']==_0x1406d0;}return'function'==typeof _0x209848?_0x209848:_0x209848 instanceof RegExp?_0x103daf=>!(!_0x103daf['match'](_0x209848)&&!_0x103daf['replace'](/^https?:\/\//,'')['match'](_0x209848)):()=>!0x1;}function V(_0x8bf85f,_0xa2539e){return _0x3da32d(_0x8bf85f['target'])['includes'](_0xa2539e);}class j extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4b976d(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4f1679,_0x38fcf8,_0x44be87){super(),this['_editor']=_0x4f1679,this['_editing']=_0x38fcf8,this['_dialog']=_0x4f1679['plugins']['get'](_0x9a7777),this['_api']=_0x38fcf8['ctxElement']['getAPI'](),this['_type']=_0x44be87,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:_0x80ed2e,model:_0x2101d9}=this['_editor'],_0x3a2911=_0x2101d9['document']['selection']['getSelectedElement'](),_0x4c9730=_0x3a2911&&(_0x3a2911['is']('element','imageBlock')||_0x3a2911['is']('element','imageInline'));this['_formView']=new O(_0x80ed2e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4f69ca,'title':R(_0x80ed2e,this['_type'],_0x4c9730?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x62811e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2c81be=>!V(_0x2c81be,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x31355e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x255106=>{const _0x411e5a=_0x31355e['length'];for(const _0x33e08e of _0x31355e){const _0x23f907=_0x33e08e===_0x31355e[_0x411e5a-0x1],{cdnUrl:_0x591bf7,fileInfo:_0x314493}=_0x33e08e;if(!_0x591bf7||!_0x314493)continue;const {width:_0x20c11f,height:_0x3de71b}=_0x314493['imageInfo'],_0x559d9f=F(_0x591bf7,_0x20c11f,_0x3de71b),_0x3654b7=D(_0x591bf7,_0x559d9f['width']),_0x3ed154={'id':_0x314493['uuid'],'type':'image','attributes':{'imageDimension':_0x559d9f,..._0x3654b7}};this['_insertAsset'](_0x3ed154,_0x23f907,_0x255106);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2ee848=>{'idle'===_0x2ee848['detail']['status']&&!_0x2ee848['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===K['Local']?this['_api']['setCurrentActivity'](K['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3d1376,_0x344006,_0xf2a523){const _0x5da675=this['_editor']['model']['document']['selection'],_0x41b9dc=_0x5da675['getSelectedElement'](),_0xc8e163=!(!_0x41b9dc||!_0x41b9dc['is']('element','imageInline'));_0xf2a523['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3d1376,_0xc8e163),_0x344006||_0xf2a523['setSelection'](_0x5da675['getLastPosition']());}['_insertImage'](_0x3f6df9,_0x2bcde1){const _0x2cc04e=this['_editor'],{imageDimension:_0x5e2256,imageFallbackUrl:_0x35f025,imageSources:_0x3adcb3}=_0x3f6df9['attributes'];_0x2cc04e['execute']('insertImage',{'imageType':_0x2bcde1?'imageInline':null,'source':{'uploadcareImageId':_0x3f6df9['id'],'src':_0x35f025,'sources':_0x3adcb3,..._0x5e2256}});}}class M extends _0x14fce6{['_editing'];['_controller']=null;static get['requires'](){return[_0x9a7777,z];}constructor(_0x105e63){super(_0x105e63),this['_editing']=_0x105e63['plugins']['get'](z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x444796){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new j(this['editor'],this['_editing'],_0x444796);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class q{static['upload']({file:_0x388045,..._0x43179b}){return _0x18963d(_0x388045,_0x43179b);}static['getInfo'](_0x2cea9d,_0x25303a){return _0x3c46d6(_0x2cea9d,_0x25303a);}}class W extends _0x393cb0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x852788,z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x7313=this['editor'];if(!!!_0x7313['config']['get']('uploadcare'))return;_0x7313['plugins']['get'](_0x852788)['createUploadAdapter']=_0x233140=>new G(_0x233140,_0x7313),_0x7313['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x502e3a,{imageElement:_0x140b2b,data:_0x2d690e})=>{_0x7313['model']['change'](_0x33c677=>{_0x33c677['setAttribute']('uploadcareImageId',_0x2d690e['uploadcareImageId'],_0x140b2b);});});}}class G{['loader'];['editor'];['controller'];constructor(_0x52ca22,_0x5af3f9){this['loader']=_0x52ca22,this['editor']=_0x5af3f9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x25d808=await this['loader']['file'];return q['upload']({'file':_0x25d808,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x4ea97e=>{_0x4ea97e&&_0x4ea97e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4ea97e['value']);}})['then'](async _0x12e707=>{const {imageFallbackUrl:_0x3bbae9,imageSources:_0x42ff66}=D(_0x12e707['cdnUrl'],_0x12e707['imageInfo']['width']);return{'uploadcareImageId':_0x12e707['uuid'],'default':_0x3bbae9,'sources':_0x42ff66};})['catch'](()=>{const _0x64840c=t('Cannot\x20upload\x20file:')+('\x20'+_0x25d808['name']+'.');return Promise['reject'](_0x64840c);});}['abort'](){this['controller']['abort']();}}class z extends _0x393cb0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',W,_0x9a7777];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x455561){super(_0x455561),this['ucContextId']=_0x1bb90a();}['init'](){const _0x45420a=this['editor'];_0x45420a['commands']['add']('uploadcare',new M(_0x45420a));}['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 _0x2c1620=_0x3bcb22['document']['querySelector']('input[uploadcare-file-input]');_0x2c1620&&_0x2c1620['remove']();}),async function(_0x5931f8){const _0x4d99fb=_0xb1081f([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]),_0x3eabc4=0x535f8c3a,_0x332768=0x5358f232^_0x3eabc4,_0x34be0a=window[_0xb1081f([0x44,0x61,0x74,0x65])][_0xb1081f([0x6e,0x6f,0x77])](),_0x5d549b=_0x5931f8[_0xb1081f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5d97e9=new window[(_0xb1081f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b7a59=>{_0x5d549b[_0xb1081f([0x6f,0x6e,0x63,0x65])](_0xb1081f([0x72,0x65,0x61,0x64,0x79]),_0x3b7a59);}),_0x5b1cc6={[_0xb1081f([0x6b,0x74,0x79])]:_0xb1081f([0x45,0x43]),[_0xb1081f([0x75,0x73,0x65])]:_0xb1081f([0x73,0x69,0x67]),[_0xb1081f([0x63,0x72,0x76])]:_0xb1081f([0x50,0x2d,0x32,0x35,0x36]),[_0xb1081f([0x78])]:_0xb1081f([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]),[_0xb1081f([0x79])]:_0xb1081f([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]),[_0xb1081f([0x61,0x6c,0x67])]:_0xb1081f([0x45,0x53,0x32,0x35,0x36])},_0x4e448c=_0x5d549b[_0xb1081f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb1081f([0x67,0x65,0x74])](_0xb1081f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d2b85(){let _0x6f7309,_0x251b29=null,_0x516a59=null;try{if(_0x4e448c==_0xb1081f([0x47,0x50,0x4c]))return _0xb1081f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x6f7309=_0x527815(),!_0x6f7309)return _0xb1081f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x6f7309[_0xb1081f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x516a59=_0x43f246(_0x6f7309[_0xb1081f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x6f7309[_0xb1081f([0x6a,0x74,0x69])])),await _0x24b911()?_0x23115b()?_0x527df5()?_0xb1081f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x8edd32()?(_0x6f7309[_0xb1081f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb1081f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x251b29=_0x2eed3a(_0xb1081f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x6f7309[_0xb1081f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb1081f([0x74,0x72,0x69,0x61,0x6c])&&(_0x251b29=_0x2eed3a(_0xb1081f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x141ccc()):_0xb1081f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb1081f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb1081f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xb1081f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x527df5(){const _0x579119=[_0xb1081f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb1081f([0x74,0x72,0x69,0x61,0x6c])][_0xb1081f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6f7309[_0xb1081f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34be0a/0x3e8:0xe10*_0x332768;return _0x6f7309[_0xb1081f([0x65,0x78,0x70])]<_0x579119;}function _0x23115b(){const _0x54ba80=_0x6f7309[_0xb1081f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x54ba80&&(!!_0x54ba80[_0xb1081f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb1081f([0x2a]))||!!_0x54ba80[_0xb1081f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb1081f([0x55,0x50,0x4c,0x43])));}function _0x8edd32(){const _0x33171b=_0x6f7309[_0xb1081f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x33171b||0x0==_0x33171b[_0xb1081f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x477881}=new URL(window[_0xb1081f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x33171b[_0xb1081f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x477881))return!0x0;const _0x4e68c1=_0x477881[_0xb1081f([0x73,0x70,0x6c,0x69,0x74])](_0xb1081f([0x2e]));return _0x33171b[_0xb1081f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x116329=>_0x116329[_0xb1081f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb1081f([0x2a])))[_0xb1081f([0x6d,0x61,0x70])](_0xcb9607=>_0xcb9607[_0xb1081f([0x73,0x70,0x6c,0x69,0x74])](_0xb1081f([0x2e])))[_0xb1081f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d25d4=>_0x2d25d4[_0xb1081f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4e68c1[_0xb1081f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb1081f([0x6d,0x61,0x70])](_0x1fa023=>Array(_0x4e68c1[_0xb1081f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1fa023[_0xb1081f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb1081f([0x66,0x69,0x6c,0x6c])](_0x1fa023[0x0]===_0xb1081f([0x2a])?_0xb1081f([0x2a]):'')[_0xb1081f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1fa023))[_0xb1081f([0x73,0x6f,0x6d,0x65])](_0x4904e3=>_0x4e68c1[_0xb1081f([0x65,0x76,0x65,0x72,0x79])]((_0x515dd1,_0xd3fd96)=>_0x4904e3[_0xd3fd96]===_0x515dd1||_0x4904e3[_0xd3fd96]===_0xb1081f([0x2a])));}function _0x141ccc(){return _0x251b29&&_0x516a59?new window[(_0xb1081f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b9cfa,_0x590934)=>{_0x251b29[_0xb1081f([0x74,0x68,0x65,0x6e])](_0x4b9cfa,_0x590934),_0x516a59[_0xb1081f([0x74,0x68,0x65,0x6e])](_0x477cfb=>{_0x477cfb!=_0xb1081f([0x56,0x61,0x6c,0x69,0x64])&&_0x4b9cfa(_0x477cfb);},_0x590934);}):_0x251b29||_0x516a59||_0xb1081f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x43f246(_0x12ed4b,_0x464795){return new window[(_0xb1081f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c91ae=>{if(_0x1536a8())return _0x3c91ae(_0xb1081f([0x56,0x61,0x6c,0x69,0x64]));_0x442413(),_0x5d549b[_0xb1081f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb1081f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f76a8=!0x1;const _0x30f58f=_0x1bb90a();function _0x9908a8(_0x1f918c){return!!_0x1f918c&&(typeof _0x1f918c===_0xb1081f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f918c===_0xb1081f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f918c[_0xb1081f([0x74,0x68,0x65,0x6e])]===_0xb1081f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f918c[_0xb1081f([0x63,0x61,0x74,0x63,0x68])]===_0xb1081f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b9a76(_0x3c59ba){_0x5548d6(_0x3c59ba)[_0xb1081f([0x74,0x68,0x65,0x6e])](_0x37ed3f=>{if(!_0x37ed3f||_0x37ed3f[_0xb1081f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb1081f([0x6f,0x6b]))return _0xb1081f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1846db(_0xe5d05d(_0x30f58f+_0x464795))!=_0x37ed3f[_0xb1081f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb1081f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb1081f([0x56,0x61,0x6c,0x69,0x64]);})[_0xb1081f([0x74,0x68,0x65,0x6e])](_0x5b0c74=>(_0x56b4f2(),_0x5b0c74),()=>{const _0x4749a1=_0x4c5348();return null==_0x4749a1?(_0x56b4f2(),_0xb1081f([0x56,0x61,0x6c,0x69,0x64])):_0xb1081f(_0x34be0a-_0x4749a1>(0x7753083a^_0x3eabc4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb1081f([0x74,0x68,0x65,0x6e])](_0x3c91ae)[_0xb1081f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c91ae(_0xb1081f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5c5df4=0x536962ba^_0x3eabc4;function _0x56b4f2(){const _0x513f59=_0xb1081f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1846db(_0xe5d05d(_0x12ed4b)),_0x10e6fb=_0x1c2a64(_0x1846db(window[_0xb1081f([0x4d,0x61,0x74,0x68])][_0xb1081f([0x63,0x65,0x69,0x6c])](_0x34be0a/_0x5c5df4)));window[_0xb1081f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb1081f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x513f59,_0x10e6fb);}function _0x4c5348(){const _0x435dd9=_0xb1081f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1846db(_0xe5d05d(_0x12ed4b)),_0x51ad41=window[_0xb1081f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb1081f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x435dd9);return _0x51ad41?window[_0xb1081f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c2a64(_0x51ad41),0x10)*_0x5c5df4:null;}function _0x5548d6(_0x5502f7){return new window[(_0xb1081f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x812d12,_0x3075b2)=>{_0x5502f7[_0xb1081f([0x74,0x68,0x65,0x6e])](_0x812d12,_0x3075b2),window[_0xb1081f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3075b2,0x535e58fa^_0x3eabc4);});}}_0x5d549b[_0xb1081f([0x6f,0x6e])](_0xb1081f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ede50,_0x26160f)=>{if(_0x26160f[0x0]!=_0x12ed4b)return _0x3c91ae(_0xb1081f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26160f[0x1]={..._0x26160f[0x1],[_0xb1081f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x30f58f};},{[_0xb1081f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb1081f([0x68,0x69,0x67,0x68])}),_0x5d549b[_0xb1081f([0x6f,0x6e])](_0xb1081f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a1cbc=>{_0x9908a8(_0x1a1cbc[_0xb1081f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f76a8=!0x0,_0x4b9a76(_0x1a1cbc[_0xb1081f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb1081f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb1081f([0x6c,0x6f,0x77])}),_0x5d97e9[_0xb1081f([0x74,0x68,0x65,0x6e])](()=>{_0x3f76a8||_0x3c91ae(_0xb1081f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1536a8(){return _0x5d549b[_0xb1081f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb1081f([0x76,0x69,0x65,0x77])][_0xb1081f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb1081f([0x61,0x75,0x74,0x6f]);}function _0x442413(){_0x5d549b[_0xb1081f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb1081f([0x76,0x69,0x65,0x77])][_0xb1081f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb1081f([0x61,0x75,0x74,0x6f]);}}function _0x2eed3a(_0x3bb7f7){const _0xd46830=[new window[(_0xb1081f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x314c3d=>setTimeout(_0x314c3d,0x5356b2f6^_0x3eabc4)),_0x5d97e9[_0xb1081f([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb1081f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27c44f=>{let _0x29908b=0x0;_0x5d549b[_0xb1081f([0x6d,0x6f,0x64,0x65,0x6c])][_0xb1081f([0x6f,0x6e])](_0xb1081f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x182458,_0x22fbd5)=>{_0x22fbd5[0x0][_0xb1081f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x29908b++,_0x29908b==(0x535f89d2^_0x3eabc4)&&(_0x27c44f(),_0x182458[_0xb1081f([0x6f,0x66,0x66])]());});}))];return window[_0xb1081f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb1081f([0x72,0x61,0x63,0x65])](_0xd46830)[_0xb1081f([0x74,0x68,0x65,0x6e])](()=>_0x3bb7f7);}async function _0x489557(){await _0x5d97e9,_0x5d549b[_0xb1081f([0x6d,0x6f,0x64,0x65,0x6c])][_0xb1081f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e4b25,_0x5d549b[_0xb1081f([0x6d,0x6f,0x64,0x65,0x6c])][_0xb1081f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e4b25,_0x5d549b[_0xb1081f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb1081f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x49ddea(_0xa26b4a){const _0x24c33d=_0x2339ba();_0x5d549b[_0x24c33d]=_0xb1081f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xa26b4a,_0xa26b4a!=_0xb1081f([0x56,0x61,0x6c,0x69,0x64])&&_0x489557();}function _0x2339ba(){const _0x770dbc=window[_0xb1081f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb1081f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb1081f([0x6e,0x6f,0x77])]())[_0xb1081f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb1081f([0x2e]),'');let _0x400b9d=_0xb1081f([0x68]);for(let _0x2a459d=0x0;_0x2a459d<_0x770dbc[_0xb1081f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a459d+=0x2){let _0x33c1b1=window[_0xb1081f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x770dbc[_0xb1081f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a459d,_0x2a459d+0x2));_0x33c1b1>=_0x4d99fb[_0xb1081f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33c1b1-=_0x4d99fb[_0xb1081f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x400b9d+=_0x4d99fb[_0x33c1b1];}return _0x400b9d;}function _0x527815(){const _0x253fcd=_0x4e448c[_0xb1081f([0x73,0x70,0x6c,0x69,0x74])](_0xb1081f([0x2e]));if(0x3!=_0x253fcd[_0xb1081f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3687ff(_0x253fcd[0x1]);function _0x3687ff(_0xdfd9e6){const _0x5c90d0=_0x249656(_0xdfd9e6);return _0x5c90d0&&_0x98aa9a()?_0x5c90d0:null;function _0x98aa9a(){const _0x22e2e6=_0x5c90d0[_0xb1081f([0x6a,0x74,0x69])],_0x1fca20=window[_0xb1081f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22e2e6[_0xb1081f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22e2e6[_0xb1081f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x56fae3={..._0x5c90d0,[_0xb1081f([0x6a,0x74,0x69])]:_0x22e2e6[_0xb1081f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x22e2e6[_0xb1081f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x56fae3[_0xb1081f([0x76,0x63])],_0xe5d05d(_0x56fae3)==_0x1fca20;}}}async function _0x24b911(){let _0x98d943=!0x0;try{const _0x5a441f=_0x4e448c[_0xb1081f([0x73,0x70,0x6c,0x69,0x74])](_0xb1081f([0x2e])),[_0x2652ea,_0x1b9ce8,_0x33b7a5]=_0x5a441f;return _0x3e87b9(_0x2652ea),await _0x5ada9f(_0x2652ea,_0x1b9ce8,_0x33b7a5),_0x98d943;}catch{return!0x1;}function _0x3e87b9(_0x1d7f52){const _0xfdbb4c=_0x249656(_0x1d7f52);_0xfdbb4c&&_0xfdbb4c[_0xb1081f([0x61,0x6c,0x67])]==_0xb1081f([0x45,0x53,0x32,0x35,0x36])||(_0x98d943=!0x1);}async function _0x5ada9f(_0x241d19,_0x4019b9,_0x1b807c){const _0x5b0728=window[_0xb1081f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb1081f([0x66,0x72,0x6f,0x6d])](_0x1823e2(_0x1b807c),_0x49a98b=>_0x49a98b[_0xb1081f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5855e3=new window[(_0xb1081f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb1081f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x241d19+_0xb1081f([0x2e])+_0x4019b9),_0x29b0f4=window[_0xb1081f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb1081f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x29b0f4)return;const _0x3ddecc=await _0x29b0f4[_0xb1081f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb1081f([0x6a,0x77,0x6b]),_0x5b1cc6,{[_0xb1081f([0x6e,0x61,0x6d,0x65])]:_0xb1081f([0x45,0x43,0x44,0x53,0x41]),[_0xb1081f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb1081f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb1081f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x29b0f4[_0xb1081f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb1081f([0x6e,0x61,0x6d,0x65])]:_0xb1081f([0x45,0x43,0x44,0x53,0x41]),[_0xb1081f([0x68,0x61,0x73,0x68])]:{[_0xb1081f([0x6e,0x61,0x6d,0x65])]:_0xb1081f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3ddecc,_0x5b0728,_0x5855e3)||(_0x98d943=!0x1);}}function _0x249656(_0x39dbc0){return _0x39dbc0[_0xb1081f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb1081f([0x65,0x79]))?JSON[_0xb1081f([0x70,0x61,0x72,0x73,0x65])](_0x1823e2(_0x39dbc0)):null;}function _0x1823e2(_0x46b2e1){return window[_0xb1081f([0x61,0x74,0x6f,0x62])](_0x46b2e1[_0xb1081f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb1081f([0x2b]))[_0xb1081f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb1081f([0x2f])));}function _0xe5d05d(_0x2e210e){let _0x3f7c2e=0x1505;function _0x5f18bb(_0x231097){for(let _0x1ee60a=0x0;_0x1ee60a<_0x231097[_0xb1081f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ee60a++){const _0x2b5229=_0x231097[_0xb1081f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ee60a);_0x3f7c2e=(_0x3f7c2e<<0x5)+_0x3f7c2e+_0x2b5229,_0x3f7c2e&=_0x3f7c2e;}}function _0x3eac04(_0x28f52c){Array[_0xb1081f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x28f52c)?_0x28f52c[_0xb1081f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3eac04):_0x28f52c&&typeof _0x28f52c==_0xb1081f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb1081f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x28f52c)[_0xb1081f([0x73,0x6f,0x72,0x74])]()[_0xb1081f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10cda8,_0x34df21])=>{_0x5f18bb(_0x10cda8),_0x3eac04(_0x34df21);}):_0x5f18bb(window[_0xb1081f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x28f52c));}return _0x3eac04(_0x2e210e),_0x3f7c2e>>>0x0;}function _0x1846db(_0x301804){return _0x301804[_0xb1081f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb1081f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb1081f([0x30]));}function _0x1c2a64(_0x27d8b8){return _0x27d8b8[_0xb1081f([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb1081f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb1081f([0x6a,0x6f,0x69,0x6e])]('');}function _0x2e4b25(){}function _0xb1081f(_0x3a54a9){return _0x3a54a9['map'](_0x2f489a=>String['fromCharCode'](_0x2f489a))['join']('');}_0x49ddea(await _0x1d2b85());}(this);}['_initSchema'](){const _0x530034=this['editor']['model']['schema'];_0x530034['isRegistered']('imageBlock')&&_0x530034['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x530034['isRegistered']('imageInline')&&_0x530034['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x268187=this['editor'];_0x268187['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x268187['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x11669f=>_0x11669f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x177bd0=_0x268187['commands']['get']('replaceImageSource');_0x177bd0&&this['listenTo'](_0x177bd0,'cleanupImage',(_0x3db38b,[_0x2c4381,_0x3ff935])=>{_0x2c4381['removeAttribute']('uploadcareImageId',_0x3ff935);});}['_initConfig'](){const _0x2d6464=this['editor']['config']['get']('uploadcare.uploader')||{},_0x199bde=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4c3830(_0x3bcb22['document'],'uc-config',{..._0x2d6464,'pubkey':_0x199bde,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x180180=>{if('closeMax'==_0x180180)return'#uc-icon-arrow-down';},_0x3bcb22['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4c3830(_0x3bcb22['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3bcb22['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5bb646=this['editor']['commands']['get']('insertImage');_0x5bb646&&this['listenTo'](_0x5bb646,'execute',()=>{const _0x1a5f5a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a5f5a&&_0x1a5f5a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x1a5f5a);});});const _0x4d19b0=this['editor']['commands']['get']('uploadcareImageReplace');_0x4d19b0&&this['listenTo'](_0x4d19b0,'execute',()=>{const _0x47588f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x47588f&&_0x47588f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x47588f);});});}}class H extends _0x393cb0{static get['requires'](){return[z,S];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18fadd){super(_0x18fadd),_0x18fadd['config']['define']('uploadcare.uploader.sourceList',[K['Local'],K['URL']]),_0x2fb1ea['defineComponents'](_0x2fb1ea),this['_defineLocale']();}['_defineLocale'](){const _0x17ca1c=this['editor']['config']['get']('uploadcare.locale'),_0x5eb832=this['editor']['locale']['contentLanguage'];_0x17ca1c&&_0x2fb1ea['defineLocale'](_0x5eb832,_0x17ca1c);}}class J extends _0x499e59{constructor(_0x35b8e4){super(_0x35b8e4);const t=_0x35b8e4['t'],_0x1fb01b=this['bindTemplate'],_0x43772e=new _0x1327c8();_0x43772e['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':[_0x43772e,{'text':_0x1fb01b['to']('imageUploadProgress',_0x2cd3b1=>t('Loading\x20image...')+'\x20('+(_0x2cd3b1||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class Z extends _0x499e59{constructor(_0x129dac){super(_0x129dac);const t=_0x129dac['t'];this['set']('errorType',null);const _0x477101=new _0x205a9f(_0x129dac);_0x477101['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x477101['withText']=!0x0,_0x477101['class']='ck-button-action',_0x477101['on']('execute',()=>{this['fire']('retry');}),_0x477101['bind']('isVisible')['to'](this,'errorType',_0x9fe1e5=>'NotFound'!==_0x9fe1e5);const _0x443538=new _0x12817f();_0x443538['content']=_0x3b505b,_0x443538['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x39e63e=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':[_0x443538,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x39e63e['to']('errorType',_0x3d0e6c=>t('NotFound'!==_0x3d0e6c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x477101]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class Q extends _0x499e59{constructor(_0x3dc9d8,_0x9e01d5){super(_0x3dc9d8);const _0x22a3cc=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x9e01d5,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x22a3cc['to']('imageSrc')}});}}class X extends A{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3b43a0,_0x1eb914,_0xfe66be){super(_0x3b43a0),this['_items']=this['createCollection'](),this['_loadingView']=new J(_0x3b43a0),this['_errorView']=new Z(_0x3b43a0),this['_editingView']=new Q(_0x3b43a0,_0xfe66be),this['_focusableView']=new _0x499e59(_0x3b43a0),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1eb914),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'],_0x313a89=>{this['_addUploadcareImageEditorListeners'](_0x313a89);});}),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'](_0x209a0e,_0x5a3918){const _0x4e481c='uc-cloud-image-editor',_0x142107=_0x209a0e['querySelector'](_0x4e481c);if(_0x142107)return _0x5a3918(_0x142107);const _0xe9d25f=new MutationObserver(_0x39c265=>{const _0x55d8c9=_0x39c265['filter'](_0x5c6718=>_0x5c6718['target']===_0x209a0e&&_0x5c6718['addedNodes']['length']>0x0&&_0x5c6718['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4e481c);_0x55d8c9['length']&&(_0xe9d25f['disconnect'](),_0x5a3918(_0x55d8c9[0x0]['addedNodes'][0x0]));});_0xe9d25f['observe'](_0x209a0e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x20574e){_0x20574e['addEventListener']('apply',_0x39d842=>{this['fire']('apply',{'imageSrc':_0x39d842['detail']['cdnUrl']});}),_0x20574e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Y extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4b976d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x55c3e7,_0x1727b4,_0x5b54b7){super(),this['_editor']=_0x55c3e7,this['_dialog']=_0x1727b4,this['_imageElement']=_0x5b54b7,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 _0xbd7211=this['_imageElement'],_0x3fa1a9=_0xbd7211['getAttribute']('uploadcareImageId'),_0x2c6a66=_0xbd7211['getAttribute']('src');if(_0x3fa1a9)await this['_loadImageInfo'](_0x3fa1a9,_0x2c6a66);else{if(this['_imageCache']['has'](_0x2c6a66)){const _0x5bd4a0=this['_imageCache']['get'](_0x2c6a66);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5bd4a0['url'],this['imageDimension']=_0x5bd4a0['dimension'],this['imageId']=_0x5bd4a0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x52605f}=this['_editor'],t=_0x52605f['t'],_0x335abc=new X(_0x52605f,this['imageStatus'],this['_attributes']);_0x335abc['bind']('status')['to'](this,'imageStatus'),_0x335abc['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x335abc['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x335abc['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x335abc,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4d436f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x335abc,'position':_0x62811e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x335abc['focus']();},'onHide':()=>{_0x335abc['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x472094=>!V(_0x472094,_0x335abc['element'])}});}['_loadImageInfo'](_0x5752f1,_0x1d3a73){return q['getInfo'](_0x5752f1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x157628=>{const {width:_0x52c1af,height:_0x54a03d}=_0x157628['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1d3a73,this['imageDimension']={'width':_0x52c1af,'height':_0x54a03d},this['imageId']=_0x5752f1;})['catch'](_0x560e64=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x560e64['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x425c83,_0x56678c){return this['_getImageAsFile'](_0x425c83)['then'](_0x582346=>q['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x56678c['signal'],'file':_0x582346,'onProgress':_0x558713=>{_0x558713&&_0x558713['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x558713['value']));}}))['then'](_0x39db17=>{const {width:_0x58b912,height:_0x241cdc}=_0x39db17['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x39db17['cdnUrl'],this['imageDimension']={'width':_0x58b912,'height':_0x241cdc},this['imageId']=_0x39db17['uuid'],this['imageUploadProgress']=null;const _0x1370ed=_0x425c83['getAttribute']('src');this['_imageCache']['set'](_0x1370ed,{'id':_0x39db17['uuid'],'url':_0x39db17['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xb4d764=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xb4d764['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2e5f15,_0x16dd94){_0x2e5f15['on']('apply',(_0x67c9e,_0x49b9a6)=>{this['_replaceImage'](_0x16dd94,_0x49b9a6['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2e5f15['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2e5f15['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3bd7e1,_0x2a64b3,_0x10531b){const _0x38d7ed=this['_editor'],{width:_0x4d38ea,height:_0x11bd8b}=F(_0x2a64b3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x402efb,imageSources:_0x2f114b}=D(_0x2a64b3,_0x4d38ea);_0x38d7ed['model']['change'](_0x2f8d6f=>{if('$graveyard'===_0x3bd7e1['root']['rootName']){_0x38d7ed['execute']('insertImage',{'imageType':_0x3bd7e1['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3bd7e1['getAttributes']()),'uploadcareImageId':_0x10531b,'src':_0x402efb,'sources':_0x2f114b,'width':_0x4d38ea,'height':_0x11bd8b}});const _0x463b2d=_0x3bd7e1['getChildren']();_0x3bd7e1=_0x38d7ed['model']['document']['selection']['getSelectedElement']();for(const _0x171d6d of _0x463b2d)_0x2f8d6f['append'](_0x2f8d6f['cloneElement'](_0x171d6d),_0x3bd7e1);}else _0x2f8d6f['setSelection'](_0x3bd7e1,'on'),_0x38d7ed['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3bd7e1['getAttributes']()),'uploadcareImageId':_0x10531b,'src':_0x402efb,'sources':_0x2f114b,'width':_0x4d38ea,'height':_0x11bd8b},_0x3bd7e1);_0x2f8d6f['setSelection'](_0x3bd7e1,'on');});}async['_getImageAsFile'](_0x1954af){const _0x11a273=_0x3bcb22['window'],_0x1306d1=_0x3bcb22['document']['location']['href'],_0x486fbc=new _0x11a273['URL'](_0x1954af['getAttribute']('src'),_0x1306d1);if('data:'===_0x486fbc['protocol']){const _0x58f928=_0x486fbc['href']['split'](','),_0xda620f=_0x58f928[0x0]['match'](/:(.*?);/)[0x1],_0x2ae0b0=_0xda620f['split']('/')[0x1],_0x1b1394=_0x11a273['atob'](_0x58f928[_0x58f928['length']-0x1]);let _0x5d13c4=_0x1b1394['length'];const _0x2b1854=new _0x11a273['Uint8Array'](_0x5d13c4);for(;_0x5d13c4--;)_0x2b1854[_0x5d13c4]=_0x1b1394['charCodeAt'](_0x5d13c4);return new _0x11a273['File']([_0x2b1854],'image.'+_0x2ae0b0,{'type':_0xda620f});}const _0x173027=_0x486fbc['href']['split']('/'),_0x1d7214=_0x173027[_0x173027['length']-0x1],_0x5d4f11=_0x1d7214['split']('.')[0x1];return _0x11a273['fetch'](_0x486fbc['href'])['then'](_0x5dd42d=>_0x5dd42d['clone']()['blob']())['then'](_0x1c0935=>new _0x11a273['File']([_0x1c0935],_0x1d7214,{'type':'image/'+_0x5d4f11}));}}class tt extends _0x14fce6{['imageEditController'];static get['requires'](){return[_0x9a7777];}['_isEditable'];constructor(_0x36a432){super(_0x36a432),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1cffbe){const _0x5d7c10=B(_0x1cffbe);return _0x46af3e=>!(!_0x46af3e||!_0x46af3e['is']('element','imageBlock')&&!_0x46af3e['is']('element','imageInline'))&&(!!_0x46af3e['hasAttribute']('uploadcareImageId')||!!_0x46af3e['hasAttribute']('src')&&_0x5d7c10(_0x46af3e['getAttribute']('src')));}(_0x36a432['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x39d5f1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x39d5f1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x521fa9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x521fa9&&(_0x521fa9['is']('element','imageBlock')||_0x521fa9['is']('element','imageInline'))&&(this['imageEditController']=new Y(this['editor'],this['editor']['plugins']['get'](_0x9a7777),_0x521fa9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class et extends _0x14fce6{['refresh'](){const _0x50f967=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x50f967&&(_0x50f967['is']('element','imageBlock')||_0x50f967['is']('element','imageInline')));}['execute'](_0xd42c05){const _0x55640a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x34207f=>{_0x34207f['setAttributes'](_0xd42c05,_0x55640a),_0x34207f['removeAttribute']('srcset',_0x55640a),_0x34207f['removeAttribute']('sizes',_0x55640a);});}}class it extends _0x393cb0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[z,_0x143939,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x46a8ce}=this;_0x46a8ce['commands']['add']('uploadcareImageEdit',new tt(_0x46a8ce)),_0x46a8ce['commands']['add']('uploadcareImageReplace',new et(_0x46a8ce));}}class st extends _0x393cb0{['_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 _0x7fac40=this['editor'];_0x7fac40['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3a6214=>{const _0xb77e00=_0x7fac40['commands']['get']('uploadcareImageEdit'),_0x296960=new _0x205a9f(_0x3a6214),t=_0x3a6214['t'];return _0x296960['set']({'icon':_0x4d436f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x296960['bind']('isEnabled')['to'](_0xb77e00),_0x296960['bind']('isOn')['to'](_0xb77e00,'isActive'),this['listenTo'](_0x296960,'execute',()=>{_0x7fac40['execute']('uploadcareImageEdit'),_0x7fac40['editing']['view']['focus']();}),_0x296960;}),this['_initConfig']();}['_initConfig'](){const _0x7e5b3e=_0x4c3830(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x7e5b3e),this['listenTo'](this['editor'],'destroy',()=>{_0x7e5b3e['remove']();});}}class nt extends _0x393cb0{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[it,st];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{H as Uploadcare,M as UploadcareCommand,z as UploadcareEditing,nt as UploadcareImageEdit,tt as UploadcareImageEditCommand,it as UploadcareImageEditEditing,st as UploadcareImageEditUI,S as UploadcareUI,W as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x24357c=>0x1!=_0x24357c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x40c0b7=>{const {af:{dictionary:_0x4bb526,getPluralForm:_0x3d82e6}}={'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x5364df=>0x1!=_0x5364df}};_0x40c0b7['af']||={'dictionary':{},'getPluralForm':null},_0x40c0b7['af']['dictionary']=Object['assign'](_0x40c0b7['af']['dictionary'],_0x4bb526),_0x40c0b7['af']['getPluralForm']=_0x3d82e6;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ar.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':
|
|
23
|
+
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x4a911c=>0x0==_0x4a911c?0x0:0x1==_0x4a911c?0x1:0x2==_0x4a911c?0x2:_0x4a911c%0x64>=0x3&&_0x4a911c%0x64<=0xa?0x3:_0x4a911c%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xc5b02e=>{const {ar:{dictionary:_0x25a2d7,getPluralForm:_0x5d5ac1}}={'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x13890c=>0x0==_0x13890c?0x0:0x1==_0x13890c?0x1:0x2==_0x13890c?0x2:_0x13890c%0x64>=0x3&&_0x13890c%0x64<=0xa?0x3:_0x13890c%0x64>=0xb?0x4:0x5}};_0xc5b02e['ar']||={'dictionary':{},'getPluralForm':null},_0xc5b02e['ar']['dictionary']=Object['assign'](_0xc5b02e['ar']['dictionary'],_0x25a2d7),_0xc5b02e['ar']['getPluralForm']=_0x5d5ac1;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ast.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x59aef0=>0x1!=_0x59aef0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x578870=>{const {ast:{dictionary:_0x171d2d,getPluralForm:_0x5f5c87}}={'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x8503e8=>0x1!=_0x8503e8}};_0x578870['ast']||={'dictionary':{},'getPluralForm':null},_0x578870['ast']['dictionary']=Object['assign'](_0x578870['ast']['dictionary'],_0x171d2d),_0x578870['ast']['getPluralForm']=_0x5f5c87;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/az.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0xa36ec1=>0x1!=_0xa36ec1}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5f046f=>{const {az:{dictionary:_0x5dffef,getPluralForm:_0x40efb2}}={'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x38e93e=>0x1!=_0x38e93e}};_0x5f046f['az']||={'dictionary':{},'getPluralForm':null},_0x5f046f['az']['dictionary']=Object['assign'](_0x5f046f['az']['dictionary'],_0x5dffef),_0x5f046f['az']['getPluralForm']=_0x40efb2;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x3ab7ca=>_0x3ab7ca%0xa==0x1&&_0x3ab7ca%0x64!=0xb?0x0:_0x3ab7ca%0xa>=0x2&&_0x3ab7ca%0xa<=0x4&&(_0x3ab7ca%0x64<0xa||_0x3ab7ca%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xd88b85=>{const {be:{dictionary:_0x12f7a1,getPluralForm:_0x1a0e63}}={'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x24dba6=>_0x24dba6%0xa==0x1&&_0x24dba6%0x64!=0xb?0x0:_0x24dba6%0xa>=0x2&&_0x24dba6%0xa<=0x4&&(_0x24dba6%0x64<0xa||_0x24dba6%0x64>=0x14)?0x1:0x2}};_0xd88b85['be']||={'dictionary':{},'getPluralForm':null},_0xd88b85['be']['dictionary']=Object['assign'](_0xd88b85['be']['dictionary'],_0x12f7a1),_0xd88b85['be']['getPluralForm']=_0x1a0e63;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bg.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':
|
|
23
|
+
export default{'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x1c6176=>0x1!=_0x1c6176}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x44a783=>{const {bg:{dictionary:_0x1f6327,getPluralForm:_0x48e697}}={'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x21383f=>0x1!=_0x21383f}};_0x44a783['bg']||={'dictionary':{},'getPluralForm':null},_0x44a783['bg']['dictionary']=Object['assign'](_0x44a783['bg']['dictionary'],_0x1f6327),_0x44a783['bg']['getPluralForm']=_0x48e697;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bn.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':
|
|
23
|
+
export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0x537b97=>0x1!=_0x537b97}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x45ee14=>{const {bn:{dictionary:_0x545dfe,getPluralForm:_0x1fabde}}={'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0x643b26=>0x1!=_0x643b26}};_0x45ee14['bn']||={'dictionary':{},'getPluralForm':null},_0x45ee14['bn']['dictionary']=Object['assign'](_0x45ee14['bn']['dictionary'],_0x545dfe),_0x45ee14['bn']['getPluralForm']=_0x1fabde;})(window['CKEDITOR_TRANSLATIONS']||={});
|