@ckeditor/ckeditor5-uploadcare 45.2.1 → 46.0.0-alpha.1
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 _0x29696b,Command as _0x468043}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x404707,IconGooglePhotos as _0x320594,IconGoogleDrive as _0x1e298a,IconFacebook as _0x1ddeb6,IconDropbox as _0x41bd33,IconUploadcareLink as _0x4f225b,IconUploadcareImageUpload as _0xd3953a,IconError as _0x5362b8,IconUploadcareImageEdit as _0x2bbec4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3636bf,MenuBarMenuListItemButtonView as _0x239793,View as _0x4db710,FocusCycler as _0x33a5f8,Dialog as _0x50fd6c,DialogViewPosition as _0xa9e1eb,SpinnerView as _0x5cf200,IconView as _0x1cf3cf,Notification as _0x37d367}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x41ba66,DomEmitterMixin as _0x173d96,global as _0x230713,getAncestors as _0x4d8c01,ObservableMixin as _0x14b450,uid as _0x29cc85,createElement as _0x1fc52b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2ad47d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x12cf73,info as _0x4a4051}from'@uploadcare/upload-client';import*as _0x12b04a from'@uploadcare/file-uploader';var i=function(_0x1c7a44){return _0x1c7a44['Local']='local',_0x1c7a44['URL']='url',_0x1c7a44['Dropbox']='dropbox',_0x1c7a44['GDrive']='gdrive',_0x1c7a44['Facebook']='facebook',_0x1c7a44['GPhotos']='gphotos',_0x1c7a44['OneDrive']='onedrive',_0x1c7a44;}({});function _(_0x31a5a4,_0x565a17,_0x1d7804){const t=_0x31a5a4['t'],_0x429678=_0x31a5a4['t'];switch(_0x565a17){case i['Local']:return{'text':_0x429678('Insert'===_0x1d7804?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x429678('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1d7804?_0x429678('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x429678('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1d7804?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1d7804?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1d7804?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1d7804?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1d7804?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x565a17;}}class e extends _0x29696b{['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 _0x3ad903=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2e79b2;for(const _0x32e935 in _0x3ad903){const _0x435178=_0x32e935,_0x5ee4fb=_0x3ad903[_0x435178];if('uploadcareLicenseKeyValid'==_0x5ee4fb||'uploadcareLicenseKeyInvalid'==_0x5ee4fb||'uploadcareLicenseKeyExpired'==_0x5ee4fb||'uploadcareLicenseKeyDomainLimit'==_0x5ee4fb||'uploadcareLicenseKeyNotAllowed'==_0x5ee4fb||'uploadcareLicenseKeyEvaluationLimit'==_0x5ee4fb||'uploadcareLicenseKeyTrialLimit'==_0x5ee4fb||'uploadcareLicenseKeyUsageLimit'==_0x5ee4fb){delete _0x3ad903[_0x435178],_0x2e79b2=_0x5ee4fb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2e79b2&&_0x3ad903['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2e79b2&&_0x3ad903['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2e79b2&&_0x3ad903['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2e79b2&&_0x3ad903['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2e79b2&&_0x3ad903['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2e79b2&&_0x3ad903['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2e79b2&&_0x3ad903['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x32c8fe}=this,_0x1ca10c=_0x32c8fe['commands']['get']('uploadcare');if(!_0x1ca10c)return;const _0x46136c=this['_normalizeConfigSourceList'](_0x32c8fe['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3fea83,_0x37e21b)=>{const _0x3977d6=this['_getIntegrationKey'](_0x37e21b['type']);return _0x3fea83[_0x3977d6]||(_0x3fea83[_0x3977d6]=[]),_0x3fea83[_0x3977d6]['push'](_0x37e21b),_0x3fea83;},{});_0x32c8fe['plugins']['has']('ImageInsertUI')&&_0x32c8fe['commands']['get']('uploadcare')&&Object['entries'](_0x46136c)['forEach'](([_0x3c269e,_0x18a0d1])=>{_0x32c8fe['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3c269e,'observable':()=>_0x1ca10c,'buttonViewCreator':()=>this['_createToolbarButton'](_0x18a0d1),'formViewCreator':()=>this['_createDropdownButtons'](_0x18a0d1),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x18a0d1),'override':'assetManager'!==_0x3c269e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x21d956){const {locale:_0xb6d0a7}=this['editor'];return _0x21d956['map'](_0xde6c3=>{const _0x5c474b=_(_0xb6d0a7,_0xde6c3,'Insert');switch(_0xde6c3){case i['Local']:return{'icon':_0xd3953a,'type':i['Local'],..._0x5c474b};case i['URL']:return{'icon':_0x4f225b,'type':i['URL'],..._0x5c474b};case i['Dropbox']:return{'icon':_0x41bd33,'type':i['Dropbox'],..._0x5c474b};case i['Facebook']:return{'icon':_0x1ddeb6,'type':i['Facebook'],..._0x5c474b};case i['GDrive']:return{'icon':_0x1e298a,'type':i['GDrive'],..._0x5c474b};case i['GPhotos']:return{'icon':_0x320594,'type':i['GPhotos'],..._0x5c474b};case i['OneDrive']:return{'icon':_0x404707,'type':i['OneDrive'],..._0x5c474b};}});}['_getIntegrationKey'](_0x3664d4){switch(_0x3664d4){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3e2c12,_0xc40726){const _0x16d19a=this['editor'],_0x2326e4=new _0x3e2c12(_0x16d19a['locale']),_0x304e5e=_0x16d19a['commands']['get']('uploadcare');return _0x2326e4['bind']('isEnabled')['to'](_0x304e5e),_0x2326e4['on']('execute',()=>{_0x304e5e['execute'](_0xc40726);}),_0x2326e4;}['_createToolbarButton'](_0x5e1002){const {locale:_0x4464bb}=this['editor'],_0x5490e0=this['editor']['plugins']['get']('ImageInsertUI'),_0x1563a8=_0x5e1002[0x0],_0x54fc85=this['_createButton'](_0x3636bf,_0x1563a8['type']);return _0x54fc85['icon']=_0x1563a8['icon'],_0x54fc85['bind']('label')['to'](_0x5490e0,'isImageSelected',_0x452c92=>_(_0x4464bb,_0x1563a8['type'],_0x452c92?'Replace':'Insert')['text']),_0x54fc85['tooltip']=!0x0,_0x54fc85;}['_createDropdownButtons'](_0x4e18c5){const {locale:_0x426b1f}=this['editor'],_0x2fdc1c=this['editor']['plugins']['get']('ImageInsertUI');return _0x4e18c5['map'](_0x192fd7=>{const _0x2c0b5b=this['_createButton'](_0x3636bf,_0x192fd7['type']);return _0x2c0b5b['withText']=!0x0,_0x2c0b5b['icon']=_0x192fd7['icon'],_0x2c0b5b['bind']('label')['to'](_0x2fdc1c,'isImageSelected',_0x4e9b17=>_(_0x426b1f,_0x192fd7['type'],_0x4e9b17?'Replace':'Insert')['text']),_0x2c0b5b;});}['_createMenuBarButtons'](_0x1c38f3){return _0x1c38f3['map'](_0x5e85f1=>{const _0x406234=this['_createButton'](_0x239793,_0x5e85f1['type']);return _0x406234['icon']=_0x5e85f1['icon'],_0x406234['label']=_0x5e85f1['shortText'],_0x406234;});}}class F extends _0x4db710{['focusTracker'];['focusCycler'];constructor(_0x3093bb){super(_0x3093bb),this['focusTracker']=new _0x41ba66(),this['focusCycler']=new _0x33a5f8({'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(_0xc3787e,_0x19c567){super(_0xc3787e),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-'+_0x19c567}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0xf9f625,_0xd8237f){const _0x4b7a1c=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3a9e14=>_0x3a9e14<=_0xd8237f)['map'](_0x15cdda=>_0xf9f625['replace'](/\/$/,'')+'/-/resize/'+_0x15cdda+'x/\x20'+_0x15cdda+'w');return{'imageFallbackUrl':_0xf9f625,'imageSources':[{'srcset':_0x4b7a1c['join'](',\x20'),'sizes':'(max-width:\x20'+_0xd8237f+'px)\x20100vw,\x20'+_0xd8237f+'px','type':'image/webp'}]};}function C(_0x3d83c5,_0x1b42b5,_0x2c2a67){const _0xe90fd7=_0x3d83c5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xe90fd7?parseInt(_0xe90fd7[0x1],0xa):_0x1b42b5,'height':_0xe90fd7?parseInt(_0xe90fd7[0x2],0xa):_0x2c2a67};}function p(_0xe688b2,_0x12bc61){const _0x1526fa=new(_0x173d96())(),_0x55d25d=_0xe688b2['plugins']['get']('ImageUtils'),_0x5e4c81=_0xe688b2['editing']['mapper']['toViewElement'](_0x12bc61),_0x466670=_0x55d25d['findViewImgElement'](_0x5e4c81),_0x50af44=_0xe688b2['editing']['view']['domConverter']['viewToDom'](_0x466670),_0xc33ef2=_0x12bc61['getAttribute']('width'),_0x720d8d=_0x12bc61['getAttribute']('height'),_0x32bb82='image-processing';_0xe688b2['editing']['view']['change'](_0x15a768=>{_0x15a768['addClass'](_0x32bb82,_0x5e4c81),_0x15a768['setStyle']('aspect-ratio',_0xc33ef2+'/'+_0x720d8d,_0x466670);}),_0x1526fa['listenTo'](_0x50af44,'load',()=>{_0x1526fa['stopListening'](_0x50af44,'load'),_0xe688b2['editing']['view']['change'](_0x17eab1=>{_0x17eab1['removeClass'](_0x32bb82,_0x5e4c81),_0x17eab1['removeStyle']('aspect-ratio',_0x466670);});});}function z(_0x22c7f9){if(Array['isArray'](_0x22c7f9)){const _0x501985=_0x22c7f9['map'](z);return _0x499ca6=>_0x501985['some'](_0x40a31f=>_0x40a31f(_0x499ca6));}if('origin'==_0x22c7f9){const _0x356cf9=_0x230713['window']['location']['origin'];return _0x52e84b=>new URL(_0x52e84b,_0x230713['document']['baseURI'])['origin']==_0x356cf9;}return'function'==typeof _0x22c7f9?_0x22c7f9:_0x22c7f9 instanceof RegExp?_0x186d71=>!(!_0x186d71['match'](_0x22c7f9)&&!_0x186d71['replace'](/^https?:\/\//,'')['match'](_0x22c7f9)):()=>!0x1;}function S(_0x3af925,_0x4ac685){return _0x4d8c01(_0x3af925['target'])['includes'](_0x4ac685);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x14b450(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1561ff,_0x275d5e,_0x2673b6){super(),this['_editor']=_0x1561ff,this['_editing']=_0x275d5e,this['_dialog']=_0x1561ff['plugins']['get'](_0x50fd6c),this['_api']=_0x275d5e['ctxElement']['getAPI'](),this['_type']=_0x2673b6,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:_0x3b9ce4,model:_0xa3c9c1}=this['_editor'],_0x3b7e22=_0xa3c9c1['document']['selection']['getSelectedElement'](),_0x56496f=_0x3b7e22&&(_0x3b7e22['is']('element','imageBlock')||_0x3b7e22['is']('element','imageInline'));this['_formView']=new x(_0x3b9ce4,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xd3953a,'title':_(_0x3b9ce4,this['_type'],_0x56496f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xa9e1eb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2f1cec=>!S(_0x2f1cec,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x189445}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x30824f=>{const _0x4d9864=_0x189445['length'];for(const _0x594ad2 of _0x189445){const _0x533586=_0x594ad2===_0x189445[_0x4d9864-0x1],{cdnUrl:_0xf3c614,fileInfo:_0xe3dd6d}=_0x594ad2;if(!_0xf3c614||!_0xe3dd6d)continue;const {width:_0xa6a36f,height:_0x450036}=_0xe3dd6d['imageInfo'],_0x1aafe5=C(_0xf3c614,_0xa6a36f,_0x450036),_0xd9879e=k(_0xf3c614,_0x1aafe5['width']),_0x11ba6f={'id':_0xe3dd6d['uuid'],'type':'image','attributes':{'imageDimension':_0x1aafe5,..._0xd9879e}};this['_insertAsset'](_0x11ba6f,_0x533586,_0x30824f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x339ddf=>{'idle'===_0x339ddf['detail']['status']&&!_0x339ddf['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3426ed,_0x2b9acb,_0x40132d){const _0x7773c5=this['_editor']['model']['document']['selection'],_0x1b3b40=_0x7773c5['getSelectedElement'](),_0xe9b216=!(!_0x1b3b40||!_0x1b3b40['is']('element','imageInline'));_0x40132d['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3426ed,_0xe9b216),_0x2b9acb||_0x40132d['setSelection'](_0x7773c5['getLastPosition']());}['_insertImage'](_0x34df24,_0x2af787){const _0x49b518=this['_editor'],{imageDimension:_0x30a598,imageFallbackUrl:_0x14fb9f,imageSources:_0x29ab88}=_0x34df24['attributes'];_0x49b518['execute']('insertImage',{'imageType':_0x2af787?'imageInline':null,'source':{'uploadcareImageId':_0x34df24['id'],'src':_0x14fb9f,'sources':_0x29ab88,..._0x30a598}});}}class w extends _0x468043{['_editing'];['_controller']=null;static get['requires'](){return[_0x50fd6c,o];}constructor(_0x5376a1){super(_0x5376a1),this['_editing']=_0x5376a1['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5e6806){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5e6806);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3aef5a,publicKey:_0xdf6c1a,signal:_0x76b059,onProgress:_0x4b7fc7}){return _0x12cf73(_0x3aef5a,{'publicKey':_0xdf6c1a,'store':'auto','signal':_0x76b059,'onProgress':_0x4b7fc7});}static['getInfo'](_0x1a2674,_0x172485){return _0x4a4051(_0x1a2674,_0x172485);}}class f extends _0x29696b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2ad47d,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2d3560=this['editor'];if(!!!_0x2d3560['config']['get']('uploadcare'))return;_0x2d3560['plugins']['get'](_0x2ad47d)['createUploadAdapter']=_0xa2dc4e=>new A(_0xa2dc4e,_0x2d3560),_0x2d3560['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x36b566,{imageElement:_0x5acbc7,data:_0x4ea363})=>{_0x2d3560['model']['change'](_0x3a5214=>{_0x3a5214['setAttribute']('uploadcareImageId',_0x4ea363['uploadcareImageId'],_0x5acbc7);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x4f45a4,_0x38d18e){this['loader']=_0x4f45a4,this['editor']=_0x38d18e,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xcdfcfe=this['editor']['config']['get']('uploadcare.pubkey'),_0x558927=await this['loader']['file'];return j['upload']({'file':_0x558927,'publicKey':_0xcdfcfe,'signal':this['controller']['signal'],'onProgress':_0x2ec772=>{_0x2ec772&&_0x2ec772['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2ec772['value']);}})['then'](async _0x1c9cb5=>{const {imageFallbackUrl:_0x488a7d,imageSources:_0x4945a8}=k(_0x1c9cb5['cdnUrl'],_0x1c9cb5['imageInfo']['width']);return{'uploadcareImageId':_0x1c9cb5['uuid'],'default':_0x488a7d,'sources':_0x4945a8};})['catch'](()=>{const _0x8518e6=t('Cannot\x20upload\x20file:')+('\x20'+_0x558927['name']+'.');return Promise['reject'](_0x8518e6);});}['abort'](){this['controller']['abort']();}}class o extends _0x29696b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x50fd6c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x511a04){super(_0x511a04),this['ucContextId']=_0x29cc85();}['init'](){const _0x308ade=this['editor'];_0x308ade['commands']['add']('uploadcare',new w(_0x308ade));}['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 _0x39003a=_0x230713['document']['querySelector']('input[uploadcare-file-input]');_0x39003a&&_0x39003a['remove']();}),async function(_0x2f8d2a){const _0x3407e9=_0x5ae8b4([0x35,0x64,0x66,0x76,0x56,0x32,0x5a,0x46,0x49,0x6d,0x47,0x4a,0x37,0x4d,0x57,0x63,0x4f,0x36,0x6c,0x65,0x48,0x74,0x50,0x71,0x6b,0x62,0x75,0x51,0x53,0x68,0x69,0x54,0x30,0x6e,0x44,0x45,0x41,0x4e,0x77,0x73,0x6a,0x33,0x70,0x38,0x43,0x78,0x72,0x31,0x61,0x52,0x42,0x67,0x55,0x4b,0x4c,0x7a,0x59,0x6f,0x58,0x34,0x79,0x39]),_0x2a6578=0x2cc1038,_0x4fb420=0x2cb7c50^_0x2a6578,_0x363dec=window[_0x5ae8b4([0x44,0x61,0x74,0x65])][_0x5ae8b4([0x6e,0x6f,0x77])](),_0x1964e4=_0x2f8d2a[_0x5ae8b4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x252add=new window[(_0x5ae8b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x164f9c=>{_0x1964e4[_0x5ae8b4([0x6f,0x6e,0x63,0x65])](_0x5ae8b4([0x72,0x65,0x61,0x64,0x79]),_0x164f9c);}),_0x4bc497={[_0x5ae8b4([0x6b,0x74,0x79])]:_0x5ae8b4([0x45,0x43]),[_0x5ae8b4([0x75,0x73,0x65])]:_0x5ae8b4([0x73,0x69,0x67]),[_0x5ae8b4([0x63,0x72,0x76])]:_0x5ae8b4([0x50,0x2d,0x32,0x35,0x36]),[_0x5ae8b4([0x78])]:_0x5ae8b4([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]),[_0x5ae8b4([0x79])]:_0x5ae8b4([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]),[_0x5ae8b4([0x61,0x6c,0x67])]:_0x5ae8b4([0x45,0x53,0x32,0x35,0x36])},_0x494fd3=_0x1964e4[_0x5ae8b4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ae8b4([0x67,0x65,0x74])](_0x5ae8b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2696ee(){let _0x388488,_0x34d541=null,_0x1d7b40=null;try{if(_0x494fd3==_0x5ae8b4([0x47,0x50,0x4c]))return _0x5ae8b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x388488=_0x3dc9ad(),!_0x388488)return _0x5ae8b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x388488[_0x5ae8b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d7b40=_0x288166(_0x388488[_0x5ae8b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x388488[_0x5ae8b4([0x6a,0x74,0x69])])),await _0x2ab8b4()?_0x3f6a83()?_0x2a49be()?_0x5ae8b4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x903f66()?(_0x388488[_0x5ae8b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ae8b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34d541=_0x59f8fa(_0x5ae8b4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x388488[_0x5ae8b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ae8b4([0x74,0x72,0x69,0x61,0x6c])&&(_0x34d541=_0x59f8fa(_0x5ae8b4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3e8e19()):_0x5ae8b4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ae8b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ae8b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ae8b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a49be(){const _0xeeae48=[_0x5ae8b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ae8b4([0x74,0x72,0x69,0x61,0x6c])][_0x5ae8b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x388488[_0x5ae8b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x363dec/0x3e8:0xe10*_0x4fb420;return _0x388488[_0x5ae8b4([0x65,0x78,0x70])]<_0xeeae48;}function _0x3f6a83(){const _0x41c093=_0x388488[_0x5ae8b4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x41c093&&(!!_0x41c093[_0x5ae8b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ae8b4([0x2a]))||!!_0x41c093[_0x5ae8b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ae8b4([0x55,0x50,0x4c,0x43])));}function _0x903f66(){const _0x330b95=_0x388488[_0x5ae8b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x330b95||0x0==_0x330b95[_0x5ae8b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c0406}=new URL(window[_0x5ae8b4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x330b95[_0x5ae8b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c0406))return!0x0;const _0x1752cd=_0x4c0406[_0x5ae8b4([0x73,0x70,0x6c,0x69,0x74])](_0x5ae8b4([0x2e]));return _0x330b95[_0x5ae8b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfaac5f=>_0xfaac5f[_0x5ae8b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ae8b4([0x2a])))[_0x5ae8b4([0x6d,0x61,0x70])](_0x5c2503=>_0x5c2503[_0x5ae8b4([0x73,0x70,0x6c,0x69,0x74])](_0x5ae8b4([0x2e])))[_0x5ae8b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d44d3=>_0x1d44d3[_0x5ae8b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1752cd[_0x5ae8b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ae8b4([0x6d,0x61,0x70])](_0x32787f=>Array(_0x1752cd[_0x5ae8b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x32787f[_0x5ae8b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ae8b4([0x66,0x69,0x6c,0x6c])](_0x32787f[0x0]===_0x5ae8b4([0x2a])?_0x5ae8b4([0x2a]):'')[_0x5ae8b4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x32787f))[_0x5ae8b4([0x73,0x6f,0x6d,0x65])](_0x147270=>_0x1752cd[_0x5ae8b4([0x65,0x76,0x65,0x72,0x79])]((_0x17d746,_0x423078)=>_0x147270[_0x423078]===_0x17d746||_0x147270[_0x423078]===_0x5ae8b4([0x2a])));}function _0x3e8e19(){return _0x34d541&&_0x1d7b40?new window[(_0x5ae8b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x62b0a3,_0xc00044)=>{_0x34d541[_0x5ae8b4([0x74,0x68,0x65,0x6e])](_0x62b0a3,_0xc00044),_0x1d7b40[_0x5ae8b4([0x74,0x68,0x65,0x6e])](_0x4bf457=>{_0x4bf457!=_0x5ae8b4([0x56,0x61,0x6c,0x69,0x64])&&_0x62b0a3(_0x4bf457);},_0xc00044);}):_0x34d541||_0x1d7b40||_0x5ae8b4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x288166(_0x5bd41d,_0x218a81){return new window[(_0x5ae8b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43fe03=>{if(_0x28e4ab())return _0x43fe03(_0x5ae8b4([0x56,0x61,0x6c,0x69,0x64]));_0x2fdfd1(),_0x1964e4[_0x5ae8b4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ae8b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x398b86=!0x1;const _0x48ea52=_0x29cc85();function _0x4c28d6(_0xacc64f){return!!_0xacc64f&&(typeof _0xacc64f===_0x5ae8b4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xacc64f===_0x5ae8b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xacc64f[_0x5ae8b4([0x74,0x68,0x65,0x6e])]===_0x5ae8b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xacc64f[_0x5ae8b4([0x63,0x61,0x74,0x63,0x68])]===_0x5ae8b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x106b96(_0x92e7cb){_0xbbaa62(_0x92e7cb)[_0x5ae8b4([0x74,0x68,0x65,0x6e])](_0x4d7c9a=>{if(!_0x4d7c9a||_0x4d7c9a[_0x5ae8b4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ae8b4([0x6f,0x6b]))return _0x5ae8b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3cd8cb(_0x107ccb(_0x48ea52+_0x218a81))!=_0x4d7c9a[_0x5ae8b4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ae8b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ae8b4([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ae8b4([0x74,0x68,0x65,0x6e])](_0x154af2=>(_0x2b6de6(),_0x154af2),()=>{const _0x192402=_0x4434b0();return null==_0x192402?(_0x2b6de6(),_0x5ae8b4([0x56,0x61,0x6c,0x69,0x64])):_0x5ae8b4(_0x363dec-_0x192402>(0x26c09438^_0x2a6578)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ae8b4([0x74,0x68,0x65,0x6e])](_0x43fe03)[_0x5ae8b4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x43fe03(_0x5ae8b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x279220=0x2fafeb8^_0x2a6578;function _0x2b6de6(){const _0x2d000b=_0x5ae8b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cd8cb(_0x107ccb(_0x5bd41d)),_0x8859a9=_0x4a4079(_0x3cd8cb(window[_0x5ae8b4([0x4d,0x61,0x74,0x68])][_0x5ae8b4([0x63,0x65,0x69,0x6c])](_0x363dec/_0x279220)));window[_0x5ae8b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ae8b4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d000b,_0x8859a9);}function _0x4434b0(){const _0x3cf8bd=_0x5ae8b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cd8cb(_0x107ccb(_0x5bd41d)),_0x232894=window[_0x5ae8b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ae8b4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cf8bd);return _0x232894?window[_0x5ae8b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a4079(_0x232894),0x10)*_0x279220:null;}function _0xbbaa62(_0x5dc838){return new window[(_0x5ae8b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x138624,_0x54937d)=>{_0x5dc838[_0x5ae8b4([0x74,0x68,0x65,0x6e])](_0x138624,_0x54937d),window[_0x5ae8b4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54937d,0x2cdc4f8^_0x2a6578);});}}_0x1964e4[_0x5ae8b4([0x6f,0x6e])](_0x5ae8b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x11dfe4,_0x42306f)=>{if(_0x42306f[0x0]!=_0x5bd41d)return _0x43fe03(_0x5ae8b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x42306f[0x1]={..._0x42306f[0x1],[_0x5ae8b4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x48ea52};},{[_0x5ae8b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ae8b4([0x68,0x69,0x67,0x68])}),_0x1964e4[_0x5ae8b4([0x6f,0x6e])](_0x5ae8b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x48470d=>{_0x4c28d6(_0x48470d[_0x5ae8b4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x398b86=!0x0,_0x106b96(_0x48470d[_0x5ae8b4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ae8b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ae8b4([0x6c,0x6f,0x77])}),_0x252add[_0x5ae8b4([0x74,0x68,0x65,0x6e])](()=>{_0x398b86||_0x43fe03(_0x5ae8b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x28e4ab(){return _0x1964e4[_0x5ae8b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ae8b4([0x76,0x69,0x65,0x77])][_0x5ae8b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ae8b4([0x61,0x75,0x74,0x6f]);}function _0x2fdfd1(){_0x1964e4[_0x5ae8b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ae8b4([0x76,0x69,0x65,0x77])][_0x5ae8b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ae8b4([0x61,0x75,0x74,0x6f]);}}function _0x59f8fa(_0x417ad3){const _0x455653=[new window[(_0x5ae8b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36b4d4=>setTimeout(_0x36b4d4,0x2c52ef4^_0x2a6578)),_0x252add[_0x5ae8b4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ae8b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e18d2=>{let _0x1b7c61=0x0;_0x1964e4[_0x5ae8b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ae8b4([0x6f,0x6e])](_0x5ae8b4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d4eb7,_0x3f40f0)=>{_0x3f40f0[0x0][_0x5ae8b4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1b7c61++,_0x1b7c61==(0x2cc11c0^_0x2a6578)&&(_0x5e18d2(),_0x2d4eb7[_0x5ae8b4([0x6f,0x66,0x66])]());});}))];return window[_0x5ae8b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ae8b4([0x72,0x61,0x63,0x65])](_0x455653)[_0x5ae8b4([0x74,0x68,0x65,0x6e])](()=>_0x417ad3);}async function _0x3ef74c(){await _0x252add,_0x1964e4[_0x5ae8b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ae8b4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x536079,_0x1964e4[_0x5ae8b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ae8b4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x536079,_0x1964e4[_0x5ae8b4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ae8b4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1180a8(_0x561632){const _0x3bb12a=_0x1ac023();_0x1964e4[_0x3bb12a]=_0x5ae8b4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x561632,_0x561632!=_0x5ae8b4([0x56,0x61,0x6c,0x69,0x64])&&_0x3ef74c();}function _0x1ac023(){const _0x29309d=window[_0x5ae8b4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ae8b4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ae8b4([0x6e,0x6f,0x77])]())[_0x5ae8b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ae8b4([0x2e]),'');let _0x5be143=_0x5ae8b4([0x64]);for(let _0x12b631=0x0;_0x12b631<_0x29309d[_0x5ae8b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12b631+=0x2){let _0x5108b9=window[_0x5ae8b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29309d[_0x5ae8b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12b631,_0x12b631+0x2));_0x5108b9>=_0x3407e9[_0x5ae8b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5108b9-=_0x3407e9[_0x5ae8b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5be143+=_0x3407e9[_0x5108b9];}return _0x5be143;}function _0x3dc9ad(){const _0x215a06=_0x494fd3[_0x5ae8b4([0x73,0x70,0x6c,0x69,0x74])](_0x5ae8b4([0x2e]));if(0x3!=_0x215a06[_0x5ae8b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x369939(_0x215a06[0x1]);function _0x369939(_0x16ebb7){const _0x111f3e=_0x351190(_0x16ebb7);return _0x111f3e&&_0x526ca4()?_0x111f3e:null;function _0x526ca4(){const _0x4f1c97=_0x111f3e[_0x5ae8b4([0x6a,0x74,0x69])],_0x34559c=window[_0x5ae8b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f1c97[_0x5ae8b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f1c97[_0x5ae8b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x479038={..._0x111f3e,[_0x5ae8b4([0x6a,0x74,0x69])]:_0x4f1c97[_0x5ae8b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f1c97[_0x5ae8b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x479038[_0x5ae8b4([0x76,0x63])],_0x107ccb(_0x479038)==_0x34559c;}}}async function _0x2ab8b4(){let _0x531df4=!0x0;try{const _0x5c9ec4=_0x494fd3[_0x5ae8b4([0x73,0x70,0x6c,0x69,0x74])](_0x5ae8b4([0x2e])),[_0x3d5e84,_0xdc31c9,_0x36a90a]=_0x5c9ec4;return _0x2801a4(_0x3d5e84),await _0x3d8cb9(_0x3d5e84,_0xdc31c9,_0x36a90a),_0x531df4;}catch{return!0x1;}function _0x2801a4(_0x56a432){const _0x445d93=_0x351190(_0x56a432);_0x445d93&&_0x445d93[_0x5ae8b4([0x61,0x6c,0x67])]==_0x5ae8b4([0x45,0x53,0x32,0x35,0x36])||(_0x531df4=!0x1);}async function _0x3d8cb9(_0x3a3e73,_0x179748,_0x17052d){const _0x1bca68=window[_0x5ae8b4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ae8b4([0x66,0x72,0x6f,0x6d])](_0x2664b9(_0x17052d),_0x4a23ca=>_0x4a23ca[_0x5ae8b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4a7191=new window[(_0x5ae8b4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ae8b4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a3e73+_0x5ae8b4([0x2e])+_0x179748),_0x2fe1c0=window[_0x5ae8b4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ae8b4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2fe1c0)return;const _0x2005bf=await _0x2fe1c0[_0x5ae8b4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ae8b4([0x6a,0x77,0x6b]),_0x4bc497,{[_0x5ae8b4([0x6e,0x61,0x6d,0x65])]:_0x5ae8b4([0x45,0x43,0x44,0x53,0x41]),[_0x5ae8b4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ae8b4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ae8b4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2fe1c0[_0x5ae8b4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ae8b4([0x6e,0x61,0x6d,0x65])]:_0x5ae8b4([0x45,0x43,0x44,0x53,0x41]),[_0x5ae8b4([0x68,0x61,0x73,0x68])]:{[_0x5ae8b4([0x6e,0x61,0x6d,0x65])]:_0x5ae8b4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2005bf,_0x1bca68,_0x4a7191)||(_0x531df4=!0x1);}}function _0x351190(_0x23399c){return _0x23399c[_0x5ae8b4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ae8b4([0x65,0x79]))?JSON[_0x5ae8b4([0x70,0x61,0x72,0x73,0x65])](_0x2664b9(_0x23399c)):null;}function _0x2664b9(_0x350522){return window[_0x5ae8b4([0x61,0x74,0x6f,0x62])](_0x350522[_0x5ae8b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ae8b4([0x2b]))[_0x5ae8b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ae8b4([0x2f])));}function _0x107ccb(_0x4ab311){let _0x4c65d0=0x1505;function _0x11ca24(_0x5d620a){for(let _0x4dcdd4=0x0;_0x4dcdd4<_0x5d620a[_0x5ae8b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4dcdd4++){const _0x59afaf=_0x5d620a[_0x5ae8b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4dcdd4);_0x4c65d0=(_0x4c65d0<<0x5)+_0x4c65d0+_0x59afaf,_0x4c65d0&=_0x4c65d0;}}function _0x5acc70(_0x3f54e6){Array[_0x5ae8b4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3f54e6)?_0x3f54e6[_0x5ae8b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5acc70):_0x3f54e6&&typeof _0x3f54e6==_0x5ae8b4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ae8b4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3f54e6)[_0x5ae8b4([0x73,0x6f,0x72,0x74])]()[_0x5ae8b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b72b8,_0x2ee803])=>{_0x11ca24(_0x4b72b8),_0x5acc70(_0x2ee803);}):_0x11ca24(window[_0x5ae8b4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3f54e6));}return _0x5acc70(_0x4ab311),_0x4c65d0>>>0x0;}function _0x3cd8cb(_0x4004b0){return _0x4004b0[_0x5ae8b4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ae8b4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ae8b4([0x30]));}function _0x4a4079(_0x7f92ca){return _0x7f92ca[_0x5ae8b4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ae8b4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ae8b4([0x6a,0x6f,0x69,0x6e])]('');}function _0x536079(){}function _0x5ae8b4(_0x597897){return _0x597897['map'](_0x4bbcce=>String['fromCharCode'](_0x4bbcce))['join']('');}_0x1180a8(await _0x2696ee());}(this);}['_initSchema'](){const _0x46023b=this['editor']['model']['schema'];_0x46023b['isRegistered']('imageBlock')&&_0x46023b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x46023b['isRegistered']('imageInline')&&_0x46023b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x579af2=this['editor'];_0x579af2['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x579af2['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x45d53b=>_0x45d53b['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3c0dca=_0x579af2['commands']['get']('replaceImageSource');_0x3c0dca&&this['listenTo'](_0x3c0dca,'cleanupImage',(_0x2f8372,[_0xab2b5c,_0x288376])=>{_0xab2b5c['removeAttribute']('uploadcareImageId',_0x288376);});}['_initConfig'](){const _0x216311=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2fc33c=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1fc52b(_0x230713['document'],'uc-config',{..._0x216311,'pubkey':_0x2fc33c,'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']=_0x3e31ea=>{if('closeMax'==_0x3e31ea)return'#uc-icon-arrow-down';},_0x230713['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1fc52b(_0x230713['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x230713['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x280213=this['editor']['commands']['get']('insertImage');_0x280213&&this['listenTo'](_0x280213,'execute',()=>{const _0x2b7131=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2b7131&&_0x2b7131['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2b7131);});});const _0x1b6c7c=this['editor']['commands']['get']('uploadcareImageReplace');_0x1b6c7c&&this['listenTo'](_0x1b6c7c,'execute',()=>{const _0x20e563=this['editor']['model']['document']['selection']['getSelectedElement']();_0x20e563&&_0x20e563['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x20e563);});});}}class tt extends _0x29696b{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x47e4b1){super(_0x47e4b1),_0x47e4b1['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x12b04a['defineComponents'](_0x12b04a);}}class ii extends _0x4db710{constructor(_0x5d3bae){super(_0x5d3bae);const t=_0x5d3bae['t'],_0x5786d6=this['bindTemplate'],_0x2d267b=new _0x5cf200();_0x2d267b['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':[_0x2d267b,{'text':_0x5786d6['to']('imageUploadProgress',_0x446cfe=>t('Loading\x20image...')+'\x20('+(_0x446cfe||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 _0x4db710{constructor(_0x4e9dad){super(_0x4e9dad);const t=_0x4e9dad['t'];this['set']('errorType',null);const _0x265060=new _0x3636bf(_0x4e9dad);_0x265060['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x265060['withText']=!0x0,_0x265060['class']='ck-button-action',_0x265060['on']('execute',()=>{this['fire']('retry');}),_0x265060['bind']('isVisible')['to'](this,'errorType',_0x25fd3a=>'NotFound'!==_0x25fd3a);const _0x5545b6=new _0x1cf3cf();_0x5545b6['content']=_0x5362b8,_0x5545b6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1385d6=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':[_0x5545b6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1385d6['to']('errorType',_0x496e44=>t('NotFound'!==_0x496e44?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x265060]},{'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 _0x4db710{constructor(_0x1737d1,_0x3a1f5f){super(_0x1737d1);const _0x4f226e=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3a1f5f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4f226e['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x307ef4,_0x1534d0,_0x4d71d3){super(_0x307ef4),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x307ef4),this['_errorView']=new ti(_0x307ef4),this['_editingView']=new ei(_0x307ef4,_0x4d71d3),this['_focusableView']=new _0x4db710(_0x307ef4),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1534d0),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'],_0x50fa11=>{this['_addUploadcareImageEditorListeners'](_0x50fa11);});}),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'](_0x45e1cd,_0x5efd07){const _0x18ed14='uc-cloud-image-editor',_0x376d4b=_0x45e1cd['querySelector'](_0x18ed14);if(_0x376d4b)return _0x5efd07(_0x376d4b);const _0x5b01de=new MutationObserver(_0xfd6c76=>{const _0x3173f9=_0xfd6c76['filter'](_0x1910e4=>_0x1910e4['target']===_0x45e1cd&&_0x1910e4['addedNodes']['length']>0x0&&_0x1910e4['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x18ed14);_0x3173f9['length']&&(_0x5b01de['disconnect'](),_0x5efd07(_0x3173f9[0x0]['addedNodes'][0x0]));});_0x5b01de['observe'](_0x45e1cd,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x221f47){_0x221f47['addEventListener']('apply',_0x5aee2b=>{this['fire']('apply',{'imageSrc':_0x5aee2b['detail']['cdnUrl']});}),_0x221f47['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x14b450(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x568032,_0x3df421,_0x199641){super(),this['_editor']=_0x568032,this['_dialog']=_0x3df421,this['_imageElement']=_0x199641,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 _0x339f97=this['_imageElement'],_0x3b40e0=_0x339f97['getAttribute']('uploadcareImageId'),_0xbb8612=_0x339f97['getAttribute']('src');if(_0x3b40e0)await this['_loadImageInfo'](_0x3b40e0,_0xbb8612);else{if(this['_imageCache']['has'](_0xbb8612)){const _0x546d23=this['_imageCache']['get'](_0xbb8612);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x546d23['url'],this['imageDimension']=_0x546d23['dimension'],this['imageId']=_0x546d23['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3aa6e8}=this['_editor'],t=_0x3aa6e8['t'],_0x4beda8=new X(_0x3aa6e8,this['imageStatus'],this['_attributes']);_0x4beda8['bind']('status')['to'](this,'imageStatus'),_0x4beda8['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4beda8['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4beda8['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4beda8,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2bbec4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4beda8,'position':_0xa9e1eb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4beda8['focus']();},'onHide':()=>{_0x4beda8['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e5c36=>!S(_0x1e5c36,_0x4beda8['element'])}});}['_loadImageInfo'](_0x32c956,_0x1c1877){return j['getInfo'](_0x32c956,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3e372a=>{const {width:_0x360f49,height:_0x44862b}=_0x3e372a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1c1877,this['imageDimension']={'width':_0x360f49,'height':_0x44862b},this['imageId']=_0x32c956;})['catch'](_0x4ecbfb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4ecbfb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2c84c2,_0x316841){return this['_getImageAsFile'](_0x2c84c2)['then'](_0x44c7e8=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x316841['signal'],'file':_0x44c7e8,'onProgress':_0x5361d7=>{_0x5361d7&&_0x5361d7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5361d7['value']));}}))['then'](_0x542698=>{const {width:_0x15f391,height:_0x32e519}=_0x542698['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x542698['cdnUrl'],this['imageDimension']={'width':_0x15f391,'height':_0x32e519},this['imageId']=_0x542698['uuid'],this['imageUploadProgress']=null;const _0x587029=_0x2c84c2['getAttribute']('src');this['_imageCache']['set'](_0x587029,{'id':_0x542698['uuid'],'url':_0x542698['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x406e46=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x406e46['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3daa0e,_0x406e59){_0x3daa0e['on']('apply',(_0x508c6c,_0x1e0483)=>{this['_replaceImage'](_0x406e59,_0x1e0483['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3daa0e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3daa0e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x32650b,_0x707b4c,_0x2b97fb){const _0x238859=this['_editor'],{width:_0x31811a,height:_0x13a89e}=C(_0x707b4c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x20c45a,imageSources:_0x3dc3d5}=k(_0x707b4c,_0x31811a);_0x238859['model']['change'](_0x276a99=>{if('$graveyard'===_0x32650b['root']['rootName']){_0x238859['execute']('insertImage',{'imageType':_0x32650b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x32650b['getAttributes']()),'uploadcareImageId':_0x2b97fb,'src':_0x20c45a,'sources':_0x3dc3d5,'width':_0x31811a,'height':_0x13a89e}});const _0xa0d82f=_0x32650b['getChildren']();_0x32650b=_0x238859['model']['document']['selection']['getSelectedElement']();for(const _0x149c3a of _0xa0d82f)_0x276a99['append'](_0x276a99['cloneElement'](_0x149c3a),_0x32650b);}else _0x276a99['setSelection'](_0x32650b,'on'),_0x238859['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x32650b['getAttributes']()),'uploadcareImageId':_0x2b97fb,'src':_0x20c45a,'sources':_0x3dc3d5,'width':_0x31811a,'height':_0x13a89e},_0x32650b);_0x276a99['setSelection'](_0x32650b,'on');});}async['_getImageAsFile'](_0x3d2e8b){const _0x3334c4=_0x230713['window'],_0x505656=_0x230713['document']['location']['href'],_0x180e10=new _0x3334c4['URL'](_0x3d2e8b['getAttribute']('src'),_0x505656);if('data:'===_0x180e10['protocol']){const _0x3f76b0=_0x180e10['href']['split'](','),_0x3ebf40=_0x3f76b0[0x0]['match'](/:(.*?);/)[0x1],_0x20d2e5=_0x3ebf40['split']('/')[0x1],_0x5e2bec=_0x3334c4['atob'](_0x3f76b0[_0x3f76b0['length']-0x1]);let _0x3ba8e4=_0x5e2bec['length'];const _0x251642=new _0x3334c4['Uint8Array'](_0x3ba8e4);for(;_0x3ba8e4--;)_0x251642[_0x3ba8e4]=_0x5e2bec['charCodeAt'](_0x3ba8e4);return new _0x3334c4['File']([_0x251642],'image.'+_0x20d2e5,{'type':_0x3ebf40});}const _0x335e0e=_0x180e10['href']['split']('/'),_0x2471cb=_0x335e0e[_0x335e0e['length']-0x1],_0x5f1906=_0x2471cb['split']('.')[0x1];return _0x3334c4['fetch'](_0x180e10['href'])['then'](_0x3cbadd=>_0x3cbadd['clone']()['blob']())['then'](_0x2887e0=>new _0x3334c4['File']([_0x2887e0],_0x2471cb,{'type':'image/'+_0x5f1906}));}}class Q extends _0x468043{['imageEditController'];static get['requires'](){return[_0x50fd6c];}['_isEditable'];constructor(_0x4c8dcb){super(_0x4c8dcb),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x52a893){const _0x2e196b=z(_0x52a893);return _0x5202e3=>!(!_0x5202e3||!_0x5202e3['is']('element','imageBlock')&&!_0x5202e3['is']('element','imageInline'))&&(!!_0x5202e3['hasAttribute']('uploadcareImageId')||!!_0x5202e3['hasAttribute']('src')&&_0x2e196b(_0x5202e3['getAttribute']('src')));}(_0x4c8dcb['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4c35ba=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4c35ba);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xde2695=this['editor']['model']['document']['selection']['getSelectedElement']();_0xde2695&&(_0xde2695['is']('element','imageBlock')||_0xde2695['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x50fd6c),_0xde2695),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x468043{['refresh'](){const _0x3828fb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3828fb&&(_0x3828fb['is']('element','imageBlock')||_0x3828fb['is']('element','imageInline')));}['execute'](_0x7b44cf){const _0x324b07=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x11c003=>{_0x11c003['setAttributes'](_0x7b44cf,_0x324b07),_0x11c003['removeAttribute']('srcset',_0x324b07),_0x11c003['removeAttribute']('sizes',_0x324b07);});}}class m extends _0x29696b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x37d367,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4249d8}=this;_0x4249d8['commands']['add']('uploadcareImageEdit',new Q(_0x4249d8)),_0x4249d8['commands']['add']('uploadcareImageReplace',new V(_0x4249d8));}}class g extends _0x29696b{['_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 _0x2d2991=this['editor'];_0x2d2991['ui']['componentFactory']['add']('uploadcareImageEdit',_0xb8f84c=>{const _0x419ce4=_0x2d2991['commands']['get']('uploadcareImageEdit'),_0xf46ca8=new _0x3636bf(_0xb8f84c),t=_0xb8f84c['t'];return _0xf46ca8['set']({'icon':_0x2bbec4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xf46ca8['bind']('isEnabled')['to'](_0x419ce4),_0xf46ca8['bind']('isOn')['to'](_0x419ce4,'isActive'),this['listenTo'](_0xf46ca8,'execute',()=>{_0x2d2991['execute']('uploadcareImageEdit'),_0x2d2991['editing']['view']['focus']();}),_0xf46ca8;}),this['_initConfig']();}['_initConfig'](){const _0x14c898=_0x1fc52b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x14c898),this['listenTo'](this['editor'],'destroy',()=>{_0x14c898['remove']();});}}class et extends _0x29696b{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,Q 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']||={});
|