@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260109.0 → 0.0.0-nightly-next-20260109.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-2026, 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-2026, 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 _0x5d705e,Command as _0x1fe490}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x12cc1f,IconGooglePhotos as _0x42b1d8,IconGoogleDrive as _0xe4c8e2,IconFacebook as _0x559e1f,IconDropbox as _0xb7c8f8,IconUploadcareLink as _0x171f0a,IconUploadcareImageUpload as _0x46d237,IconError as _0x68ca28,IconUploadcareImageEdit as _0x4e57ef}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5d0d58,MenuBarMenuListItemButtonView as _0x531897,View as _0x40d11d,FocusCycler as _0x5ad2b2,Dialog as _0x50a307,DialogViewPosition as _0x4806eb,SpinnerView as _0x2e1a86,IconView as _0x94ed4e,Notification as _0x1d64df}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5ade13,DomEmitterMixin as _0x25ae4d,global as _0x37a2a3,getAncestors as _0x5afc26,ObservableMixin as _0x315198,uid as _0x127e41,createElement as _0x5c2b58}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2bece9}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5a327f,info as _0x4b2d6f}from'@uploadcare/upload-client';import*as _0x5cb6e5 from'@uploadcare/file-uploader';var i=function(_0x49a350){return _0x49a350['Local']='local',_0x49a350['URL']='url',_0x49a350['Dropbox']='dropbox',_0x49a350['GDrive']='gdrive',_0x49a350['Facebook']='facebook',_0x49a350['GPhotos']='gphotos',_0x49a350['OneDrive']='onedrive',_0x49a350;}({});function _(_0x45ff93,_0x296c14,_0x41dc17){const t=_0x45ff93['t'],_0x241581=_0x45ff93['t'];switch(_0x296c14){case i['Local']:return{'text':_0x241581('Insert'===_0x41dc17?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x241581('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x41dc17?_0x241581('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x241581('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x41dc17?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x41dc17?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x41dc17?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x41dc17?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x41dc17?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x296c14;}}class e extends _0x5d705e{['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 _0x3f074a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1880df;for(const _0x380da7 in _0x3f074a){const _0x40c9e6=_0x380da7,_0x1f92a7=_0x3f074a[_0x40c9e6];if('uploadcareLicenseKeyValid'==_0x1f92a7||'uploadcareLicenseKeyInvalid'==_0x1f92a7||'uploadcareLicenseKeyExpired'==_0x1f92a7||'uploadcareLicenseKeyDomainLimit'==_0x1f92a7||'uploadcareLicenseKeyNotAllowed'==_0x1f92a7||'uploadcareLicenseKeyEvaluationLimit'==_0x1f92a7||'uploadcareLicenseKeyUsageLimit'==_0x1f92a7){delete _0x3f074a[_0x40c9e6],_0x1880df=_0x1f92a7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1880df&&_0x3f074a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1880df&&_0x3f074a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1880df&&_0x3f074a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1880df&&_0x3f074a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1880df&&_0x3f074a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1880df&&_0x3f074a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2fdc75}=this,_0x27ef2f=_0x2fdc75['commands']['get']('uploadcare');if(!_0x27ef2f)return;const _0x320ed9=this['_normalizeConfigSourceList'](_0x2fdc75['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4dfd2b,_0x1191f7)=>{const _0x2b5a91=this['_getIntegrationKey'](_0x1191f7['type']);return _0x4dfd2b[_0x2b5a91]||(_0x4dfd2b[_0x2b5a91]=[]),_0x4dfd2b[_0x2b5a91]['push'](_0x1191f7),_0x4dfd2b;},{});_0x2fdc75['plugins']['has']('ImageInsertUI')&&_0x2fdc75['commands']['get']('uploadcare')&&Object['entries'](_0x320ed9)['forEach'](([_0x43a210,_0x485f2c])=>{_0x2fdc75['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x43a210,'observable':()=>_0x27ef2f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x485f2c),'formViewCreator':()=>this['_createDropdownButtons'](_0x485f2c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x485f2c),'override':'assetManager'!==_0x43a210});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x58d209){const {locale:_0x3901c2}=this['editor'];return _0x58d209['map'](_0x1c6d2e=>{const _0x57466f=_(_0x3901c2,_0x1c6d2e,'Insert');switch(_0x1c6d2e){case i['Local']:return{'icon':_0x46d237,'type':i['Local'],..._0x57466f};case i['URL']:return{'icon':_0x171f0a,'type':i['URL'],..._0x57466f};case i['Dropbox']:return{'icon':_0xb7c8f8,'type':i['Dropbox'],..._0x57466f};case i['Facebook']:return{'icon':_0x559e1f,'type':i['Facebook'],..._0x57466f};case i['GDrive']:return{'icon':_0xe4c8e2,'type':i['GDrive'],..._0x57466f};case i['GPhotos']:return{'icon':_0x42b1d8,'type':i['GPhotos'],..._0x57466f};case i['OneDrive']:return{'icon':_0x12cc1f,'type':i['OneDrive'],..._0x57466f};}});}['_getIntegrationKey'](_0x43ec40){switch(_0x43ec40){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x87e13c,_0x3674e4){const _0x3ebe78=this['editor'],_0x14e473=new _0x87e13c(_0x3ebe78['locale']),_0x485c34=_0x3ebe78['commands']['get']('uploadcare');return _0x14e473['bind']('isEnabled')['to'](_0x485c34),_0x14e473['on']('execute',()=>{_0x485c34['execute'](_0x3674e4);}),_0x14e473;}['_createToolbarButton'](_0x5768fe){const {locale:_0xe8277a}=this['editor'],_0x17a6bb=this['editor']['plugins']['get']('ImageInsertUI'),_0x28d0a0=_0x5768fe[0x0],_0x5ac5b2=this['_createButton'](_0x5d0d58,_0x28d0a0['type']);return _0x5ac5b2['icon']=_0x28d0a0['icon'],_0x5ac5b2['bind']('label')['to'](_0x17a6bb,'isImageSelected',_0x562dae=>_(_0xe8277a,_0x28d0a0['type'],_0x562dae?'Replace':'Insert')['text']),_0x5ac5b2['tooltip']=!0x0,_0x5ac5b2;}['_createDropdownButtons'](_0x1b9c8b){const {locale:_0x32a86d}=this['editor'],_0x353e8d=this['editor']['plugins']['get']('ImageInsertUI');return _0x1b9c8b['map'](_0x286937=>{const _0x4ef157=this['_createButton'](_0x5d0d58,_0x286937['type']);return _0x4ef157['withText']=!0x0,_0x4ef157['icon']=_0x286937['icon'],_0x4ef157['bind']('label')['to'](_0x353e8d,'isImageSelected',_0x1c9221=>_(_0x32a86d,_0x286937['type'],_0x1c9221?'Replace':'Insert')['text']),_0x4ef157;});}['_createMenuBarButtons'](_0x376a90){return _0x376a90['map'](_0x1f0766=>{const _0x53584e=this['_createButton'](_0x531897,_0x1f0766['type']);return _0x53584e['icon']=_0x1f0766['icon'],_0x53584e['label']=_0x1f0766['shortText'],_0x53584e;});}}class F extends _0x40d11d{['focusTracker'];['focusCycler'];constructor(_0x5d768f){super(_0x5d768f),this['focusTracker']=new _0x5ade13(),this['focusCycler']=new _0x5ad2b2({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x42266e,_0x39e2a5){super(_0x42266e),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-'+_0x39e2a5}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1a28f7,_0x46dfe1){const _0x509b14=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4694f9=>_0x4694f9<=_0x46dfe1)['map'](_0x5051b6=>_0x1a28f7['replace'](/\/$/,'')+'/-/resize/'+_0x5051b6+'x/\x20'+_0x5051b6+'w');return{'imageFallbackUrl':_0x1a28f7,'imageSources':[{'srcset':_0x509b14['join'](',\x20'),'sizes':'(max-width:\x20'+_0x46dfe1+'px)\x20100vw,\x20'+_0x46dfe1+'px','type':'image/webp'}]};}function S(_0x2e1069,_0x327603,_0x3109ce){const _0x15f615=_0x2e1069['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x15f615?parseInt(_0x15f615[0x1],0xa):_0x327603,'height':_0x15f615?parseInt(_0x15f615[0x2],0xa):_0x3109ce};}function p(_0x487353,_0x53340a){const _0x533670=new(_0x25ae4d())(),_0x22e346=_0x487353['plugins']['get']('ImageUtils'),_0x31d662=_0x487353['editing']['mapper']['toViewElement'](_0x53340a),_0xdd18ab=_0x22e346['findViewImgElement'](_0x31d662),_0x5363d5=_0x487353['editing']['view']['domConverter']['viewToDom'](_0xdd18ab),_0x54d031=_0x53340a['getAttribute']('width'),_0x478e94=_0x53340a['getAttribute']('height'),_0x3746a2='image-processing';_0x487353['editing']['view']['change'](_0x3d03a6=>{_0x3d03a6['addClass'](_0x3746a2,_0x31d662),_0x3d03a6['setStyle']('aspect-ratio',_0x54d031+'/'+_0x478e94,_0xdd18ab);}),_0x533670['listenTo'](_0x5363d5,'load',()=>{_0x533670['stopListening'](_0x5363d5,'load'),_0x487353['editing']['view']['change'](_0x31c3d6=>{_0x31c3d6['removeClass'](_0x3746a2,_0x31d662),_0x31c3d6['removeStyle']('aspect-ratio',_0xdd18ab);});});}function G(_0x27eb0f){if(Array['isArray'](_0x27eb0f)){const _0x10735d=_0x27eb0f['map'](G);return _0x2f117e=>_0x10735d['some'](_0x19e5bb=>_0x19e5bb(_0x2f117e));}if('origin'==_0x27eb0f){const _0xb140db=_0x37a2a3['window']['location']['origin'];return _0x2e7463=>new URL(_0x2e7463,_0x37a2a3['document']['baseURI'])['origin']==_0xb140db;}return'function'==typeof _0x27eb0f?_0x27eb0f:_0x27eb0f instanceof RegExp?_0x29715f=>!(!_0x29715f['match'](_0x27eb0f)&&!_0x29715f['replace'](/^https?:\/\//,'')['match'](_0x27eb0f)):()=>!0x1;}function A(_0x4569a2,_0x32a2d0){return _0x5afc26(_0x4569a2['target'])['includes'](_0x32a2d0);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x315198(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x27ee68,_0x3434df,_0x26fb75){super(),this['_editor']=_0x27ee68,this['_editing']=_0x3434df,this['_dialog']=_0x27ee68['plugins']['get'](_0x50a307),this['_api']=_0x3434df['ctxElement']['getAPI'](),this['_type']=_0x26fb75,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:_0x54c57a,model:_0x141fff}=this['_editor'],_0x523b58=_0x141fff['document']['selection']['getSelectedElement'](),_0x4a77db=_0x523b58&&(_0x523b58['is']('element','imageBlock')||_0x523b58['is']('element','imageInline'));this['_formView']=new x(_0x54c57a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x46d237,'title':_(_0x54c57a,this['_type'],_0x4a77db?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4806eb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1a1900=>!A(_0x1a1900,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3b7f6c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2e52f5=>{const _0x5a4552=_0x3b7f6c['length'];for(const _0x251383 of _0x3b7f6c){const _0x13eb8=_0x251383===_0x3b7f6c[_0x5a4552-0x1],{cdnUrl:_0x97854,fileInfo:_0x1a3264}=_0x251383;if(!_0x97854||!_0x1a3264)continue;const {width:_0x475893,height:_0x292682}=_0x1a3264['imageInfo'],_0x21b336=S(_0x97854,_0x475893,_0x292682),_0x2360ce=C(_0x97854,_0x21b336['width']),_0x48c255={'id':_0x1a3264['uuid'],'type':'image','attributes':{'imageDimension':_0x21b336,..._0x2360ce}};this['_insertAsset'](_0x48c255,_0x13eb8,_0x2e52f5);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5b1eb4=>{'idle'===_0x5b1eb4['detail']['status']&&!_0x5b1eb4['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5e4d3f,_0x4d6d2c,_0x4eaa10){const _0x39e53e=this['_editor']['model']['document']['selection'],_0x1fb944=_0x39e53e['getSelectedElement'](),_0x1b4929=!(!_0x1fb944||!_0x1fb944['is']('element','imageInline'));_0x4eaa10['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5e4d3f,_0x1b4929),_0x4d6d2c||_0x4eaa10['setSelection'](_0x39e53e['getLastPosition']());}['_insertImage'](_0x3fefa1,_0x590d4b){const _0x5c6bbe=this['_editor'],{imageDimension:_0x1e9b48,imageFallbackUrl:_0x23e0b4,imageSources:_0x215aac}=_0x3fefa1['attributes'];_0x5c6bbe['execute']('insertImage',{'imageType':_0x590d4b?'imageInline':null,'source':{'uploadcareImageId':_0x3fefa1['id'],'src':_0x23e0b4,'sources':_0x215aac,..._0x1e9b48}});}}class w extends _0x1fe490{['_editing'];['_controller']=null;static get['requires'](){return[_0x50a307,o];}constructor(_0x55238f){super(_0x55238f),this['_editing']=_0x55238f['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xa2aadd){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xa2aadd);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x642879,..._0x254a2b}){return _0x5a327f(_0x642879,_0x254a2b);}static['getInfo'](_0x400c2d,_0x33d68a){return _0x4b2d6f(_0x400c2d,_0x33d68a);}}class f extends _0x5d705e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2bece9,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x16b6ff=this['editor'];if(!!!_0x16b6ff['config']['get']('uploadcare'))return;_0x16b6ff['plugins']['get'](_0x2bece9)['createUploadAdapter']=_0x5d0222=>new k(_0x5d0222,_0x16b6ff),_0x16b6ff['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x161f96,{imageElement:_0x5ac2d4,data:_0x55ca88})=>{_0x16b6ff['model']['change'](_0x37550f=>{_0x37550f['setAttribute']('uploadcareImageId',_0x55ca88['uploadcareImageId'],_0x5ac2d4);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x218cf5,_0x48f08e){this['loader']=_0x218cf5,this['editor']=_0x48f08e,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x19fec7=await this['loader']['file'];return j['upload']({'file':_0x19fec7,'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':_0x3d79d7=>{_0x3d79d7&&_0x3d79d7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3d79d7['value']);}})['then'](async _0x505754=>{const {imageFallbackUrl:_0x2ecc09,imageSources:_0x59e030}=C(_0x505754['cdnUrl'],_0x505754['imageInfo']['width']);return{'uploadcareImageId':_0x505754['uuid'],'default':_0x2ecc09,'sources':_0x59e030};})['catch'](()=>{const _0x145011=t('Cannot\x20upload\x20file:')+('\x20'+_0x19fec7['name']+'.');return Promise['reject'](_0x145011);});}['abort'](){this['controller']['abort']();}}class o extends _0x5d705e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x50a307];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x24c99e){super(_0x24c99e),this['ucContextId']=_0x127e41();}['init'](){const _0x5a94f6=this['editor'];_0x5a94f6['commands']['add']('uploadcare',new w(_0x5a94f6));}['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 _0x132efb=_0x37a2a3['document']['querySelector']('input[uploadcare-file-input]');_0x132efb&&_0x132efb['remove']();}),async function(_0x335655){const _0x1a371a=_0x48d417([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]),_0x3e0e30=0x535f8c3a,_0x4e73af=0x5358f26a^_0x3e0e30,_0xbe1cf8=window[_0x48d417([0x44,0x61,0x74,0x65])][_0x48d417([0x6e,0x6f,0x77])](),_0x44f5b4=_0x335655[_0x48d417([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e8ffd=new window[(_0x48d417([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa186d1=>{_0x44f5b4[_0x48d417([0x6f,0x6e,0x63,0x65])](_0x48d417([0x72,0x65,0x61,0x64,0x79]),_0xa186d1);}),_0x32a38b={[_0x48d417([0x6b,0x74,0x79])]:_0x48d417([0x45,0x43]),[_0x48d417([0x75,0x73,0x65])]:_0x48d417([0x73,0x69,0x67]),[_0x48d417([0x63,0x72,0x76])]:_0x48d417([0x50,0x2d,0x32,0x35,0x36]),[_0x48d417([0x78])]:_0x48d417([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]),[_0x48d417([0x79])]:_0x48d417([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]),[_0x48d417([0x61,0x6c,0x67])]:_0x48d417([0x45,0x53,0x32,0x35,0x36])},_0x1db0ce=_0x44f5b4[_0x48d417([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48d417([0x67,0x65,0x74])](_0x48d417([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3964ed(){let _0x1e6f34,_0x4d6530=null,_0x2b02d1=null;try{if(_0x1db0ce==_0x48d417([0x47,0x50,0x4c]))return _0x48d417([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e6f34=_0x29b494(),!_0x1e6f34)return _0x48d417([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e6f34[_0x48d417([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b02d1=_0x2fbde5(_0x1e6f34[_0x48d417([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e6f34[_0x48d417([0x6a,0x74,0x69])])),await _0x3e5ad9()?_0x2a93df()?_0x41c880()?_0x48d417([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2acba2()?(_0x1e6f34[_0x48d417([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48d417([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d6530=_0x1d021f(_0x48d417([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x444f5a()):_0x48d417([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48d417([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48d417([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x48d417([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41c880(){const _0x154387=[_0x48d417([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48d417([0x74,0x72,0x69,0x61,0x6c])][_0x48d417([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e6f34[_0x48d417([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xbe1cf8/0x3e8:0xe10*_0x4e73af;return _0x1e6f34[_0x48d417([0x65,0x78,0x70])]<_0x154387;}function _0x2a93df(){const _0x3412b6=_0x1e6f34[_0x48d417([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3412b6&&(!!_0x3412b6[_0x48d417([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d417([0x2a]))||!!_0x3412b6[_0x48d417([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d417([0x55,0x50,0x4c,0x43])));}function _0x2acba2(){const _0x4006c0=_0x1e6f34[_0x48d417([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4006c0||0x0==_0x4006c0[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x318737}=new URL(window[_0x48d417([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4006c0[_0x48d417([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x318737))return!0x0;const _0x511b64=_0x318737[_0x48d417([0x73,0x70,0x6c,0x69,0x74])](_0x48d417([0x2e]));return _0x4006c0[_0x48d417([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x440570=>_0x440570[_0x48d417([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d417([0x2a])))[_0x48d417([0x6d,0x61,0x70])](_0x4ef713=>_0x4ef713[_0x48d417([0x73,0x70,0x6c,0x69,0x74])](_0x48d417([0x2e])))[_0x48d417([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5992a0=>_0x5992a0[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x511b64[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48d417([0x6d,0x61,0x70])](_0x1667d1=>Array(_0x511b64[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1667d1[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48d417([0x66,0x69,0x6c,0x6c])](_0x1667d1[0x0]===_0x48d417([0x2a])?_0x48d417([0x2a]):'')[_0x48d417([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1667d1))[_0x48d417([0x73,0x6f,0x6d,0x65])](_0x238ddb=>_0x511b64[_0x48d417([0x65,0x76,0x65,0x72,0x79])]((_0x15e948,_0x28eee9)=>_0x238ddb[_0x28eee9]===_0x15e948||_0x238ddb[_0x28eee9]===_0x48d417([0x2a])));}function _0x444f5a(){return _0x4d6530&&_0x2b02d1?new window[(_0x48d417([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44f2bc,_0x229977)=>{_0x4d6530[_0x48d417([0x74,0x68,0x65,0x6e])](_0x44f2bc,_0x229977),_0x2b02d1[_0x48d417([0x74,0x68,0x65,0x6e])](_0x26c284=>{_0x26c284!=_0x48d417([0x56,0x61,0x6c,0x69,0x64])&&_0x44f2bc(_0x26c284);},_0x229977);}):_0x4d6530||_0x2b02d1||_0x48d417([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2fbde5(_0x304d29,_0x4d9e42){return new window[(_0x48d417([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15fa9f=>{if(_0x4679e3())return _0x15fa9f(_0x48d417([0x56,0x61,0x6c,0x69,0x64]));_0x451934(),_0x44f5b4[_0x48d417([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48d417([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1ae484=!0x1;const _0x1b0446=_0x127e41();function _0x2a1c6d(_0x409878){return!!_0x409878&&(typeof _0x409878===_0x48d417([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x409878===_0x48d417([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x409878[_0x48d417([0x74,0x68,0x65,0x6e])]===_0x48d417([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x409878[_0x48d417([0x63,0x61,0x74,0x63,0x68])]===_0x48d417([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6cfd45(_0x5dde64){_0x4f3140(_0x5dde64)[_0x48d417([0x74,0x68,0x65,0x6e])](_0x270a25=>{if(!_0x270a25||_0x270a25[_0x48d417([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48d417([0x6f,0x6b]))return _0x48d417([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x176996(_0x352c61(_0x1b0446+_0x4d9e42))!=_0x270a25[_0x48d417([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48d417([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48d417([0x56,0x61,0x6c,0x69,0x64]);})[_0x48d417([0x74,0x68,0x65,0x6e])](_0x5ab463=>(_0xb651bf(),_0x5ab463),()=>{const _0x1c8b1d=_0x454abf();return null==_0x1c8b1d?(_0xb651bf(),_0x48d417([0x56,0x61,0x6c,0x69,0x64])):_0x48d417(_0xbe1cf8-_0x1c8b1d>(0x7753083a^_0x3e0e30)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48d417([0x74,0x68,0x65,0x6e])](_0x15fa9f)[_0x48d417([0x63,0x61,0x74,0x63,0x68])](()=>{_0x15fa9f(_0x48d417([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1f05d7=0x536962ba^_0x3e0e30;function _0xb651bf(){const _0x51df92=_0x48d417([0x6c,0x6c,0x63,0x74,0x2d])+_0x176996(_0x352c61(_0x304d29)),_0x3aa544=_0x4fa97c(_0x176996(window[_0x48d417([0x4d,0x61,0x74,0x68])][_0x48d417([0x63,0x65,0x69,0x6c])](_0xbe1cf8/_0x1f05d7)));window[_0x48d417([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48d417([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51df92,_0x3aa544);}function _0x454abf(){const _0x562acb=_0x48d417([0x6c,0x6c,0x63,0x74,0x2d])+_0x176996(_0x352c61(_0x304d29)),_0x1b3125=window[_0x48d417([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48d417([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x562acb);return _0x1b3125?window[_0x48d417([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fa97c(_0x1b3125),0x10)*_0x1f05d7:null;}function _0x4f3140(_0x4b6420){return new window[(_0x48d417([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2674bb,_0x560761)=>{_0x4b6420[_0x48d417([0x74,0x68,0x65,0x6e])](_0x2674bb,_0x560761),window[_0x48d417([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x560761,0x535e58fa^_0x3e0e30);});}}_0x44f5b4[_0x48d417([0x6f,0x6e])](_0x48d417([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2774b3,_0x16f17b)=>{if(_0x16f17b[0x0]!=_0x304d29)return _0x15fa9f(_0x48d417([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x16f17b[0x1]={..._0x16f17b[0x1],[_0x48d417([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b0446};},{[_0x48d417([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48d417([0x68,0x69,0x67,0x68])}),_0x44f5b4[_0x48d417([0x6f,0x6e])](_0x48d417([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2317b4=>{_0x2a1c6d(_0x2317b4[_0x48d417([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1ae484=!0x0,_0x6cfd45(_0x2317b4[_0x48d417([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48d417([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48d417([0x6c,0x6f,0x77])}),_0x1e8ffd[_0x48d417([0x74,0x68,0x65,0x6e])](()=>{_0x1ae484||_0x15fa9f(_0x48d417([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4679e3(){return _0x44f5b4[_0x48d417([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48d417([0x76,0x69,0x65,0x77])][_0x48d417([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48d417([0x61,0x75,0x74,0x6f]);}function _0x451934(){_0x44f5b4[_0x48d417([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48d417([0x76,0x69,0x65,0x77])][_0x48d417([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48d417([0x61,0x75,0x74,0x6f]);}}function _0x1d021f(_0x4e6812){const _0x2faebb=[new window[(_0x48d417([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x278f32=>setTimeout(_0x278f32,0x5356b2f6^_0x3e0e30)),_0x1e8ffd[_0x48d417([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48d417([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x114e00=>{let _0x245583=0x0;_0x44f5b4[_0x48d417([0x6d,0x6f,0x64,0x65,0x6c])][_0x48d417([0x6f,0x6e])](_0x48d417([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4289a2,_0x359882)=>{_0x359882[0x0][_0x48d417([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x245583++,_0x245583==(0x535f89d2^_0x3e0e30)&&(_0x114e00(),_0x4289a2[_0x48d417([0x6f,0x66,0x66])]());});}))];return window[_0x48d417([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48d417([0x72,0x61,0x63,0x65])](_0x2faebb)[_0x48d417([0x74,0x68,0x65,0x6e])](()=>_0x4e6812);}async function _0x36e328(){await _0x1e8ffd,_0x44f5b4[_0x48d417([0x6d,0x6f,0x64,0x65,0x6c])][_0x48d417([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5e712b,_0x44f5b4[_0x48d417([0x6d,0x6f,0x64,0x65,0x6c])][_0x48d417([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5e712b,_0x44f5b4[_0x48d417([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48d417([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x38b994(_0x1a123b){const _0x5e46dd=_0x1a1644();_0x44f5b4[_0x5e46dd]=_0x48d417([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1a123b,_0x1a123b!=_0x48d417([0x56,0x61,0x6c,0x69,0x64])&&_0x36e328();}function _0x1a1644(){const _0x25a121=window[_0x48d417([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48d417([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48d417([0x6e,0x6f,0x77])]())[_0x48d417([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48d417([0x2e]),'');let _0x98ea15=_0x48d417([0x68]);for(let _0x368451=0x0;_0x368451<_0x25a121[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x368451+=0x2){let _0x37f944=window[_0x48d417([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25a121[_0x48d417([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x368451,_0x368451+0x2));_0x37f944>=_0x1a371a[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x37f944-=_0x1a371a[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x98ea15+=_0x1a371a[_0x37f944];}return _0x98ea15;}function _0x29b494(){const _0x416239=_0x1db0ce[_0x48d417([0x73,0x70,0x6c,0x69,0x74])](_0x48d417([0x2e]));if(0x3!=_0x416239[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3febcc(_0x416239[0x1]);function _0x3febcc(_0x5ba5d5){const _0x15c1cb=_0x276483(_0x5ba5d5);return _0x15c1cb&&_0x1324c8()?_0x15c1cb:null;function _0x1324c8(){const _0x110f83=_0x15c1cb[_0x48d417([0x6a,0x74,0x69])],_0x518180=window[_0x48d417([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x110f83[_0x48d417([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x110f83[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a2603={..._0x15c1cb,[_0x48d417([0x6a,0x74,0x69])]:_0x110f83[_0x48d417([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x110f83[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a2603[_0x48d417([0x76,0x63])],_0x352c61(_0x2a2603)==_0x518180;}}}async function _0x3e5ad9(){let _0x2c8871=!0x0;try{const _0x2e3c95=_0x1db0ce[_0x48d417([0x73,0x70,0x6c,0x69,0x74])](_0x48d417([0x2e])),[_0x155373,_0x207db5,_0x1ea788]=_0x2e3c95;return _0x672836(_0x155373),await _0x19c540(_0x155373,_0x207db5,_0x1ea788),_0x2c8871;}catch{return!0x1;}function _0x672836(_0xa7a7c){const _0x271fa6=_0x276483(_0xa7a7c);_0x271fa6&&_0x271fa6[_0x48d417([0x61,0x6c,0x67])]==_0x48d417([0x45,0x53,0x32,0x35,0x36])||(_0x2c8871=!0x1);}async function _0x19c540(_0x1925fe,_0x1097a3,_0x25cdbc){const _0x37a881=window[_0x48d417([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48d417([0x66,0x72,0x6f,0x6d])](_0x50b717(_0x25cdbc),_0x260406=>_0x260406[_0x48d417([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x148844=new window[(_0x48d417([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48d417([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1925fe+_0x48d417([0x2e])+_0x1097a3),_0x3243ec=window[_0x48d417([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48d417([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3243ec)return;const _0x42d7d3=await _0x3243ec[_0x48d417([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48d417([0x6a,0x77,0x6b]),_0x32a38b,{[_0x48d417([0x6e,0x61,0x6d,0x65])]:_0x48d417([0x45,0x43,0x44,0x53,0x41]),[_0x48d417([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48d417([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48d417([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3243ec[_0x48d417([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48d417([0x6e,0x61,0x6d,0x65])]:_0x48d417([0x45,0x43,0x44,0x53,0x41]),[_0x48d417([0x68,0x61,0x73,0x68])]:{[_0x48d417([0x6e,0x61,0x6d,0x65])]:_0x48d417([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x42d7d3,_0x37a881,_0x148844)||(_0x2c8871=!0x1);}}function _0x276483(_0x12d721){return _0x12d721[_0x48d417([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48d417([0x65,0x79]))?JSON[_0x48d417([0x70,0x61,0x72,0x73,0x65])](_0x50b717(_0x12d721)):null;}function _0x50b717(_0x2b27b1){return window[_0x48d417([0x61,0x74,0x6f,0x62])](_0x2b27b1[_0x48d417([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48d417([0x2b]))[_0x48d417([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48d417([0x2f])));}function _0x352c61(_0x818c1f){let _0x3ac345=0x1505;function _0x5b31f8(_0x39e12a){for(let _0x3e5c3c=0x0;_0x3e5c3c<_0x39e12a[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e5c3c++){const _0x29be5f=_0x39e12a[_0x48d417([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3e5c3c);_0x3ac345=(_0x3ac345<<0x5)+_0x3ac345+_0x29be5f,_0x3ac345&=_0x3ac345;}}function _0x426a47(_0x7be940){Array[_0x48d417([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x7be940)?_0x7be940[_0x48d417([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x426a47):_0x7be940&&typeof _0x7be940==_0x48d417([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48d417([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x7be940)[_0x48d417([0x73,0x6f,0x72,0x74])]()[_0x48d417([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a339b,_0x41d248])=>{_0x5b31f8(_0x1a339b),_0x426a47(_0x41d248);}):_0x5b31f8(window[_0x48d417([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x7be940));}return _0x426a47(_0x818c1f),_0x3ac345>>>0x0;}function _0x176996(_0x32a4ec){return _0x32a4ec[_0x48d417([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48d417([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48d417([0x30]));}function _0x4fa97c(_0x55d748){return _0x55d748[_0x48d417([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48d417([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48d417([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e712b(){}function _0x48d417(_0x2e4457){return _0x2e4457['map'](_0x340864=>String['fromCharCode'](_0x340864))['join']('');}_0x38b994(await _0x3964ed());}(this);}['_initSchema'](){const _0x4dfbaf=this['editor']['model']['schema'];_0x4dfbaf['isRegistered']('imageBlock')&&_0x4dfbaf['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4dfbaf['isRegistered']('imageInline')&&_0x4dfbaf['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x42988a=this['editor'];_0x42988a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x42988a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x145ca1=>_0x145ca1['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5c4dcf=_0x42988a['commands']['get']('replaceImageSource');_0x5c4dcf&&this['listenTo'](_0x5c4dcf,'cleanupImage',(_0x47600d,[_0x1ff46b,_0x51e127])=>{_0x1ff46b['removeAttribute']('uploadcareImageId',_0x51e127);});}['_initConfig'](){const _0x26e639=this['editor']['config']['get']('uploadcare.uploader')||{},_0x50ea20=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5c2b58(_0x37a2a3['document'],'uc-config',{..._0x26e639,'pubkey':_0x50ea20,'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']=_0x288e03=>{if('closeMax'==_0x288e03)return'#uc-icon-arrow-down';},_0x37a2a3['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5c2b58(_0x37a2a3['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x37a2a3['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x137b8a=this['editor']['commands']['get']('insertImage');_0x137b8a&&this['listenTo'](_0x137b8a,'execute',()=>{const _0x2dcf85=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2dcf85&&_0x2dcf85['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2dcf85);});});const _0x91003f=this['editor']['commands']['get']('uploadcareImageReplace');_0x91003f&&this['listenTo'](_0x91003f,'execute',()=>{const _0x470bf2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x470bf2&&_0x470bf2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x470bf2);});});}}class tt extends _0x5d705e{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1af453){super(_0x1af453),_0x1af453['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5cb6e5['defineComponents'](_0x5cb6e5),this['_defineLocale']();}['_defineLocale'](){const _0xc1b752=this['editor']['config']['get']('uploadcare.locale'),_0x3ed0ff=this['editor']['locale']['contentLanguage'];_0xc1b752&&_0x5cb6e5['defineLocale'](_0x3ed0ff,_0xc1b752);}}class ii extends _0x40d11d{constructor(_0x21c0ee){super(_0x21c0ee);const t=_0x21c0ee['t'],_0x21e88b=this['bindTemplate'],_0xdb5546=new _0x2e1a86();_0xdb5546['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':[_0xdb5546,{'text':_0x21e88b['to']('imageUploadProgress',_0x5af3f8=>t('Loading\x20image...')+'\x20('+(_0x5af3f8||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 _0x40d11d{constructor(_0x4787f5){super(_0x4787f5);const t=_0x4787f5['t'];this['set']('errorType',null);const _0x41f406=new _0x5d0d58(_0x4787f5);_0x41f406['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x41f406['withText']=!0x0,_0x41f406['class']='ck-button-action',_0x41f406['on']('execute',()=>{this['fire']('retry');}),_0x41f406['bind']('isVisible')['to'](this,'errorType',_0x23ff0d=>'NotFound'!==_0x23ff0d);const _0x47d7d3=new _0x94ed4e();_0x47d7d3['content']=_0x68ca28,_0x47d7d3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3f221c=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':[_0x47d7d3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3f221c['to']('errorType',_0x1cee43=>t('NotFound'!==_0x1cee43?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x41f406]},{'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 _0x40d11d{constructor(_0x5d0c19,_0x1c94c1){super(_0x5d0c19);const _0x42b401=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1c94c1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x42b401['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3a5435,_0x50d2c4,_0x2683b3){super(_0x3a5435),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3a5435),this['_errorView']=new ti(_0x3a5435),this['_editingView']=new ei(_0x3a5435,_0x2683b3),this['_focusableView']=new _0x40d11d(_0x3a5435),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x50d2c4),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'],_0x4945bc=>{this['_addUploadcareImageEditorListeners'](_0x4945bc);});}),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'](_0x52fd03,_0x542742){const _0x5c4860='uc-cloud-image-editor',_0x245524=_0x52fd03['querySelector'](_0x5c4860);if(_0x245524)return _0x542742(_0x245524);const _0x368627=new MutationObserver(_0x3fe45c=>{const _0x5baa59=_0x3fe45c['filter'](_0x5e8f9f=>_0x5e8f9f['target']===_0x52fd03&&_0x5e8f9f['addedNodes']['length']>0x0&&_0x5e8f9f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5c4860);_0x5baa59['length']&&(_0x368627['disconnect'](),_0x542742(_0x5baa59[0x0]['addedNodes'][0x0]));});_0x368627['observe'](_0x52fd03,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1402dc){_0x1402dc['addEventListener']('apply',_0x5aec70=>{this['fire']('apply',{'imageSrc':_0x5aec70['detail']['cdnUrl']});}),_0x1402dc['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x315198(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x13d4b5,_0x5789f8,_0x39953c){super(),this['_editor']=_0x13d4b5,this['_dialog']=_0x5789f8,this['_imageElement']=_0x39953c,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 _0x4bc703=this['_imageElement'],_0x517ee6=_0x4bc703['getAttribute']('uploadcareImageId'),_0x20a373=_0x4bc703['getAttribute']('src');if(_0x517ee6)await this['_loadImageInfo'](_0x517ee6,_0x20a373);else{if(this['_imageCache']['has'](_0x20a373)){const _0x132efe=this['_imageCache']['get'](_0x20a373);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x132efe['url'],this['imageDimension']=_0x132efe['dimension'],this['imageId']=_0x132efe['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1f5739}=this['_editor'],t=_0x1f5739['t'],_0x3aa774=new X(_0x1f5739,this['imageStatus'],this['_attributes']);_0x3aa774['bind']('status')['to'](this,'imageStatus'),_0x3aa774['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3aa774['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3aa774['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3aa774,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4e57ef,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3aa774,'position':_0x4806eb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3aa774['focus']();},'onHide':()=>{_0x3aa774['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x51ab05=>!A(_0x51ab05,_0x3aa774['element'])}});}['_loadImageInfo'](_0x5b5bb7,_0x21a1d){return j['getInfo'](_0x5b5bb7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x25ffab=>{const {width:_0x44a7cd,height:_0x451173}=_0x25ffab['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x21a1d,this['imageDimension']={'width':_0x44a7cd,'height':_0x451173},this['imageId']=_0x5b5bb7;})['catch'](_0x1e092f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1e092f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2199d8,_0x4ffa68){return this['_getImageAsFile'](_0x2199d8)['then'](_0x151ddf=>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':_0x4ffa68['signal'],'file':_0x151ddf,'onProgress':_0x546a3e=>{_0x546a3e&&_0x546a3e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x546a3e['value']));}}))['then'](_0x32b404=>{const {width:_0x5eed03,height:_0xdb3633}=_0x32b404['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32b404['cdnUrl'],this['imageDimension']={'width':_0x5eed03,'height':_0xdb3633},this['imageId']=_0x32b404['uuid'],this['imageUploadProgress']=null;const _0x5b0f77=_0x2199d8['getAttribute']('src');this['_imageCache']['set'](_0x5b0f77,{'id':_0x32b404['uuid'],'url':_0x32b404['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3bbbe2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3bbbe2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x53b2b6,_0xa6496c){_0x53b2b6['on']('apply',(_0x19543f,_0x4cb55c)=>{this['_replaceImage'](_0xa6496c,_0x4cb55c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x53b2b6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x53b2b6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x16e6ff,_0x9511fa,_0x547d28){const _0x555dcb=this['_editor'],{width:_0x337116,height:_0x5a381f}=S(_0x9511fa,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xa60190,imageSources:_0x3d29f6}=C(_0x9511fa,_0x337116);_0x555dcb['model']['change'](_0x51c475=>{if('$graveyard'===_0x16e6ff['root']['rootName']){_0x555dcb['execute']('insertImage',{'imageType':_0x16e6ff['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x16e6ff['getAttributes']()),'uploadcareImageId':_0x547d28,'src':_0xa60190,'sources':_0x3d29f6,'width':_0x337116,'height':_0x5a381f}});const _0x1bc1ef=_0x16e6ff['getChildren']();_0x16e6ff=_0x555dcb['model']['document']['selection']['getSelectedElement']();for(const _0x20065b of _0x1bc1ef)_0x51c475['append'](_0x51c475['cloneElement'](_0x20065b),_0x16e6ff);}else _0x51c475['setSelection'](_0x16e6ff,'on'),_0x555dcb['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x16e6ff['getAttributes']()),'uploadcareImageId':_0x547d28,'src':_0xa60190,'sources':_0x3d29f6,'width':_0x337116,'height':_0x5a381f},_0x16e6ff);_0x51c475['setSelection'](_0x16e6ff,'on');});}async['_getImageAsFile'](_0x27c789){const _0xd5332=_0x37a2a3['window'],_0x261acf=_0x37a2a3['document']['location']['href'],_0x1b0aac=new _0xd5332['URL'](_0x27c789['getAttribute']('src'),_0x261acf);if('data:'===_0x1b0aac['protocol']){const _0x594f71=_0x1b0aac['href']['split'](','),_0x4874d4=_0x594f71[0x0]['match'](/:(.*?);/)[0x1],_0x2ea787=_0x4874d4['split']('/')[0x1],_0x2e1095=_0xd5332['atob'](_0x594f71[_0x594f71['length']-0x1]);let _0x36f8ee=_0x2e1095['length'];const _0x4f32d1=new _0xd5332['Uint8Array'](_0x36f8ee);for(;_0x36f8ee--;)_0x4f32d1[_0x36f8ee]=_0x2e1095['charCodeAt'](_0x36f8ee);return new _0xd5332['File']([_0x4f32d1],'image.'+_0x2ea787,{'type':_0x4874d4});}const _0x4ab5dc=_0x1b0aac['href']['split']('/'),_0xa9a3ce=_0x4ab5dc[_0x4ab5dc['length']-0x1],_0x42fc5b=_0xa9a3ce['split']('.')[0x1];return _0xd5332['fetch'](_0x1b0aac['href'])['then'](_0x10031e=>_0x10031e['clone']()['blob']())['then'](_0x1883a0=>new _0xd5332['File']([_0x1883a0],_0xa9a3ce,{'type':'image/'+_0x42fc5b}));}}class O extends _0x1fe490{['imageEditController'];static get['requires'](){return[_0x50a307];}['_isEditable'];constructor(_0x388ea2){super(_0x388ea2),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x27edcf){const _0x2daab0=G(_0x27edcf);return _0x2a447b=>!(!_0x2a447b||!_0x2a447b['is']('element','imageBlock')&&!_0x2a447b['is']('element','imageInline'))&&(!!_0x2a447b['hasAttribute']('uploadcareImageId')||!!_0x2a447b['hasAttribute']('src')&&_0x2daab0(_0x2a447b['getAttribute']('src')));}(_0x388ea2['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1e5aaf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1e5aaf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x43253c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x43253c&&(_0x43253c['is']('element','imageBlock')||_0x43253c['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x50a307),_0x43253c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x1fe490{['refresh'](){const _0x38b583=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x38b583&&(_0x38b583['is']('element','imageBlock')||_0x38b583['is']('element','imageInline')));}['execute'](_0x5cd3de){const _0x3f16ed=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1b5785=>{_0x1b5785['setAttributes'](_0x5cd3de,_0x3f16ed),_0x1b5785['removeAttribute']('srcset',_0x3f16ed),_0x1b5785['removeAttribute']('sizes',_0x3f16ed);});}}class m extends _0x5d705e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1d64df,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xb6cf9c}=this;_0xb6cf9c['commands']['add']('uploadcareImageEdit',new O(_0xb6cf9c)),_0xb6cf9c['commands']['add']('uploadcareImageReplace',new R(_0xb6cf9c));}}class g extends _0x5d705e{['_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 _0x5e1c87=this['editor'];_0x5e1c87['ui']['componentFactory']['add']('uploadcareImageEdit',_0x650b2a=>{const _0x5b1077=_0x5e1c87['commands']['get']('uploadcareImageEdit'),_0x5945b6=new _0x5d0d58(_0x650b2a),t=_0x650b2a['t'];return _0x5945b6['set']({'icon':_0x4e57ef,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5945b6['bind']('isEnabled')['to'](_0x5b1077),_0x5945b6['bind']('isOn')['to'](_0x5b1077,'isActive'),this['listenTo'](_0x5945b6,'execute',()=>{_0x5e1c87['execute']('uploadcareImageEdit'),_0x5e1c87['editing']['view']['focus']();}),_0x5945b6;}),this['_initConfig']();}['_initConfig'](){const _0xdb9a1d=_0x5c2b58(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xdb9a1d),this['listenTo'](this['editor'],'destroy',()=>{_0xdb9a1d['remove']();});}}class et extends _0x5d705e{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,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x43a80a,Command as _0x266ed1}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x522601,IconGooglePhotos as _0x2d1b05,IconGoogleDrive as _0x5566cc,IconFacebook as _0x3c317a,IconDropbox as _0x767df9,IconUploadcareLink as _0x1f0729,IconUploadcareImageUpload as _0x382adf,IconError as _0x201453,IconUploadcareImageEdit as _0x21e4e7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x368b04,MenuBarMenuListItemButtonView as _0x186265,View as _0x49d1b2,FocusCycler as _0x3e1069,Dialog as _0x1166b4,DialogViewPosition as _0x26d088,SpinnerView as _0x553ae1,IconView as _0xc96a27,Notification as _0x529d3d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x56b82b,DomEmitterMixin as _0x10168a,global as _0x4d2ea8,getAncestors as _0x5d1ff3,ObservableMixin as _0x111ee7,uid as _0x39e3cb,createElement as _0x1177a3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x89b2c7}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1addbc,info as _0x40a904}from'@uploadcare/upload-client';import*as _0xdc4c4e from'@uploadcare/file-uploader';var S=function(_0x46b600){return _0x46b600['Local']='local',_0x46b600['URL']='url',_0x46b600['Dropbox']='dropbox',_0x46b600['GDrive']='gdrive',_0x46b600['Facebook']='facebook',_0x46b600['GPhotos']='gphotos',_0x46b600['OneDrive']='onedrive',_0x46b600;}({});function T(_0x2bdb53,_0x4cc6ea,_0x3b23bd){const t=_0x2bdb53['t'],_0x4d8cf8=_0x2bdb53['t'];switch(_0x4cc6ea){case S['Local']:return{'text':_0x4d8cf8('Insert'===_0x3b23bd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4d8cf8('From\x20computer')};case S['URL']:return{'text':'Insert'===_0x3b23bd?_0x4d8cf8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4d8cf8('Via\x20URL')};case S['Dropbox']:return{'text':t('Insert'===_0x3b23bd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case S['Facebook']:return{'text':t('Insert'===_0x3b23bd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case S['GDrive']:return{'text':t('Insert'===_0x3b23bd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case S['GPhotos']:return{'text':t('Insert'===_0x3b23bd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case S['OneDrive']:return{'text':t('Insert'===_0x3b23bd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4cc6ea;}}class A extends _0x43a80a{['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 _0x2a6273=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8d488e;for(const _0x176cbb in _0x2a6273){const _0xe8d0f7=_0x176cbb,_0x378bcd=_0x2a6273[_0xe8d0f7];if('uploadcareLicenseKeyValid'==_0x378bcd||'uploadcareLicenseKeyInvalid'==_0x378bcd||'uploadcareLicenseKeyExpired'==_0x378bcd||'uploadcareLicenseKeyDomainLimit'==_0x378bcd||'uploadcareLicenseKeyNotAllowed'==_0x378bcd||'uploadcareLicenseKeyEvaluationLimit'==_0x378bcd||'uploadcareLicenseKeyUsageLimit'==_0x378bcd){delete _0x2a6273[_0xe8d0f7],_0x8d488e=_0x378bcd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x8d488e&&_0x2a6273['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x8d488e&&_0x2a6273['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x8d488e&&_0x2a6273['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x8d488e&&_0x2a6273['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x8d488e&&_0x2a6273['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x8d488e&&_0x2a6273['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4ac027}=this,_0xaed97b=_0x4ac027['commands']['get']('uploadcare');if(!_0xaed97b)return;const _0x58895f=this['_normalizeConfigSourceList'](_0x4ac027['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x860605,_0x315cbf)=>{const _0x297ae3=this['_getIntegrationKey'](_0x315cbf['type']);return _0x860605[_0x297ae3]||(_0x860605[_0x297ae3]=[]),_0x860605[_0x297ae3]['push'](_0x315cbf),_0x860605;},{});_0x4ac027['plugins']['has']('ImageInsertUI')&&_0x4ac027['commands']['get']('uploadcare')&&Object['entries'](_0x58895f)['forEach'](([_0x2da114,_0x2ac08e])=>{_0x4ac027['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2da114,'observable':()=>_0xaed97b,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2ac08e),'formViewCreator':()=>this['_createDropdownButtons'](_0x2ac08e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2ac08e),'override':'assetManager'!==_0x2da114});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x434670){const {locale:_0x2481f4}=this['editor'];return _0x434670['map'](_0x317dfc=>{const _0x4cd033=T(_0x2481f4,_0x317dfc,'Insert');switch(_0x317dfc){case S['Local']:return{'icon':_0x382adf,'type':S['Local'],..._0x4cd033};case S['URL']:return{'icon':_0x1f0729,'type':S['URL'],..._0x4cd033};case S['Dropbox']:return{'icon':_0x767df9,'type':S['Dropbox'],..._0x4cd033};case S['Facebook']:return{'icon':_0x3c317a,'type':S['Facebook'],..._0x4cd033};case S['GDrive']:return{'icon':_0x5566cc,'type':S['GDrive'],..._0x4cd033};case S['GPhotos']:return{'icon':_0x2d1b05,'type':S['GPhotos'],..._0x4cd033};case S['OneDrive']:return{'icon':_0x522601,'type':S['OneDrive'],..._0x4cd033};}});}['_getIntegrationKey'](_0x3bf34b){switch(_0x3bf34b){case S['Local']:return'upload';case S['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5e18f9,_0x4bdcb0){const _0x6e315a=this['editor'],_0x681ea5=new _0x5e18f9(_0x6e315a['locale']),_0xd3191b=_0x6e315a['commands']['get']('uploadcare');return _0x681ea5['bind']('isEnabled')['to'](_0xd3191b),_0x681ea5['on']('execute',()=>{_0xd3191b['execute'](_0x4bdcb0);}),_0x681ea5;}['_createToolbarButton'](_0x453077){const {locale:_0x5f4479}=this['editor'],_0x36ece6=this['editor']['plugins']['get']('ImageInsertUI'),_0x1d4af2=_0x453077[0x0],_0x1d03d7=this['_createButton'](_0x368b04,_0x1d4af2['type']);return _0x1d03d7['icon']=_0x1d4af2['icon'],_0x1d03d7['bind']('label')['to'](_0x36ece6,'isImageSelected',_0x3f9d25=>T(_0x5f4479,_0x1d4af2['type'],_0x3f9d25?'Replace':'Insert')['text']),_0x1d03d7['tooltip']=!0x0,_0x1d03d7;}['_createDropdownButtons'](_0x3882de){const {locale:_0x49231f}=this['editor'],_0x47a5e8=this['editor']['plugins']['get']('ImageInsertUI');return _0x3882de['map'](_0x46f803=>{const _0x10bc02=this['_createButton'](_0x368b04,_0x46f803['type']);return _0x10bc02['withText']=!0x0,_0x10bc02['icon']=_0x46f803['icon'],_0x10bc02['bind']('label')['to'](_0x47a5e8,'isImageSelected',_0x5dc62d=>T(_0x49231f,_0x46f803['type'],_0x5dc62d?'Replace':'Insert')['text']),_0x10bc02;});}['_createMenuBarButtons'](_0xa215ca){return _0xa215ca['map'](_0x487b6d=>{const _0x126e3b=this['_createButton'](_0x186265,_0x487b6d['type']);return _0x126e3b['icon']=_0x487b6d['icon'],_0x126e3b['label']=_0x487b6d['shortText'],_0x126e3b;});}}class K extends _0x49d1b2{['focusTracker'];['focusCycler'];constructor(_0x2ed684){super(_0x2ed684),this['focusTracker']=new _0x56b82b(),this['focusCycler']=new _0x3e1069({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class O extends K{constructor(_0x1485da,_0x4ed195){super(_0x1485da),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-'+_0x4ed195}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function D(_0x25c487,_0x289157){const _0x1fc26e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1ba9ca=>_0x1ba9ca<=_0x289157)['map'](_0x5426ee=>_0x25c487['replace'](/\/$/,'')+'/-/resize/'+_0x5426ee+'x/\x20'+_0x5426ee+'w');return{'imageFallbackUrl':_0x25c487,'imageSources':[{'srcset':_0x1fc26e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x289157+'px)\x20100vw,\x20'+_0x289157+'px','type':'image/webp'}]};}function F(_0x403e70,_0x4a1e84,_0x3d05de){const _0xf33e8=_0x403e70['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xf33e8?parseInt(_0xf33e8[0x1],0xa):_0x4a1e84,'height':_0xf33e8?parseInt(_0xf33e8[0x2],0xa):_0x3d05de};}function $(_0x4ebabb,_0x37b3ad){const _0x1eeb37=new(_0x10168a())(),_0x3bacec=_0x4ebabb['plugins']['get']('ImageUtils'),_0x4b5e66=_0x4ebabb['editing']['mapper']['toViewElement'](_0x37b3ad),_0xdd603a=_0x3bacec['findViewImgElement'](_0x4b5e66),_0x1e3277=_0x4ebabb['editing']['view']['domConverter']['viewToDom'](_0xdd603a),_0x2dfd1c=_0x37b3ad['getAttribute']('width'),_0x19763c=_0x37b3ad['getAttribute']('height'),_0x251194='image-processing';_0x4ebabb['editing']['view']['change'](_0x1580f4=>{_0x1580f4['addClass'](_0x251194,_0x4b5e66),_0x1580f4['setStyle']('aspect-ratio',_0x2dfd1c+'/'+_0x19763c,_0xdd603a);}),_0x1eeb37['listenTo'](_0x1e3277,'load',()=>{_0x1eeb37['stopListening'](_0x1e3277,'load'),_0x4ebabb['editing']['view']['change'](_0x113b90=>{_0x113b90['removeClass'](_0x251194,_0x4b5e66),_0x113b90['removeStyle']('aspect-ratio',_0xdd603a);});});}function B(_0x2d7841){if(Array['isArray'](_0x2d7841)){const _0x4d8257=_0x2d7841['map'](B);return _0x2c20e7=>_0x4d8257['some'](_0x3ebef0=>_0x3ebef0(_0x2c20e7));}if('origin'==_0x2d7841){const _0x4ce9be=_0x4d2ea8['window']['location']['origin'];return _0x375b49=>new URL(_0x375b49,_0x4d2ea8['document']['baseURI'])['origin']==_0x4ce9be;}return'function'==typeof _0x2d7841?_0x2d7841:_0x2d7841 instanceof RegExp?_0x39c3f5=>!(!_0x39c3f5['match'](_0x2d7841)&&!_0x39c3f5['replace'](/^https?:\/\//,'')['match'](_0x2d7841)):()=>!0x1;}function V(_0x3e34f4,_0x31d5da){return _0x5d1ff3(_0x3e34f4['target'])['includes'](_0x31d5da);}class j extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x111ee7(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3c6ca9,_0x5d9eb2,_0x533693){super(),this['_editor']=_0x3c6ca9,this['_editing']=_0x5d9eb2,this['_dialog']=_0x3c6ca9['plugins']['get'](_0x1166b4),this['_api']=_0x5d9eb2['ctxElement']['getAPI'](),this['_type']=_0x533693,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:_0x413ab2,model:_0x203f2d}=this['_editor'],_0x1f205c=_0x203f2d['document']['selection']['getSelectedElement'](),_0x26472f=_0x1f205c&&(_0x1f205c['is']('element','imageBlock')||_0x1f205c['is']('element','imageInline'));this['_formView']=new O(_0x413ab2,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x382adf,'title':T(_0x413ab2,this['_type'],_0x26472f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x26d088['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2b8ba9=>!V(_0x2b8ba9,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4a71f5}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x49cb70=>{const _0x57e773=_0x4a71f5['length'];for(const _0x3232a4 of _0x4a71f5){const _0x326d07=_0x3232a4===_0x4a71f5[_0x57e773-0x1],{cdnUrl:_0x35a8b4,fileInfo:_0x29b619}=_0x3232a4;if(!_0x35a8b4||!_0x29b619)continue;const {width:_0x1b0b95,height:_0x18eb7e}=_0x29b619['imageInfo'],_0x4783d1=F(_0x35a8b4,_0x1b0b95,_0x18eb7e),_0x5e2b5f=D(_0x35a8b4,_0x4783d1['width']),_0x4f8b3f={'id':_0x29b619['uuid'],'type':'image','attributes':{'imageDimension':_0x4783d1,..._0x5e2b5f}};this['_insertAsset'](_0x4f8b3f,_0x326d07,_0x49cb70);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x262408=>{'idle'===_0x262408['detail']['status']&&!_0x262408['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===S['Local']?this['_api']['setCurrentActivity'](S['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4d7d1a,_0x5bdeec,_0xc457f5){const _0x1588ca=this['_editor']['model']['document']['selection'],_0x4a0aab=_0x1588ca['getSelectedElement'](),_0x2a8868=!(!_0x4a0aab||!_0x4a0aab['is']('element','imageInline'));_0xc457f5['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4d7d1a,_0x2a8868),_0x5bdeec||_0xc457f5['setSelection'](_0x1588ca['getLastPosition']());}['_insertImage'](_0x59d7d4,_0x3d0e02){const _0x1ebf22=this['_editor'],{imageDimension:_0x59d172,imageFallbackUrl:_0x189a26,imageSources:_0x5bf2b9}=_0x59d7d4['attributes'];_0x1ebf22['execute']('insertImage',{'imageType':_0x3d0e02?'imageInline':null,'source':{'uploadcareImageId':_0x59d7d4['id'],'src':_0x189a26,'sources':_0x5bf2b9,..._0x59d172}});}}class M extends _0x266ed1{['_editing'];['_controller']=null;static get['requires'](){return[_0x1166b4,z];}constructor(_0x5066f8){super(_0x5066f8),this['_editing']=_0x5066f8['plugins']['get'](z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x12c404){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new j(this['editor'],this['_editing'],_0x12c404);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class q{static['upload']({file:_0x496ea3,..._0x3865a6}){return _0x1addbc(_0x496ea3,_0x3865a6);}static['getInfo'](_0x7a12ba,_0x857359){return _0x40a904(_0x7a12ba,_0x857359);}}class W extends _0x43a80a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x89b2c7,z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x22a1f0=this['editor'];if(!!!_0x22a1f0['config']['get']('uploadcare'))return;_0x22a1f0['plugins']['get'](_0x89b2c7)['createUploadAdapter']=_0x36b56f=>new G(_0x36b56f,_0x22a1f0),_0x22a1f0['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x347a3f,{imageElement:_0x1d476a,data:_0x2e1245})=>{_0x22a1f0['model']['change'](_0x4f4601=>{_0x4f4601['setAttribute']('uploadcareImageId',_0x2e1245['uploadcareImageId'],_0x1d476a);});});}}class G{['loader'];['editor'];['controller'];constructor(_0x34e89c,_0x6f96bc){this['loader']=_0x34e89c,this['editor']=_0x6f96bc,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x59fd66=await this['loader']['file'];return q['upload']({'file':_0x59fd66,'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':_0x3bcd49=>{_0x3bcd49&&_0x3bcd49['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3bcd49['value']);}})['then'](async _0x309299=>{const {imageFallbackUrl:_0x1f4718,imageSources:_0x1c1951}=D(_0x309299['cdnUrl'],_0x309299['imageInfo']['width']);return{'uploadcareImageId':_0x309299['uuid'],'default':_0x1f4718,'sources':_0x1c1951};})['catch'](()=>{const _0x4cd04b=t('Cannot\x20upload\x20file:')+('\x20'+_0x59fd66['name']+'.');return Promise['reject'](_0x4cd04b);});}['abort'](){this['controller']['abort']();}}class z extends _0x43a80a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',W,_0x1166b4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xf8782f){super(_0xf8782f),this['ucContextId']=_0x39e3cb();}['init'](){const _0x2a47f0=this['editor'];_0x2a47f0['commands']['add']('uploadcare',new M(_0x2a47f0));}['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 _0x5e3b02=_0x4d2ea8['document']['querySelector']('input[uploadcare-file-input]');_0x5e3b02&&_0x5e3b02['remove']();}),async function(_0x5b0403){const _0x4527b4=_0x18049f([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]),_0x350e94=0x535f8c3a,_0x2f393d=0x5358f26a^_0x350e94,_0x3dc3ce=window[_0x18049f([0x44,0x61,0x74,0x65])][_0x18049f([0x6e,0x6f,0x77])](),_0xe6cc83=_0x5b0403[_0x18049f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x191ff7=new window[(_0x18049f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bed36=>{_0xe6cc83[_0x18049f([0x6f,0x6e,0x63,0x65])](_0x18049f([0x72,0x65,0x61,0x64,0x79]),_0x1bed36);}),_0x2089b6={[_0x18049f([0x6b,0x74,0x79])]:_0x18049f([0x45,0x43]),[_0x18049f([0x75,0x73,0x65])]:_0x18049f([0x73,0x69,0x67]),[_0x18049f([0x63,0x72,0x76])]:_0x18049f([0x50,0x2d,0x32,0x35,0x36]),[_0x18049f([0x78])]:_0x18049f([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]),[_0x18049f([0x79])]:_0x18049f([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]),[_0x18049f([0x61,0x6c,0x67])]:_0x18049f([0x45,0x53,0x32,0x35,0x36])},_0xa3b7cb=_0xe6cc83[_0x18049f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x18049f([0x67,0x65,0x74])](_0x18049f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa24df5(){let _0x45db9f,_0x4c3f53=null,_0x115842=null;try{if(_0xa3b7cb==_0x18049f([0x47,0x50,0x4c]))return _0x18049f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x45db9f=_0x1e533d(),!_0x45db9f)return _0x18049f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x45db9f[_0x18049f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x115842=_0x2b3674(_0x45db9f[_0x18049f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x45db9f[_0x18049f([0x6a,0x74,0x69])])),await _0x4bda2c()?_0x2686fe()?_0x37197a()?_0x18049f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b5056()?(_0x45db9f[_0x18049f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18049f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4c3f53=_0x42859e(_0x18049f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x479745()):_0x18049f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x18049f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x18049f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x18049f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x37197a(){const _0x739de8=[_0x18049f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x18049f([0x74,0x72,0x69,0x61,0x6c])][_0x18049f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45db9f[_0x18049f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3dc3ce/0x3e8:0xe10*_0x2f393d;return _0x45db9f[_0x18049f([0x65,0x78,0x70])]<_0x739de8;}function _0x2686fe(){const _0x3254df=_0x45db9f[_0x18049f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3254df&&(!!_0x3254df[_0x18049f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18049f([0x2a]))||!!_0x3254df[_0x18049f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18049f([0x55,0x50,0x4c,0x43])));}function _0x2b5056(){const _0x13f09a=_0x45db9f[_0x18049f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x13f09a||0x0==_0x13f09a[_0x18049f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b9f2d}=new URL(window[_0x18049f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x13f09a[_0x18049f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b9f2d))return!0x0;const _0x2bb5a6=_0x1b9f2d[_0x18049f([0x73,0x70,0x6c,0x69,0x74])](_0x18049f([0x2e]));return _0x13f09a[_0x18049f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14ae63=>_0x14ae63[_0x18049f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18049f([0x2a])))[_0x18049f([0x6d,0x61,0x70])](_0x349a2c=>_0x349a2c[_0x18049f([0x73,0x70,0x6c,0x69,0x74])](_0x18049f([0x2e])))[_0x18049f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x433457=>_0x433457[_0x18049f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2bb5a6[_0x18049f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x18049f([0x6d,0x61,0x70])](_0x1b8818=>Array(_0x2bb5a6[_0x18049f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b8818[_0x18049f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x18049f([0x66,0x69,0x6c,0x6c])](_0x1b8818[0x0]===_0x18049f([0x2a])?_0x18049f([0x2a]):'')[_0x18049f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b8818))[_0x18049f([0x73,0x6f,0x6d,0x65])](_0x5ba467=>_0x2bb5a6[_0x18049f([0x65,0x76,0x65,0x72,0x79])]((_0x2658e7,_0x1ad073)=>_0x5ba467[_0x1ad073]===_0x2658e7||_0x5ba467[_0x1ad073]===_0x18049f([0x2a])));}function _0x479745(){return _0x4c3f53&&_0x115842?new window[(_0x18049f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b0eeb,_0x5c3f39)=>{_0x4c3f53[_0x18049f([0x74,0x68,0x65,0x6e])](_0x3b0eeb,_0x5c3f39),_0x115842[_0x18049f([0x74,0x68,0x65,0x6e])](_0x124ac8=>{_0x124ac8!=_0x18049f([0x56,0x61,0x6c,0x69,0x64])&&_0x3b0eeb(_0x124ac8);},_0x5c3f39);}):_0x4c3f53||_0x115842||_0x18049f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b3674(_0x2abecb,_0xf48b54){return new window[(_0x18049f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c8ed9=>{if(_0x3f0bc2())return _0x4c8ed9(_0x18049f([0x56,0x61,0x6c,0x69,0x64]));_0x422ae0(),_0xe6cc83[_0x18049f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x18049f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3fb5a7=!0x1;const _0x236abb=_0x39e3cb();function _0x3067d0(_0x504969){return!!_0x504969&&(typeof _0x504969===_0x18049f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x504969===_0x18049f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x504969[_0x18049f([0x74,0x68,0x65,0x6e])]===_0x18049f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x504969[_0x18049f([0x63,0x61,0x74,0x63,0x68])]===_0x18049f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38e182(_0xe7369a){_0x2e976c(_0xe7369a)[_0x18049f([0x74,0x68,0x65,0x6e])](_0x3795c7=>{if(!_0x3795c7||_0x3795c7[_0x18049f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x18049f([0x6f,0x6b]))return _0x18049f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x51c18c(_0x164520(_0x236abb+_0xf48b54))!=_0x3795c7[_0x18049f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x18049f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x18049f([0x56,0x61,0x6c,0x69,0x64]);})[_0x18049f([0x74,0x68,0x65,0x6e])](_0x3b84c4=>(_0x428112(),_0x3b84c4),()=>{const _0x251190=_0x203d1b();return null==_0x251190?(_0x428112(),_0x18049f([0x56,0x61,0x6c,0x69,0x64])):_0x18049f(_0x3dc3ce-_0x251190>(0x7753083a^_0x350e94)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x18049f([0x74,0x68,0x65,0x6e])](_0x4c8ed9)[_0x18049f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c8ed9(_0x18049f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37cfd4=0x536962ba^_0x350e94;function _0x428112(){const _0x1cbf95=_0x18049f([0x6c,0x6c,0x63,0x74,0x2d])+_0x51c18c(_0x164520(_0x2abecb)),_0x211b55=_0xe0a273(_0x51c18c(window[_0x18049f([0x4d,0x61,0x74,0x68])][_0x18049f([0x63,0x65,0x69,0x6c])](_0x3dc3ce/_0x37cfd4)));window[_0x18049f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18049f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cbf95,_0x211b55);}function _0x203d1b(){const _0x29124e=_0x18049f([0x6c,0x6c,0x63,0x74,0x2d])+_0x51c18c(_0x164520(_0x2abecb)),_0x31bfdc=window[_0x18049f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18049f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29124e);return _0x31bfdc?window[_0x18049f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe0a273(_0x31bfdc),0x10)*_0x37cfd4:null;}function _0x2e976c(_0x45a303){return new window[(_0x18049f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x200e07,_0x5ab507)=>{_0x45a303[_0x18049f([0x74,0x68,0x65,0x6e])](_0x200e07,_0x5ab507),window[_0x18049f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5ab507,0x535e58fa^_0x350e94);});}}_0xe6cc83[_0x18049f([0x6f,0x6e])](_0x18049f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5044e6,_0x3d367b)=>{if(_0x3d367b[0x0]!=_0x2abecb)return _0x4c8ed9(_0x18049f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d367b[0x1]={..._0x3d367b[0x1],[_0x18049f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x236abb};},{[_0x18049f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18049f([0x68,0x69,0x67,0x68])}),_0xe6cc83[_0x18049f([0x6f,0x6e])](_0x18049f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x227c00=>{_0x3067d0(_0x227c00[_0x18049f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3fb5a7=!0x0,_0x38e182(_0x227c00[_0x18049f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x18049f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18049f([0x6c,0x6f,0x77])}),_0x191ff7[_0x18049f([0x74,0x68,0x65,0x6e])](()=>{_0x3fb5a7||_0x4c8ed9(_0x18049f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f0bc2(){return _0xe6cc83[_0x18049f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18049f([0x76,0x69,0x65,0x77])][_0x18049f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x18049f([0x61,0x75,0x74,0x6f]);}function _0x422ae0(){_0xe6cc83[_0x18049f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18049f([0x76,0x69,0x65,0x77])][_0x18049f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18049f([0x61,0x75,0x74,0x6f]);}}function _0x42859e(_0xc39ebc){const _0x376779=[new window[(_0x18049f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47fd03=>setTimeout(_0x47fd03,0x5356b2f6^_0x350e94)),_0x191ff7[_0x18049f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x18049f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ae68c=>{let _0x54f2a2=0x0;_0xe6cc83[_0x18049f([0x6d,0x6f,0x64,0x65,0x6c])][_0x18049f([0x6f,0x6e])](_0x18049f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a226b,_0x2d700a)=>{_0x2d700a[0x0][_0x18049f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x54f2a2++,_0x54f2a2==(0x535f89d2^_0x350e94)&&(_0x3ae68c(),_0x4a226b[_0x18049f([0x6f,0x66,0x66])]());});}))];return window[_0x18049f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18049f([0x72,0x61,0x63,0x65])](_0x376779)[_0x18049f([0x74,0x68,0x65,0x6e])](()=>_0xc39ebc);}async function _0x295822(){await _0x191ff7,_0xe6cc83[_0x18049f([0x6d,0x6f,0x64,0x65,0x6c])][_0x18049f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x141357,_0xe6cc83[_0x18049f([0x6d,0x6f,0x64,0x65,0x6c])][_0x18049f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x141357,_0xe6cc83[_0x18049f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x18049f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xf08c80(_0x46f5d4){const _0x50303b=_0x3c0090();_0xe6cc83[_0x50303b]=_0x18049f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x46f5d4,_0x46f5d4!=_0x18049f([0x56,0x61,0x6c,0x69,0x64])&&_0x295822();}function _0x3c0090(){const _0x139d5b=window[_0x18049f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x18049f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x18049f([0x6e,0x6f,0x77])]())[_0x18049f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x18049f([0x2e]),'');let _0x56e401=_0x18049f([0x68]);for(let _0x4391bf=0x0;_0x4391bf<_0x139d5b[_0x18049f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4391bf+=0x2){let _0x1f97af=window[_0x18049f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x139d5b[_0x18049f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4391bf,_0x4391bf+0x2));_0x1f97af>=_0x4527b4[_0x18049f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f97af-=_0x4527b4[_0x18049f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x56e401+=_0x4527b4[_0x1f97af];}return _0x56e401;}function _0x1e533d(){const _0x5d0f62=_0xa3b7cb[_0x18049f([0x73,0x70,0x6c,0x69,0x74])](_0x18049f([0x2e]));if(0x3!=_0x5d0f62[_0x18049f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4373db(_0x5d0f62[0x1]);function _0x4373db(_0x157d5a){const _0x1007e4=_0x3e6e92(_0x157d5a);return _0x1007e4&&_0x84a096()?_0x1007e4:null;function _0x84a096(){const _0x15b7e4=_0x1007e4[_0x18049f([0x6a,0x74,0x69])],_0x247f6b=window[_0x18049f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15b7e4[_0x18049f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15b7e4[_0x18049f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3dbd91={..._0x1007e4,[_0x18049f([0x6a,0x74,0x69])]:_0x15b7e4[_0x18049f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15b7e4[_0x18049f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3dbd91[_0x18049f([0x76,0x63])],_0x164520(_0x3dbd91)==_0x247f6b;}}}async function _0x4bda2c(){let _0x13d0b9=!0x0;try{const _0x51acd2=_0xa3b7cb[_0x18049f([0x73,0x70,0x6c,0x69,0x74])](_0x18049f([0x2e])),[_0x5f0301,_0x1f566a,_0x28c3f1]=_0x51acd2;return _0x3bb105(_0x5f0301),await _0x48f6c0(_0x5f0301,_0x1f566a,_0x28c3f1),_0x13d0b9;}catch{return!0x1;}function _0x3bb105(_0x521162){const _0x442c1e=_0x3e6e92(_0x521162);_0x442c1e&&_0x442c1e[_0x18049f([0x61,0x6c,0x67])]==_0x18049f([0x45,0x53,0x32,0x35,0x36])||(_0x13d0b9=!0x1);}async function _0x48f6c0(_0x392199,_0x2a9d33,_0x2ceb2f){const _0x377190=window[_0x18049f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x18049f([0x66,0x72,0x6f,0x6d])](_0x1d54ff(_0x2ceb2f),_0x25967c=>_0x25967c[_0x18049f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x572dfb=new window[(_0x18049f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x18049f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x392199+_0x18049f([0x2e])+_0x2a9d33),_0x2219c6=window[_0x18049f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x18049f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2219c6)return;const _0xbecfac=await _0x2219c6[_0x18049f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x18049f([0x6a,0x77,0x6b]),_0x2089b6,{[_0x18049f([0x6e,0x61,0x6d,0x65])]:_0x18049f([0x45,0x43,0x44,0x53,0x41]),[_0x18049f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x18049f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x18049f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2219c6[_0x18049f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x18049f([0x6e,0x61,0x6d,0x65])]:_0x18049f([0x45,0x43,0x44,0x53,0x41]),[_0x18049f([0x68,0x61,0x73,0x68])]:{[_0x18049f([0x6e,0x61,0x6d,0x65])]:_0x18049f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xbecfac,_0x377190,_0x572dfb)||(_0x13d0b9=!0x1);}}function _0x3e6e92(_0x119783){return _0x119783[_0x18049f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x18049f([0x65,0x79]))?JSON[_0x18049f([0x70,0x61,0x72,0x73,0x65])](_0x1d54ff(_0x119783)):null;}function _0x1d54ff(_0x305cac){return window[_0x18049f([0x61,0x74,0x6f,0x62])](_0x305cac[_0x18049f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x18049f([0x2b]))[_0x18049f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x18049f([0x2f])));}function _0x164520(_0xffdad7){let _0x3d989c=0x1505;function _0x30c668(_0x6301da){for(let _0x335e29=0x0;_0x335e29<_0x6301da[_0x18049f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x335e29++){const _0x1acf15=_0x6301da[_0x18049f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x335e29);_0x3d989c=(_0x3d989c<<0x5)+_0x3d989c+_0x1acf15,_0x3d989c&=_0x3d989c;}}function _0x4965b2(_0x556e53){Array[_0x18049f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x556e53)?_0x556e53[_0x18049f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4965b2):_0x556e53&&typeof _0x556e53==_0x18049f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x18049f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x556e53)[_0x18049f([0x73,0x6f,0x72,0x74])]()[_0x18049f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4019f8,_0x4b78b2])=>{_0x30c668(_0x4019f8),_0x4965b2(_0x4b78b2);}):_0x30c668(window[_0x18049f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x556e53));}return _0x4965b2(_0xffdad7),_0x3d989c>>>0x0;}function _0x51c18c(_0x31bfa2){return _0x31bfa2[_0x18049f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x18049f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x18049f([0x30]));}function _0xe0a273(_0x401135){return _0x401135[_0x18049f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x18049f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x18049f([0x6a,0x6f,0x69,0x6e])]('');}function _0x141357(){}function _0x18049f(_0xdbc491){return _0xdbc491['map'](_0x2ebb2b=>String['fromCharCode'](_0x2ebb2b))['join']('');}_0xf08c80(await _0xa24df5());}(this);}['_initSchema'](){const _0x13c8e1=this['editor']['model']['schema'];_0x13c8e1['isRegistered']('imageBlock')&&_0x13c8e1['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x13c8e1['isRegistered']('imageInline')&&_0x13c8e1['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x11c8d1=this['editor'];_0x11c8d1['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x11c8d1['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2788f8=>_0x2788f8['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57ccc9=_0x11c8d1['commands']['get']('replaceImageSource');_0x57ccc9&&this['listenTo'](_0x57ccc9,'cleanupImage',(_0x457541,[_0x973314,_0x18e38d])=>{_0x973314['removeAttribute']('uploadcareImageId',_0x18e38d);});}['_initConfig'](){const _0x1c5e6d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3a0041=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1177a3(_0x4d2ea8['document'],'uc-config',{..._0x1c5e6d,'pubkey':_0x3a0041,'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']=_0x598abc=>{if('closeMax'==_0x598abc)return'#uc-icon-arrow-down';},_0x4d2ea8['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1177a3(_0x4d2ea8['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4d2ea8['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xcc2d86=this['editor']['commands']['get']('insertImage');_0xcc2d86&&this['listenTo'](_0xcc2d86,'execute',()=>{const _0x354533=this['editor']['model']['document']['selection']['getSelectedElement']();_0x354533&&_0x354533['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x354533);});});const _0x123d43=this['editor']['commands']['get']('uploadcareImageReplace');_0x123d43&&this['listenTo'](_0x123d43,'execute',()=>{const _0x5a49bf=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5a49bf&&_0x5a49bf['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x5a49bf);});});}}class H extends _0x43a80a{static get['requires'](){return[z,A];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45b108){super(_0x45b108),_0x45b108['config']['define']('uploadcare.uploader.sourceList',[S['Local'],S['URL']]),_0xdc4c4e['defineComponents'](_0xdc4c4e),this['_defineLocale']();}['_defineLocale'](){const _0x584112=this['editor']['config']['get']('uploadcare.locale'),_0xc69b1a=this['editor']['locale']['contentLanguage'];_0x584112&&_0xdc4c4e['defineLocale'](_0xc69b1a,_0x584112);}}class J extends _0x49d1b2{constructor(_0x496bf6){super(_0x496bf6);const t=_0x496bf6['t'],_0x52ff72=this['bindTemplate'],_0x3b5467=new _0x553ae1();_0x3b5467['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':[_0x3b5467,{'text':_0x52ff72['to']('imageUploadProgress',_0x4c9fa9=>t('Loading\x20image...')+'\x20('+(_0x4c9fa9||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 _0x49d1b2{constructor(_0x318bfb){super(_0x318bfb);const t=_0x318bfb['t'];this['set']('errorType',null);const _0xb7b605=new _0x368b04(_0x318bfb);_0xb7b605['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xb7b605['withText']=!0x0,_0xb7b605['class']='ck-button-action',_0xb7b605['on']('execute',()=>{this['fire']('retry');}),_0xb7b605['bind']('isVisible')['to'](this,'errorType',_0x46993a=>'NotFound'!==_0x46993a);const _0x3f092d=new _0xc96a27();_0x3f092d['content']=_0x201453,_0x3f092d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x37508b=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':[_0x3f092d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x37508b['to']('errorType',_0x2e6412=>t('NotFound'!==_0x2e6412?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xb7b605]},{'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 _0x49d1b2{constructor(_0xc6ae53,_0x1d1608){super(_0xc6ae53);const _0x2ace21=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1d1608,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2ace21['to']('imageSrc')}});}}class X extends K{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2c7a58,_0x3ec87a,_0x2659d0){super(_0x2c7a58),this['_items']=this['createCollection'](),this['_loadingView']=new J(_0x2c7a58),this['_errorView']=new Z(_0x2c7a58),this['_editingView']=new Q(_0x2c7a58,_0x2659d0),this['_focusableView']=new _0x49d1b2(_0x2c7a58),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3ec87a),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'],_0x18a915=>{this['_addUploadcareImageEditorListeners'](_0x18a915);});}),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'](_0x2a78b5,_0x5c1e41){const _0x372c2f='uc-cloud-image-editor',_0xe9d4ec=_0x2a78b5['querySelector'](_0x372c2f);if(_0xe9d4ec)return _0x5c1e41(_0xe9d4ec);const _0x1b0cae=new MutationObserver(_0x1e8d63=>{const _0x27c45f=_0x1e8d63['filter'](_0x4e1236=>_0x4e1236['target']===_0x2a78b5&&_0x4e1236['addedNodes']['length']>0x0&&_0x4e1236['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x372c2f);_0x27c45f['length']&&(_0x1b0cae['disconnect'](),_0x5c1e41(_0x27c45f[0x0]['addedNodes'][0x0]));});_0x1b0cae['observe'](_0x2a78b5,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x52b4aa){_0x52b4aa['addEventListener']('apply',_0xb2cedf=>{this['fire']('apply',{'imageSrc':_0xb2cedf['detail']['cdnUrl']});}),_0x52b4aa['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Y extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x111ee7(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x513489,_0x54fe0e,_0x423cfa){super(),this['_editor']=_0x513489,this['_dialog']=_0x54fe0e,this['_imageElement']=_0x423cfa,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 _0x32f60e=this['_imageElement'],_0x26ff13=_0x32f60e['getAttribute']('uploadcareImageId'),_0x4ec3e3=_0x32f60e['getAttribute']('src');if(_0x26ff13)await this['_loadImageInfo'](_0x26ff13,_0x4ec3e3);else{if(this['_imageCache']['has'](_0x4ec3e3)){const _0x461fa0=this['_imageCache']['get'](_0x4ec3e3);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x461fa0['url'],this['imageDimension']=_0x461fa0['dimension'],this['imageId']=_0x461fa0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3d596b}=this['_editor'],t=_0x3d596b['t'],_0x2c0133=new X(_0x3d596b,this['imageStatus'],this['_attributes']);_0x2c0133['bind']('status')['to'](this,'imageStatus'),_0x2c0133['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2c0133['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2c0133['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2c0133,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x21e4e7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2c0133,'position':_0x26d088['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2c0133['focus']();},'onHide':()=>{_0x2c0133['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x38d59c=>!V(_0x38d59c,_0x2c0133['element'])}});}['_loadImageInfo'](_0x2c58dd,_0x3c6329){return q['getInfo'](_0x2c58dd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5629ab=>{const {width:_0xd30a4a,height:_0x375b0}=_0x5629ab['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c6329,this['imageDimension']={'width':_0xd30a4a,'height':_0x375b0},this['imageId']=_0x2c58dd;})['catch'](_0x1a0098=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1a0098['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3de534,_0x264cb4){return this['_getImageAsFile'](_0x3de534)['then'](_0x3e01cc=>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':_0x264cb4['signal'],'file':_0x3e01cc,'onProgress':_0x4a36ab=>{_0x4a36ab&&_0x4a36ab['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4a36ab['value']));}}))['then'](_0x2e5390=>{const {width:_0x533457,height:_0x259cf8}=_0x2e5390['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2e5390['cdnUrl'],this['imageDimension']={'width':_0x533457,'height':_0x259cf8},this['imageId']=_0x2e5390['uuid'],this['imageUploadProgress']=null;const _0x44a8bd=_0x3de534['getAttribute']('src');this['_imageCache']['set'](_0x44a8bd,{'id':_0x2e5390['uuid'],'url':_0x2e5390['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x418d97=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x418d97['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1fe5d5,_0x24aee0){_0x1fe5d5['on']('apply',(_0x498189,_0x3cbc70)=>{this['_replaceImage'](_0x24aee0,_0x3cbc70['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1fe5d5['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1fe5d5['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x18f4cf,_0x379d44,_0x1b4f85){const _0x20ad6c=this['_editor'],{width:_0xa53060,height:_0x408dd0}=F(_0x379d44,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x418fee,imageSources:_0xa1bb5f}=D(_0x379d44,_0xa53060);_0x20ad6c['model']['change'](_0x5e9719=>{if('$graveyard'===_0x18f4cf['root']['rootName']){_0x20ad6c['execute']('insertImage',{'imageType':_0x18f4cf['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x18f4cf['getAttributes']()),'uploadcareImageId':_0x1b4f85,'src':_0x418fee,'sources':_0xa1bb5f,'width':_0xa53060,'height':_0x408dd0}});const _0x4b0a3c=_0x18f4cf['getChildren']();_0x18f4cf=_0x20ad6c['model']['document']['selection']['getSelectedElement']();for(const _0x1389ff of _0x4b0a3c)_0x5e9719['append'](_0x5e9719['cloneElement'](_0x1389ff),_0x18f4cf);}else _0x5e9719['setSelection'](_0x18f4cf,'on'),_0x20ad6c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x18f4cf['getAttributes']()),'uploadcareImageId':_0x1b4f85,'src':_0x418fee,'sources':_0xa1bb5f,'width':_0xa53060,'height':_0x408dd0},_0x18f4cf);_0x5e9719['setSelection'](_0x18f4cf,'on');});}async['_getImageAsFile'](_0x1f8112){const _0x1a58dd=_0x4d2ea8['window'],_0x28e4fa=_0x4d2ea8['document']['location']['href'],_0x3043db=new _0x1a58dd['URL'](_0x1f8112['getAttribute']('src'),_0x28e4fa);if('data:'===_0x3043db['protocol']){const _0x161600=_0x3043db['href']['split'](','),_0x1252fb=_0x161600[0x0]['match'](/:(.*?);/)[0x1],_0x913b6c=_0x1252fb['split']('/')[0x1],_0x47722a=_0x1a58dd['atob'](_0x161600[_0x161600['length']-0x1]);let _0x418086=_0x47722a['length'];const _0x405ae8=new _0x1a58dd['Uint8Array'](_0x418086);for(;_0x418086--;)_0x405ae8[_0x418086]=_0x47722a['charCodeAt'](_0x418086);return new _0x1a58dd['File']([_0x405ae8],'image.'+_0x913b6c,{'type':_0x1252fb});}const _0x38c8e3=_0x3043db['href']['split']('/'),_0x37a5a0=_0x38c8e3[_0x38c8e3['length']-0x1],_0x4bd075=_0x37a5a0['split']('.')[0x1];return _0x1a58dd['fetch'](_0x3043db['href'])['then'](_0x4f2462=>_0x4f2462['clone']()['blob']())['then'](_0x2c946a=>new _0x1a58dd['File']([_0x2c946a],_0x37a5a0,{'type':'image/'+_0x4bd075}));}}class tt extends _0x266ed1{['imageEditController'];static get['requires'](){return[_0x1166b4];}['_isEditable'];constructor(_0x5848e6){super(_0x5848e6),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x16d593){const _0x5d3005=B(_0x16d593);return _0x47ff5a=>!(!_0x47ff5a||!_0x47ff5a['is']('element','imageBlock')&&!_0x47ff5a['is']('element','imageInline'))&&(!!_0x47ff5a['hasAttribute']('uploadcareImageId')||!!_0x47ff5a['hasAttribute']('src')&&_0x5d3005(_0x47ff5a['getAttribute']('src')));}(_0x5848e6['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xc36677=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xc36677);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5104fd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5104fd&&(_0x5104fd['is']('element','imageBlock')||_0x5104fd['is']('element','imageInline'))&&(this['imageEditController']=new Y(this['editor'],this['editor']['plugins']['get'](_0x1166b4),_0x5104fd),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class et extends _0x266ed1{['refresh'](){const _0x189a18=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x189a18&&(_0x189a18['is']('element','imageBlock')||_0x189a18['is']('element','imageInline')));}['execute'](_0x468716){const _0x4933ae=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4c07cc=>{_0x4c07cc['setAttributes'](_0x468716,_0x4933ae),_0x4c07cc['removeAttribute']('srcset',_0x4933ae),_0x4c07cc['removeAttribute']('sizes',_0x4933ae);});}}class it extends _0x43a80a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[z,_0x529d3d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x46e21f}=this;_0x46e21f['commands']['add']('uploadcareImageEdit',new tt(_0x46e21f)),_0x46e21f['commands']['add']('uploadcareImageReplace',new et(_0x46e21f));}}class st extends _0x43a80a{['_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 _0x111259=this['editor'];_0x111259['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2e6890=>{const _0x4d7e95=_0x111259['commands']['get']('uploadcareImageEdit'),_0x58bee5=new _0x368b04(_0x2e6890),t=_0x2e6890['t'];return _0x58bee5['set']({'icon':_0x21e4e7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x58bee5['bind']('isEnabled')['to'](_0x4d7e95),_0x58bee5['bind']('isOn')['to'](_0x4d7e95,'isActive'),this['listenTo'](_0x58bee5,'execute',()=>{_0x111259['execute']('uploadcareImageEdit'),_0x111259['editing']['view']['focus']();}),_0x58bee5;}),this['_initConfig']();}['_initConfig'](){const _0x1873cb=_0x1177a3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1873cb),this['listenTo'](this['editor'],'destroy',()=>{_0x1873cb['remove']();});}}class nt extends _0x43a80a{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[it,st];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{H as Uploadcare,M as UploadcareCommand,z as UploadcareEditing,nt as UploadcareImageEdit,tt as UploadcareImageEditCommand,it as UploadcareImageEditEditing,st as UploadcareImageEditUI,A as UploadcareUI,W as UploadcareUploadAdapter};
|
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':_0x272fde=>0x1!=_0x272fde}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x36b538=>{const {af:{dictionary:_0x520133,getPluralForm:_0x1c5050}}={'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':_0x1e1d8c=>0x1!=_0x1e1d8c}};_0x36b538['af']||={'dictionary':{},'getPluralForm':null},_0x36b538['af']['dictionary']=Object['assign'](_0x36b538['af']['dictionary'],_0x520133),_0x36b538['af']['getPluralForm']=_0x1c5050;})(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':_0x41023c=>0x0==_0x41023c?0x0:0x1==_0x41023c?0x1:0x2==_0x41023c?0x2:_0x41023c%0x64>=0x3&&_0x41023c%0x64<=0xa?0x3:_0x41023c%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xa7b9d2=>{const {ar:{dictionary:_0x295422,getPluralForm:_0x37bc97}}={'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':_0x4a6cbd=>0x0==_0x4a6cbd?0x0:0x1==_0x4a6cbd?0x1:0x2==_0x4a6cbd?0x2:_0x4a6cbd%0x64>=0x3&&_0x4a6cbd%0x64<=0xa?0x3:_0x4a6cbd%0x64>=0xb?0x4:0x5}};_0xa7b9d2['ar']||={'dictionary':{},'getPluralForm':null},_0xa7b9d2['ar']['dictionary']=Object['assign'](_0xa7b9d2['ar']['dictionary'],_0x295422),_0xa7b9d2['ar']['getPluralForm']=_0x37bc97;})(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':_0xff6f56=>0x1!=_0xff6f56}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x36553f=>{const {ast:{dictionary:_0xd887a3,getPluralForm:_0x1146bc}}={'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':_0x1b4bff=>0x1!=_0x1b4bff}};_0x36553f['ast']||={'dictionary':{},'getPluralForm':null},_0x36553f['ast']['dictionary']=Object['assign'](_0x36553f['ast']['dictionary'],_0xd887a3),_0x36553f['ast']['getPluralForm']=_0x1146bc;})(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':_0x1e9ba9=>0x1!=_0x1e9ba9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3bcbf2=>{const {az:{dictionary:_0x95bfd3,getPluralForm:_0x1c50da}}={'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':_0x378ed9=>0x1!=_0x378ed9}};_0x3bcbf2['az']||={'dictionary':{},'getPluralForm':null},_0x3bcbf2['az']['dictionary']=Object['assign'](_0x3bcbf2['az']['dictionary'],_0x95bfd3),_0x3bcbf2['az']['getPluralForm']=_0x1c50da;})(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':_0x5ca74b=>_0x5ca74b%0xa==0x1&&_0x5ca74b%0x64!=0xb?0x0:_0x5ca74b%0xa>=0x2&&_0x5ca74b%0xa<=0x4&&(_0x5ca74b%0x64<0xa||_0x5ca74b%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x516454=>{const {be:{dictionary:_0x4caeb5,getPluralForm:_0x194105}}={'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':_0x217394=>_0x217394%0xa==0x1&&_0x217394%0x64!=0xb?0x0:_0x217394%0xa>=0x2&&_0x217394%0xa<=0x4&&(_0x217394%0x64<0xa||_0x217394%0x64>=0x14)?0x1:0x2}};_0x516454['be']||={'dictionary':{},'getPluralForm':null},_0x516454['be']['dictionary']=Object['assign'](_0x516454['be']['dictionary'],_0x4caeb5),_0x516454['be']['getPluralForm']=_0x194105;})(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':_0x3d2a72=>0x1!=_0x3d2a72}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x36511c=>{const {bg:{dictionary:_0x59d3df,getPluralForm:_0x5bb58b}}={'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':_0x154506=>0x1!=_0x154506}};_0x36511c['bg']||={'dictionary':{},'getPluralForm':null},_0x36511c['bg']['dictionary']=Object['assign'](_0x36511c['bg']['dictionary'],_0x59d3df),_0x36511c['bg']['getPluralForm']=_0x5bb58b;})(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':_0x3484a6=>0x1!=_0x3484a6}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3ff27b=>{const {bn:{dictionary:_0x196ff8,getPluralForm:_0x143124}}={'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':_0x307d7f=>0x1!=_0x307d7f}};_0x3ff27b['bn']||={'dictionary':{},'getPluralForm':null},_0x3ff27b['bn']['dictionary']=Object['assign'](_0x3ff27b['bn']['dictionary'],_0x196ff8),_0x3ff27b['bn']['getPluralForm']=_0x143124;})(window['CKEDITOR_TRANSLATIONS']||={});
|