@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250619.0 → 0.0.0-nightly-20250621.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 _0x2c88ff,Command as _0x5d4826}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x37a08f,IconGooglePhotos as _0x410eca,IconGoogleDrive as _0x59251c,IconFacebook as _0x129144,IconDropbox as _0x1d2a7d,IconUploadcareLink as _0x4b94e5,IconUploadcareImageUpload as _0xc9c387,IconError as _0x352e5d,IconUploadcareImageEdit as _0x9dea16}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2b5452,MenuBarMenuListItemButtonView as _0x325206,View as _0x258d69,FocusCycler as _0x2c3c6e,Dialog as _0x48111a,DialogViewPosition as _0x12813e,SpinnerView as _0x12a9ea,IconView as _0x34ba7c,Notification as _0x4d24c3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5f3997,DomEmitterMixin as _0x5000db,global as _0x4bdf66,getAncestors as _0xf4f5f6,ObservableMixin as _0x5482f1,uid as _0x5ad672,createElement as _0x78e887}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xea7249}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x203f72,info as _0xf3189f}from'@uploadcare/upload-client';import*as _0x30c460 from'@uploadcare/file-uploader';var i=function(_0x3e92d1){return _0x3e92d1['Local']='local',_0x3e92d1['URL']='url',_0x3e92d1['Dropbox']='dropbox',_0x3e92d1['GDrive']='gdrive',_0x3e92d1['Facebook']='facebook',_0x3e92d1['GPhotos']='gphotos',_0x3e92d1['OneDrive']='onedrive',_0x3e92d1;}({});function _(_0x49cb10,_0x30a237,_0x4fccac){const t=_0x49cb10['t'],_0x38060b=_0x49cb10['t'];switch(_0x30a237){case i['Local']:return{'text':_0x38060b('Insert'===_0x4fccac?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x38060b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4fccac?_0x38060b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x38060b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4fccac?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4fccac?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4fccac?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4fccac?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4fccac?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x30a237;}}class e extends _0x2c88ff{['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 _0x55c051=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f8823;for(const _0xd1439a in _0x55c051){const _0x5851c2=_0xd1439a,_0x53966f=_0x55c051[_0x5851c2];if('uploadcareLicenseKeyValid'==_0x53966f||'uploadcareLicenseKeyInvalid'==_0x53966f||'uploadcareLicenseKeyExpired'==_0x53966f||'uploadcareLicenseKeyDomainLimit'==_0x53966f||'uploadcareLicenseKeyNotAllowed'==_0x53966f||'uploadcareLicenseKeyEvaluationLimit'==_0x53966f||'uploadcareLicenseKeyTrialLimit'==_0x53966f||'uploadcareLicenseKeyUsageLimit'==_0x53966f){delete _0x55c051[_0x5851c2],_0x1f8823=_0x53966f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1f8823&&_0x55c051['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1f8823&&_0x55c051['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1f8823&&_0x55c051['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1f8823&&_0x55c051['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1f8823&&_0x55c051['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1f8823&&_0x55c051['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1f8823&&_0x55c051['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xe341c3}=this,_0x34fb81=_0xe341c3['commands']['get']('uploadcare');if(!_0x34fb81)return;const _0x2d07ba=this['_normalizeConfigSourceList'](_0xe341c3['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x59cefe,_0x59cd04)=>{const _0x4b5b01=this['_getIntegrationKey'](_0x59cd04['type']);return _0x59cefe[_0x4b5b01]||(_0x59cefe[_0x4b5b01]=[]),_0x59cefe[_0x4b5b01]['push'](_0x59cd04),_0x59cefe;},{});_0xe341c3['plugins']['has']('ImageInsertUI')&&_0xe341c3['commands']['get']('uploadcare')&&Object['entries'](_0x2d07ba)['forEach'](([_0x24f19f,_0x2cde03])=>{_0xe341c3['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x24f19f,'observable':()=>_0x34fb81,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2cde03),'formViewCreator':()=>this['_createDropdownButtons'](_0x2cde03),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2cde03),'override':'assetManager'!==_0x24f19f});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xca4192){const {locale:_0x332fc7}=this['editor'];return _0xca4192['map'](_0x1aa6be=>{const _0x1f2eba=_(_0x332fc7,_0x1aa6be,'Insert');switch(_0x1aa6be){case i['Local']:return{'icon':_0xc9c387,'type':i['Local'],..._0x1f2eba};case i['URL']:return{'icon':_0x4b94e5,'type':i['URL'],..._0x1f2eba};case i['Dropbox']:return{'icon':_0x1d2a7d,'type':i['Dropbox'],..._0x1f2eba};case i['Facebook']:return{'icon':_0x129144,'type':i['Facebook'],..._0x1f2eba};case i['GDrive']:return{'icon':_0x59251c,'type':i['GDrive'],..._0x1f2eba};case i['GPhotos']:return{'icon':_0x410eca,'type':i['GPhotos'],..._0x1f2eba};case i['OneDrive']:return{'icon':_0x37a08f,'type':i['OneDrive'],..._0x1f2eba};}});}['_getIntegrationKey'](_0x257718){switch(_0x257718){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4d8c72,_0x4d65d5){const _0x220a67=this['editor'],_0x5259f9=new _0x4d8c72(_0x220a67['locale']),_0x1c2342=_0x220a67['commands']['get']('uploadcare');return _0x5259f9['bind']('isEnabled')['to'](_0x1c2342),_0x5259f9['on']('execute',()=>{_0x1c2342['execute'](_0x4d65d5);}),_0x5259f9;}['_createToolbarButton'](_0x490047){const {locale:_0x5f119e}=this['editor'],_0x170c26=this['editor']['plugins']['get']('ImageInsertUI'),_0x52388b=_0x490047[0x0],_0x28015c=this['_createButton'](_0x2b5452,_0x52388b['type']);return _0x28015c['icon']=_0x52388b['icon'],_0x28015c['bind']('label')['to'](_0x170c26,'isImageSelected',_0x5ebd22=>_(_0x5f119e,_0x52388b['type'],_0x5ebd22?'Replace':'Insert')['text']),_0x28015c['tooltip']=!0x0,_0x28015c;}['_createDropdownButtons'](_0xe7bbec){const {locale:_0x5c5ff1}=this['editor'],_0x4497fc=this['editor']['plugins']['get']('ImageInsertUI');return _0xe7bbec['map'](_0x12d410=>{const _0x1e51ad=this['_createButton'](_0x2b5452,_0x12d410['type']);return _0x1e51ad['withText']=!0x0,_0x1e51ad['icon']=_0x12d410['icon'],_0x1e51ad['bind']('label')['to'](_0x4497fc,'isImageSelected',_0x56340c=>_(_0x5c5ff1,_0x12d410['type'],_0x56340c?'Replace':'Insert')['text']),_0x1e51ad;});}['_createMenuBarButtons'](_0x1b6881){return _0x1b6881['map'](_0x108014=>{const _0x5937d1=this['_createButton'](_0x325206,_0x108014['type']);return _0x5937d1['icon']=_0x108014['icon'],_0x5937d1['label']=_0x108014['shortText'],_0x5937d1;});}}class F extends _0x258d69{['focusTracker'];['focusCycler'];constructor(_0x57a82c){super(_0x57a82c),this['focusTracker']=new _0x5f3997(),this['focusCycler']=new _0x2c3c6e({'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(_0x38b05b,_0x521594){super(_0x38b05b),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-'+_0x521594}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x101d38,_0x34f102){const _0x408a26=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x471bd8=>_0x471bd8<=_0x34f102)['map'](_0xb2b91=>_0x101d38['replace'](/\/$/,'')+'/-/resize/'+_0xb2b91+'x/\x20'+_0xb2b91+'w');return{'imageFallbackUrl':_0x101d38,'imageSources':[{'srcset':_0x408a26['join'](',\x20'),'sizes':'(max-width:\x20'+_0x34f102+'px)\x20100vw,\x20'+_0x34f102+'px','type':'image/webp'}]};}function C(_0x2e5ee0,_0x450bd4,_0x1ae19d){const _0x3c223f=_0x2e5ee0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3c223f?parseInt(_0x3c223f[0x1],0xa):_0x450bd4,'height':_0x3c223f?parseInt(_0x3c223f[0x2],0xa):_0x1ae19d};}function p(_0x55c500,_0x409325){const _0x34247f=new(_0x5000db())(),_0x14a4a7=_0x55c500['plugins']['get']('ImageUtils'),_0xfdea16=_0x55c500['editing']['mapper']['toViewElement'](_0x409325),_0x1ca880=_0x14a4a7['findViewImgElement'](_0xfdea16),_0x5321a8=_0x55c500['editing']['view']['domConverter']['viewToDom'](_0x1ca880),_0x5c3f8f=_0x409325['getAttribute']('width'),_0x4fbfe5=_0x409325['getAttribute']('height'),_0x2fd7b7='image-processing';_0x55c500['editing']['view']['change'](_0x740695=>{_0x740695['addClass'](_0x2fd7b7,_0xfdea16),_0x740695['setStyle']('aspect-ratio',_0x5c3f8f+'/'+_0x4fbfe5,_0x1ca880);}),_0x34247f['listenTo'](_0x5321a8,'load',()=>{_0x34247f['stopListening'](_0x5321a8,'load'),_0x55c500['editing']['view']['change'](_0x515f33=>{_0x515f33['removeClass'](_0x2fd7b7,_0xfdea16),_0x515f33['removeStyle']('aspect-ratio',_0x1ca880);});});}function G(_0x247342){if(Array['isArray'](_0x247342)){const _0x246649=_0x247342['map'](G);return _0x152666=>_0x246649['some'](_0x3e6eb1=>_0x3e6eb1(_0x152666));}if('origin'==_0x247342){const _0x450472=_0x4bdf66['window']['location']['origin'];return _0x1c0937=>new URL(_0x1c0937,_0x4bdf66['document']['baseURI'])['origin']==_0x450472;}return'function'==typeof _0x247342?_0x247342:_0x247342 instanceof RegExp?_0xc31654=>!(!_0xc31654['match'](_0x247342)&&!_0xc31654['replace'](/^https?:\/\//,'')['match'](_0x247342)):()=>!0x1;}function S(_0xfb6d6d,_0x3bc294){return _0xf4f5f6(_0xfb6d6d['target'])['includes'](_0x3bc294);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x5482f1(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3df0b7,_0x4dac73,_0x7a44f8){super(),this['_editor']=_0x3df0b7,this['_editing']=_0x4dac73,this['_dialog']=_0x3df0b7['plugins']['get'](_0x48111a),this['_api']=_0x4dac73['ctxElement']['getAPI'](),this['_type']=_0x7a44f8,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:_0x22c584,model:_0x196aba}=this['_editor'],_0x334840=_0x196aba['document']['selection']['getSelectedElement'](),_0x50dcbb=_0x334840&&(_0x334840['is']('element','imageBlock')||_0x334840['is']('element','imageInline'));this['_formView']=new x(_0x22c584,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xc9c387,'title':_(_0x22c584,this['_type'],_0x50dcbb?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x12813e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xf9254a=>!S(_0xf9254a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x30d795}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x454abd=>{const _0x3f7f1e=_0x30d795['length'];for(const _0x4642c2 of _0x30d795){const _0x531054=_0x4642c2===_0x30d795[_0x3f7f1e-0x1],{cdnUrl:_0x23656f,fileInfo:_0x1367a5}=_0x4642c2;if(!_0x23656f||!_0x1367a5)continue;const {width:_0x1b47bd,height:_0x515c24}=_0x1367a5['imageInfo'],_0x5be1ba=C(_0x23656f,_0x1b47bd,_0x515c24),_0x597282=k(_0x23656f,_0x5be1ba['width']),_0x40a00f={'id':_0x1367a5['uuid'],'type':'image','attributes':{'imageDimension':_0x5be1ba,..._0x597282}};this['_insertAsset'](_0x40a00f,_0x531054,_0x454abd);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4a5a3b=>{'idle'===_0x4a5a3b['detail']['status']&&!_0x4a5a3b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x429f9a,_0x4c4e22,_0x3a0d41){const _0x142425=this['_editor']['model']['document']['selection'],_0xb95de1=_0x142425['getSelectedElement'](),_0x5af105=!(!_0xb95de1||!_0xb95de1['is']('element','imageInline'));_0x3a0d41['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x429f9a,_0x5af105),_0x4c4e22||_0x3a0d41['setSelection'](_0x142425['getLastPosition']());}['_insertImage'](_0x195a2e,_0xd4159d){const _0x53d7cd=this['_editor'],{imageDimension:_0x40138d,imageFallbackUrl:_0x5b815e,imageSources:_0x11ad56}=_0x195a2e['attributes'];_0x53d7cd['execute']('insertImage',{'imageType':_0xd4159d?'imageInline':null,'source':{'uploadcareImageId':_0x195a2e['id'],'src':_0x5b815e,'sources':_0x11ad56,..._0x40138d}});}}class w extends _0x5d4826{['_editing'];['_controller']=null;static get['requires'](){return[_0x48111a,o];}constructor(_0x40fdea){super(_0x40fdea),this['_editing']=_0x40fdea['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xf209c3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xf209c3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x57957b,publicKey:_0x1bd41e,signal:_0x2716b7,onProgress:_0x48ecb4}){return _0x203f72(_0x57957b,{'publicKey':_0x1bd41e,'store':'auto','signal':_0x2716b7,'onProgress':_0x48ecb4});}static['getInfo'](_0x12caa1,_0x1f81b3){return _0xf3189f(_0x12caa1,_0x1f81b3);}}class f extends _0x2c88ff{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xea7249,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x80731c=this['editor'];if(!!!_0x80731c['config']['get']('uploadcare'))return;_0x80731c['plugins']['get'](_0xea7249)['createUploadAdapter']=_0xda573=>new A(_0xda573,_0x80731c),_0x80731c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x10817a,{imageElement:_0x7e3cf0,data:_0x7719e7})=>{_0x80731c['model']['change'](_0x2e6982=>{_0x2e6982['setAttribute']('uploadcareImageId',_0x7719e7['uploadcareImageId'],_0x7e3cf0);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x4e1d97,_0x408067){this['loader']=_0x4e1d97,this['editor']=_0x408067,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x16bcaa=this['editor']['config']['get']('uploadcare.pubkey'),_0x25e442=await this['loader']['file'];return j['upload']({'file':_0x25e442,'publicKey':_0x16bcaa,'signal':this['controller']['signal'],'onProgress':_0x9ac584=>{_0x9ac584&&_0x9ac584['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x9ac584['value']);}})['then'](async _0x118bf9=>{const {imageFallbackUrl:_0x5f4859,imageSources:_0x16d84d}=k(_0x118bf9['cdnUrl'],_0x118bf9['imageInfo']['width']);return{'uploadcareImageId':_0x118bf9['uuid'],'default':_0x5f4859,'sources':_0x16d84d};})['catch'](()=>{const _0x5e7ecf=t('Cannot\x20upload\x20file:')+('\x20'+_0x25e442['name']+'.');return Promise['reject'](_0x5e7ecf);});}['abort'](){this['controller']['abort']();}}class o extends _0x2c88ff{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x48111a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x234bd7){super(_0x234bd7),this['ucContextId']=_0x5ad672();}['init'](){const _0x20da17=this['editor'];_0x20da17['commands']['add']('uploadcare',new w(_0x20da17));}['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 _0x2d6f40=_0x4bdf66['document']['querySelector']('input[uploadcare-file-input]');_0x2d6f40&&_0x2d6f40['remove']();}),async function(_0xe756f4){const _0xf3819c=_0x1f3dce([0x38,0x31,0x41,0x74,0x45,0x42,0x58,0x56,0x4a,0x48,0x63,0x76,0x73,0x4d,0x59,0x6b,0x67,0x54,0x39,0x46,0x6f,0x64,0x43,0x50,0x35,0x44,0x4e,0x6c,0x72,0x7a,0x5a,0x51,0x55,0x6e,0x6d,0x33,0x36,0x77,0x6a,0x69,0x32,0x68,0x70,0x30,0x75,0x61,0x47,0x66,0x4f,0x71,0x52,0x78,0x57,0x62,0x34,0x79,0x4b,0x53,0x37,0x65,0x49,0x4c]),_0x80e084=0x2fc52870,_0x3b984f=0x2fc24340^_0x80e084,_0x1ee9ea=window[_0x1f3dce([0x44,0x61,0x74,0x65])][_0x1f3dce([0x6e,0x6f,0x77])](),_0x3627ae=_0xe756f4[_0x1f3dce([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x325c9d=new window[(_0x1f3dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x797feb=>{_0x3627ae[_0x1f3dce([0x6f,0x6e,0x63,0x65])](_0x1f3dce([0x72,0x65,0x61,0x64,0x79]),_0x797feb);}),_0x3d0cfd={[_0x1f3dce([0x6b,0x74,0x79])]:_0x1f3dce([0x45,0x43]),[_0x1f3dce([0x75,0x73,0x65])]:_0x1f3dce([0x73,0x69,0x67]),[_0x1f3dce([0x63,0x72,0x76])]:_0x1f3dce([0x50,0x2d,0x32,0x35,0x36]),[_0x1f3dce([0x78])]:_0x1f3dce([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]),[_0x1f3dce([0x79])]:_0x1f3dce([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]),[_0x1f3dce([0x61,0x6c,0x67])]:_0x1f3dce([0x45,0x53,0x32,0x35,0x36])},_0xa888de=_0x3627ae[_0x1f3dce([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f3dce([0x67,0x65,0x74])](_0x1f3dce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e4df4(){let _0x71357f,_0x26982e=null,_0x13a901=null;try{if(_0xa888de==_0x1f3dce([0x47,0x50,0x4c]))return _0x1f3dce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x71357f=_0x22bc1a(),!_0x71357f)return _0x1f3dce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x71357f[_0x1f3dce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x13a901=_0x254419(_0x71357f[_0x1f3dce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x71357f[_0x1f3dce([0x6a,0x74,0x69])])),await _0x49f40d()?_0xd51a4c()?_0x514e87()?_0x1f3dce([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3cb79d()?(_0x71357f[_0x1f3dce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f3dce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26982e=_0x106e26(_0x1f3dce([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x71357f[_0x1f3dce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f3dce([0x74,0x72,0x69,0x61,0x6c])&&(_0x26982e=_0x106e26(_0x1f3dce([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x27fd49()):_0x1f3dce([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f3dce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f3dce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f3dce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x514e87(){const _0x563567=[_0x1f3dce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f3dce([0x74,0x72,0x69,0x61,0x6c])][_0x1f3dce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71357f[_0x1f3dce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ee9ea/0x3e8:0xe10*_0x3b984f;return _0x71357f[_0x1f3dce([0x65,0x78,0x70])]<_0x563567;}function _0xd51a4c(){const _0x210789=_0x71357f[_0x1f3dce([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x210789&&(!!_0x210789[_0x1f3dce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f3dce([0x2a]))||!!_0x210789[_0x1f3dce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f3dce([0x55,0x50,0x4c,0x43])));}function _0x3cb79d(){const _0x3c41ac=_0x71357f[_0x1f3dce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c41ac||0x0==_0x3c41ac[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3bc12f}=new URL(window[_0x1f3dce([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c41ac[_0x1f3dce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc12f))return!0x0;const _0x527be1=_0x3bc12f[_0x1f3dce([0x73,0x70,0x6c,0x69,0x74])](_0x1f3dce([0x2e]));return _0x3c41ac[_0x1f3dce([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2fdc82=>_0x2fdc82[_0x1f3dce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f3dce([0x2a])))[_0x1f3dce([0x6d,0x61,0x70])](_0x1cd6ec=>_0x1cd6ec[_0x1f3dce([0x73,0x70,0x6c,0x69,0x74])](_0x1f3dce([0x2e])))[_0x1f3dce([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d8595=>_0x1d8595[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x527be1[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f3dce([0x6d,0x61,0x70])](_0x5dda8c=>Array(_0x527be1[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5dda8c[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f3dce([0x66,0x69,0x6c,0x6c])](_0x5dda8c[0x0]===_0x1f3dce([0x2a])?_0x1f3dce([0x2a]):'')[_0x1f3dce([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5dda8c))[_0x1f3dce([0x73,0x6f,0x6d,0x65])](_0x4f1e36=>_0x527be1[_0x1f3dce([0x65,0x76,0x65,0x72,0x79])]((_0x58eaf6,_0x6756b6)=>_0x4f1e36[_0x6756b6]===_0x58eaf6||_0x4f1e36[_0x6756b6]===_0x1f3dce([0x2a])));}function _0x27fd49(){return _0x26982e&&_0x13a901?new window[(_0x1f3dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x399710,_0x24ba73)=>{_0x26982e[_0x1f3dce([0x74,0x68,0x65,0x6e])](_0x399710,_0x24ba73),_0x13a901[_0x1f3dce([0x74,0x68,0x65,0x6e])](_0x1fd3ed=>{_0x1fd3ed!=_0x1f3dce([0x56,0x61,0x6c,0x69,0x64])&&_0x399710(_0x1fd3ed);},_0x24ba73);}):_0x26982e||_0x13a901||_0x1f3dce([0x56,0x61,0x6c,0x69,0x64]);}}function _0x254419(_0x11b0c8,_0x5feb){return new window[(_0x1f3dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1597d9=>{if(_0x123d13())return _0x1597d9(_0x1f3dce([0x56,0x61,0x6c,0x69,0x64]));_0x50799c(),_0x3627ae[_0x1f3dce([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f3dce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x41df4d=!0x1;const _0x338f04=_0x5ad672();function _0x12921c(_0x508c71){return!!_0x508c71&&(typeof _0x508c71===_0x1f3dce([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x508c71===_0x1f3dce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x508c71[_0x1f3dce([0x74,0x68,0x65,0x6e])]===_0x1f3dce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x508c71[_0x1f3dce([0x63,0x61,0x74,0x63,0x68])]===_0x1f3dce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4a236f(_0x18aa45){_0x595073(_0x18aa45)[_0x1f3dce([0x74,0x68,0x65,0x6e])](_0x238a98=>{if(!_0x238a98||_0x238a98[_0x1f3dce([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f3dce([0x6f,0x6b]))return _0x1f3dce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ee024(_0x1a5968(_0x338f04+_0x5feb))!=_0x238a98[_0x1f3dce([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f3dce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f3dce([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f3dce([0x74,0x68,0x65,0x6e])](_0x4c2325=>(_0x4d9319(),_0x4c2325),()=>{const _0x425bce=_0x406bf1();return null==_0x425bce?(_0x4d9319(),_0x1f3dce([0x56,0x61,0x6c,0x69,0x64])):_0x1f3dce(_0x1ee9ea-_0x425bce>(0xbc9ac70^_0x80e084)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f3dce([0x74,0x68,0x65,0x6e])](_0x1597d9)[_0x1f3dce([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1597d9(_0x1f3dce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e3055=0x2ff3c6f0^_0x80e084;function _0x4d9319(){const _0x5ec0f4=_0x1f3dce([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ee024(_0x1a5968(_0x11b0c8)),_0x33ea2a=_0xa68cf6(_0x1ee024(window[_0x1f3dce([0x4d,0x61,0x74,0x68])][_0x1f3dce([0x63,0x65,0x69,0x6c])](_0x1ee9ea/_0x4e3055)));window[_0x1f3dce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f3dce([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ec0f4,_0x33ea2a);}function _0x406bf1(){const _0x5328ee=_0x1f3dce([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ee024(_0x1a5968(_0x11b0c8)),_0x5e16aa=window[_0x1f3dce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f3dce([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5328ee);return _0x5e16aa?window[_0x1f3dce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa68cf6(_0x5e16aa),0x10)*_0x4e3055:null;}function _0x595073(_0x3c8354){return new window[(_0x1f3dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1fc14c,_0x3a1e1c)=>{_0x3c8354[_0x1f3dce([0x74,0x68,0x65,0x6e])](_0x1fc14c,_0x3a1e1c),window[_0x1f3dce([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a1e1c,0x2fc4fcb0^_0x80e084);});}}_0x3627ae[_0x1f3dce([0x6f,0x6e])](_0x1f3dce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4bfac3,_0x5b5509)=>{if(_0x5b5509[0x0]!=_0x11b0c8)return _0x1597d9(_0x1f3dce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b5509[0x1]={..._0x5b5509[0x1],[_0x1f3dce([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x338f04};},{[_0x1f3dce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f3dce([0x68,0x69,0x67,0x68])}),_0x3627ae[_0x1f3dce([0x6f,0x6e])](_0x1f3dce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x406e0a=>{_0x12921c(_0x406e0a[_0x1f3dce([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x41df4d=!0x0,_0x4a236f(_0x406e0a[_0x1f3dce([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f3dce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f3dce([0x6c,0x6f,0x77])}),_0x325c9d[_0x1f3dce([0x74,0x68,0x65,0x6e])](()=>{_0x41df4d||_0x1597d9(_0x1f3dce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x123d13(){return _0x3627ae[_0x1f3dce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f3dce([0x76,0x69,0x65,0x77])][_0x1f3dce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f3dce([0x61,0x75,0x74,0x6f]);}function _0x50799c(){_0x3627ae[_0x1f3dce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f3dce([0x76,0x69,0x65,0x77])][_0x1f3dce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f3dce([0x61,0x75,0x74,0x6f]);}}function _0x106e26(_0x297c73){const _0x1d2606=[new window[(_0x1f3dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ae3af=>setTimeout(_0x3ae3af,0x2fcc16bc^_0x80e084)),_0x325c9d[_0x1f3dce([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f3dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cfcd8=>{let _0x309d72=0x0;_0x3627ae[_0x1f3dce([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f3dce([0x6f,0x6e])](_0x1f3dce([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x394ecc,_0x68abb8)=>{_0x68abb8[0x0][_0x1f3dce([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x309d72++,_0x309d72==(0x2fc52988^_0x80e084)&&(_0x2cfcd8(),_0x394ecc[_0x1f3dce([0x6f,0x66,0x66])]());});}))];return window[_0x1f3dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f3dce([0x72,0x61,0x63,0x65])](_0x1d2606)[_0x1f3dce([0x74,0x68,0x65,0x6e])](()=>_0x297c73);}async function _0x343c8e(){await _0x325c9d,_0x3627ae[_0x1f3dce([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f3dce([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5bcfb7,_0x3627ae[_0x1f3dce([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f3dce([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5bcfb7,_0x3627ae[_0x1f3dce([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f3dce([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb53639(_0x2be4c9){const _0x228a09=_0x1862ce();_0x3627ae[_0x228a09]=_0x1f3dce([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2be4c9,_0x2be4c9!=_0x1f3dce([0x56,0x61,0x6c,0x69,0x64])&&_0x343c8e();}function _0x1862ce(){const _0x34b74e=window[_0x1f3dce([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f3dce([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f3dce([0x6e,0x6f,0x77])]())[_0x1f3dce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f3dce([0x2e]),'');let _0x16bdf1=_0x1f3dce([0x41]);for(let _0xcd9b63=0x0;_0xcd9b63<_0x34b74e[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcd9b63+=0x2){let _0x94c516=window[_0x1f3dce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34b74e[_0x1f3dce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcd9b63,_0xcd9b63+0x2));_0x94c516>=_0xf3819c[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x94c516-=_0xf3819c[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16bdf1+=_0xf3819c[_0x94c516];}return _0x16bdf1;}function _0x22bc1a(){const _0x3f411d=_0xa888de[_0x1f3dce([0x73,0x70,0x6c,0x69,0x74])](_0x1f3dce([0x2e]));if(0x3!=_0x3f411d[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5dcaba(_0x3f411d[0x1]);function _0x5dcaba(_0xd4861f){const _0x60e706=_0x3b44b6(_0xd4861f);return _0x60e706&&_0x3f18a9()?_0x60e706:null;function _0x3f18a9(){const _0x7280e7=_0x60e706[_0x1f3dce([0x6a,0x74,0x69])],_0x5846c8=window[_0x1f3dce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7280e7[_0x1f3dce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7280e7[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a7b2d={..._0x60e706,[_0x1f3dce([0x6a,0x74,0x69])]:_0x7280e7[_0x1f3dce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x7280e7[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a7b2d[_0x1f3dce([0x76,0x63])],_0x1a5968(_0x1a7b2d)==_0x5846c8;}}}async function _0x49f40d(){let _0x3d0379=!0x0;try{const _0x313785=_0xa888de[_0x1f3dce([0x73,0x70,0x6c,0x69,0x74])](_0x1f3dce([0x2e])),[_0x55b8f2,_0x39130a,_0x518404]=_0x313785;return _0x16644e(_0x55b8f2),await _0x291042(_0x55b8f2,_0x39130a,_0x518404),_0x3d0379;}catch{return!0x1;}function _0x16644e(_0x42989b){const _0x4b8055=_0x3b44b6(_0x42989b);_0x4b8055&&_0x4b8055[_0x1f3dce([0x61,0x6c,0x67])]==_0x1f3dce([0x45,0x53,0x32,0x35,0x36])||(_0x3d0379=!0x1);}async function _0x291042(_0x3d54d8,_0x18179d,_0x1a35f1){const _0x5f139d=window[_0x1f3dce([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f3dce([0x66,0x72,0x6f,0x6d])](_0x436502(_0x1a35f1),_0x3c321e=>_0x3c321e[_0x1f3dce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x442667=new window[(_0x1f3dce([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f3dce([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d54d8+_0x1f3dce([0x2e])+_0x18179d),_0x3a7ec4=window[_0x1f3dce([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f3dce([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a7ec4)return;const _0x1a692d=await _0x3a7ec4[_0x1f3dce([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f3dce([0x6a,0x77,0x6b]),_0x3d0cfd,{[_0x1f3dce([0x6e,0x61,0x6d,0x65])]:_0x1f3dce([0x45,0x43,0x44,0x53,0x41]),[_0x1f3dce([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f3dce([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f3dce([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a7ec4[_0x1f3dce([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f3dce([0x6e,0x61,0x6d,0x65])]:_0x1f3dce([0x45,0x43,0x44,0x53,0x41]),[_0x1f3dce([0x68,0x61,0x73,0x68])]:{[_0x1f3dce([0x6e,0x61,0x6d,0x65])]:_0x1f3dce([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a692d,_0x5f139d,_0x442667)||(_0x3d0379=!0x1);}}function _0x3b44b6(_0x2a0ea7){return _0x2a0ea7[_0x1f3dce([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f3dce([0x65,0x79]))?JSON[_0x1f3dce([0x70,0x61,0x72,0x73,0x65])](_0x436502(_0x2a0ea7)):null;}function _0x436502(_0x39dcb3){return window[_0x1f3dce([0x61,0x74,0x6f,0x62])](_0x39dcb3[_0x1f3dce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f3dce([0x2b]))[_0x1f3dce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f3dce([0x2f])));}function _0x1a5968(_0xf2d9fd){let _0x2b0140=0x1505;function _0x30fdad(_0x447371){for(let _0x56eece=0x0;_0x56eece<_0x447371[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56eece++){const _0x57c63e=_0x447371[_0x1f3dce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56eece);_0x2b0140=(_0x2b0140<<0x5)+_0x2b0140+_0x57c63e,_0x2b0140&=_0x2b0140;}}function _0x5a0933(_0x29912e){Array[_0x1f3dce([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x29912e)?_0x29912e[_0x1f3dce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a0933):_0x29912e&&typeof _0x29912e==_0x1f3dce([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f3dce([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x29912e)[_0x1f3dce([0x73,0x6f,0x72,0x74])]()[_0x1f3dce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x308190,_0x14cd8c])=>{_0x30fdad(_0x308190),_0x5a0933(_0x14cd8c);}):_0x30fdad(window[_0x1f3dce([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x29912e));}return _0x5a0933(_0xf2d9fd),_0x2b0140>>>0x0;}function _0x1ee024(_0x1d1697){return _0x1d1697[_0x1f3dce([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f3dce([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f3dce([0x30]));}function _0xa68cf6(_0x333ea7){return _0x333ea7[_0x1f3dce([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f3dce([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f3dce([0x6a,0x6f,0x69,0x6e])]('');}function _0x5bcfb7(){}function _0x1f3dce(_0x5904f7){return _0x5904f7['map'](_0x4ad573=>String['fromCharCode'](_0x4ad573))['join']('');}_0xb53639(await _0x3e4df4());}(this);}['_initSchema'](){const _0x37aebd=this['editor']['model']['schema'];_0x37aebd['isRegistered']('imageBlock')&&_0x37aebd['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x37aebd['isRegistered']('imageInline')&&_0x37aebd['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1842e0=this['editor'];_0x1842e0['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1842e0['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2b2bcd=>_0x2b2bcd['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1c8fe5=_0x1842e0['commands']['get']('replaceImageSource');_0x1c8fe5&&this['listenTo'](_0x1c8fe5,'cleanupImage',(_0xf651e2,[_0x11beaf,_0x163ab8])=>{_0x11beaf['removeAttribute']('uploadcareImageId',_0x163ab8);});}['_initConfig'](){const _0x4fa218=this['editor']['config']['get']('uploadcare.uploader')||{},_0xf1f7ad=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x78e887(_0x4bdf66['document'],'uc-config',{..._0x4fa218,'pubkey':_0xf1f7ad,'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']=_0x272791=>{if('closeMax'==_0x272791)return'#uc-icon-arrow-down';},_0x4bdf66['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x78e887(_0x4bdf66['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4bdf66['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3619e7=this['editor']['commands']['get']('insertImage');_0x3619e7&&this['listenTo'](_0x3619e7,'execute',()=>{const _0x49df8d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x49df8d&&_0x49df8d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x49df8d);});});const _0x20fc5c=this['editor']['commands']['get']('uploadcareImageReplace');_0x20fc5c&&this['listenTo'](_0x20fc5c,'execute',()=>{const _0x38e5b6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x38e5b6&&_0x38e5b6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x38e5b6);});});}}class tt extends _0x2c88ff{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x416071){super(_0x416071),_0x416071['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x30c460['defineComponents'](_0x30c460);}}class ii extends _0x258d69{constructor(_0x5a864c){super(_0x5a864c);const t=_0x5a864c['t'],_0x50e0f3=this['bindTemplate'],_0x45b863=new _0x12a9ea();_0x45b863['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':[_0x45b863,{'text':_0x50e0f3['to']('imageUploadProgress',_0x327583=>t('Loading\x20image...')+'\x20('+(_0x327583||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 _0x258d69{constructor(_0x5b0f6d){super(_0x5b0f6d);const t=_0x5b0f6d['t'];this['set']('errorType',null);const _0x25fe25=new _0x2b5452(_0x5b0f6d);_0x25fe25['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x25fe25['withText']=!0x0,_0x25fe25['class']='ck-button-action',_0x25fe25['on']('execute',()=>{this['fire']('retry');}),_0x25fe25['bind']('isVisible')['to'](this,'errorType',_0x56cadf=>'NotFound'!==_0x56cadf);const _0x3e2bf2=new _0x34ba7c();_0x3e2bf2['content']=_0x352e5d,_0x3e2bf2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4f00a4=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':[_0x3e2bf2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4f00a4['to']('errorType',_0x1fa22f=>t('NotFound'!==_0x1fa22f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x25fe25]},{'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 _0x258d69{constructor(_0x1f6e70,_0x323b21){super(_0x1f6e70);const _0x1ea940=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x323b21,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1ea940['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x31bba4,_0x6d41b6,_0x3f92d6){super(_0x31bba4),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x31bba4),this['_errorView']=new ti(_0x31bba4),this['_editingView']=new ei(_0x31bba4,_0x3f92d6),this['_focusableView']=new _0x258d69(_0x31bba4),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x6d41b6),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'],_0x11ed1b=>{this['_addUploadcareImageEditorListeners'](_0x11ed1b);});}),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'](_0x2f1d0b,_0x34a416){const _0x27af11='uc-cloud-image-editor',_0x143422=_0x2f1d0b['querySelector'](_0x27af11);if(_0x143422)return _0x34a416(_0x143422);const _0x2e610d=new MutationObserver(_0x4975ff=>{const _0xbfab26=_0x4975ff['filter'](_0xa6d2f2=>_0xa6d2f2['target']===_0x2f1d0b&&_0xa6d2f2['addedNodes']['length']>0x0&&_0xa6d2f2['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x27af11);_0xbfab26['length']&&(_0x2e610d['disconnect'](),_0x34a416(_0xbfab26[0x0]['addedNodes'][0x0]));});_0x2e610d['observe'](_0x2f1d0b,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x58da77){_0x58da77['addEventListener']('apply',_0x840c51=>{this['fire']('apply',{'imageSrc':_0x840c51['detail']['cdnUrl']});}),_0x58da77['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5482f1(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4ff08f,_0x133368,_0xca5446){super(),this['_editor']=_0x4ff08f,this['_dialog']=_0x133368,this['_imageElement']=_0xca5446,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 _0x1b8b1a=this['_imageElement'],_0x314d48=_0x1b8b1a['getAttribute']('uploadcareImageId'),_0x55b98b=_0x1b8b1a['getAttribute']('src');if(_0x314d48)await this['_loadImageInfo'](_0x314d48,_0x55b98b);else{if(this['_imageCache']['has'](_0x55b98b)){const _0x527a22=this['_imageCache']['get'](_0x55b98b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x527a22['url'],this['imageDimension']=_0x527a22['dimension'],this['imageId']=_0x527a22['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2563bc}=this['_editor'],t=_0x2563bc['t'],_0x5a5907=new X(_0x2563bc,this['imageStatus'],this['_attributes']);_0x5a5907['bind']('status')['to'](this,'imageStatus'),_0x5a5907['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5a5907['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5a5907['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5a5907,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x9dea16,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5a5907,'position':_0x12813e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5a5907['focus']();},'onHide':()=>{_0x5a5907['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1329af=>!S(_0x1329af,_0x5a5907['element'])}});}['_loadImageInfo'](_0x32463d,_0x288726){return j['getInfo'](_0x32463d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3dc01a=>{const {width:_0x1b1862,height:_0x3d57b5}=_0x3dc01a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x288726,this['imageDimension']={'width':_0x1b1862,'height':_0x3d57b5},this['imageId']=_0x32463d;})['catch'](_0x4d681d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d681d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1acd65,_0x2d5425){return this['_getImageAsFile'](_0x1acd65)['then'](_0x42e9d4=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2d5425['signal'],'file':_0x42e9d4,'onProgress':_0x46b602=>{_0x46b602&&_0x46b602['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x46b602['value']));}}))['then'](_0x582de6=>{const {width:_0x21c9ed,height:_0x5e2c25}=_0x582de6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x582de6['cdnUrl'],this['imageDimension']={'width':_0x21c9ed,'height':_0x5e2c25},this['imageId']=_0x582de6['uuid'],this['imageUploadProgress']=null;const _0x818f99=_0x1acd65['getAttribute']('src');this['_imageCache']['set'](_0x818f99,{'id':_0x582de6['uuid'],'url':_0x582de6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x30ac1a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x30ac1a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3f75b7,_0x38ccb7){_0x3f75b7['on']('apply',(_0x21e94e,_0x108169)=>{this['_replaceImage'](_0x38ccb7,_0x108169['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3f75b7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3f75b7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x154e66,_0x105195,_0x38004d){const _0x573bd9=this['_editor'],{width:_0x4e6e6f,height:_0x25c55d}=C(_0x105195,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2f292b,imageSources:_0x2f3e8d}=k(_0x105195,_0x4e6e6f);_0x573bd9['model']['change'](_0x44fb5b=>{if('$graveyard'===_0x154e66['root']['rootName']){_0x573bd9['execute']('insertImage',{'imageType':_0x154e66['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x154e66['getAttributes']()),'uploadcareImageId':_0x38004d,'src':_0x2f292b,'sources':_0x2f3e8d,'width':_0x4e6e6f,'height':_0x25c55d}});const _0x9b60da=_0x154e66['getChildren']();_0x154e66=_0x573bd9['model']['document']['selection']['getSelectedElement']();for(const _0xae6da1 of _0x9b60da)_0x44fb5b['append'](_0x44fb5b['cloneElement'](_0xae6da1),_0x154e66);}else _0x44fb5b['setSelection'](_0x154e66,'on'),_0x573bd9['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x154e66['getAttributes']()),'uploadcareImageId':_0x38004d,'src':_0x2f292b,'sources':_0x2f3e8d,'width':_0x4e6e6f,'height':_0x25c55d},_0x154e66);_0x44fb5b['setSelection'](_0x154e66,'on');});}async['_getImageAsFile'](_0x58c75f){const _0x333231=_0x4bdf66['window'],_0x1f1b36=_0x4bdf66['document']['location']['href'],_0x2aa39b=new _0x333231['URL'](_0x58c75f['getAttribute']('src'),_0x1f1b36);if('data:'===_0x2aa39b['protocol']){const _0x46f1f9=_0x2aa39b['href']['split'](','),_0x4a9399=_0x46f1f9[0x0]['match'](/:(.*?);/)[0x1],_0x4cc36a=_0x4a9399['split']('/')[0x1],_0x24805c=_0x333231['atob'](_0x46f1f9[_0x46f1f9['length']-0x1]);let _0x4f7ea7=_0x24805c['length'];const _0x51203a=new _0x333231['Uint8Array'](_0x4f7ea7);for(;_0x4f7ea7--;)_0x51203a[_0x4f7ea7]=_0x24805c['charCodeAt'](_0x4f7ea7);return new _0x333231['File']([_0x51203a],'image.'+_0x4cc36a,{'type':_0x4a9399});}const _0x4c5751=_0x2aa39b['href']['split']('/'),_0x14b64a=_0x4c5751[_0x4c5751['length']-0x1],_0x1d009b=_0x14b64a['split']('.')[0x1];return _0x333231['fetch'](_0x2aa39b['href'])['then'](_0x197d16=>_0x197d16['clone']()['blob']())['then'](_0x332eac=>new _0x333231['File']([_0x332eac],_0x14b64a,{'type':'image/'+_0x1d009b}));}}class O extends _0x5d4826{['imageEditController'];static get['requires'](){return[_0x48111a];}['_isEditable'];constructor(_0x3a56b8){super(_0x3a56b8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3ba4d3){const _0x1458d7=G(_0x3ba4d3);return _0x11b25d=>!(!_0x11b25d||!_0x11b25d['is']('element','imageBlock')&&!_0x11b25d['is']('element','imageInline'))&&(!!_0x11b25d['hasAttribute']('uploadcareImageId')||!!_0x11b25d['hasAttribute']('src')&&_0x1458d7(_0x11b25d['getAttribute']('src')));}(_0x3a56b8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xe7e696=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xe7e696);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x49a594=this['editor']['model']['document']['selection']['getSelectedElement']();_0x49a594&&(_0x49a594['is']('element','imageBlock')||_0x49a594['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x48111a),_0x49a594),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x5d4826{['refresh'](){const _0x540267=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x540267&&(_0x540267['is']('element','imageBlock')||_0x540267['is']('element','imageInline')));}['execute'](_0x4fef36){const _0x511013=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5b58ca=>{_0x5b58ca['setAttributes'](_0x4fef36,_0x511013),_0x5b58ca['removeAttribute']('srcset',_0x511013),_0x5b58ca['removeAttribute']('sizes',_0x511013);});}}class m extends _0x2c88ff{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4d24c3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2400df}=this;_0x2400df['commands']['add']('uploadcareImageEdit',new O(_0x2400df)),_0x2400df['commands']['add']('uploadcareImageReplace',new R(_0x2400df));}}class g extends _0x2c88ff{['_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 _0x43a634=this['editor'];_0x43a634['ui']['componentFactory']['add']('uploadcareImageEdit',_0x73a36b=>{const _0x393d28=_0x43a634['commands']['get']('uploadcareImageEdit'),_0x3f057b=new _0x2b5452(_0x73a36b),t=_0x73a36b['t'];return _0x3f057b['set']({'icon':_0x9dea16,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3f057b['bind']('isEnabled')['to'](_0x393d28),_0x3f057b['bind']('isOn')['to'](_0x393d28,'isActive'),this['listenTo'](_0x3f057b,'execute',()=>{_0x43a634['execute']('uploadcareImageEdit'),_0x43a634['editing']['view']['focus']();}),_0x3f057b;}),this['_initConfig']();}['_initConfig'](){const _0x4d0504=_0x78e887(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4d0504),this['listenTo'](this['editor'],'destroy',()=>{_0x4d0504['remove']();});}}class et extends _0x2c88ff{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x180771,Command as _0x21c05b}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4abe2d,IconGooglePhotos as _0x540326,IconGoogleDrive as _0x16ed7c,IconFacebook as _0x5c8db5,IconDropbox as _0x3498e2,IconUploadcareLink as _0x3a186e,IconUploadcareImageUpload as _0x5e8796,IconError as _0x1f4132,IconUploadcareImageEdit as _0xbc9925}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3e33ba,MenuBarMenuListItemButtonView as _0x503f46,View as _0x4517d6,FocusCycler as _0x7417ef,Dialog as _0x257f15,DialogViewPosition as _0x8bd1d1,SpinnerView as _0x106ac0,IconView as _0x30aa8d,Notification as _0x30826e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x21ae59,DomEmitterMixin as _0x3a0846,global as _0x551b4f,getAncestors as _0x2dcdac,ObservableMixin as _0x3ce896,uid as _0x2a1a0d,createElement as _0x538b64}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x20029c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x55ab4a,info as _0x30a2a9}from'@uploadcare/upload-client';import*as _0x2e2afe from'@uploadcare/file-uploader';var i=function(_0x510f70){return _0x510f70['Local']='local',_0x510f70['URL']='url',_0x510f70['Dropbox']='dropbox',_0x510f70['GDrive']='gdrive',_0x510f70['Facebook']='facebook',_0x510f70['GPhotos']='gphotos',_0x510f70['OneDrive']='onedrive',_0x510f70;}({});function _(_0x4004ea,_0x59735e,_0x3f63c3){const t=_0x4004ea['t'],_0x1e8537=_0x4004ea['t'];switch(_0x59735e){case i['Local']:return{'text':_0x1e8537('Insert'===_0x3f63c3?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1e8537('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3f63c3?_0x1e8537('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1e8537('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x59735e;}}class e extends _0x180771{['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 _0x4eab8e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x38eedd;for(const _0x207ab6 in _0x4eab8e){const _0xa39963=_0x207ab6,_0x3ed2d6=_0x4eab8e[_0xa39963];if('uploadcareLicenseKeyValid'==_0x3ed2d6||'uploadcareLicenseKeyInvalid'==_0x3ed2d6||'uploadcareLicenseKeyExpired'==_0x3ed2d6||'uploadcareLicenseKeyDomainLimit'==_0x3ed2d6||'uploadcareLicenseKeyNotAllowed'==_0x3ed2d6||'uploadcareLicenseKeyEvaluationLimit'==_0x3ed2d6||'uploadcareLicenseKeyTrialLimit'==_0x3ed2d6||'uploadcareLicenseKeyUsageLimit'==_0x3ed2d6){delete _0x4eab8e[_0xa39963],_0x38eedd=_0x3ed2d6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x38eedd&&_0x4eab8e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x38eedd&&_0x4eab8e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x38eedd&&_0x4eab8e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x38eedd&&_0x4eab8e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x38eedd&&_0x4eab8e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x38eedd&&_0x4eab8e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x38eedd&&_0x4eab8e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x33f9f5}=this,_0x5bb1b4=_0x33f9f5['commands']['get']('uploadcare');if(!_0x5bb1b4)return;const _0x239439=this['_normalizeConfigSourceList'](_0x33f9f5['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x432071,_0x44cef6)=>{const _0x40f91b=this['_getIntegrationKey'](_0x44cef6['type']);return _0x432071[_0x40f91b]||(_0x432071[_0x40f91b]=[]),_0x432071[_0x40f91b]['push'](_0x44cef6),_0x432071;},{});_0x33f9f5['plugins']['has']('ImageInsertUI')&&_0x33f9f5['commands']['get']('uploadcare')&&Object['entries'](_0x239439)['forEach'](([_0x29984e,_0x5eba30])=>{_0x33f9f5['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x29984e,'observable':()=>_0x5bb1b4,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5eba30),'formViewCreator':()=>this['_createDropdownButtons'](_0x5eba30),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5eba30),'override':'assetManager'!==_0x29984e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x6ae54d){const {locale:_0x40a0e3}=this['editor'];return _0x6ae54d['map'](_0x5db0b1=>{const _0x5e335f=_(_0x40a0e3,_0x5db0b1,'Insert');switch(_0x5db0b1){case i['Local']:return{'icon':_0x5e8796,'type':i['Local'],..._0x5e335f};case i['URL']:return{'icon':_0x3a186e,'type':i['URL'],..._0x5e335f};case i['Dropbox']:return{'icon':_0x3498e2,'type':i['Dropbox'],..._0x5e335f};case i['Facebook']:return{'icon':_0x5c8db5,'type':i['Facebook'],..._0x5e335f};case i['GDrive']:return{'icon':_0x16ed7c,'type':i['GDrive'],..._0x5e335f};case i['GPhotos']:return{'icon':_0x540326,'type':i['GPhotos'],..._0x5e335f};case i['OneDrive']:return{'icon':_0x4abe2d,'type':i['OneDrive'],..._0x5e335f};}});}['_getIntegrationKey'](_0x3c1e4c){switch(_0x3c1e4c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x13dd58,_0x5cf6c1){const _0x4514fd=this['editor'],_0x2ec3d4=new _0x13dd58(_0x4514fd['locale']),_0x297826=_0x4514fd['commands']['get']('uploadcare');return _0x2ec3d4['bind']('isEnabled')['to'](_0x297826),_0x2ec3d4['on']('execute',()=>{_0x297826['execute'](_0x5cf6c1);}),_0x2ec3d4;}['_createToolbarButton'](_0x59bc79){const {locale:_0x3143c6}=this['editor'],_0x2e283d=this['editor']['plugins']['get']('ImageInsertUI'),_0xfee68=_0x59bc79[0x0],_0x55393a=this['_createButton'](_0x3e33ba,_0xfee68['type']);return _0x55393a['icon']=_0xfee68['icon'],_0x55393a['bind']('label')['to'](_0x2e283d,'isImageSelected',_0x285215=>_(_0x3143c6,_0xfee68['type'],_0x285215?'Replace':'Insert')['text']),_0x55393a['tooltip']=!0x0,_0x55393a;}['_createDropdownButtons'](_0x5e4bcc){const {locale:_0x2b76a9}=this['editor'],_0x31e106=this['editor']['plugins']['get']('ImageInsertUI');return _0x5e4bcc['map'](_0x5bc7af=>{const _0x5d21bc=this['_createButton'](_0x3e33ba,_0x5bc7af['type']);return _0x5d21bc['withText']=!0x0,_0x5d21bc['icon']=_0x5bc7af['icon'],_0x5d21bc['bind']('label')['to'](_0x31e106,'isImageSelected',_0x4f18fb=>_(_0x2b76a9,_0x5bc7af['type'],_0x4f18fb?'Replace':'Insert')['text']),_0x5d21bc;});}['_createMenuBarButtons'](_0x4858d3){return _0x4858d3['map'](_0xb5bd2d=>{const _0x336775=this['_createButton'](_0x503f46,_0xb5bd2d['type']);return _0x336775['icon']=_0xb5bd2d['icon'],_0x336775['label']=_0xb5bd2d['shortText'],_0x336775;});}}class F extends _0x4517d6{['focusTracker'];['focusCycler'];constructor(_0x4192c7){super(_0x4192c7),this['focusTracker']=new _0x21ae59(),this['focusCycler']=new _0x7417ef({'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(_0x5befaa,_0x3b2008){super(_0x5befaa),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-'+_0x3b2008}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x2fb0d3,_0x5cb913){const _0x155ba0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3004c1=>_0x3004c1<=_0x5cb913)['map'](_0x26957c=>_0x2fb0d3['replace'](/\/$/,'')+'/-/resize/'+_0x26957c+'x/\x20'+_0x26957c+'w');return{'imageFallbackUrl':_0x2fb0d3,'imageSources':[{'srcset':_0x155ba0['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5cb913+'px)\x20100vw,\x20'+_0x5cb913+'px','type':'image/webp'}]};}function C(_0x314de1,_0x555635,_0x353b2e){const _0x38d71d=_0x314de1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x38d71d?parseInt(_0x38d71d[0x1],0xa):_0x555635,'height':_0x38d71d?parseInt(_0x38d71d[0x2],0xa):_0x353b2e};}function p(_0x396b9a,_0x2e7cec){const _0x477fd8=new(_0x3a0846())(),_0x1d47c4=_0x396b9a['plugins']['get']('ImageUtils'),_0xddaa09=_0x396b9a['editing']['mapper']['toViewElement'](_0x2e7cec),_0x4c1fdc=_0x1d47c4['findViewImgElement'](_0xddaa09),_0x34384c=_0x396b9a['editing']['view']['domConverter']['viewToDom'](_0x4c1fdc),_0x59c830=_0x2e7cec['getAttribute']('width'),_0x56e082=_0x2e7cec['getAttribute']('height'),_0x12d2f2='image-processing';_0x396b9a['editing']['view']['change'](_0x5a35bf=>{_0x5a35bf['addClass'](_0x12d2f2,_0xddaa09),_0x5a35bf['setStyle']('aspect-ratio',_0x59c830+'/'+_0x56e082,_0x4c1fdc);}),_0x477fd8['listenTo'](_0x34384c,'load',()=>{_0x477fd8['stopListening'](_0x34384c,'load'),_0x396b9a['editing']['view']['change'](_0xcdaf0=>{_0xcdaf0['removeClass'](_0x12d2f2,_0xddaa09),_0xcdaf0['removeStyle']('aspect-ratio',_0x4c1fdc);});});}function G(_0x2c6d9f){if(Array['isArray'](_0x2c6d9f)){const _0x42e658=_0x2c6d9f['map'](G);return _0x2b8172=>_0x42e658['some'](_0x34e904=>_0x34e904(_0x2b8172));}if('origin'==_0x2c6d9f){const _0x8f45c=_0x551b4f['window']['location']['origin'];return _0x1cd366=>new URL(_0x1cd366,_0x551b4f['document']['baseURI'])['origin']==_0x8f45c;}return'function'==typeof _0x2c6d9f?_0x2c6d9f:_0x2c6d9f instanceof RegExp?_0x536e07=>!(!_0x536e07['match'](_0x2c6d9f)&&!_0x536e07['replace'](/^https?:\/\//,'')['match'](_0x2c6d9f)):()=>!0x1;}function S(_0x22e4f6,_0x5e1d09){return _0x2dcdac(_0x22e4f6['target'])['includes'](_0x5e1d09);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3ce896(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x33b909,_0x3eaf63,_0x449d0a){super(),this['_editor']=_0x33b909,this['_editing']=_0x3eaf63,this['_dialog']=_0x33b909['plugins']['get'](_0x257f15),this['_api']=_0x3eaf63['ctxElement']['getAPI'](),this['_type']=_0x449d0a,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:_0x4230c8,model:_0x2d5bc0}=this['_editor'],_0x1ee87a=_0x2d5bc0['document']['selection']['getSelectedElement'](),_0x6dc5fb=_0x1ee87a&&(_0x1ee87a['is']('element','imageBlock')||_0x1ee87a['is']('element','imageInline'));this['_formView']=new x(_0x4230c8,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5e8796,'title':_(_0x4230c8,this['_type'],_0x6dc5fb?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x8bd1d1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5ba37c=>!S(_0x5ba37c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xfc333c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5a8c38=>{const _0x3d289c=_0xfc333c['length'];for(const _0x2a1d68 of _0xfc333c){const _0x81be17=_0x2a1d68===_0xfc333c[_0x3d289c-0x1],{cdnUrl:_0x49cb9e,fileInfo:_0x41eb60}=_0x2a1d68;if(!_0x49cb9e||!_0x41eb60)continue;const {width:_0x458045,height:_0x33cfca}=_0x41eb60['imageInfo'],_0x44d186=C(_0x49cb9e,_0x458045,_0x33cfca),_0x591265=k(_0x49cb9e,_0x44d186['width']),_0x3b9ffb={'id':_0x41eb60['uuid'],'type':'image','attributes':{'imageDimension':_0x44d186,..._0x591265}};this['_insertAsset'](_0x3b9ffb,_0x81be17,_0x5a8c38);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x58132d=>{'idle'===_0x58132d['detail']['status']&&!_0x58132d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x591be2,_0x5558df,_0x5971b4){const _0x5465e5=this['_editor']['model']['document']['selection'],_0x4e8094=_0x5465e5['getSelectedElement'](),_0x3eded2=!(!_0x4e8094||!_0x4e8094['is']('element','imageInline'));_0x5971b4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x591be2,_0x3eded2),_0x5558df||_0x5971b4['setSelection'](_0x5465e5['getLastPosition']());}['_insertImage'](_0x456a6d,_0x395408){const _0x12a2e2=this['_editor'],{imageDimension:_0x584c2f,imageFallbackUrl:_0x21b1a8,imageSources:_0x2118bd}=_0x456a6d['attributes'];_0x12a2e2['execute']('insertImage',{'imageType':_0x395408?'imageInline':null,'source':{'uploadcareImageId':_0x456a6d['id'],'src':_0x21b1a8,'sources':_0x2118bd,..._0x584c2f}});}}class w extends _0x21c05b{['_editing'];['_controller']=null;static get['requires'](){return[_0x257f15,o];}constructor(_0x581afe){super(_0x581afe),this['_editing']=_0x581afe['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4382a3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4382a3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x2f5d1e,publicKey:_0x174943,signal:_0x1f3836,onProgress:_0x25a101}){return _0x55ab4a(_0x2f5d1e,{'publicKey':_0x174943,'store':'auto','signal':_0x1f3836,'onProgress':_0x25a101});}static['getInfo'](_0x18bf2c,_0x32ed82){return _0x30a2a9(_0x18bf2c,_0x32ed82);}}class f extends _0x180771{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x20029c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4386ab=this['editor'];if(!!!_0x4386ab['config']['get']('uploadcare'))return;_0x4386ab['plugins']['get'](_0x20029c)['createUploadAdapter']=_0x555ff9=>new A(_0x555ff9,_0x4386ab),_0x4386ab['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x190034,{imageElement:_0x340ff4,data:_0x45f41e})=>{_0x4386ab['model']['change'](_0x577c7a=>{_0x577c7a['setAttribute']('uploadcareImageId',_0x45f41e['uploadcareImageId'],_0x340ff4);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x51298d,_0xdd19d7){this['loader']=_0x51298d,this['editor']=_0xdd19d7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3c13ff=this['editor']['config']['get']('uploadcare.pubkey'),_0x2d7b24=await this['loader']['file'];return j['upload']({'file':_0x2d7b24,'publicKey':_0x3c13ff,'signal':this['controller']['signal'],'onProgress':_0x4d28ab=>{_0x4d28ab&&_0x4d28ab['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4d28ab['value']);}})['then'](async _0x4ca4ea=>{const {imageFallbackUrl:_0x57a7d3,imageSources:_0x477cbc}=k(_0x4ca4ea['cdnUrl'],_0x4ca4ea['imageInfo']['width']);return{'uploadcareImageId':_0x4ca4ea['uuid'],'default':_0x57a7d3,'sources':_0x477cbc};})['catch'](()=>{const _0x4236ef=t('Cannot\x20upload\x20file:')+('\x20'+_0x2d7b24['name']+'.');return Promise['reject'](_0x4236ef);});}['abort'](){this['controller']['abort']();}}class o extends _0x180771{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x257f15];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4149cb){super(_0x4149cb),this['ucContextId']=_0x2a1a0d();}['init'](){const _0x3883ec=this['editor'];_0x3883ec['commands']['add']('uploadcare',new w(_0x3883ec));}['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 _0x1a9ba9=_0x551b4f['document']['querySelector']('input[uploadcare-file-input]');_0x1a9ba9&&_0x1a9ba9['remove']();}),async function(_0x592f68){const _0xb08c1d=_0x37443([0x4e,0x34,0x41,0x46,0x38,0x59,0x4d,0x45,0x58,0x47,0x4f,0x43,0x51,0x44,0x32,0x67,0x42,0x33,0x52,0x64,0x6f,0x4b,0x61,0x73,0x77,0x5a,0x6e,0x56,0x39,0x4c,0x50,0x68,0x71,0x66,0x6b,0x53,0x49,0x70,0x79,0x35,0x31,0x7a,0x72,0x6c,0x4a,0x48,0x37,0x57,0x75,0x54,0x62,0x63,0x76,0x69,0x6a,0x65,0x6d,0x55,0x30,0x36,0x74,0x78]),_0x1b0665=0x31aa5c0f,_0x4da2a7=0x31ad376f^_0x1b0665,_0x3d6363=window[_0x37443([0x44,0x61,0x74,0x65])][_0x37443([0x6e,0x6f,0x77])](),_0x173866=_0x592f68[_0x37443([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xcfdc9f=new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17496f=>{_0x173866[_0x37443([0x6f,0x6e,0x63,0x65])](_0x37443([0x72,0x65,0x61,0x64,0x79]),_0x17496f);}),_0x13d711={[_0x37443([0x6b,0x74,0x79])]:_0x37443([0x45,0x43]),[_0x37443([0x75,0x73,0x65])]:_0x37443([0x73,0x69,0x67]),[_0x37443([0x63,0x72,0x76])]:_0x37443([0x50,0x2d,0x32,0x35,0x36]),[_0x37443([0x78])]:_0x37443([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]),[_0x37443([0x79])]:_0x37443([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]),[_0x37443([0x61,0x6c,0x67])]:_0x37443([0x45,0x53,0x32,0x35,0x36])},_0x25b5e9=_0x173866[_0x37443([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x37443([0x67,0x65,0x74])](_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3cb6e5(){let _0x310317,_0x3f91b6=null,_0x5b4714=null;try{if(_0x25b5e9==_0x37443([0x47,0x50,0x4c]))return _0x37443([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x310317=_0x5c316c(),!_0x310317)return _0x37443([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x310317[_0x37443([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b4714=_0x1b50cc(_0x310317[_0x37443([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x310317[_0x37443([0x6a,0x74,0x69])])),await _0x47b6c4()?_0x545926()?_0x851226()?_0x37443([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3feaaf()?(_0x310317[_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37443([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f91b6=_0x39e35b(_0x37443([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x310317[_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37443([0x74,0x72,0x69,0x61,0x6c])&&(_0x3f91b6=_0x39e35b(_0x37443([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x204855()):_0x37443([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x37443([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x37443([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x37443([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x851226(){const _0x5275f7=[_0x37443([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x37443([0x74,0x72,0x69,0x61,0x6c])][_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x310317[_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d6363/0x3e8:0xe10*_0x4da2a7;return _0x310317[_0x37443([0x65,0x78,0x70])]<_0x5275f7;}function _0x545926(){const _0x3ccbbf=_0x310317[_0x37443([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ccbbf&&(!!_0x3ccbbf[_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37443([0x2a]))||!!_0x3ccbbf[_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37443([0x55,0x50,0x4c,0x43])));}function _0x3feaaf(){const _0x243a5c=_0x310317[_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x243a5c||0x0==_0x243a5c[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53f33b}=new URL(window[_0x37443([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x243a5c[_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53f33b))return!0x0;const _0x49b8a6=_0x53f33b[_0x37443([0x73,0x70,0x6c,0x69,0x74])](_0x37443([0x2e]));return _0x243a5c[_0x37443([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13bdb2=>_0x13bdb2[_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37443([0x2a])))[_0x37443([0x6d,0x61,0x70])](_0x45dad0=>_0x45dad0[_0x37443([0x73,0x70,0x6c,0x69,0x74])](_0x37443([0x2e])))[_0x37443([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24312a=>_0x24312a[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x49b8a6[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x37443([0x6d,0x61,0x70])](_0x5e4d84=>Array(_0x49b8a6[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5e4d84[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x37443([0x66,0x69,0x6c,0x6c])](_0x5e4d84[0x0]===_0x37443([0x2a])?_0x37443([0x2a]):'')[_0x37443([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5e4d84))[_0x37443([0x73,0x6f,0x6d,0x65])](_0x314601=>_0x49b8a6[_0x37443([0x65,0x76,0x65,0x72,0x79])]((_0x5acd80,_0x49b9b2)=>_0x314601[_0x49b9b2]===_0x5acd80||_0x314601[_0x49b9b2]===_0x37443([0x2a])));}function _0x204855(){return _0x3f91b6&&_0x5b4714?new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d3c15,_0x4de6d9)=>{_0x3f91b6[_0x37443([0x74,0x68,0x65,0x6e])](_0x1d3c15,_0x4de6d9),_0x5b4714[_0x37443([0x74,0x68,0x65,0x6e])](_0x54b2e5=>{_0x54b2e5!=_0x37443([0x56,0x61,0x6c,0x69,0x64])&&_0x1d3c15(_0x54b2e5);},_0x4de6d9);}):_0x3f91b6||_0x5b4714||_0x37443([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b50cc(_0x50ec16,_0x3b58a1){return new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb58e89=>{if(_0x1e38e1())return _0xb58e89(_0x37443([0x56,0x61,0x6c,0x69,0x64]));_0x4475ca(),_0x173866[_0x37443([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x37443([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4418fd=!0x1;const _0x26f405=_0x2a1a0d();function _0x16cdd5(_0x5074b5){return!!_0x5074b5&&(typeof _0x5074b5===_0x37443([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5074b5===_0x37443([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5074b5[_0x37443([0x74,0x68,0x65,0x6e])]===_0x37443([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5074b5[_0x37443([0x63,0x61,0x74,0x63,0x68])]===_0x37443([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf9fbef(_0x54a5f9){_0x5abdc0(_0x54a5f9)[_0x37443([0x74,0x68,0x65,0x6e])](_0x25f0df=>{if(!_0x25f0df||_0x25f0df[_0x37443([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x37443([0x6f,0x6b]))return _0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4aee5b(_0x355760(_0x26f405+_0x3b58a1))!=_0x25f0df[_0x37443([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x37443([0x56,0x61,0x6c,0x69,0x64]);})[_0x37443([0x74,0x68,0x65,0x6e])](_0x2ccb34=>(_0x27b772(),_0x2ccb34),()=>{const _0x30382f=_0x23ccbd();return null==_0x30382f?(_0x27b772(),_0x37443([0x56,0x61,0x6c,0x69,0x64])):_0x37443(_0x3d6363-_0x30382f>(0x15a6d80f^_0x1b0665)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x37443([0x74,0x68,0x65,0x6e])](_0xb58e89)[_0x37443([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb58e89(_0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x47da02=0x319cb28f^_0x1b0665;function _0x27b772(){const _0x22e39d=_0x37443([0x6c,0x6c,0x63,0x74,0x2d])+_0x4aee5b(_0x355760(_0x50ec16)),_0x1053ed=_0x1ece22(_0x4aee5b(window[_0x37443([0x4d,0x61,0x74,0x68])][_0x37443([0x63,0x65,0x69,0x6c])](_0x3d6363/_0x47da02)));window[_0x37443([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37443([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22e39d,_0x1053ed);}function _0x23ccbd(){const _0x1d8bed=_0x37443([0x6c,0x6c,0x63,0x74,0x2d])+_0x4aee5b(_0x355760(_0x50ec16)),_0x27d512=window[_0x37443([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37443([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d8bed);return _0x27d512?window[_0x37443([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ece22(_0x27d512),0x10)*_0x47da02:null;}function _0x5abdc0(_0x4522ad){return new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53aae7,_0x306e9b)=>{_0x4522ad[_0x37443([0x74,0x68,0x65,0x6e])](_0x53aae7,_0x306e9b),window[_0x37443([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x306e9b,0x31ab88cf^_0x1b0665);});}}_0x173866[_0x37443([0x6f,0x6e])](_0x37443([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36dbc6,_0x4c2b7b)=>{if(_0x4c2b7b[0x0]!=_0x50ec16)return _0xb58e89(_0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c2b7b[0x1]={..._0x4c2b7b[0x1],[_0x37443([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x26f405};},{[_0x37443([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37443([0x68,0x69,0x67,0x68])}),_0x173866[_0x37443([0x6f,0x6e])](_0x37443([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5cd37e=>{_0x16cdd5(_0x5cd37e[_0x37443([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4418fd=!0x0,_0xf9fbef(_0x5cd37e[_0x37443([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x37443([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37443([0x6c,0x6f,0x77])}),_0xcfdc9f[_0x37443([0x74,0x68,0x65,0x6e])](()=>{_0x4418fd||_0xb58e89(_0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e38e1(){return _0x173866[_0x37443([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37443([0x76,0x69,0x65,0x77])][_0x37443([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x37443([0x61,0x75,0x74,0x6f]);}function _0x4475ca(){_0x173866[_0x37443([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37443([0x76,0x69,0x65,0x77])][_0x37443([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x37443([0x61,0x75,0x74,0x6f]);}}function _0x39e35b(_0x4336ca){const _0x1eca45=[new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1140c9=>setTimeout(_0x1140c9,0x31a362c3^_0x1b0665)),_0xcfdc9f[_0x37443([0x74,0x68,0x65,0x6e])](()=>new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1aeada=>{let _0x3f52f6=0x0;_0x173866[_0x37443([0x6d,0x6f,0x64,0x65,0x6c])][_0x37443([0x6f,0x6e])](_0x37443([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x318810,_0x2cab65)=>{_0x2cab65[0x0][_0x37443([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f52f6++,_0x3f52f6==(0x31aa5df7^_0x1b0665)&&(_0x1aeada(),_0x318810[_0x37443([0x6f,0x66,0x66])]());});}))];return window[_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x37443([0x72,0x61,0x63,0x65])](_0x1eca45)[_0x37443([0x74,0x68,0x65,0x6e])](()=>_0x4336ca);}async function _0x52ad5e(){await _0xcfdc9f,_0x173866[_0x37443([0x6d,0x6f,0x64,0x65,0x6c])][_0x37443([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2fc694,_0x173866[_0x37443([0x6d,0x6f,0x64,0x65,0x6c])][_0x37443([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2fc694,_0x173866[_0x37443([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x37443([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25e602(_0x52ba5f){const _0x51775a=_0x1a00ed();_0x173866[_0x51775a]=_0x37443([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52ba5f,_0x52ba5f!=_0x37443([0x56,0x61,0x6c,0x69,0x64])&&_0x52ad5e();}function _0x1a00ed(){const _0xd65fda=window[_0x37443([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x37443([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x37443([0x6e,0x6f,0x77])]())[_0x37443([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x37443([0x2e]),'');let _0x4a1226=_0x37443([0x4e]);for(let _0x244e2b=0x0;_0x244e2b<_0xd65fda[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x244e2b+=0x2){let _0x4e9996=window[_0x37443([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd65fda[_0x37443([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x244e2b,_0x244e2b+0x2));_0x4e9996>=_0xb08c1d[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e9996-=_0xb08c1d[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a1226+=_0xb08c1d[_0x4e9996];}return _0x4a1226;}function _0x5c316c(){const _0x440ad6=_0x25b5e9[_0x37443([0x73,0x70,0x6c,0x69,0x74])](_0x37443([0x2e]));if(0x3!=_0x440ad6[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c95a6(_0x440ad6[0x1]);function _0x4c95a6(_0x4c39b5){const _0x5acde5=_0x43b881(_0x4c39b5);return _0x5acde5&&_0x207c7e()?_0x5acde5:null;function _0x207c7e(){const _0x19c7c0=_0x5acde5[_0x37443([0x6a,0x74,0x69])],_0x50e67e=window[_0x37443([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19c7c0[_0x37443([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19c7c0[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1ce598={..._0x5acde5,[_0x37443([0x6a,0x74,0x69])]:_0x19c7c0[_0x37443([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19c7c0[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1ce598[_0x37443([0x76,0x63])],_0x355760(_0x1ce598)==_0x50e67e;}}}async function _0x47b6c4(){let _0x54dcf5=!0x0;try{const _0x307c4d=_0x25b5e9[_0x37443([0x73,0x70,0x6c,0x69,0x74])](_0x37443([0x2e])),[_0x5ed700,_0x1808cd,_0x1e9d3e]=_0x307c4d;return _0x4e07f0(_0x5ed700),await _0x3a917b(_0x5ed700,_0x1808cd,_0x1e9d3e),_0x54dcf5;}catch{return!0x1;}function _0x4e07f0(_0x261a8f){const _0x1b4028=_0x43b881(_0x261a8f);_0x1b4028&&_0x1b4028[_0x37443([0x61,0x6c,0x67])]==_0x37443([0x45,0x53,0x32,0x35,0x36])||(_0x54dcf5=!0x1);}async function _0x3a917b(_0x14870f,_0x55b078,_0x5ec6c6){const _0x3ec5bc=window[_0x37443([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x37443([0x66,0x72,0x6f,0x6d])](_0x44ec69(_0x5ec6c6),_0x198119=>_0x198119[_0x37443([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x308687=new window[(_0x37443([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x37443([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14870f+_0x37443([0x2e])+_0x55b078),_0x133ed9=window[_0x37443([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x37443([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x133ed9)return;const _0x5111e3=await _0x133ed9[_0x37443([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x37443([0x6a,0x77,0x6b]),_0x13d711,{[_0x37443([0x6e,0x61,0x6d,0x65])]:_0x37443([0x45,0x43,0x44,0x53,0x41]),[_0x37443([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x37443([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x37443([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x133ed9[_0x37443([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x37443([0x6e,0x61,0x6d,0x65])]:_0x37443([0x45,0x43,0x44,0x53,0x41]),[_0x37443([0x68,0x61,0x73,0x68])]:{[_0x37443([0x6e,0x61,0x6d,0x65])]:_0x37443([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5111e3,_0x3ec5bc,_0x308687)||(_0x54dcf5=!0x1);}}function _0x43b881(_0x74546a){return _0x74546a[_0x37443([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x37443([0x65,0x79]))?JSON[_0x37443([0x70,0x61,0x72,0x73,0x65])](_0x44ec69(_0x74546a)):null;}function _0x44ec69(_0x390b5a){return window[_0x37443([0x61,0x74,0x6f,0x62])](_0x390b5a[_0x37443([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x37443([0x2b]))[_0x37443([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x37443([0x2f])));}function _0x355760(_0x5b289e){let _0x29b027=0x1505;function _0x371963(_0x370e87){for(let _0x440130=0x0;_0x440130<_0x370e87[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x440130++){const _0xcc3e1e=_0x370e87[_0x37443([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x440130);_0x29b027=(_0x29b027<<0x5)+_0x29b027+_0xcc3e1e,_0x29b027&=_0x29b027;}}function _0x25244b(_0x2d1a73){Array[_0x37443([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d1a73)?_0x2d1a73[_0x37443([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25244b):_0x2d1a73&&typeof _0x2d1a73==_0x37443([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x37443([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d1a73)[_0x37443([0x73,0x6f,0x72,0x74])]()[_0x37443([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1102dd,_0x44698a])=>{_0x371963(_0x1102dd),_0x25244b(_0x44698a);}):_0x371963(window[_0x37443([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d1a73));}return _0x25244b(_0x5b289e),_0x29b027>>>0x0;}function _0x4aee5b(_0x47ef40){return _0x47ef40[_0x37443([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x37443([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x37443([0x30]));}function _0x1ece22(_0x275426){return _0x275426[_0x37443([0x73,0x70,0x6c,0x69,0x74])]('')[_0x37443([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x37443([0x6a,0x6f,0x69,0x6e])]('');}function _0x2fc694(){}function _0x37443(_0x18b09b){return _0x18b09b['map'](_0x195139=>String['fromCharCode'](_0x195139))['join']('');}_0x25e602(await _0x3cb6e5());}(this);}['_initSchema'](){const _0x5e43ad=this['editor']['model']['schema'];_0x5e43ad['isRegistered']('imageBlock')&&_0x5e43ad['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5e43ad['isRegistered']('imageInline')&&_0x5e43ad['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xa703d9=this['editor'];_0xa703d9['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xa703d9['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x295711=>_0x295711['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2980a6=_0xa703d9['commands']['get']('replaceImageSource');_0x2980a6&&this['listenTo'](_0x2980a6,'cleanupImage',(_0x551b4c,[_0x345a33,_0x46c12f])=>{_0x345a33['removeAttribute']('uploadcareImageId',_0x46c12f);});}['_initConfig'](){const _0x1d98a2=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4fd356=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x538b64(_0x551b4f['document'],'uc-config',{..._0x1d98a2,'pubkey':_0x4fd356,'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']=_0x4af882=>{if('closeMax'==_0x4af882)return'#uc-icon-arrow-down';},_0x551b4f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x538b64(_0x551b4f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x551b4f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5d15ac=this['editor']['commands']['get']('insertImage');_0x5d15ac&&this['listenTo'](_0x5d15ac,'execute',()=>{const _0x55438f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x55438f&&_0x55438f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x55438f);});});const _0x1927f7=this['editor']['commands']['get']('uploadcareImageReplace');_0x1927f7&&this['listenTo'](_0x1927f7,'execute',()=>{const _0x2e7428=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2e7428&&_0x2e7428['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2e7428);});});}}class tt extends _0x180771{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23def2){super(_0x23def2),_0x23def2['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2e2afe['defineComponents'](_0x2e2afe);}}class ii extends _0x4517d6{constructor(_0x3e2d2f){super(_0x3e2d2f);const t=_0x3e2d2f['t'],_0x5ad33f=this['bindTemplate'],_0x42286d=new _0x106ac0();_0x42286d['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':[_0x42286d,{'text':_0x5ad33f['to']('imageUploadProgress',_0x3c5234=>t('Loading\x20image...')+'\x20('+(_0x3c5234||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 _0x4517d6{constructor(_0x350074){super(_0x350074);const t=_0x350074['t'];this['set']('errorType',null);const _0x47910e=new _0x3e33ba(_0x350074);_0x47910e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x47910e['withText']=!0x0,_0x47910e['class']='ck-button-action',_0x47910e['on']('execute',()=>{this['fire']('retry');}),_0x47910e['bind']('isVisible')['to'](this,'errorType',_0x1ccc0c=>'NotFound'!==_0x1ccc0c);const _0x4ab6bd=new _0x30aa8d();_0x4ab6bd['content']=_0x1f4132,_0x4ab6bd['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2e5948=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':[_0x4ab6bd,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2e5948['to']('errorType',_0x39f96c=>t('NotFound'!==_0x39f96c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x47910e]},{'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 _0x4517d6{constructor(_0x358c8b,_0x30a57f){super(_0x358c8b);const _0x4f33a5=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x30a57f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4f33a5['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2b3440,_0x531207,_0x18f35c){super(_0x2b3440),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2b3440),this['_errorView']=new ti(_0x2b3440),this['_editingView']=new ei(_0x2b3440,_0x18f35c),this['_focusableView']=new _0x4517d6(_0x2b3440),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x531207),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'],_0x21ffd4=>{this['_addUploadcareImageEditorListeners'](_0x21ffd4);});}),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'](_0x50ed49,_0x2d9ac2){const _0x58c407='uc-cloud-image-editor',_0x96de63=_0x50ed49['querySelector'](_0x58c407);if(_0x96de63)return _0x2d9ac2(_0x96de63);const _0x30af3e=new MutationObserver(_0x2b696e=>{const _0x591a58=_0x2b696e['filter'](_0x504875=>_0x504875['target']===_0x50ed49&&_0x504875['addedNodes']['length']>0x0&&_0x504875['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x58c407);_0x591a58['length']&&(_0x30af3e['disconnect'](),_0x2d9ac2(_0x591a58[0x0]['addedNodes'][0x0]));});_0x30af3e['observe'](_0x50ed49,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x361092){_0x361092['addEventListener']('apply',_0x29eab6=>{this['fire']('apply',{'imageSrc':_0x29eab6['detail']['cdnUrl']});}),_0x361092['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3ce896(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5d7b66,_0x137443,_0x454620){super(),this['_editor']=_0x5d7b66,this['_dialog']=_0x137443,this['_imageElement']=_0x454620,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 _0x3d5b6=this['_imageElement'],_0x60998a=_0x3d5b6['getAttribute']('uploadcareImageId'),_0x4cd41d=_0x3d5b6['getAttribute']('src');if(_0x60998a)await this['_loadImageInfo'](_0x60998a,_0x4cd41d);else{if(this['_imageCache']['has'](_0x4cd41d)){const _0x34fadb=this['_imageCache']['get'](_0x4cd41d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34fadb['url'],this['imageDimension']=_0x34fadb['dimension'],this['imageId']=_0x34fadb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2800b2}=this['_editor'],t=_0x2800b2['t'],_0x469512=new X(_0x2800b2,this['imageStatus'],this['_attributes']);_0x469512['bind']('status')['to'](this,'imageStatus'),_0x469512['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x469512['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x469512['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x469512,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xbc9925,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x469512,'position':_0x8bd1d1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x469512['focus']();},'onHide':()=>{_0x469512['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x21bc23=>!S(_0x21bc23,_0x469512['element'])}});}['_loadImageInfo'](_0x485843,_0x48bcb9){return j['getInfo'](_0x485843,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x43549c=>{const {width:_0x262bd2,height:_0x308528}=_0x43549c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x48bcb9,this['imageDimension']={'width':_0x262bd2,'height':_0x308528},this['imageId']=_0x485843;})['catch'](_0x273081=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x273081['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x7ae54c,_0x18902a){return this['_getImageAsFile'](_0x7ae54c)['then'](_0x35e809=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x18902a['signal'],'file':_0x35e809,'onProgress':_0x13e0e8=>{_0x13e0e8&&_0x13e0e8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x13e0e8['value']));}}))['then'](_0x39ff12=>{const {width:_0x510d63,height:_0x1322a9}=_0x39ff12['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x39ff12['cdnUrl'],this['imageDimension']={'width':_0x510d63,'height':_0x1322a9},this['imageId']=_0x39ff12['uuid'],this['imageUploadProgress']=null;const _0x2cde8d=_0x7ae54c['getAttribute']('src');this['_imageCache']['set'](_0x2cde8d,{'id':_0x39ff12['uuid'],'url':_0x39ff12['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4ac962=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4ac962['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x463f96,_0x1a194e){_0x463f96['on']('apply',(_0x68c026,_0x388157)=>{this['_replaceImage'](_0x1a194e,_0x388157['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x463f96['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x463f96['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x313028,_0x278885,_0x5d476b){const _0x57a366=this['_editor'],{width:_0x3f87ca,height:_0x3b6fe7}=C(_0x278885,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2be366,imageSources:_0xaaa375}=k(_0x278885,_0x3f87ca);_0x57a366['model']['change'](_0x47536b=>{if('$graveyard'===_0x313028['root']['rootName']){_0x57a366['execute']('insertImage',{'imageType':_0x313028['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x313028['getAttributes']()),'uploadcareImageId':_0x5d476b,'src':_0x2be366,'sources':_0xaaa375,'width':_0x3f87ca,'height':_0x3b6fe7}});const _0x14611b=_0x313028['getChildren']();_0x313028=_0x57a366['model']['document']['selection']['getSelectedElement']();for(const _0x5e355b of _0x14611b)_0x47536b['append'](_0x47536b['cloneElement'](_0x5e355b),_0x313028);}else _0x47536b['setSelection'](_0x313028,'on'),_0x57a366['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x313028['getAttributes']()),'uploadcareImageId':_0x5d476b,'src':_0x2be366,'sources':_0xaaa375,'width':_0x3f87ca,'height':_0x3b6fe7},_0x313028);_0x47536b['setSelection'](_0x313028,'on');});}async['_getImageAsFile'](_0x590d25){const _0x21b22f=_0x551b4f['window'],_0x46a36a=_0x551b4f['document']['location']['href'],_0x4f508e=new _0x21b22f['URL'](_0x590d25['getAttribute']('src'),_0x46a36a);if('data:'===_0x4f508e['protocol']){const _0xed854d=_0x4f508e['href']['split'](','),_0x450a2b=_0xed854d[0x0]['match'](/:(.*?);/)[0x1],_0x4e8639=_0x450a2b['split']('/')[0x1],_0x1cacc5=_0x21b22f['atob'](_0xed854d[_0xed854d['length']-0x1]);let _0x3201f4=_0x1cacc5['length'];const _0xef3589=new _0x21b22f['Uint8Array'](_0x3201f4);for(;_0x3201f4--;)_0xef3589[_0x3201f4]=_0x1cacc5['charCodeAt'](_0x3201f4);return new _0x21b22f['File']([_0xef3589],'image.'+_0x4e8639,{'type':_0x450a2b});}const _0x105f67=_0x4f508e['href']['split']('/'),_0x3a11a1=_0x105f67[_0x105f67['length']-0x1],_0x35d2d7=_0x3a11a1['split']('.')[0x1];return _0x21b22f['fetch'](_0x4f508e['href'])['then'](_0x5d17a3=>_0x5d17a3['clone']()['blob']())['then'](_0x2a7ebc=>new _0x21b22f['File']([_0x2a7ebc],_0x3a11a1,{'type':'image/'+_0x35d2d7}));}}class O extends _0x21c05b{['imageEditController'];static get['requires'](){return[_0x257f15];}['_isEditable'];constructor(_0x498d9a){super(_0x498d9a),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x38c8e6){const _0x7d027c=G(_0x38c8e6);return _0x27eaba=>!(!_0x27eaba||!_0x27eaba['is']('element','imageBlock')&&!_0x27eaba['is']('element','imageInline'))&&(!!_0x27eaba['hasAttribute']('uploadcareImageId')||!!_0x27eaba['hasAttribute']('src')&&_0x7d027c(_0x27eaba['getAttribute']('src')));}(_0x498d9a['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4267b0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4267b0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x644b3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x644b3&&(_0x644b3['is']('element','imageBlock')||_0x644b3['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x257f15),_0x644b3),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x21c05b{['refresh'](){const _0x5c1485=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5c1485&&(_0x5c1485['is']('element','imageBlock')||_0x5c1485['is']('element','imageInline')));}['execute'](_0x473fbd){const _0x55715d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2f2cdc=>{_0x2f2cdc['setAttributes'](_0x473fbd,_0x55715d),_0x2f2cdc['removeAttribute']('srcset',_0x55715d),_0x2f2cdc['removeAttribute']('sizes',_0x55715d);});}}class m extends _0x180771{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x30826e,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x158152}=this;_0x158152['commands']['add']('uploadcareImageEdit',new O(_0x158152)),_0x158152['commands']['add']('uploadcareImageReplace',new R(_0x158152));}}class g extends _0x180771{['_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 _0x2a14e4=this['editor'];_0x2a14e4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x680fd3=>{const _0x5eaa8c=_0x2a14e4['commands']['get']('uploadcareImageEdit'),_0x3e0ee9=new _0x3e33ba(_0x680fd3),t=_0x680fd3['t'];return _0x3e0ee9['set']({'icon':_0xbc9925,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3e0ee9['bind']('isEnabled')['to'](_0x5eaa8c),_0x3e0ee9['bind']('isOn')['to'](_0x5eaa8c,'isActive'),this['listenTo'](_0x3e0ee9,'execute',()=>{_0x2a14e4['execute']('uploadcareImageEdit'),_0x2a14e4['editing']['view']['focus']();}),_0x3e0ee9;}),this['_initConfig']();}['_initConfig'](){const _0x2aa158=_0x538b64(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2aa158),this['listenTo'](this['editor'],'destroy',()=>{_0x2aa158['remove']();});}}class et extends _0x180771{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':_0x2daa87=>0x1!=_0x2daa87}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x39cc96=>{const {af:{dictionary:_0x317442,getPluralForm:_0xc10829}}={'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':_0x14c35b=>0x1!=_0x14c35b}};_0x39cc96['af']||={'dictionary':{},'getPluralForm':null},_0x39cc96['af']['dictionary']=Object['assign'](_0x39cc96['af']['dictionary'],_0x317442),_0x39cc96['af']['getPluralForm']=_0xc10829;})(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':_0xd993f0=>0x0==_0xd993f0?0x0:0x1==_0xd993f0?0x1:0x2==_0xd993f0?0x2:_0xd993f0%0x64>=0x3&&_0xd993f0%0x64<=0xa?0x3:_0xd993f0%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4dbd46=>{const {ar:{dictionary:_0x4ea27d,getPluralForm:_0x1df14e}}={'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':_0x5025a3=>0x0==_0x5025a3?0x0:0x1==_0x5025a3?0x1:0x2==_0x5025a3?0x2:_0x5025a3%0x64>=0x3&&_0x5025a3%0x64<=0xa?0x3:_0x5025a3%0x64>=0xb?0x4:0x5}};_0x4dbd46['ar']||={'dictionary':{},'getPluralForm':null},_0x4dbd46['ar']['dictionary']=Object['assign'](_0x4dbd46['ar']['dictionary'],_0x4ea27d),_0x4dbd46['ar']['getPluralForm']=_0x1df14e;})(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':_0x4df124=>0x1!=_0x4df124}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x287360=>{const {ast:{dictionary:_0x3d1e89,getPluralForm:_0x2fe37d}}={'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':_0x15729b=>0x1!=_0x15729b}};_0x287360['ast']||={'dictionary':{},'getPluralForm':null},_0x287360['ast']['dictionary']=Object['assign'](_0x287360['ast']['dictionary'],_0x3d1e89),_0x287360['ast']['getPluralForm']=_0x2fe37d;})(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':_0x16cb83=>0x1!=_0x16cb83}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x127552=>{const {az:{dictionary:_0x48e7eb,getPluralForm:_0xe9ce48}}={'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':_0x4c0ad2=>0x1!=_0x4c0ad2}};_0x127552['az']||={'dictionary':{},'getPluralForm':null},_0x127552['az']['dictionary']=Object['assign'](_0x127552['az']['dictionary'],_0x48e7eb),_0x127552['az']['getPluralForm']=_0xe9ce48;})(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':_0x4647c8=>_0x4647c8%0xa==0x1&&_0x4647c8%0x64!=0xb?0x0:_0x4647c8%0xa>=0x2&&_0x4647c8%0xa<=0x4&&(_0x4647c8%0x64<0xa||_0x4647c8%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2633c1=>{const {be:{dictionary:_0x4d0f36,getPluralForm:_0x3151c4}}={'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':_0x18ec29=>_0x18ec29%0xa==0x1&&_0x18ec29%0x64!=0xb?0x0:_0x18ec29%0xa>=0x2&&_0x18ec29%0xa<=0x4&&(_0x18ec29%0x64<0xa||_0x18ec29%0x64>=0x14)?0x1:0x2}};_0x2633c1['be']||={'dictionary':{},'getPluralForm':null},_0x2633c1['be']['dictionary']=Object['assign'](_0x2633c1['be']['dictionary'],_0x4d0f36),_0x2633c1['be']['getPluralForm']=_0x3151c4;})(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':_0x1c40bd=>0x1!=_0x1c40bd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xfdb3ee=>{const {bg:{dictionary:_0x3cddd8,getPluralForm:_0x29651b}}={'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':_0x50a0c8=>0x1!=_0x50a0c8}};_0xfdb3ee['bg']||={'dictionary':{},'getPluralForm':null},_0xfdb3ee['bg']['dictionary']=Object['assign'](_0xfdb3ee['bg']['dictionary'],_0x3cddd8),_0xfdb3ee['bg']['getPluralForm']=_0x29651b;})(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':_0x340631=>0x1!=_0x340631}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4cc545=>{const {bn:{dictionary:_0x29bee4,getPluralForm:_0x5b81c4}}={'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':_0x15e335=>0x1!=_0x15e335}};_0x4cc545['bn']||={'dictionary':{},'getPluralForm':null},_0x4cc545['bn']['dictionary']=Object['assign'](_0x4cc545['bn']['dictionary'],_0x29bee4),_0x4cc545['bn']['getPluralForm']=_0x5b81c4;})(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':_0x5c2fcd=>_0x5c2fcd%0xa==0x1&&_0x5c2fcd%0x64!=0xb?0x0:_0x5c2fcd%0xa>=0x2&&_0x5c2fcd%0xa<=0x4&&(_0x5c2fcd%0x64<0xa||_0x5c2fcd%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5a05d3=>{const {bs:{dictionary:_0x5d8a6e,getPluralForm:_0x26866d}}={'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':_0x11405a=>_0x11405a%0xa==0x1&&_0x11405a%0x64!=0xb?0x0:_0x11405a%0xa>=0x2&&_0x11405a%0xa<=0x4&&(_0x11405a%0x64<0xa||_0x11405a%0x64>=0x14)?0x1:0x2}};_0x5a05d3['bs']||={'dictionary':{},'getPluralForm':null},_0x5a05d3['bs']['dictionary']=Object['assign'](_0x5a05d3['bs']['dictionary'],_0x5d8a6e),_0x5a05d3['bs']['getPluralForm']=_0x26866d;})(window['CKEDITOR_TRANSLATIONS']||={});
|