@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251220.0 → 0.0.0-nightly-20251221.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x3bf42c,Command as _0x5606da}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xbff6d1,IconGooglePhotos as _0x183652,IconGoogleDrive as _0x477933,IconFacebook as _0x1c4e4d,IconDropbox as _0x304cd7,IconUploadcareLink as _0x1ab787,IconUploadcareImageUpload as _0x458225,IconError as _0x176afd,IconUploadcareImageEdit as _0x2f28ab}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3669b2,MenuBarMenuListItemButtonView as _0x37cc3f,View as _0x214dae,FocusCycler as _0x481314,Dialog as _0x549de5,DialogViewPosition as _0xdb791e,SpinnerView as _0x585ae6,IconView as _0x53016e,Notification as _0x529912}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x33d73b,DomEmitterMixin as _0x301d73,global as _0xbd233a,getAncestors as _0x279433,ObservableMixin as _0x13fb6a,uid as _0x24f7d9,createElement as _0x286cbd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x436bf8}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5c77ef,info as _0x2e8ff7}from'@uploadcare/upload-client';import*as _0x3a98f1 from'@uploadcare/file-uploader';var i=function(_0x20f91a){return _0x20f91a['Local']='local',_0x20f91a['URL']='url',_0x20f91a['Dropbox']='dropbox',_0x20f91a['GDrive']='gdrive',_0x20f91a['Facebook']='facebook',_0x20f91a['GPhotos']='gphotos',_0x20f91a['OneDrive']='onedrive',_0x20f91a;}({});function _(_0x1b8499,_0x3b8ba6,_0x28f777){const t=_0x1b8499['t'],_0x3bcb26=_0x1b8499['t'];switch(_0x3b8ba6){case i['Local']:return{'text':_0x3bcb26('Insert'===_0x28f777?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3bcb26('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x28f777?_0x3bcb26('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3bcb26('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x28f777?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x28f777?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x28f777?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x28f777?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x28f777?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3b8ba6;}}class e extends _0x3bf42c{['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 _0x42bd6c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1742ef;for(const _0x473736 in _0x42bd6c){const _0x464d61=_0x473736,_0x3c47aa=_0x42bd6c[_0x464d61];if('uploadcareLicenseKeyValid'==_0x3c47aa||'uploadcareLicenseKeyInvalid'==_0x3c47aa||'uploadcareLicenseKeyExpired'==_0x3c47aa||'uploadcareLicenseKeyDomainLimit'==_0x3c47aa||'uploadcareLicenseKeyNotAllowed'==_0x3c47aa||'uploadcareLicenseKeyEvaluationLimit'==_0x3c47aa||'uploadcareLicenseKeyTrialLimit'==_0x3c47aa||'uploadcareLicenseKeyUsageLimit'==_0x3c47aa){delete _0x42bd6c[_0x464d61],_0x1742ef=_0x3c47aa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1742ef&&_0x42bd6c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1742ef&&_0x42bd6c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1742ef&&_0x42bd6c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1742ef&&_0x42bd6c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1742ef&&_0x42bd6c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1742ef&&_0x42bd6c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1742ef&&_0x42bd6c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x54d027}=this,_0x5c991b=_0x54d027['commands']['get']('uploadcare');if(!_0x5c991b)return;const _0x7e68f9=this['_normalizeConfigSourceList'](_0x54d027['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x22483a,_0xce7ec3)=>{const _0x51bdd3=this['_getIntegrationKey'](_0xce7ec3['type']);return _0x22483a[_0x51bdd3]||(_0x22483a[_0x51bdd3]=[]),_0x22483a[_0x51bdd3]['push'](_0xce7ec3),_0x22483a;},{});_0x54d027['plugins']['has']('ImageInsertUI')&&_0x54d027['commands']['get']('uploadcare')&&Object['entries'](_0x7e68f9)['forEach'](([_0x1f4eb2,_0x4868ba])=>{_0x54d027['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1f4eb2,'observable':()=>_0x5c991b,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4868ba),'formViewCreator':()=>this['_createDropdownButtons'](_0x4868ba),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4868ba),'override':'assetManager'!==_0x1f4eb2});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2292ab){const {locale:_0x172e5}=this['editor'];return _0x2292ab['map'](_0x2796db=>{const _0x2374b0=_(_0x172e5,_0x2796db,'Insert');switch(_0x2796db){case i['Local']:return{'icon':_0x458225,'type':i['Local'],..._0x2374b0};case i['URL']:return{'icon':_0x1ab787,'type':i['URL'],..._0x2374b0};case i['Dropbox']:return{'icon':_0x304cd7,'type':i['Dropbox'],..._0x2374b0};case i['Facebook']:return{'icon':_0x1c4e4d,'type':i['Facebook'],..._0x2374b0};case i['GDrive']:return{'icon':_0x477933,'type':i['GDrive'],..._0x2374b0};case i['GPhotos']:return{'icon':_0x183652,'type':i['GPhotos'],..._0x2374b0};case i['OneDrive']:return{'icon':_0xbff6d1,'type':i['OneDrive'],..._0x2374b0};}});}['_getIntegrationKey'](_0x4471c6){switch(_0x4471c6){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1eb9db,_0x35d068){const _0x14fd2d=this['editor'],_0x1e5ff1=new _0x1eb9db(_0x14fd2d['locale']),_0x4fe4e0=_0x14fd2d['commands']['get']('uploadcare');return _0x1e5ff1['bind']('isEnabled')['to'](_0x4fe4e0),_0x1e5ff1['on']('execute',()=>{_0x4fe4e0['execute'](_0x35d068);}),_0x1e5ff1;}['_createToolbarButton'](_0x7d628c){const {locale:_0x26b339}=this['editor'],_0x24411d=this['editor']['plugins']['get']('ImageInsertUI'),_0x15bf5c=_0x7d628c[0x0],_0x1acc79=this['_createButton'](_0x3669b2,_0x15bf5c['type']);return _0x1acc79['icon']=_0x15bf5c['icon'],_0x1acc79['bind']('label')['to'](_0x24411d,'isImageSelected',_0x4c0147=>_(_0x26b339,_0x15bf5c['type'],_0x4c0147?'Replace':'Insert')['text']),_0x1acc79['tooltip']=!0x0,_0x1acc79;}['_createDropdownButtons'](_0x184925){const {locale:_0x45c920}=this['editor'],_0x42f3de=this['editor']['plugins']['get']('ImageInsertUI');return _0x184925['map'](_0x50669a=>{const _0x4cc480=this['_createButton'](_0x3669b2,_0x50669a['type']);return _0x4cc480['withText']=!0x0,_0x4cc480['icon']=_0x50669a['icon'],_0x4cc480['bind']('label')['to'](_0x42f3de,'isImageSelected',_0x38824c=>_(_0x45c920,_0x50669a['type'],_0x38824c?'Replace':'Insert')['text']),_0x4cc480;});}['_createMenuBarButtons'](_0x317a3){return _0x317a3['map'](_0x224578=>{const _0x4820a2=this['_createButton'](_0x37cc3f,_0x224578['type']);return _0x4820a2['icon']=_0x224578['icon'],_0x4820a2['label']=_0x224578['shortText'],_0x4820a2;});}}class V extends _0x214dae{['focusTracker'];['focusCycler'];constructor(_0x1edb46){super(_0x1edb46),this['focusTracker']=new _0x33d73b(),this['focusCycler']=new _0x481314({'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 E extends V{constructor(_0x5d99ee,_0x338bef){super(_0x5d99ee),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-'+_0x338bef}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5615b5,_0x56637a){const _0x3885da=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2cdefc=>_0x2cdefc<=_0x56637a)['map'](_0x15ae65=>_0x5615b5['replace'](/\/$/,'')+'/-/resize/'+_0x15ae65+'x/\x20'+_0x15ae65+'w');return{'imageFallbackUrl':_0x5615b5,'imageSources':[{'srcset':_0x3885da['join'](',\x20'),'sizes':'(max-width:\x20'+_0x56637a+'px)\x20100vw,\x20'+_0x56637a+'px','type':'image/webp'}]};}function M(_0x2675c0,_0x200cd7,_0x3f3664){const _0x295eec=_0x2675c0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x295eec?parseInt(_0x295eec[0x1],0xa):_0x200cd7,'height':_0x295eec?parseInt(_0x295eec[0x2],0xa):_0x3f3664};}function p(_0x2e2c33,_0x701ab8){const _0x16daf3=new(_0x301d73())(),_0x2b05eb=_0x2e2c33['plugins']['get']('ImageUtils'),_0x1ec915=_0x2e2c33['editing']['mapper']['toViewElement'](_0x701ab8),_0x284692=_0x2b05eb['findViewImgElement'](_0x1ec915),_0x1d8acb=_0x2e2c33['editing']['view']['domConverter']['viewToDom'](_0x284692),_0x21a645=_0x701ab8['getAttribute']('width'),_0x511dab=_0x701ab8['getAttribute']('height'),_0x4f5fef='image-processing';_0x2e2c33['editing']['view']['change'](_0x4f04fb=>{_0x4f04fb['addClass'](_0x4f5fef,_0x1ec915),_0x4f04fb['setStyle']('aspect-ratio',_0x21a645+'/'+_0x511dab,_0x284692);}),_0x16daf3['listenTo'](_0x1d8acb,'load',()=>{_0x16daf3['stopListening'](_0x1d8acb,'load'),_0x2e2c33['editing']['view']['change'](_0x4ed013=>{_0x4ed013['removeClass'](_0x4f5fef,_0x1ec915),_0x4ed013['removeStyle']('aspect-ratio',_0x284692);});});}function z(_0x426d6a){if(Array['isArray'](_0x426d6a)){const _0x22a973=_0x426d6a['map'](z);return _0x30bb21=>_0x22a973['some'](_0x3f1592=>_0x3f1592(_0x30bb21));}if('origin'==_0x426d6a){const _0x9794af=_0xbd233a['window']['location']['origin'];return _0x6944ce=>new URL(_0x6944ce,_0xbd233a['document']['baseURI'])['origin']==_0x9794af;}return'function'==typeof _0x426d6a?_0x426d6a:_0x426d6a instanceof RegExp?_0x470377=>!(!_0x470377['match'](_0x426d6a)&&!_0x470377['replace'](/^https?:\/\//,'')['match'](_0x426d6a)):()=>!0x1;}function O(_0x2d666b,_0xe166d4){return _0x279433(_0x2d666b['target'])['includes'](_0xe166d4);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x13fb6a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4fd5cd,_0x4b9183,_0xf075d9){super(),this['_editor']=_0x4fd5cd,this['_editing']=_0x4b9183,this['_dialog']=_0x4fd5cd['plugins']['get'](_0x549de5),this['_api']=_0x4b9183['ctxElement']['getAPI'](),this['_type']=_0xf075d9,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:_0x4dbd2e,model:_0x831bdd}=this['_editor'],_0x2d8dc3=_0x831bdd['document']['selection']['getSelectedElement'](),_0x5b7a70=_0x2d8dc3&&(_0x2d8dc3['is']('element','imageBlock')||_0x2d8dc3['is']('element','imageInline'));this['_formView']=new E(_0x4dbd2e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x458225,'title':_(_0x4dbd2e,this['_type'],_0x5b7a70?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xdb791e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x358de5=>!O(_0x358de5,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x279330}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4d5508=>{const _0x3e19fd=_0x279330['length'];for(const _0xed68ff of _0x279330){const _0x24b113=_0xed68ff===_0x279330[_0x3e19fd-0x1],{cdnUrl:_0xde9dd5,fileInfo:_0x28fba5}=_0xed68ff;if(!_0xde9dd5||!_0x28fba5)continue;const {width:_0x39dada,height:_0x31205c}=_0x28fba5['imageInfo'],_0x5ed9e6=M(_0xde9dd5,_0x39dada,_0x31205c),_0x250442=C(_0xde9dd5,_0x5ed9e6['width']),_0x1e234c={'id':_0x28fba5['uuid'],'type':'image','attributes':{'imageDimension':_0x5ed9e6,..._0x250442}};this['_insertAsset'](_0x1e234c,_0x24b113,_0x4d5508);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1224c7=>{'idle'===_0x1224c7['detail']['status']&&!_0x1224c7['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3a35d2,_0xdc4a37,_0xdb821e){const _0x7d62b0=this['_editor']['model']['document']['selection'],_0x217e93=_0x7d62b0['getSelectedElement'](),_0x343ca1=!(!_0x217e93||!_0x217e93['is']('element','imageInline'));_0xdb821e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3a35d2,_0x343ca1),_0xdc4a37||_0xdb821e['setSelection'](_0x7d62b0['getLastPosition']());}['_insertImage'](_0x1f3c59,_0x5b65e5){const _0x261493=this['_editor'],{imageDimension:_0x1f9087,imageFallbackUrl:_0x4b5870,imageSources:_0x237e57}=_0x1f3c59['attributes'];_0x261493['execute']('insertImage',{'imageType':_0x5b65e5?'imageInline':null,'source':{'uploadcareImageId':_0x1f3c59['id'],'src':_0x4b5870,'sources':_0x237e57,..._0x1f9087}});}}class w extends _0x5606da{['_editing'];['_controller']=null;static get['requires'](){return[_0x549de5,o];}constructor(_0x1262b4){super(_0x1262b4),this['_editing']=_0x1262b4['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x536ffd){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x536ffd);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x19972c,..._0x4c5ca9}){return _0x5c77ef(_0x19972c,_0x4c5ca9);}static['getInfo'](_0xe4105d,_0xaae834){return _0x2e8ff7(_0xe4105d,_0xaae834);}}class f extends _0x3bf42c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x436bf8,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x363bc4=this['editor'];if(!!!_0x363bc4['config']['get']('uploadcare'))return;_0x363bc4['plugins']['get'](_0x436bf8)['createUploadAdapter']=_0x1cd71e=>new k(_0x1cd71e,_0x363bc4),_0x363bc4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x25dab2,{imageElement:_0x59211a,data:_0x58207d})=>{_0x363bc4['model']['change'](_0x413b64=>{_0x413b64['setAttribute']('uploadcareImageId',_0x58207d['uploadcareImageId'],_0x59211a);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2c83da,_0x1bec0d){this['loader']=_0x2c83da,this['editor']=_0x1bec0d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xf3ce53=await this['loader']['file'];return j['upload']({'file':_0xf3ce53,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1a5644=>{_0x1a5644&&_0x1a5644['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1a5644['value']);}})['then'](async _0x10e477=>{const {imageFallbackUrl:_0x36bcfe,imageSources:_0x1f5098}=C(_0x10e477['cdnUrl'],_0x10e477['imageInfo']['width']);return{'uploadcareImageId':_0x10e477['uuid'],'default':_0x36bcfe,'sources':_0x1f5098};})['catch'](()=>{const _0x19d7f2=t('Cannot\x20upload\x20file:')+('\x20'+_0xf3ce53['name']+'.');return Promise['reject'](_0x19d7f2);});}['abort'](){this['controller']['abort']();}}class o extends _0x3bf42c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x549de5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3b382a){super(_0x3b382a),this['ucContextId']=_0x24f7d9();}['init'](){const _0x34ae01=this['editor'];_0x34ae01['commands']['add']('uploadcare',new w(_0x34ae01));}['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 _0x21e085=_0xbd233a['document']['querySelector']('input[uploadcare-file-input]');_0x21e085&&_0x21e085['remove']();}),async function(_0x235286){const _0x561082=_0x33b713([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2e110f=0x535f8c3a,_0x34764a=0x5358f04a^_0x2e110f,_0x163d78=window[_0x33b713([0x44,0x61,0x74,0x65])][_0x33b713([0x6e,0x6f,0x77])](),_0x4ec137=_0x235286[_0x33b713([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e943a=new window[(_0x33b713([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b946d=>{_0x4ec137[_0x33b713([0x6f,0x6e,0x63,0x65])](_0x33b713([0x72,0x65,0x61,0x64,0x79]),_0x3b946d);}),_0x48d6a5={[_0x33b713([0x6b,0x74,0x79])]:_0x33b713([0x45,0x43]),[_0x33b713([0x75,0x73,0x65])]:_0x33b713([0x73,0x69,0x67]),[_0x33b713([0x63,0x72,0x76])]:_0x33b713([0x50,0x2d,0x32,0x35,0x36]),[_0x33b713([0x78])]:_0x33b713([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]),[_0x33b713([0x79])]:_0x33b713([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]),[_0x33b713([0x61,0x6c,0x67])]:_0x33b713([0x45,0x53,0x32,0x35,0x36])},_0x26a290=_0x4ec137[_0x33b713([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x33b713([0x67,0x65,0x74])](_0x33b713([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4ef3aa(){let _0x4f7d55,_0x29ccc8=null,_0x4db7c1=null;try{if(_0x26a290==_0x33b713([0x47,0x50,0x4c]))return _0x33b713([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f7d55=_0x22b29d(),!_0x4f7d55)return _0x33b713([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4f7d55[_0x33b713([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4db7c1=_0xfe483f(_0x4f7d55[_0x33b713([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f7d55[_0x33b713([0x6a,0x74,0x69])])),await _0x11821f()?_0x30a3ee()?_0x39b4cf()?_0x33b713([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c28f3()?(_0x4f7d55[_0x33b713([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x33b713([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29ccc8=_0x437179(_0x33b713([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4f7d55[_0x33b713([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x33b713([0x74,0x72,0x69,0x61,0x6c])&&(_0x29ccc8=_0x437179(_0x33b713([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x52f9f2()):_0x33b713([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x33b713([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x33b713([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x33b713([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x39b4cf(){const _0x179c0b=[_0x33b713([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x33b713([0x74,0x72,0x69,0x61,0x6c])][_0x33b713([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f7d55[_0x33b713([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x163d78/0x3e8:0xe10*_0x34764a;return _0x4f7d55[_0x33b713([0x65,0x78,0x70])]<_0x179c0b;}function _0x30a3ee(){const _0x1d75ac=_0x4f7d55[_0x33b713([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1d75ac&&(!!_0x1d75ac[_0x33b713([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33b713([0x2a]))||!!_0x1d75ac[_0x33b713([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33b713([0x55,0x50,0x4c,0x43])));}function _0x1c28f3(){const _0x5b950f=_0x4f7d55[_0x33b713([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b950f||0x0==_0x5b950f[_0x33b713([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17c488}=new URL(window[_0x33b713([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5b950f[_0x33b713([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17c488))return!0x0;const _0x549411=_0x17c488[_0x33b713([0x73,0x70,0x6c,0x69,0x74])](_0x33b713([0x2e]));return _0x5b950f[_0x33b713([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xdf4acb=>_0xdf4acb[_0x33b713([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33b713([0x2a])))[_0x33b713([0x6d,0x61,0x70])](_0x1e118c=>_0x1e118c[_0x33b713([0x73,0x70,0x6c,0x69,0x74])](_0x33b713([0x2e])))[_0x33b713([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40cbb7=>_0x40cbb7[_0x33b713([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x549411[_0x33b713([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x33b713([0x6d,0x61,0x70])](_0x418da6=>Array(_0x549411[_0x33b713([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x418da6[_0x33b713([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x33b713([0x66,0x69,0x6c,0x6c])](_0x418da6[0x0]===_0x33b713([0x2a])?_0x33b713([0x2a]):'')[_0x33b713([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x418da6))[_0x33b713([0x73,0x6f,0x6d,0x65])](_0x5b2087=>_0x549411[_0x33b713([0x65,0x76,0x65,0x72,0x79])]((_0x24749a,_0x4fc707)=>_0x5b2087[_0x4fc707]===_0x24749a||_0x5b2087[_0x4fc707]===_0x33b713([0x2a])));}function _0x52f9f2(){return _0x29ccc8&&_0x4db7c1?new window[(_0x33b713([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19c123,_0x3e09f2)=>{_0x29ccc8[_0x33b713([0x74,0x68,0x65,0x6e])](_0x19c123,_0x3e09f2),_0x4db7c1[_0x33b713([0x74,0x68,0x65,0x6e])](_0x3b4d27=>{_0x3b4d27!=_0x33b713([0x56,0x61,0x6c,0x69,0x64])&&_0x19c123(_0x3b4d27);},_0x3e09f2);}):_0x29ccc8||_0x4db7c1||_0x33b713([0x56,0x61,0x6c,0x69,0x64]);}}function _0xfe483f(_0x26b1f5,_0x527bb9){return new window[(_0x33b713([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x380947=>{if(_0x70c4ea())return _0x380947(_0x33b713([0x56,0x61,0x6c,0x69,0x64]));_0x2e9478(),_0x4ec137[_0x33b713([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x33b713([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ea063=!0x1;const _0x339462=_0x24f7d9();function _0x15e359(_0x1963fe){return!!_0x1963fe&&(typeof _0x1963fe===_0x33b713([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1963fe===_0x33b713([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1963fe[_0x33b713([0x74,0x68,0x65,0x6e])]===_0x33b713([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1963fe[_0x33b713([0x63,0x61,0x74,0x63,0x68])]===_0x33b713([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x37c146(_0x8a4cc3){_0xe0a2bd(_0x8a4cc3)[_0x33b713([0x74,0x68,0x65,0x6e])](_0x15c05c=>{if(!_0x15c05c||_0x15c05c[_0x33b713([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x33b713([0x6f,0x6b]))return _0x33b713([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ea344(_0x4ffea8(_0x339462+_0x527bb9))!=_0x15c05c[_0x33b713([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x33b713([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x33b713([0x56,0x61,0x6c,0x69,0x64]);})[_0x33b713([0x74,0x68,0x65,0x6e])](_0x38d124=>(_0x4e7e3b(),_0x38d124),()=>{const _0x2aa93d=_0x575662();return null==_0x2aa93d?(_0x4e7e3b(),_0x33b713([0x56,0x61,0x6c,0x69,0x64])):_0x33b713(_0x163d78-_0x2aa93d>(0x7753083a^_0x2e110f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x33b713([0x74,0x68,0x65,0x6e])](_0x380947)[_0x33b713([0x63,0x61,0x74,0x63,0x68])](()=>{_0x380947(_0x33b713([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x20a51=0x536962ba^_0x2e110f;function _0x4e7e3b(){const _0x43eab8=_0x33b713([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ea344(_0x4ffea8(_0x26b1f5)),_0x2e46a2=_0x48b150(_0x1ea344(window[_0x33b713([0x4d,0x61,0x74,0x68])][_0x33b713([0x63,0x65,0x69,0x6c])](_0x163d78/_0x20a51)));window[_0x33b713([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x33b713([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43eab8,_0x2e46a2);}function _0x575662(){const _0x8f5972=_0x33b713([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ea344(_0x4ffea8(_0x26b1f5)),_0x6b684e=window[_0x33b713([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x33b713([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8f5972);return _0x6b684e?window[_0x33b713([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48b150(_0x6b684e),0x10)*_0x20a51:null;}function _0xe0a2bd(_0x37f150){return new window[(_0x33b713([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7e70c9,_0x5194da)=>{_0x37f150[_0x33b713([0x74,0x68,0x65,0x6e])](_0x7e70c9,_0x5194da),window[_0x33b713([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5194da,0x535e58fa^_0x2e110f);});}}_0x4ec137[_0x33b713([0x6f,0x6e])](_0x33b713([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x6413cf,_0x14a2c3)=>{if(_0x14a2c3[0x0]!=_0x26b1f5)return _0x380947(_0x33b713([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14a2c3[0x1]={..._0x14a2c3[0x1],[_0x33b713([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x339462};},{[_0x33b713([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x33b713([0x68,0x69,0x67,0x68])}),_0x4ec137[_0x33b713([0x6f,0x6e])](_0x33b713([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2e9c57=>{_0x15e359(_0x2e9c57[_0x33b713([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ea063=!0x0,_0x37c146(_0x2e9c57[_0x33b713([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x33b713([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x33b713([0x6c,0x6f,0x77])}),_0x1e943a[_0x33b713([0x74,0x68,0x65,0x6e])](()=>{_0x4ea063||_0x380947(_0x33b713([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x70c4ea(){return _0x4ec137[_0x33b713([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x33b713([0x76,0x69,0x65,0x77])][_0x33b713([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x33b713([0x61,0x75,0x74,0x6f]);}function _0x2e9478(){_0x4ec137[_0x33b713([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x33b713([0x76,0x69,0x65,0x77])][_0x33b713([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x33b713([0x61,0x75,0x74,0x6f]);}}function _0x437179(_0x578e9c){const _0x5cffc3=[new window[(_0x33b713([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x599afd=>setTimeout(_0x599afd,0x5356b2f6^_0x2e110f)),_0x1e943a[_0x33b713([0x74,0x68,0x65,0x6e])](()=>new window[(_0x33b713([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a96b1=>{let _0x522802=0x0;_0x4ec137[_0x33b713([0x6d,0x6f,0x64,0x65,0x6c])][_0x33b713([0x6f,0x6e])](_0x33b713([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4afaa6,_0x35ea67)=>{_0x35ea67[0x0][_0x33b713([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x522802++,_0x522802==(0x535f89d2^_0x2e110f)&&(_0x2a96b1(),_0x4afaa6[_0x33b713([0x6f,0x66,0x66])]());});}))];return window[_0x33b713([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x33b713([0x72,0x61,0x63,0x65])](_0x5cffc3)[_0x33b713([0x74,0x68,0x65,0x6e])](()=>_0x578e9c);}async function _0x4298fd(){await _0x1e943a,_0x4ec137[_0x33b713([0x6d,0x6f,0x64,0x65,0x6c])][_0x33b713([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x39b914,_0x4ec137[_0x33b713([0x6d,0x6f,0x64,0x65,0x6c])][_0x33b713([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x39b914,_0x4ec137[_0x33b713([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x33b713([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5adf37(_0x2a034b){const _0x1fae6f=_0x26d78c();_0x4ec137[_0x1fae6f]=_0x33b713([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a034b,_0x2a034b!=_0x33b713([0x56,0x61,0x6c,0x69,0x64])&&_0x4298fd();}function _0x26d78c(){const _0x5c1785=window[_0x33b713([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x33b713([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x33b713([0x6e,0x6f,0x77])]())[_0x33b713([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x33b713([0x2e]),'');let _0x5746e4=_0x33b713([0x68]);for(let _0x427d88=0x0;_0x427d88<_0x5c1785[_0x33b713([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x427d88+=0x2){let _0x3f4a25=window[_0x33b713([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c1785[_0x33b713([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x427d88,_0x427d88+0x2));_0x3f4a25>=_0x561082[_0x33b713([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f4a25-=_0x561082[_0x33b713([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5746e4+=_0x561082[_0x3f4a25];}return _0x5746e4;}function _0x22b29d(){const _0x485c7b=_0x26a290[_0x33b713([0x73,0x70,0x6c,0x69,0x74])](_0x33b713([0x2e]));if(0x3!=_0x485c7b[_0x33b713([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3816c6(_0x485c7b[0x1]);function _0x3816c6(_0x3c5a1c){const _0x55e337=_0x5b8f2d(_0x3c5a1c);return _0x55e337&&_0x4d7bcb()?_0x55e337:null;function _0x4d7bcb(){const _0x51b2ee=_0x55e337[_0x33b713([0x6a,0x74,0x69])],_0x400ef3=window[_0x33b713([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51b2ee[_0x33b713([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51b2ee[_0x33b713([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2324e1={..._0x55e337,[_0x33b713([0x6a,0x74,0x69])]:_0x51b2ee[_0x33b713([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x51b2ee[_0x33b713([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2324e1[_0x33b713([0x76,0x63])],_0x4ffea8(_0x2324e1)==_0x400ef3;}}}async function _0x11821f(){let _0x1ba1c9=!0x0;try{const _0x58bce1=_0x26a290[_0x33b713([0x73,0x70,0x6c,0x69,0x74])](_0x33b713([0x2e])),[_0x43601c,_0x3a116e,_0x38d435]=_0x58bce1;return _0x25e0fe(_0x43601c),await _0x2be6b7(_0x43601c,_0x3a116e,_0x38d435),_0x1ba1c9;}catch{return!0x1;}function _0x25e0fe(_0x24b3ce){const _0x4c328f=_0x5b8f2d(_0x24b3ce);_0x4c328f&&_0x4c328f[_0x33b713([0x61,0x6c,0x67])]==_0x33b713([0x45,0x53,0x32,0x35,0x36])||(_0x1ba1c9=!0x1);}async function _0x2be6b7(_0x102bca,_0x26f707,_0xf4517c){const _0x2c3c89=window[_0x33b713([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x33b713([0x66,0x72,0x6f,0x6d])](_0x91b7ff(_0xf4517c),_0x142213=>_0x142213[_0x33b713([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3d68dc=new window[(_0x33b713([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x33b713([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x102bca+_0x33b713([0x2e])+_0x26f707),_0x1046b4=window[_0x33b713([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x33b713([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1046b4)return;const _0x12b192=await _0x1046b4[_0x33b713([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x33b713([0x6a,0x77,0x6b]),_0x48d6a5,{[_0x33b713([0x6e,0x61,0x6d,0x65])]:_0x33b713([0x45,0x43,0x44,0x53,0x41]),[_0x33b713([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x33b713([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x33b713([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1046b4[_0x33b713([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x33b713([0x6e,0x61,0x6d,0x65])]:_0x33b713([0x45,0x43,0x44,0x53,0x41]),[_0x33b713([0x68,0x61,0x73,0x68])]:{[_0x33b713([0x6e,0x61,0x6d,0x65])]:_0x33b713([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x12b192,_0x2c3c89,_0x3d68dc)||(_0x1ba1c9=!0x1);}}function _0x5b8f2d(_0x31e9a5){return _0x31e9a5[_0x33b713([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x33b713([0x65,0x79]))?JSON[_0x33b713([0x70,0x61,0x72,0x73,0x65])](_0x91b7ff(_0x31e9a5)):null;}function _0x91b7ff(_0x28dcf0){return window[_0x33b713([0x61,0x74,0x6f,0x62])](_0x28dcf0[_0x33b713([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x33b713([0x2b]))[_0x33b713([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x33b713([0x2f])));}function _0x4ffea8(_0x4e5dcc){let _0x2ecad7=0x1505;function _0x5e9cc6(_0x2026a1){for(let _0x13691b=0x0;_0x13691b<_0x2026a1[_0x33b713([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13691b++){const _0x4e6ac6=_0x2026a1[_0x33b713([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x13691b);_0x2ecad7=(_0x2ecad7<<0x5)+_0x2ecad7+_0x4e6ac6,_0x2ecad7&=_0x2ecad7;}}function _0x4d6053(_0x14763d){Array[_0x33b713([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x14763d)?_0x14763d[_0x33b713([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4d6053):_0x14763d&&typeof _0x14763d==_0x33b713([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x33b713([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x14763d)[_0x33b713([0x73,0x6f,0x72,0x74])]()[_0x33b713([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x26abc9,_0x2a6b41])=>{_0x5e9cc6(_0x26abc9),_0x4d6053(_0x2a6b41);}):_0x5e9cc6(window[_0x33b713([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x14763d));}return _0x4d6053(_0x4e5dcc),_0x2ecad7>>>0x0;}function _0x1ea344(_0x2b2780){return _0x2b2780[_0x33b713([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x33b713([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x33b713([0x30]));}function _0x48b150(_0x5da4c5){return _0x5da4c5[_0x33b713([0x73,0x70,0x6c,0x69,0x74])]('')[_0x33b713([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x33b713([0x6a,0x6f,0x69,0x6e])]('');}function _0x39b914(){}function _0x33b713(_0x3d31a6){return _0x3d31a6['map'](_0x395ef3=>String['fromCharCode'](_0x395ef3))['join']('');}_0x5adf37(await _0x4ef3aa());}(this);}['_initSchema'](){const _0x1187a3=this['editor']['model']['schema'];_0x1187a3['isRegistered']('imageBlock')&&_0x1187a3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1187a3['isRegistered']('imageInline')&&_0x1187a3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4e00b3=this['editor'];_0x4e00b3['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4e00b3['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5750a6=>_0x5750a6['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3a6078=_0x4e00b3['commands']['get']('replaceImageSource');_0x3a6078&&this['listenTo'](_0x3a6078,'cleanupImage',(_0x6dcca8,[_0x491931,_0x52d566])=>{_0x491931['removeAttribute']('uploadcareImageId',_0x52d566);});}['_initConfig'](){const _0x5b123e=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2e569b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x286cbd(_0xbd233a['document'],'uc-config',{..._0x5b123e,'pubkey':_0x2e569b,'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']=_0x2a3c7f=>{if('closeMax'==_0x2a3c7f)return'#uc-icon-arrow-down';},_0xbd233a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x286cbd(_0xbd233a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xbd233a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4886ae=this['editor']['commands']['get']('insertImage');_0x4886ae&&this['listenTo'](_0x4886ae,'execute',()=>{const _0x1defe7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1defe7&&_0x1defe7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1defe7);});});const _0x506865=this['editor']['commands']['get']('uploadcareImageReplace');_0x506865&&this['listenTo'](_0x506865,'execute',()=>{const _0x272a23=this['editor']['model']['document']['selection']['getSelectedElement']();_0x272a23&&_0x272a23['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x272a23);});});}}class tt extends _0x3bf42c{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7da0e7){super(_0x7da0e7),_0x7da0e7['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3a98f1['defineComponents'](_0x3a98f1),this['_defineLocale']();}['_defineLocale'](){const _0x1b555a=this['editor']['config']['get']('uploadcare.locale'),_0x2653a=this['editor']['locale']['contentLanguage'];_0x1b555a&&_0x3a98f1['defineLocale'](_0x2653a,_0x1b555a);}}class ii extends _0x214dae{constructor(_0x36d55e){super(_0x36d55e);const t=_0x36d55e['t'],_0x35f018=this['bindTemplate'],_0x2d7d2b=new _0x585ae6();_0x2d7d2b['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':[_0x2d7d2b,{'text':_0x35f018['to']('imageUploadProgress',_0x1a0dae=>t('Loading\x20image...')+'\x20('+(_0x1a0dae||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 _0x214dae{constructor(_0x18ebc4){super(_0x18ebc4);const t=_0x18ebc4['t'];this['set']('errorType',null);const _0xa63103=new _0x3669b2(_0x18ebc4);_0xa63103['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xa63103['withText']=!0x0,_0xa63103['class']='ck-button-action',_0xa63103['on']('execute',()=>{this['fire']('retry');}),_0xa63103['bind']('isVisible')['to'](this,'errorType',_0x3bda3=>'NotFound'!==_0x3bda3);const _0x5b30fc=new _0x53016e();_0x5b30fc['content']=_0x176afd,_0x5b30fc['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3ee889=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':[_0x5b30fc,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3ee889['to']('errorType',_0x4ee072=>t('NotFound'!==_0x4ee072?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xa63103]},{'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 _0x214dae{constructor(_0x261a36,_0xc43322){super(_0x261a36);const _0x110801=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xc43322,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x110801['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x51047b,_0x3a1f60,_0x1d6c50){super(_0x51047b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x51047b),this['_errorView']=new ti(_0x51047b),this['_editingView']=new ei(_0x51047b,_0x1d6c50),this['_focusableView']=new _0x214dae(_0x51047b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3a1f60),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'],_0x50e928=>{this['_addUploadcareImageEditorListeners'](_0x50e928);});}),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'](_0x363cb8,_0x59370d){const _0x22602d='uc-cloud-image-editor',_0x239acb=_0x363cb8['querySelector'](_0x22602d);if(_0x239acb)return _0x59370d(_0x239acb);const _0x5dcc56=new MutationObserver(_0x26933a=>{const _0x1318ca=_0x26933a['filter'](_0x2ac7c3=>_0x2ac7c3['target']===_0x363cb8&&_0x2ac7c3['addedNodes']['length']>0x0&&_0x2ac7c3['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x22602d);_0x1318ca['length']&&(_0x5dcc56['disconnect'](),_0x59370d(_0x1318ca[0x0]['addedNodes'][0x0]));});_0x5dcc56['observe'](_0x363cb8,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x224c80){_0x224c80['addEventListener']('apply',_0x2c5730=>{this['fire']('apply',{'imageSrc':_0x2c5730['detail']['cdnUrl']});}),_0x224c80['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class G extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x13fb6a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5ec210,_0x413bf1,_0x5386d2){super(),this['_editor']=_0x5ec210,this['_dialog']=_0x413bf1,this['_imageElement']=_0x5386d2,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 _0x9bbb73=this['_imageElement'],_0x10c45b=_0x9bbb73['getAttribute']('uploadcareImageId'),_0x315ad0=_0x9bbb73['getAttribute']('src');if(_0x10c45b)await this['_loadImageInfo'](_0x10c45b,_0x315ad0);else{if(this['_imageCache']['has'](_0x315ad0)){const _0x1c75d7=this['_imageCache']['get'](_0x315ad0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1c75d7['url'],this['imageDimension']=_0x1c75d7['dimension'],this['imageId']=_0x1c75d7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x22b021}=this['_editor'],t=_0x22b021['t'],_0x219403=new X(_0x22b021,this['imageStatus'],this['_attributes']);_0x219403['bind']('status')['to'](this,'imageStatus'),_0x219403['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x219403['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x219403['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x219403,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2f28ab,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x219403,'position':_0xdb791e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x219403['focus']();},'onHide':()=>{_0x219403['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xd84060=>!O(_0xd84060,_0x219403['element'])}});}['_loadImageInfo'](_0xdfa852,_0xc66f48){return j['getInfo'](_0xdfa852,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xf3ffd8=>{const {width:_0x1fe673,height:_0x583829}=_0xf3ffd8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xc66f48,this['imageDimension']={'width':_0x1fe673,'height':_0x583829},this['imageId']=_0xdfa852;})['catch'](_0x5dd2f8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5dd2f8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3d9378,_0x4a9061){return this['_getImageAsFile'](_0x3d9378)['then'](_0x442ef0=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4a9061['signal'],'file':_0x442ef0,'onProgress':_0x1d3972=>{_0x1d3972&&_0x1d3972['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1d3972['value']));}}))['then'](_0x107f55=>{const {width:_0xf21b29,height:_0x3a7242}=_0x107f55['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x107f55['cdnUrl'],this['imageDimension']={'width':_0xf21b29,'height':_0x3a7242},this['imageId']=_0x107f55['uuid'],this['imageUploadProgress']=null;const _0x5630a7=_0x3d9378['getAttribute']('src');this['_imageCache']['set'](_0x5630a7,{'id':_0x107f55['uuid'],'url':_0x107f55['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4d40bb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d40bb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x435a60,_0x3c6dd1){_0x435a60['on']('apply',(_0x15758f,_0xd51f61)=>{this['_replaceImage'](_0x3c6dd1,_0xd51f61['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x435a60['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x435a60['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x38089d,_0x229949,_0x1a32c0){const _0x12376d=this['_editor'],{width:_0xb976d6,height:_0x597548}=M(_0x229949,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2ec45a,imageSources:_0x27c918}=C(_0x229949,_0xb976d6);_0x12376d['model']['change'](_0x168f20=>{if('$graveyard'===_0x38089d['root']['rootName']){_0x12376d['execute']('insertImage',{'imageType':_0x38089d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x38089d['getAttributes']()),'uploadcareImageId':_0x1a32c0,'src':_0x2ec45a,'sources':_0x27c918,'width':_0xb976d6,'height':_0x597548}});const _0x1ed29a=_0x38089d['getChildren']();_0x38089d=_0x12376d['model']['document']['selection']['getSelectedElement']();for(const _0x5c5d2d of _0x1ed29a)_0x168f20['append'](_0x168f20['cloneElement'](_0x5c5d2d),_0x38089d);}else _0x168f20['setSelection'](_0x38089d,'on'),_0x12376d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x38089d['getAttributes']()),'uploadcareImageId':_0x1a32c0,'src':_0x2ec45a,'sources':_0x27c918,'width':_0xb976d6,'height':_0x597548},_0x38089d);_0x168f20['setSelection'](_0x38089d,'on');});}async['_getImageAsFile'](_0x240148){const _0x30a8d1=_0xbd233a['window'],_0xc195f4=_0xbd233a['document']['location']['href'],_0x1239e1=new _0x30a8d1['URL'](_0x240148['getAttribute']('src'),_0xc195f4);if('data:'===_0x1239e1['protocol']){const _0x2bf112=_0x1239e1['href']['split'](','),_0x10d0e2=_0x2bf112[0x0]['match'](/:(.*?);/)[0x1],_0x2fa780=_0x10d0e2['split']('/')[0x1],_0x2d6b64=_0x30a8d1['atob'](_0x2bf112[_0x2bf112['length']-0x1]);let _0x38661d=_0x2d6b64['length'];const _0x2c7f61=new _0x30a8d1['Uint8Array'](_0x38661d);for(;_0x38661d--;)_0x2c7f61[_0x38661d]=_0x2d6b64['charCodeAt'](_0x38661d);return new _0x30a8d1['File']([_0x2c7f61],'image.'+_0x2fa780,{'type':_0x10d0e2});}const _0x3597f8=_0x1239e1['href']['split']('/'),_0x272f21=_0x3597f8[_0x3597f8['length']-0x1],_0x403b27=_0x272f21['split']('.')[0x1];return _0x30a8d1['fetch'](_0x1239e1['href'])['then'](_0xa8e2e4=>_0xa8e2e4['clone']()['blob']())['then'](_0x2437ad=>new _0x30a8d1['File']([_0x2437ad],_0x272f21,{'type':'image/'+_0x403b27}));}}class R extends _0x5606da{['imageEditController'];static get['requires'](){return[_0x549de5];}['_isEditable'];constructor(_0xbecd70){super(_0xbecd70),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3a8654){const _0x7ab230=z(_0x3a8654);return _0x310472=>!(!_0x310472||!_0x310472['is']('element','imageBlock')&&!_0x310472['is']('element','imageInline'))&&(!!_0x310472['hasAttribute']('uploadcareImageId')||!!_0x310472['hasAttribute']('src')&&_0x7ab230(_0x310472['getAttribute']('src')));}(_0xbecd70['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x419343=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x419343);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x335914=this['editor']['model']['document']['selection']['getSelectedElement']();_0x335914&&(_0x335914['is']('element','imageBlock')||_0x335914['is']('element','imageInline'))&&(this['imageEditController']=new G(this['editor'],this['editor']['plugins']['get'](_0x549de5),_0x335914),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class Q extends _0x5606da{['refresh'](){const _0x504dbf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x504dbf&&(_0x504dbf['is']('element','imageBlock')||_0x504dbf['is']('element','imageInline')));}['execute'](_0xb16b81){const _0x4992b2=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x56f4f9=>{_0x56f4f9['setAttributes'](_0xb16b81,_0x4992b2),_0x56f4f9['removeAttribute']('srcset',_0x4992b2),_0x56f4f9['removeAttribute']('sizes',_0x4992b2);});}}class m extends _0x3bf42c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x529912,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x8e8c37}=this;_0x8e8c37['commands']['add']('uploadcareImageEdit',new R(_0x8e8c37)),_0x8e8c37['commands']['add']('uploadcareImageReplace',new Q(_0x8e8c37));}}class g extends _0x3bf42c{['_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 _0x2414c3=this['editor'];_0x2414c3['ui']['componentFactory']['add']('uploadcareImageEdit',_0x202d8e=>{const _0x36cfba=_0x2414c3['commands']['get']('uploadcareImageEdit'),_0x3ad5c8=new _0x3669b2(_0x202d8e),t=_0x202d8e['t'];return _0x3ad5c8['set']({'icon':_0x2f28ab,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3ad5c8['bind']('isEnabled')['to'](_0x36cfba),_0x3ad5c8['bind']('isOn')['to'](_0x36cfba,'isActive'),this['listenTo'](_0x3ad5c8,'execute',()=>{_0x2414c3['execute']('uploadcareImageEdit'),_0x2414c3['editing']['view']['focus']();}),_0x3ad5c8;}),this['_initConfig']();}['_initConfig'](){const _0x5213eb=_0x286cbd(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5213eb),this['listenTo'](this['editor'],'destroy',()=>{_0x5213eb['remove']();});}}class et extends _0x3bf42c{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,R as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x11d2ae,Command as _0x40e5b7}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2be414,IconGooglePhotos as _0x1f29d5,IconGoogleDrive as _0x17e3e1,IconFacebook as _0x596959,IconDropbox as _0x50e116,IconUploadcareLink as _0x4ad979,IconUploadcareImageUpload as _0x120610,IconError as _0x49d49f,IconUploadcareImageEdit as _0x4385e1}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x37a343,MenuBarMenuListItemButtonView as _0x445963,View as _0x100c33,FocusCycler as _0x30eea8,Dialog as _0xc41957,DialogViewPosition as _0x38500b,SpinnerView as _0x362347,IconView as _0x33a36f,Notification as _0x5e2a9f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1f52dc,DomEmitterMixin as _0xb6ec90,global as _0x168412,getAncestors as _0x12741c,ObservableMixin as _0x5e1549,uid as _0x1bed44,createElement as _0x3d006a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5eca38}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x69c5b1,info as _0x4c7183}from'@uploadcare/upload-client';import*as _0x4963e2 from'@uploadcare/file-uploader';var i=function(_0x340f55){return _0x340f55['Local']='local',_0x340f55['URL']='url',_0x340f55['Dropbox']='dropbox',_0x340f55['GDrive']='gdrive',_0x340f55['Facebook']='facebook',_0x340f55['GPhotos']='gphotos',_0x340f55['OneDrive']='onedrive',_0x340f55;}({});function _(_0x2efe52,_0x4f183f,_0x598c8f){const t=_0x2efe52['t'],_0x73531=_0x2efe52['t'];switch(_0x4f183f){case i['Local']:return{'text':_0x73531('Insert'===_0x598c8f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x73531('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x598c8f?_0x73531('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x73531('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x598c8f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x598c8f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x598c8f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x598c8f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x598c8f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4f183f;}}class e extends _0x11d2ae{['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 _0x1b055f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x29128a;for(const _0x2899db in _0x1b055f){const _0x41fd84=_0x2899db,_0x453417=_0x1b055f[_0x41fd84];if('uploadcareLicenseKeyValid'==_0x453417||'uploadcareLicenseKeyInvalid'==_0x453417||'uploadcareLicenseKeyExpired'==_0x453417||'uploadcareLicenseKeyDomainLimit'==_0x453417||'uploadcareLicenseKeyNotAllowed'==_0x453417||'uploadcareLicenseKeyEvaluationLimit'==_0x453417||'uploadcareLicenseKeyTrialLimit'==_0x453417||'uploadcareLicenseKeyUsageLimit'==_0x453417){delete _0x1b055f[_0x41fd84],_0x29128a=_0x453417,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x29128a&&_0x1b055f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x29128a&&_0x1b055f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x29128a&&_0x1b055f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x29128a&&_0x1b055f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x29128a&&_0x1b055f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x29128a&&_0x1b055f['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x29128a&&_0x1b055f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5a6c31}=this,_0x55629e=_0x5a6c31['commands']['get']('uploadcare');if(!_0x55629e)return;const _0x42926a=this['_normalizeConfigSourceList'](_0x5a6c31['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4df1dc,_0x3d0318)=>{const _0x4c5a55=this['_getIntegrationKey'](_0x3d0318['type']);return _0x4df1dc[_0x4c5a55]||(_0x4df1dc[_0x4c5a55]=[]),_0x4df1dc[_0x4c5a55]['push'](_0x3d0318),_0x4df1dc;},{});_0x5a6c31['plugins']['has']('ImageInsertUI')&&_0x5a6c31['commands']['get']('uploadcare')&&Object['entries'](_0x42926a)['forEach'](([_0x36a9c9,_0x3e53d9])=>{_0x5a6c31['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x36a9c9,'observable':()=>_0x55629e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3e53d9),'formViewCreator':()=>this['_createDropdownButtons'](_0x3e53d9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3e53d9),'override':'assetManager'!==_0x36a9c9});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2db9ae){const {locale:_0x4cd03f}=this['editor'];return _0x2db9ae['map'](_0xa7d5e5=>{const _0x450448=_(_0x4cd03f,_0xa7d5e5,'Insert');switch(_0xa7d5e5){case i['Local']:return{'icon':_0x120610,'type':i['Local'],..._0x450448};case i['URL']:return{'icon':_0x4ad979,'type':i['URL'],..._0x450448};case i['Dropbox']:return{'icon':_0x50e116,'type':i['Dropbox'],..._0x450448};case i['Facebook']:return{'icon':_0x596959,'type':i['Facebook'],..._0x450448};case i['GDrive']:return{'icon':_0x17e3e1,'type':i['GDrive'],..._0x450448};case i['GPhotos']:return{'icon':_0x1f29d5,'type':i['GPhotos'],..._0x450448};case i['OneDrive']:return{'icon':_0x2be414,'type':i['OneDrive'],..._0x450448};}});}['_getIntegrationKey'](_0x3a714b){switch(_0x3a714b){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5213ae,_0x3e0955){const _0x3f2e80=this['editor'],_0xd63462=new _0x5213ae(_0x3f2e80['locale']),_0x9e0b0a=_0x3f2e80['commands']['get']('uploadcare');return _0xd63462['bind']('isEnabled')['to'](_0x9e0b0a),_0xd63462['on']('execute',()=>{_0x9e0b0a['execute'](_0x3e0955);}),_0xd63462;}['_createToolbarButton'](_0x3c17af){const {locale:_0x861cff}=this['editor'],_0x3871f4=this['editor']['plugins']['get']('ImageInsertUI'),_0x3aebdc=_0x3c17af[0x0],_0x45dbb5=this['_createButton'](_0x37a343,_0x3aebdc['type']);return _0x45dbb5['icon']=_0x3aebdc['icon'],_0x45dbb5['bind']('label')['to'](_0x3871f4,'isImageSelected',_0x4b85de=>_(_0x861cff,_0x3aebdc['type'],_0x4b85de?'Replace':'Insert')['text']),_0x45dbb5['tooltip']=!0x0,_0x45dbb5;}['_createDropdownButtons'](_0x559ebd){const {locale:_0x243b46}=this['editor'],_0xe82e8d=this['editor']['plugins']['get']('ImageInsertUI');return _0x559ebd['map'](_0x5d6f89=>{const _0x3f46d9=this['_createButton'](_0x37a343,_0x5d6f89['type']);return _0x3f46d9['withText']=!0x0,_0x3f46d9['icon']=_0x5d6f89['icon'],_0x3f46d9['bind']('label')['to'](_0xe82e8d,'isImageSelected',_0x113b5b=>_(_0x243b46,_0x5d6f89['type'],_0x113b5b?'Replace':'Insert')['text']),_0x3f46d9;});}['_createMenuBarButtons'](_0x183640){return _0x183640['map'](_0x6a6df0=>{const _0x560d85=this['_createButton'](_0x445963,_0x6a6df0['type']);return _0x560d85['icon']=_0x6a6df0['icon'],_0x560d85['label']=_0x6a6df0['shortText'],_0x560d85;});}}class F extends _0x100c33{['focusTracker'];['focusCycler'];constructor(_0x3cfb67){super(_0x3cfb67),this['focusTracker']=new _0x1f52dc(),this['focusCycler']=new _0x30eea8({'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(_0x12eab9,_0x5c53ae){super(_0x12eab9),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-'+_0x5c53ae}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xabdae3,_0x55b1a5){const _0x245dba=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x84d2ed=>_0x84d2ed<=_0x55b1a5)['map'](_0x379187=>_0xabdae3['replace'](/\/$/,'')+'/-/resize/'+_0x379187+'x/\x20'+_0x379187+'w');return{'imageFallbackUrl':_0xabdae3,'imageSources':[{'srcset':_0x245dba['join'](',\x20'),'sizes':'(max-width:\x20'+_0x55b1a5+'px)\x20100vw,\x20'+_0x55b1a5+'px','type':'image/webp'}]};}function S(_0x45739c,_0x15d359,_0x557843){const _0x19f41b=_0x45739c['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x19f41b?parseInt(_0x19f41b[0x1],0xa):_0x15d359,'height':_0x19f41b?parseInt(_0x19f41b[0x2],0xa):_0x557843};}function p(_0x1e4af2,_0x50a267){const _0x4e1d06=new(_0xb6ec90())(),_0x2799b0=_0x1e4af2['plugins']['get']('ImageUtils'),_0x5a3def=_0x1e4af2['editing']['mapper']['toViewElement'](_0x50a267),_0x44008f=_0x2799b0['findViewImgElement'](_0x5a3def),_0x5d41c3=_0x1e4af2['editing']['view']['domConverter']['viewToDom'](_0x44008f),_0x3be395=_0x50a267['getAttribute']('width'),_0x4cd183=_0x50a267['getAttribute']('height'),_0x2be1c1='image-processing';_0x1e4af2['editing']['view']['change'](_0x2ab057=>{_0x2ab057['addClass'](_0x2be1c1,_0x5a3def),_0x2ab057['setStyle']('aspect-ratio',_0x3be395+'/'+_0x4cd183,_0x44008f);}),_0x4e1d06['listenTo'](_0x5d41c3,'load',()=>{_0x4e1d06['stopListening'](_0x5d41c3,'load'),_0x1e4af2['editing']['view']['change'](_0x24468f=>{_0x24468f['removeClass'](_0x2be1c1,_0x5a3def),_0x24468f['removeStyle']('aspect-ratio',_0x44008f);});});}function G(_0x274200){if(Array['isArray'](_0x274200)){const _0x1e33ac=_0x274200['map'](G);return _0x271a76=>_0x1e33ac['some'](_0x21dfea=>_0x21dfea(_0x271a76));}if('origin'==_0x274200){const _0x466e7d=_0x168412['window']['location']['origin'];return _0x3cb8ae=>new URL(_0x3cb8ae,_0x168412['document']['baseURI'])['origin']==_0x466e7d;}return'function'==typeof _0x274200?_0x274200:_0x274200 instanceof RegExp?_0x55a614=>!(!_0x55a614['match'](_0x274200)&&!_0x55a614['replace'](/^https?:\/\//,'')['match'](_0x274200)):()=>!0x1;}function A(_0x1e3c58,_0x3cc359){return _0x12741c(_0x1e3c58['target'])['includes'](_0x3cc359);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5e1549(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x391198,_0x174d87,_0x486a6b){super(),this['_editor']=_0x391198,this['_editing']=_0x174d87,this['_dialog']=_0x391198['plugins']['get'](_0xc41957),this['_api']=_0x174d87['ctxElement']['getAPI'](),this['_type']=_0x486a6b,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:_0x382691,model:_0x1773c2}=this['_editor'],_0x1605b2=_0x1773c2['document']['selection']['getSelectedElement'](),_0x5a1836=_0x1605b2&&(_0x1605b2['is']('element','imageBlock')||_0x1605b2['is']('element','imageInline'));this['_formView']=new x(_0x382691,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x120610,'title':_(_0x382691,this['_type'],_0x5a1836?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x38500b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x412262=>!A(_0x412262,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xd031ad}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3752fa=>{const _0x242882=_0xd031ad['length'];for(const _0x3b90fa of _0xd031ad){const _0x11809b=_0x3b90fa===_0xd031ad[_0x242882-0x1],{cdnUrl:_0x3d4d17,fileInfo:_0x4c0fda}=_0x3b90fa;if(!_0x3d4d17||!_0x4c0fda)continue;const {width:_0x571b27,height:_0x45c572}=_0x4c0fda['imageInfo'],_0x1d3396=S(_0x3d4d17,_0x571b27,_0x45c572),_0x3daed2=C(_0x3d4d17,_0x1d3396['width']),_0x1c6edb={'id':_0x4c0fda['uuid'],'type':'image','attributes':{'imageDimension':_0x1d3396,..._0x3daed2}};this['_insertAsset'](_0x1c6edb,_0x11809b,_0x3752fa);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x432d05=>{'idle'===_0x432d05['detail']['status']&&!_0x432d05['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xf0ccb9,_0x522b8b,_0x4bdde5){const _0x4f1a18=this['_editor']['model']['document']['selection'],_0x1b3ac3=_0x4f1a18['getSelectedElement'](),_0x4c991d=!(!_0x1b3ac3||!_0x1b3ac3['is']('element','imageInline'));_0x4bdde5['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xf0ccb9,_0x4c991d),_0x522b8b||_0x4bdde5['setSelection'](_0x4f1a18['getLastPosition']());}['_insertImage'](_0x3a9a8b,_0x7b9b52){const _0x426694=this['_editor'],{imageDimension:_0x52f72b,imageFallbackUrl:_0x18e187,imageSources:_0x582192}=_0x3a9a8b['attributes'];_0x426694['execute']('insertImage',{'imageType':_0x7b9b52?'imageInline':null,'source':{'uploadcareImageId':_0x3a9a8b['id'],'src':_0x18e187,'sources':_0x582192,..._0x52f72b}});}}class w extends _0x40e5b7{['_editing'];['_controller']=null;static get['requires'](){return[_0xc41957,o];}constructor(_0x3dc2d5){super(_0x3dc2d5),this['_editing']=_0x3dc2d5['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x344d60){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x344d60);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xcb2c3c,..._0x1a6e9f}){return _0x69c5b1(_0xcb2c3c,_0x1a6e9f);}static['getInfo'](_0x23f37c,_0x30e415){return _0x4c7183(_0x23f37c,_0x30e415);}}class f extends _0x11d2ae{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5eca38,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x575d1c=this['editor'];if(!!!_0x575d1c['config']['get']('uploadcare'))return;_0x575d1c['plugins']['get'](_0x5eca38)['createUploadAdapter']=_0x557f43=>new k(_0x557f43,_0x575d1c),_0x575d1c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xa52ea,{imageElement:_0x474b58,data:_0x9c65f5})=>{_0x575d1c['model']['change'](_0x4070ae=>{_0x4070ae['setAttribute']('uploadcareImageId',_0x9c65f5['uploadcareImageId'],_0x474b58);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x46c015,_0xef6ba9){this['loader']=_0x46c015,this['editor']=_0xef6ba9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xdb4036=await this['loader']['file'];return j['upload']({'file':_0xdb4036,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x21ab28=>{_0x21ab28&&_0x21ab28['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x21ab28['value']);}})['then'](async _0x42ec65=>{const {imageFallbackUrl:_0x126b87,imageSources:_0x2acf6d}=C(_0x42ec65['cdnUrl'],_0x42ec65['imageInfo']['width']);return{'uploadcareImageId':_0x42ec65['uuid'],'default':_0x126b87,'sources':_0x2acf6d};})['catch'](()=>{const _0x13a35c=t('Cannot\x20upload\x20file:')+('\x20'+_0xdb4036['name']+'.');return Promise['reject'](_0x13a35c);});}['abort'](){this['controller']['abort']();}}class o extends _0x11d2ae{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0xc41957];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1c4ac5){super(_0x1c4ac5),this['ucContextId']=_0x1bed44();}['init'](){const _0x734189=this['editor'];_0x734189['commands']['add']('uploadcare',new w(_0x734189));}['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 _0xd9e978=_0x168412['document']['querySelector']('input[uploadcare-file-input]');_0xd9e978&&_0xd9e978['remove']();}),async function(_0x29e0b0){const _0x5b8fee=_0x5e56ac([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x3dc0b0=0x535f8c3a,_0x36fdbb=0x5358f0b2^_0x3dc0b0,_0x2db752=window[_0x5e56ac([0x44,0x61,0x74,0x65])][_0x5e56ac([0x6e,0x6f,0x77])](),_0x525523=_0x29e0b0[_0x5e56ac([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x595768=new window[(_0x5e56ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1aee77=>{_0x525523[_0x5e56ac([0x6f,0x6e,0x63,0x65])](_0x5e56ac([0x72,0x65,0x61,0x64,0x79]),_0x1aee77);}),_0x46b5a5={[_0x5e56ac([0x6b,0x74,0x79])]:_0x5e56ac([0x45,0x43]),[_0x5e56ac([0x75,0x73,0x65])]:_0x5e56ac([0x73,0x69,0x67]),[_0x5e56ac([0x63,0x72,0x76])]:_0x5e56ac([0x50,0x2d,0x32,0x35,0x36]),[_0x5e56ac([0x78])]:_0x5e56ac([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]),[_0x5e56ac([0x79])]:_0x5e56ac([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]),[_0x5e56ac([0x61,0x6c,0x67])]:_0x5e56ac([0x45,0x53,0x32,0x35,0x36])},_0x3c972b=_0x525523[_0x5e56ac([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e56ac([0x67,0x65,0x74])](_0x5e56ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b605b(){let _0x521b32,_0xf0ab9f=null,_0x3a66c8=null;try{if(_0x3c972b==_0x5e56ac([0x47,0x50,0x4c]))return _0x5e56ac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x521b32=_0x4def49(),!_0x521b32)return _0x5e56ac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x521b32[_0x5e56ac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3a66c8=_0x2e6acf(_0x521b32[_0x5e56ac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x521b32[_0x5e56ac([0x6a,0x74,0x69])])),await _0x43f61d()?_0x3d22d8()?_0x11c248()?_0x5e56ac([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4189f1()?(_0x521b32[_0x5e56ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e56ac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf0ab9f=_0x4ce623(_0x5e56ac([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x521b32[_0x5e56ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e56ac([0x74,0x72,0x69,0x61,0x6c])&&(_0xf0ab9f=_0x4ce623(_0x5e56ac([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x212996()):_0x5e56ac([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e56ac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e56ac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e56ac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x11c248(){const _0x13976b=[_0x5e56ac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e56ac([0x74,0x72,0x69,0x61,0x6c])][_0x5e56ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x521b32[_0x5e56ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2db752/0x3e8:0xe10*_0x36fdbb;return _0x521b32[_0x5e56ac([0x65,0x78,0x70])]<_0x13976b;}function _0x3d22d8(){const _0x1568d8=_0x521b32[_0x5e56ac([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1568d8&&(!!_0x1568d8[_0x5e56ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e56ac([0x2a]))||!!_0x1568d8[_0x5e56ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e56ac([0x55,0x50,0x4c,0x43])));}function _0x4189f1(){const _0x5c6cef=_0x521b32[_0x5e56ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c6cef||0x0==_0x5c6cef[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53a9a2}=new URL(window[_0x5e56ac([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c6cef[_0x5e56ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53a9a2))return!0x0;const _0x563588=_0x53a9a2[_0x5e56ac([0x73,0x70,0x6c,0x69,0x74])](_0x5e56ac([0x2e]));return _0x5c6cef[_0x5e56ac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x263243=>_0x263243[_0x5e56ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e56ac([0x2a])))[_0x5e56ac([0x6d,0x61,0x70])](_0x1c2190=>_0x1c2190[_0x5e56ac([0x73,0x70,0x6c,0x69,0x74])](_0x5e56ac([0x2e])))[_0x5e56ac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x107519=>_0x107519[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x563588[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e56ac([0x6d,0x61,0x70])](_0x4bec41=>Array(_0x563588[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4bec41[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e56ac([0x66,0x69,0x6c,0x6c])](_0x4bec41[0x0]===_0x5e56ac([0x2a])?_0x5e56ac([0x2a]):'')[_0x5e56ac([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4bec41))[_0x5e56ac([0x73,0x6f,0x6d,0x65])](_0x373245=>_0x563588[_0x5e56ac([0x65,0x76,0x65,0x72,0x79])]((_0x4863d2,_0x44c02f)=>_0x373245[_0x44c02f]===_0x4863d2||_0x373245[_0x44c02f]===_0x5e56ac([0x2a])));}function _0x212996(){return _0xf0ab9f&&_0x3a66c8?new window[(_0x5e56ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43831c,_0x333af7)=>{_0xf0ab9f[_0x5e56ac([0x74,0x68,0x65,0x6e])](_0x43831c,_0x333af7),_0x3a66c8[_0x5e56ac([0x74,0x68,0x65,0x6e])](_0x59a447=>{_0x59a447!=_0x5e56ac([0x56,0x61,0x6c,0x69,0x64])&&_0x43831c(_0x59a447);},_0x333af7);}):_0xf0ab9f||_0x3a66c8||_0x5e56ac([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2e6acf(_0x7a72b0,_0xa0f94f){return new window[(_0x5e56ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e42ff=>{if(_0x38c997())return _0x3e42ff(_0x5e56ac([0x56,0x61,0x6c,0x69,0x64]));_0x164076(),_0x525523[_0x5e56ac([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e56ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f8f10=!0x1;const _0x280333=_0x1bed44();function _0x5156cb(_0x22ade2){return!!_0x22ade2&&(typeof _0x22ade2===_0x5e56ac([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22ade2===_0x5e56ac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22ade2[_0x5e56ac([0x74,0x68,0x65,0x6e])]===_0x5e56ac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22ade2[_0x5e56ac([0x63,0x61,0x74,0x63,0x68])]===_0x5e56ac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ab1f6(_0x376f5c){_0x4a94bb(_0x376f5c)[_0x5e56ac([0x74,0x68,0x65,0x6e])](_0xf9a767=>{if(!_0xf9a767||_0xf9a767[_0x5e56ac([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e56ac([0x6f,0x6b]))return _0x5e56ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5da1fa(_0x471439(_0x280333+_0xa0f94f))!=_0xf9a767[_0x5e56ac([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e56ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e56ac([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e56ac([0x74,0x68,0x65,0x6e])](_0x26ca1b=>(_0x530c51(),_0x26ca1b),()=>{const _0x5d8221=_0x3c66c6();return null==_0x5d8221?(_0x530c51(),_0x5e56ac([0x56,0x61,0x6c,0x69,0x64])):_0x5e56ac(_0x2db752-_0x5d8221>(0x7753083a^_0x3dc0b0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e56ac([0x74,0x68,0x65,0x6e])](_0x3e42ff)[_0x5e56ac([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3e42ff(_0x5e56ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e4e6f=0x536962ba^_0x3dc0b0;function _0x530c51(){const _0xe8a251=_0x5e56ac([0x6c,0x6c,0x63,0x74,0x2d])+_0x5da1fa(_0x471439(_0x7a72b0)),_0x5a9f0f=_0x423db9(_0x5da1fa(window[_0x5e56ac([0x4d,0x61,0x74,0x68])][_0x5e56ac([0x63,0x65,0x69,0x6c])](_0x2db752/_0x1e4e6f)));window[_0x5e56ac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e56ac([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe8a251,_0x5a9f0f);}function _0x3c66c6(){const _0x36d390=_0x5e56ac([0x6c,0x6c,0x63,0x74,0x2d])+_0x5da1fa(_0x471439(_0x7a72b0)),_0x277212=window[_0x5e56ac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e56ac([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36d390);return _0x277212?window[_0x5e56ac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x423db9(_0x277212),0x10)*_0x1e4e6f:null;}function _0x4a94bb(_0x3a4eb3){return new window[(_0x5e56ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6fb185,_0x4098c1)=>{_0x3a4eb3[_0x5e56ac([0x74,0x68,0x65,0x6e])](_0x6fb185,_0x4098c1),window[_0x5e56ac([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4098c1,0x535e58fa^_0x3dc0b0);});}}_0x525523[_0x5e56ac([0x6f,0x6e])](_0x5e56ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x6ff7c4,_0x3f8ac1)=>{if(_0x3f8ac1[0x0]!=_0x7a72b0)return _0x3e42ff(_0x5e56ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3f8ac1[0x1]={..._0x3f8ac1[0x1],[_0x5e56ac([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x280333};},{[_0x5e56ac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e56ac([0x68,0x69,0x67,0x68])}),_0x525523[_0x5e56ac([0x6f,0x6e])](_0x5e56ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5c9205=>{_0x5156cb(_0x5c9205[_0x5e56ac([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f8f10=!0x0,_0x3ab1f6(_0x5c9205[_0x5e56ac([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e56ac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e56ac([0x6c,0x6f,0x77])}),_0x595768[_0x5e56ac([0x74,0x68,0x65,0x6e])](()=>{_0x3f8f10||_0x3e42ff(_0x5e56ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x38c997(){return _0x525523[_0x5e56ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e56ac([0x76,0x69,0x65,0x77])][_0x5e56ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e56ac([0x61,0x75,0x74,0x6f]);}function _0x164076(){_0x525523[_0x5e56ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e56ac([0x76,0x69,0x65,0x77])][_0x5e56ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e56ac([0x61,0x75,0x74,0x6f]);}}function _0x4ce623(_0x4d86fb){const _0x13c713=[new window[(_0x5e56ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40f481=>setTimeout(_0x40f481,0x5356b2f6^_0x3dc0b0)),_0x595768[_0x5e56ac([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e56ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24bcbc=>{let _0x405295=0x0;_0x525523[_0x5e56ac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e56ac([0x6f,0x6e])](_0x5e56ac([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3a9ce6,_0x50507b)=>{_0x50507b[0x0][_0x5e56ac([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x405295++,_0x405295==(0x535f89d2^_0x3dc0b0)&&(_0x24bcbc(),_0x3a9ce6[_0x5e56ac([0x6f,0x66,0x66])]());});}))];return window[_0x5e56ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e56ac([0x72,0x61,0x63,0x65])](_0x13c713)[_0x5e56ac([0x74,0x68,0x65,0x6e])](()=>_0x4d86fb);}async function _0x7f1fd9(){await _0x595768,_0x525523[_0x5e56ac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e56ac([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b2381,_0x525523[_0x5e56ac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e56ac([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b2381,_0x525523[_0x5e56ac([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e56ac([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2976d8(_0x54000b){const _0x3234b5=_0x1ac523();_0x525523[_0x3234b5]=_0x5e56ac([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54000b,_0x54000b!=_0x5e56ac([0x56,0x61,0x6c,0x69,0x64])&&_0x7f1fd9();}function _0x1ac523(){const _0x494ef2=window[_0x5e56ac([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e56ac([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e56ac([0x6e,0x6f,0x77])]())[_0x5e56ac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e56ac([0x2e]),'');let _0x1f9f2c=_0x5e56ac([0x68]);for(let _0x2e9aad=0x0;_0x2e9aad<_0x494ef2[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e9aad+=0x2){let _0x22ec6b=window[_0x5e56ac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x494ef2[_0x5e56ac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e9aad,_0x2e9aad+0x2));_0x22ec6b>=_0x5b8fee[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x22ec6b-=_0x5b8fee[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f9f2c+=_0x5b8fee[_0x22ec6b];}return _0x1f9f2c;}function _0x4def49(){const _0x32488b=_0x3c972b[_0x5e56ac([0x73,0x70,0x6c,0x69,0x74])](_0x5e56ac([0x2e]));if(0x3!=_0x32488b[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b0dcd(_0x32488b[0x1]);function _0x1b0dcd(_0x56608d){const _0x3b640d=_0x2a328f(_0x56608d);return _0x3b640d&&_0x540c02()?_0x3b640d:null;function _0x540c02(){const _0x3e3001=_0x3b640d[_0x5e56ac([0x6a,0x74,0x69])],_0x4a87c7=window[_0x5e56ac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e3001[_0x5e56ac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e3001[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb74c66={..._0x3b640d,[_0x5e56ac([0x6a,0x74,0x69])]:_0x3e3001[_0x5e56ac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e3001[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb74c66[_0x5e56ac([0x76,0x63])],_0x471439(_0xb74c66)==_0x4a87c7;}}}async function _0x43f61d(){let _0x264afa=!0x0;try{const _0x18ffe0=_0x3c972b[_0x5e56ac([0x73,0x70,0x6c,0x69,0x74])](_0x5e56ac([0x2e])),[_0x5aa9ff,_0xae2912,_0x5123d9]=_0x18ffe0;return _0x156bc9(_0x5aa9ff),await _0x419976(_0x5aa9ff,_0xae2912,_0x5123d9),_0x264afa;}catch{return!0x1;}function _0x156bc9(_0x22773b){const _0x69d51a=_0x2a328f(_0x22773b);_0x69d51a&&_0x69d51a[_0x5e56ac([0x61,0x6c,0x67])]==_0x5e56ac([0x45,0x53,0x32,0x35,0x36])||(_0x264afa=!0x1);}async function _0x419976(_0x21a17d,_0x535c35,_0x4820ce){const _0x166571=window[_0x5e56ac([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e56ac([0x66,0x72,0x6f,0x6d])](_0x2bb981(_0x4820ce),_0x8fb9d8=>_0x8fb9d8[_0x5e56ac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1df353=new window[(_0x5e56ac([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e56ac([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x21a17d+_0x5e56ac([0x2e])+_0x535c35),_0x34a5ec=window[_0x5e56ac([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e56ac([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x34a5ec)return;const _0x48ec99=await _0x34a5ec[_0x5e56ac([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e56ac([0x6a,0x77,0x6b]),_0x46b5a5,{[_0x5e56ac([0x6e,0x61,0x6d,0x65])]:_0x5e56ac([0x45,0x43,0x44,0x53,0x41]),[_0x5e56ac([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e56ac([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e56ac([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x34a5ec[_0x5e56ac([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e56ac([0x6e,0x61,0x6d,0x65])]:_0x5e56ac([0x45,0x43,0x44,0x53,0x41]),[_0x5e56ac([0x68,0x61,0x73,0x68])]:{[_0x5e56ac([0x6e,0x61,0x6d,0x65])]:_0x5e56ac([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48ec99,_0x166571,_0x1df353)||(_0x264afa=!0x1);}}function _0x2a328f(_0x229963){return _0x229963[_0x5e56ac([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e56ac([0x65,0x79]))?JSON[_0x5e56ac([0x70,0x61,0x72,0x73,0x65])](_0x2bb981(_0x229963)):null;}function _0x2bb981(_0x17bd60){return window[_0x5e56ac([0x61,0x74,0x6f,0x62])](_0x17bd60[_0x5e56ac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e56ac([0x2b]))[_0x5e56ac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e56ac([0x2f])));}function _0x471439(_0x5e98cf){let _0x22d7a5=0x1505;function _0x5c3434(_0x13d629){for(let _0x4bb104=0x0;_0x4bb104<_0x13d629[_0x5e56ac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bb104++){const _0x1df910=_0x13d629[_0x5e56ac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4bb104);_0x22d7a5=(_0x22d7a5<<0x5)+_0x22d7a5+_0x1df910,_0x22d7a5&=_0x22d7a5;}}function _0x301fbd(_0xdd8fd0){Array[_0x5e56ac([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xdd8fd0)?_0xdd8fd0[_0x5e56ac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x301fbd):_0xdd8fd0&&typeof _0xdd8fd0==_0x5e56ac([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e56ac([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xdd8fd0)[_0x5e56ac([0x73,0x6f,0x72,0x74])]()[_0x5e56ac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4bd7f8,_0xa6bfac])=>{_0x5c3434(_0x4bd7f8),_0x301fbd(_0xa6bfac);}):_0x5c3434(window[_0x5e56ac([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xdd8fd0));}return _0x301fbd(_0x5e98cf),_0x22d7a5>>>0x0;}function _0x5da1fa(_0x5e3606){return _0x5e3606[_0x5e56ac([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e56ac([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e56ac([0x30]));}function _0x423db9(_0x4698df){return _0x4698df[_0x5e56ac([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e56ac([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e56ac([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b2381(){}function _0x5e56ac(_0x265c5e){return _0x265c5e['map'](_0x799823=>String['fromCharCode'](_0x799823))['join']('');}_0x2976d8(await _0x4b605b());}(this);}['_initSchema'](){const _0x232d2c=this['editor']['model']['schema'];_0x232d2c['isRegistered']('imageBlock')&&_0x232d2c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x232d2c['isRegistered']('imageInline')&&_0x232d2c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x174100=this['editor'];_0x174100['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x174100['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x382e34=>_0x382e34['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4f7346=_0x174100['commands']['get']('replaceImageSource');_0x4f7346&&this['listenTo'](_0x4f7346,'cleanupImage',(_0x22f95a,[_0x81f097,_0x414a2d])=>{_0x81f097['removeAttribute']('uploadcareImageId',_0x414a2d);});}['_initConfig'](){const _0x4d0e5e=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5cad7e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3d006a(_0x168412['document'],'uc-config',{..._0x4d0e5e,'pubkey':_0x5cad7e,'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']=_0x161f7e=>{if('closeMax'==_0x161f7e)return'#uc-icon-arrow-down';},_0x168412['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3d006a(_0x168412['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x168412['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3bd1e2=this['editor']['commands']['get']('insertImage');_0x3bd1e2&&this['listenTo'](_0x3bd1e2,'execute',()=>{const _0x124fda=this['editor']['model']['document']['selection']['getSelectedElement']();_0x124fda&&_0x124fda['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x124fda);});});const _0x3c15ec=this['editor']['commands']['get']('uploadcareImageReplace');_0x3c15ec&&this['listenTo'](_0x3c15ec,'execute',()=>{const _0xd26eda=this['editor']['model']['document']['selection']['getSelectedElement']();_0xd26eda&&_0xd26eda['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xd26eda);});});}}class tt extends _0x11d2ae{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6f2298){super(_0x6f2298),_0x6f2298['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4963e2['defineComponents'](_0x4963e2),this['_defineLocale']();}['_defineLocale'](){const _0x314fc8=this['editor']['config']['get']('uploadcare.locale'),_0x4fe96e=this['editor']['locale']['contentLanguage'];_0x314fc8&&_0x4963e2['defineLocale'](_0x4fe96e,_0x314fc8);}}class ii extends _0x100c33{constructor(_0x4c081e){super(_0x4c081e);const t=_0x4c081e['t'],_0x1aeda3=this['bindTemplate'],_0x43a4fe=new _0x362347();_0x43a4fe['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':[_0x43a4fe,{'text':_0x1aeda3['to']('imageUploadProgress',_0x11a17e=>t('Loading\x20image...')+'\x20('+(_0x11a17e||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 _0x100c33{constructor(_0x4fb068){super(_0x4fb068);const t=_0x4fb068['t'];this['set']('errorType',null);const _0x5ca6bb=new _0x37a343(_0x4fb068);_0x5ca6bb['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5ca6bb['withText']=!0x0,_0x5ca6bb['class']='ck-button-action',_0x5ca6bb['on']('execute',()=>{this['fire']('retry');}),_0x5ca6bb['bind']('isVisible')['to'](this,'errorType',_0x583614=>'NotFound'!==_0x583614);const _0x6c0d96=new _0x33a36f();_0x6c0d96['content']=_0x49d49f,_0x6c0d96['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4609c9=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':[_0x6c0d96,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4609c9['to']('errorType',_0x2b697a=>t('NotFound'!==_0x2b697a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5ca6bb]},{'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 _0x100c33{constructor(_0x46b853,_0x420799){super(_0x46b853);const _0x59c5c9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x420799,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x59c5c9['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x586dfd,_0x323de5,_0x236ab1){super(_0x586dfd),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x586dfd),this['_errorView']=new ti(_0x586dfd),this['_editingView']=new ei(_0x586dfd,_0x236ab1),this['_focusableView']=new _0x100c33(_0x586dfd),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x323de5),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'],_0x5d4f2b=>{this['_addUploadcareImageEditorListeners'](_0x5d4f2b);});}),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'](_0x1bdc7f,_0x5b5632){const _0x4688e4='uc-cloud-image-editor',_0x259a7f=_0x1bdc7f['querySelector'](_0x4688e4);if(_0x259a7f)return _0x5b5632(_0x259a7f);const _0x27f065=new MutationObserver(_0x32c1b3=>{const _0x14d25f=_0x32c1b3['filter'](_0x4cef76=>_0x4cef76['target']===_0x1bdc7f&&_0x4cef76['addedNodes']['length']>0x0&&_0x4cef76['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4688e4);_0x14d25f['length']&&(_0x27f065['disconnect'](),_0x5b5632(_0x14d25f[0x0]['addedNodes'][0x0]));});_0x27f065['observe'](_0x1bdc7f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x40e43f){_0x40e43f['addEventListener']('apply',_0x26ecab=>{this['fire']('apply',{'imageSrc':_0x26ecab['detail']['cdnUrl']});}),_0x40e43f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5e1549(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3e4765,_0x57a786,_0x551dbb){super(),this['_editor']=_0x3e4765,this['_dialog']=_0x57a786,this['_imageElement']=_0x551dbb,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 _0x838dd7=this['_imageElement'],_0x1f88ac=_0x838dd7['getAttribute']('uploadcareImageId'),_0x5036dc=_0x838dd7['getAttribute']('src');if(_0x1f88ac)await this['_loadImageInfo'](_0x1f88ac,_0x5036dc);else{if(this['_imageCache']['has'](_0x5036dc)){const _0xab4a80=this['_imageCache']['get'](_0x5036dc);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xab4a80['url'],this['imageDimension']=_0xab4a80['dimension'],this['imageId']=_0xab4a80['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x20a610}=this['_editor'],t=_0x20a610['t'],_0x48a176=new X(_0x20a610,this['imageStatus'],this['_attributes']);_0x48a176['bind']('status')['to'](this,'imageStatus'),_0x48a176['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x48a176['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x48a176['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x48a176,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4385e1,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x48a176,'position':_0x38500b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x48a176['focus']();},'onHide':()=>{_0x48a176['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1dc319=>!A(_0x1dc319,_0x48a176['element'])}});}['_loadImageInfo'](_0xdbdeca,_0x3e05bf){return j['getInfo'](_0xdbdeca,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x583f39=>{const {width:_0x96968c,height:_0x3645d8}=_0x583f39['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3e05bf,this['imageDimension']={'width':_0x96968c,'height':_0x3645d8},this['imageId']=_0xdbdeca;})['catch'](_0x1b3596=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1b3596['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5763a7,_0x194184){return this['_getImageAsFile'](_0x5763a7)['then'](_0x4a3a=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x194184['signal'],'file':_0x4a3a,'onProgress':_0x5831e6=>{_0x5831e6&&_0x5831e6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5831e6['value']));}}))['then'](_0x5048a4=>{const {width:_0x43905d,height:_0x54bc2a}=_0x5048a4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5048a4['cdnUrl'],this['imageDimension']={'width':_0x43905d,'height':_0x54bc2a},this['imageId']=_0x5048a4['uuid'],this['imageUploadProgress']=null;const _0x325118=_0x5763a7['getAttribute']('src');this['_imageCache']['set'](_0x325118,{'id':_0x5048a4['uuid'],'url':_0x5048a4['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x8d8c87=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x8d8c87['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x292b6b,_0x156380){_0x292b6b['on']('apply',(_0x58f114,_0x5288b2)=>{this['_replaceImage'](_0x156380,_0x5288b2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x292b6b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x292b6b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x16515c,_0x4e1b7e,_0x378af9){const _0x52326b=this['_editor'],{width:_0x159cd3,height:_0x13ae41}=S(_0x4e1b7e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x37a39b,imageSources:_0x495ff6}=C(_0x4e1b7e,_0x159cd3);_0x52326b['model']['change'](_0x2b590c=>{if('$graveyard'===_0x16515c['root']['rootName']){_0x52326b['execute']('insertImage',{'imageType':_0x16515c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x16515c['getAttributes']()),'uploadcareImageId':_0x378af9,'src':_0x37a39b,'sources':_0x495ff6,'width':_0x159cd3,'height':_0x13ae41}});const _0x55b033=_0x16515c['getChildren']();_0x16515c=_0x52326b['model']['document']['selection']['getSelectedElement']();for(const _0x34426d of _0x55b033)_0x2b590c['append'](_0x2b590c['cloneElement'](_0x34426d),_0x16515c);}else _0x2b590c['setSelection'](_0x16515c,'on'),_0x52326b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x16515c['getAttributes']()),'uploadcareImageId':_0x378af9,'src':_0x37a39b,'sources':_0x495ff6,'width':_0x159cd3,'height':_0x13ae41},_0x16515c);_0x2b590c['setSelection'](_0x16515c,'on');});}async['_getImageAsFile'](_0x504ec1){const _0x2bb7a4=_0x168412['window'],_0x3adfb1=_0x168412['document']['location']['href'],_0x2cfbe1=new _0x2bb7a4['URL'](_0x504ec1['getAttribute']('src'),_0x3adfb1);if('data:'===_0x2cfbe1['protocol']){const _0x1a3d53=_0x2cfbe1['href']['split'](','),_0xc0cdc1=_0x1a3d53[0x0]['match'](/:(.*?);/)[0x1],_0x21f939=_0xc0cdc1['split']('/')[0x1],_0x5ed3cc=_0x2bb7a4['atob'](_0x1a3d53[_0x1a3d53['length']-0x1]);let _0x1a9adb=_0x5ed3cc['length'];const _0x5cf3a9=new _0x2bb7a4['Uint8Array'](_0x1a9adb);for(;_0x1a9adb--;)_0x5cf3a9[_0x1a9adb]=_0x5ed3cc['charCodeAt'](_0x1a9adb);return new _0x2bb7a4['File']([_0x5cf3a9],'image.'+_0x21f939,{'type':_0xc0cdc1});}const _0x506182=_0x2cfbe1['href']['split']('/'),_0x27b2df=_0x506182[_0x506182['length']-0x1],_0x5dd90f=_0x27b2df['split']('.')[0x1];return _0x2bb7a4['fetch'](_0x2cfbe1['href'])['then'](_0x4e9aa8=>_0x4e9aa8['clone']()['blob']())['then'](_0x56b713=>new _0x2bb7a4['File']([_0x56b713],_0x27b2df,{'type':'image/'+_0x5dd90f}));}}class O extends _0x40e5b7{['imageEditController'];static get['requires'](){return[_0xc41957];}['_isEditable'];constructor(_0x186899){super(_0x186899),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x40ad57){const _0x3f7b38=G(_0x40ad57);return _0x2ed366=>!(!_0x2ed366||!_0x2ed366['is']('element','imageBlock')&&!_0x2ed366['is']('element','imageInline'))&&(!!_0x2ed366['hasAttribute']('uploadcareImageId')||!!_0x2ed366['hasAttribute']('src')&&_0x3f7b38(_0x2ed366['getAttribute']('src')));}(_0x186899['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x27e3c8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x27e3c8);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x352487=this['editor']['model']['document']['selection']['getSelectedElement']();_0x352487&&(_0x352487['is']('element','imageBlock')||_0x352487['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0xc41957),_0x352487),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x40e5b7{['refresh'](){const _0x5ec290=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5ec290&&(_0x5ec290['is']('element','imageBlock')||_0x5ec290['is']('element','imageInline')));}['execute'](_0x218789){const _0x134198=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x998e2b=>{_0x998e2b['setAttributes'](_0x218789,_0x134198),_0x998e2b['removeAttribute']('srcset',_0x134198),_0x998e2b['removeAttribute']('sizes',_0x134198);});}}class m extends _0x11d2ae{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5e2a9f,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3c3e7b}=this;_0x3c3e7b['commands']['add']('uploadcareImageEdit',new O(_0x3c3e7b)),_0x3c3e7b['commands']['add']('uploadcareImageReplace',new R(_0x3c3e7b));}}class g extends _0x11d2ae{['_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 _0x2e868=this['editor'];_0x2e868['ui']['componentFactory']['add']('uploadcareImageEdit',_0x48dfef=>{const _0x10635d=_0x2e868['commands']['get']('uploadcareImageEdit'),_0x49bcb7=new _0x37a343(_0x48dfef),t=_0x48dfef['t'];return _0x49bcb7['set']({'icon':_0x4385e1,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x49bcb7['bind']('isEnabled')['to'](_0x10635d),_0x49bcb7['bind']('isOn')['to'](_0x10635d,'isActive'),this['listenTo'](_0x49bcb7,'execute',()=>{_0x2e868['execute']('uploadcareImageEdit'),_0x2e868['editing']['view']['focus']();}),_0x49bcb7;}),this['_initConfig']();}['_initConfig'](){const _0x192184=_0x3d006a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x192184),this['listenTo'](this['editor'],'destroy',()=>{_0x192184['remove']();});}}class et extends _0x11d2ae{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x2e5d4a=>0x1!=_0x2e5d4a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x7f84d2=>{const {af:{dictionary:_0x89feae,getPluralForm:_0x188e36}}={'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':_0x1053d8=>0x1!=_0x1053d8}};_0x7f84d2['af']||={'dictionary':{},'getPluralForm':null},_0x7f84d2['af']['dictionary']=Object['assign'](_0x7f84d2['af']['dictionary'],_0x89feae),_0x7f84d2['af']['getPluralForm']=_0x188e36;})(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':_0x11448c=>0x0==_0x11448c?0x0:0x1==_0x11448c?0x1:0x2==_0x11448c?0x2:_0x11448c%0x64>=0x3&&_0x11448c%0x64<=0xa?0x3:_0x11448c%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x23ee9e=>{const {ar:{dictionary:_0x52baa9,getPluralForm:_0x29537d}}={'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':_0x1ee856=>0x0==_0x1ee856?0x0:0x1==_0x1ee856?0x1:0x2==_0x1ee856?0x2:_0x1ee856%0x64>=0x3&&_0x1ee856%0x64<=0xa?0x3:_0x1ee856%0x64>=0xb?0x4:0x5}};_0x23ee9e['ar']||={'dictionary':{},'getPluralForm':null},_0x23ee9e['ar']['dictionary']=Object['assign'](_0x23ee9e['ar']['dictionary'],_0x52baa9),_0x23ee9e['ar']['getPluralForm']=_0x29537d;})(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':_0x5c364c=>0x1!=_0x5c364c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x179281=>{const {ast:{dictionary:_0x130705,getPluralForm:_0x34f511}}={'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':_0x5f5439=>0x1!=_0x5f5439}};_0x179281['ast']||={'dictionary':{},'getPluralForm':null},_0x179281['ast']['dictionary']=Object['assign'](_0x179281['ast']['dictionary'],_0x130705),_0x179281['ast']['getPluralForm']=_0x34f511;})(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':_0x5d5ef0=>0x1!=_0x5d5ef0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5637f8=>{const {az:{dictionary:_0x5adc9f,getPluralForm:_0x1b878b}}={'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':_0x308bff=>0x1!=_0x308bff}};_0x5637f8['az']||={'dictionary':{},'getPluralForm':null},_0x5637f8['az']['dictionary']=Object['assign'](_0x5637f8['az']['dictionary'],_0x5adc9f),_0x5637f8['az']['getPluralForm']=_0x1b878b;})(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':_0x39d683=>_0x39d683%0xa==0x1&&_0x39d683%0x64!=0xb?0x0:_0x39d683%0xa>=0x2&&_0x39d683%0xa<=0x4&&(_0x39d683%0x64<0xa||_0x39d683%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3d0622=>{const {be:{dictionary:_0x2107b4,getPluralForm:_0x2e0672}}={'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':_0x45d3e2=>_0x45d3e2%0xa==0x1&&_0x45d3e2%0x64!=0xb?0x0:_0x45d3e2%0xa>=0x2&&_0x45d3e2%0xa<=0x4&&(_0x45d3e2%0x64<0xa||_0x45d3e2%0x64>=0x14)?0x1:0x2}};_0x3d0622['be']||={'dictionary':{},'getPluralForm':null},_0x3d0622['be']['dictionary']=Object['assign'](_0x3d0622['be']['dictionary'],_0x2107b4),_0x3d0622['be']['getPluralForm']=_0x2e0672;})(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':_0x1d4973=>0x1!=_0x1d4973}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3e2dfe=>{const {bg:{dictionary:_0x143fcc,getPluralForm:_0x6a895}}={'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':_0x1ae39b=>0x1!=_0x1ae39b}};_0x3e2dfe['bg']||={'dictionary':{},'getPluralForm':null},_0x3e2dfe['bg']['dictionary']=Object['assign'](_0x3e2dfe['bg']['dictionary'],_0x143fcc),_0x3e2dfe['bg']['getPluralForm']=_0x6a895;})(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':_0xa53a3f=>0x1!=_0xa53a3f}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3dadfe=>{const {bn:{dictionary:_0x24c589,getPluralForm:_0x355478}}={'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':_0x290f25=>0x1!=_0x290f25}};_0x3dadfe['bn']||={'dictionary':{},'getPluralForm':null},_0x3dadfe['bn']['dictionary']=Object['assign'](_0x3dadfe['bn']['dictionary'],_0x24c589),_0x3dadfe['bn']['getPluralForm']=_0x355478;})(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':_0x3b61b2=>_0x3b61b2%0xa==0x1&&_0x3b61b2%0x64!=0xb?0x0:_0x3b61b2%0xa>=0x2&&_0x3b61b2%0xa<=0x4&&(_0x3b61b2%0x64<0xa||_0x3b61b2%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x334fc5=>{const {bs:{dictionary:_0x56b3bf,getPluralForm:_0x787235}}={'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':_0x3471e7=>_0x3471e7%0xa==0x1&&_0x3471e7%0x64!=0xb?0x0:_0x3471e7%0xa>=0x2&&_0x3471e7%0xa<=0x4&&(_0x3471e7%0x64<0xa||_0x3471e7%0x64>=0x14)?0x1:0x2}};_0x334fc5['bs']||={'dictionary':{},'getPluralForm':null},_0x334fc5['bs']['dictionary']=Object['assign'](_0x334fc5['bs']['dictionary'],_0x56b3bf),_0x334fc5['bs']['getPluralForm']=_0x787235;})(window['CKEDITOR_TRANSLATIONS']||={});
|