@ckeditor/ckeditor5-uploadcare 45.2.1 → 46.0.0-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-editor.css +2 -2
- package/dist/index.css +2 -2
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/augmentation.d.ts +4 -4
- package/src/index.d.ts +10 -8
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.d.ts +2 -2
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.d.ts +3 -3
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.d.ts +3 -3
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.d.ts +2 -2
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.d.ts +2 -3
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.d.ts +13 -3
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +3 -3
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.d.ts +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.d.ts +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.d.ts +3 -4
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.d.ts +3 -3
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.d.ts +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.d.ts +2 -2
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.d.ts +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 _0x1769d3,Command as _0x32bdc0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x15d74f,IconGooglePhotos as _0x3c6324,IconGoogleDrive as _0x5f3f79,IconFacebook as _0x530464,IconDropbox as _0x2fb32a,IconUploadcareLink as _0x341924,IconUploadcareImageUpload as _0x3e2b1e,IconError as et,IconUploadcareImageEdit as _0x39f740}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x48aa9e,MenuBarMenuListItemButtonView as _0x2a4db3,View as _0x3822f2,FocusCycler as _0x4a255e,Dialog as _0x25b26d,DialogViewPosition as _0x31d511,SpinnerView as _0x283b8a,IconView as at,Notification as _0x51efc6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5d27bd,DomEmitterMixin as _0x336085,global as _0x1578fe,getAncestors as _0xed0a7b,ObservableMixin as _0x30b385,createElement as _0x73f991,uid as _0x239872}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x45d27c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2da76c,info as _0x13c4e6}from'@uploadcare/upload-client';import*as _0x3d1c38 from'@uploadcare/file-uploader';var o=function(_0x1ac3de){return _0x1ac3de['Local']='local',_0x1ac3de['URL']='url',_0x1ac3de['Dropbox']='dropbox',_0x1ac3de['GDrive']='gdrive',_0x1ac3de['Facebook']='facebook',_0x1ac3de['GPhotos']='gphotos',_0x1ac3de['OneDrive']='onedrive',_0x1ac3de;}({});function _(_0x265726,_0x5284a8,_0x118587){const t=_0x265726['t'],_0x163a19=_0x265726['t'];switch(_0x5284a8){case o['Local']:return{'text':_0x163a19('Insert'===_0x118587?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x163a19('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x118587?_0x163a19('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x163a19('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x118587?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x118587?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x118587?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x118587?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x118587?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5284a8;}}class e extends _0x1769d3{['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 _0x1ff6a3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x557386;for(const _0x39cf40 in _0x1ff6a3){const _0x560932=_0x39cf40,_0x143bcf=_0x1ff6a3[_0x560932];if('uploadcareLicenseKeyValid'==_0x143bcf||'uploadcareLicenseKeyInvalid'==_0x143bcf||'uploadcareLicenseKeyExpired'==_0x143bcf||'uploadcareLicenseKeyDomainLimit'==_0x143bcf||'uploadcareLicenseKeyNotAllowed'==_0x143bcf||'uploadcareLicenseKeyEvaluationLimit'==_0x143bcf||'uploadcareLicenseKeyTrialLimit'==_0x143bcf||'uploadcareLicenseKeyUsageLimit'==_0x143bcf){delete _0x1ff6a3[_0x560932],_0x557386=_0x143bcf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x557386&&_0x1ff6a3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x557386&&_0x1ff6a3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x557386&&_0x1ff6a3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x557386&&_0x1ff6a3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x557386&&_0x1ff6a3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x557386&&_0x1ff6a3['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x557386&&_0x1ff6a3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x13523f}=this,_0x4271d3=_0x13523f['commands']['get']('uploadcare');if(!_0x4271d3)return;const _0xb3560a=this['_normalizeConfigSourceList'](_0x13523f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x51330b,_0x9c082)=>{const _0xc54408=this['_getIntegrationKey'](_0x9c082['type']);return _0x51330b[_0xc54408]||(_0x51330b[_0xc54408]=[]),_0x51330b[_0xc54408]['push'](_0x9c082),_0x51330b;},{});_0x13523f['plugins']['has']('ImageInsertUI')&&_0x13523f['commands']['get']('uploadcare')&&Object['entries'](_0xb3560a)['forEach'](([_0x1b4236,_0x4d8c26])=>{_0x13523f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1b4236,'observable':()=>_0x4271d3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4d8c26),'formViewCreator':()=>this['_createDropdownButtons'](_0x4d8c26),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4d8c26),'override':'assetManager'!==_0x1b4236});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x520b4b){const {locale:_0x385602}=this['editor'];return _0x520b4b['map'](_0x10a988=>{const _0x13cd11=_(_0x385602,_0x10a988,'Insert');switch(_0x10a988){case o['Local']:return{'icon':_0x3e2b1e,'type':o['Local'],..._0x13cd11};case o['URL']:return{'icon':_0x341924,'type':o['URL'],..._0x13cd11};case o['Dropbox']:return{'icon':_0x2fb32a,'type':o['Dropbox'],..._0x13cd11};case o['Facebook']:return{'icon':_0x530464,'type':o['Facebook'],..._0x13cd11};case o['GDrive']:return{'icon':_0x5f3f79,'type':o['GDrive'],..._0x13cd11};case o['GPhotos']:return{'icon':_0x3c6324,'type':o['GPhotos'],..._0x13cd11};case o['OneDrive']:return{'icon':_0x15d74f,'type':o['OneDrive'],..._0x13cd11};}});}['_getIntegrationKey'](_0x54540d){switch(_0x54540d){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1b5488,_0x2e5890){const _0x1a0633=this['editor'],_0x1b7e79=new _0x1b5488(_0x1a0633['locale']),_0x1099b7=_0x1a0633['commands']['get']('uploadcare');return _0x1b7e79['bind']('isEnabled')['to'](_0x1099b7),_0x1b7e79['on']('execute',()=>{_0x1099b7['execute'](_0x2e5890);}),_0x1b7e79;}['_createToolbarButton'](_0x270f70){const {locale:_0x3cd2f8}=this['editor'],_0x3b9152=this['editor']['plugins']['get']('ImageInsertUI'),_0x4a5c0f=_0x270f70[0x0],_0x49a547=this['_createButton'](_0x48aa9e,_0x4a5c0f['type']);return _0x49a547['icon']=_0x4a5c0f['icon'],_0x49a547['bind']('label')['to'](_0x3b9152,'isImageSelected',_0x240fbe=>_(_0x3cd2f8,_0x4a5c0f['type'],_0x240fbe?'Replace':'Insert')['text']),_0x49a547['tooltip']=!0x0,_0x49a547;}['_createDropdownButtons'](_0x370b1c){const {locale:_0x44aa5a}=this['editor'],_0x543862=this['editor']['plugins']['get']('ImageInsertUI');return _0x370b1c['map'](_0x256aa0=>{const _0x54e746=this['_createButton'](_0x48aa9e,_0x256aa0['type']);return _0x54e746['withText']=!0x0,_0x54e746['icon']=_0x256aa0['icon'],_0x54e746['bind']('label')['to'](_0x543862,'isImageSelected',_0x5b0948=>_(_0x44aa5a,_0x256aa0['type'],_0x5b0948?'Replace':'Insert')['text']),_0x54e746;});}['_createMenuBarButtons'](_0x38accf){return _0x38accf['map'](_0x57355e=>{const _0x2f5c29=this['_createButton'](_0x2a4db3,_0x57355e['type']);return _0x2f5c29['icon']=_0x57355e['icon'],_0x2f5c29['label']=_0x57355e['shortText'],_0x2f5c29;});}}class q extends _0x3822f2{['focusTracker'];['focusCycler'];constructor(_0x59e92a){super(_0x59e92a),this['focusTracker']=new _0x5d27bd(),this['focusCycler']=new _0x4a255e({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x1572e4){super(_0x1572e4),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x4d38cd,_0x4fee72){const _0x18667e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5eace8=>_0x5eace8<=_0x4fee72)['map'](_0x31ad39=>_0x4d38cd['replace'](/\/$/,'')+'/-/resize/'+_0x31ad39+'x/\x20'+_0x31ad39+'w');return{'imageFallbackUrl':_0x4d38cd,'imageSources':[{'srcset':_0x18667e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4fee72+'px)\x20100vw,\x20'+_0x4fee72+'px','type':'image/webp'}]};}function A(_0x9e2adf,_0x180da1,_0x3a2167){const _0x48149e=_0x9e2adf['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x48149e?parseInt(_0x48149e[0x1],0xa):_0x180da1,'height':_0x48149e?parseInt(_0x48149e[0x2],0xa):_0x3a2167};}function m(_0x27da39,_0x210765){const _0x361f19=Object['create'](_0x336085),_0x2be007=_0x27da39['plugins']['get']('ImageUtils'),_0x13eacf=_0x27da39['editing']['mapper']['toViewElement'](_0x210765),_0x2b4e5f=_0x2be007['findViewImgElement'](_0x13eacf),_0x2cc944=_0x27da39['editing']['view']['domConverter']['viewToDom'](_0x2b4e5f),_0x1dea2c=_0x210765['getAttribute']('width'),_0x538c96=_0x210765['getAttribute']('height'),_0x51b425='image-processing';_0x27da39['editing']['view']['change'](_0x247518=>{_0x247518['addClass'](_0x51b425,_0x13eacf),_0x247518['setStyle']('aspect-ratio',_0x1dea2c+'/'+_0x538c96,_0x2b4e5f);}),_0x361f19['listenTo'](_0x2cc944,'load',()=>{_0x361f19['stopListening'](_0x2cc944,'load'),_0x27da39['editing']['view']['change'](_0x660669=>{_0x660669['removeClass'](_0x51b425,_0x13eacf),_0x660669['removeStyle']('aspect-ratio',_0x2b4e5f);});});}function V(_0x547791){if(Array['isArray'](_0x547791)){const _0x6974ce=_0x547791['map'](V);return _0x1af3dd=>_0x6974ce['some'](_0x484d0e=>_0x484d0e(_0x1af3dd));}if('origin'==_0x547791){const _0x39fdf4=_0x1578fe['window']['location']['origin'];return _0x3927d6=>new URL(_0x3927d6,_0x1578fe['document']['baseURI'])['origin']==_0x39fdf4;}return'function'==typeof _0x547791?_0x547791:_0x547791 instanceof RegExp?_0xc82887=>!(!_0xc82887['match'](_0x547791)&&!_0xc82887['replace'](/^https?:\/\//,'')['match'](_0x547791)):()=>!0x1;}function F(_0x5a2d46,_0x4c0eca){return _0xed0a7b(_0x5a2d46['target'])['includes'](_0x4c0eca);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x30b385(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5bab31,_0x48d20c,_0x5cbb3a){super(),this['_editor']=_0x5bab31,this['_editing']=_0x48d20c,this['_dialog']=_0x5bab31['plugins']['get'](_0x25b26d),this['_api']=_0x48d20c['ctxElement']['getAPI'](),this['_type']=_0x5cbb3a,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:_0x2b9a47,model:_0x4b7e49}=this['_editor'],_0x110fad=_0x4b7e49['document']['selection']['getSelectedElement'](),_0xdd0907=_0x110fad&&(_0x110fad['is']('element','imageBlock')||_0x110fad['is']('element','imageInline'));this['_formView']=new S(_0x2b9a47),this['_dialog']['show']({'id':'uploadCare','icon':_0x3e2b1e,'title':_(_0x2b9a47,this['_type'],_0xdd0907?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x31d511['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x219278=>!F(_0x219278,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1229d8}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x10c998=>{const _0x9f789e=_0x1229d8['length'];for(const _0x1de4d3 of _0x1229d8){const _0x224c91=_0x1de4d3===_0x1229d8[_0x9f789e-0x1],{cdnUrl:_0x2eaa95,fileInfo:_0x5ee165}=_0x1de4d3;if(!_0x2eaa95||!_0x5ee165)continue;const {width:_0x45b1a5,height:_0x392ba5}=_0x5ee165['imageInfo'],_0x25d7dd=A(_0x2eaa95,_0x45b1a5,_0x392ba5),_0x30098d=E(_0x2eaa95,_0x25d7dd['width']),_0x34c109={'id':_0x5ee165['uuid'],'type':'image','attributes':{'imageDimension':_0x25d7dd,..._0x30098d}};this['_insertAsset'](_0x34c109,_0x224c91,_0x10c998);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x53318d=>{'idle'===_0x53318d['detail']['status']&&!_0x53318d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x14ce94,_0x1519c6,_0x5e76fd){const _0x16b8ff=this['_editor']['model']['document']['selection'],_0x38bac9=_0x16b8ff['getSelectedElement'](),_0x4982a8=!(!_0x38bac9||!_0x38bac9['is']('element','imageInline'));_0x5e76fd['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x14ce94,_0x4982a8),_0x1519c6||_0x5e76fd['setSelection'](_0x16b8ff['getLastPosition']());}['_insertImage'](_0x504fc5,_0x21fc72){const _0x41e182=this['_editor'],{imageDimension:_0x275c4a,imageFallbackUrl:_0x4df8dc,imageSources:_0x2ff6fb}=_0x504fc5['attributes'];_0x41e182['execute']('insertImage',{'imageType':_0x21fc72?'imageInline':null,'source':{'uploadcareImageId':_0x504fc5['id'],'src':_0x4df8dc,'sources':_0x2ff6fb,..._0x275c4a}});}}class n extends _0x32bdc0{['_editing'];['_controller']=null;static get['requires'](){return[_0x25b26d,i];}constructor(_0x15e637){super(_0x15e637),this['_editing']=_0x15e637['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x574bd1){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x574bd1);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x255af0,publicKey:_0x244648,signal:_0x523e40,onProgress:_0x24594d}){return _0x2da76c(_0x255af0,{'publicKey':_0x244648,'store':'auto','signal':_0x523e40,'onProgress':_0x24594d});}static['getInfo'](_0x2bd40d,_0x1e0dca){return _0x13c4e6(_0x2bd40d,_0x1e0dca);}}class p extends _0x1769d3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x45d27c,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xa331b4=this['editor'];if(!!!_0xa331b4['config']['get']('uploadcare'))return;_0xa331b4['plugins']['get'](_0x45d27c)['createUploadAdapter']=_0x1fc847=>new x(_0x1fc847,_0xa331b4),_0xa331b4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x28d83a,{imageElement:_0x3357cf,data:_0x5ad849})=>{_0xa331b4['model']['change'](_0x3a6c8e=>{_0x3a6c8e['setAttribute']('uploadcareImageId',_0x5ad849['uploadcareImageId'],_0x3357cf);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x235e6f,_0xef5802){this['loader']=_0x235e6f,this['editor']=_0xef5802,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x14ce88=this['editor']['config']['get']('uploadcare.pubkey'),_0x2be70f=await this['loader']['file'];return C['upload']({'file':_0x2be70f,'publicKey':_0x14ce88,'signal':this['controller']['signal'],'onProgress':_0x422b16=>{_0x422b16&&_0x422b16['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x422b16['value']);}})['then'](async _0x16d406=>{const {imageFallbackUrl:_0x40538,imageSources:_0x4c8685}=E(_0x16d406['cdnUrl'],_0x16d406['imageInfo']['width']);return{'uploadcareImageId':_0x16d406['uuid'],'default':_0x40538,'sources':_0x4c8685};})['catch'](()=>{const _0x195477=t('Cannot\x20upload\x20file:')+('\x20'+_0x2be70f['name']+'.');return Promise['reject'](_0x195477);});}['abort'](){this['controller']['abort']();}}class i extends _0x1769d3{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x25b26d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x4a4d35=this['editor'];_0x4a4d35['commands']['add']('uploadcare',new n(_0x4a4d35));}['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 _0x198a9e=_0x1578fe['document']['querySelector']('input[uploadcare-file-input]');_0x198a9e&&_0x198a9e['remove']();}),async function(_0x2f1055){const _0x1101f0=_0x1f1d73([0x66,0x33,0x71,0x67,0x68,0x61,0x36,0x4c,0x49,0x6b,0x37,0x4e,0x78,0x44,0x70,0x6a,0x55,0x73,0x30,0x77,0x6d,0x75,0x64,0x6f,0x31,0x4f,0x32,0x57,0x79,0x6e,0x6c,0x45,0x56,0x42,0x34,0x4d,0x53,0x4a,0x47,0x7a,0x72,0x59,0x69,0x58,0x5a,0x65,0x38,0x4b,0x48,0x50,0x62,0x52,0x46,0x63,0x39,0x76,0x35,0x51,0x74,0x54,0x41,0x43]),_0x208360=0x6eda3144,_0x2a0639=0x6edd5aec^_0x208360,_0x4b552d=window[_0x1f1d73([0x44,0x61,0x74,0x65])][_0x1f1d73([0x6e,0x6f,0x77])](),_0x4d9d90=_0x2f1055[_0x1f1d73([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x417950=new window[(_0x1f1d73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46260a=>{_0x4d9d90[_0x1f1d73([0x6f,0x6e,0x63,0x65])](_0x1f1d73([0x72,0x65,0x61,0x64,0x79]),_0x46260a);}),_0x471b7a={[_0x1f1d73([0x6b,0x74,0x79])]:_0x1f1d73([0x45,0x43]),[_0x1f1d73([0x75,0x73,0x65])]:_0x1f1d73([0x73,0x69,0x67]),[_0x1f1d73([0x63,0x72,0x76])]:_0x1f1d73([0x50,0x2d,0x32,0x35,0x36]),[_0x1f1d73([0x78])]:_0x1f1d73([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]),[_0x1f1d73([0x79])]:_0x1f1d73([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]),[_0x1f1d73([0x61,0x6c,0x67])]:_0x1f1d73([0x45,0x53,0x32,0x35,0x36])},_0x4cb984=_0x4d9d90[_0x1f1d73([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f1d73([0x67,0x65,0x74])](_0x1f1d73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x409005(){let _0x2b644e,_0x19592f=null,_0xf29d52=null;try{if(_0x4cb984==_0x1f1d73([0x47,0x50,0x4c]))return _0x1f1d73([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b644e=_0x306642(),!_0x2b644e)return _0x1f1d73([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b644e[_0x1f1d73([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf29d52=_0x2f8ff2(_0x2b644e[_0x1f1d73([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b644e[_0x1f1d73([0x6a,0x74,0x69])])),await _0x5aa246()?_0x279864()?_0x385a06()?_0x1f1d73([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x185b7c()?(_0x2b644e[_0x1f1d73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f1d73([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19592f=_0x267e44(_0x1f1d73([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b644e[_0x1f1d73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f1d73([0x74,0x72,0x69,0x61,0x6c])&&(_0x19592f=_0x267e44(_0x1f1d73([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54ded1()):_0x1f1d73([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f1d73([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f1d73([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f1d73([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x385a06(){const _0x39032f=[_0x1f1d73([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f1d73([0x74,0x72,0x69,0x61,0x6c])][_0x1f1d73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b644e[_0x1f1d73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b552d/0x3e8:0xe10*_0x2a0639;return _0x2b644e[_0x1f1d73([0x65,0x78,0x70])]<_0x39032f;}function _0x279864(){const _0x386de6=_0x2b644e[_0x1f1d73([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x386de6&&(!!_0x386de6[_0x1f1d73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1d73([0x2a]))||!!_0x386de6[_0x1f1d73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1d73([0x55,0x50,0x4c,0x43])));}function _0x185b7c(){const _0x5ccef9=_0x2b644e[_0x1f1d73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ccef9||0x0==_0x5ccef9[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2ed5c7}=new URL(window[_0x1f1d73([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5ccef9[_0x1f1d73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ed5c7))return!0x0;const _0x572bbf=_0x2ed5c7[_0x1f1d73([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d73([0x2e]));return _0x5ccef9[_0x1f1d73([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b32a2=>_0x1b32a2[_0x1f1d73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1d73([0x2a])))[_0x1f1d73([0x6d,0x61,0x70])](_0x394d7f=>_0x394d7f[_0x1f1d73([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d73([0x2e])))[_0x1f1d73([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c3d1a=>_0x1c3d1a[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x572bbf[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f1d73([0x6d,0x61,0x70])](_0xa7301=>Array(_0x572bbf[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xa7301[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f1d73([0x66,0x69,0x6c,0x6c])](_0xa7301[0x0]===_0x1f1d73([0x2a])?_0x1f1d73([0x2a]):'')[_0x1f1d73([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xa7301))[_0x1f1d73([0x73,0x6f,0x6d,0x65])](_0x5afb06=>_0x572bbf[_0x1f1d73([0x65,0x76,0x65,0x72,0x79])]((_0xa51432,_0x4cfa82)=>_0x5afb06[_0x4cfa82]===_0xa51432||_0x5afb06[_0x4cfa82]===_0x1f1d73([0x2a])));}function _0x54ded1(){return _0x19592f&&_0xf29d52?new window[(_0x1f1d73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c7b8d,_0x2b9aa6)=>{_0x19592f[_0x1f1d73([0x74,0x68,0x65,0x6e])](_0x2c7b8d,_0x2b9aa6),_0xf29d52[_0x1f1d73([0x74,0x68,0x65,0x6e])](_0x1ed829=>{_0x1ed829!=_0x1f1d73([0x56,0x61,0x6c,0x69,0x64])&&_0x2c7b8d(_0x1ed829);},_0x2b9aa6);}):_0x19592f||_0xf29d52||_0x1f1d73([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f8ff2(_0x3448ef,_0x25b9ce){return new window[(_0x1f1d73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5889ee=>{if(_0x5aae6f())return _0x5889ee(_0x1f1d73([0x56,0x61,0x6c,0x69,0x64]));_0x4b596a(),_0x4d9d90[_0x1f1d73([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f1d73([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x599077=!0x1;const _0x3b3c8b=_0x239872();function _0x18e96e(_0x2f22fa){return!!_0x2f22fa&&(typeof _0x2f22fa===_0x1f1d73([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f22fa===_0x1f1d73([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f22fa[_0x1f1d73([0x74,0x68,0x65,0x6e])]===_0x1f1d73([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f22fa[_0x1f1d73([0x63,0x61,0x74,0x63,0x68])]===_0x1f1d73([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12fa73(_0x59ffd6){_0x4d9ec3(_0x59ffd6)[_0x1f1d73([0x74,0x68,0x65,0x6e])](_0x3157fe=>{if(!_0x3157fe||_0x3157fe[_0x1f1d73([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f1d73([0x6f,0x6b]))return _0x1f1d73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12c462(_0x8b7d7b(_0x3b3c8b+_0x25b9ce))!=_0x3157fe[_0x1f1d73([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f1d73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f1d73([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f1d73([0x74,0x68,0x65,0x6e])](_0x3287cf=>(_0x471577(),_0x3287cf),()=>{const _0x3d7c05=_0xd0b090();return null==_0x3d7c05?(_0x471577(),_0x1f1d73([0x56,0x61,0x6c,0x69,0x64])):_0x1f1d73(_0x4b552d-_0x3d7c05>(0x4ad6b544^_0x208360)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f1d73([0x74,0x68,0x65,0x6e])](_0x5889ee)[_0x1f1d73([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5889ee(_0x1f1d73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x110808=0x6eecdfc4^_0x208360;function _0x471577(){const _0x5778d0=_0x1f1d73([0x6c,0x6c,0x63,0x74,0x2d])+_0x12c462(_0x8b7d7b(_0x3448ef)),_0x1e61dd=_0x39e52e(_0x12c462(window[_0x1f1d73([0x4d,0x61,0x74,0x68])][_0x1f1d73([0x63,0x65,0x69,0x6c])](_0x4b552d/_0x110808)));window[_0x1f1d73([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f1d73([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5778d0,_0x1e61dd);}function _0xd0b090(){const _0x995d6b=_0x1f1d73([0x6c,0x6c,0x63,0x74,0x2d])+_0x12c462(_0x8b7d7b(_0x3448ef)),_0x39f761=window[_0x1f1d73([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f1d73([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x995d6b);return _0x39f761?window[_0x1f1d73([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39e52e(_0x39f761),0x10)*_0x110808:null;}function _0x4d9ec3(_0x47e34a){return new window[(_0x1f1d73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40bf1e,_0x516c6e)=>{_0x47e34a[_0x1f1d73([0x74,0x68,0x65,0x6e])](_0x40bf1e,_0x516c6e),window[_0x1f1d73([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x516c6e,0x6edbe584^_0x208360);});}}_0x4d9d90[_0x1f1d73([0x6f,0x6e])](_0x1f1d73([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x306bd8,_0x14324a)=>{if(_0x14324a[0x0]!=_0x3448ef)return _0x5889ee(_0x1f1d73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14324a[0x1]={..._0x14324a[0x1],[_0x1f1d73([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3b3c8b};},{[_0x1f1d73([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f1d73([0x68,0x69,0x67,0x68])}),_0x4d9d90[_0x1f1d73([0x6f,0x6e])](_0x1f1d73([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1be1e3=>{_0x18e96e(_0x1be1e3[_0x1f1d73([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x599077=!0x0,_0x12fa73(_0x1be1e3[_0x1f1d73([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f1d73([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f1d73([0x6c,0x6f,0x77])}),_0x417950[_0x1f1d73([0x74,0x68,0x65,0x6e])](()=>{_0x599077||_0x5889ee(_0x1f1d73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5aae6f(){return _0x4d9d90[_0x1f1d73([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1d73([0x76,0x69,0x65,0x77])][_0x1f1d73([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f1d73([0x61,0x75,0x74,0x6f]);}function _0x4b596a(){_0x4d9d90[_0x1f1d73([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1d73([0x76,0x69,0x65,0x77])][_0x1f1d73([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f1d73([0x61,0x75,0x74,0x6f]);}}function _0x267e44(_0x831f2c){const _0x371696=[new window[(_0x1f1d73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e6a50=>setTimeout(_0x5e6a50,0x6ed30f88^_0x208360)),_0x417950[_0x1f1d73([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f1d73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cb4f6=>{let _0x43feec=0x0;_0x4d9d90[_0x1f1d73([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1d73([0x6f,0x6e])](_0x1f1d73([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a2308,_0x31bf76)=>{_0x31bf76[0x0][_0x1f1d73([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43feec++,_0x43feec==(0x6eda30bc^_0x208360)&&(_0x2cb4f6(),_0x1a2308[_0x1f1d73([0x6f,0x66,0x66])]());});}))];return window[_0x1f1d73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f1d73([0x72,0x61,0x63,0x65])](_0x371696)[_0x1f1d73([0x74,0x68,0x65,0x6e])](()=>_0x831f2c);}async function _0x31015a(){await _0x417950,_0x4d9d90[_0x1f1d73([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1d73([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x43b0c4,_0x4d9d90[_0x1f1d73([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1d73([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x43b0c4,_0x4d9d90[_0x1f1d73([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f1d73([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e496d(_0x2adaca){const _0x2f401d=_0x290e9d();_0x4d9d90[_0x2f401d]=_0x1f1d73([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2adaca,_0x2adaca!=_0x1f1d73([0x56,0x61,0x6c,0x69,0x64])&&_0x31015a();}function _0x290e9d(){const _0x6ab2ae=window[_0x1f1d73([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f1d73([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f1d73([0x6e,0x6f,0x77])]())[_0x1f1d73([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f1d73([0x2e]),'');let _0x2b8636=_0x1f1d73([0x66]);for(let _0x4021f5=0x0;_0x4021f5<_0x6ab2ae[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4021f5+=0x2){let _0x463807=window[_0x1f1d73([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6ab2ae[_0x1f1d73([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4021f5,_0x4021f5+0x2));_0x463807>=_0x1101f0[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x463807-=_0x1101f0[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b8636+=_0x1101f0[_0x463807];}return _0x2b8636;}function _0x306642(){const _0x31d7e2=_0x4cb984[_0x1f1d73([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d73([0x2e]));if(0x3!=_0x31d7e2[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x153309(_0x31d7e2[0x1]);function _0x153309(_0x50f20c){const _0x93ff6=_0x3ee3ed(_0x50f20c);return _0x93ff6&&_0x473a8f()?_0x93ff6:null;function _0x473a8f(){const _0x4021ff=_0x93ff6[_0x1f1d73([0x6a,0x74,0x69])],_0x398a02=window[_0x1f1d73([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4021ff[_0x1f1d73([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4021ff[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x258c82={..._0x93ff6,[_0x1f1d73([0x6a,0x74,0x69])]:_0x4021ff[_0x1f1d73([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4021ff[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x258c82[_0x1f1d73([0x76,0x63])],_0x8b7d7b(_0x258c82)==_0x398a02;}}}async function _0x5aa246(){let _0x27852b=!0x0;try{const _0x215cd3=_0x4cb984[_0x1f1d73([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d73([0x2e])),[_0x1ce320,_0x20b630,_0x160c5c]=_0x215cd3;return _0x1b34e7(_0x1ce320),await _0x3194e5(_0x1ce320,_0x20b630,_0x160c5c),_0x27852b;}catch{return!0x1;}function _0x1b34e7(_0x225edb){const _0x4bb66f=_0x3ee3ed(_0x225edb);_0x4bb66f&&_0x4bb66f[_0x1f1d73([0x61,0x6c,0x67])]==_0x1f1d73([0x45,0x53,0x32,0x35,0x36])||(_0x27852b=!0x1);}async function _0x3194e5(_0x40af0c,_0x3c9e83,_0x372adc){const _0x20f5f8=window[_0x1f1d73([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f1d73([0x66,0x72,0x6f,0x6d])](_0x381091(_0x372adc),_0x29a671=>_0x29a671[_0x1f1d73([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x407c0b=new window[(_0x1f1d73([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f1d73([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40af0c+_0x1f1d73([0x2e])+_0x3c9e83),_0x38c94e=window[_0x1f1d73([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f1d73([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x38c94e)return;const _0x46bddd=await _0x38c94e[_0x1f1d73([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f1d73([0x6a,0x77,0x6b]),_0x471b7a,{[_0x1f1d73([0x6e,0x61,0x6d,0x65])]:_0x1f1d73([0x45,0x43,0x44,0x53,0x41]),[_0x1f1d73([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f1d73([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f1d73([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x38c94e[_0x1f1d73([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f1d73([0x6e,0x61,0x6d,0x65])]:_0x1f1d73([0x45,0x43,0x44,0x53,0x41]),[_0x1f1d73([0x68,0x61,0x73,0x68])]:{[_0x1f1d73([0x6e,0x61,0x6d,0x65])]:_0x1f1d73([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46bddd,_0x20f5f8,_0x407c0b)||(_0x27852b=!0x1);}}function _0x3ee3ed(_0x5a1266){return _0x5a1266[_0x1f1d73([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f1d73([0x65,0x79]))?JSON[_0x1f1d73([0x70,0x61,0x72,0x73,0x65])](_0x381091(_0x5a1266)):null;}function _0x381091(_0x1949a9){return window[_0x1f1d73([0x61,0x74,0x6f,0x62])](_0x1949a9[_0x1f1d73([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f1d73([0x2b]))[_0x1f1d73([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f1d73([0x2f])));}function _0x8b7d7b(_0x3e5d9e){let _0x2beca8=0x1505;function _0x30425b(_0x502679){for(let _0x4ca35d=0x0;_0x4ca35d<_0x502679[_0x1f1d73([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ca35d++){const _0x446086=_0x502679[_0x1f1d73([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ca35d);_0x2beca8=(_0x2beca8<<0x5)+_0x2beca8+_0x446086,_0x2beca8&=_0x2beca8;}}function _0xecebc2(_0x10ed00){Array[_0x1f1d73([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10ed00)?_0x10ed00[_0x1f1d73([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xecebc2):_0x10ed00&&typeof _0x10ed00==_0x1f1d73([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f1d73([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10ed00)[_0x1f1d73([0x73,0x6f,0x72,0x74])]()[_0x1f1d73([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x12e6e9,_0x2cd03d])=>{_0x30425b(_0x12e6e9),_0xecebc2(_0x2cd03d);}):_0x30425b(window[_0x1f1d73([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10ed00));}return _0xecebc2(_0x3e5d9e),_0x2beca8>>>0x0;}function _0x12c462(_0x49c185){return _0x49c185[_0x1f1d73([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f1d73([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f1d73([0x30]));}function _0x39e52e(_0x3933f5){return _0x3933f5[_0x1f1d73([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f1d73([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f1d73([0x6a,0x6f,0x69,0x6e])]('');}function _0x43b0c4(){}function _0x1f1d73(_0xce9b8a){return _0xce9b8a['map'](_0x3b9709=>String['fromCharCode'](_0x3b9709))['join']('');}_0x3e496d(await _0x409005());}(this);}['_initSchema'](){const _0x1df03b=this['editor']['model']['schema'];_0x1df03b['isRegistered']('imageBlock')&&_0x1df03b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1df03b['isRegistered']('imageInline')&&_0x1df03b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x21ce42=this['editor'];_0x21ce42['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x21ce42['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x56b515=>_0x56b515['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3b3e26=_0x21ce42['commands']['get']('replaceImageSource');_0x3b3e26&&this['listenTo'](_0x3b3e26,'cleanupImage',(_0x5517d3,[_0x132b4a,_0x2337ab])=>{_0x132b4a['removeAttribute']('uploadcareImageId',_0x2337ab);});}['_initConfig'](){const _0x30dc49=this['editor']['config']['get']('uploadcare.uploader')||{},_0x352aff=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x73f991(_0x1578fe['document'],'uc-config',{..._0x30dc49,'pubkey':_0x352aff,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0xd1f17a=>{if('closeMax'==_0xd1f17a)return'#uc-icon-arrow-down';},_0x1578fe['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x73f991(_0x1578fe['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1578fe['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x20c226=this['editor']['commands']['get']('insertImage');_0x20c226&&this['listenTo'](_0x20c226,'execute',()=>{const _0x4a4ee3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4a4ee3&&_0x4a4ee3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4a4ee3);});});const _0x46ade2=this['editor']['commands']['get']('uploadcareImageReplace');_0x46ade2&&this['listenTo'](_0x46ade2,'execute',()=>{const _0x2aeedf=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2aeedf&&_0x2aeedf['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2aeedf);});});}}class u extends _0x1769d3{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x221bac){super(_0x221bac),_0x221bac['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3d1c38['defineComponents'](_0x3d1c38);}}class ta extends _0x3822f2{constructor(_0x3f41ae){super(_0x3f41ae);const t=_0x3f41ae['t'],_0x273a00=this['bindTemplate'],_0x31e633=new _0x283b8a();_0x31e633['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':[_0x31e633,{'text':_0x273a00['to']('imageUploadProgress',_0x40102f=>t('Loading\x20image...')+'\x20('+(_0x40102f||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x3822f2{constructor(_0x2a8448){super(_0x2a8448);const t=_0x2a8448['t'];this['set']('errorType',null);const _0x10f2f6=new _0x48aa9e(_0x2a8448);_0x10f2f6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x10f2f6['withText']=!0x0,_0x10f2f6['class']='ck-button-action',_0x10f2f6['on']('execute',()=>{this['fire']('retry');}),_0x10f2f6['bind']('isVisible')['to'](this,'errorType',_0x44543c=>'NotFound'!==_0x44543c);const _0x1425e6=new at();_0x1425e6['content']=et,_0x1425e6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x29b258=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':[_0x1425e6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x29b258['to']('errorType',_0x5ca483=>t('NotFound'!==_0x5ca483?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x10f2f6]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x3822f2{constructor(_0x8cceb5,_0x59876c){super(_0x8cceb5);const _0x71e14d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x59876c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x71e14d['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x121100,_0x220b08,_0x1467cc){super(_0x121100),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x121100),this['_errorView']=new rt(_0x121100),this['_editingView']=new tt(_0x121100,_0x1467cc),this['_focusableView']=new _0x3822f2(_0x121100),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x220b08),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'],_0x389178=>{this['_addUploadcareImageEditorListeners'](_0x389178);});}),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'](_0x37c6b9,_0x5f558a){const _0x17faaf='uc-cloud-image-editor',_0x635749=_0x37c6b9['querySelector'](_0x17faaf);if(_0x635749)return _0x5f558a(_0x635749);const _0x49e012=new MutationObserver(_0x275593=>{const _0x2df4bc=_0x275593['filter'](_0x469169=>_0x469169['target']===_0x37c6b9&&_0x469169['addedNodes']['length']>0x0&&_0x469169['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x17faaf);_0x2df4bc['length']&&(_0x49e012['disconnect'](),_0x5f558a(_0x2df4bc[0x0]['addedNodes'][0x0]));});_0x49e012['observe'](_0x37c6b9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2c61fa){_0x2c61fa['addEventListener']('apply',_0x5d1ea1=>{this['fire']('apply',{'imageSrc':_0x5d1ea1['detail']['cdnUrl']});}),_0x2c61fa['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x30b385(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x6123b8,_0x1aa1b9,_0x6eb547){super(),this['_editor']=_0x6123b8,this['_dialog']=_0x1aa1b9,this['_imageElement']=_0x6eb547,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 _0xbba68f=this['_imageElement'],_0x11c726=_0xbba68f['getAttribute']('uploadcareImageId'),_0x1405f3=_0xbba68f['getAttribute']('src');if(_0x11c726)await this['_loadImageInfo'](_0x11c726,_0x1405f3);else{if(this['_imageCache']['has'](_0x1405f3)){const _0x27b4e3=this['_imageCache']['get'](_0x1405f3);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x27b4e3['url'],this['imageDimension']=_0x27b4e3['dimension'],this['imageId']=_0x27b4e3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5b2268}=this['_editor'],t=_0x5b2268['t'],_0x1d9e2b=new Z(_0x5b2268,this['imageStatus'],this['_attributes']);_0x1d9e2b['bind']('status')['to'](this,'imageStatus'),_0x1d9e2b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1d9e2b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1d9e2b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1d9e2b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x39f740,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1d9e2b,'position':_0x31d511['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1d9e2b['focus']();},'onHide':()=>{_0x1d9e2b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x210e84=>!F(_0x210e84,_0x1d9e2b['element'])}});}['_loadImageInfo'](_0x158a80,_0x3d8561){return C['getInfo'](_0x158a80,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x11d151=>{const {width:_0x528685,height:_0x54bae9}=_0x11d151['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d8561,this['imageDimension']={'width':_0x528685,'height':_0x54bae9},this['imageId']=_0x158a80;})['catch'](_0x22802b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x22802b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5d4704,_0xfa2c46){return this['_getImageAsFile'](_0x5d4704)['then'](_0x60957c=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xfa2c46['signal'],'file':_0x60957c,'onProgress':_0x5ec83b=>{_0x5ec83b&&_0x5ec83b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5ec83b['value']));}}))['then'](_0x4d9d5b=>{const {width:_0x3d3a64,height:_0x333020}=_0x4d9d5b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d9d5b['cdnUrl'],this['imageDimension']={'width':_0x3d3a64,'height':_0x333020},this['imageId']=_0x4d9d5b['uuid'],this['imageUploadProgress']=null;const _0x427c28=_0x5d4704['getAttribute']('src');this['_imageCache']['set'](_0x427c28,{'id':_0x4d9d5b['uuid'],'url':_0x4d9d5b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x35e2e8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x35e2e8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4d4362,_0x3c2364){_0x4d4362['on']('apply',(_0x44656b,_0x55b6e4)=>{this['_replaceImage'](_0x3c2364,_0x55b6e4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4d4362['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4d4362['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3cd24f,_0x2baefd,_0x1ff7b0){const _0x80ccf3=this['_editor'],{width:_0x5e0e29,height:_0x54ea93}=A(_0x2baefd,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x8dcdee,imageSources:_0x53bbb0}=E(_0x2baefd,_0x5e0e29);_0x80ccf3['model']['change'](_0x595323=>{if('$graveyard'===_0x3cd24f['root']['rootName']){_0x80ccf3['execute']('insertImage',{'imageType':_0x3cd24f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3cd24f['getAttributes']()),'uploadcareImageId':_0x1ff7b0,'src':_0x8dcdee,'sources':_0x53bbb0,'width':_0x5e0e29,'height':_0x54ea93}});const _0x21cf53=_0x3cd24f['getChildren']();_0x3cd24f=_0x80ccf3['model']['document']['selection']['getSelectedElement']();for(const _0x374a89 of _0x21cf53)_0x595323['append'](_0x595323['cloneElement'](_0x374a89),_0x3cd24f);}else _0x595323['setSelection'](_0x3cd24f,'on'),_0x80ccf3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3cd24f['getAttributes']()),'uploadcareImageId':_0x1ff7b0,'src':_0x8dcdee,'sources':_0x53bbb0,'width':_0x5e0e29,'height':_0x54ea93},_0x3cd24f);_0x595323['setSelection'](_0x3cd24f,'on');});}async['_getImageAsFile'](_0x422c62){const _0x373185=_0x1578fe['window'],_0x1f5eff=_0x1578fe['document']['location']['href'],_0x51ca75=new _0x373185['URL'](_0x422c62['getAttribute']('src'),_0x1f5eff);if('data:'===_0x51ca75['protocol']){const _0x2cd2d3=_0x51ca75['href']['split'](','),_0x542fb5=_0x2cd2d3[0x0]['match'](/:(.*?);/)[0x1],_0x39e4ba=_0x542fb5['split']('/')[0x1],_0xa66c76=_0x373185['atob'](_0x2cd2d3[_0x2cd2d3['length']-0x1]);let _0x3b4d8b=_0xa66c76['length'];const _0x35da19=new _0x373185['Uint8Array'](_0x3b4d8b);for(;_0x3b4d8b--;)_0x35da19[_0x3b4d8b]=_0xa66c76['charCodeAt'](_0x3b4d8b);return new _0x373185['File']([_0x35da19],'image.'+_0x39e4ba,{'type':_0x542fb5});}const _0x179b52=_0x51ca75['href']['split']('/'),_0x1d4e2f=_0x179b52[_0x179b52['length']-0x1],_0x43f542=_0x1d4e2f['split']('.')[0x1];return _0x373185['fetch'](_0x51ca75['href'])['then'](_0x2fba3f=>_0x2fba3f['clone']()['blob']())['then'](_0x29830f=>new _0x373185['File']([_0x29830f],_0x1d4e2f,{'type':'image/'+_0x43f542}));}}class J extends _0x32bdc0{['imageEditController'];static get['requires'](){return[_0x25b26d];}['_isEditable'];constructor(_0x4fe3df){super(_0x4fe3df),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x46190f){const _0x23b09d=V(_0x46190f);return _0x2840a0=>!(!_0x2840a0||!_0x2840a0['is']('element','imageBlock')&&!_0x2840a0['is']('element','imageInline'))&&(!!_0x2840a0['hasAttribute']('uploadcareImageId')||!!_0x2840a0['hasAttribute']('src')&&_0x23b09d(_0x2840a0['getAttribute']('src')));}(_0x4fe3df['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xa0efb2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xa0efb2);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x33da0c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x33da0c&&(_0x33da0c['is']('element','imageBlock')||_0x33da0c['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x25b26d),_0x33da0c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x32bdc0{['refresh'](){const _0x96a347=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x96a347&&(_0x96a347['is']('element','imageBlock')||_0x96a347['is']('element','imageInline')));}['execute'](_0x28fc7b){const _0x264e24=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5d991a=>{_0x5d991a['setAttributes'](_0x28fc7b,_0x264e24),_0x5d991a['removeAttribute']('srcset',_0x264e24),_0x5d991a['removeAttribute']('sizes',_0x264e24);});}}class g extends _0x1769d3{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x51efc6,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3561c5}=this;_0x3561c5['commands']['add']('uploadcareImageEdit',new J(_0x3561c5)),_0x3561c5['commands']['add']('uploadcareImageReplace',new O(_0x3561c5));}}class j extends _0x1769d3{['_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 _0x5be57f=this['editor'];_0x5be57f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3c0a5b=>{const _0x17c20c=_0x5be57f['commands']['get']('uploadcareImageEdit'),_0x5525ea=new _0x48aa9e(_0x3c0a5b),t=_0x3c0a5b['t'];return _0x5525ea['set']({'icon':_0x39f740,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5525ea['bind']('isEnabled')['to'](_0x17c20c),_0x5525ea['bind']('isOn')['to'](_0x17c20c,'isActive'),this['listenTo'](_0x5525ea,'execute',()=>{_0x5be57f['execute']('uploadcareImageEdit'),_0x5be57f['editing']['view']['focus']();}),_0x5525ea;}),this['_initConfig']();}['_initConfig'](){const _0x740e10=_0x73f991(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x740e10),this['listenTo'](this['editor'],'destroy',()=>{_0x740e10['remove']();});}}class P extends _0x1769d3{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x2b631a,Command as _0x5474e0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x29c00d,IconGooglePhotos as _0x599ef3,IconGoogleDrive as _0x2e4200,IconFacebook as _0x2bb54e,IconDropbox as _0xd59dfd,IconUploadcareLink as _0x35bc73,IconUploadcareImageUpload as _0x4fe539,IconError as _0x1ded43,IconUploadcareImageEdit as _0x364002}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3e512e,MenuBarMenuListItemButtonView as _0x8eee56,View as _0x2fe1b2,FocusCycler as _0x1ba751,Dialog as _0x170bfe,DialogViewPosition as _0x182982,SpinnerView as _0x2bff5a,IconView as _0x48209c,Notification as _0x27de56}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x54daa3,DomEmitterMixin as _0x36a661,global as _0x3a53c9,getAncestors as _0x5a21d7,ObservableMixin as _0x5cf3c6,uid as _0x276b8e,createElement as _0x4b8c50}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x22d3f3}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x122436,info as _0x4ce6a4}from'@uploadcare/upload-client';import*as _0x26078e from'@uploadcare/file-uploader';var i=function(_0x38a265){return _0x38a265['Local']='local',_0x38a265['URL']='url',_0x38a265['Dropbox']='dropbox',_0x38a265['GDrive']='gdrive',_0x38a265['Facebook']='facebook',_0x38a265['GPhotos']='gphotos',_0x38a265['OneDrive']='onedrive',_0x38a265;}({});function _(_0x5dedcd,_0x622201,_0x12e798){const t=_0x5dedcd['t'],_0x4391e8=_0x5dedcd['t'];switch(_0x622201){case i['Local']:return{'text':_0x4391e8('Insert'===_0x12e798?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4391e8('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x12e798?_0x4391e8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4391e8('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x12e798?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x12e798?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x12e798?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x12e798?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x12e798?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x622201;}}class e extends _0x2b631a{['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 _0x12b802=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3062ae;for(const _0x4aec2c in _0x12b802){const _0x3bf031=_0x4aec2c,_0x5b2866=_0x12b802[_0x3bf031];if('uploadcareLicenseKeyValid'==_0x5b2866||'uploadcareLicenseKeyInvalid'==_0x5b2866||'uploadcareLicenseKeyExpired'==_0x5b2866||'uploadcareLicenseKeyDomainLimit'==_0x5b2866||'uploadcareLicenseKeyNotAllowed'==_0x5b2866||'uploadcareLicenseKeyEvaluationLimit'==_0x5b2866||'uploadcareLicenseKeyTrialLimit'==_0x5b2866||'uploadcareLicenseKeyUsageLimit'==_0x5b2866){delete _0x12b802[_0x3bf031],_0x3062ae=_0x5b2866,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3062ae&&_0x12b802['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3062ae&&_0x12b802['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3062ae&&_0x12b802['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3062ae&&_0x12b802['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3062ae&&_0x12b802['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3062ae&&_0x12b802['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3062ae&&_0x12b802['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x18c6f4}=this,_0x240096=_0x18c6f4['commands']['get']('uploadcare');if(!_0x240096)return;const _0x8a8af9=this['_normalizeConfigSourceList'](_0x18c6f4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x30176b,_0x3c9899)=>{const _0x13c207=this['_getIntegrationKey'](_0x3c9899['type']);return _0x30176b[_0x13c207]||(_0x30176b[_0x13c207]=[]),_0x30176b[_0x13c207]['push'](_0x3c9899),_0x30176b;},{});_0x18c6f4['plugins']['has']('ImageInsertUI')&&_0x18c6f4['commands']['get']('uploadcare')&&Object['entries'](_0x8a8af9)['forEach'](([_0x228761,_0x16fb32])=>{_0x18c6f4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x228761,'observable':()=>_0x240096,'buttonViewCreator':()=>this['_createToolbarButton'](_0x16fb32),'formViewCreator':()=>this['_createDropdownButtons'](_0x16fb32),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x16fb32),'override':'assetManager'!==_0x228761});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4fb9ad){const {locale:_0x508712}=this['editor'];return _0x4fb9ad['map'](_0x2c6aa2=>{const _0xf57001=_(_0x508712,_0x2c6aa2,'Insert');switch(_0x2c6aa2){case i['Local']:return{'icon':_0x4fe539,'type':i['Local'],..._0xf57001};case i['URL']:return{'icon':_0x35bc73,'type':i['URL'],..._0xf57001};case i['Dropbox']:return{'icon':_0xd59dfd,'type':i['Dropbox'],..._0xf57001};case i['Facebook']:return{'icon':_0x2bb54e,'type':i['Facebook'],..._0xf57001};case i['GDrive']:return{'icon':_0x2e4200,'type':i['GDrive'],..._0xf57001};case i['GPhotos']:return{'icon':_0x599ef3,'type':i['GPhotos'],..._0xf57001};case i['OneDrive']:return{'icon':_0x29c00d,'type':i['OneDrive'],..._0xf57001};}});}['_getIntegrationKey'](_0x218154){switch(_0x218154){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x23a77f,_0x19ec2b){const _0x67947d=this['editor'],_0x3fca76=new _0x23a77f(_0x67947d['locale']),_0x28f812=_0x67947d['commands']['get']('uploadcare');return _0x3fca76['bind']('isEnabled')['to'](_0x28f812),_0x3fca76['on']('execute',()=>{_0x28f812['execute'](_0x19ec2b);}),_0x3fca76;}['_createToolbarButton'](_0x3947aa){const {locale:_0x505b3a}=this['editor'],_0x2d693f=this['editor']['plugins']['get']('ImageInsertUI'),_0x327f2b=_0x3947aa[0x0],_0x3838a9=this['_createButton'](_0x3e512e,_0x327f2b['type']);return _0x3838a9['icon']=_0x327f2b['icon'],_0x3838a9['bind']('label')['to'](_0x2d693f,'isImageSelected',_0xdc6bc6=>_(_0x505b3a,_0x327f2b['type'],_0xdc6bc6?'Replace':'Insert')['text']),_0x3838a9['tooltip']=!0x0,_0x3838a9;}['_createDropdownButtons'](_0x594208){const {locale:_0x1b2028}=this['editor'],_0x4648af=this['editor']['plugins']['get']('ImageInsertUI');return _0x594208['map'](_0x587e3d=>{const _0x32303b=this['_createButton'](_0x3e512e,_0x587e3d['type']);return _0x32303b['withText']=!0x0,_0x32303b['icon']=_0x587e3d['icon'],_0x32303b['bind']('label')['to'](_0x4648af,'isImageSelected',_0x38dd36=>_(_0x1b2028,_0x587e3d['type'],_0x38dd36?'Replace':'Insert')['text']),_0x32303b;});}['_createMenuBarButtons'](_0x15c5b7){return _0x15c5b7['map'](_0x306ff2=>{const _0x26ba56=this['_createButton'](_0x8eee56,_0x306ff2['type']);return _0x26ba56['icon']=_0x306ff2['icon'],_0x26ba56['label']=_0x306ff2['shortText'],_0x26ba56;});}}class F extends _0x2fe1b2{['focusTracker'];['focusCycler'];constructor(_0x121953){super(_0x121953),this['focusTracker']=new _0x54daa3(),this['focusCycler']=new _0x1ba751({'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(_0x3a01f1,_0x384133){super(_0x3a01f1),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-'+_0x384133}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x421f29,_0x431718){const _0x5b6621=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x28bcb4=>_0x28bcb4<=_0x431718)['map'](_0x43a795=>_0x421f29['replace'](/\/$/,'')+'/-/resize/'+_0x43a795+'x/\x20'+_0x43a795+'w');return{'imageFallbackUrl':_0x421f29,'imageSources':[{'srcset':_0x5b6621['join'](',\x20'),'sizes':'(max-width:\x20'+_0x431718+'px)\x20100vw,\x20'+_0x431718+'px','type':'image/webp'}]};}function C(_0x18604c,_0x3a4567,_0x3078b1){const _0x40a6cc=_0x18604c['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x40a6cc?parseInt(_0x40a6cc[0x1],0xa):_0x3a4567,'height':_0x40a6cc?parseInt(_0x40a6cc[0x2],0xa):_0x3078b1};}function p(_0x2dc99c,_0x54d725){const _0xd55a71=new(_0x36a661())(),_0x9ba812=_0x2dc99c['plugins']['get']('ImageUtils'),_0x5ed198=_0x2dc99c['editing']['mapper']['toViewElement'](_0x54d725),_0x2abb9d=_0x9ba812['findViewImgElement'](_0x5ed198),_0xa565f9=_0x2dc99c['editing']['view']['domConverter']['viewToDom'](_0x2abb9d),_0x28a106=_0x54d725['getAttribute']('width'),_0x1e5e24=_0x54d725['getAttribute']('height'),_0x58be0b='image-processing';_0x2dc99c['editing']['view']['change'](_0x3a3e64=>{_0x3a3e64['addClass'](_0x58be0b,_0x5ed198),_0x3a3e64['setStyle']('aspect-ratio',_0x28a106+'/'+_0x1e5e24,_0x2abb9d);}),_0xd55a71['listenTo'](_0xa565f9,'load',()=>{_0xd55a71['stopListening'](_0xa565f9,'load'),_0x2dc99c['editing']['view']['change'](_0x30b5e3=>{_0x30b5e3['removeClass'](_0x58be0b,_0x5ed198),_0x30b5e3['removeStyle']('aspect-ratio',_0x2abb9d);});});}function G(_0x584b3c){if(Array['isArray'](_0x584b3c)){const _0x21c4b7=_0x584b3c['map'](G);return _0x40fc63=>_0x21c4b7['some'](_0x10b387=>_0x10b387(_0x40fc63));}if('origin'==_0x584b3c){const _0x2b5dd6=_0x3a53c9['window']['location']['origin'];return _0x2683bb=>new URL(_0x2683bb,_0x3a53c9['document']['baseURI'])['origin']==_0x2b5dd6;}return'function'==typeof _0x584b3c?_0x584b3c:_0x584b3c instanceof RegExp?_0xb71455=>!(!_0xb71455['match'](_0x584b3c)&&!_0xb71455['replace'](/^https?:\/\//,'')['match'](_0x584b3c)):()=>!0x1;}function S(_0x406d04,_0x37da22){return _0x5a21d7(_0x406d04['target'])['includes'](_0x37da22);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5cf3c6(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x54a28b,_0x602667,_0x55b594){super(),this['_editor']=_0x54a28b,this['_editing']=_0x602667,this['_dialog']=_0x54a28b['plugins']['get'](_0x170bfe),this['_api']=_0x602667['ctxElement']['getAPI'](),this['_type']=_0x55b594,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:_0x4c0622,model:_0xb70fad}=this['_editor'],_0x1f4014=_0xb70fad['document']['selection']['getSelectedElement'](),_0x36def8=_0x1f4014&&(_0x1f4014['is']('element','imageBlock')||_0x1f4014['is']('element','imageInline'));this['_formView']=new x(_0x4c0622,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4fe539,'title':_(_0x4c0622,this['_type'],_0x36def8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x182982['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5f2672=>!S(_0x5f2672,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x365c94}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3d9a18=>{const _0x5f33e5=_0x365c94['length'];for(const _0x5ea2c0 of _0x365c94){const _0x43e005=_0x5ea2c0===_0x365c94[_0x5f33e5-0x1],{cdnUrl:_0x8250bc,fileInfo:_0x394983}=_0x5ea2c0;if(!_0x8250bc||!_0x394983)continue;const {width:_0x4a55ff,height:_0x36cfb8}=_0x394983['imageInfo'],_0x36e683=C(_0x8250bc,_0x4a55ff,_0x36cfb8),_0x2877c9=k(_0x8250bc,_0x36e683['width']),_0x263221={'id':_0x394983['uuid'],'type':'image','attributes':{'imageDimension':_0x36e683,..._0x2877c9}};this['_insertAsset'](_0x263221,_0x43e005,_0x3d9a18);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5d63af=>{'idle'===_0x5d63af['detail']['status']&&!_0x5d63af['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x500e50,_0x2527f2,_0x4ba3bc){const _0x5566d1=this['_editor']['model']['document']['selection'],_0x4145d3=_0x5566d1['getSelectedElement'](),_0x31608b=!(!_0x4145d3||!_0x4145d3['is']('element','imageInline'));_0x4ba3bc['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x500e50,_0x31608b),_0x2527f2||_0x4ba3bc['setSelection'](_0x5566d1['getLastPosition']());}['_insertImage'](_0x32677a,_0x1f7b01){const _0x1dfed3=this['_editor'],{imageDimension:_0x466fae,imageFallbackUrl:_0x4e7372,imageSources:_0x53e98a}=_0x32677a['attributes'];_0x1dfed3['execute']('insertImage',{'imageType':_0x1f7b01?'imageInline':null,'source':{'uploadcareImageId':_0x32677a['id'],'src':_0x4e7372,'sources':_0x53e98a,..._0x466fae}});}}class w extends _0x5474e0{['_editing'];['_controller']=null;static get['requires'](){return[_0x170bfe,o];}constructor(_0x50596c){super(_0x50596c),this['_editing']=_0x50596c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5d1e6e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5d1e6e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3658ce,publicKey:_0x4c6f4e,signal:_0x5056af,onProgress:_0x4d7ecf}){return _0x122436(_0x3658ce,{'publicKey':_0x4c6f4e,'store':'auto','signal':_0x5056af,'onProgress':_0x4d7ecf});}static['getInfo'](_0x1f1333,_0x2448ee){return _0x4ce6a4(_0x1f1333,_0x2448ee);}}class f extends _0x2b631a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x22d3f3,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x860dc4=this['editor'];if(!!!_0x860dc4['config']['get']('uploadcare'))return;_0x860dc4['plugins']['get'](_0x22d3f3)['createUploadAdapter']=_0x697768=>new A(_0x697768,_0x860dc4),_0x860dc4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3a8327,{imageElement:_0x535ed0,data:_0x2fe19e})=>{_0x860dc4['model']['change'](_0x5b988d=>{_0x5b988d['setAttribute']('uploadcareImageId',_0x2fe19e['uploadcareImageId'],_0x535ed0);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x668d25,_0x129a9f){this['loader']=_0x668d25,this['editor']=_0x129a9f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3e48d4=this['editor']['config']['get']('uploadcare.pubkey'),_0x98b19b=await this['loader']['file'];return j['upload']({'file':_0x98b19b,'publicKey':_0x3e48d4,'signal':this['controller']['signal'],'onProgress':_0x4778fc=>{_0x4778fc&&_0x4778fc['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4778fc['value']);}})['then'](async _0x3469ee=>{const {imageFallbackUrl:_0x5a782b,imageSources:_0x58312b}=k(_0x3469ee['cdnUrl'],_0x3469ee['imageInfo']['width']);return{'uploadcareImageId':_0x3469ee['uuid'],'default':_0x5a782b,'sources':_0x58312b};})['catch'](()=>{const _0x4ae32d=t('Cannot\x20upload\x20file:')+('\x20'+_0x98b19b['name']+'.');return Promise['reject'](_0x4ae32d);});}['abort'](){this['controller']['abort']();}}class o extends _0x2b631a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x170bfe];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2af21d){super(_0x2af21d),this['ucContextId']=_0x276b8e();}['init'](){const _0x5807dc=this['editor'];_0x5807dc['commands']['add']('uploadcare',new w(_0x5807dc));}['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 _0x4b010e=_0x3a53c9['document']['querySelector']('input[uploadcare-file-input]');_0x4b010e&&_0x4b010e['remove']();}),async function(_0x1bb8fc){const _0xe9be80=_0x22b2b5([0x6a,0x68,0x62,0x52,0x4e,0x6f,0x58,0x39,0x42,0x6b,0x7a,0x78,0x6c,0x67,0x37,0x54,0x64,0x47,0x77,0x34,0x75,0x56,0x66,0x48,0x73,0x4a,0x6e,0x53,0x31,0x46,0x45,0x38,0x51,0x36,0x70,0x6d,0x59,0x69,0x65,0x63,0x71,0x61,0x43,0x30,0x57,0x32,0x76,0x5a,0x4b,0x4c,0x4f,0x35,0x72,0x50,0x55,0x41,0x79,0x49,0x74,0x4d,0x44,0x33]),_0x18ed54=0x16f2b914,_0x37a81d=0x16f5d544^_0x18ed54,_0x4cf758=window[_0x22b2b5([0x44,0x61,0x74,0x65])][_0x22b2b5([0x6e,0x6f,0x77])](),_0x45e7a0=_0x1bb8fc[_0x22b2b5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x103627=new window[(_0x22b2b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57e07b=>{_0x45e7a0[_0x22b2b5([0x6f,0x6e,0x63,0x65])](_0x22b2b5([0x72,0x65,0x61,0x64,0x79]),_0x57e07b);}),_0x2a39ae={[_0x22b2b5([0x6b,0x74,0x79])]:_0x22b2b5([0x45,0x43]),[_0x22b2b5([0x75,0x73,0x65])]:_0x22b2b5([0x73,0x69,0x67]),[_0x22b2b5([0x63,0x72,0x76])]:_0x22b2b5([0x50,0x2d,0x32,0x35,0x36]),[_0x22b2b5([0x78])]:_0x22b2b5([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]),[_0x22b2b5([0x79])]:_0x22b2b5([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]),[_0x22b2b5([0x61,0x6c,0x67])]:_0x22b2b5([0x45,0x53,0x32,0x35,0x36])},_0x2dd82b=_0x45e7a0[_0x22b2b5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22b2b5([0x67,0x65,0x74])](_0x22b2b5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36b227(){let _0x40b1e1,_0x57bd05=null,_0x57ede0=null;try{if(_0x2dd82b==_0x22b2b5([0x47,0x50,0x4c]))return _0x22b2b5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x40b1e1=_0x5b91f8(),!_0x40b1e1)return _0x22b2b5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x40b1e1[_0x22b2b5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57ede0=_0x771b72(_0x40b1e1[_0x22b2b5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x40b1e1[_0x22b2b5([0x6a,0x74,0x69])])),await _0x31b7cc()?_0xb6baaa()?_0x1aebfc()?_0x22b2b5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x130f51()?(_0x40b1e1[_0x22b2b5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22b2b5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57bd05=_0x2affe9(_0x22b2b5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x40b1e1[_0x22b2b5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22b2b5([0x74,0x72,0x69,0x61,0x6c])&&(_0x57bd05=_0x2affe9(_0x22b2b5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b177e()):_0x22b2b5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22b2b5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22b2b5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x22b2b5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1aebfc(){const _0x3407f4=[_0x22b2b5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22b2b5([0x74,0x72,0x69,0x61,0x6c])][_0x22b2b5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40b1e1[_0x22b2b5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4cf758/0x3e8:0xe10*_0x37a81d;return _0x40b1e1[_0x22b2b5([0x65,0x78,0x70])]<_0x3407f4;}function _0xb6baaa(){const _0x831b10=_0x40b1e1[_0x22b2b5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x831b10&&(!!_0x831b10[_0x22b2b5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22b2b5([0x2a]))||!!_0x831b10[_0x22b2b5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22b2b5([0x55,0x50,0x4c,0x43])));}function _0x130f51(){const _0x5d23cd=_0x40b1e1[_0x22b2b5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d23cd||0x0==_0x5d23cd[_0x22b2b5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59e693}=new URL(window[_0x22b2b5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d23cd[_0x22b2b5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59e693))return!0x0;const _0x373b4e=_0x59e693[_0x22b2b5([0x73,0x70,0x6c,0x69,0x74])](_0x22b2b5([0x2e]));return _0x5d23cd[_0x22b2b5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x303d03=>_0x303d03[_0x22b2b5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22b2b5([0x2a])))[_0x22b2b5([0x6d,0x61,0x70])](_0x427156=>_0x427156[_0x22b2b5([0x73,0x70,0x6c,0x69,0x74])](_0x22b2b5([0x2e])))[_0x22b2b5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35fb04=>_0x35fb04[_0x22b2b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x373b4e[_0x22b2b5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22b2b5([0x6d,0x61,0x70])](_0xb10372=>Array(_0x373b4e[_0x22b2b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xb10372[_0x22b2b5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22b2b5([0x66,0x69,0x6c,0x6c])](_0xb10372[0x0]===_0x22b2b5([0x2a])?_0x22b2b5([0x2a]):'')[_0x22b2b5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xb10372))[_0x22b2b5([0x73,0x6f,0x6d,0x65])](_0x162a67=>_0x373b4e[_0x22b2b5([0x65,0x76,0x65,0x72,0x79])]((_0x41137e,_0x4a344e)=>_0x162a67[_0x4a344e]===_0x41137e||_0x162a67[_0x4a344e]===_0x22b2b5([0x2a])));}function _0x3b177e(){return _0x57bd05&&_0x57ede0?new window[(_0x22b2b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9d5c49,_0x575d7f)=>{_0x57bd05[_0x22b2b5([0x74,0x68,0x65,0x6e])](_0x9d5c49,_0x575d7f),_0x57ede0[_0x22b2b5([0x74,0x68,0x65,0x6e])](_0x30e95b=>{_0x30e95b!=_0x22b2b5([0x56,0x61,0x6c,0x69,0x64])&&_0x9d5c49(_0x30e95b);},_0x575d7f);}):_0x57bd05||_0x57ede0||_0x22b2b5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x771b72(_0x44c416,_0x2ab1bd){return new window[(_0x22b2b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53e450=>{if(_0xd10f2a())return _0x53e450(_0x22b2b5([0x56,0x61,0x6c,0x69,0x64]));_0x5c7354(),_0x45e7a0[_0x22b2b5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22b2b5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c5a4d=!0x1;const _0x1be945=_0x276b8e();function _0x4e2e72(_0x5cd7cc){return!!_0x5cd7cc&&(typeof _0x5cd7cc===_0x22b2b5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5cd7cc===_0x22b2b5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5cd7cc[_0x22b2b5([0x74,0x68,0x65,0x6e])]===_0x22b2b5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5cd7cc[_0x22b2b5([0x63,0x61,0x74,0x63,0x68])]===_0x22b2b5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f13a4(_0x204c85){_0x4c2867(_0x204c85)[_0x22b2b5([0x74,0x68,0x65,0x6e])](_0x179717=>{if(!_0x179717||_0x179717[_0x22b2b5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22b2b5([0x6f,0x6b]))return _0x22b2b5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x41409a(_0xe1d9d(_0x1be945+_0x2ab1bd))!=_0x179717[_0x22b2b5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22b2b5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22b2b5([0x56,0x61,0x6c,0x69,0x64]);})[_0x22b2b5([0x74,0x68,0x65,0x6e])](_0x44f52a=>(_0x3124bf(),_0x44f52a),()=>{const _0x399612=_0x46f564();return null==_0x399612?(_0x3124bf(),_0x22b2b5([0x56,0x61,0x6c,0x69,0x64])):_0x22b2b5(_0x4cf758-_0x399612>(0x32fe3d14^_0x18ed54)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22b2b5([0x74,0x68,0x65,0x6e])](_0x53e450)[_0x22b2b5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x53e450(_0x22b2b5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2ad9f1=0x16c45794^_0x18ed54;function _0x3124bf(){const _0x59ca0e=_0x22b2b5([0x6c,0x6c,0x63,0x74,0x2d])+_0x41409a(_0xe1d9d(_0x44c416)),_0x18ed95=_0x293107(_0x41409a(window[_0x22b2b5([0x4d,0x61,0x74,0x68])][_0x22b2b5([0x63,0x65,0x69,0x6c])](_0x4cf758/_0x2ad9f1)));window[_0x22b2b5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22b2b5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59ca0e,_0x18ed95);}function _0x46f564(){const _0x43ff64=_0x22b2b5([0x6c,0x6c,0x63,0x74,0x2d])+_0x41409a(_0xe1d9d(_0x44c416)),_0x25c40c=window[_0x22b2b5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22b2b5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43ff64);return _0x25c40c?window[_0x22b2b5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x293107(_0x25c40c),0x10)*_0x2ad9f1:null;}function _0x4c2867(_0x32e8f5){return new window[(_0x22b2b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59f2f7,_0x533d27)=>{_0x32e8f5[_0x22b2b5([0x74,0x68,0x65,0x6e])](_0x59f2f7,_0x533d27),window[_0x22b2b5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x533d27,0x16f36dd4^_0x18ed54);});}}_0x45e7a0[_0x22b2b5([0x6f,0x6e])](_0x22b2b5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b171a,_0xabd800)=>{if(_0xabd800[0x0]!=_0x44c416)return _0x53e450(_0x22b2b5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xabd800[0x1]={..._0xabd800[0x1],[_0x22b2b5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1be945};},{[_0x22b2b5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22b2b5([0x68,0x69,0x67,0x68])}),_0x45e7a0[_0x22b2b5([0x6f,0x6e])](_0x22b2b5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5aff92=>{_0x4e2e72(_0x5aff92[_0x22b2b5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c5a4d=!0x0,_0x2f13a4(_0x5aff92[_0x22b2b5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22b2b5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22b2b5([0x6c,0x6f,0x77])}),_0x103627[_0x22b2b5([0x74,0x68,0x65,0x6e])](()=>{_0x3c5a4d||_0x53e450(_0x22b2b5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd10f2a(){return _0x45e7a0[_0x22b2b5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22b2b5([0x76,0x69,0x65,0x77])][_0x22b2b5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22b2b5([0x61,0x75,0x74,0x6f]);}function _0x5c7354(){_0x45e7a0[_0x22b2b5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22b2b5([0x76,0x69,0x65,0x77])][_0x22b2b5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22b2b5([0x61,0x75,0x74,0x6f]);}}function _0x2affe9(_0x34b2ae){const _0xb6dd82=[new window[(_0x22b2b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3513c7=>setTimeout(_0x3513c7,0x16fb87d8^_0x18ed54)),_0x103627[_0x22b2b5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22b2b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f6fef=>{let _0x2986e1=0x0;_0x45e7a0[_0x22b2b5([0x6d,0x6f,0x64,0x65,0x6c])][_0x22b2b5([0x6f,0x6e])](_0x22b2b5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3fc192,_0x321b3e)=>{_0x321b3e[0x0][_0x22b2b5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2986e1++,_0x2986e1==(0x16f2b8ec^_0x18ed54)&&(_0x2f6fef(),_0x3fc192[_0x22b2b5([0x6f,0x66,0x66])]());});}))];return window[_0x22b2b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22b2b5([0x72,0x61,0x63,0x65])](_0xb6dd82)[_0x22b2b5([0x74,0x68,0x65,0x6e])](()=>_0x34b2ae);}async function _0x25f872(){await _0x103627,_0x45e7a0[_0x22b2b5([0x6d,0x6f,0x64,0x65,0x6c])][_0x22b2b5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x182fb0,_0x45e7a0[_0x22b2b5([0x6d,0x6f,0x64,0x65,0x6c])][_0x22b2b5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x182fb0,_0x45e7a0[_0x22b2b5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22b2b5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x440e9a(_0x28baaf){const _0x47f206=_0x2b5548();_0x45e7a0[_0x47f206]=_0x22b2b5([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x28baaf,_0x28baaf!=_0x22b2b5([0x56,0x61,0x6c,0x69,0x64])&&_0x25f872();}function _0x2b5548(){const _0x164efe=window[_0x22b2b5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22b2b5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22b2b5([0x6e,0x6f,0x77])]())[_0x22b2b5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22b2b5([0x2e]),'');let _0x3d647c=_0x22b2b5([0x6a]);for(let _0x4a792a=0x0;_0x4a792a<_0x164efe[_0x22b2b5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a792a+=0x2){let _0x5420dd=window[_0x22b2b5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x164efe[_0x22b2b5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a792a,_0x4a792a+0x2));_0x5420dd>=_0xe9be80[_0x22b2b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5420dd-=_0xe9be80[_0x22b2b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d647c+=_0xe9be80[_0x5420dd];}return _0x3d647c;}function _0x5b91f8(){const _0x4bd16c=_0x2dd82b[_0x22b2b5([0x73,0x70,0x6c,0x69,0x74])](_0x22b2b5([0x2e]));if(0x3!=_0x4bd16c[_0x22b2b5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x949fa4(_0x4bd16c[0x1]);function _0x949fa4(_0x476df5){const _0x2c1836=_0x57b91f(_0x476df5);return _0x2c1836&&_0x47d63f()?_0x2c1836:null;function _0x47d63f(){const _0x528bdb=_0x2c1836[_0x22b2b5([0x6a,0x74,0x69])],_0x289594=window[_0x22b2b5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x528bdb[_0x22b2b5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x528bdb[_0x22b2b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ca9c9={..._0x2c1836,[_0x22b2b5([0x6a,0x74,0x69])]:_0x528bdb[_0x22b2b5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x528bdb[_0x22b2b5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ca9c9[_0x22b2b5([0x76,0x63])],_0xe1d9d(_0x3ca9c9)==_0x289594;}}}async function _0x31b7cc(){let _0x174ab5=!0x0;try{const _0x757486=_0x2dd82b[_0x22b2b5([0x73,0x70,0x6c,0x69,0x74])](_0x22b2b5([0x2e])),[_0x43bea4,_0x351d02,_0x4f41ac]=_0x757486;return _0x17a6c7(_0x43bea4),await _0x532935(_0x43bea4,_0x351d02,_0x4f41ac),_0x174ab5;}catch{return!0x1;}function _0x17a6c7(_0x10a474){const _0x2db94e=_0x57b91f(_0x10a474);_0x2db94e&&_0x2db94e[_0x22b2b5([0x61,0x6c,0x67])]==_0x22b2b5([0x45,0x53,0x32,0x35,0x36])||(_0x174ab5=!0x1);}async function _0x532935(_0x1e2255,_0x54372a,_0x4deae4){const _0x33e604=window[_0x22b2b5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22b2b5([0x66,0x72,0x6f,0x6d])](_0x3b5174(_0x4deae4),_0x416c4c=>_0x416c4c[_0x22b2b5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x522487=new window[(_0x22b2b5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22b2b5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e2255+_0x22b2b5([0x2e])+_0x54372a),_0x487716=window[_0x22b2b5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22b2b5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x487716)return;const _0x350488=await _0x487716[_0x22b2b5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22b2b5([0x6a,0x77,0x6b]),_0x2a39ae,{[_0x22b2b5([0x6e,0x61,0x6d,0x65])]:_0x22b2b5([0x45,0x43,0x44,0x53,0x41]),[_0x22b2b5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22b2b5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22b2b5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x487716[_0x22b2b5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22b2b5([0x6e,0x61,0x6d,0x65])]:_0x22b2b5([0x45,0x43,0x44,0x53,0x41]),[_0x22b2b5([0x68,0x61,0x73,0x68])]:{[_0x22b2b5([0x6e,0x61,0x6d,0x65])]:_0x22b2b5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x350488,_0x33e604,_0x522487)||(_0x174ab5=!0x1);}}function _0x57b91f(_0x2ba567){return _0x2ba567[_0x22b2b5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22b2b5([0x65,0x79]))?JSON[_0x22b2b5([0x70,0x61,0x72,0x73,0x65])](_0x3b5174(_0x2ba567)):null;}function _0x3b5174(_0x16ec44){return window[_0x22b2b5([0x61,0x74,0x6f,0x62])](_0x16ec44[_0x22b2b5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22b2b5([0x2b]))[_0x22b2b5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22b2b5([0x2f])));}function _0xe1d9d(_0x38a391){let _0x20d35c=0x1505;function _0x14c95c(_0x3cd352){for(let _0x4d48ca=0x0;_0x4d48ca<_0x3cd352[_0x22b2b5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d48ca++){const _0x44def0=_0x3cd352[_0x22b2b5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4d48ca);_0x20d35c=(_0x20d35c<<0x5)+_0x20d35c+_0x44def0,_0x20d35c&=_0x20d35c;}}function _0x122c52(_0x592038){Array[_0x22b2b5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x592038)?_0x592038[_0x22b2b5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x122c52):_0x592038&&typeof _0x592038==_0x22b2b5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22b2b5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x592038)[_0x22b2b5([0x73,0x6f,0x72,0x74])]()[_0x22b2b5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x48ff64,_0x5aa0c3])=>{_0x14c95c(_0x48ff64),_0x122c52(_0x5aa0c3);}):_0x14c95c(window[_0x22b2b5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x592038));}return _0x122c52(_0x38a391),_0x20d35c>>>0x0;}function _0x41409a(_0x1da4fd){return _0x1da4fd[_0x22b2b5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22b2b5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22b2b5([0x30]));}function _0x293107(_0x520717){return _0x520717[_0x22b2b5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22b2b5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22b2b5([0x6a,0x6f,0x69,0x6e])]('');}function _0x182fb0(){}function _0x22b2b5(_0xa3a134){return _0xa3a134['map'](_0x1bee64=>String['fromCharCode'](_0x1bee64))['join']('');}_0x440e9a(await _0x36b227());}(this);}['_initSchema'](){const _0x50cd86=this['editor']['model']['schema'];_0x50cd86['isRegistered']('imageBlock')&&_0x50cd86['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x50cd86['isRegistered']('imageInline')&&_0x50cd86['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5af2b3=this['editor'];_0x5af2b3['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5af2b3['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x412172=>_0x412172['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x36e982=_0x5af2b3['commands']['get']('replaceImageSource');_0x36e982&&this['listenTo'](_0x36e982,'cleanupImage',(_0x1e695e,[_0x1f8c22,_0x3eebda])=>{_0x1f8c22['removeAttribute']('uploadcareImageId',_0x3eebda);});}['_initConfig'](){const _0xfa572c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x364ffb=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4b8c50(_0x3a53c9['document'],'uc-config',{..._0xfa572c,'pubkey':_0x364ffb,'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']=_0x411e6d=>{if('closeMax'==_0x411e6d)return'#uc-icon-arrow-down';},_0x3a53c9['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4b8c50(_0x3a53c9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3a53c9['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xf0fa4b=this['editor']['commands']['get']('insertImage');_0xf0fa4b&&this['listenTo'](_0xf0fa4b,'execute',()=>{const _0x1e1afb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1e1afb&&_0x1e1afb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1e1afb);});});const _0x16cdf4=this['editor']['commands']['get']('uploadcareImageReplace');_0x16cdf4&&this['listenTo'](_0x16cdf4,'execute',()=>{const _0x30af27=this['editor']['model']['document']['selection']['getSelectedElement']();_0x30af27&&_0x30af27['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x30af27);});});}}class tt extends _0x2b631a{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d9090){super(_0x4d9090),_0x4d9090['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x26078e['defineComponents'](_0x26078e);}}class ii extends _0x2fe1b2{constructor(_0x46333a){super(_0x46333a);const t=_0x46333a['t'],_0x31a088=this['bindTemplate'],_0x368d5c=new _0x2bff5a();_0x368d5c['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':[_0x368d5c,{'text':_0x31a088['to']('imageUploadProgress',_0x25458c=>t('Loading\x20image...')+'\x20('+(_0x25458c||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 _0x2fe1b2{constructor(_0x4d7739){super(_0x4d7739);const t=_0x4d7739['t'];this['set']('errorType',null);const _0x322b48=new _0x3e512e(_0x4d7739);_0x322b48['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x322b48['withText']=!0x0,_0x322b48['class']='ck-button-action',_0x322b48['on']('execute',()=>{this['fire']('retry');}),_0x322b48['bind']('isVisible')['to'](this,'errorType',_0x3026cf=>'NotFound'!==_0x3026cf);const _0xc333d0=new _0x48209c();_0xc333d0['content']=_0x1ded43,_0xc333d0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1746f8=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':[_0xc333d0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1746f8['to']('errorType',_0x4d0322=>t('NotFound'!==_0x4d0322?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x322b48]},{'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 _0x2fe1b2{constructor(_0x4c41d8,_0xfe2cce){super(_0x4c41d8);const _0x19f90b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xfe2cce,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x19f90b['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x367d3e,_0x27d354,_0xe441f5){super(_0x367d3e),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x367d3e),this['_errorView']=new ti(_0x367d3e),this['_editingView']=new ei(_0x367d3e,_0xe441f5),this['_focusableView']=new _0x2fe1b2(_0x367d3e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x27d354),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'],_0x3b0e03=>{this['_addUploadcareImageEditorListeners'](_0x3b0e03);});}),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'](_0x454974,_0x43087){const _0xc894d3='uc-cloud-image-editor',_0x10eeaa=_0x454974['querySelector'](_0xc894d3);if(_0x10eeaa)return _0x43087(_0x10eeaa);const _0x45abf1=new MutationObserver(_0x437f79=>{const _0x3b4f4c=_0x437f79['filter'](_0x10a572=>_0x10a572['target']===_0x454974&&_0x10a572['addedNodes']['length']>0x0&&_0x10a572['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xc894d3);_0x3b4f4c['length']&&(_0x45abf1['disconnect'](),_0x43087(_0x3b4f4c[0x0]['addedNodes'][0x0]));});_0x45abf1['observe'](_0x454974,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4746df){_0x4746df['addEventListener']('apply',_0xd43554=>{this['fire']('apply',{'imageSrc':_0xd43554['detail']['cdnUrl']});}),_0x4746df['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5cf3c6(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x23e94b,_0x5cd2a7,_0x3d0a39){super(),this['_editor']=_0x23e94b,this['_dialog']=_0x5cd2a7,this['_imageElement']=_0x3d0a39,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 _0x13e129=this['_imageElement'],_0x42bac7=_0x13e129['getAttribute']('uploadcareImageId'),_0x7e112b=_0x13e129['getAttribute']('src');if(_0x42bac7)await this['_loadImageInfo'](_0x42bac7,_0x7e112b);else{if(this['_imageCache']['has'](_0x7e112b)){const _0x49bbbd=this['_imageCache']['get'](_0x7e112b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x49bbbd['url'],this['imageDimension']=_0x49bbbd['dimension'],this['imageId']=_0x49bbbd['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2cd3e3}=this['_editor'],t=_0x2cd3e3['t'],_0x40fedf=new X(_0x2cd3e3,this['imageStatus'],this['_attributes']);_0x40fedf['bind']('status')['to'](this,'imageStatus'),_0x40fedf['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x40fedf['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x40fedf['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x40fedf,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x364002,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x40fedf,'position':_0x182982['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x40fedf['focus']();},'onHide':()=>{_0x40fedf['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2f0300=>!S(_0x2f0300,_0x40fedf['element'])}});}['_loadImageInfo'](_0x587256,_0xa663f){return j['getInfo'](_0x587256,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5b942a=>{const {width:_0x2ca7fa,height:_0x3995ed}=_0x5b942a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xa663f,this['imageDimension']={'width':_0x2ca7fa,'height':_0x3995ed},this['imageId']=_0x587256;})['catch'](_0x279eef=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x279eef['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x35ccba,_0x2650d7){return this['_getImageAsFile'](_0x35ccba)['then'](_0x3a22b4=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2650d7['signal'],'file':_0x3a22b4,'onProgress':_0x585957=>{_0x585957&&_0x585957['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x585957['value']));}}))['then'](_0x54f6a0=>{const {width:_0x271171,height:_0x43a4ca}=_0x54f6a0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x54f6a0['cdnUrl'],this['imageDimension']={'width':_0x271171,'height':_0x43a4ca},this['imageId']=_0x54f6a0['uuid'],this['imageUploadProgress']=null;const _0x5ce116=_0x35ccba['getAttribute']('src');this['_imageCache']['set'](_0x5ce116,{'id':_0x54f6a0['uuid'],'url':_0x54f6a0['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5b6a2c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5b6a2c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x46fb89,_0x3c4cb9){_0x46fb89['on']('apply',(_0x529120,_0x1c475a)=>{this['_replaceImage'](_0x3c4cb9,_0x1c475a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x46fb89['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x46fb89['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1f5a76,_0x2fd969,_0x2d0a5c){const _0x321884=this['_editor'],{width:_0x2179a7,height:_0x36ea91}=C(_0x2fd969,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x304bca,imageSources:_0x510222}=k(_0x2fd969,_0x2179a7);_0x321884['model']['change'](_0x7f0d09=>{if('$graveyard'===_0x1f5a76['root']['rootName']){_0x321884['execute']('insertImage',{'imageType':_0x1f5a76['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1f5a76['getAttributes']()),'uploadcareImageId':_0x2d0a5c,'src':_0x304bca,'sources':_0x510222,'width':_0x2179a7,'height':_0x36ea91}});const _0x1761c9=_0x1f5a76['getChildren']();_0x1f5a76=_0x321884['model']['document']['selection']['getSelectedElement']();for(const _0x4c6434 of _0x1761c9)_0x7f0d09['append'](_0x7f0d09['cloneElement'](_0x4c6434),_0x1f5a76);}else _0x7f0d09['setSelection'](_0x1f5a76,'on'),_0x321884['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1f5a76['getAttributes']()),'uploadcareImageId':_0x2d0a5c,'src':_0x304bca,'sources':_0x510222,'width':_0x2179a7,'height':_0x36ea91},_0x1f5a76);_0x7f0d09['setSelection'](_0x1f5a76,'on');});}async['_getImageAsFile'](_0x2f9cc7){const _0x11fd74=_0x3a53c9['window'],_0x44a5a2=_0x3a53c9['document']['location']['href'],_0xb42a08=new _0x11fd74['URL'](_0x2f9cc7['getAttribute']('src'),_0x44a5a2);if('data:'===_0xb42a08['protocol']){const _0x1e73fd=_0xb42a08['href']['split'](','),_0x436fa2=_0x1e73fd[0x0]['match'](/:(.*?);/)[0x1],_0x4f552f=_0x436fa2['split']('/')[0x1],_0x2dc1aa=_0x11fd74['atob'](_0x1e73fd[_0x1e73fd['length']-0x1]);let _0x2822b2=_0x2dc1aa['length'];const _0x57a20e=new _0x11fd74['Uint8Array'](_0x2822b2);for(;_0x2822b2--;)_0x57a20e[_0x2822b2]=_0x2dc1aa['charCodeAt'](_0x2822b2);return new _0x11fd74['File']([_0x57a20e],'image.'+_0x4f552f,{'type':_0x436fa2});}const _0x5e8c8f=_0xb42a08['href']['split']('/'),_0x45e5ca=_0x5e8c8f[_0x5e8c8f['length']-0x1],_0x5dcdec=_0x45e5ca['split']('.')[0x1];return _0x11fd74['fetch'](_0xb42a08['href'])['then'](_0x20ecbe=>_0x20ecbe['clone']()['blob']())['then'](_0x2adcf4=>new _0x11fd74['File']([_0x2adcf4],_0x45e5ca,{'type':'image/'+_0x5dcdec}));}}class O extends _0x5474e0{['imageEditController'];static get['requires'](){return[_0x170bfe];}['_isEditable'];constructor(_0x5bb8db){super(_0x5bb8db),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x560784){const _0x4b0a88=G(_0x560784);return _0x4fce29=>!(!_0x4fce29||!_0x4fce29['is']('element','imageBlock')&&!_0x4fce29['is']('element','imageInline'))&&(!!_0x4fce29['hasAttribute']('uploadcareImageId')||!!_0x4fce29['hasAttribute']('src')&&_0x4b0a88(_0x4fce29['getAttribute']('src')));}(_0x5bb8db['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xc6feb2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xc6feb2);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5a5e64=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5a5e64&&(_0x5a5e64['is']('element','imageBlock')||_0x5a5e64['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x170bfe),_0x5a5e64),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x5474e0{['refresh'](){const _0x2ccf23=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2ccf23&&(_0x2ccf23['is']('element','imageBlock')||_0x2ccf23['is']('element','imageInline')));}['execute'](_0x40c87e){const _0x107e04=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2f6746=>{_0x2f6746['setAttributes'](_0x40c87e,_0x107e04),_0x2f6746['removeAttribute']('srcset',_0x107e04),_0x2f6746['removeAttribute']('sizes',_0x107e04);});}}class m extends _0x2b631a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x27de56,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x45ba2e}=this;_0x45ba2e['commands']['add']('uploadcareImageEdit',new O(_0x45ba2e)),_0x45ba2e['commands']['add']('uploadcareImageReplace',new R(_0x45ba2e));}}class g extends _0x2b631a{['_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 _0x43b2d2=this['editor'];_0x43b2d2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3abe1b=>{const _0x33a9b0=_0x43b2d2['commands']['get']('uploadcareImageEdit'),_0x4802b9=new _0x3e512e(_0x3abe1b),t=_0x3abe1b['t'];return _0x4802b9['set']({'icon':_0x364002,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4802b9['bind']('isEnabled')['to'](_0x33a9b0),_0x4802b9['bind']('isOn')['to'](_0x33a9b0,'isActive'),this['listenTo'](_0x4802b9,'execute',()=>{_0x43b2d2['execute']('uploadcareImageEdit'),_0x43b2d2['editing']['view']['focus']();}),_0x4802b9;}),this['_initConfig']();}['_initConfig'](){const _0x5386f5=_0x4b8c50(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5386f5),this['listenTo'](this['editor'],'destroy',()=>{_0x5386f5['remove']();});}}class et extends _0x2b631a{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':_0x1faec9=>0x1!=_0x1faec9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x40e0b6=>{const {af:{dictionary:_0x1b626b,getPluralForm:_0x249721}}={'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':_0x8beca6=>0x1!=_0x8beca6}};_0x40e0b6['af']||={'dictionary':{},'getPluralForm':null},_0x40e0b6['af']['dictionary']=Object['assign'](_0x40e0b6['af']['dictionary'],_0x1b626b),_0x40e0b6['af']['getPluralForm']=_0x249721;})(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':_0x3cde52=>0x0==_0x3cde52?0x0:0x1==_0x3cde52?0x1:0x2==_0x3cde52?0x2:_0x3cde52%0x64>=0x3&&_0x3cde52%0x64<=0xa?0x3:_0x3cde52%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x11abed=>{const {ar:{dictionary:_0x23a701,getPluralForm:_0xbb278f}}={'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':_0x58c3e0=>0x0==_0x58c3e0?0x0:0x1==_0x58c3e0?0x1:0x2==_0x58c3e0?0x2:_0x58c3e0%0x64>=0x3&&_0x58c3e0%0x64<=0xa?0x3:_0x58c3e0%0x64>=0xb?0x4:0x5}};_0x11abed['ar']||={'dictionary':{},'getPluralForm':null},_0x11abed['ar']['dictionary']=Object['assign'](_0x11abed['ar']['dictionary'],_0x23a701),_0x11abed['ar']['getPluralForm']=_0xbb278f;})(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':_0x40bbc8=>0x1!=_0x40bbc8}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4a5bee=>{const {ast:{dictionary:_0xc03030,getPluralForm:_0x5e09e7}}={'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':_0x450678=>0x1!=_0x450678}};_0x4a5bee['ast']||={'dictionary':{},'getPluralForm':null},_0x4a5bee['ast']['dictionary']=Object['assign'](_0x4a5bee['ast']['dictionary'],_0xc03030),_0x4a5bee['ast']['getPluralForm']=_0x5e09e7;})(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':_0x5f5196=>0x1!=_0x5f5196}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x176d0e=>{const {az:{dictionary:_0x21f7f4,getPluralForm:_0x2a55df}}={'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':_0x51192e=>0x1!=_0x51192e}};_0x176d0e['az']||={'dictionary':{},'getPluralForm':null},_0x176d0e['az']['dictionary']=Object['assign'](_0x176d0e['az']['dictionary'],_0x21f7f4),_0x176d0e['az']['getPluralForm']=_0x2a55df;})(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':_0x4d51a3=>_0x4d51a3%0xa==0x1&&_0x4d51a3%0x64!=0xb?0x0:_0x4d51a3%0xa>=0x2&&_0x4d51a3%0xa<=0x4&&(_0x4d51a3%0x64<0xa||_0x4d51a3%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x10b101=>{const {be:{dictionary:_0x2c41b3,getPluralForm:_0x3eccca}}={'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':_0x3e1045=>_0x3e1045%0xa==0x1&&_0x3e1045%0x64!=0xb?0x0:_0x3e1045%0xa>=0x2&&_0x3e1045%0xa<=0x4&&(_0x3e1045%0x64<0xa||_0x3e1045%0x64>=0x14)?0x1:0x2}};_0x10b101['be']||={'dictionary':{},'getPluralForm':null},_0x10b101['be']['dictionary']=Object['assign'](_0x10b101['be']['dictionary'],_0x2c41b3),_0x10b101['be']['getPluralForm']=_0x3eccca;})(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':_0x3aae2c=>0x1!=_0x3aae2c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4bf247=>{const {bg:{dictionary:_0xefd795,getPluralForm:_0x2ebe62}}={'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':_0x55953f=>0x1!=_0x55953f}};_0x4bf247['bg']||={'dictionary':{},'getPluralForm':null},_0x4bf247['bg']['dictionary']=Object['assign'](_0x4bf247['bg']['dictionary'],_0xefd795),_0x4bf247['bg']['getPluralForm']=_0x2ebe62;})(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':_0x54f390=>0x1!=_0x54f390}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2e9283=>{const {bn:{dictionary:_0x1f409a,getPluralForm:_0x106a9d}}={'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':_0x5c25fa=>0x1!=_0x5c25fa}};_0x2e9283['bn']||={'dictionary':{},'getPluralForm':null},_0x2e9283['bn']['dictionary']=Object['assign'](_0x2e9283['bn']['dictionary'],_0x1f409a),_0x2e9283['bn']['getPluralForm']=_0x106a9d;})(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':_0x2a579e=>_0x2a579e%0xa==0x1&&_0x2a579e%0x64!=0xb?0x0:_0x2a579e%0xa>=0x2&&_0x2a579e%0xa<=0x4&&(_0x2a579e%0x64<0xa||_0x2a579e%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xb9a6e0=>{const {bs:{dictionary:_0x1598a3,getPluralForm:_0x3bf933}}={'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':_0x1ef706=>_0x1ef706%0xa==0x1&&_0x1ef706%0x64!=0xb?0x0:_0x1ef706%0xa>=0x2&&_0x1ef706%0xa<=0x4&&(_0x1ef706%0x64<0xa||_0x1ef706%0x64>=0x14)?0x1:0x2}};_0xb9a6e0['bs']||={'dictionary':{},'getPluralForm':null},_0xb9a6e0['bs']['dictionary']=Object['assign'](_0xb9a6e0['bs']['dictionary'],_0x1598a3),_0xb9a6e0['bs']['getPluralForm']=_0x3bf933;})(window['CKEDITOR_TRANSLATIONS']||={});
|