@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250528.0 → 0.0.0-nightly-20250529.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x418ad9,Command as _0x5db902}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x27fb42,IconGooglePhotos as _0x57c6ad,IconGoogleDrive as _0x311dd5,IconFacebook as _0x306870,IconDropbox as _0x6c6ea0,IconUploadcareLink as _0x41e123,IconUploadcareImageUpload as _0x14f9ac,IconError as et,IconUploadcareImageEdit as _0x4b5ec4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2b2bea,MenuBarMenuListItemButtonView as _0x35baf1,View as _0x38ff45,FocusCycler as _0x178b3e,Dialog as _0x34c46e,DialogViewPosition as _0x8f90ea,SpinnerView as _0x20485c,IconView as at,Notification as _0x5596c3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x151b29,DomEmitterMixin as _0x72d9e3,global as _0x4acc62,getAncestors as _0x5418b6,ObservableMixin as _0x200662,createElement as _0x1764c0,uid as _0x649e01}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x121c1c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x410983,info as _0x1ac59a}from'@uploadcare/upload-client';import*as _0x457d67 from'@uploadcare/file-uploader';var o=function(_0xa9264a){return _0xa9264a['Local']='local',_0xa9264a['URL']='url',_0xa9264a['Dropbox']='dropbox',_0xa9264a['GDrive']='gdrive',_0xa9264a['Facebook']='facebook',_0xa9264a['GPhotos']='gphotos',_0xa9264a['OneDrive']='onedrive',_0xa9264a;}({});function _(_0x5cdfff,_0x2e7932,_0x28e949){const t=_0x5cdfff['t'],_0x20f640=_0x5cdfff['t'];switch(_0x2e7932){case o['Local']:return{'text':_0x20f640('Insert'===_0x28e949?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x20f640('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x28e949?_0x20f640('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x20f640('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x28e949?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x28e949?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x28e949?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x28e949?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x28e949?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2e7932;}}class e extends _0x418ad9{['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 _0x315810=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8024a7;for(const _0x70c1b6 in _0x315810){const _0x505424=_0x70c1b6,_0xa998dc=_0x315810[_0x505424];if('uploadcareLicenseKeyValid'==_0xa998dc||'uploadcareLicenseKeyInvalid'==_0xa998dc||'uploadcareLicenseKeyExpired'==_0xa998dc||'uploadcareLicenseKeyDomainLimit'==_0xa998dc||'uploadcareLicenseKeyNotAllowed'==_0xa998dc||'uploadcareLicenseKeyEvaluationLimit'==_0xa998dc||'uploadcareLicenseKeyTrialLimit'==_0xa998dc||'uploadcareLicenseKeyUsageLimit'==_0xa998dc){delete _0x315810[_0x505424],_0x8024a7=_0xa998dc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x8024a7&&_0x315810['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x8024a7&&_0x315810['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x8024a7&&_0x315810['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x8024a7&&_0x315810['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x8024a7&&_0x315810['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x8024a7&&_0x315810['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x8024a7&&_0x315810['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5b232a}=this,_0x17ae9d=_0x5b232a['commands']['get']('uploadcare');if(!_0x17ae9d)return;const _0x46f8ac=this['_normalizeConfigSourceList'](_0x5b232a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5a3698,_0x390333)=>{const _0x1b44c9=this['_getIntegrationKey'](_0x390333['type']);return _0x5a3698[_0x1b44c9]||(_0x5a3698[_0x1b44c9]=[]),_0x5a3698[_0x1b44c9]['push'](_0x390333),_0x5a3698;},{});_0x5b232a['plugins']['has']('ImageInsertUI')&&_0x5b232a['commands']['get']('uploadcare')&&Object['entries'](_0x46f8ac)['forEach'](([_0x3d31e1,_0x2807d2])=>{_0x5b232a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3d31e1,'observable':()=>_0x17ae9d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2807d2),'formViewCreator':()=>this['_createDropdownButtons'](_0x2807d2),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2807d2),'override':'assetManager'!==_0x3d31e1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xdc1e4a){const {locale:_0x5bbaf2}=this['editor'];return _0xdc1e4a['map'](_0xb28c26=>{const _0x1e4c75=_(_0x5bbaf2,_0xb28c26,'Insert');switch(_0xb28c26){case o['Local']:return{'icon':_0x14f9ac,'type':o['Local'],..._0x1e4c75};case o['URL']:return{'icon':_0x41e123,'type':o['URL'],..._0x1e4c75};case o['Dropbox']:return{'icon':_0x6c6ea0,'type':o['Dropbox'],..._0x1e4c75};case o['Facebook']:return{'icon':_0x306870,'type':o['Facebook'],..._0x1e4c75};case o['GDrive']:return{'icon':_0x311dd5,'type':o['GDrive'],..._0x1e4c75};case o['GPhotos']:return{'icon':_0x57c6ad,'type':o['GPhotos'],..._0x1e4c75};case o['OneDrive']:return{'icon':_0x27fb42,'type':o['OneDrive'],..._0x1e4c75};}});}['_getIntegrationKey'](_0x50e9bf){switch(_0x50e9bf){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x56e90c,_0x4d863c){const _0x432918=this['editor'],_0x3fae4e=new _0x56e90c(_0x432918['locale']),_0x246253=_0x432918['commands']['get']('uploadcare');return _0x3fae4e['bind']('isEnabled')['to'](_0x246253),_0x3fae4e['on']('execute',()=>{_0x246253['execute'](_0x4d863c);}),_0x3fae4e;}['_createToolbarButton'](_0x375340){const {locale:_0x818499}=this['editor'],_0xcfe412=this['editor']['plugins']['get']('ImageInsertUI'),_0x32637c=_0x375340[0x0],_0x5dbcd4=this['_createButton'](_0x2b2bea,_0x32637c['type']);return _0x5dbcd4['icon']=_0x32637c['icon'],_0x5dbcd4['bind']('label')['to'](_0xcfe412,'isImageSelected',_0x23fd30=>_(_0x818499,_0x32637c['type'],_0x23fd30?'Replace':'Insert')['text']),_0x5dbcd4['tooltip']=!0x0,_0x5dbcd4;}['_createDropdownButtons'](_0x5292e9){const {locale:_0x195aaa}=this['editor'],_0x7768e3=this['editor']['plugins']['get']('ImageInsertUI');return _0x5292e9['map'](_0x16a1f8=>{const _0x497351=this['_createButton'](_0x2b2bea,_0x16a1f8['type']);return _0x497351['withText']=!0x0,_0x497351['icon']=_0x16a1f8['icon'],_0x497351['bind']('label')['to'](_0x7768e3,'isImageSelected',_0x4ce510=>_(_0x195aaa,_0x16a1f8['type'],_0x4ce510?'Replace':'Insert')['text']),_0x497351;});}['_createMenuBarButtons'](_0x4cd94b){return _0x4cd94b['map'](_0x10a78c=>{const _0x34e2eb=this['_createButton'](_0x35baf1,_0x10a78c['type']);return _0x34e2eb['icon']=_0x10a78c['icon'],_0x34e2eb['label']=_0x10a78c['shortText'],_0x34e2eb;});}}class q extends _0x38ff45{['focusTracker'];['focusCycler'];constructor(_0x148ddc){super(_0x148ddc),this['focusTracker']=new _0x151b29(),this['focusCycler']=new _0x178b3e({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x4da8d7){super(_0x4da8d7),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x54dd9b,_0x41f34e){const _0x44bdf7=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2c14c5=>_0x2c14c5<=_0x41f34e)['map'](_0x109374=>_0x54dd9b['replace'](/\/$/,'')+'/-/resize/'+_0x109374+'x/\x20'+_0x109374+'w');return{'imageFallbackUrl':_0x54dd9b,'imageSources':[{'srcset':_0x44bdf7['join'](',\x20'),'sizes':'(max-width:\x20'+_0x41f34e+'px)\x20100vw,\x20'+_0x41f34e+'px','type':'image/webp'}]};}function A(_0x29c6a8,_0x1b2a5b,_0x19ef81){const _0xaf23a0=_0x29c6a8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xaf23a0?parseInt(_0xaf23a0[0x1],0xa):_0x1b2a5b,'height':_0xaf23a0?parseInt(_0xaf23a0[0x2],0xa):_0x19ef81};}function m(_0x36f3ec,_0x1c07d9){const _0x38c14=Object['create'](_0x72d9e3),_0x33f742=_0x36f3ec['plugins']['get']('ImageUtils'),_0x54bb3b=_0x36f3ec['editing']['mapper']['toViewElement'](_0x1c07d9),_0x336c19=_0x33f742['findViewImgElement'](_0x54bb3b),_0x2f12f7=_0x36f3ec['editing']['view']['domConverter']['viewToDom'](_0x336c19),_0x24b55d=_0x1c07d9['getAttribute']('width'),_0x21ecf9=_0x1c07d9['getAttribute']('height'),_0xb45d41='image-processing';_0x36f3ec['editing']['view']['change'](_0x265365=>{_0x265365['addClass'](_0xb45d41,_0x54bb3b),_0x265365['setStyle']('aspect-ratio',_0x24b55d+'/'+_0x21ecf9,_0x336c19);}),_0x38c14['listenTo'](_0x2f12f7,'load',()=>{_0x38c14['stopListening'](_0x2f12f7,'load'),_0x36f3ec['editing']['view']['change'](_0x23e452=>{_0x23e452['removeClass'](_0xb45d41,_0x54bb3b),_0x23e452['removeStyle']('aspect-ratio',_0x336c19);});});}function V(_0x1f0f59){if(Array['isArray'](_0x1f0f59)){const _0x6761e0=_0x1f0f59['map'](V);return _0x5f3d2c=>_0x6761e0['some'](_0xe988ed=>_0xe988ed(_0x5f3d2c));}if('origin'==_0x1f0f59){const _0x7f09f2=_0x4acc62['window']['location']['origin'];return _0x1924cb=>new URL(_0x1924cb,_0x4acc62['document']['baseURI'])['origin']==_0x7f09f2;}return'function'==typeof _0x1f0f59?_0x1f0f59:_0x1f0f59 instanceof RegExp?_0x2ed8bf=>!(!_0x2ed8bf['match'](_0x1f0f59)&&!_0x2ed8bf['replace'](/^https?:\/\//,'')['match'](_0x1f0f59)):()=>!0x1;}function F(_0x52df57,_0x80bffa){return _0x5418b6(_0x52df57['target'])['includes'](_0x80bffa);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x200662(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x48c81f,_0x487e32,_0x33495e){super(),this['_editor']=_0x48c81f,this['_editing']=_0x487e32,this['_dialog']=_0x48c81f['plugins']['get'](_0x34c46e),this['_api']=_0x487e32['ctxElement']['getAPI'](),this['_type']=_0x33495e,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:_0x15339c,model:_0x175478}=this['_editor'],_0x406c44=_0x175478['document']['selection']['getSelectedElement'](),_0x5cb956=_0x406c44&&(_0x406c44['is']('element','imageBlock')||_0x406c44['is']('element','imageInline'));this['_formView']=new S(_0x15339c),this['_dialog']['show']({'id':'uploadCare','icon':_0x14f9ac,'title':_(_0x15339c,this['_type'],_0x5cb956?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x8f90ea['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x16275f=>!F(_0x16275f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x21f31e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4e5181=>{const _0x4f930d=_0x21f31e['length'];for(const _0x29d5fc of _0x21f31e){const _0x4683a5=_0x29d5fc===_0x21f31e[_0x4f930d-0x1],{cdnUrl:_0x5b74fe,fileInfo:_0x11a228}=_0x29d5fc;if(!_0x5b74fe||!_0x11a228)continue;const {width:_0xa1de4b,height:_0x2632b4}=_0x11a228['imageInfo'],_0x38fc86=A(_0x5b74fe,_0xa1de4b,_0x2632b4),_0x1d02ee=E(_0x5b74fe,_0x38fc86['width']),_0x259700={'id':_0x11a228['uuid'],'type':'image','attributes':{'imageDimension':_0x38fc86,..._0x1d02ee}};this['_insertAsset'](_0x259700,_0x4683a5,_0x4e5181);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x28e79b=>{'idle'===_0x28e79b['detail']['status']&&!_0x28e79b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x246210,_0x26910f,_0x10dacd){const _0x314266=this['_editor']['model']['document']['selection'],_0x36a582=_0x314266['getSelectedElement'](),_0x2cd73f=!(!_0x36a582||!_0x36a582['is']('element','imageInline'));_0x10dacd['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x246210,_0x2cd73f),_0x26910f||_0x10dacd['setSelection'](_0x314266['getLastPosition']());}['_insertImage'](_0xabd4fb,_0xb7429f){const _0x20af3a=this['_editor'],{imageDimension:_0x262b1c,imageFallbackUrl:_0x2e7492,imageSources:_0x56b77d}=_0xabd4fb['attributes'];_0x20af3a['execute']('insertImage',{'imageType':_0xb7429f?'imageInline':null,'source':{'uploadcareImageId':_0xabd4fb['id'],'src':_0x2e7492,'sources':_0x56b77d,..._0x262b1c}});}}class n extends _0x5db902{['_editing'];['_controller']=null;static get['requires'](){return[_0x34c46e,i];}constructor(_0x8d187f){super(_0x8d187f),this['_editing']=_0x8d187f['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5f2818){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x5f2818);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x6f2087,publicKey:_0x18f1c0,signal:_0x414140,onProgress:_0x26368d}){return _0x410983(_0x6f2087,{'publicKey':_0x18f1c0,'store':'auto','signal':_0x414140,'onProgress':_0x26368d});}static['getInfo'](_0x4aac8a,_0x3bbaa3){return _0x1ac59a(_0x4aac8a,_0x3bbaa3);}}class p extends _0x418ad9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x121c1c,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3b002f=this['editor'];if(!!!_0x3b002f['config']['get']('uploadcare'))return;_0x3b002f['plugins']['get'](_0x121c1c)['createUploadAdapter']=_0xa9298e=>new x(_0xa9298e,_0x3b002f),_0x3b002f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3e898e,{imageElement:_0x326d82,data:_0x2d6035})=>{_0x3b002f['model']['change'](_0x5b377a=>{_0x5b377a['setAttribute']('uploadcareImageId',_0x2d6035['uploadcareImageId'],_0x326d82);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x55ad43,_0x2c7868){this['loader']=_0x55ad43,this['editor']=_0x2c7868,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2ba9ef=this['editor']['config']['get']('uploadcare.pubkey'),_0x5dddd2=await this['loader']['file'];return C['upload']({'file':_0x5dddd2,'publicKey':_0x2ba9ef,'signal':this['controller']['signal'],'onProgress':_0x56149c=>{_0x56149c&&_0x56149c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x56149c['value']);}})['then'](async _0xf5b2c=>{const {imageFallbackUrl:_0x2598e3,imageSources:_0x3b2c87}=E(_0xf5b2c['cdnUrl'],_0xf5b2c['imageInfo']['width']);return{'uploadcareImageId':_0xf5b2c['uuid'],'default':_0x2598e3,'sources':_0x3b2c87};})['catch'](()=>{const _0x20d6f3=t('Cannot\x20upload\x20file:')+('\x20'+_0x5dddd2['name']+'.');return Promise['reject'](_0x20d6f3);});}['abort'](){this['controller']['abort']();}}class i extends _0x418ad9{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x34c46e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x1bf980=this['editor'];_0x1bf980['commands']['add']('uploadcare',new n(_0x1bf980));}['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 _0x41c00d=_0x4acc62['document']['querySelector']('input[uploadcare-file-input]');_0x41c00d&&_0x41c00d['remove']();}),async function(_0x11b1f4){const _0x3fb08f=_0x5ce7aa([0x4f,0x6b,0x49,0x30,0x39,0x75,0x57,0x36,0x77,0x56,0x4d,0x66,0x72,0x73,0x7a,0x51,0x4a,0x63,0x53,0x6d,0x52,0x41,0x6e,0x5a,0x58,0x48,0x33,0x46,0x64,0x34,0x4c,0x74,0x61,0x76,0x71,0x42,0x55,0x69,0x65,0x6f,0x70,0x68,0x79,0x6a,0x6c,0x45,0x32,0x59,0x38,0x78,0x4e,0x43,0x4b,0x35,0x44,0x31,0x37,0x62,0x54,0x67,0x50,0x47]),_0x5c6d1d=0x7f801b70,_0x1e6b49=0x7f877250^_0x5c6d1d,_0x51c2b2=window[_0x5ce7aa([0x44,0x61,0x74,0x65])][_0x5ce7aa([0x6e,0x6f,0x77])](),_0x580227=_0x11b1f4[_0x5ce7aa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6f17e0=new window[(_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13a206=>{_0x580227[_0x5ce7aa([0x6f,0x6e,0x63,0x65])](_0x5ce7aa([0x72,0x65,0x61,0x64,0x79]),_0x13a206);}),_0x4280ad={[_0x5ce7aa([0x6b,0x74,0x79])]:_0x5ce7aa([0x45,0x43]),[_0x5ce7aa([0x75,0x73,0x65])]:_0x5ce7aa([0x73,0x69,0x67]),[_0x5ce7aa([0x63,0x72,0x76])]:_0x5ce7aa([0x50,0x2d,0x32,0x35,0x36]),[_0x5ce7aa([0x78])]:_0x5ce7aa([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]),[_0x5ce7aa([0x79])]:_0x5ce7aa([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]),[_0x5ce7aa([0x61,0x6c,0x67])]:_0x5ce7aa([0x45,0x53,0x32,0x35,0x36])},_0x28effc=_0x580227[_0x5ce7aa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ce7aa([0x67,0x65,0x74])](_0x5ce7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2974ed(){let _0x3ea3e9,_0x3e919e=null,_0x4cc51a=null;try{if(_0x28effc==_0x5ce7aa([0x47,0x50,0x4c]))return _0x5ce7aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ea3e9=_0x15a2d0(),!_0x3ea3e9)return _0x5ce7aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ea3e9[_0x5ce7aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4cc51a=_0x2a8337(_0x3ea3e9[_0x5ce7aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ea3e9[_0x5ce7aa([0x6a,0x74,0x69])])),await _0x2ddd1e()?_0x391de5()?_0x554a1a()?_0x5ce7aa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd97a4()?(_0x3ea3e9[_0x5ce7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ce7aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e919e=_0x5a6a34(_0x5ce7aa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ea3e9[_0x5ce7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ce7aa([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e919e=_0x5a6a34(_0x5ce7aa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59de01()):_0x5ce7aa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ce7aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ce7aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ce7aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x554a1a(){const _0x1f9ba6=[_0x5ce7aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ce7aa([0x74,0x72,0x69,0x61,0x6c])][_0x5ce7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ea3e9[_0x5ce7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51c2b2/0x3e8:0xe10*_0x1e6b49;return _0x3ea3e9[_0x5ce7aa([0x65,0x78,0x70])]<_0x1f9ba6;}function _0x391de5(){const _0xc007f0=_0x3ea3e9[_0x5ce7aa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc007f0&&(!!_0xc007f0[_0x5ce7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce7aa([0x2a]))||!!_0xc007f0[_0x5ce7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce7aa([0x55,0x50,0x4c,0x43])));}function _0xd97a4(){const _0x11cca6=_0x3ea3e9[_0x5ce7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11cca6||0x0==_0x11cca6[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b39bb}=new URL(window[_0x5ce7aa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x11cca6[_0x5ce7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b39bb))return!0x0;const _0x1d2733=_0x1b39bb[_0x5ce7aa([0x73,0x70,0x6c,0x69,0x74])](_0x5ce7aa([0x2e]));return _0x11cca6[_0x5ce7aa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33dc26=>_0x33dc26[_0x5ce7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce7aa([0x2a])))[_0x5ce7aa([0x6d,0x61,0x70])](_0x4f19eb=>_0x4f19eb[_0x5ce7aa([0x73,0x70,0x6c,0x69,0x74])](_0x5ce7aa([0x2e])))[_0x5ce7aa([0x73,0x6f,0x6d,0x65])](_0x3772f1=>_0x1d2733[_0x5ce7aa([0x65,0x76,0x65,0x72,0x79])]((_0x589cd8,_0x1a2189)=>_0x3772f1[_0x1a2189]===_0x589cd8||_0x3772f1[_0x1a2189]===_0x5ce7aa([0x2a])));}function _0x59de01(){return _0x3e919e&&_0x4cc51a?new window[(_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39478f,_0x3d93ad)=>{_0x3e919e[_0x5ce7aa([0x74,0x68,0x65,0x6e])](_0x39478f,_0x3d93ad),_0x4cc51a[_0x5ce7aa([0x74,0x68,0x65,0x6e])](_0x5146ce=>{_0x5146ce!=_0x5ce7aa([0x56,0x61,0x6c,0x69,0x64])&&_0x39478f(_0x5146ce);},_0x3d93ad);}):_0x3e919e||_0x4cc51a||_0x5ce7aa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a8337(_0x194082,_0x5c5ff0){return new window[(_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2efbc3=>{if(_0x498dd6())return _0x2efbc3(_0x5ce7aa([0x56,0x61,0x6c,0x69,0x64]));_0x3c8772(),_0x580227[_0x5ce7aa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ce7aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x581fde=!0x1;const _0x2602db=_0x649e01();function _0x415097(_0x3e74ac){return!!_0x3e74ac&&(typeof _0x3e74ac===_0x5ce7aa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e74ac===_0x5ce7aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e74ac[_0x5ce7aa([0x74,0x68,0x65,0x6e])]===_0x5ce7aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e74ac[_0x5ce7aa([0x63,0x61,0x74,0x63,0x68])]===_0x5ce7aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2695fe(_0x50cf8d){_0x4c5741(_0x50cf8d)[_0x5ce7aa([0x74,0x68,0x65,0x6e])](_0xbc8660=>{if(!_0xbc8660||_0xbc8660[_0x5ce7aa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ce7aa([0x6f,0x6b]))return _0x5ce7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xcafeda(_0x12161c(_0x2602db+_0x5c5ff0))!=_0xbc8660[_0x5ce7aa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ce7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ce7aa([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ce7aa([0x74,0x68,0x65,0x6e])](_0x2d4cbe=>(_0xfb2d91(),_0x2d4cbe),()=>{const _0x25df7b=_0x273885();return null==_0x25df7b?(_0xfb2d91(),_0x5ce7aa([0x56,0x61,0x6c,0x69,0x64])):_0x5ce7aa(_0x51c2b2-_0x25df7b>(0x5b8c9f70^_0x5c6d1d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ce7aa([0x74,0x68,0x65,0x6e])](_0x2efbc3)[_0x5ce7aa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2efbc3(_0x5ce7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x485898=0x7fb6f5f0^_0x5c6d1d;function _0xfb2d91(){const _0x42639a=_0x5ce7aa([0x6c,0x6c,0x63,0x74,0x2d])+_0xcafeda(_0x12161c(_0x194082)),_0x57d65a=_0xc4f045(_0xcafeda(window[_0x5ce7aa([0x4d,0x61,0x74,0x68])][_0x5ce7aa([0x63,0x65,0x69,0x6c])](_0x51c2b2/_0x485898)));window[_0x5ce7aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ce7aa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42639a,_0x57d65a);}function _0x273885(){const _0x21fc25=_0x5ce7aa([0x6c,0x6c,0x63,0x74,0x2d])+_0xcafeda(_0x12161c(_0x194082)),_0x56b7c5=window[_0x5ce7aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ce7aa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21fc25);return _0x56b7c5?window[_0x5ce7aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc4f045(_0x56b7c5),0x10)*_0x485898:null;}function _0x4c5741(_0x2ba32d){return new window[(_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3eeb22,_0x12d7af)=>{_0x2ba32d[_0x5ce7aa([0x74,0x68,0x65,0x6e])](_0x3eeb22,_0x12d7af),window[_0x5ce7aa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12d7af,0x7f81cfb0^_0x5c6d1d);});}}_0x580227[_0x5ce7aa([0x6f,0x6e])](_0x5ce7aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x420714,_0x3bdae9)=>{if(_0x3bdae9[0x0]!=_0x194082)return _0x2efbc3(_0x5ce7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3bdae9[0x1]={..._0x3bdae9[0x1],[_0x5ce7aa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2602db};},{[_0x5ce7aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ce7aa([0x68,0x69,0x67,0x68])}),_0x580227[_0x5ce7aa([0x6f,0x6e])](_0x5ce7aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b80d8=>{_0x415097(_0x4b80d8[_0x5ce7aa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x581fde=!0x0,_0x2695fe(_0x4b80d8[_0x5ce7aa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ce7aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ce7aa([0x6c,0x6f,0x77])}),_0x6f17e0[_0x5ce7aa([0x74,0x68,0x65,0x6e])](()=>{_0x581fde||_0x2efbc3(_0x5ce7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x498dd6(){return _0x580227[_0x5ce7aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ce7aa([0x76,0x69,0x65,0x77])][_0x5ce7aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ce7aa([0x61,0x75,0x74,0x6f]);}function _0x3c8772(){_0x580227[_0x5ce7aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ce7aa([0x76,0x69,0x65,0x77])][_0x5ce7aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ce7aa([0x61,0x75,0x74,0x6f]);}}function _0x5a6a34(_0x43a31b){const _0xbcd5b4=[new window[(_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27137d=>setTimeout(_0x27137d,0x7f8925bc^_0x5c6d1d)),_0x6f17e0[_0x5ce7aa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x474a6e=>{let _0x533ec1=0x0;_0x580227[_0x5ce7aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce7aa([0x6f,0x6e])](_0x5ce7aa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5064a6,_0x3f0d40)=>{_0x3f0d40[0x0][_0x5ce7aa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x533ec1++,_0x533ec1==(0x7f801a88^_0x5c6d1d)&&(_0x474a6e(),_0x5064a6[_0x5ce7aa([0x6f,0x66,0x66])]());});}))];return window[_0x5ce7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ce7aa([0x72,0x61,0x63,0x65])](_0xbcd5b4)[_0x5ce7aa([0x74,0x68,0x65,0x6e])](()=>_0x43a31b);}async function _0x5a7325(){await _0x6f17e0,_0x580227[_0x5ce7aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce7aa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a3049,_0x580227[_0x5ce7aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce7aa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a3049,_0x580227[_0x5ce7aa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ce7aa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f1875(_0x2ce480){const _0x39fb2c=_0x2ffb92();_0x580227[_0x39fb2c]=_0x5ce7aa([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ce480,_0x2ce480!=_0x5ce7aa([0x56,0x61,0x6c,0x69,0x64])&&_0x5a7325();}function _0x2ffb92(){const _0x5a07ca=window[_0x5ce7aa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ce7aa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ce7aa([0x6e,0x6f,0x77])]())[_0x5ce7aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ce7aa([0x2e]),'');let _0x303e38=_0x5ce7aa([0x4f]);for(let _0x158750=0x0;_0x158750<_0x5a07ca[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x158750+=0x2){let _0xde5266=window[_0x5ce7aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a07ca[_0x5ce7aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x158750,_0x158750+0x2));_0xde5266>=_0x3fb08f[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xde5266-=_0x3fb08f[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x303e38+=_0x3fb08f[_0xde5266];}return _0x303e38;}function _0x15a2d0(){const _0x1f8862=_0x28effc[_0x5ce7aa([0x73,0x70,0x6c,0x69,0x74])](_0x5ce7aa([0x2e]));if(0x3!=_0x1f8862[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x317b9d(_0x1f8862[0x1]);function _0x317b9d(_0x529ff8){const _0x47a5b2=_0x1279de(_0x529ff8);return _0x47a5b2&&_0x2cd8d8()?_0x47a5b2:null;function _0x2cd8d8(){const _0x5525eb=_0x47a5b2[_0x5ce7aa([0x6a,0x74,0x69])],_0x4f14c9=window[_0x5ce7aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5525eb[_0x5ce7aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5525eb[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5f24d5={..._0x47a5b2,[_0x5ce7aa([0x6a,0x74,0x69])]:_0x5525eb[_0x5ce7aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5525eb[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5f24d5[_0x5ce7aa([0x76,0x63])],_0x12161c(_0x5f24d5)==_0x4f14c9;}}}async function _0x2ddd1e(){let _0x1844ba=!0x0;try{const _0xed8f49=_0x28effc[_0x5ce7aa([0x73,0x70,0x6c,0x69,0x74])](_0x5ce7aa([0x2e])),[_0x18a05d,_0x4d87b0,_0x36e8c0]=_0xed8f49;return _0x182d83(_0x18a05d),await _0x4e3224(_0x18a05d,_0x4d87b0,_0x36e8c0),_0x1844ba;}catch{return!0x1;}function _0x182d83(_0x461679){const _0x51931a=_0x1279de(_0x461679);_0x51931a&&_0x51931a[_0x5ce7aa([0x61,0x6c,0x67])]==_0x5ce7aa([0x45,0x53,0x32,0x35,0x36])||(_0x1844ba=!0x1);}async function _0x4e3224(_0x42be35,_0x4e4fd7,_0x22f606){const _0x46b630=window[_0x5ce7aa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ce7aa([0x66,0x72,0x6f,0x6d])](_0x16491e(_0x22f606),_0x1ec02f=>_0x1ec02f[_0x5ce7aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3a6211=new window[(_0x5ce7aa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ce7aa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x42be35+_0x5ce7aa([0x2e])+_0x4e4fd7),_0x1b31ed=window[_0x5ce7aa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ce7aa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b31ed)return;const _0x4258d2=await _0x1b31ed[_0x5ce7aa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ce7aa([0x6a,0x77,0x6b]),_0x4280ad,{[_0x5ce7aa([0x6e,0x61,0x6d,0x65])]:_0x5ce7aa([0x45,0x43,0x44,0x53,0x41]),[_0x5ce7aa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ce7aa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ce7aa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b31ed[_0x5ce7aa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ce7aa([0x6e,0x61,0x6d,0x65])]:_0x5ce7aa([0x45,0x43,0x44,0x53,0x41]),[_0x5ce7aa([0x68,0x61,0x73,0x68])]:{[_0x5ce7aa([0x6e,0x61,0x6d,0x65])]:_0x5ce7aa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4258d2,_0x46b630,_0x3a6211)||(_0x1844ba=!0x1);}}function _0x1279de(_0x47a076){return _0x47a076[_0x5ce7aa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ce7aa([0x65,0x79]))?JSON[_0x5ce7aa([0x70,0x61,0x72,0x73,0x65])](_0x16491e(_0x47a076)):null;}function _0x16491e(_0x2e5f9c){return window[_0x5ce7aa([0x61,0x74,0x6f,0x62])](_0x2e5f9c[_0x5ce7aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ce7aa([0x2b]))[_0x5ce7aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ce7aa([0x2f])));}function _0x12161c(_0x3a2da6){let _0x47d31e=0x1505;function _0x77e12(_0xa23eb2){for(let _0x346b8e=0x0;_0x346b8e<_0xa23eb2[_0x5ce7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x346b8e++){const _0x12e956=_0xa23eb2[_0x5ce7aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x346b8e);_0x47d31e=(_0x47d31e<<0x5)+_0x47d31e+_0x12e956,_0x47d31e&=_0x47d31e;}}function _0x277153(_0x2ce74d){Array[_0x5ce7aa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ce74d)?_0x2ce74d[_0x5ce7aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x277153):_0x2ce74d&&typeof _0x2ce74d==_0x5ce7aa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ce7aa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ce74d)[_0x5ce7aa([0x73,0x6f,0x72,0x74])]()[_0x5ce7aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56b076,_0x5a469e])=>{_0x77e12(_0x56b076),_0x277153(_0x5a469e);}):_0x77e12(window[_0x5ce7aa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ce74d));}return _0x277153(_0x3a2da6),_0x47d31e>>>0x0;}function _0xcafeda(_0x5717a1){return _0x5717a1[_0x5ce7aa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ce7aa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ce7aa([0x30]));}function _0xc4f045(_0x3e0318){return _0x3e0318[_0x5ce7aa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ce7aa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ce7aa([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a3049(){}function _0x5ce7aa(_0x41f776){return _0x41f776['map'](_0x233786=>String['fromCharCode'](_0x233786))['join']('');}_0x3f1875(await _0x2974ed());}(this);}['_initSchema'](){const _0x2738a2=this['editor']['model']['schema'];_0x2738a2['isRegistered']('imageBlock')&&_0x2738a2['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2738a2['isRegistered']('imageInline')&&_0x2738a2['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x423097=this['editor'];_0x423097['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x423097['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x6d73aa=>_0x6d73aa['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x510dea=_0x423097['commands']['get']('replaceImageSource');_0x510dea&&this['listenTo'](_0x510dea,'cleanupImage',(_0x2dd775,[_0x2c7e62,_0x1233da])=>{_0x2c7e62['removeAttribute']('uploadcareImageId',_0x1233da);});}['_initConfig'](){const _0x4d2e80=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1be02d=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1764c0(_0x4acc62['document'],'uc-config',{..._0x4d2e80,'pubkey':_0x1be02d,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x35baa8=>{if('closeMax'==_0x35baa8)return'#uc-icon-arrow-down';},_0x4acc62['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1764c0(_0x4acc62['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4acc62['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1a7a64=this['editor']['commands']['get']('insertImage');_0x1a7a64&&this['listenTo'](_0x1a7a64,'execute',()=>{const _0x554415=this['editor']['model']['document']['selection']['getSelectedElement']();_0x554415&&_0x554415['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x554415);});});const _0x960d5b=this['editor']['commands']['get']('uploadcareImageReplace');_0x960d5b&&this['listenTo'](_0x960d5b,'execute',()=>{const _0x2a5f12=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a5f12&&_0x2a5f12['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2a5f12);});});}}class u extends _0x418ad9{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c20fe){super(_0x2c20fe),_0x2c20fe['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x457d67['defineComponents'](_0x457d67);}}class ta extends _0x38ff45{constructor(_0x29df98){super(_0x29df98);const t=_0x29df98['t'],_0x74f67f=this['bindTemplate'],_0x1ebf0f=new _0x20485c();_0x1ebf0f['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':[_0x1ebf0f,{'text':_0x74f67f['to']('imageUploadProgress',_0x41273e=>t('Loading\x20image...')+'\x20('+(_0x41273e||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x38ff45{constructor(_0x15581b){super(_0x15581b);const t=_0x15581b['t'];this['set']('errorType',null);const _0x49f243=new _0x2b2bea(_0x15581b);_0x49f243['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x49f243['withText']=!0x0,_0x49f243['class']='ck-button-action',_0x49f243['on']('execute',()=>{this['fire']('retry');}),_0x49f243['bind']('isVisible')['to'](this,'errorType',_0x49b64f=>'NotFound'!==_0x49b64f);const _0x484352=new at();_0x484352['content']=et,_0x484352['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2f4a82=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':[_0x484352,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2f4a82['to']('errorType',_0x137238=>t('NotFound'!==_0x137238?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x49f243]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x38ff45{constructor(_0xa16be6,_0x446b86){super(_0xa16be6);const _0x4769b9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x446b86,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4769b9['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xc7b0e7,_0x3faef7,_0x1c5a6d){super(_0xc7b0e7),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xc7b0e7),this['_errorView']=new rt(_0xc7b0e7),this['_editingView']=new tt(_0xc7b0e7,_0x1c5a6d),this['_focusableView']=new _0x38ff45(_0xc7b0e7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3faef7),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'],_0x47238e=>{this['_addUploadcareImageEditorListeners'](_0x47238e);});}),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'](_0x145c14,_0x4cc7fc){const _0x9e9634='uc-cloud-image-editor',_0x59fb23=_0x145c14['querySelector'](_0x9e9634);if(_0x59fb23)return _0x4cc7fc(_0x59fb23);const _0x134198=new MutationObserver(_0x2e9f60=>{const _0x186a10=_0x2e9f60['filter'](_0x2bfefc=>_0x2bfefc['target']===_0x145c14&&_0x2bfefc['addedNodes']['length']>0x0&&_0x2bfefc['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x9e9634);_0x186a10['length']&&(_0x134198['disconnect'](),_0x4cc7fc(_0x186a10[0x0]['addedNodes'][0x0]));});_0x134198['observe'](_0x145c14,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5ab153){_0x5ab153['addEventListener']('apply',_0x36ed2c=>{this['fire']('apply',{'imageSrc':_0x36ed2c['detail']['cdnUrl']});}),_0x5ab153['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x200662(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x14b47d,_0x2c7a5c,_0x17f8e6){super(),this['_editor']=_0x14b47d,this['_dialog']=_0x2c7a5c,this['_imageElement']=_0x17f8e6,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 _0x20880d=this['_imageElement'],_0x571ea4=_0x20880d['getAttribute']('uploadcareImageId'),_0x1381e=_0x20880d['getAttribute']('src');if(_0x571ea4)await this['_loadImageInfo'](_0x571ea4,_0x1381e);else{if(this['_imageCache']['has'](_0x1381e)){const _0x38b4b2=this['_imageCache']['get'](_0x1381e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x38b4b2['url'],this['imageDimension']=_0x38b4b2['dimension'],this['imageId']=_0x38b4b2['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4e8303}=this['_editor'],t=_0x4e8303['t'],_0x39df85=new Z(_0x4e8303,this['imageStatus'],this['_attributes']);_0x39df85['bind']('status')['to'](this,'imageStatus'),_0x39df85['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x39df85['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x39df85['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x39df85,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4b5ec4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x39df85,'position':_0x8f90ea['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x39df85['focus']();},'onHide':()=>{_0x39df85['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xf4f555=>!F(_0xf4f555,_0x39df85['element'])}});}['_loadImageInfo'](_0x3a697b,_0x3e9224){return C['getInfo'](_0x3a697b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x415ccc=>{const {width:_0x516f35,height:_0x11361d}=_0x415ccc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3e9224,this['imageDimension']={'width':_0x516f35,'height':_0x11361d},this['imageId']=_0x3a697b;})['catch'](_0x2e9b1b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2e9b1b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1e1fe7,_0x1b3459){return this['_getImageAsFile'](_0x1e1fe7)['then'](_0x43d305=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1b3459['signal'],'file':_0x43d305,'onProgress':_0x2bffcf=>{_0x2bffcf&&_0x2bffcf['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2bffcf['value']));}}))['then'](_0x3f81cb=>{const {width:_0x35dd17,height:_0x55f40a}=_0x3f81cb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f81cb['cdnUrl'],this['imageDimension']={'width':_0x35dd17,'height':_0x55f40a},this['imageId']=_0x3f81cb['uuid'],this['imageUploadProgress']=null;const _0x5f0df9=_0x1e1fe7['getAttribute']('src');this['_imageCache']['set'](_0x5f0df9,{'id':_0x3f81cb['uuid'],'url':_0x3f81cb['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3d2a9d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3d2a9d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xce8f37,_0xfdfe43){_0xce8f37['on']('apply',(_0x15b231,_0x1acdc)=>{this['_replaceImage'](_0xfdfe43,_0x1acdc['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xce8f37['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xce8f37['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2be131,_0x3ae6af,_0x47771f){const _0xb24c05=this['_editor'],{width:_0x2037bf,height:_0x5b995b}=A(_0x3ae6af,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x53dfef,imageSources:_0x2aea32}=E(_0x3ae6af,_0x2037bf);_0xb24c05['model']['change'](_0x3a021f=>{if('$graveyard'===_0x2be131['root']['rootName']){_0xb24c05['execute']('insertImage',{'imageType':_0x2be131['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2be131['getAttributes']()),'uploadcareImageId':_0x47771f,'src':_0x53dfef,'sources':_0x2aea32,'width':_0x2037bf,'height':_0x5b995b}});const _0xb34647=_0x2be131['getChildren']();_0x2be131=_0xb24c05['model']['document']['selection']['getSelectedElement']();for(const _0x2718a7 of _0xb34647)_0x3a021f['append'](_0x3a021f['cloneElement'](_0x2718a7),_0x2be131);}else _0x3a021f['setSelection'](_0x2be131,'on'),_0xb24c05['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2be131['getAttributes']()),'uploadcareImageId':_0x47771f,'src':_0x53dfef,'sources':_0x2aea32,'width':_0x2037bf,'height':_0x5b995b},_0x2be131);_0x3a021f['setSelection'](_0x2be131,'on');});}async['_getImageAsFile'](_0x1ac933){const _0x291f04=_0x4acc62['window'],_0x2927d6=_0x4acc62['document']['location']['href'],_0x7ad8a=new _0x291f04['URL'](_0x1ac933['getAttribute']('src'),_0x2927d6);if('data:'===_0x7ad8a['protocol']){const _0x47c9b6=_0x7ad8a['href']['split'](','),_0x46ba0a=_0x47c9b6[0x0]['match'](/:(.*?);/)[0x1],_0x25edea=_0x46ba0a['split']('/')[0x1],_0x23a004=_0x291f04['atob'](_0x47c9b6[_0x47c9b6['length']-0x1]);let _0x5a1f64=_0x23a004['length'];const _0x34504b=new _0x291f04['Uint8Array'](_0x5a1f64);for(;_0x5a1f64--;)_0x34504b[_0x5a1f64]=_0x23a004['charCodeAt'](_0x5a1f64);return new _0x291f04['File']([_0x34504b],'image.'+_0x25edea,{'type':_0x46ba0a});}const _0x438cfe=_0x7ad8a['href']['split']('/'),_0x131412=_0x438cfe[_0x438cfe['length']-0x1],_0x4aecc0=_0x131412['split']('.')[0x1];return _0x291f04['fetch'](_0x7ad8a['href'])['then'](_0x557fde=>_0x557fde['clone']()['blob']())['then'](_0x4d04cb=>new _0x291f04['File']([_0x4d04cb],_0x131412,{'type':'image/'+_0x4aecc0}));}}class J extends _0x5db902{['imageEditController'];static get['requires'](){return[_0x34c46e];}['_isEditable'];constructor(_0x35ecd3){super(_0x35ecd3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x52d680){const _0x3edab6=V(_0x52d680);return _0x54faee=>!(!_0x54faee||!_0x54faee['is']('element','imageBlock')&&!_0x54faee['is']('element','imageInline'))&&(!!_0x54faee['hasAttribute']('uploadcareImageId')||!!_0x54faee['hasAttribute']('src')&&_0x3edab6(_0x54faee['getAttribute']('src')));}(_0x35ecd3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xf57c0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xf57c0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x139286=this['editor']['model']['document']['selection']['getSelectedElement']();_0x139286&&(_0x139286['is']('element','imageBlock')||_0x139286['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x34c46e),_0x139286),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x5db902{['refresh'](){const _0x43290f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x43290f&&(_0x43290f['is']('element','imageBlock')||_0x43290f['is']('element','imageInline')));}['execute'](_0x3d1d89){const _0x162438=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4ebabc=>{_0x4ebabc['setAttributes'](_0x3d1d89,_0x162438),_0x4ebabc['removeAttribute']('srcset',_0x162438),_0x4ebabc['removeAttribute']('sizes',_0x162438);});}}class g extends _0x418ad9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x5596c3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xb05434}=this;_0xb05434['commands']['add']('uploadcareImageEdit',new J(_0xb05434)),_0xb05434['commands']['add']('uploadcareImageReplace',new O(_0xb05434));}}class j extends _0x418ad9{['_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 _0x396edc=this['editor'];_0x396edc['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3a48bf=>{const _0x1e64ff=_0x396edc['commands']['get']('uploadcareImageEdit'),_0x15fb05=new _0x2b2bea(_0x3a48bf),t=_0x3a48bf['t'];return _0x15fb05['set']({'icon':_0x4b5ec4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x15fb05['bind']('isEnabled')['to'](_0x1e64ff),_0x15fb05['bind']('isOn')['to'](_0x1e64ff,'isActive'),this['listenTo'](_0x15fb05,'execute',()=>{_0x396edc['execute']('uploadcareImageEdit'),_0x396edc['editing']['view']['focus']();}),_0x15fb05;}),this['_initConfig']();}['_initConfig'](){const _0x21bb51=_0x1764c0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x21bb51),this['listenTo'](this['editor'],'destroy',()=>{_0x21bb51['remove']();});}}class P extends _0x418ad9{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x12578e,Command as _0x285b90}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x215b70,IconGooglePhotos as _0x58795b,IconGoogleDrive as _0x12648f,IconFacebook as _0x64383a,IconDropbox as _0x2ff2a9,IconUploadcareLink as _0x478448,IconUploadcareImageUpload as _0x4780ea,IconError as et,IconUploadcareImageEdit as _0x17302f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x55c549,MenuBarMenuListItemButtonView as _0x12537f,View as _0x141474,FocusCycler as _0x2c312f,Dialog as _0x376426,DialogViewPosition as _0x58d916,SpinnerView as _0x5eee54,IconView as at,Notification as _0xcf256c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x32e10a,DomEmitterMixin as _0x38ea9a,global as _0x21d78a,getAncestors as _0x243083,ObservableMixin as _0x21b865,createElement as _0x112e4b,uid as _0x5235f1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x18bcbc}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x28eaec,info as _0x718142}from'@uploadcare/upload-client';import*as _0x261178 from'@uploadcare/file-uploader';var o=function(_0x45a8c8){return _0x45a8c8['Local']='local',_0x45a8c8['URL']='url',_0x45a8c8['Dropbox']='dropbox',_0x45a8c8['GDrive']='gdrive',_0x45a8c8['Facebook']='facebook',_0x45a8c8['GPhotos']='gphotos',_0x45a8c8['OneDrive']='onedrive',_0x45a8c8;}({});function _(_0x359671,_0x256d50,_0x131ecb){const t=_0x359671['t'],_0x1634dd=_0x359671['t'];switch(_0x256d50){case o['Local']:return{'text':_0x1634dd('Insert'===_0x131ecb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1634dd('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x131ecb?_0x1634dd('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1634dd('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x131ecb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x131ecb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x131ecb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x131ecb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x131ecb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x256d50;}}class e extends _0x12578e{['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 _0x49aa8f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd606eb;for(const _0x5f0e92 in _0x49aa8f){const _0x106601=_0x5f0e92,_0x300c71=_0x49aa8f[_0x106601];if('uploadcareLicenseKeyValid'==_0x300c71||'uploadcareLicenseKeyInvalid'==_0x300c71||'uploadcareLicenseKeyExpired'==_0x300c71||'uploadcareLicenseKeyDomainLimit'==_0x300c71||'uploadcareLicenseKeyNotAllowed'==_0x300c71||'uploadcareLicenseKeyEvaluationLimit'==_0x300c71||'uploadcareLicenseKeyTrialLimit'==_0x300c71||'uploadcareLicenseKeyUsageLimit'==_0x300c71){delete _0x49aa8f[_0x106601],_0xd606eb=_0x300c71,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xd606eb&&_0x49aa8f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xd606eb&&_0x49aa8f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xd606eb&&_0x49aa8f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xd606eb&&_0x49aa8f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xd606eb&&_0x49aa8f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xd606eb&&_0x49aa8f['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xd606eb&&_0x49aa8f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x30f84a}=this,_0x597abb=_0x30f84a['commands']['get']('uploadcare');if(!_0x597abb)return;const _0x2daf4b=this['_normalizeConfigSourceList'](_0x30f84a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x350112,_0x2092bc)=>{const _0x518f2f=this['_getIntegrationKey'](_0x2092bc['type']);return _0x350112[_0x518f2f]||(_0x350112[_0x518f2f]=[]),_0x350112[_0x518f2f]['push'](_0x2092bc),_0x350112;},{});_0x30f84a['plugins']['has']('ImageInsertUI')&&_0x30f84a['commands']['get']('uploadcare')&&Object['entries'](_0x2daf4b)['forEach'](([_0xcfcf42,_0x30666e])=>{_0x30f84a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xcfcf42,'observable':()=>_0x597abb,'buttonViewCreator':()=>this['_createToolbarButton'](_0x30666e),'formViewCreator':()=>this['_createDropdownButtons'](_0x30666e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x30666e),'override':'assetManager'!==_0xcfcf42});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4a4555){const {locale:_0x2eafad}=this['editor'];return _0x4a4555['map'](_0x36c562=>{const _0x46f008=_(_0x2eafad,_0x36c562,'Insert');switch(_0x36c562){case o['Local']:return{'icon':_0x4780ea,'type':o['Local'],..._0x46f008};case o['URL']:return{'icon':_0x478448,'type':o['URL'],..._0x46f008};case o['Dropbox']:return{'icon':_0x2ff2a9,'type':o['Dropbox'],..._0x46f008};case o['Facebook']:return{'icon':_0x64383a,'type':o['Facebook'],..._0x46f008};case o['GDrive']:return{'icon':_0x12648f,'type':o['GDrive'],..._0x46f008};case o['GPhotos']:return{'icon':_0x58795b,'type':o['GPhotos'],..._0x46f008};case o['OneDrive']:return{'icon':_0x215b70,'type':o['OneDrive'],..._0x46f008};}});}['_getIntegrationKey'](_0x30daa4){switch(_0x30daa4){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5a0830,_0x4da4a6){const _0x8ab9e2=this['editor'],_0x357ad1=new _0x5a0830(_0x8ab9e2['locale']),_0x36c28d=_0x8ab9e2['commands']['get']('uploadcare');return _0x357ad1['bind']('isEnabled')['to'](_0x36c28d),_0x357ad1['on']('execute',()=>{_0x36c28d['execute'](_0x4da4a6);}),_0x357ad1;}['_createToolbarButton'](_0xdc66dd){const {locale:_0x199361}=this['editor'],_0x4b7eab=this['editor']['plugins']['get']('ImageInsertUI'),_0x3b63b4=_0xdc66dd[0x0],_0x253e3c=this['_createButton'](_0x55c549,_0x3b63b4['type']);return _0x253e3c['icon']=_0x3b63b4['icon'],_0x253e3c['bind']('label')['to'](_0x4b7eab,'isImageSelected',_0xfa5345=>_(_0x199361,_0x3b63b4['type'],_0xfa5345?'Replace':'Insert')['text']),_0x253e3c['tooltip']=!0x0,_0x253e3c;}['_createDropdownButtons'](_0x498c76){const {locale:_0x16d1b9}=this['editor'],_0x399e27=this['editor']['plugins']['get']('ImageInsertUI');return _0x498c76['map'](_0x485b60=>{const _0xc30271=this['_createButton'](_0x55c549,_0x485b60['type']);return _0xc30271['withText']=!0x0,_0xc30271['icon']=_0x485b60['icon'],_0xc30271['bind']('label')['to'](_0x399e27,'isImageSelected',_0x3e0a64=>_(_0x16d1b9,_0x485b60['type'],_0x3e0a64?'Replace':'Insert')['text']),_0xc30271;});}['_createMenuBarButtons'](_0x1365af){return _0x1365af['map'](_0xf8542f=>{const _0x5ceabc=this['_createButton'](_0x12537f,_0xf8542f['type']);return _0x5ceabc['icon']=_0xf8542f['icon'],_0x5ceabc['label']=_0xf8542f['shortText'],_0x5ceabc;});}}class q extends _0x141474{['focusTracker'];['focusCycler'];constructor(_0x34fe75){super(_0x34fe75),this['focusTracker']=new _0x32e10a(),this['focusCycler']=new _0x2c312f({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x223b14){super(_0x223b14),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0xb3fc62,_0x2ada2c){const _0xfbfa3d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x228e51=>_0x228e51<=_0x2ada2c)['map'](_0xc07348=>_0xb3fc62['replace'](/\/$/,'')+'/-/resize/'+_0xc07348+'x/\x20'+_0xc07348+'w');return{'imageFallbackUrl':_0xb3fc62,'imageSources':[{'srcset':_0xfbfa3d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2ada2c+'px)\x20100vw,\x20'+_0x2ada2c+'px','type':'image/webp'}]};}function A(_0x47bc78,_0x469962,_0x17ed09){const _0x487bdb=_0x47bc78['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x487bdb?parseInt(_0x487bdb[0x1],0xa):_0x469962,'height':_0x487bdb?parseInt(_0x487bdb[0x2],0xa):_0x17ed09};}function m(_0x38c01f,_0x5e603d){const _0x49c874=Object['create'](_0x38ea9a),_0x1c3434=_0x38c01f['plugins']['get']('ImageUtils'),_0x4fcde5=_0x38c01f['editing']['mapper']['toViewElement'](_0x5e603d),_0x536f06=_0x1c3434['findViewImgElement'](_0x4fcde5),_0x29b361=_0x38c01f['editing']['view']['domConverter']['viewToDom'](_0x536f06),_0x12f967=_0x5e603d['getAttribute']('width'),_0x3987ee=_0x5e603d['getAttribute']('height'),_0x14d16c='image-processing';_0x38c01f['editing']['view']['change'](_0x218411=>{_0x218411['addClass'](_0x14d16c,_0x4fcde5),_0x218411['setStyle']('aspect-ratio',_0x12f967+'/'+_0x3987ee,_0x536f06);}),_0x49c874['listenTo'](_0x29b361,'load',()=>{_0x49c874['stopListening'](_0x29b361,'load'),_0x38c01f['editing']['view']['change'](_0x4fff4d=>{_0x4fff4d['removeClass'](_0x14d16c,_0x4fcde5),_0x4fff4d['removeStyle']('aspect-ratio',_0x536f06);});});}function R(_0x59d5ad){if(Array['isArray'](_0x59d5ad)){const _0x3e55b5=_0x59d5ad['map'](R);return _0x3e09c6=>_0x3e55b5['some'](_0x4d72ab=>_0x4d72ab(_0x3e09c6));}if('origin'==_0x59d5ad){const _0x34f5f5=_0x21d78a['window']['location']['origin'];return _0x3f5ec6=>new URL(_0x3f5ec6,_0x21d78a['document']['baseURI'])['origin']==_0x34f5f5;}return'function'==typeof _0x59d5ad?_0x59d5ad:_0x59d5ad instanceof RegExp?_0x446f55=>!(!_0x446f55['match'](_0x59d5ad)&&!_0x446f55['replace'](/^https?:\/\//,'')['match'](_0x59d5ad)):()=>!0x1;}function F(_0x359566,_0x6354d){return _0x243083(_0x359566['target'])['includes'](_0x6354d);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x21b865(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x24e68b,_0x83ede9,_0x3898f6){super(),this['_editor']=_0x24e68b,this['_editing']=_0x83ede9,this['_dialog']=_0x24e68b['plugins']['get'](_0x376426),this['_api']=_0x83ede9['ctxElement']['getAPI'](),this['_type']=_0x3898f6,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:_0x16c6dc,model:_0x43b38e}=this['_editor'],_0x1fc2fa=_0x43b38e['document']['selection']['getSelectedElement'](),_0x3d86e5=_0x1fc2fa&&(_0x1fc2fa['is']('element','imageBlock')||_0x1fc2fa['is']('element','imageInline'));this['_formView']=new S(_0x16c6dc),this['_dialog']['show']({'id':'uploadCare','icon':_0x4780ea,'title':_(_0x16c6dc,this['_type'],_0x3d86e5?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x58d916['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x72b351=>!F(_0x72b351,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x54aa4b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5a515a=>{const _0xf554b1=_0x54aa4b['length'];for(const _0x5337db of _0x54aa4b){const _0x47e2ad=_0x5337db===_0x54aa4b[_0xf554b1-0x1],{cdnUrl:_0x524764,fileInfo:_0x5d438d}=_0x5337db;if(!_0x524764||!_0x5d438d)continue;const {width:_0x40cded,height:_0x480aed}=_0x5d438d['imageInfo'],_0x3ca9c3=A(_0x524764,_0x40cded,_0x480aed),_0xe34c59=E(_0x524764,_0x3ca9c3['width']),_0x4c69c4={'id':_0x5d438d['uuid'],'type':'image','attributes':{'imageDimension':_0x3ca9c3,..._0xe34c59}};this['_insertAsset'](_0x4c69c4,_0x47e2ad,_0x5a515a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2c0d58=>{'idle'===_0x2c0d58['detail']['status']&&!_0x2c0d58['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x310b57,_0x2c2f11,_0x29a53b){const _0x5db664=this['_editor']['model']['document']['selection'],_0x4b8661=_0x5db664['getSelectedElement'](),_0xc10bda=!(!_0x4b8661||!_0x4b8661['is']('element','imageInline'));_0x29a53b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x310b57,_0xc10bda),_0x2c2f11||_0x29a53b['setSelection'](_0x5db664['getLastPosition']());}['_insertImage'](_0x53a6d3,_0x2fd75b){const _0x43fcf5=this['_editor'],{imageDimension:_0x391930,imageFallbackUrl:_0x255d25,imageSources:_0x48a4aa}=_0x53a6d3['attributes'];_0x43fcf5['execute']('insertImage',{'imageType':_0x2fd75b?'imageInline':null,'source':{'uploadcareImageId':_0x53a6d3['id'],'src':_0x255d25,'sources':_0x48a4aa,..._0x391930}});}}class n extends _0x285b90{['_editing'];['_controller']=null;static get['requires'](){return[_0x376426,i];}constructor(_0x2bab17){super(_0x2bab17),this['_editing']=_0x2bab17['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3afe2f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x3afe2f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x522a2e,publicKey:_0x148e2a,signal:_0x3d346b,onProgress:_0x2dcc1e}){return _0x28eaec(_0x522a2e,{'publicKey':_0x148e2a,'store':'auto','signal':_0x3d346b,'onProgress':_0x2dcc1e});}static['getInfo'](_0x3382a9,_0x56efbd){return _0x718142(_0x3382a9,_0x56efbd);}}class p extends _0x12578e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x18bcbc,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x549e55=this['editor'];if(!!!_0x549e55['config']['get']('uploadcare'))return;_0x549e55['plugins']['get'](_0x18bcbc)['createUploadAdapter']=_0x377fca=>new x(_0x377fca,_0x549e55),_0x549e55['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xca1b81,{imageElement:_0x4aaae3,data:_0x2adde3})=>{_0x549e55['model']['change'](_0x5d343b=>{_0x5d343b['setAttribute']('uploadcareImageId',_0x2adde3['uploadcareImageId'],_0x4aaae3);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x128c91,_0x29cea9){this['loader']=_0x128c91,this['editor']=_0x29cea9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5c775b=this['editor']['config']['get']('uploadcare.pubkey'),_0x427a4c=await this['loader']['file'];return C['upload']({'file':_0x427a4c,'publicKey':_0x5c775b,'signal':this['controller']['signal'],'onProgress':_0x1a02d9=>{_0x1a02d9&&_0x1a02d9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1a02d9['value']);}})['then'](async _0x591775=>{const {imageFallbackUrl:_0x1dac36,imageSources:_0x142082}=E(_0x591775['cdnUrl'],_0x591775['imageInfo']['width']);return{'uploadcareImageId':_0x591775['uuid'],'default':_0x1dac36,'sources':_0x142082};})['catch'](()=>{const _0x32d5fa=t('Cannot\x20upload\x20file:')+('\x20'+_0x427a4c['name']+'.');return Promise['reject'](_0x32d5fa);});}['abort'](){this['controller']['abort']();}}class i extends _0x12578e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x376426];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x22df45=this['editor'];_0x22df45['commands']['add']('uploadcare',new n(_0x22df45));}['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 _0x1cf48b=_0x21d78a['document']['querySelector']('input[uploadcare-file-input]');_0x1cf48b&&_0x1cf48b['remove']();}),async function(_0x12db6c){const _0x530af1=_0x5e3f6a([0x6d,0x71,0x41,0x35,0x50,0x52,0x53,0x5a,0x65,0x7a,0x45,0x36,0x6f,0x6e,0x63,0x55,0x68,0x58,0x48,0x72,0x79,0x62,0x4e,0x67,0x56,0x31,0x74,0x61,0x30,0x6a,0x42,0x46,0x57,0x4d,0x47,0x54,0x4a,0x6b,0x59,0x76,0x69,0x78,0x77,0x4b,0x75,0x43,0x64,0x33,0x34,0x51,0x44,0x4f,0x66,0x37,0x73,0x38,0x70,0x32,0x49,0x6c,0x4c,0x39]),_0x3e00ca=0x688b112f,_0x1e1fbb=0x688c7817^_0x3e00ca,_0x739840=window[_0x5e3f6a([0x44,0x61,0x74,0x65])][_0x5e3f6a([0x6e,0x6f,0x77])](),_0x4457a8=_0x12db6c[_0x5e3f6a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x490cd1=new window[(_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a25b1=>{_0x4457a8[_0x5e3f6a([0x6f,0x6e,0x63,0x65])](_0x5e3f6a([0x72,0x65,0x61,0x64,0x79]),_0x2a25b1);}),_0x2f9600={[_0x5e3f6a([0x6b,0x74,0x79])]:_0x5e3f6a([0x45,0x43]),[_0x5e3f6a([0x75,0x73,0x65])]:_0x5e3f6a([0x73,0x69,0x67]),[_0x5e3f6a([0x63,0x72,0x76])]:_0x5e3f6a([0x50,0x2d,0x32,0x35,0x36]),[_0x5e3f6a([0x78])]:_0x5e3f6a([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]),[_0x5e3f6a([0x79])]:_0x5e3f6a([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]),[_0x5e3f6a([0x61,0x6c,0x67])]:_0x5e3f6a([0x45,0x53,0x32,0x35,0x36])},_0x2e1177=_0x4457a8[_0x5e3f6a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e3f6a([0x67,0x65,0x74])](_0x5e3f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2db534(){let _0x48077a,_0xe0eba0=null,_0x1dd022=null;try{if(_0x2e1177==_0x5e3f6a([0x47,0x50,0x4c]))return _0x5e3f6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x48077a=_0x22eff7(),!_0x48077a)return _0x5e3f6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x48077a[_0x5e3f6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1dd022=_0x670ec8(_0x48077a[_0x5e3f6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x48077a[_0x5e3f6a([0x6a,0x74,0x69])])),await _0x10581b()?_0x229fd9()?_0xb883b4()?_0x5e3f6a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x426bca()?(_0x48077a[_0x5e3f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e3f6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe0eba0=_0x2d3032(_0x5e3f6a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x48077a[_0x5e3f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e3f6a([0x74,0x72,0x69,0x61,0x6c])&&(_0xe0eba0=_0x2d3032(_0x5e3f6a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a59b1()):_0x5e3f6a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e3f6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e3f6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e3f6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb883b4(){const _0x5151a5=[_0x5e3f6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e3f6a([0x74,0x72,0x69,0x61,0x6c])][_0x5e3f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48077a[_0x5e3f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x739840/0x3e8:0xe10*_0x1e1fbb;return _0x48077a[_0x5e3f6a([0x65,0x78,0x70])]<_0x5151a5;}function _0x229fd9(){const _0x1becae=_0x48077a[_0x5e3f6a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1becae&&(!!_0x1becae[_0x5e3f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e3f6a([0x2a]))||!!_0x1becae[_0x5e3f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e3f6a([0x55,0x50,0x4c,0x43])));}function _0x426bca(){const _0x153e82=_0x48077a[_0x5e3f6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x153e82||0x0==_0x153e82[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4eee7b}=new URL(window[_0x5e3f6a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x153e82[_0x5e3f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eee7b))return!0x0;const _0x322718=_0x4eee7b[_0x5e3f6a([0x73,0x70,0x6c,0x69,0x74])](_0x5e3f6a([0x2e]));return _0x153e82[_0x5e3f6a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19fe5e=>_0x19fe5e[_0x5e3f6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e3f6a([0x2a])))[_0x5e3f6a([0x6d,0x61,0x70])](_0x3d6e2e=>_0x3d6e2e[_0x5e3f6a([0x73,0x70,0x6c,0x69,0x74])](_0x5e3f6a([0x2e])))[_0x5e3f6a([0x73,0x6f,0x6d,0x65])](_0x25222b=>_0x322718[_0x5e3f6a([0x65,0x76,0x65,0x72,0x79])]((_0x51f3a9,_0x5768af)=>_0x25222b[_0x5768af]===_0x51f3a9||_0x25222b[_0x5768af]===_0x5e3f6a([0x2a])));}function _0x4a59b1(){return _0xe0eba0&&_0x1dd022?new window[(_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x595480,_0x1c837a)=>{_0xe0eba0[_0x5e3f6a([0x74,0x68,0x65,0x6e])](_0x595480,_0x1c837a),_0x1dd022[_0x5e3f6a([0x74,0x68,0x65,0x6e])](_0x1ac0bf=>{_0x1ac0bf!=_0x5e3f6a([0x56,0x61,0x6c,0x69,0x64])&&_0x595480(_0x1ac0bf);},_0x1c837a);}):_0xe0eba0||_0x1dd022||_0x5e3f6a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x670ec8(_0x1fe5f5,_0x3483f1){return new window[(_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3310fc=>{if(_0xdab1fa())return _0x3310fc(_0x5e3f6a([0x56,0x61,0x6c,0x69,0x64]));_0x1093a7(),_0x4457a8[_0x5e3f6a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e3f6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xad009=!0x1;const _0x446aa3=_0x5235f1();function _0x15b4b5(_0x272d53){return!!_0x272d53&&(typeof _0x272d53===_0x5e3f6a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x272d53===_0x5e3f6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x272d53[_0x5e3f6a([0x74,0x68,0x65,0x6e])]===_0x5e3f6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x272d53[_0x5e3f6a([0x63,0x61,0x74,0x63,0x68])]===_0x5e3f6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f11fe(_0x4ef1f4){_0x1fc491(_0x4ef1f4)[_0x5e3f6a([0x74,0x68,0x65,0x6e])](_0x460252=>{if(!_0x460252||_0x460252[_0x5e3f6a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e3f6a([0x6f,0x6b]))return _0x5e3f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x6399c7(_0x5b839d(_0x446aa3+_0x3483f1))!=_0x460252[_0x5e3f6a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e3f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e3f6a([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e3f6a([0x74,0x68,0x65,0x6e])](_0x1ac74b=>(_0x585cb3(),_0x1ac74b),()=>{const _0xab0a9c=_0x37e603();return null==_0xab0a9c?(_0x585cb3(),_0x5e3f6a([0x56,0x61,0x6c,0x69,0x64])):_0x5e3f6a(_0x739840-_0xab0a9c>(0x4c87952f^_0x3e00ca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e3f6a([0x74,0x68,0x65,0x6e])](_0x3310fc)[_0x5e3f6a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3310fc(_0x5e3f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x52a348=0x68bdffaf^_0x3e00ca;function _0x585cb3(){const _0x1e85db=_0x5e3f6a([0x6c,0x6c,0x63,0x74,0x2d])+_0x6399c7(_0x5b839d(_0x1fe5f5)),_0x4807f4=_0x29b97d(_0x6399c7(window[_0x5e3f6a([0x4d,0x61,0x74,0x68])][_0x5e3f6a([0x63,0x65,0x69,0x6c])](_0x739840/_0x52a348)));window[_0x5e3f6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e3f6a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e85db,_0x4807f4);}function _0x37e603(){const _0x243243=_0x5e3f6a([0x6c,0x6c,0x63,0x74,0x2d])+_0x6399c7(_0x5b839d(_0x1fe5f5)),_0x54b369=window[_0x5e3f6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e3f6a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x243243);return _0x54b369?window[_0x5e3f6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29b97d(_0x54b369),0x10)*_0x52a348:null;}function _0x1fc491(_0x5122c3){return new window[(_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x430363,_0x267fcf)=>{_0x5122c3[_0x5e3f6a([0x74,0x68,0x65,0x6e])](_0x430363,_0x267fcf),window[_0x5e3f6a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x267fcf,0x688ac5ef^_0x3e00ca);});}}_0x4457a8[_0x5e3f6a([0x6f,0x6e])](_0x5e3f6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42b78b,_0x3b4241)=>{if(_0x3b4241[0x0]!=_0x1fe5f5)return _0x3310fc(_0x5e3f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b4241[0x1]={..._0x3b4241[0x1],[_0x5e3f6a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x446aa3};},{[_0x5e3f6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e3f6a([0x68,0x69,0x67,0x68])}),_0x4457a8[_0x5e3f6a([0x6f,0x6e])](_0x5e3f6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55621f=>{_0x15b4b5(_0x55621f[_0x5e3f6a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xad009=!0x0,_0x2f11fe(_0x55621f[_0x5e3f6a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e3f6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e3f6a([0x6c,0x6f,0x77])}),_0x490cd1[_0x5e3f6a([0x74,0x68,0x65,0x6e])](()=>{_0xad009||_0x3310fc(_0x5e3f6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xdab1fa(){return _0x4457a8[_0x5e3f6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e3f6a([0x76,0x69,0x65,0x77])][_0x5e3f6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e3f6a([0x61,0x75,0x74,0x6f]);}function _0x1093a7(){_0x4457a8[_0x5e3f6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e3f6a([0x76,0x69,0x65,0x77])][_0x5e3f6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e3f6a([0x61,0x75,0x74,0x6f]);}}function _0x2d3032(_0x3f9be7){const _0x52f65d=[new window[(_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24867e=>setTimeout(_0x24867e,0x68822fe3^_0x3e00ca)),_0x490cd1[_0x5e3f6a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37a79f=>{let _0x3c74e4=0x0;_0x4457a8[_0x5e3f6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e3f6a([0x6f,0x6e])](_0x5e3f6a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1788f3,_0x3ff6bd)=>{_0x3ff6bd[0x0][_0x5e3f6a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c74e4++,_0x3c74e4==(0x688b10d7^_0x3e00ca)&&(_0x37a79f(),_0x1788f3[_0x5e3f6a([0x6f,0x66,0x66])]());});}))];return window[_0x5e3f6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e3f6a([0x72,0x61,0x63,0x65])](_0x52f65d)[_0x5e3f6a([0x74,0x68,0x65,0x6e])](()=>_0x3f9be7);}async function _0xbe726b(){await _0x490cd1,_0x4457a8[_0x5e3f6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e3f6a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x497b2e,_0x4457a8[_0x5e3f6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e3f6a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x497b2e,_0x4457a8[_0x5e3f6a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e3f6a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x56dc00(_0x3ac9ed){const _0x1ef406=_0x5c2017();_0x4457a8[_0x1ef406]=_0x5e3f6a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ac9ed,_0x3ac9ed!=_0x5e3f6a([0x56,0x61,0x6c,0x69,0x64])&&_0xbe726b();}function _0x5c2017(){const _0x3ebd18=window[_0x5e3f6a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e3f6a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e3f6a([0x6e,0x6f,0x77])]())[_0x5e3f6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e3f6a([0x2e]),'');let _0x5bc518=_0x5e3f6a([0x6d]);for(let _0x3009d8=0x0;_0x3009d8<_0x3ebd18[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3009d8+=0x2){let _0x4a8415=window[_0x5e3f6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ebd18[_0x5e3f6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3009d8,_0x3009d8+0x2));_0x4a8415>=_0x530af1[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a8415-=_0x530af1[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5bc518+=_0x530af1[_0x4a8415];}return _0x5bc518;}function _0x22eff7(){const _0x22407=_0x2e1177[_0x5e3f6a([0x73,0x70,0x6c,0x69,0x74])](_0x5e3f6a([0x2e]));if(0x3!=_0x22407[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1cfa8c(_0x22407[0x1]);function _0x1cfa8c(_0x1535d5){const _0x37afcb=_0xba73a6(_0x1535d5);return _0x37afcb&&_0x8c05b7()?_0x37afcb:null;function _0x8c05b7(){const _0x4ed2ea=_0x37afcb[_0x5e3f6a([0x6a,0x74,0x69])],_0x5dfb3c=window[_0x5e3f6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ed2ea[_0x5e3f6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ed2ea[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3f128c={..._0x37afcb,[_0x5e3f6a([0x6a,0x74,0x69])]:_0x4ed2ea[_0x5e3f6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ed2ea[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3f128c[_0x5e3f6a([0x76,0x63])],_0x5b839d(_0x3f128c)==_0x5dfb3c;}}}async function _0x10581b(){let _0x1edc3e=!0x0;try{const _0x2456dd=_0x2e1177[_0x5e3f6a([0x73,0x70,0x6c,0x69,0x74])](_0x5e3f6a([0x2e])),[_0x1b1631,_0x4bf33e,_0x157ff3]=_0x2456dd;return _0x95375f(_0x1b1631),await _0x177771(_0x1b1631,_0x4bf33e,_0x157ff3),_0x1edc3e;}catch{return!0x1;}function _0x95375f(_0x5698bb){const _0x45862b=_0xba73a6(_0x5698bb);_0x45862b&&_0x45862b[_0x5e3f6a([0x61,0x6c,0x67])]==_0x5e3f6a([0x45,0x53,0x32,0x35,0x36])||(_0x1edc3e=!0x1);}async function _0x177771(_0x297b96,_0x2c5126,_0x395568){const _0x21479b=window[_0x5e3f6a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e3f6a([0x66,0x72,0x6f,0x6d])](_0x523638(_0x395568),_0x4dd030=>_0x4dd030[_0x5e3f6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x280bc=new window[(_0x5e3f6a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e3f6a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x297b96+_0x5e3f6a([0x2e])+_0x2c5126),_0x4b90ba=window[_0x5e3f6a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e3f6a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b90ba)return;const _0x1c2455=await _0x4b90ba[_0x5e3f6a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e3f6a([0x6a,0x77,0x6b]),_0x2f9600,{[_0x5e3f6a([0x6e,0x61,0x6d,0x65])]:_0x5e3f6a([0x45,0x43,0x44,0x53,0x41]),[_0x5e3f6a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e3f6a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e3f6a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b90ba[_0x5e3f6a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e3f6a([0x6e,0x61,0x6d,0x65])]:_0x5e3f6a([0x45,0x43,0x44,0x53,0x41]),[_0x5e3f6a([0x68,0x61,0x73,0x68])]:{[_0x5e3f6a([0x6e,0x61,0x6d,0x65])]:_0x5e3f6a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c2455,_0x21479b,_0x280bc)||(_0x1edc3e=!0x1);}}function _0xba73a6(_0x12c7b2){return _0x12c7b2[_0x5e3f6a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e3f6a([0x65,0x79]))?JSON[_0x5e3f6a([0x70,0x61,0x72,0x73,0x65])](_0x523638(_0x12c7b2)):null;}function _0x523638(_0x174c9d){return window[_0x5e3f6a([0x61,0x74,0x6f,0x62])](_0x174c9d[_0x5e3f6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e3f6a([0x2b]))[_0x5e3f6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e3f6a([0x2f])));}function _0x5b839d(_0x1e1862){let _0xcca27d=0x1505;function _0x274c33(_0x30f5f9){for(let _0x4a9215=0x0;_0x4a9215<_0x30f5f9[_0x5e3f6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a9215++){const _0x484095=_0x30f5f9[_0x5e3f6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4a9215);_0xcca27d=(_0xcca27d<<0x5)+_0xcca27d+_0x484095,_0xcca27d&=_0xcca27d;}}function _0x232736(_0x5d2d4c){Array[_0x5e3f6a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d2d4c)?_0x5d2d4c[_0x5e3f6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x232736):_0x5d2d4c&&typeof _0x5d2d4c==_0x5e3f6a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e3f6a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d2d4c)[_0x5e3f6a([0x73,0x6f,0x72,0x74])]()[_0x5e3f6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52b722,_0x87e348])=>{_0x274c33(_0x52b722),_0x232736(_0x87e348);}):_0x274c33(window[_0x5e3f6a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d2d4c));}return _0x232736(_0x1e1862),_0xcca27d>>>0x0;}function _0x6399c7(_0x2a6c09){return _0x2a6c09[_0x5e3f6a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e3f6a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e3f6a([0x30]));}function _0x29b97d(_0x44c786){return _0x44c786[_0x5e3f6a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e3f6a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e3f6a([0x6a,0x6f,0x69,0x6e])]('');}function _0x497b2e(){}function _0x5e3f6a(_0x469437){return _0x469437['map'](_0x3e0be4=>String['fromCharCode'](_0x3e0be4))['join']('');}_0x56dc00(await _0x2db534());}(this);}['_initSchema'](){const _0x5fdbed=this['editor']['model']['schema'];_0x5fdbed['isRegistered']('imageBlock')&&_0x5fdbed['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5fdbed['isRegistered']('imageInline')&&_0x5fdbed['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x9d6ac=this['editor'];_0x9d6ac['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x9d6ac['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5df8eb=>_0x5df8eb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x24f366=_0x9d6ac['commands']['get']('replaceImageSource');_0x24f366&&this['listenTo'](_0x24f366,'cleanupImage',(_0x4fc31c,[_0x54b24f,_0x58f5bb])=>{_0x54b24f['removeAttribute']('uploadcareImageId',_0x58f5bb);});}['_initConfig'](){const _0x8c480b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x137133=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x112e4b(_0x21d78a['document'],'uc-config',{..._0x8c480b,'pubkey':_0x137133,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x176217=>{if('closeMax'==_0x176217)return'#uc-icon-arrow-down';},_0x21d78a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x112e4b(_0x21d78a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x21d78a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x20b84f=this['editor']['commands']['get']('insertImage');_0x20b84f&&this['listenTo'](_0x20b84f,'execute',()=>{const _0xd4d2ec=this['editor']['model']['document']['selection']['getSelectedElement']();_0xd4d2ec&&_0xd4d2ec['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xd4d2ec);});});const _0x29effe=this['editor']['commands']['get']('uploadcareImageReplace');_0x29effe&&this['listenTo'](_0x29effe,'execute',()=>{const _0x246f04=this['editor']['model']['document']['selection']['getSelectedElement']();_0x246f04&&_0x246f04['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x246f04);});});}}class u extends _0x12578e{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b6d7e){super(_0x1b6d7e),_0x1b6d7e['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x261178['defineComponents'](_0x261178);}}class ta extends _0x141474{constructor(_0x165e7c){super(_0x165e7c);const t=_0x165e7c['t'],_0x26265b=this['bindTemplate'],_0x16a10e=new _0x5eee54();_0x16a10e['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':[_0x16a10e,{'text':_0x26265b['to']('imageUploadProgress',_0x2c8491=>t('Loading\x20image...')+'\x20('+(_0x2c8491||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x141474{constructor(_0xbeea6c){super(_0xbeea6c);const t=_0xbeea6c['t'];this['set']('errorType',null);const _0x3061e9=new _0x55c549(_0xbeea6c);_0x3061e9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3061e9['withText']=!0x0,_0x3061e9['class']='ck-button-action',_0x3061e9['on']('execute',()=>{this['fire']('retry');}),_0x3061e9['bind']('isVisible')['to'](this,'errorType',_0x196628=>'NotFound'!==_0x196628);const _0x2423e0=new at();_0x2423e0['content']=et,_0x2423e0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x20c16d=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':[_0x2423e0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x20c16d['to']('errorType',_0x3ea075=>t('NotFound'!==_0x3ea075?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3061e9]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x141474{constructor(_0x16ee72,_0x47f3d5){super(_0x16ee72);const _0x2a483c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x47f3d5,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2a483c['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x16fc4d,_0x344298,_0x2b2949){super(_0x16fc4d),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x16fc4d),this['_errorView']=new rt(_0x16fc4d),this['_editingView']=new tt(_0x16fc4d,_0x2b2949),this['_focusableView']=new _0x141474(_0x16fc4d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x344298),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'],_0x3c9116=>{this['_addUploadcareImageEditorListeners'](_0x3c9116);});}),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'](_0x23dd9e,_0x24e31b){const _0x282680='uc-cloud-image-editor',_0x5d9fa8=_0x23dd9e['querySelector'](_0x282680);if(_0x5d9fa8)return _0x24e31b(_0x5d9fa8);const _0x1eadfe=new MutationObserver(_0x13223f=>{const _0x3abaf1=_0x13223f['filter'](_0x22037b=>_0x22037b['target']===_0x23dd9e&&_0x22037b['addedNodes']['length']>0x0&&_0x22037b['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x282680);_0x3abaf1['length']&&(_0x1eadfe['disconnect'](),_0x24e31b(_0x3abaf1[0x0]['addedNodes'][0x0]));});_0x1eadfe['observe'](_0x23dd9e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4f5b8b){_0x4f5b8b['addEventListener']('apply',_0x50f0fd=>{this['fire']('apply',{'imageSrc':_0x50f0fd['detail']['cdnUrl']});}),_0x4f5b8b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class O extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x21b865(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x327765,_0x1c80e7,_0x5579e4){super(),this['_editor']=_0x327765,this['_dialog']=_0x1c80e7,this['_imageElement']=_0x5579e4,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 _0x3ac775=this['_imageElement'],_0x57e853=_0x3ac775['getAttribute']('uploadcareImageId'),_0x13e40=_0x3ac775['getAttribute']('src');if(_0x57e853)await this['_loadImageInfo'](_0x57e853,_0x13e40);else{if(this['_imageCache']['has'](_0x13e40)){const _0x4f5fa9=this['_imageCache']['get'](_0x13e40);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4f5fa9['url'],this['imageDimension']=_0x4f5fa9['dimension'],this['imageId']=_0x4f5fa9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4e3c38}=this['_editor'],t=_0x4e3c38['t'],_0x3548e5=new Z(_0x4e3c38,this['imageStatus'],this['_attributes']);_0x3548e5['bind']('status')['to'](this,'imageStatus'),_0x3548e5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3548e5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3548e5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3548e5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x17302f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3548e5,'position':_0x58d916['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3548e5['focus']();},'onHide':()=>{_0x3548e5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4f9dd7=>!F(_0x4f9dd7,_0x3548e5['element'])}});}['_loadImageInfo'](_0x1d10c0,_0x1ebd76){return C['getInfo'](_0x1d10c0,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x26cced=>{const {width:_0x10e450,height:_0x4f4cde}=_0x26cced['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1ebd76,this['imageDimension']={'width':_0x10e450,'height':_0x4f4cde},this['imageId']=_0x1d10c0;})['catch'](_0xaa3ae1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xaa3ae1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x48de2d,_0x51482d){return this['_getImageAsFile'](_0x48de2d)['then'](_0x3b3f58=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x51482d['signal'],'file':_0x3b3f58,'onProgress':_0x427e73=>{_0x427e73&&_0x427e73['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x427e73['value']));}}))['then'](_0x2178af=>{const {width:_0x59aadc,height:_0xd518be}=_0x2178af['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2178af['cdnUrl'],this['imageDimension']={'width':_0x59aadc,'height':_0xd518be},this['imageId']=_0x2178af['uuid'],this['imageUploadProgress']=null;const _0x4f007b=_0x48de2d['getAttribute']('src');this['_imageCache']['set'](_0x4f007b,{'id':_0x2178af['uuid'],'url':_0x2178af['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x266d5e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x266d5e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x483315,_0x33ec0c){_0x483315['on']('apply',(_0x30df64,_0xd8826e)=>{this['_replaceImage'](_0x33ec0c,_0xd8826e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x483315['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x483315['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xc14886,_0x31a9a6,_0x40706a){const _0x3cbaf6=this['_editor'],{width:_0x5b6d00,height:_0x3c76f7}=A(_0x31a9a6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1d0253,imageSources:_0xfc498a}=E(_0x31a9a6,_0x5b6d00);_0x3cbaf6['model']['change'](_0x54800c=>{if('$graveyard'===_0xc14886['root']['rootName']){_0x3cbaf6['execute']('insertImage',{'imageType':_0xc14886['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xc14886['getAttributes']()),'uploadcareImageId':_0x40706a,'src':_0x1d0253,'sources':_0xfc498a,'width':_0x5b6d00,'height':_0x3c76f7}});const _0xf7cd2a=_0xc14886['getChildren']();_0xc14886=_0x3cbaf6['model']['document']['selection']['getSelectedElement']();for(const _0x2c7ec4 of _0xf7cd2a)_0x54800c['append'](_0x54800c['cloneElement'](_0x2c7ec4),_0xc14886);}else _0x54800c['setSelection'](_0xc14886,'on'),_0x3cbaf6['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xc14886['getAttributes']()),'uploadcareImageId':_0x40706a,'src':_0x1d0253,'sources':_0xfc498a,'width':_0x5b6d00,'height':_0x3c76f7},_0xc14886);_0x54800c['setSelection'](_0xc14886,'on');});}async['_getImageAsFile'](_0x172895){const _0x4acd13=_0x21d78a['window'],_0x176cf6=_0x21d78a['document']['location']['href'],_0x4d75b4=new _0x4acd13['URL'](_0x172895['getAttribute']('src'),_0x176cf6);if('data:'===_0x4d75b4['protocol']){const _0x1ffa4a=_0x4d75b4['href']['split'](','),_0x2b0093=_0x1ffa4a[0x0]['match'](/:(.*?);/)[0x1],_0x2e1403=_0x2b0093['split']('/')[0x1],_0xd24456=_0x4acd13['atob'](_0x1ffa4a[_0x1ffa4a['length']-0x1]);let _0x7ea374=_0xd24456['length'];const _0x49bd96=new _0x4acd13['Uint8Array'](_0x7ea374);for(;_0x7ea374--;)_0x49bd96[_0x7ea374]=_0xd24456['charCodeAt'](_0x7ea374);return new _0x4acd13['File']([_0x49bd96],'image.'+_0x2e1403,{'type':_0x2b0093});}const _0x4ba4fa=_0x4d75b4['href']['split']('/'),_0x2b5626=_0x4ba4fa[_0x4ba4fa['length']-0x1],_0x1bd017=_0x2b5626['split']('.')[0x1];return _0x4acd13['fetch'](_0x4d75b4['href'])['then'](_0x37d992=>_0x37d992['clone']()['blob']())['then'](_0x5d32a6=>new _0x4acd13['File']([_0x5d32a6],_0x2b5626,{'type':'image/'+_0x1bd017}));}}class V extends _0x285b90{['imageEditController'];static get['requires'](){return[_0x376426];}['_isEditable'];constructor(_0x1fcab7){super(_0x1fcab7),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x357887){const _0x16f649=R(_0x357887);return _0x57ec43=>!(!_0x57ec43||!_0x57ec43['is']('element','imageBlock')&&!_0x57ec43['is']('element','imageInline'))&&(!!_0x57ec43['hasAttribute']('uploadcareImageId')||!!_0x57ec43['hasAttribute']('src')&&_0x16f649(_0x57ec43['getAttribute']('src')));}(_0x1fcab7['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x136153=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x136153);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x34fe61=this['editor']['model']['document']['selection']['getSelectedElement']();_0x34fe61&&(_0x34fe61['is']('element','imageBlock')||_0x34fe61['is']('element','imageInline'))&&(this['imageEditController']=new O(this['editor'],this['editor']['plugins']['get'](_0x376426),_0x34fe61),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class X extends _0x285b90{['refresh'](){const _0x464ed3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x464ed3&&(_0x464ed3['is']('element','imageBlock')||_0x464ed3['is']('element','imageInline')));}['execute'](_0x13271d){const _0x10e42b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x13269f=>{_0x13269f['setAttributes'](_0x13271d,_0x10e42b),_0x13269f['removeAttribute']('srcset',_0x10e42b),_0x13269f['removeAttribute']('sizes',_0x10e42b);});}}class g extends _0x12578e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xcf256c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x24ee16}=this;_0x24ee16['commands']['add']('uploadcareImageEdit',new V(_0x24ee16)),_0x24ee16['commands']['add']('uploadcareImageReplace',new X(_0x24ee16));}}class j extends _0x12578e{['_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 _0x3507fa=this['editor'];_0x3507fa['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5c49b3=>{const _0x1c9c5d=_0x3507fa['commands']['get']('uploadcareImageEdit'),_0x4f1a3c=new _0x55c549(_0x5c49b3),t=_0x5c49b3['t'];return _0x4f1a3c['set']({'icon':_0x17302f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4f1a3c['bind']('isEnabled')['to'](_0x1c9c5d),_0x4f1a3c['bind']('isOn')['to'](_0x1c9c5d,'isActive'),this['listenTo'](_0x4f1a3c,'execute',()=>{_0x3507fa['execute']('uploadcareImageEdit'),_0x3507fa['editing']['view']['focus']();}),_0x4f1a3c;}),this['_initConfig']();}['_initConfig'](){const _0x33dbad=_0x112e4b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x33dbad),this['listenTo'](this['editor'],'destroy',()=>{_0x33dbad['remove']();});}}class P extends _0x12578e{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/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':_0x4694f7=>0x1!=_0x4694f7}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1446d1=>{const {af:{dictionary:_0x25f20d,getPluralForm:_0x24064f}}={'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':_0x134ee6=>0x1!=_0x134ee6}};_0x1446d1['af']||={'dictionary':{},'getPluralForm':null},_0x1446d1['af']['dictionary']=Object['assign'](_0x1446d1['af']['dictionary'],_0x25f20d),_0x1446d1['af']['getPluralForm']=_0x24064f;})(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':_0x5cf9ff=>0x0==_0x5cf9ff?0x0:0x1==_0x5cf9ff?0x1:0x2==_0x5cf9ff?0x2:_0x5cf9ff%0x64>=0x3&&_0x5cf9ff%0x64<=0xa?0x3:_0x5cf9ff%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5cd075=>{const {ar:{dictionary:_0x22663e,getPluralForm:_0x331fda}}={'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':_0x2059b1=>0x0==_0x2059b1?0x0:0x1==_0x2059b1?0x1:0x2==_0x2059b1?0x2:_0x2059b1%0x64>=0x3&&_0x2059b1%0x64<=0xa?0x3:_0x2059b1%0x64>=0xb?0x4:0x5}};_0x5cd075['ar']||={'dictionary':{},'getPluralForm':null},_0x5cd075['ar']['dictionary']=Object['assign'](_0x5cd075['ar']['dictionary'],_0x22663e),_0x5cd075['ar']['getPluralForm']=_0x331fda;})(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':_0x344050=>0x1!=_0x344050}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x42e615=>{const {ast:{dictionary:_0x3d540b,getPluralForm:_0x15e405}}={'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':_0x45a339=>0x1!=_0x45a339}};_0x42e615['ast']||={'dictionary':{},'getPluralForm':null},_0x42e615['ast']['dictionary']=Object['assign'](_0x42e615['ast']['dictionary'],_0x3d540b),_0x42e615['ast']['getPluralForm']=_0x15e405;})(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':_0x1e0505=>0x1!=_0x1e0505}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x556ef0=>{const {az:{dictionary:_0xb5e547,getPluralForm:_0x29b857}}={'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':_0xfee6b4=>0x1!=_0xfee6b4}};_0x556ef0['az']||={'dictionary':{},'getPluralForm':null},_0x556ef0['az']['dictionary']=Object['assign'](_0x556ef0['az']['dictionary'],_0xb5e547),_0x556ef0['az']['getPluralForm']=_0x29b857;})(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':_0x1efac4=>_0x1efac4%0xa==0x1&&_0x1efac4%0x64!=0xb?0x0:_0x1efac4%0xa>=0x2&&_0x1efac4%0xa<=0x4&&(_0x1efac4%0x64<0xa||_0x1efac4%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3736d1=>{const {be:{dictionary:_0x2b2680,getPluralForm:_0x4600b1}}={'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':_0x418570=>_0x418570%0xa==0x1&&_0x418570%0x64!=0xb?0x0:_0x418570%0xa>=0x2&&_0x418570%0xa<=0x4&&(_0x418570%0x64<0xa||_0x418570%0x64>=0x14)?0x1:0x2}};_0x3736d1['be']||={'dictionary':{},'getPluralForm':null},_0x3736d1['be']['dictionary']=Object['assign'](_0x3736d1['be']['dictionary'],_0x2b2680),_0x3736d1['be']['getPluralForm']=_0x4600b1;})(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':_0x2c9cec=>0x1!=_0x2c9cec}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1904ff=>{const {bg:{dictionary:_0x5c86fd,getPluralForm:_0x451e42}}={'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':_0xeeb64e=>0x1!=_0xeeb64e}};_0x1904ff['bg']||={'dictionary':{},'getPluralForm':null},_0x1904ff['bg']['dictionary']=Object['assign'](_0x1904ff['bg']['dictionary'],_0x5c86fd),_0x1904ff['bg']['getPluralForm']=_0x451e42;})(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':_0x1c5df4=>0x1!=_0x1c5df4}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1e3269=>{const {bn:{dictionary:_0x1e4658,getPluralForm:_0x4e6696}}={'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':_0x404cef=>0x1!=_0x404cef}};_0x1e3269['bn']||={'dictionary':{},'getPluralForm':null},_0x1e3269['bn']['dictionary']=Object['assign'](_0x1e3269['bn']['dictionary'],_0x1e4658),_0x1e3269['bn']['getPluralForm']=_0x4e6696;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bs.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bs':{'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{'bs':{'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':_0x548d74=>_0x548d74%0xa==0x1&&_0x548d74%0x64!=0xb?0x0:_0x548d74%0xa>=0x2&&_0x548d74%0xa<=0x4&&(_0x548d74%0x64<0xa||_0x548d74%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x19cc6f=>{const {bs:{dictionary:_0x38306b,getPluralForm:_0x2091ec}}={'bs':{'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':_0x8116b9=>_0x8116b9%0xa==0x1&&_0x8116b9%0x64!=0xb?0x0:_0x8116b9%0xa>=0x2&&_0x8116b9%0xa<=0x4&&(_0x8116b9%0x64<0xa||_0x8116b9%0x64>=0x14)?0x1:0x2}};_0x19cc6f['bs']||={'dictionary':{},'getPluralForm':null},_0x19cc6f['bs']['dictionary']=Object['assign'](_0x19cc6f['bs']['dictionary'],_0x38306b),_0x19cc6f['bs']['getPluralForm']=_0x2091ec;})(window['CKEDITOR_TRANSLATIONS']||={});
|