@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.9 → 46.0.2-alpha.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 _0x5a867f,Command as _0x4e6b30}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1089b9,IconGooglePhotos as _0x1200fd,IconGoogleDrive as _0x203dbb,IconFacebook as _0x495212,IconDropbox as _0x254532,IconUploadcareLink as _0x2baf72,IconUploadcareImageUpload as _0x4f56aa,IconError as _0x106d41,IconUploadcareImageEdit as _0xe3d6d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4201f6,MenuBarMenuListItemButtonView as _0x2c4311,View as _0x38c0d8,FocusCycler as _0x12d3f4,Dialog as _0x4322d9,DialogViewPosition as _0x227dad,SpinnerView as _0x6c0672,IconView as _0x69e4d6,Notification as _0x12e5a7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4a289d,DomEmitterMixin as _0x26086a,global as _0x15f0cb,getAncestors as _0x52ea0a,ObservableMixin as _0x43808e,uid as _0x5a80b4,createElement as _0x2a9c72}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2fa75a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x54735b,info as _0x2a2202}from'@uploadcare/upload-client';import*as _0x34771b from'@uploadcare/file-uploader';var i=function(_0x3fb4a3){return _0x3fb4a3['Local']='local',_0x3fb4a3['URL']='url',_0x3fb4a3['Dropbox']='dropbox',_0x3fb4a3['GDrive']='gdrive',_0x3fb4a3['Facebook']='facebook',_0x3fb4a3['GPhotos']='gphotos',_0x3fb4a3['OneDrive']='onedrive',_0x3fb4a3;}({});function _(_0x5985b4,_0x5c15a3,_0x3460a4){const t=_0x5985b4['t'],_0x360243=_0x5985b4['t'];switch(_0x5c15a3){case i['Local']:return{'text':_0x360243('Insert'===_0x3460a4?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x360243('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3460a4?_0x360243('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x360243('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3460a4?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3460a4?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3460a4?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3460a4?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3460a4?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5c15a3;}}class e extends _0x5a867f{['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 _0x225f79=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f69c5;for(const _0x42dc39 in _0x225f79){const _0xff9aab=_0x42dc39,_0x5958c3=_0x225f79[_0xff9aab];if('uploadcareLicenseKeyValid'==_0x5958c3||'uploadcareLicenseKeyInvalid'==_0x5958c3||'uploadcareLicenseKeyExpired'==_0x5958c3||'uploadcareLicenseKeyDomainLimit'==_0x5958c3||'uploadcareLicenseKeyNotAllowed'==_0x5958c3||'uploadcareLicenseKeyEvaluationLimit'==_0x5958c3||'uploadcareLicenseKeyTrialLimit'==_0x5958c3||'uploadcareLicenseKeyUsageLimit'==_0x5958c3){delete _0x225f79[_0xff9aab],_0x2f69c5=_0x5958c3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2f69c5&&_0x225f79['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2f69c5&&_0x225f79['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2f69c5&&_0x225f79['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2f69c5&&_0x225f79['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2f69c5&&_0x225f79['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2f69c5&&_0x225f79['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2f69c5&&_0x225f79['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4d6a5a}=this,_0x54aa79=_0x4d6a5a['commands']['get']('uploadcare');if(!_0x54aa79)return;const _0x2dac5e=this['_normalizeConfigSourceList'](_0x4d6a5a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x579729,_0x59ac1d)=>{const _0xfe99c=this['_getIntegrationKey'](_0x59ac1d['type']);return _0x579729[_0xfe99c]||(_0x579729[_0xfe99c]=[]),_0x579729[_0xfe99c]['push'](_0x59ac1d),_0x579729;},{});_0x4d6a5a['plugins']['has']('ImageInsertUI')&&_0x4d6a5a['commands']['get']('uploadcare')&&Object['entries'](_0x2dac5e)['forEach'](([_0x3b5894,_0x1f9a30])=>{_0x4d6a5a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3b5894,'observable':()=>_0x54aa79,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1f9a30),'formViewCreator':()=>this['_createDropdownButtons'](_0x1f9a30),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1f9a30),'override':'assetManager'!==_0x3b5894});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1c60fc){const {locale:_0xe331e2}=this['editor'];return _0x1c60fc['map'](_0x298014=>{const _0x458b1e=_(_0xe331e2,_0x298014,'Insert');switch(_0x298014){case i['Local']:return{'icon':_0x4f56aa,'type':i['Local'],..._0x458b1e};case i['URL']:return{'icon':_0x2baf72,'type':i['URL'],..._0x458b1e};case i['Dropbox']:return{'icon':_0x254532,'type':i['Dropbox'],..._0x458b1e};case i['Facebook']:return{'icon':_0x495212,'type':i['Facebook'],..._0x458b1e};case i['GDrive']:return{'icon':_0x203dbb,'type':i['GDrive'],..._0x458b1e};case i['GPhotos']:return{'icon':_0x1200fd,'type':i['GPhotos'],..._0x458b1e};case i['OneDrive']:return{'icon':_0x1089b9,'type':i['OneDrive'],..._0x458b1e};}});}['_getIntegrationKey'](_0xdbe070){switch(_0xdbe070){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1cfc39,_0x4e197d){const _0x287ccb=this['editor'],_0x276897=new _0x1cfc39(_0x287ccb['locale']),_0x40d776=_0x287ccb['commands']['get']('uploadcare');return _0x276897['bind']('isEnabled')['to'](_0x40d776),_0x276897['on']('execute',()=>{_0x40d776['execute'](_0x4e197d);}),_0x276897;}['_createToolbarButton'](_0x40f2cc){const {locale:_0x42ffb2}=this['editor'],_0x470e3a=this['editor']['plugins']['get']('ImageInsertUI'),_0x5b1550=_0x40f2cc[0x0],_0x47b1dd=this['_createButton'](_0x4201f6,_0x5b1550['type']);return _0x47b1dd['icon']=_0x5b1550['icon'],_0x47b1dd['bind']('label')['to'](_0x470e3a,'isImageSelected',_0x1e6dac=>_(_0x42ffb2,_0x5b1550['type'],_0x1e6dac?'Replace':'Insert')['text']),_0x47b1dd['tooltip']=!0x0,_0x47b1dd;}['_createDropdownButtons'](_0x305526){const {locale:_0x192d1d}=this['editor'],_0x2be53a=this['editor']['plugins']['get']('ImageInsertUI');return _0x305526['map'](_0x3f734e=>{const _0x177ca5=this['_createButton'](_0x4201f6,_0x3f734e['type']);return _0x177ca5['withText']=!0x0,_0x177ca5['icon']=_0x3f734e['icon'],_0x177ca5['bind']('label')['to'](_0x2be53a,'isImageSelected',_0x22ce4d=>_(_0x192d1d,_0x3f734e['type'],_0x22ce4d?'Replace':'Insert')['text']),_0x177ca5;});}['_createMenuBarButtons'](_0x31bc9f){return _0x31bc9f['map'](_0x5682e7=>{const _0x49467f=this['_createButton'](_0x2c4311,_0x5682e7['type']);return _0x49467f['icon']=_0x5682e7['icon'],_0x49467f['label']=_0x5682e7['shortText'],_0x49467f;});}}class F extends _0x38c0d8{['focusTracker'];['focusCycler'];constructor(_0x253985){super(_0x253985),this['focusTracker']=new _0x4a289d(),this['focusCycler']=new _0x12d3f4({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x86d220,_0x4f792f){super(_0x86d220),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-'+_0x4f792f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x4cbffc,_0x60a135){const _0x3dd232=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x32011b=>_0x32011b<=_0x60a135)['map'](_0x10a607=>_0x4cbffc['replace'](/\/$/,'')+'/-/resize/'+_0x10a607+'x/\x20'+_0x10a607+'w');return{'imageFallbackUrl':_0x4cbffc,'imageSources':[{'srcset':_0x3dd232['join'](',\x20'),'sizes':'(max-width:\x20'+_0x60a135+'px)\x20100vw,\x20'+_0x60a135+'px','type':'image/webp'}]};}function C(_0x3eab36,_0x3ea3fe,_0x22c503){const _0x53c55f=_0x3eab36['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x53c55f?parseInt(_0x53c55f[0x1],0xa):_0x3ea3fe,'height':_0x53c55f?parseInt(_0x53c55f[0x2],0xa):_0x22c503};}function p(_0x5bf828,_0x1a58c3){const _0x2bf445=new(_0x26086a())(),_0x19e30e=_0x5bf828['plugins']['get']('ImageUtils'),_0x3be76b=_0x5bf828['editing']['mapper']['toViewElement'](_0x1a58c3),_0x368c81=_0x19e30e['findViewImgElement'](_0x3be76b),_0x3785e2=_0x5bf828['editing']['view']['domConverter']['viewToDom'](_0x368c81),_0x5068be=_0x1a58c3['getAttribute']('width'),_0x28093c=_0x1a58c3['getAttribute']('height'),_0x2df15e='image-processing';_0x5bf828['editing']['view']['change'](_0x4a9629=>{_0x4a9629['addClass'](_0x2df15e,_0x3be76b),_0x4a9629['setStyle']('aspect-ratio',_0x5068be+'/'+_0x28093c,_0x368c81);}),_0x2bf445['listenTo'](_0x3785e2,'load',()=>{_0x2bf445['stopListening'](_0x3785e2,'load'),_0x5bf828['editing']['view']['change'](_0x5d9624=>{_0x5d9624['removeClass'](_0x2df15e,_0x3be76b),_0x5d9624['removeStyle']('aspect-ratio',_0x368c81);});});}function G(_0x4a411b){if(Array['isArray'](_0x4a411b)){const _0x58786a=_0x4a411b['map'](G);return _0x18f22e=>_0x58786a['some'](_0x47a7e5=>_0x47a7e5(_0x18f22e));}if('origin'==_0x4a411b){const _0x23cfaa=_0x15f0cb['window']['location']['origin'];return _0x5170c7=>new URL(_0x5170c7,_0x15f0cb['document']['baseURI'])['origin']==_0x23cfaa;}return'function'==typeof _0x4a411b?_0x4a411b:_0x4a411b instanceof RegExp?_0x40a6dc=>!(!_0x40a6dc['match'](_0x4a411b)&&!_0x40a6dc['replace'](/^https?:\/\//,'')['match'](_0x4a411b)):()=>!0x1;}function S(_0x5d3c27,_0x217a8d){return _0x52ea0a(_0x5d3c27['target'])['includes'](_0x217a8d);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x43808e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3e0c1d,_0x4e88f7,_0x3a0ab5){super(),this['_editor']=_0x3e0c1d,this['_editing']=_0x4e88f7,this['_dialog']=_0x3e0c1d['plugins']['get'](_0x4322d9),this['_api']=_0x4e88f7['ctxElement']['getAPI'](),this['_type']=_0x3a0ab5,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:_0x31cf00,model:_0x21330e}=this['_editor'],_0x8983ae=_0x21330e['document']['selection']['getSelectedElement'](),_0x9f344e=_0x8983ae&&(_0x8983ae['is']('element','imageBlock')||_0x8983ae['is']('element','imageInline'));this['_formView']=new x(_0x31cf00,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4f56aa,'title':_(_0x31cf00,this['_type'],_0x9f344e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x227dad['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x44f863=>!S(_0x44f863,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x33dfd3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x33003b=>{const _0x1c75fd=_0x33dfd3['length'];for(const _0x45d2b3 of _0x33dfd3){const _0x527c70=_0x45d2b3===_0x33dfd3[_0x1c75fd-0x1],{cdnUrl:_0x1c0cc9,fileInfo:_0x20234a}=_0x45d2b3;if(!_0x1c0cc9||!_0x20234a)continue;const {width:_0x4acd94,height:_0x1a9b0f}=_0x20234a['imageInfo'],_0x8129bc=C(_0x1c0cc9,_0x4acd94,_0x1a9b0f),_0xe30c5c=k(_0x1c0cc9,_0x8129bc['width']),_0x786324={'id':_0x20234a['uuid'],'type':'image','attributes':{'imageDimension':_0x8129bc,..._0xe30c5c}};this['_insertAsset'](_0x786324,_0x527c70,_0x33003b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x199d9f=>{'idle'===_0x199d9f['detail']['status']&&!_0x199d9f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xf1e3b8,_0x4d048e,_0x3a6b41){const _0x12fa3c=this['_editor']['model']['document']['selection'],_0x1772f2=_0x12fa3c['getSelectedElement'](),_0x269c9b=!(!_0x1772f2||!_0x1772f2['is']('element','imageInline'));_0x3a6b41['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xf1e3b8,_0x269c9b),_0x4d048e||_0x3a6b41['setSelection'](_0x12fa3c['getLastPosition']());}['_insertImage'](_0x3b9728,_0x534aa9){const _0x5ec15a=this['_editor'],{imageDimension:_0x431821,imageFallbackUrl:_0x4eb74a,imageSources:_0x12a2a8}=_0x3b9728['attributes'];_0x5ec15a['execute']('insertImage',{'imageType':_0x534aa9?'imageInline':null,'source':{'uploadcareImageId':_0x3b9728['id'],'src':_0x4eb74a,'sources':_0x12a2a8,..._0x431821}});}}class w extends _0x4e6b30{['_editing'];['_controller']=null;static get['requires'](){return[_0x4322d9,o];}constructor(_0xb14abc){super(_0xb14abc),this['_editing']=_0xb14abc['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1a67cd){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1a67cd);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x445f02,publicKey:_0x17e012,signal:_0x4216a9,onProgress:_0x58a66e}){return _0x54735b(_0x445f02,{'publicKey':_0x17e012,'store':'auto','signal':_0x4216a9,'onProgress':_0x58a66e});}static['getInfo'](_0x1935f7,_0x11c321){return _0x2a2202(_0x1935f7,_0x11c321);}}class f extends _0x5a867f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2fa75a,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x22ec58=this['editor'];if(!!!_0x22ec58['config']['get']('uploadcare'))return;_0x22ec58['plugins']['get'](_0x2fa75a)['createUploadAdapter']=_0x42210b=>new A(_0x42210b,_0x22ec58),_0x22ec58['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x77e7fd,{imageElement:_0x46eb1a,data:_0x56ae19})=>{_0x22ec58['model']['change'](_0x443e1a=>{_0x443e1a['setAttribute']('uploadcareImageId',_0x56ae19['uploadcareImageId'],_0x46eb1a);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xb63943,_0x512477){this['loader']=_0xb63943,this['editor']=_0x512477,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x18c24d=this['editor']['config']['get']('uploadcare.pubkey'),_0x3abc0a=await this['loader']['file'];return j['upload']({'file':_0x3abc0a,'publicKey':_0x18c24d,'signal':this['controller']['signal'],'onProgress':_0x176e94=>{_0x176e94&&_0x176e94['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x176e94['value']);}})['then'](async _0x5243f6=>{const {imageFallbackUrl:_0x36b440,imageSources:_0x340c67}=k(_0x5243f6['cdnUrl'],_0x5243f6['imageInfo']['width']);return{'uploadcareImageId':_0x5243f6['uuid'],'default':_0x36b440,'sources':_0x340c67};})['catch'](()=>{const _0x56be5f=t('Cannot\x20upload\x20file:')+('\x20'+_0x3abc0a['name']+'.');return Promise['reject'](_0x56be5f);});}['abort'](){this['controller']['abort']();}}class o extends _0x5a867f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4322d9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x56a54a){super(_0x56a54a),this['ucContextId']=_0x5a80b4();}['init'](){const _0x54bd38=this['editor'];_0x54bd38['commands']['add']('uploadcare',new w(_0x54bd38));}['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 _0x24cc25=_0x15f0cb['document']['querySelector']('input[uploadcare-file-input]');_0x24cc25&&_0x24cc25['remove']();}),async function(_0x55ab91){const _0x50c2ee=_0xcb63f6([0x76,0x6e,0x37,0x67,0x45,0x4c,0x6c,0x52,0x6f,0x50,0x4e,0x51,0x4f,0x56,0x64,0x68,0x55,0x78,0x74,0x66,0x44,0x62,0x54,0x75,0x49,0x47,0x4b,0x6a,0x53,0x42,0x31,0x30,0x5a,0x6d,0x46,0x69,0x4a,0x48,0x39,0x72,0x63,0x33,0x70,0x36,0x61,0x58,0x71,0x79,0x77,0x4d,0x32,0x7a,0x57,0x41,0x59,0x6b,0x35,0x73,0x65,0x43,0x34,0x38]),_0x4556f7=0x1bf295e6,_0xdb009=0x1bf5fa2e^_0x4556f7,_0xc84617=window[_0xcb63f6([0x44,0x61,0x74,0x65])][_0xcb63f6([0x6e,0x6f,0x77])](),_0x297d56=_0x55ab91[_0xcb63f6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ef939=new window[(_0xcb63f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x218f0c=>{_0x297d56[_0xcb63f6([0x6f,0x6e,0x63,0x65])](_0xcb63f6([0x72,0x65,0x61,0x64,0x79]),_0x218f0c);}),_0x35661b={[_0xcb63f6([0x6b,0x74,0x79])]:_0xcb63f6([0x45,0x43]),[_0xcb63f6([0x75,0x73,0x65])]:_0xcb63f6([0x73,0x69,0x67]),[_0xcb63f6([0x63,0x72,0x76])]:_0xcb63f6([0x50,0x2d,0x32,0x35,0x36]),[_0xcb63f6([0x78])]:_0xcb63f6([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]),[_0xcb63f6([0x79])]:_0xcb63f6([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]),[_0xcb63f6([0x61,0x6c,0x67])]:_0xcb63f6([0x45,0x53,0x32,0x35,0x36])},_0x1eab36=_0x297d56[_0xcb63f6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xcb63f6([0x67,0x65,0x74])](_0xcb63f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe453ab(){let _0x4428a6,_0x30195d=null,_0x427e96=null;try{if(_0x1eab36==_0xcb63f6([0x47,0x50,0x4c]))return _0xcb63f6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4428a6=_0x3a4112(),!_0x4428a6)return _0xcb63f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4428a6[_0xcb63f6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x427e96=_0x504d37(_0x4428a6[_0xcb63f6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4428a6[_0xcb63f6([0x6a,0x74,0x69])])),await _0x3efdbe()?_0x2f6454()?_0xb245c()?_0xcb63f6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x304366()?(_0x4428a6[_0xcb63f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xcb63f6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30195d=_0x4c8da0(_0xcb63f6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4428a6[_0xcb63f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xcb63f6([0x74,0x72,0x69,0x61,0x6c])&&(_0x30195d=_0x4c8da0(_0xcb63f6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59a9b2()):_0xcb63f6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xcb63f6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xcb63f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xcb63f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb245c(){const _0x29b6db=[_0xcb63f6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xcb63f6([0x74,0x72,0x69,0x61,0x6c])][_0xcb63f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4428a6[_0xcb63f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc84617/0x3e8:0xe10*_0xdb009;return _0x4428a6[_0xcb63f6([0x65,0x78,0x70])]<_0x29b6db;}function _0x2f6454(){const _0x3c1a18=_0x4428a6[_0xcb63f6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c1a18&&(!!_0x3c1a18[_0xcb63f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcb63f6([0x2a]))||!!_0x3c1a18[_0xcb63f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcb63f6([0x55,0x50,0x4c,0x43])));}function _0x304366(){const _0x22b33b=_0x4428a6[_0xcb63f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x22b33b||0x0==_0x22b33b[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30c9f2}=new URL(window[_0xcb63f6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x22b33b[_0xcb63f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30c9f2))return!0x0;const _0x1849b9=_0x30c9f2[_0xcb63f6([0x73,0x70,0x6c,0x69,0x74])](_0xcb63f6([0x2e]));return _0x22b33b[_0xcb63f6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a71a8=>_0x3a71a8[_0xcb63f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcb63f6([0x2a])))[_0xcb63f6([0x6d,0x61,0x70])](_0x4ac9af=>_0x4ac9af[_0xcb63f6([0x73,0x70,0x6c,0x69,0x74])](_0xcb63f6([0x2e])))[_0xcb63f6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x69d9c1=>_0x69d9c1[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1849b9[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xcb63f6([0x6d,0x61,0x70])](_0x3f55e2=>Array(_0x1849b9[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3f55e2[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xcb63f6([0x66,0x69,0x6c,0x6c])](_0x3f55e2[0x0]===_0xcb63f6([0x2a])?_0xcb63f6([0x2a]):'')[_0xcb63f6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3f55e2))[_0xcb63f6([0x73,0x6f,0x6d,0x65])](_0x5dcf7f=>_0x1849b9[_0xcb63f6([0x65,0x76,0x65,0x72,0x79])]((_0x5e664e,_0x548e7d)=>_0x5dcf7f[_0x548e7d]===_0x5e664e||_0x5dcf7f[_0x548e7d]===_0xcb63f6([0x2a])));}function _0x59a9b2(){return _0x30195d&&_0x427e96?new window[(_0xcb63f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x365002,_0x3fc79b)=>{_0x30195d[_0xcb63f6([0x74,0x68,0x65,0x6e])](_0x365002,_0x3fc79b),_0x427e96[_0xcb63f6([0x74,0x68,0x65,0x6e])](_0x1a7417=>{_0x1a7417!=_0xcb63f6([0x56,0x61,0x6c,0x69,0x64])&&_0x365002(_0x1a7417);},_0x3fc79b);}):_0x30195d||_0x427e96||_0xcb63f6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x504d37(_0x48068c,_0xbb4cad){return new window[(_0xcb63f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x75daec=>{if(_0x4ac681())return _0x75daec(_0xcb63f6([0x56,0x61,0x6c,0x69,0x64]));_0x3d186a(),_0x297d56[_0xcb63f6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xcb63f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xdc37be=!0x1;const _0xb2cde9=_0x5a80b4();function _0x2388c9(_0x5ce768){return!!_0x5ce768&&(typeof _0x5ce768===_0xcb63f6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ce768===_0xcb63f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ce768[_0xcb63f6([0x74,0x68,0x65,0x6e])]===_0xcb63f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ce768[_0xcb63f6([0x63,0x61,0x74,0x63,0x68])]===_0xcb63f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x245872(_0x5c1c69){_0x181ab2(_0x5c1c69)[_0xcb63f6([0x74,0x68,0x65,0x6e])](_0xf985b6=>{if(!_0xf985b6||_0xf985b6[_0xcb63f6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xcb63f6([0x6f,0x6b]))return _0xcb63f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x93b6c0(_0x5e6b3e(_0xb2cde9+_0xbb4cad))!=_0xf985b6[_0xcb63f6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xcb63f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xcb63f6([0x56,0x61,0x6c,0x69,0x64]);})[_0xcb63f6([0x74,0x68,0x65,0x6e])](_0x5e2df7=>(_0x5545ac(),_0x5e2df7),()=>{const _0x477a5f=_0x87ac0();return null==_0x477a5f?(_0x5545ac(),_0xcb63f6([0x56,0x61,0x6c,0x69,0x64])):_0xcb63f6(_0xc84617-_0x477a5f>(0x3ffe11e6^_0x4556f7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xcb63f6([0x74,0x68,0x65,0x6e])](_0x75daec)[_0xcb63f6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x75daec(_0xcb63f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x51f6ff=0x1bc47b66^_0x4556f7;function _0x5545ac(){const _0x36eb07=_0xcb63f6([0x6c,0x6c,0x63,0x74,0x2d])+_0x93b6c0(_0x5e6b3e(_0x48068c)),_0x269a5e=_0x3f006a(_0x93b6c0(window[_0xcb63f6([0x4d,0x61,0x74,0x68])][_0xcb63f6([0x63,0x65,0x69,0x6c])](_0xc84617/_0x51f6ff)));window[_0xcb63f6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xcb63f6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36eb07,_0x269a5e);}function _0x87ac0(){const _0x2f4c9a=_0xcb63f6([0x6c,0x6c,0x63,0x74,0x2d])+_0x93b6c0(_0x5e6b3e(_0x48068c)),_0x25fde0=window[_0xcb63f6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xcb63f6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f4c9a);return _0x25fde0?window[_0xcb63f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f006a(_0x25fde0),0x10)*_0x51f6ff:null;}function _0x181ab2(_0x39cce4){return new window[(_0xcb63f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x445978,_0x393966)=>{_0x39cce4[_0xcb63f6([0x74,0x68,0x65,0x6e])](_0x445978,_0x393966),window[_0xcb63f6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x393966,0x1bf34126^_0x4556f7);});}}_0x297d56[_0xcb63f6([0x6f,0x6e])](_0xcb63f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xba4f0f,_0x36e7f2)=>{if(_0x36e7f2[0x0]!=_0x48068c)return _0x75daec(_0xcb63f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36e7f2[0x1]={..._0x36e7f2[0x1],[_0xcb63f6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb2cde9};},{[_0xcb63f6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xcb63f6([0x68,0x69,0x67,0x68])}),_0x297d56[_0xcb63f6([0x6f,0x6e])](_0xcb63f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2369fb=>{_0x2388c9(_0x2369fb[_0xcb63f6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xdc37be=!0x0,_0x245872(_0x2369fb[_0xcb63f6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xcb63f6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xcb63f6([0x6c,0x6f,0x77])}),_0x3ef939[_0xcb63f6([0x74,0x68,0x65,0x6e])](()=>{_0xdc37be||_0x75daec(_0xcb63f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ac681(){return _0x297d56[_0xcb63f6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xcb63f6([0x76,0x69,0x65,0x77])][_0xcb63f6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xcb63f6([0x61,0x75,0x74,0x6f]);}function _0x3d186a(){_0x297d56[_0xcb63f6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xcb63f6([0x76,0x69,0x65,0x77])][_0xcb63f6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xcb63f6([0x61,0x75,0x74,0x6f]);}}function _0x4c8da0(_0x1fb358){const _0x25967c=[new window[(_0xcb63f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37b97e=>setTimeout(_0x37b97e,0x1bfbab2a^_0x4556f7)),_0x3ef939[_0xcb63f6([0x74,0x68,0x65,0x6e])](()=>new window[(_0xcb63f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38540d=>{let _0x5ecea3=0x0;_0x297d56[_0xcb63f6([0x6d,0x6f,0x64,0x65,0x6c])][_0xcb63f6([0x6f,0x6e])](_0xcb63f6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c3238,_0x394967)=>{_0x394967[0x0][_0xcb63f6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5ecea3++,_0x5ecea3==(0x1bf2941e^_0x4556f7)&&(_0x38540d(),_0x2c3238[_0xcb63f6([0x6f,0x66,0x66])]());});}))];return window[_0xcb63f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xcb63f6([0x72,0x61,0x63,0x65])](_0x25967c)[_0xcb63f6([0x74,0x68,0x65,0x6e])](()=>_0x1fb358);}async function _0x3e5def(){await _0x3ef939,_0x297d56[_0xcb63f6([0x6d,0x6f,0x64,0x65,0x6c])][_0xcb63f6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x44daba,_0x297d56[_0xcb63f6([0x6d,0x6f,0x64,0x65,0x6c])][_0xcb63f6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x44daba,_0x297d56[_0xcb63f6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xcb63f6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x339c43(_0x11f129){const _0x1ba690=_0x4d5702();_0x297d56[_0x1ba690]=_0xcb63f6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11f129,_0x11f129!=_0xcb63f6([0x56,0x61,0x6c,0x69,0x64])&&_0x3e5def();}function _0x4d5702(){const _0xfd4c2b=window[_0xcb63f6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xcb63f6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xcb63f6([0x6e,0x6f,0x77])]())[_0xcb63f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xcb63f6([0x2e]),'');let _0x4b6899=_0xcb63f6([0x76]);for(let _0x2d3d89=0x0;_0x2d3d89<_0xfd4c2b[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d3d89+=0x2){let _0x4cd5cf=window[_0xcb63f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfd4c2b[_0xcb63f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d3d89,_0x2d3d89+0x2));_0x4cd5cf>=_0x50c2ee[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4cd5cf-=_0x50c2ee[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b6899+=_0x50c2ee[_0x4cd5cf];}return _0x4b6899;}function _0x3a4112(){const _0x5b0451=_0x1eab36[_0xcb63f6([0x73,0x70,0x6c,0x69,0x74])](_0xcb63f6([0x2e]));if(0x3!=_0x5b0451[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a2604(_0x5b0451[0x1]);function _0x2a2604(_0x189a70){const _0x3064f8=_0x7b0278(_0x189a70);return _0x3064f8&&_0x249a91()?_0x3064f8:null;function _0x249a91(){const _0x291471=_0x3064f8[_0xcb63f6([0x6a,0x74,0x69])],_0x5493f4=window[_0xcb63f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x291471[_0xcb63f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x291471[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1f53de={..._0x3064f8,[_0xcb63f6([0x6a,0x74,0x69])]:_0x291471[_0xcb63f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x291471[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1f53de[_0xcb63f6([0x76,0x63])],_0x5e6b3e(_0x1f53de)==_0x5493f4;}}}async function _0x3efdbe(){let _0x3786e4=!0x0;try{const _0x281c4c=_0x1eab36[_0xcb63f6([0x73,0x70,0x6c,0x69,0x74])](_0xcb63f6([0x2e])),[_0x4db476,_0xe1b48d,_0xe98dbd]=_0x281c4c;return _0xbaad5f(_0x4db476),await _0x474610(_0x4db476,_0xe1b48d,_0xe98dbd),_0x3786e4;}catch{return!0x1;}function _0xbaad5f(_0x27a8a0){const _0x218b3b=_0x7b0278(_0x27a8a0);_0x218b3b&&_0x218b3b[_0xcb63f6([0x61,0x6c,0x67])]==_0xcb63f6([0x45,0x53,0x32,0x35,0x36])||(_0x3786e4=!0x1);}async function _0x474610(_0x5c185a,_0x2456c7,_0x1d8260){const _0x438c7b=window[_0xcb63f6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xcb63f6([0x66,0x72,0x6f,0x6d])](_0x46fd8d(_0x1d8260),_0x3c840c=>_0x3c840c[_0xcb63f6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x491d93=new window[(_0xcb63f6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xcb63f6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c185a+_0xcb63f6([0x2e])+_0x2456c7),_0xe35037=window[_0xcb63f6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xcb63f6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe35037)return;const _0x34375d=await _0xe35037[_0xcb63f6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xcb63f6([0x6a,0x77,0x6b]),_0x35661b,{[_0xcb63f6([0x6e,0x61,0x6d,0x65])]:_0xcb63f6([0x45,0x43,0x44,0x53,0x41]),[_0xcb63f6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xcb63f6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xcb63f6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe35037[_0xcb63f6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xcb63f6([0x6e,0x61,0x6d,0x65])]:_0xcb63f6([0x45,0x43,0x44,0x53,0x41]),[_0xcb63f6([0x68,0x61,0x73,0x68])]:{[_0xcb63f6([0x6e,0x61,0x6d,0x65])]:_0xcb63f6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34375d,_0x438c7b,_0x491d93)||(_0x3786e4=!0x1);}}function _0x7b0278(_0x59a71b){return _0x59a71b[_0xcb63f6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xcb63f6([0x65,0x79]))?JSON[_0xcb63f6([0x70,0x61,0x72,0x73,0x65])](_0x46fd8d(_0x59a71b)):null;}function _0x46fd8d(_0x32fc7b){return window[_0xcb63f6([0x61,0x74,0x6f,0x62])](_0x32fc7b[_0xcb63f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xcb63f6([0x2b]))[_0xcb63f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xcb63f6([0x2f])));}function _0x5e6b3e(_0xe74207){let _0x85b0e9=0x1505;function _0x23076b(_0x320f26){for(let _0x693791=0x0;_0x693791<_0x320f26[_0xcb63f6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x693791++){const _0x51f9c4=_0x320f26[_0xcb63f6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x693791);_0x85b0e9=(_0x85b0e9<<0x5)+_0x85b0e9+_0x51f9c4,_0x85b0e9&=_0x85b0e9;}}function _0xa1ec84(_0x5b98fa){Array[_0xcb63f6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b98fa)?_0x5b98fa[_0xcb63f6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa1ec84):_0x5b98fa&&typeof _0x5b98fa==_0xcb63f6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xcb63f6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b98fa)[_0xcb63f6([0x73,0x6f,0x72,0x74])]()[_0xcb63f6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2897cd,_0x144a65])=>{_0x23076b(_0x2897cd),_0xa1ec84(_0x144a65);}):_0x23076b(window[_0xcb63f6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b98fa));}return _0xa1ec84(_0xe74207),_0x85b0e9>>>0x0;}function _0x93b6c0(_0x20b5ed){return _0x20b5ed[_0xcb63f6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xcb63f6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xcb63f6([0x30]));}function _0x3f006a(_0x3cb87b){return _0x3cb87b[_0xcb63f6([0x73,0x70,0x6c,0x69,0x74])]('')[_0xcb63f6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xcb63f6([0x6a,0x6f,0x69,0x6e])]('');}function _0x44daba(){}function _0xcb63f6(_0x164a6b){return _0x164a6b['map'](_0x26597d=>String['fromCharCode'](_0x26597d))['join']('');}_0x339c43(await _0xe453ab());}(this);}['_initSchema'](){const _0x3d4d6d=this['editor']['model']['schema'];_0x3d4d6d['isRegistered']('imageBlock')&&_0x3d4d6d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3d4d6d['isRegistered']('imageInline')&&_0x3d4d6d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x48ec85=this['editor'];_0x48ec85['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x48ec85['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5daf5e=>_0x5daf5e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x411c64=_0x48ec85['commands']['get']('replaceImageSource');_0x411c64&&this['listenTo'](_0x411c64,'cleanupImage',(_0x58fd81,[_0xf822ed,_0x420f65])=>{_0xf822ed['removeAttribute']('uploadcareImageId',_0x420f65);});}['_initConfig'](){const _0x42646c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5f0020=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2a9c72(_0x15f0cb['document'],'uc-config',{..._0x42646c,'pubkey':_0x5f0020,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4e4f0f=>{if('closeMax'==_0x4e4f0f)return'#uc-icon-arrow-down';},_0x15f0cb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2a9c72(_0x15f0cb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x15f0cb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xc300db=this['editor']['commands']['get']('insertImage');_0xc300db&&this['listenTo'](_0xc300db,'execute',()=>{const _0x140e8b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x140e8b&&_0x140e8b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x140e8b);});});const _0x1a26f4=this['editor']['commands']['get']('uploadcareImageReplace');_0x1a26f4&&this['listenTo'](_0x1a26f4,'execute',()=>{const _0x59bbce=this['editor']['model']['document']['selection']['getSelectedElement']();_0x59bbce&&_0x59bbce['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x59bbce);});});}}class tt extends _0x5a867f{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x567e15){super(_0x567e15),_0x567e15['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x34771b['defineComponents'](_0x34771b);}}class ii extends _0x38c0d8{constructor(_0x513ac7){super(_0x513ac7);const t=_0x513ac7['t'],_0x1cbd7e=this['bindTemplate'],_0x542915=new _0x6c0672();_0x542915['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':[_0x542915,{'text':_0x1cbd7e['to']('imageUploadProgress',_0x567ac8=>t('Loading\x20image...')+'\x20('+(_0x567ac8||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x38c0d8{constructor(_0x30bdd4){super(_0x30bdd4);const t=_0x30bdd4['t'];this['set']('errorType',null);const _0x38052d=new _0x4201f6(_0x30bdd4);_0x38052d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x38052d['withText']=!0x0,_0x38052d['class']='ck-button-action',_0x38052d['on']('execute',()=>{this['fire']('retry');}),_0x38052d['bind']('isVisible')['to'](this,'errorType',_0x44658a=>'NotFound'!==_0x44658a);const _0x2d8db1=new _0x69e4d6();_0x2d8db1['content']=_0x106d41,_0x2d8db1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x114a98=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':[_0x2d8db1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x114a98['to']('errorType',_0x278bda=>t('NotFound'!==_0x278bda?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x38052d]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x38c0d8{constructor(_0x3da336,_0x4edcd3){super(_0x3da336);const _0x2cb36d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4edcd3,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2cb36d['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5b0258,_0x320554,_0x364c85){super(_0x5b0258),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5b0258),this['_errorView']=new ti(_0x5b0258),this['_editingView']=new ei(_0x5b0258,_0x364c85),this['_focusableView']=new _0x38c0d8(_0x5b0258),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x320554),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'],_0x664a6f=>{this['_addUploadcareImageEditorListeners'](_0x664a6f);});}),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'](_0x831f72,_0x32c431){const _0x3fcc85='uc-cloud-image-editor',_0x559c2a=_0x831f72['querySelector'](_0x3fcc85);if(_0x559c2a)return _0x32c431(_0x559c2a);const _0x48b9a9=new MutationObserver(_0x2d6fd8=>{const _0xf2faeb=_0x2d6fd8['filter'](_0x46e4c8=>_0x46e4c8['target']===_0x831f72&&_0x46e4c8['addedNodes']['length']>0x0&&_0x46e4c8['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3fcc85);_0xf2faeb['length']&&(_0x48b9a9['disconnect'](),_0x32c431(_0xf2faeb[0x0]['addedNodes'][0x0]));});_0x48b9a9['observe'](_0x831f72,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x51c962){_0x51c962['addEventListener']('apply',_0x42f4f7=>{this['fire']('apply',{'imageSrc':_0x42f4f7['detail']['cdnUrl']});}),_0x51c962['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x43808e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x453f3b,_0x1deb28,_0x43a6dd){super(),this['_editor']=_0x453f3b,this['_dialog']=_0x1deb28,this['_imageElement']=_0x43a6dd,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 _0x353860=this['_imageElement'],_0x26a5f4=_0x353860['getAttribute']('uploadcareImageId'),_0x276813=_0x353860['getAttribute']('src');if(_0x26a5f4)await this['_loadImageInfo'](_0x26a5f4,_0x276813);else{if(this['_imageCache']['has'](_0x276813)){const _0x4abd5e=this['_imageCache']['get'](_0x276813);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4abd5e['url'],this['imageDimension']=_0x4abd5e['dimension'],this['imageId']=_0x4abd5e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x8310e1}=this['_editor'],t=_0x8310e1['t'],_0x45603f=new X(_0x8310e1,this['imageStatus'],this['_attributes']);_0x45603f['bind']('status')['to'](this,'imageStatus'),_0x45603f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x45603f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x45603f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x45603f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xe3d6d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x45603f,'position':_0x227dad['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x45603f['focus']();},'onHide':()=>{_0x45603f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f3345=>!S(_0x3f3345,_0x45603f['element'])}});}['_loadImageInfo'](_0x6d70c6,_0x577dd1){return j['getInfo'](_0x6d70c6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x8f3015=>{const {width:_0xf68b7d,height:_0x5aa9b1}=_0x8f3015['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x577dd1,this['imageDimension']={'width':_0xf68b7d,'height':_0x5aa9b1},this['imageId']=_0x6d70c6;})['catch'](_0x453e66=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x453e66['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xf21426,_0x319a59){return this['_getImageAsFile'](_0xf21426)['then'](_0x4fbe11=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x319a59['signal'],'file':_0x4fbe11,'onProgress':_0x2b8465=>{_0x2b8465&&_0x2b8465['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2b8465['value']));}}))['then'](_0x549c54=>{const {width:_0x1e30d6,height:_0x39e7ff}=_0x549c54['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x549c54['cdnUrl'],this['imageDimension']={'width':_0x1e30d6,'height':_0x39e7ff},this['imageId']=_0x549c54['uuid'],this['imageUploadProgress']=null;const _0x9d8da0=_0xf21426['getAttribute']('src');this['_imageCache']['set'](_0x9d8da0,{'id':_0x549c54['uuid'],'url':_0x549c54['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x43df74=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x43df74['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x407fde,_0x2ca9a3){_0x407fde['on']('apply',(_0x1102fc,_0xda20ae)=>{this['_replaceImage'](_0x2ca9a3,_0xda20ae['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x407fde['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x407fde['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2e535b,_0x13a69b,_0x2e14bd){const _0x56ca2c=this['_editor'],{width:_0x5ebe82,height:_0x1b970c}=C(_0x13a69b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x37a772,imageSources:_0x4e3d31}=k(_0x13a69b,_0x5ebe82);_0x56ca2c['model']['change'](_0x1bae5f=>{if('$graveyard'===_0x2e535b['root']['rootName']){_0x56ca2c['execute']('insertImage',{'imageType':_0x2e535b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2e535b['getAttributes']()),'uploadcareImageId':_0x2e14bd,'src':_0x37a772,'sources':_0x4e3d31,'width':_0x5ebe82,'height':_0x1b970c}});const _0x5b53ad=_0x2e535b['getChildren']();_0x2e535b=_0x56ca2c['model']['document']['selection']['getSelectedElement']();for(const _0xc1fd20 of _0x5b53ad)_0x1bae5f['append'](_0x1bae5f['cloneElement'](_0xc1fd20),_0x2e535b);}else _0x1bae5f['setSelection'](_0x2e535b,'on'),_0x56ca2c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2e535b['getAttributes']()),'uploadcareImageId':_0x2e14bd,'src':_0x37a772,'sources':_0x4e3d31,'width':_0x5ebe82,'height':_0x1b970c},_0x2e535b);_0x1bae5f['setSelection'](_0x2e535b,'on');});}async['_getImageAsFile'](_0x2dfb02){const _0x54a380=_0x15f0cb['window'],_0x4648bf=_0x15f0cb['document']['location']['href'],_0x4d953e=new _0x54a380['URL'](_0x2dfb02['getAttribute']('src'),_0x4648bf);if('data:'===_0x4d953e['protocol']){const _0x4d2105=_0x4d953e['href']['split'](','),_0x22a7a9=_0x4d2105[0x0]['match'](/:(.*?);/)[0x1],_0x46aa3d=_0x22a7a9['split']('/')[0x1],_0x54de08=_0x54a380['atob'](_0x4d2105[_0x4d2105['length']-0x1]);let _0x317c5e=_0x54de08['length'];const _0x191614=new _0x54a380['Uint8Array'](_0x317c5e);for(;_0x317c5e--;)_0x191614[_0x317c5e]=_0x54de08['charCodeAt'](_0x317c5e);return new _0x54a380['File']([_0x191614],'image.'+_0x46aa3d,{'type':_0x22a7a9});}const _0x322aa5=_0x4d953e['href']['split']('/'),_0x3bb6a6=_0x322aa5[_0x322aa5['length']-0x1],_0xc23fbb=_0x3bb6a6['split']('.')[0x1];return _0x54a380['fetch'](_0x4d953e['href'])['then'](_0x56588e=>_0x56588e['clone']()['blob']())['then'](_0x1cd8ed=>new _0x54a380['File']([_0x1cd8ed],_0x3bb6a6,{'type':'image/'+_0xc23fbb}));}}class O extends _0x4e6b30{['imageEditController'];static get['requires'](){return[_0x4322d9];}['_isEditable'];constructor(_0x2d13c0){super(_0x2d13c0),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x415101){const _0x527254=G(_0x415101);return _0x40c517=>!(!_0x40c517||!_0x40c517['is']('element','imageBlock')&&!_0x40c517['is']('element','imageInline'))&&(!!_0x40c517['hasAttribute']('uploadcareImageId')||!!_0x40c517['hasAttribute']('src')&&_0x527254(_0x40c517['getAttribute']('src')));}(_0x2d13c0['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1ebdd1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1ebdd1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x404d5f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x404d5f&&(_0x404d5f['is']('element','imageBlock')||_0x404d5f['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4322d9),_0x404d5f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4e6b30{['refresh'](){const _0x5bdd18=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5bdd18&&(_0x5bdd18['is']('element','imageBlock')||_0x5bdd18['is']('element','imageInline')));}['execute'](_0x37519e){const _0x3270fa=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x45702c=>{_0x45702c['setAttributes'](_0x37519e,_0x3270fa),_0x45702c['removeAttribute']('srcset',_0x3270fa),_0x45702c['removeAttribute']('sizes',_0x3270fa);});}}class m extends _0x5a867f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x12e5a7,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2abb5f}=this;_0x2abb5f['commands']['add']('uploadcareImageEdit',new O(_0x2abb5f)),_0x2abb5f['commands']['add']('uploadcareImageReplace',new R(_0x2abb5f));}}class g extends _0x5a867f{['_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 _0xbde5c1=this['editor'];_0xbde5c1['ui']['componentFactory']['add']('uploadcareImageEdit',_0xeaa1a9=>{const _0x590d94=_0xbde5c1['commands']['get']('uploadcareImageEdit'),_0x989400=new _0x4201f6(_0xeaa1a9),t=_0xeaa1a9['t'];return _0x989400['set']({'icon':_0xe3d6d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x989400['bind']('isEnabled')['to'](_0x590d94),_0x989400['bind']('isOn')['to'](_0x590d94,'isActive'),this['listenTo'](_0x989400,'execute',()=>{_0xbde5c1['execute']('uploadcareImageEdit'),_0xbde5c1['editing']['view']['focus']();}),_0x989400;}),this['_initConfig']();}['_initConfig'](){const _0x143e44=_0x2a9c72(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x143e44),this['listenTo'](this['editor'],'destroy',()=>{_0x143e44['remove']();});}}class et extends _0x5a867f{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x49377c,Command as _0x3d0609}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4b3934,IconGooglePhotos as _0x3c1ec3,IconGoogleDrive as _0x207c5,IconFacebook as _0x36433f,IconDropbox as _0x42bb12,IconUploadcareLink as _0x41c33e,IconUploadcareImageUpload as _0x5be299,IconError as _0x574142,IconUploadcareImageEdit as _0x1d3ff5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2947cf,MenuBarMenuListItemButtonView as _0x3fd615,View as _0x304f7f,FocusCycler as _0x22a07d,Dialog as _0x4f6b69,DialogViewPosition as _0x44fefd,SpinnerView as _0x5184b6,IconView as _0x491cc8,Notification as _0x2a89ff}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4bbc91,DomEmitterMixin as _0x1df946,global as _0x2421aa,getAncestors as _0x5ba3d4,ObservableMixin as _0x2ad12d,uid as _0x3333fb,createElement as _0x54e38b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3e360e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3769c9,info as _0x2c51fa}from'@uploadcare/upload-client';import*as _0x50d6d7 from'@uploadcare/file-uploader';var i=function(_0x24de86){return _0x24de86['Local']='local',_0x24de86['URL']='url',_0x24de86['Dropbox']='dropbox',_0x24de86['GDrive']='gdrive',_0x24de86['Facebook']='facebook',_0x24de86['GPhotos']='gphotos',_0x24de86['OneDrive']='onedrive',_0x24de86;}({});function _(_0x1f1017,_0x39cb87,_0x4347fa){const t=_0x1f1017['t'],_0x4d91e8=_0x1f1017['t'];switch(_0x39cb87){case i['Local']:return{'text':_0x4d91e8('Insert'===_0x4347fa?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4d91e8('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4347fa?_0x4d91e8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4d91e8('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4347fa?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4347fa?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4347fa?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4347fa?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4347fa?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x39cb87;}}class e extends _0x49377c{['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 _0x15cf0e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x24e097;for(const _0x1d2da8 in _0x15cf0e){const _0x47c11e=_0x1d2da8,_0x2e812d=_0x15cf0e[_0x47c11e];if('uploadcareLicenseKeyValid'==_0x2e812d||'uploadcareLicenseKeyInvalid'==_0x2e812d||'uploadcareLicenseKeyExpired'==_0x2e812d||'uploadcareLicenseKeyDomainLimit'==_0x2e812d||'uploadcareLicenseKeyNotAllowed'==_0x2e812d||'uploadcareLicenseKeyEvaluationLimit'==_0x2e812d||'uploadcareLicenseKeyTrialLimit'==_0x2e812d||'uploadcareLicenseKeyUsageLimit'==_0x2e812d){delete _0x15cf0e[_0x47c11e],_0x24e097=_0x2e812d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x24e097&&_0x15cf0e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x24e097&&_0x15cf0e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x24e097&&_0x15cf0e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x24e097&&_0x15cf0e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x24e097&&_0x15cf0e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x24e097&&_0x15cf0e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x24e097&&_0x15cf0e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3c1a29}=this,_0x44dd35=_0x3c1a29['commands']['get']('uploadcare');if(!_0x44dd35)return;const _0x5bb4da=this['_normalizeConfigSourceList'](_0x3c1a29['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x17e2fd,_0x5f5138)=>{const _0x54acc4=this['_getIntegrationKey'](_0x5f5138['type']);return _0x17e2fd[_0x54acc4]||(_0x17e2fd[_0x54acc4]=[]),_0x17e2fd[_0x54acc4]['push'](_0x5f5138),_0x17e2fd;},{});_0x3c1a29['plugins']['has']('ImageInsertUI')&&_0x3c1a29['commands']['get']('uploadcare')&&Object['entries'](_0x5bb4da)['forEach'](([_0x1c82f0,_0x549579])=>{_0x3c1a29['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1c82f0,'observable':()=>_0x44dd35,'buttonViewCreator':()=>this['_createToolbarButton'](_0x549579),'formViewCreator':()=>this['_createDropdownButtons'](_0x549579),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x549579),'override':'assetManager'!==_0x1c82f0});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5937e2){const {locale:_0x3d6966}=this['editor'];return _0x5937e2['map'](_0x489f9d=>{const _0x2f63f3=_(_0x3d6966,_0x489f9d,'Insert');switch(_0x489f9d){case i['Local']:return{'icon':_0x5be299,'type':i['Local'],..._0x2f63f3};case i['URL']:return{'icon':_0x41c33e,'type':i['URL'],..._0x2f63f3};case i['Dropbox']:return{'icon':_0x42bb12,'type':i['Dropbox'],..._0x2f63f3};case i['Facebook']:return{'icon':_0x36433f,'type':i['Facebook'],..._0x2f63f3};case i['GDrive']:return{'icon':_0x207c5,'type':i['GDrive'],..._0x2f63f3};case i['GPhotos']:return{'icon':_0x3c1ec3,'type':i['GPhotos'],..._0x2f63f3};case i['OneDrive']:return{'icon':_0x4b3934,'type':i['OneDrive'],..._0x2f63f3};}});}['_getIntegrationKey'](_0x178893){switch(_0x178893){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x472927,_0xad0a49){const _0x4c495a=this['editor'],_0x1974ff=new _0x472927(_0x4c495a['locale']),_0x4437f8=_0x4c495a['commands']['get']('uploadcare');return _0x1974ff['bind']('isEnabled')['to'](_0x4437f8),_0x1974ff['on']('execute',()=>{_0x4437f8['execute'](_0xad0a49);}),_0x1974ff;}['_createToolbarButton'](_0x537cdb){const {locale:_0x468b6f}=this['editor'],_0x51b19b=this['editor']['plugins']['get']('ImageInsertUI'),_0x404819=_0x537cdb[0x0],_0x3d5955=this['_createButton'](_0x2947cf,_0x404819['type']);return _0x3d5955['icon']=_0x404819['icon'],_0x3d5955['bind']('label')['to'](_0x51b19b,'isImageSelected',_0x3ca8b0=>_(_0x468b6f,_0x404819['type'],_0x3ca8b0?'Replace':'Insert')['text']),_0x3d5955['tooltip']=!0x0,_0x3d5955;}['_createDropdownButtons'](_0x5ef82b){const {locale:_0x2cdd43}=this['editor'],_0x29ee23=this['editor']['plugins']['get']('ImageInsertUI');return _0x5ef82b['map'](_0x388a37=>{const _0x4fcc11=this['_createButton'](_0x2947cf,_0x388a37['type']);return _0x4fcc11['withText']=!0x0,_0x4fcc11['icon']=_0x388a37['icon'],_0x4fcc11['bind']('label')['to'](_0x29ee23,'isImageSelected',_0x2652cd=>_(_0x2cdd43,_0x388a37['type'],_0x2652cd?'Replace':'Insert')['text']),_0x4fcc11;});}['_createMenuBarButtons'](_0x437ec8){return _0x437ec8['map'](_0x5ba3d0=>{const _0x1e5640=this['_createButton'](_0x3fd615,_0x5ba3d0['type']);return _0x1e5640['icon']=_0x5ba3d0['icon'],_0x1e5640['label']=_0x5ba3d0['shortText'],_0x1e5640;});}}class F extends _0x304f7f{['focusTracker'];['focusCycler'];constructor(_0x19cee4){super(_0x19cee4),this['focusTracker']=new _0x4bbc91(),this['focusCycler']=new _0x22a07d({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x436b93,_0x3382ff){super(_0x436b93),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-'+_0x3382ff}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x333398,_0x5b614a){const _0x5dc464=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2c97d9=>_0x2c97d9<=_0x5b614a)['map'](_0x4887e2=>_0x333398['replace'](/\/$/,'')+'/-/resize/'+_0x4887e2+'x/\x20'+_0x4887e2+'w');return{'imageFallbackUrl':_0x333398,'imageSources':[{'srcset':_0x5dc464['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5b614a+'px)\x20100vw,\x20'+_0x5b614a+'px','type':'image/webp'}]};}function C(_0xc6286e,_0x47833e,_0x42b2d9){const _0x25772d=_0xc6286e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x25772d?parseInt(_0x25772d[0x1],0xa):_0x47833e,'height':_0x25772d?parseInt(_0x25772d[0x2],0xa):_0x42b2d9};}function p(_0x40d2e5,_0x16bc30){const _0x4076b2=new(_0x1df946())(),_0x375b7a=_0x40d2e5['plugins']['get']('ImageUtils'),_0x19cc48=_0x40d2e5['editing']['mapper']['toViewElement'](_0x16bc30),_0x31ffe5=_0x375b7a['findViewImgElement'](_0x19cc48),_0x55727a=_0x40d2e5['editing']['view']['domConverter']['viewToDom'](_0x31ffe5),_0x5aaeb8=_0x16bc30['getAttribute']('width'),_0x1e1d82=_0x16bc30['getAttribute']('height'),_0x57bb74='image-processing';_0x40d2e5['editing']['view']['change'](_0x426a2d=>{_0x426a2d['addClass'](_0x57bb74,_0x19cc48),_0x426a2d['setStyle']('aspect-ratio',_0x5aaeb8+'/'+_0x1e1d82,_0x31ffe5);}),_0x4076b2['listenTo'](_0x55727a,'load',()=>{_0x4076b2['stopListening'](_0x55727a,'load'),_0x40d2e5['editing']['view']['change'](_0x153306=>{_0x153306['removeClass'](_0x57bb74,_0x19cc48),_0x153306['removeStyle']('aspect-ratio',_0x31ffe5);});});}function G(_0xe43064){if(Array['isArray'](_0xe43064)){const _0x3c7204=_0xe43064['map'](G);return _0xbe7835=>_0x3c7204['some'](_0x4aa900=>_0x4aa900(_0xbe7835));}if('origin'==_0xe43064){const _0x1a6fb4=_0x2421aa['window']['location']['origin'];return _0x2cd87a=>new URL(_0x2cd87a,_0x2421aa['document']['baseURI'])['origin']==_0x1a6fb4;}return'function'==typeof _0xe43064?_0xe43064:_0xe43064 instanceof RegExp?_0x33612d=>!(!_0x33612d['match'](_0xe43064)&&!_0x33612d['replace'](/^https?:\/\//,'')['match'](_0xe43064)):()=>!0x1;}function S(_0x461010,_0x2ce30e){return _0x5ba3d4(_0x461010['target'])['includes'](_0x2ce30e);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2ad12d(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xb35ea3,_0x40992d,_0x5b0909){super(),this['_editor']=_0xb35ea3,this['_editing']=_0x40992d,this['_dialog']=_0xb35ea3['plugins']['get'](_0x4f6b69),this['_api']=_0x40992d['ctxElement']['getAPI'](),this['_type']=_0x5b0909,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:_0x40f1c1,model:_0x3fb4b3}=this['_editor'],_0x568785=_0x3fb4b3['document']['selection']['getSelectedElement'](),_0x2cb9b6=_0x568785&&(_0x568785['is']('element','imageBlock')||_0x568785['is']('element','imageInline'));this['_formView']=new x(_0x40f1c1,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5be299,'title':_(_0x40f1c1,this['_type'],_0x2cb9b6?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x44fefd['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x27b4dd=>!S(_0x27b4dd,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1e3ec2}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1e75e1=>{const _0x57ff7e=_0x1e3ec2['length'];for(const _0x4e992d of _0x1e3ec2){const _0x1f2da9=_0x4e992d===_0x1e3ec2[_0x57ff7e-0x1],{cdnUrl:_0x58ec9d,fileInfo:_0x4c62e6}=_0x4e992d;if(!_0x58ec9d||!_0x4c62e6)continue;const {width:_0x553704,height:_0x4a72a7}=_0x4c62e6['imageInfo'],_0x5992ba=C(_0x58ec9d,_0x553704,_0x4a72a7),_0x46cc7c=k(_0x58ec9d,_0x5992ba['width']),_0x41de94={'id':_0x4c62e6['uuid'],'type':'image','attributes':{'imageDimension':_0x5992ba,..._0x46cc7c}};this['_insertAsset'](_0x41de94,_0x1f2da9,_0x1e75e1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x434987=>{'idle'===_0x434987['detail']['status']&&!_0x434987['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x47e6a8,_0x1561b8,_0x43c400){const _0x1e4cfa=this['_editor']['model']['document']['selection'],_0x1570c3=_0x1e4cfa['getSelectedElement'](),_0x1e9a08=!(!_0x1570c3||!_0x1570c3['is']('element','imageInline'));_0x43c400['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x47e6a8,_0x1e9a08),_0x1561b8||_0x43c400['setSelection'](_0x1e4cfa['getLastPosition']());}['_insertImage'](_0x135da1,_0x6674c8){const _0x186297=this['_editor'],{imageDimension:_0x1c0ce2,imageFallbackUrl:_0x5c91e0,imageSources:_0x3b7040}=_0x135da1['attributes'];_0x186297['execute']('insertImage',{'imageType':_0x6674c8?'imageInline':null,'source':{'uploadcareImageId':_0x135da1['id'],'src':_0x5c91e0,'sources':_0x3b7040,..._0x1c0ce2}});}}class w extends _0x3d0609{['_editing'];['_controller']=null;static get['requires'](){return[_0x4f6b69,o];}constructor(_0x5b6339){super(_0x5b6339),this['_editing']=_0x5b6339['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x13f0ee){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x13f0ee);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x223152,publicKey:_0x2c9d94,signal:_0x3099ba,onProgress:_0x173bd7}){return _0x3769c9(_0x223152,{'publicKey':_0x2c9d94,'store':'auto','signal':_0x3099ba,'onProgress':_0x173bd7});}static['getInfo'](_0x5ed068,_0x389c5e){return _0x2c51fa(_0x5ed068,_0x389c5e);}}class f extends _0x49377c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3e360e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3b5b1c=this['editor'];if(!!!_0x3b5b1c['config']['get']('uploadcare'))return;_0x3b5b1c['plugins']['get'](_0x3e360e)['createUploadAdapter']=_0x50f81c=>new A(_0x50f81c,_0x3b5b1c),_0x3b5b1c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2091e8,{imageElement:_0x38ed01,data:_0x43f4dd})=>{_0x3b5b1c['model']['change'](_0x38fd9f=>{_0x38fd9f['setAttribute']('uploadcareImageId',_0x43f4dd['uploadcareImageId'],_0x38ed01);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x3bc4bc,_0x26991e){this['loader']=_0x3bc4bc,this['editor']=_0x26991e,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5b4697=this['editor']['config']['get']('uploadcare.pubkey'),_0x21e3a9=await this['loader']['file'];return j['upload']({'file':_0x21e3a9,'publicKey':_0x5b4697,'signal':this['controller']['signal'],'onProgress':_0x541ac4=>{_0x541ac4&&_0x541ac4['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x541ac4['value']);}})['then'](async _0xfb2548=>{const {imageFallbackUrl:_0x3e8b34,imageSources:_0x598edf}=k(_0xfb2548['cdnUrl'],_0xfb2548['imageInfo']['width']);return{'uploadcareImageId':_0xfb2548['uuid'],'default':_0x3e8b34,'sources':_0x598edf};})['catch'](()=>{const _0x4e343c=t('Cannot\x20upload\x20file:')+('\x20'+_0x21e3a9['name']+'.');return Promise['reject'](_0x4e343c);});}['abort'](){this['controller']['abort']();}}class o extends _0x49377c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4f6b69];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4bc1c4){super(_0x4bc1c4),this['ucContextId']=_0x3333fb();}['init'](){const _0x35a827=this['editor'];_0x35a827['commands']['add']('uploadcare',new w(_0x35a827));}['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 _0x120ea0=_0x2421aa['document']['querySelector']('input[uploadcare-file-input]');_0x120ea0&&_0x120ea0['remove']();}),async function(_0x3d1a8b){const _0x4065dc=_0x2592c0([0x77,0x57,0x79,0x6a,0x53,0x33,0x73,0x71,0x46,0x31,0x34,0x72,0x4a,0x62,0x6d,0x52,0x47,0x6e,0x76,0x69,0x32,0x61,0x4b,0x74,0x38,0x45,0x6c,0x6b,0x75,0x68,0x49,0x59,0x35,0x48,0x54,0x6f,0x70,0x5a,0x42,0x37,0x4e,0x36,0x4f,0x50,0x51,0x30,0x65,0x66,0x63,0x56,0x44,0x39,0x41,0x67,0x43,0x7a,0x78,0x4c,0x58,0x55,0x64,0x4d]),_0x2089f4=0x5c191c6f,_0x41f412=0x5c1e6cbf^_0x2089f4,_0xc935e=window[_0x2592c0([0x44,0x61,0x74,0x65])][_0x2592c0([0x6e,0x6f,0x77])](),_0x392ff5=_0x3d1a8b[_0x2592c0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e16f5=new window[(_0x2592c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf27ec1=>{_0x392ff5[_0x2592c0([0x6f,0x6e,0x63,0x65])](_0x2592c0([0x72,0x65,0x61,0x64,0x79]),_0xf27ec1);}),_0x228c59={[_0x2592c0([0x6b,0x74,0x79])]:_0x2592c0([0x45,0x43]),[_0x2592c0([0x75,0x73,0x65])]:_0x2592c0([0x73,0x69,0x67]),[_0x2592c0([0x63,0x72,0x76])]:_0x2592c0([0x50,0x2d,0x32,0x35,0x36]),[_0x2592c0([0x78])]:_0x2592c0([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]),[_0x2592c0([0x79])]:_0x2592c0([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]),[_0x2592c0([0x61,0x6c,0x67])]:_0x2592c0([0x45,0x53,0x32,0x35,0x36])},_0x338017=_0x392ff5[_0x2592c0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2592c0([0x67,0x65,0x74])](_0x2592c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38884c(){let _0x35df98,_0x2d8cb1=null,_0xfa65c2=null;try{if(_0x338017==_0x2592c0([0x47,0x50,0x4c]))return _0x2592c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35df98=_0x1d3f3a(),!_0x35df98)return _0x2592c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35df98[_0x2592c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xfa65c2=_0xca1f7e(_0x35df98[_0x2592c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35df98[_0x2592c0([0x6a,0x74,0x69])])),await _0x4e7df3()?_0x36dacd()?_0x2aa68e()?_0x2592c0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x220812()?(_0x35df98[_0x2592c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2592c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d8cb1=_0x18a9df(_0x2592c0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x35df98[_0x2592c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2592c0([0x74,0x72,0x69,0x61,0x6c])&&(_0x2d8cb1=_0x18a9df(_0x2592c0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28af5c()):_0x2592c0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2592c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2592c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2592c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2aa68e(){const _0x1b66a1=[_0x2592c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2592c0([0x74,0x72,0x69,0x61,0x6c])][_0x2592c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35df98[_0x2592c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc935e/0x3e8:0xe10*_0x41f412;return _0x35df98[_0x2592c0([0x65,0x78,0x70])]<_0x1b66a1;}function _0x36dacd(){const _0x159c9a=_0x35df98[_0x2592c0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x159c9a&&(!!_0x159c9a[_0x2592c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2592c0([0x2a]))||!!_0x159c9a[_0x2592c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2592c0([0x55,0x50,0x4c,0x43])));}function _0x220812(){const _0x2e4222=_0x35df98[_0x2592c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e4222||0x0==_0x2e4222[_0x2592c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d3bc9}=new URL(window[_0x2592c0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2e4222[_0x2592c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d3bc9))return!0x0;const _0x5a4e31=_0x1d3bc9[_0x2592c0([0x73,0x70,0x6c,0x69,0x74])](_0x2592c0([0x2e]));return _0x2e4222[_0x2592c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19aed5=>_0x19aed5[_0x2592c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2592c0([0x2a])))[_0x2592c0([0x6d,0x61,0x70])](_0x198fc2=>_0x198fc2[_0x2592c0([0x73,0x70,0x6c,0x69,0x74])](_0x2592c0([0x2e])))[_0x2592c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x8478ba=>_0x8478ba[_0x2592c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5a4e31[_0x2592c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2592c0([0x6d,0x61,0x70])](_0x87067d=>Array(_0x5a4e31[_0x2592c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x87067d[_0x2592c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2592c0([0x66,0x69,0x6c,0x6c])](_0x87067d[0x0]===_0x2592c0([0x2a])?_0x2592c0([0x2a]):'')[_0x2592c0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x87067d))[_0x2592c0([0x73,0x6f,0x6d,0x65])](_0x1eb0be=>_0x5a4e31[_0x2592c0([0x65,0x76,0x65,0x72,0x79])]((_0x376d8b,_0x1fd596)=>_0x1eb0be[_0x1fd596]===_0x376d8b||_0x1eb0be[_0x1fd596]===_0x2592c0([0x2a])));}function _0x28af5c(){return _0x2d8cb1&&_0xfa65c2?new window[(_0x2592c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x483ab2,_0x5d836f)=>{_0x2d8cb1[_0x2592c0([0x74,0x68,0x65,0x6e])](_0x483ab2,_0x5d836f),_0xfa65c2[_0x2592c0([0x74,0x68,0x65,0x6e])](_0x53be07=>{_0x53be07!=_0x2592c0([0x56,0x61,0x6c,0x69,0x64])&&_0x483ab2(_0x53be07);},_0x5d836f);}):_0x2d8cb1||_0xfa65c2||_0x2592c0([0x56,0x61,0x6c,0x69,0x64]);}}function _0xca1f7e(_0x3db296,_0x54c8bd){return new window[(_0x2592c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50723d=>{if(_0x502505())return _0x50723d(_0x2592c0([0x56,0x61,0x6c,0x69,0x64]));_0x38ad42(),_0x392ff5[_0x2592c0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2592c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x550e5a=!0x1;const _0x5aee21=_0x3333fb();function _0x5c38d1(_0x1d4c25){return!!_0x1d4c25&&(typeof _0x1d4c25===_0x2592c0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d4c25===_0x2592c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d4c25[_0x2592c0([0x74,0x68,0x65,0x6e])]===_0x2592c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d4c25[_0x2592c0([0x63,0x61,0x74,0x63,0x68])]===_0x2592c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2cc968(_0x36ef2c){_0x47437b(_0x36ef2c)[_0x2592c0([0x74,0x68,0x65,0x6e])](_0x5bb5fb=>{if(!_0x5bb5fb||_0x5bb5fb[_0x2592c0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2592c0([0x6f,0x6b]))return _0x2592c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x237eac(_0x447fd3(_0x5aee21+_0x54c8bd))!=_0x5bb5fb[_0x2592c0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2592c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2592c0([0x56,0x61,0x6c,0x69,0x64]);})[_0x2592c0([0x74,0x68,0x65,0x6e])](_0xc240c3=>(_0x647ba8(),_0xc240c3),()=>{const _0x2447c5=_0x1b666f();return null==_0x2447c5?(_0x647ba8(),_0x2592c0([0x56,0x61,0x6c,0x69,0x64])):_0x2592c0(_0xc935e-_0x2447c5>(0x7815986f^_0x2089f4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2592c0([0x74,0x68,0x65,0x6e])](_0x50723d)[_0x2592c0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x50723d(_0x2592c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x8fadbc=0x5c2ff2ef^_0x2089f4;function _0x647ba8(){const _0x272a6f=_0x2592c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x237eac(_0x447fd3(_0x3db296)),_0x34668f=_0x51f022(_0x237eac(window[_0x2592c0([0x4d,0x61,0x74,0x68])][_0x2592c0([0x63,0x65,0x69,0x6c])](_0xc935e/_0x8fadbc)));window[_0x2592c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2592c0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x272a6f,_0x34668f);}function _0x1b666f(){const _0x287d1e=_0x2592c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x237eac(_0x447fd3(_0x3db296)),_0x640d81=window[_0x2592c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2592c0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x287d1e);return _0x640d81?window[_0x2592c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51f022(_0x640d81),0x10)*_0x8fadbc:null;}function _0x47437b(_0x3cba11){return new window[(_0x2592c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d17f8,_0x1aa58d)=>{_0x3cba11[_0x2592c0([0x74,0x68,0x65,0x6e])](_0x4d17f8,_0x1aa58d),window[_0x2592c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1aa58d,0x5c18c8af^_0x2089f4);});}}_0x392ff5[_0x2592c0([0x6f,0x6e])](_0x2592c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x31804c,_0x8e3530)=>{if(_0x8e3530[0x0]!=_0x3db296)return _0x50723d(_0x2592c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x8e3530[0x1]={..._0x8e3530[0x1],[_0x2592c0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5aee21};},{[_0x2592c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2592c0([0x68,0x69,0x67,0x68])}),_0x392ff5[_0x2592c0([0x6f,0x6e])](_0x2592c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x42de2d=>{_0x5c38d1(_0x42de2d[_0x2592c0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x550e5a=!0x0,_0x2cc968(_0x42de2d[_0x2592c0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2592c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2592c0([0x6c,0x6f,0x77])}),_0x5e16f5[_0x2592c0([0x74,0x68,0x65,0x6e])](()=>{_0x550e5a||_0x50723d(_0x2592c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x502505(){return _0x392ff5[_0x2592c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2592c0([0x76,0x69,0x65,0x77])][_0x2592c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2592c0([0x61,0x75,0x74,0x6f]);}function _0x38ad42(){_0x392ff5[_0x2592c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2592c0([0x76,0x69,0x65,0x77])][_0x2592c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2592c0([0x61,0x75,0x74,0x6f]);}}function _0x18a9df(_0x5bba7f){const _0x4c81a3=[new window[(_0x2592c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18f39b=>setTimeout(_0x18f39b,0x5c1022a3^_0x2089f4)),_0x5e16f5[_0x2592c0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2592c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19020c=>{let _0x272547=0x0;_0x392ff5[_0x2592c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2592c0([0x6f,0x6e])](_0x2592c0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x15ede6,_0xc19a5f)=>{_0xc19a5f[0x0][_0x2592c0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x272547++,_0x272547==(0x5c191d97^_0x2089f4)&&(_0x19020c(),_0x15ede6[_0x2592c0([0x6f,0x66,0x66])]());});}))];return window[_0x2592c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2592c0([0x72,0x61,0x63,0x65])](_0x4c81a3)[_0x2592c0([0x74,0x68,0x65,0x6e])](()=>_0x5bba7f);}async function _0x9fa12a(){await _0x5e16f5,_0x392ff5[_0x2592c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2592c0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5af315,_0x392ff5[_0x2592c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2592c0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5af315,_0x392ff5[_0x2592c0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2592c0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x39934e(_0x5d13ef){const _0x154c11=_0x140bfc();_0x392ff5[_0x154c11]=_0x2592c0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d13ef,_0x5d13ef!=_0x2592c0([0x56,0x61,0x6c,0x69,0x64])&&_0x9fa12a();}function _0x140bfc(){const _0x3ebafd=window[_0x2592c0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2592c0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2592c0([0x6e,0x6f,0x77])]())[_0x2592c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2592c0([0x2e]),'');let _0xfee01b=_0x2592c0([0x77]);for(let _0xbba513=0x0;_0xbba513<_0x3ebafd[_0x2592c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbba513+=0x2){let _0x4d2128=window[_0x2592c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ebafd[_0x2592c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbba513,_0xbba513+0x2));_0x4d2128>=_0x4065dc[_0x2592c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d2128-=_0x4065dc[_0x2592c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xfee01b+=_0x4065dc[_0x4d2128];}return _0xfee01b;}function _0x1d3f3a(){const _0xac66bf=_0x338017[_0x2592c0([0x73,0x70,0x6c,0x69,0x74])](_0x2592c0([0x2e]));if(0x3!=_0xac66bf[_0x2592c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3549dd(_0xac66bf[0x1]);function _0x3549dd(_0x5d5c2e){const _0xc33341=_0x2624a1(_0x5d5c2e);return _0xc33341&&_0x22f7b1()?_0xc33341:null;function _0x22f7b1(){const _0x25fa1b=_0xc33341[_0x2592c0([0x6a,0x74,0x69])],_0x2f93fe=window[_0x2592c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25fa1b[_0x2592c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25fa1b[_0x2592c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x13fdea={..._0xc33341,[_0x2592c0([0x6a,0x74,0x69])]:_0x25fa1b[_0x2592c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25fa1b[_0x2592c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x13fdea[_0x2592c0([0x76,0x63])],_0x447fd3(_0x13fdea)==_0x2f93fe;}}}async function _0x4e7df3(){let _0x3129cb=!0x0;try{const _0x505a44=_0x338017[_0x2592c0([0x73,0x70,0x6c,0x69,0x74])](_0x2592c0([0x2e])),[_0x5dd81f,_0x521587,_0x3d9585]=_0x505a44;return _0x422dfe(_0x5dd81f),await _0x2215d6(_0x5dd81f,_0x521587,_0x3d9585),_0x3129cb;}catch{return!0x1;}function _0x422dfe(_0x3cdad4){const _0x5bf79b=_0x2624a1(_0x3cdad4);_0x5bf79b&&_0x5bf79b[_0x2592c0([0x61,0x6c,0x67])]==_0x2592c0([0x45,0x53,0x32,0x35,0x36])||(_0x3129cb=!0x1);}async function _0x2215d6(_0x146da4,_0x116b10,_0x337557){const _0x31046b=window[_0x2592c0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2592c0([0x66,0x72,0x6f,0x6d])](_0x49181f(_0x337557),_0x13aa90=>_0x13aa90[_0x2592c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x361c50=new window[(_0x2592c0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2592c0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x146da4+_0x2592c0([0x2e])+_0x116b10),_0x20a06f=window[_0x2592c0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2592c0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x20a06f)return;const _0x424af8=await _0x20a06f[_0x2592c0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2592c0([0x6a,0x77,0x6b]),_0x228c59,{[_0x2592c0([0x6e,0x61,0x6d,0x65])]:_0x2592c0([0x45,0x43,0x44,0x53,0x41]),[_0x2592c0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2592c0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2592c0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x20a06f[_0x2592c0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2592c0([0x6e,0x61,0x6d,0x65])]:_0x2592c0([0x45,0x43,0x44,0x53,0x41]),[_0x2592c0([0x68,0x61,0x73,0x68])]:{[_0x2592c0([0x6e,0x61,0x6d,0x65])]:_0x2592c0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x424af8,_0x31046b,_0x361c50)||(_0x3129cb=!0x1);}}function _0x2624a1(_0x52c822){return _0x52c822[_0x2592c0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2592c0([0x65,0x79]))?JSON[_0x2592c0([0x70,0x61,0x72,0x73,0x65])](_0x49181f(_0x52c822)):null;}function _0x49181f(_0x3e5c5c){return window[_0x2592c0([0x61,0x74,0x6f,0x62])](_0x3e5c5c[_0x2592c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2592c0([0x2b]))[_0x2592c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2592c0([0x2f])));}function _0x447fd3(_0x3405bc){let _0x40dfae=0x1505;function _0x3f27d1(_0x13be38){for(let _0x2e0bfa=0x0;_0x2e0bfa<_0x13be38[_0x2592c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e0bfa++){const _0x15fa58=_0x13be38[_0x2592c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e0bfa);_0x40dfae=(_0x40dfae<<0x5)+_0x40dfae+_0x15fa58,_0x40dfae&=_0x40dfae;}}function _0x22eae2(_0x19f46c){Array[_0x2592c0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19f46c)?_0x19f46c[_0x2592c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x22eae2):_0x19f46c&&typeof _0x19f46c==_0x2592c0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2592c0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19f46c)[_0x2592c0([0x73,0x6f,0x72,0x74])]()[_0x2592c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1b7bf5,_0x2019c9])=>{_0x3f27d1(_0x1b7bf5),_0x22eae2(_0x2019c9);}):_0x3f27d1(window[_0x2592c0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19f46c));}return _0x22eae2(_0x3405bc),_0x40dfae>>>0x0;}function _0x237eac(_0x54a326){return _0x54a326[_0x2592c0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2592c0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2592c0([0x30]));}function _0x51f022(_0x45b2df){return _0x45b2df[_0x2592c0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2592c0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2592c0([0x6a,0x6f,0x69,0x6e])]('');}function _0x5af315(){}function _0x2592c0(_0x42a1a0){return _0x42a1a0['map'](_0x3e74bc=>String['fromCharCode'](_0x3e74bc))['join']('');}_0x39934e(await _0x38884c());}(this);}['_initSchema'](){const _0x1b0ef3=this['editor']['model']['schema'];_0x1b0ef3['isRegistered']('imageBlock')&&_0x1b0ef3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1b0ef3['isRegistered']('imageInline')&&_0x1b0ef3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1080f7=this['editor'];_0x1080f7['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1080f7['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3cf80e=>_0x3cf80e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1598fc=_0x1080f7['commands']['get']('replaceImageSource');_0x1598fc&&this['listenTo'](_0x1598fc,'cleanupImage',(_0x47c2da,[_0x5b7025,_0x44f01f])=>{_0x5b7025['removeAttribute']('uploadcareImageId',_0x44f01f);});}['_initConfig'](){const _0x55c1bf=this['editor']['config']['get']('uploadcare.uploader')||{},_0x57e0a5=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x54e38b(_0x2421aa['document'],'uc-config',{..._0x55c1bf,'pubkey':_0x57e0a5,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x500b40=>{if('closeMax'==_0x500b40)return'#uc-icon-arrow-down';},_0x2421aa['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x54e38b(_0x2421aa['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2421aa['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xdb8abe=this['editor']['commands']['get']('insertImage');_0xdb8abe&&this['listenTo'](_0xdb8abe,'execute',()=>{const _0x37a3ea=this['editor']['model']['document']['selection']['getSelectedElement']();_0x37a3ea&&_0x37a3ea['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x37a3ea);});});const _0x500e20=this['editor']['commands']['get']('uploadcareImageReplace');_0x500e20&&this['listenTo'](_0x500e20,'execute',()=>{const _0x471e09=this['editor']['model']['document']['selection']['getSelectedElement']();_0x471e09&&_0x471e09['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x471e09);});});}}class tt extends _0x49377c{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45acd2){super(_0x45acd2),_0x45acd2['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x50d6d7['defineComponents'](_0x50d6d7);}}class ii extends _0x304f7f{constructor(_0x4bf476){super(_0x4bf476);const t=_0x4bf476['t'],_0x11f3ab=this['bindTemplate'],_0xc37318=new _0x5184b6();_0xc37318['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':[_0xc37318,{'text':_0x11f3ab['to']('imageUploadProgress',_0x27a57f=>t('Loading\x20image...')+'\x20('+(_0x27a57f||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x304f7f{constructor(_0x4270f0){super(_0x4270f0);const t=_0x4270f0['t'];this['set']('errorType',null);const _0x422e72=new _0x2947cf(_0x4270f0);_0x422e72['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x422e72['withText']=!0x0,_0x422e72['class']='ck-button-action',_0x422e72['on']('execute',()=>{this['fire']('retry');}),_0x422e72['bind']('isVisible')['to'](this,'errorType',_0x329ee3=>'NotFound'!==_0x329ee3);const _0x188d45=new _0x491cc8();_0x188d45['content']=_0x574142,_0x188d45['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4d1ad7=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':[_0x188d45,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4d1ad7['to']('errorType',_0x11e34e=>t('NotFound'!==_0x11e34e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x422e72]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x304f7f{constructor(_0x1abd3c,_0x4e7cd8){super(_0x1abd3c);const _0x481c63=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4e7cd8,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x481c63['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xa50598,_0x3a44c6,_0x3b3db4){super(_0xa50598),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xa50598),this['_errorView']=new ti(_0xa50598),this['_editingView']=new ei(_0xa50598,_0x3b3db4),this['_focusableView']=new _0x304f7f(_0xa50598),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3a44c6),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'],_0x4d1e2d=>{this['_addUploadcareImageEditorListeners'](_0x4d1e2d);});}),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'](_0x1172bc,_0x1cadc2){const _0x5c7236='uc-cloud-image-editor',_0x2a6566=_0x1172bc['querySelector'](_0x5c7236);if(_0x2a6566)return _0x1cadc2(_0x2a6566);const _0x23e458=new MutationObserver(_0x360b68=>{const _0x2bb288=_0x360b68['filter'](_0x58f058=>_0x58f058['target']===_0x1172bc&&_0x58f058['addedNodes']['length']>0x0&&_0x58f058['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5c7236);_0x2bb288['length']&&(_0x23e458['disconnect'](),_0x1cadc2(_0x2bb288[0x0]['addedNodes'][0x0]));});_0x23e458['observe'](_0x1172bc,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x99dec3){_0x99dec3['addEventListener']('apply',_0x26fa88=>{this['fire']('apply',{'imageSrc':_0x26fa88['detail']['cdnUrl']});}),_0x99dec3['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2ad12d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x20f424,_0x24bfef,_0x2df964){super(),this['_editor']=_0x20f424,this['_dialog']=_0x24bfef,this['_imageElement']=_0x2df964,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 _0x1905ba=this['_imageElement'],_0x521586=_0x1905ba['getAttribute']('uploadcareImageId'),_0x2ece57=_0x1905ba['getAttribute']('src');if(_0x521586)await this['_loadImageInfo'](_0x521586,_0x2ece57);else{if(this['_imageCache']['has'](_0x2ece57)){const _0x27ea04=this['_imageCache']['get'](_0x2ece57);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x27ea04['url'],this['imageDimension']=_0x27ea04['dimension'],this['imageId']=_0x27ea04['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x17d706}=this['_editor'],t=_0x17d706['t'],_0x23aa19=new X(_0x17d706,this['imageStatus'],this['_attributes']);_0x23aa19['bind']('status')['to'](this,'imageStatus'),_0x23aa19['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x23aa19['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x23aa19['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x23aa19,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1d3ff5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x23aa19,'position':_0x44fefd['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x23aa19['focus']();},'onHide':()=>{_0x23aa19['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x21a082=>!S(_0x21a082,_0x23aa19['element'])}});}['_loadImageInfo'](_0x24ebbd,_0x3570e6){return j['getInfo'](_0x24ebbd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1e8626=>{const {width:_0x58a358,height:_0x57b3bf}=_0x1e8626['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3570e6,this['imageDimension']={'width':_0x58a358,'height':_0x57b3bf},this['imageId']=_0x24ebbd;})['catch'](_0x3ea804=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3ea804['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2cc8ce,_0x4d602b){return this['_getImageAsFile'](_0x2cc8ce)['then'](_0x4b5a98=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4d602b['signal'],'file':_0x4b5a98,'onProgress':_0x3150b7=>{_0x3150b7&&_0x3150b7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3150b7['value']));}}))['then'](_0x45b46f=>{const {width:_0x7a26d0,height:_0x3bd436}=_0x45b46f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x45b46f['cdnUrl'],this['imageDimension']={'width':_0x7a26d0,'height':_0x3bd436},this['imageId']=_0x45b46f['uuid'],this['imageUploadProgress']=null;const _0x44ade9=_0x2cc8ce['getAttribute']('src');this['_imageCache']['set'](_0x44ade9,{'id':_0x45b46f['uuid'],'url':_0x45b46f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x192547=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x192547['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5f7ecf,_0x395a1b){_0x5f7ecf['on']('apply',(_0x46f0be,_0x5cc9c5)=>{this['_replaceImage'](_0x395a1b,_0x5cc9c5['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5f7ecf['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5f7ecf['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4c405e,_0x1cc0cd,_0x2331cd){const _0x53300b=this['_editor'],{width:_0x22f5a6,height:_0x1166b4}=C(_0x1cc0cd,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1fb387,imageSources:_0x1d352e}=k(_0x1cc0cd,_0x22f5a6);_0x53300b['model']['change'](_0x27fc5c=>{if('$graveyard'===_0x4c405e['root']['rootName']){_0x53300b['execute']('insertImage',{'imageType':_0x4c405e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4c405e['getAttributes']()),'uploadcareImageId':_0x2331cd,'src':_0x1fb387,'sources':_0x1d352e,'width':_0x22f5a6,'height':_0x1166b4}});const _0xfb553b=_0x4c405e['getChildren']();_0x4c405e=_0x53300b['model']['document']['selection']['getSelectedElement']();for(const _0x319a4c of _0xfb553b)_0x27fc5c['append'](_0x27fc5c['cloneElement'](_0x319a4c),_0x4c405e);}else _0x27fc5c['setSelection'](_0x4c405e,'on'),_0x53300b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4c405e['getAttributes']()),'uploadcareImageId':_0x2331cd,'src':_0x1fb387,'sources':_0x1d352e,'width':_0x22f5a6,'height':_0x1166b4},_0x4c405e);_0x27fc5c['setSelection'](_0x4c405e,'on');});}async['_getImageAsFile'](_0x252744){const _0x4768a3=_0x2421aa['window'],_0x382ab4=_0x2421aa['document']['location']['href'],_0x7d943a=new _0x4768a3['URL'](_0x252744['getAttribute']('src'),_0x382ab4);if('data:'===_0x7d943a['protocol']){const _0x54847b=_0x7d943a['href']['split'](','),_0x4130aa=_0x54847b[0x0]['match'](/:(.*?);/)[0x1],_0x501cb9=_0x4130aa['split']('/')[0x1],_0x2c1e7c=_0x4768a3['atob'](_0x54847b[_0x54847b['length']-0x1]);let _0x2aba5f=_0x2c1e7c['length'];const _0x29a490=new _0x4768a3['Uint8Array'](_0x2aba5f);for(;_0x2aba5f--;)_0x29a490[_0x2aba5f]=_0x2c1e7c['charCodeAt'](_0x2aba5f);return new _0x4768a3['File']([_0x29a490],'image.'+_0x501cb9,{'type':_0x4130aa});}const _0x4d6be4=_0x7d943a['href']['split']('/'),_0x2d693c=_0x4d6be4[_0x4d6be4['length']-0x1],_0x1e8817=_0x2d693c['split']('.')[0x1];return _0x4768a3['fetch'](_0x7d943a['href'])['then'](_0x4b44e2=>_0x4b44e2['clone']()['blob']())['then'](_0x20a55c=>new _0x4768a3['File']([_0x20a55c],_0x2d693c,{'type':'image/'+_0x1e8817}));}}class O extends _0x3d0609{['imageEditController'];static get['requires'](){return[_0x4f6b69];}['_isEditable'];constructor(_0x2d1c9c){super(_0x2d1c9c),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x260f95){const _0x2a7a73=G(_0x260f95);return _0x35d7c2=>!(!_0x35d7c2||!_0x35d7c2['is']('element','imageBlock')&&!_0x35d7c2['is']('element','imageInline'))&&(!!_0x35d7c2['hasAttribute']('uploadcareImageId')||!!_0x35d7c2['hasAttribute']('src')&&_0x2a7a73(_0x35d7c2['getAttribute']('src')));}(_0x2d1c9c['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x351f0e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x351f0e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x22dca6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x22dca6&&(_0x22dca6['is']('element','imageBlock')||_0x22dca6['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4f6b69),_0x22dca6),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3d0609{['refresh'](){const _0x1ce346=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1ce346&&(_0x1ce346['is']('element','imageBlock')||_0x1ce346['is']('element','imageInline')));}['execute'](_0x2f6a9e){const _0x3f300d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3dcb96=>{_0x3dcb96['setAttributes'](_0x2f6a9e,_0x3f300d),_0x3dcb96['removeAttribute']('srcset',_0x3f300d),_0x3dcb96['removeAttribute']('sizes',_0x3f300d);});}}class m extends _0x49377c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2a89ff,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1d9d70}=this;_0x1d9d70['commands']['add']('uploadcareImageEdit',new O(_0x1d9d70)),_0x1d9d70['commands']['add']('uploadcareImageReplace',new R(_0x1d9d70));}}class g extends _0x49377c{['_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 _0xac8628=this['editor'];_0xac8628['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5adfc0=>{const _0x98558=_0xac8628['commands']['get']('uploadcareImageEdit'),_0x359b45=new _0x2947cf(_0x5adfc0),t=_0x5adfc0['t'];return _0x359b45['set']({'icon':_0x1d3ff5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x359b45['bind']('isEnabled')['to'](_0x98558),_0x359b45['bind']('isOn')['to'](_0x98558,'isActive'),this['listenTo'](_0x359b45,'execute',()=>{_0xac8628['execute']('uploadcareImageEdit'),_0xac8628['editing']['view']['focus']();}),_0x359b45;}),this['_initConfig']();}['_initConfig'](){const _0x2bb43d=_0x54e38b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2bb43d),this['listenTo'](this['editor'],'destroy',()=>{_0x2bb43d['remove']();});}}class et extends _0x49377c{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
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':_0x536935=>0x1!=_0x536935}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2650c1=>{const {af:{dictionary:_0x1739fc,getPluralForm:_0x3be220}}={'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':_0x49ccc2=>0x1!=_0x49ccc2}};_0x2650c1['af']||={'dictionary':{},'getPluralForm':null},_0x2650c1['af']['dictionary']=Object['assign'](_0x2650c1['af']['dictionary'],_0x1739fc),_0x2650c1['af']['getPluralForm']=_0x3be220;})(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':_0x1a95be=>0x0==_0x1a95be?0x0:0x1==_0x1a95be?0x1:0x2==_0x1a95be?0x2:_0x1a95be%0x64>=0x3&&_0x1a95be%0x64<=0xa?0x3:_0x1a95be%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5aec87=>{const {ar:{dictionary:_0x1199c1,getPluralForm:_0x2cf354}}={'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':_0x2f0715=>0x0==_0x2f0715?0x0:0x1==_0x2f0715?0x1:0x2==_0x2f0715?0x2:_0x2f0715%0x64>=0x3&&_0x2f0715%0x64<=0xa?0x3:_0x2f0715%0x64>=0xb?0x4:0x5}};_0x5aec87['ar']||={'dictionary':{},'getPluralForm':null},_0x5aec87['ar']['dictionary']=Object['assign'](_0x5aec87['ar']['dictionary'],_0x1199c1),_0x5aec87['ar']['getPluralForm']=_0x2cf354;})(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':_0x4c3d0f=>0x1!=_0x4c3d0f}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3d2144=>{const {ast:{dictionary:_0x3eddd3,getPluralForm:_0x216567}}={'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':_0x160733=>0x1!=_0x160733}};_0x3d2144['ast']||={'dictionary':{},'getPluralForm':null},_0x3d2144['ast']['dictionary']=Object['assign'](_0x3d2144['ast']['dictionary'],_0x3eddd3),_0x3d2144['ast']['getPluralForm']=_0x216567;})(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':_0x31f334=>0x1!=_0x31f334}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x43c9ec=>{const {az:{dictionary:_0x13cbf9,getPluralForm:_0x2a6e73}}={'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':_0x39a39f=>0x1!=_0x39a39f}};_0x43c9ec['az']||={'dictionary':{},'getPluralForm':null},_0x43c9ec['az']['dictionary']=Object['assign'](_0x43c9ec['az']['dictionary'],_0x13cbf9),_0x43c9ec['az']['getPluralForm']=_0x2a6e73;})(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':_0x3caa56=>_0x3caa56%0xa==0x1&&_0x3caa56%0x64!=0xb?0x0:_0x3caa56%0xa>=0x2&&_0x3caa56%0xa<=0x4&&(_0x3caa56%0x64<0xa||_0x3caa56%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1066ca=>{const {be:{dictionary:_0x22d5d9,getPluralForm:_0x12fa38}}={'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':_0x41fa5f=>_0x41fa5f%0xa==0x1&&_0x41fa5f%0x64!=0xb?0x0:_0x41fa5f%0xa>=0x2&&_0x41fa5f%0xa<=0x4&&(_0x41fa5f%0x64<0xa||_0x41fa5f%0x64>=0x14)?0x1:0x2}};_0x1066ca['be']||={'dictionary':{},'getPluralForm':null},_0x1066ca['be']['dictionary']=Object['assign'](_0x1066ca['be']['dictionary'],_0x22d5d9),_0x1066ca['be']['getPluralForm']=_0x12fa38;})(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':_0x237563=>0x1!=_0x237563}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x41a705=>{const {bg:{dictionary:_0x27cec7,getPluralForm:_0x1fe2cf}}={'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':_0x215ec5=>0x1!=_0x215ec5}};_0x41a705['bg']||={'dictionary':{},'getPluralForm':null},_0x41a705['bg']['dictionary']=Object['assign'](_0x41a705['bg']['dictionary'],_0x27cec7),_0x41a705['bg']['getPluralForm']=_0x1fe2cf;})(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':_0x7bfd48=>0x1!=_0x7bfd48}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x347358=>{const {bn:{dictionary:_0x59a984,getPluralForm:_0x30b317}}={'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':_0x37fb7a=>0x1!=_0x37fb7a}};_0x347358['bn']||={'dictionary':{},'getPluralForm':null},_0x347358['bn']['dictionary']=Object['assign'](_0x347358['bn']['dictionary'],_0x59a984),_0x347358['bn']['getPluralForm']=_0x30b317;})(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':_0x3c269e=>_0x3c269e%0xa==0x1&&_0x3c269e%0x64!=0xb?0x0:_0x3c269e%0xa>=0x2&&_0x3c269e%0xa<=0x4&&(_0x3c269e%0x64<0xa||_0x3c269e%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x250c76=>{const {bs:{dictionary:_0x2a0caf,getPluralForm:_0x2df422}}={'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':_0x9ca768=>_0x9ca768%0xa==0x1&&_0x9ca768%0x64!=0xb?0x0:_0x9ca768%0xa>=0x2&&_0x9ca768%0xa<=0x4&&(_0x9ca768%0x64<0xa||_0x9ca768%0x64>=0x14)?0x1:0x2}};_0x250c76['bs']||={'dictionary':{},'getPluralForm':null},_0x250c76['bs']['dictionary']=Object['assign'](_0x250c76['bs']['dictionary'],_0x2a0caf),_0x250c76['bs']['getPluralForm']=_0x2df422;})(window['CKEDITOR_TRANSLATIONS']||={});
|