@ckeditor/ckeditor5-uploadcare 45.1.0-alpha.6 → 45.1.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 _0x117fa5,Command as _0x12d838}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x217724,IconGooglePhotos as _0x26d391,IconGoogleDrive as _0x13fee4,IconFacebook as _0x46d64c,IconDropbox as _0x1d0f4d,IconUploadcareLink as _0x427e7f,IconUploadcareImageUpload as _0x106cab,IconError as et,IconUploadcareImageEdit as _0x55399e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x21406a,MenuBarMenuListItemButtonView as _0x52aa5d,View as _0x24f1ad,FocusCycler as _0x863731,Dialog as _0x206ecb,DialogViewPosition as _0x307bf2,SpinnerView as _0x3a23a4,IconView as at,Notification as _0x3b7af7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x59114b,DomEmitterMixin as _0x9a43ab,global as _0xe595b2,getAncestors as _0x2e216b,ObservableMixin as _0x1e4fd3,createElement as _0x4dcd38,uid as _0x3d17f6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x22380d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x398bf4,info as _0x152ced}from'@uploadcare/upload-client';import*as _0x44a155 from'@uploadcare/file-uploader';var o=function(_0x71eac3){return _0x71eac3['Local']='local',_0x71eac3['URL']='url',_0x71eac3['Dropbox']='dropbox',_0x71eac3['GDrive']='gdrive',_0x71eac3['Facebook']='facebook',_0x71eac3['GPhotos']='gphotos',_0x71eac3['OneDrive']='onedrive',_0x71eac3;}({});function _(_0x3ec759,_0x21500f,_0x64a327){const t=_0x3ec759['t'],_0x25d93d=_0x3ec759['t'];switch(_0x21500f){case o['Local']:return{'text':_0x25d93d('Insert'===_0x64a327?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x25d93d('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x64a327?_0x25d93d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x25d93d('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x21500f;}}class e extends _0x117fa5{['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 _0x4729b2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x248450;for(const _0x4a9df0 in _0x4729b2){const _0x32dcfa=_0x4a9df0,_0x20719d=_0x4729b2[_0x32dcfa];if('uploadcareLicenseKeyValid'==_0x20719d||'uploadcareLicenseKeyInvalid'==_0x20719d||'uploadcareLicenseKeyExpired'==_0x20719d||'uploadcareLicenseKeyDomainLimit'==_0x20719d||'uploadcareLicenseKeyNotAllowed'==_0x20719d||'uploadcareLicenseKeyEvaluationLimit'==_0x20719d||'uploadcareLicenseKeyTrialLimit'==_0x20719d||'uploadcareLicenseKeyUsageLimit'==_0x20719d){delete _0x4729b2[_0x32dcfa],_0x248450=_0x20719d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x248450&&_0x4729b2['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x248450&&_0x4729b2['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x248450&&_0x4729b2['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x248450&&_0x4729b2['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x248450&&_0x4729b2['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x248450&&_0x4729b2['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x248450&&_0x4729b2['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x49c443}=this,_0x47c618=_0x49c443['commands']['get']('uploadcare');if(!_0x47c618)return;const _0x55dab1=this['_normalizeConfigSourceList'](_0x49c443['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x28b4b1,_0x2e53ef)=>{const _0x50b116=this['_getIntegrationKey'](_0x2e53ef['type']);return _0x28b4b1[_0x50b116]||(_0x28b4b1[_0x50b116]=[]),_0x28b4b1[_0x50b116]['push'](_0x2e53ef),_0x28b4b1;},{});_0x49c443['plugins']['has']('ImageInsertUI')&&_0x49c443['commands']['get']('uploadcare')&&Object['entries'](_0x55dab1)['forEach'](([_0x1c0aa8,_0x18c2e8])=>{_0x49c443['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1c0aa8,'observable':()=>_0x47c618,'buttonViewCreator':()=>this['_createToolbarButton'](_0x18c2e8),'formViewCreator':()=>this['_createDropdownButtons'](_0x18c2e8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x18c2e8),'override':'assetManager'!==_0x1c0aa8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4fd13d){const {locale:_0x2c90a5}=this['editor'];return _0x4fd13d['map'](_0x1236fd=>{const _0xe3c3ad=_(_0x2c90a5,_0x1236fd,'Insert');switch(_0x1236fd){case o['Local']:return{'icon':_0x106cab,'type':o['Local'],..._0xe3c3ad};case o['URL']:return{'icon':_0x427e7f,'type':o['URL'],..._0xe3c3ad};case o['Dropbox']:return{'icon':_0x1d0f4d,'type':o['Dropbox'],..._0xe3c3ad};case o['Facebook']:return{'icon':_0x46d64c,'type':o['Facebook'],..._0xe3c3ad};case o['GDrive']:return{'icon':_0x13fee4,'type':o['GDrive'],..._0xe3c3ad};case o['GPhotos']:return{'icon':_0x26d391,'type':o['GPhotos'],..._0xe3c3ad};case o['OneDrive']:return{'icon':_0x217724,'type':o['OneDrive'],..._0xe3c3ad};}});}['_getIntegrationKey'](_0x4b9c6f){switch(_0x4b9c6f){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4bcb2c,_0x310c68){const _0x1b2277=this['editor'],_0x216038=new _0x4bcb2c(_0x1b2277['locale']),_0x5e8035=_0x1b2277['commands']['get']('uploadcare');return _0x216038['bind']('isEnabled')['to'](_0x5e8035),_0x216038['on']('execute',()=>{_0x5e8035['execute'](_0x310c68);}),_0x216038;}['_createToolbarButton'](_0x308fa0){const {locale:_0x1f55ff}=this['editor'],_0x44cbf4=this['editor']['plugins']['get']('ImageInsertUI'),_0x4d29eb=_0x308fa0[0x0],_0x28e09f=this['_createButton'](_0x21406a,_0x4d29eb['type']);return _0x28e09f['icon']=_0x4d29eb['icon'],_0x28e09f['bind']('label')['to'](_0x44cbf4,'isImageSelected',_0x166c7d=>_(_0x1f55ff,_0x4d29eb['type'],_0x166c7d?'Replace':'Insert')['text']),_0x28e09f['tooltip']=!0x0,_0x28e09f;}['_createDropdownButtons'](_0x152cbf){const {locale:_0x2af7d9}=this['editor'],_0x317cf1=this['editor']['plugins']['get']('ImageInsertUI');return _0x152cbf['map'](_0x595126=>{const _0x169531=this['_createButton'](_0x21406a,_0x595126['type']);return _0x169531['withText']=!0x0,_0x169531['icon']=_0x595126['icon'],_0x169531['bind']('label')['to'](_0x317cf1,'isImageSelected',_0x4a6987=>_(_0x2af7d9,_0x595126['type'],_0x4a6987?'Replace':'Insert')['text']),_0x169531;});}['_createMenuBarButtons'](_0x5e9c5a){return _0x5e9c5a['map'](_0x228882=>{const _0x43493f=this['_createButton'](_0x52aa5d,_0x228882['type']);return _0x43493f['icon']=_0x228882['icon'],_0x43493f['label']=_0x228882['shortText'],_0x43493f;});}}class q extends _0x24f1ad{['focusTracker'];['focusCycler'];constructor(_0x304698){super(_0x304698),this['focusTracker']=new _0x59114b(),this['focusCycler']=new _0x863731({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x117eeb){super(_0x117eeb),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x551648,_0x5260fa){const _0x2d1700=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x222ec8=>_0x222ec8<=_0x5260fa)['map'](_0x125e86=>_0x551648['replace'](/\/$/,'')+'/-/resize/'+_0x125e86+'x/\x20'+_0x125e86+'w');return{'imageFallbackUrl':_0x551648,'imageSources':[{'srcset':_0x2d1700['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5260fa+'px)\x20100vw,\x20'+_0x5260fa+'px','type':'image/webp'}]};}function A(_0x4b02e5,_0x33bb3e,_0x52e136){const _0x221ff3=_0x4b02e5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x221ff3?parseInt(_0x221ff3[0x1],0xa):_0x33bb3e,'height':_0x221ff3?parseInt(_0x221ff3[0x2],0xa):_0x52e136};}function m(_0xc5e338,_0x43a2d4){const _0x33edaa=Object['create'](_0x9a43ab),_0x4bfbb5=_0xc5e338['plugins']['get']('ImageUtils'),_0x160ceb=_0xc5e338['editing']['mapper']['toViewElement'](_0x43a2d4),_0x594caf=_0x4bfbb5['findViewImgElement'](_0x160ceb),_0x28b7fa=_0xc5e338['editing']['view']['domConverter']['viewToDom'](_0x594caf),_0xd5073a=_0x43a2d4['getAttribute']('width'),_0x1dcbf0=_0x43a2d4['getAttribute']('height'),_0x41ef2f='image-processing';_0xc5e338['editing']['view']['change'](_0x467b9b=>{_0x467b9b['addClass'](_0x41ef2f,_0x160ceb),_0x467b9b['setStyle']('aspect-ratio',_0xd5073a+'/'+_0x1dcbf0,_0x594caf);}),_0x33edaa['listenTo'](_0x28b7fa,'load',()=>{_0x33edaa['stopListening'](_0x28b7fa,'load'),_0xc5e338['editing']['view']['change'](_0x576958=>{_0x576958['removeClass'](_0x41ef2f,_0x160ceb),_0x576958['removeStyle']('aspect-ratio',_0x594caf);});});}function V(_0x4bf351){if(Array['isArray'](_0x4bf351)){const _0x20824f=_0x4bf351['map'](V);return _0x1e5f82=>_0x20824f['some'](_0x3ded95=>_0x3ded95(_0x1e5f82));}if('origin'==_0x4bf351){const _0x12c6e4=_0xe595b2['window']['location']['origin'];return _0x263201=>new URL(_0x263201,_0xe595b2['document']['baseURI'])['origin']==_0x12c6e4;}return'function'==typeof _0x4bf351?_0x4bf351:_0x4bf351 instanceof RegExp?_0x55f50e=>!(!_0x55f50e['match'](_0x4bf351)&&!_0x55f50e['replace'](/^https?:\/\//,'')['match'](_0x4bf351)):()=>!0x1;}function F(_0x5aceba,_0x21ff71){return _0x2e216b(_0x5aceba['target'])['includes'](_0x21ff71);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x1e4fd3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x381c75,_0x4bc0b7,_0x4658c2){super(),this['_editor']=_0x381c75,this['_editing']=_0x4bc0b7,this['_dialog']=_0x381c75['plugins']['get'](_0x206ecb),this['_api']=_0x4bc0b7['ctxElement']['getAPI'](),this['_type']=_0x4658c2,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:_0x495d39,model:_0x5703c4}=this['_editor'],_0x594d1c=_0x5703c4['document']['selection']['getSelectedElement'](),_0x490470=_0x594d1c&&(_0x594d1c['is']('element','imageBlock')||_0x594d1c['is']('element','imageInline'));this['_formView']=new S(_0x495d39),this['_dialog']['show']({'id':'uploadCare','icon':_0x106cab,'title':_(_0x495d39,this['_type'],_0x490470?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x307bf2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1dd6a8=>!F(_0x1dd6a8,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4bc7ee}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xd8af2e=>{const _0x4e2226=_0x4bc7ee['length'];for(const _0x3b7f79 of _0x4bc7ee){const _0x307400=_0x3b7f79===_0x4bc7ee[_0x4e2226-0x1],{cdnUrl:_0x17ff72,fileInfo:_0x5f55e1}=_0x3b7f79;if(!_0x17ff72||!_0x5f55e1)continue;const {width:_0x3574d3,height:_0x345341}=_0x5f55e1['imageInfo'],_0x49b970=A(_0x17ff72,_0x3574d3,_0x345341),_0x18bd10=E(_0x17ff72,_0x49b970['width']),_0x4176f5={'id':_0x5f55e1['uuid'],'type':'image','attributes':{'imageDimension':_0x49b970,..._0x18bd10}};this['_insertAsset'](_0x4176f5,_0x307400,_0xd8af2e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4a87fe=>{'idle'===_0x4a87fe['detail']['status']&&!_0x4a87fe['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4fdc6c,_0x58a777,_0x31420c){const _0x4ce178=this['_editor']['model']['document']['selection'],_0x164dde=_0x4ce178['getSelectedElement'](),_0x3aa5d3=!(!_0x164dde||!_0x164dde['is']('element','imageInline'));_0x31420c['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4fdc6c,_0x3aa5d3),_0x58a777||_0x31420c['setSelection'](_0x4ce178['getLastPosition']());}['_insertImage'](_0x5cf69d,_0x3414e3){const _0x11e64a=this['_editor'],{imageDimension:_0x556a7b,imageFallbackUrl:_0x6c6785,imageSources:_0x174436}=_0x5cf69d['attributes'];_0x11e64a['execute']('insertImage',{'imageType':_0x3414e3?'imageInline':null,'source':{'uploadcareImageId':_0x5cf69d['id'],'src':_0x6c6785,'sources':_0x174436,..._0x556a7b}});}}class n extends _0x12d838{['_editing'];['_controller']=null;static get['requires'](){return[_0x206ecb,i];}constructor(_0x70c129){super(_0x70c129),this['_editing']=_0x70c129['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x20eb9d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x20eb9d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x4b8dc4,publicKey:_0x57ccdf,signal:_0x5503e0,onProgress:_0x108595}){return _0x398bf4(_0x4b8dc4,{'publicKey':_0x57ccdf,'store':'auto','signal':_0x5503e0,'onProgress':_0x108595});}static['getInfo'](_0x58a758,_0xa41bac){return _0x152ced(_0x58a758,_0xa41bac);}}class p extends _0x117fa5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x22380d,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x55e0e3=this['editor'];if(!!!_0x55e0e3['config']['get']('uploadcare'))return;_0x55e0e3['plugins']['get'](_0x22380d)['createUploadAdapter']=_0x3cbf7b=>new x(_0x3cbf7b,_0x55e0e3),_0x55e0e3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x33501e,{imageElement:_0x444b8b,data:_0x263af6})=>{_0x55e0e3['model']['change'](_0x590c07=>{_0x590c07['setAttribute']('uploadcareImageId',_0x263af6['uploadcareImageId'],_0x444b8b);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2b8d22,_0x5e26d7){this['loader']=_0x2b8d22,this['editor']=_0x5e26d7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1ddaeb=this['editor']['config']['get']('uploadcare.pubkey'),_0xb428a8=await this['loader']['file'];return C['upload']({'file':_0xb428a8,'publicKey':_0x1ddaeb,'signal':this['controller']['signal'],'onProgress':_0x1ca407=>{_0x1ca407&&_0x1ca407['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1ca407['value']);}})['then'](async _0xc38b82=>{const {imageFallbackUrl:_0x1e6c7d,imageSources:_0x5a7e05}=E(_0xc38b82['cdnUrl'],_0xc38b82['imageInfo']['width']);return{'uploadcareImageId':_0xc38b82['uuid'],'default':_0x1e6c7d,'sources':_0x5a7e05};})['catch'](()=>{const _0x44730a=t('Cannot\x20upload\x20file:')+('\x20'+_0xb428a8['name']+'.');return Promise['reject'](_0x44730a);});}['abort'](){this['controller']['abort']();}}class i extends _0x117fa5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x206ecb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0xaff91=this['editor'];_0xaff91['commands']['add']('uploadcare',new n(_0xaff91));}['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 _0x468948=_0xe595b2['document']['querySelector']('input[uploadcare-file-input]');_0x468948&&_0x468948['remove']();}),async function(_0x1daa09){const _0x2c5383=_0x3d284d([0x76,0x67,0x38,0x78,0x49,0x53,0x31,0x66,0x55,0x4a,0x46,0x30,0x33,0x59,0x44,0x7a,0x5a,0x50,0x62,0x6f,0x56,0x54,0x39,0x51,0x32,0x41,0x64,0x70,0x79,0x72,0x43,0x74,0x58,0x57,0x73,0x77,0x63,0x65,0x4b,0x4c,0x42,0x61,0x6a,0x45,0x6d,0x71,0x4d,0x48,0x6b,0x37,0x35,0x69,0x52,0x6e,0x68,0x36,0x34,0x75,0x6c,0x4e,0x47,0x4f]),_0x376c4e=0x63ed6952,_0x139850=0x63ea0eea^_0x376c4e,_0x44a8cb=window[_0x3d284d([0x44,0x61,0x74,0x65])][_0x3d284d([0x6e,0x6f,0x77])](),_0x185372=_0x1daa09[_0x3d284d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd7812a=new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25c39b=>{_0x185372[_0x3d284d([0x6f,0x6e,0x63,0x65])](_0x3d284d([0x72,0x65,0x61,0x64,0x79]),_0x25c39b);}),_0x47a2b1={[_0x3d284d([0x6b,0x74,0x79])]:_0x3d284d([0x45,0x43]),[_0x3d284d([0x75,0x73,0x65])]:_0x3d284d([0x73,0x69,0x67]),[_0x3d284d([0x63,0x72,0x76])]:_0x3d284d([0x50,0x2d,0x32,0x35,0x36]),[_0x3d284d([0x78])]:_0x3d284d([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]),[_0x3d284d([0x79])]:_0x3d284d([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]),[_0x3d284d([0x61,0x6c,0x67])]:_0x3d284d([0x45,0x53,0x32,0x35,0x36])},_0x590234=_0x185372[_0x3d284d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d284d([0x67,0x65,0x74])](_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4dcb07(){let _0x3fa655,_0x57c143=null,_0x25cb96=null;try{if(_0x590234==_0x3d284d([0x47,0x50,0x4c]))return _0x3d284d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3fa655=_0x5c1e7e(),!_0x3fa655)return _0x3d284d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3fa655[_0x3d284d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x25cb96=_0x272ee9(_0x3fa655[_0x3d284d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3fa655[_0x3d284d([0x6a,0x74,0x69])])),await _0xe4ccf9()?_0x1161cf()?_0x31b77e()?_0x3d284d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x8625c1()?(_0x3fa655[_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d284d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57c143=_0xec1b62(_0x3d284d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3fa655[_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d284d([0x74,0x72,0x69,0x61,0x6c])&&(_0x57c143=_0xec1b62(_0x3d284d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a5cc8()):_0x3d284d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d284d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d284d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x144c22){return _0x3d284d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31b77e(){const _0x39ccc1=[_0x3d284d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d284d([0x74,0x72,0x69,0x61,0x6c])][_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fa655[_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44a8cb/0x3e8:0xe10*_0x139850;return _0x3fa655[_0x3d284d([0x65,0x78,0x70])]<_0x39ccc1;}function _0x1161cf(){const _0x54b826=_0x3fa655[_0x3d284d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x54b826&&(!!_0x54b826[_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d284d([0x2a]))||!!_0x54b826[_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d284d([0x55,0x50,0x4c,0x43])));}function _0x8625c1(){const _0x1fd368=_0x3fa655[_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1fd368||0x0==_0x1fd368[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17c15b}=new URL(window[_0x3d284d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1fd368[_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17c15b))return!0x0;const _0x4652c1=_0x17c15b[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])](_0x3d284d([0x2e]));return _0x1fd368[_0x3d284d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15945d=>_0x15945d[_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d284d([0x2a])))[_0x3d284d([0x6d,0x61,0x70])](_0x360c1c=>_0x360c1c[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])](_0x3d284d([0x2e])))[_0x3d284d([0x73,0x6f,0x6d,0x65])](_0x2c724a=>_0x4652c1[_0x3d284d([0x65,0x76,0x65,0x72,0x79])]((_0x27d3aa,_0x51073e)=>_0x2c724a[_0x51073e]===_0x27d3aa||_0x2c724a[_0x51073e]===_0x3d284d([0x2a])));}function _0x4a5cc8(){return _0x57c143&&_0x25cb96?new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x146e19,_0x4fb3ee)=>{_0x57c143[_0x3d284d([0x74,0x68,0x65,0x6e])](_0x146e19,_0x4fb3ee),_0x25cb96[_0x3d284d([0x74,0x68,0x65,0x6e])](_0x4a8f7f=>{_0x4a8f7f!=_0x3d284d([0x56,0x61,0x6c,0x69,0x64])&&_0x146e19(_0x4a8f7f);},_0x4fb3ee);}):_0x57c143||_0x25cb96||_0x3d284d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x272ee9(_0x1e0af3,_0x5a8ab7){return new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc4edd3=>{if(_0x136dce())return _0xc4edd3(_0x3d284d([0x56,0x61,0x6c,0x69,0x64]));_0x3932b8(),_0x185372[_0x3d284d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d284d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x160368=!0x1;const _0x3c89d4=_0x3d17f6();function _0x31648c(_0x5acbc3){return!!_0x5acbc3&&(typeof _0x5acbc3===_0x3d284d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5acbc3===_0x3d284d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5acbc3[_0x3d284d([0x74,0x68,0x65,0x6e])]===_0x3d284d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5acbc3[_0x3d284d([0x63,0x61,0x74,0x63,0x68])]===_0x3d284d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c7d8d(_0x208158){_0x1d136d(_0x208158)[_0x3d284d([0x74,0x68,0x65,0x6e])](_0x4094e8=>{if(!_0x4094e8||_0x4094e8[_0x3d284d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d284d([0x6f,0x6b]))return _0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a9c29(_0x3208be(_0x3c89d4+_0x5a8ab7))!=_0x4094e8[_0x3d284d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d284d([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d284d([0x74,0x68,0x65,0x6e])](_0x224b71=>(_0x25de8f(),_0x224b71),()=>{const _0x557ae2=_0x486ceb();return null==_0x557ae2?(_0x25de8f(),_0x3d284d([0x56,0x61,0x6c,0x69,0x64])):_0x3d284d(_0x44a8cb-_0x557ae2>(0x47e1ed52^_0x376c4e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d284d([0x74,0x68,0x65,0x6e])](_0xc4edd3)[_0x3d284d([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc4edd3(_0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6ac092=0x63db87d2^_0x376c4e;function _0x25de8f(){const _0x2d365b=_0x3d284d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a9c29(_0x3208be(_0x1e0af3)),_0x523509=_0x2f992b(_0x3a9c29(window[_0x3d284d([0x4d,0x61,0x74,0x68])][_0x3d284d([0x63,0x65,0x69,0x6c])](_0x44a8cb/_0x6ac092)));window[_0x3d284d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d284d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d365b,_0x523509);}function _0x486ceb(){const _0x3967d2=_0x3d284d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a9c29(_0x3208be(_0x1e0af3)),_0x3808bf=window[_0x3d284d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d284d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3967d2);return _0x3808bf?window[_0x3d284d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f992b(_0x3808bf),0x10)*_0x6ac092:null;}function _0x1d136d(_0x1b95e6){return new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc75395,_0x24b9b1)=>{_0x1b95e6[_0x3d284d([0x74,0x68,0x65,0x6e])](_0xc75395,_0x24b9b1),window[_0x3d284d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24b9b1,0x63ecbd92^_0x376c4e);});}}_0x185372[_0x3d284d([0x6f,0x6e])](_0x3d284d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4b407e,_0xd6c7dd)=>{if(_0xd6c7dd[0x0]!=_0x1e0af3)return _0xc4edd3(_0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd6c7dd[0x1]={..._0xd6c7dd[0x1],[_0x3d284d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3c89d4};},{[_0x3d284d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d284d([0x68,0x69,0x67,0x68])}),_0x185372[_0x3d284d([0x6f,0x6e])](_0x3d284d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ad1c5=>{_0x31648c(_0x2ad1c5[_0x3d284d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x160368=!0x0,_0x1c7d8d(_0x2ad1c5[_0x3d284d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d284d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d284d([0x6c,0x6f,0x77])}),_0xd7812a[_0x3d284d([0x74,0x68,0x65,0x6e])](()=>{_0x160368||_0xc4edd3(_0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x136dce(){return _0x185372[_0x3d284d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d284d([0x76,0x69,0x65,0x77])][_0x3d284d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d284d([0x61,0x75,0x74,0x6f]);}function _0x3932b8(){_0x185372[_0x3d284d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d284d([0x76,0x69,0x65,0x77])][_0x3d284d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d284d([0x61,0x75,0x74,0x6f]);}}function _0xec1b62(_0x218336){const _0x56b55a=[new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x71fefa=>setTimeout(_0x71fefa,0x63e4579e^_0x376c4e)),_0xd7812a[_0x3d284d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x123c9a=>{let _0x31bd6b=0x0;_0x185372[_0x3d284d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d284d([0x6f,0x6e])](_0x3d284d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x569dad,_0x2e3b4c)=>{_0x2e3b4c[0x0][_0x3d284d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x31bd6b++,_0x31bd6b==(0x63ed68aa^_0x376c4e)&&(_0x123c9a(),_0x569dad[_0x3d284d([0x6f,0x66,0x66])]());});}))];return window[_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d284d([0x72,0x61,0x63,0x65])](_0x56b55a)[_0x3d284d([0x74,0x68,0x65,0x6e])](()=>_0x218336);}async function _0x154ee3(){await _0xd7812a,_0x185372[_0x3d284d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d284d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50d4fa,_0x185372[_0x3d284d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d284d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50d4fa,_0x185372[_0x3d284d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d284d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x54dfff(_0x5429f6){const _0x1bd2f3=_0x4b7ed5();_0x185372[_0x1bd2f3]=_0x3d284d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5429f6,_0x5429f6!=_0x3d284d([0x56,0x61,0x6c,0x69,0x64])&&_0x154ee3();}function _0x4b7ed5(){const _0x271091=window[_0x3d284d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d284d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d284d([0x6e,0x6f,0x77])]())[_0x3d284d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d284d([0x2e]),'');let _0x353bf3=_0x3d284d([0x76]);for(let _0x5419dd=0x0;_0x5419dd<_0x271091[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5419dd+=0x2){let _0x45ff61=window[_0x3d284d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x271091[_0x3d284d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5419dd,_0x5419dd+0x2));_0x45ff61>=_0x2c5383[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45ff61-=_0x2c5383[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x353bf3+=_0x2c5383[_0x45ff61];}return _0x353bf3;}function _0x5c1e7e(){const _0x1f396e=_0x590234[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])](_0x3d284d([0x2e]));if(0x3!=_0x1f396e[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1979ea(_0x1f396e[0x1]);function _0x1979ea(_0x581736){const _0x54417f=_0x48338a(_0x581736);return _0x54417f&&_0x12799a()?_0x54417f:null;function _0x12799a(){const _0x373c61=_0x54417f[_0x3d284d([0x6a,0x74,0x69])],_0x1e3b32=window[_0x3d284d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x373c61[_0x3d284d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x373c61[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a62bb={..._0x54417f,[_0x3d284d([0x6a,0x74,0x69])]:_0x373c61[_0x3d284d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x373c61[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a62bb[_0x3d284d([0x76,0x63])],_0x3208be(_0x1a62bb)==_0x1e3b32;}}}async function _0xe4ccf9(){let _0x2f6345=!0x0;try{const _0x4fbc8=_0x590234[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])](_0x3d284d([0x2e])),[_0x2ced20,_0x293947,_0x21b431]=_0x4fbc8;return _0x28af2b(_0x2ced20),await _0x20b237(_0x2ced20,_0x293947,_0x21b431),_0x2f6345;}catch(_0x4f0168){return!0x1;}function _0x28af2b(_0x3a592e){const _0x3fe577=_0x48338a(_0x3a592e);_0x3fe577&&_0x3fe577[_0x3d284d([0x61,0x6c,0x67])]==_0x3d284d([0x45,0x53,0x32,0x35,0x36])||(_0x2f6345=!0x1);}async function _0x20b237(_0x1e01a9,_0x2a882a,_0x15314e){const _0x25f45a=window[_0x3d284d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d284d([0x66,0x72,0x6f,0x6d])](_0x225aeb(_0x15314e),_0x241f09=>_0x241f09[_0x3d284d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10f21a=new window[(_0x3d284d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d284d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e01a9+_0x3d284d([0x2e])+_0x2a882a),_0x2f4182=window[_0x3d284d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d284d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2f4182)return;const _0x3dae2e=await _0x2f4182[_0x3d284d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d284d([0x6a,0x77,0x6b]),_0x47a2b1,{[_0x3d284d([0x6e,0x61,0x6d,0x65])]:_0x3d284d([0x45,0x43,0x44,0x53,0x41]),[_0x3d284d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d284d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d284d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2f4182[_0x3d284d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d284d([0x6e,0x61,0x6d,0x65])]:_0x3d284d([0x45,0x43,0x44,0x53,0x41]),[_0x3d284d([0x68,0x61,0x73,0x68])]:{[_0x3d284d([0x6e,0x61,0x6d,0x65])]:_0x3d284d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3dae2e,_0x25f45a,_0x10f21a)||(_0x2f6345=!0x1);}}function _0x48338a(_0x32740c){return _0x32740c[_0x3d284d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d284d([0x65,0x79]))?JSON[_0x3d284d([0x70,0x61,0x72,0x73,0x65])](_0x225aeb(_0x32740c)):null;}function _0x225aeb(_0x1c1990){return window[_0x3d284d([0x61,0x74,0x6f,0x62])](_0x1c1990[_0x3d284d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d284d([0x2b]))[_0x3d284d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d284d([0x2f])));}function _0x3208be(_0x494d74){let _0x2f7da1=0x1505;function _0x2e00bb(_0x23b98d){for(let _0x28e840=0x0;_0x28e840<_0x23b98d[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28e840++){const _0x6e81aa=_0x23b98d[_0x3d284d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x28e840);_0x2f7da1=(_0x2f7da1<<0x5)+_0x2f7da1+_0x6e81aa,_0x2f7da1&=_0x2f7da1;}}function _0x43e304(_0x391acb){Array[_0x3d284d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x391acb)?_0x391acb[_0x3d284d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43e304):_0x391acb&&typeof _0x391acb==_0x3d284d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d284d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x391acb)[_0x3d284d([0x73,0x6f,0x72,0x74])]()[_0x3d284d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37bfde,_0x46450d])=>{_0x2e00bb(_0x37bfde),_0x43e304(_0x46450d);}):_0x2e00bb(window[_0x3d284d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x391acb));}return _0x43e304(_0x494d74),_0x2f7da1>>>0x0;}function _0x3a9c29(_0x9e7fa9){return _0x9e7fa9[_0x3d284d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d284d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d284d([0x30]));}function _0x2f992b(_0x275084){return _0x275084[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d284d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d284d([0x6a,0x6f,0x69,0x6e])]('');}function _0x50d4fa(){}function _0x3d284d(_0x1d8cb5){return _0x1d8cb5['map'](_0x7b2189=>String['fromCharCode'](_0x7b2189))['join']('');}_0x54dfff(await _0x4dcb07());}(this);}['_initSchema'](){const _0x47ddb2=this['editor']['model']['schema'];_0x47ddb2['isRegistered']('imageBlock')&&_0x47ddb2['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x47ddb2['isRegistered']('imageInline')&&_0x47ddb2['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2d921f=this['editor'];_0x2d921f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2d921f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4a3cd3=>_0x4a3cd3['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3aee99=_0x2d921f['commands']['get']('replaceImageSource');_0x3aee99&&this['listenTo'](_0x3aee99,'cleanupImage',(_0x145dd0,[_0x4bfa61,_0x1478d8])=>{_0x4bfa61['removeAttribute']('uploadcareImageId',_0x1478d8);});}['_initConfig'](){const _0x2aa769=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3555d0=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4dcd38(_0xe595b2['document'],'uc-config',{..._0x2aa769,'pubkey':_0x3555d0,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x332c7d=>{if('closeMax'==_0x332c7d)return'#uc-icon-arrow-down';},_0xe595b2['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4dcd38(_0xe595b2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xe595b2['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x49eecd=this['editor']['commands']['get']('insertImage');_0x49eecd&&this['listenTo'](_0x49eecd,'execute',()=>{const _0xa28c56=this['editor']['model']['document']['selection']['getSelectedElement']();_0xa28c56&&_0xa28c56['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xa28c56);});});const _0x491489=this['editor']['commands']['get']('uploadcareImageReplace');_0x491489&&this['listenTo'](_0x491489,'execute',()=>{const _0x41270e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x41270e&&_0x41270e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x41270e);});});}}class u extends _0x117fa5{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4825ed){super(_0x4825ed),_0x4825ed['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x44a155['defineComponents'](_0x44a155);}}class ta extends _0x24f1ad{constructor(_0x3afbc6){super(_0x3afbc6);const t=_0x3afbc6['t'],_0x21d0f3=this['bindTemplate'],_0xd1104e=new _0x3a23a4();_0xd1104e['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':[_0xd1104e,{'text':_0x21d0f3['to']('imageUploadProgress',_0x4998aa=>t('Loading\x20image...')+'\x20('+(_0x4998aa||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x24f1ad{constructor(_0x435e2d){super(_0x435e2d);const t=_0x435e2d['t'];this['set']('errorType',null);const _0x38ad3c=new _0x21406a(_0x435e2d);_0x38ad3c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x38ad3c['withText']=!0x0,_0x38ad3c['class']='ck-button-action',_0x38ad3c['on']('execute',()=>{this['fire']('retry');}),_0x38ad3c['bind']('isVisible')['to'](this,'errorType',_0x59677c=>'NotFound'!==_0x59677c);const _0x51344a=new at();_0x51344a['content']=et,_0x51344a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xe1e2e8=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':[_0x51344a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xe1e2e8['to']('errorType',_0x18484e=>t('NotFound'!==_0x18484e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x38ad3c]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x24f1ad{constructor(_0x414ea9,_0x448f21){super(_0x414ea9);const _0x5c5531=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x448f21,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5c5531['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x922ac1,_0x1c204c,_0x44ba93){super(_0x922ac1),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x922ac1),this['_errorView']=new rt(_0x922ac1),this['_editingView']=new tt(_0x922ac1,_0x44ba93),this['_focusableView']=new _0x24f1ad(_0x922ac1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1c204c),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'],_0x2e8481=>{this['_addUploadcareImageEditorListeners'](_0x2e8481);});}),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'](_0x7a5740,_0x49902d){const _0x1e2611='uc-cloud-image-editor',_0x236482=_0x7a5740['querySelector'](_0x1e2611);if(_0x236482)return _0x49902d(_0x236482);const _0x448836=new MutationObserver(_0xead2f3=>{const _0x25838c=_0xead2f3['filter'](_0x5b0c61=>_0x5b0c61['target']===_0x7a5740&&_0x5b0c61['addedNodes']['length']>0x0&&_0x5b0c61['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1e2611);_0x25838c['length']&&(_0x448836['disconnect'](),_0x49902d(_0x25838c[0x0]['addedNodes'][0x0]));});_0x448836['observe'](_0x7a5740,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4c7a5b){_0x4c7a5b['addEventListener']('apply',_0x3e51ec=>{this['fire']('apply',{'imageSrc':_0x3e51ec['detail']['cdnUrl']});}),_0x4c7a5b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1e4fd3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x368e1b,_0x2f3978,_0x532efb){super(),this['_editor']=_0x368e1b,this['_dialog']=_0x2f3978,this['_imageElement']=_0x532efb,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 _0x4f5b5a=this['_imageElement'],_0x9fc235=_0x4f5b5a['getAttribute']('uploadcareImageId'),_0x5ca961=_0x4f5b5a['getAttribute']('src');if(_0x9fc235)await this['_loadImageInfo'](_0x9fc235,_0x5ca961);else{if(this['_imageCache']['has'](_0x5ca961)){const _0x488036=this['_imageCache']['get'](_0x5ca961);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x488036['url'],this['imageDimension']=_0x488036['dimension'],this['imageId']=_0x488036['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3d43e1}=this['_editor'],t=_0x3d43e1['t'],_0x4c0b1d=new Z(_0x3d43e1,this['imageStatus'],this['_attributes']);_0x4c0b1d['bind']('status')['to'](this,'imageStatus'),_0x4c0b1d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4c0b1d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4c0b1d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4c0b1d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x55399e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4c0b1d,'position':_0x307bf2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4c0b1d['focus']();},'onHide':()=>{_0x4c0b1d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xd7b030=>!F(_0xd7b030,_0x4c0b1d['element'])}});}['_loadImageInfo'](_0x2e3041,_0x1217ec){return C['getInfo'](_0x2e3041,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x6bef15=>{const {width:_0x11d4af,height:_0x13789}=_0x6bef15['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1217ec,this['imageDimension']={'width':_0x11d4af,'height':_0x13789},this['imageId']=_0x2e3041;})['catch'](_0x3ff682=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3ff682['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xcc0492,_0x4a6348){return this['_getImageAsFile'](_0xcc0492)['then'](_0x4dd415=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4a6348['signal'],'file':_0x4dd415,'onProgress':_0x356c86=>{_0x356c86&&_0x356c86['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x356c86['value']));}}))['then'](_0x345871=>{const {width:_0x49a22c,height:_0x4e5071}=_0x345871['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x345871['cdnUrl'],this['imageDimension']={'width':_0x49a22c,'height':_0x4e5071},this['imageId']=_0x345871['uuid'],this['imageUploadProgress']=null;const _0x1b1ea5=_0xcc0492['getAttribute']('src');this['_imageCache']['set'](_0x1b1ea5,{'id':_0x345871['uuid'],'url':_0x345871['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x71ce63=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x71ce63['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x28e726,_0x4543b8){_0x28e726['on']('apply',(_0x1ddbc6,_0x372935)=>{this['_replaceImage'](_0x4543b8,_0x372935['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x28e726['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x28e726['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1efa7e,_0x97d1e,_0x43d358){const _0x1707d0=this['_editor'],{width:_0x1b0a68,height:_0x4ae80a}=A(_0x97d1e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1c810a,imageSources:_0x437033}=E(_0x97d1e,_0x1b0a68);_0x1707d0['model']['change'](_0x3a66f7=>{if('$graveyard'===_0x1efa7e['root']['rootName']){_0x1707d0['execute']('insertImage',{'imageType':_0x1efa7e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1efa7e['getAttributes']()),'uploadcareImageId':_0x43d358,'src':_0x1c810a,'sources':_0x437033,'width':_0x1b0a68,'height':_0x4ae80a}});const _0x44a6c0=_0x1efa7e['getChildren']();_0x1efa7e=_0x1707d0['model']['document']['selection']['getSelectedElement']();for(const _0x58af08 of _0x44a6c0)_0x3a66f7['append'](_0x3a66f7['cloneElement'](_0x58af08),_0x1efa7e);}else _0x3a66f7['setSelection'](_0x1efa7e,'on'),_0x1707d0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1efa7e['getAttributes']()),'uploadcareImageId':_0x43d358,'src':_0x1c810a,'sources':_0x437033,'width':_0x1b0a68,'height':_0x4ae80a},_0x1efa7e);_0x3a66f7['setSelection'](_0x1efa7e,'on');});}async['_getImageAsFile'](_0x520e3c){const _0x176c3b=_0xe595b2['window'],_0x1e70f1=_0xe595b2['document']['location']['href'],_0x569ed2=new _0x176c3b['URL'](_0x520e3c['getAttribute']('src'),_0x1e70f1);if('data:'===_0x569ed2['protocol']){const _0x4123b6=_0x569ed2['href']['split'](','),_0x126ba9=_0x4123b6[0x0]['match'](/:(.*?);/)[0x1],_0x2876fa=_0x126ba9['split']('/')[0x1],_0x319909=_0x176c3b['atob'](_0x4123b6[_0x4123b6['length']-0x1]);let _0x47d749=_0x319909['length'];const _0x3498c4=new _0x176c3b['Uint8Array'](_0x47d749);for(;_0x47d749--;)_0x3498c4[_0x47d749]=_0x319909['charCodeAt'](_0x47d749);return new _0x176c3b['File']([_0x3498c4],'image.'+_0x2876fa,{'type':_0x126ba9});}const _0x348696=_0x569ed2['href']['split']('/'),_0x5c8c3a=_0x348696[_0x348696['length']-0x1],_0x418184=_0x5c8c3a['split']('.')[0x1];return _0x176c3b['fetch'](_0x569ed2['href'])['then'](_0x2627b1=>_0x2627b1['clone']()['blob']())['then'](_0x2bea48=>new _0x176c3b['File']([_0x2bea48],_0x5c8c3a,{'type':'image/'+_0x418184}));}}class J extends _0x12d838{['imageEditController'];static get['requires'](){return[_0x206ecb];}['_isEditable'];constructor(_0x52821f){super(_0x52821f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x30bbac){const _0x5bf1c5=V(_0x30bbac);return _0x5274ba=>!(!_0x5274ba||!_0x5274ba['is']('element','imageBlock')&&!_0x5274ba['is']('element','imageInline'))&&(!!_0x5274ba['hasAttribute']('uploadcareImageId')||!!_0x5274ba['hasAttribute']('src')&&_0x5bf1c5(_0x5274ba['getAttribute']('src')));}(_0x52821f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x16a201=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x16a201);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2d1011=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2d1011&&(_0x2d1011['is']('element','imageBlock')||_0x2d1011['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x206ecb),_0x2d1011),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x12d838{['refresh'](){const _0x37f934=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x37f934&&(_0x37f934['is']('element','imageBlock')||_0x37f934['is']('element','imageInline')));}['execute'](_0x48a1ff){const _0x1ecb80=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4d647c=>{_0x4d647c['setAttributes'](_0x48a1ff,_0x1ecb80),_0x4d647c['removeAttribute']('srcset',_0x1ecb80),_0x4d647c['removeAttribute']('sizes',_0x1ecb80);});}}class g extends _0x117fa5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3b7af7,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5cd953}=this;_0x5cd953['commands']['add']('uploadcareImageEdit',new J(_0x5cd953)),_0x5cd953['commands']['add']('uploadcareImageReplace',new O(_0x5cd953));}}class j extends _0x117fa5{['_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 _0x30cd47=this['editor'];_0x30cd47['ui']['componentFactory']['add']('uploadcareImageEdit',_0x31f11b=>{const _0x20b142=_0x30cd47['commands']['get']('uploadcareImageEdit'),_0x4c799d=new _0x21406a(_0x31f11b),t=_0x31f11b['t'];return _0x4c799d['set']({'icon':_0x55399e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4c799d['bind']('isEnabled')['to'](_0x20b142),_0x4c799d['bind']('isOn')['to'](_0x20b142,'isActive'),this['listenTo'](_0x4c799d,'execute',()=>{_0x30cd47['execute']('uploadcareImageEdit'),_0x30cd47['editing']['view']['focus']();}),_0x4c799d;}),this['_initConfig']();}['_initConfig'](){const _0x202622=_0x4dcd38(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x202622),this['listenTo'](this['editor'],'destroy',()=>{_0x202622['remove']();});}}class P extends _0x117fa5{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x3e48ea,Command as _0x43d01d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x336ebc,IconGooglePhotos as _0x25a1ba,IconGoogleDrive as _0x40c55d,IconFacebook as _0x347341,IconDropbox as _0x3149cf,IconUploadcareLink as _0x165e20,IconUploadcareImageUpload as _0x17f39d,IconError as et,IconUploadcareImageEdit as _0x4cc2aa}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3f144c,MenuBarMenuListItemButtonView as _0xd6328b,View as _0x44eedc,FocusCycler as _0x465e82,Dialog as _0x2cb0e6,DialogViewPosition as _0xf2301f,SpinnerView as _0x2b8303,IconView as at,Notification as _0x14595c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x344448,DomEmitterMixin as _0x5e4718,global as _0xd5087e,getAncestors as _0x1afce8,ObservableMixin as _0x242523,createElement as _0x371a27,uid as _0x13c5b0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x42d773}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5f4ea7,info as _0x297f25}from'@uploadcare/upload-client';import*as _0x13461c from'@uploadcare/file-uploader';var o=function(_0x2c393d){return _0x2c393d['Local']='local',_0x2c393d['URL']='url',_0x2c393d['Dropbox']='dropbox',_0x2c393d['GDrive']='gdrive',_0x2c393d['Facebook']='facebook',_0x2c393d['GPhotos']='gphotos',_0x2c393d['OneDrive']='onedrive',_0x2c393d;}({});function _(_0x3cbad6,_0x4c2547,_0x1ff0aa){const t=_0x3cbad6['t'],_0x1ceadf=_0x3cbad6['t'];switch(_0x4c2547){case o['Local']:return{'text':_0x1ceadf('Insert'===_0x1ff0aa?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1ceadf('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x1ff0aa?_0x1ceadf('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1ceadf('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x1ff0aa?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x1ff0aa?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x1ff0aa?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x1ff0aa?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x1ff0aa?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4c2547;}}class e extends _0x3e48ea{['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 _0x4003ba=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5b4a9e;for(const _0x2725e6 in _0x4003ba){const _0x3c1d5a=_0x2725e6,_0x1d881c=_0x4003ba[_0x3c1d5a];if('uploadcareLicenseKeyValid'==_0x1d881c||'uploadcareLicenseKeyInvalid'==_0x1d881c||'uploadcareLicenseKeyExpired'==_0x1d881c||'uploadcareLicenseKeyDomainLimit'==_0x1d881c||'uploadcareLicenseKeyNotAllowed'==_0x1d881c||'uploadcareLicenseKeyEvaluationLimit'==_0x1d881c||'uploadcareLicenseKeyTrialLimit'==_0x1d881c||'uploadcareLicenseKeyUsageLimit'==_0x1d881c){delete _0x4003ba[_0x3c1d5a],_0x5b4a9e=_0x1d881c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5b4a9e&&_0x4003ba['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5b4a9e&&_0x4003ba['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5b4a9e&&_0x4003ba['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5b4a9e&&_0x4003ba['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5b4a9e&&_0x4003ba['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5b4a9e&&_0x4003ba['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5b4a9e&&_0x4003ba['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4f7b70}=this,_0x13b8f8=_0x4f7b70['commands']['get']('uploadcare');if(!_0x13b8f8)return;const _0x58b46c=this['_normalizeConfigSourceList'](_0x4f7b70['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x54f7ed,_0x17b846)=>{const _0x1cec06=this['_getIntegrationKey'](_0x17b846['type']);return _0x54f7ed[_0x1cec06]||(_0x54f7ed[_0x1cec06]=[]),_0x54f7ed[_0x1cec06]['push'](_0x17b846),_0x54f7ed;},{});_0x4f7b70['plugins']['has']('ImageInsertUI')&&_0x4f7b70['commands']['get']('uploadcare')&&Object['entries'](_0x58b46c)['forEach'](([_0x4c700d,_0x4ec826])=>{_0x4f7b70['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4c700d,'observable':()=>_0x13b8f8,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4ec826),'formViewCreator':()=>this['_createDropdownButtons'](_0x4ec826),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4ec826),'override':'assetManager'!==_0x4c700d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x569b64){const {locale:_0x96ba40}=this['editor'];return _0x569b64['map'](_0x1874b6=>{const _0x40ca5b=_(_0x96ba40,_0x1874b6,'Insert');switch(_0x1874b6){case o['Local']:return{'icon':_0x17f39d,'type':o['Local'],..._0x40ca5b};case o['URL']:return{'icon':_0x165e20,'type':o['URL'],..._0x40ca5b};case o['Dropbox']:return{'icon':_0x3149cf,'type':o['Dropbox'],..._0x40ca5b};case o['Facebook']:return{'icon':_0x347341,'type':o['Facebook'],..._0x40ca5b};case o['GDrive']:return{'icon':_0x40c55d,'type':o['GDrive'],..._0x40ca5b};case o['GPhotos']:return{'icon':_0x25a1ba,'type':o['GPhotos'],..._0x40ca5b};case o['OneDrive']:return{'icon':_0x336ebc,'type':o['OneDrive'],..._0x40ca5b};}});}['_getIntegrationKey'](_0x31ee60){switch(_0x31ee60){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2880a6,_0x169a61){const _0x3cb59a=this['editor'],_0x28301e=new _0x2880a6(_0x3cb59a['locale']),_0x4d0597=_0x3cb59a['commands']['get']('uploadcare');return _0x28301e['bind']('isEnabled')['to'](_0x4d0597),_0x28301e['on']('execute',()=>{_0x4d0597['execute'](_0x169a61);}),_0x28301e;}['_createToolbarButton'](_0x240e0f){const {locale:_0x574512}=this['editor'],_0x367caa=this['editor']['plugins']['get']('ImageInsertUI'),_0x5474af=_0x240e0f[0x0],_0x2542a5=this['_createButton'](_0x3f144c,_0x5474af['type']);return _0x2542a5['icon']=_0x5474af['icon'],_0x2542a5['bind']('label')['to'](_0x367caa,'isImageSelected',_0x228af8=>_(_0x574512,_0x5474af['type'],_0x228af8?'Replace':'Insert')['text']),_0x2542a5['tooltip']=!0x0,_0x2542a5;}['_createDropdownButtons'](_0x293e64){const {locale:_0x493d9a}=this['editor'],_0x42a09e=this['editor']['plugins']['get']('ImageInsertUI');return _0x293e64['map'](_0x5e0bbe=>{const _0x64f617=this['_createButton'](_0x3f144c,_0x5e0bbe['type']);return _0x64f617['withText']=!0x0,_0x64f617['icon']=_0x5e0bbe['icon'],_0x64f617['bind']('label')['to'](_0x42a09e,'isImageSelected',_0x5101e2=>_(_0x493d9a,_0x5e0bbe['type'],_0x5101e2?'Replace':'Insert')['text']),_0x64f617;});}['_createMenuBarButtons'](_0x380d67){return _0x380d67['map'](_0x590071=>{const _0x30483b=this['_createButton'](_0xd6328b,_0x590071['type']);return _0x30483b['icon']=_0x590071['icon'],_0x30483b['label']=_0x590071['shortText'],_0x30483b;});}}class q extends _0x44eedc{['focusTracker'];['focusCycler'];constructor(_0x4d73dd){super(_0x4d73dd),this['focusTracker']=new _0x344448(),this['focusCycler']=new _0x465e82({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x3ed9f8){super(_0x3ed9f8),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x171a61,_0x2c7ca9){const _0x27877c=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4f98c5=>_0x4f98c5<=_0x2c7ca9)['map'](_0x129ded=>_0x171a61['replace'](/\/$/,'')+'/-/resize/'+_0x129ded+'x/\x20'+_0x129ded+'w');return{'imageFallbackUrl':_0x171a61,'imageSources':[{'srcset':_0x27877c['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2c7ca9+'px)\x20100vw,\x20'+_0x2c7ca9+'px','type':'image/webp'}]};}function A(_0x136953,_0xae233,_0x6674f1){const _0x74afdc=_0x136953['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x74afdc?parseInt(_0x74afdc[0x1],0xa):_0xae233,'height':_0x74afdc?parseInt(_0x74afdc[0x2],0xa):_0x6674f1};}function m(_0x3f0334,_0x105a8d){const _0x419277=Object['create'](_0x5e4718),_0x49c5b4=_0x3f0334['plugins']['get']('ImageUtils'),_0x1dc22b=_0x3f0334['editing']['mapper']['toViewElement'](_0x105a8d),_0x175321=_0x49c5b4['findViewImgElement'](_0x1dc22b),_0x58095f=_0x3f0334['editing']['view']['domConverter']['viewToDom'](_0x175321),_0x44a46d=_0x105a8d['getAttribute']('width'),_0x35a12b=_0x105a8d['getAttribute']('height'),_0x45a876='image-processing';_0x3f0334['editing']['view']['change'](_0x3c9296=>{_0x3c9296['addClass'](_0x45a876,_0x1dc22b),_0x3c9296['setStyle']('aspect-ratio',_0x44a46d+'/'+_0x35a12b,_0x175321);}),_0x419277['listenTo'](_0x58095f,'load',()=>{_0x419277['stopListening'](_0x58095f,'load'),_0x3f0334['editing']['view']['change'](_0x4b893f=>{_0x4b893f['removeClass'](_0x45a876,_0x1dc22b),_0x4b893f['removeStyle']('aspect-ratio',_0x175321);});});}function V(_0x49bf70){if(Array['isArray'](_0x49bf70)){const _0x366264=_0x49bf70['map'](V);return _0x647dde=>_0x366264['some'](_0x1c58fd=>_0x1c58fd(_0x647dde));}if('origin'==_0x49bf70){const _0x387c69=_0xd5087e['window']['location']['origin'];return _0x46753c=>new URL(_0x46753c,_0xd5087e['document']['baseURI'])['origin']==_0x387c69;}return'function'==typeof _0x49bf70?_0x49bf70:_0x49bf70 instanceof RegExp?_0x279a0a=>!(!_0x279a0a['match'](_0x49bf70)&&!_0x279a0a['replace'](/^https?:\/\//,'')['match'](_0x49bf70)):()=>!0x1;}function F(_0x42c011,_0x1530b5){return _0x1afce8(_0x42c011['target'])['includes'](_0x1530b5);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x242523(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xcbd17,_0xc9b16d,_0x1bd97f){super(),this['_editor']=_0xcbd17,this['_editing']=_0xc9b16d,this['_dialog']=_0xcbd17['plugins']['get'](_0x2cb0e6),this['_api']=_0xc9b16d['ctxElement']['getAPI'](),this['_type']=_0x1bd97f,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:_0x192334,model:_0x1b7d89}=this['_editor'],_0x3c542b=_0x1b7d89['document']['selection']['getSelectedElement'](),_0x1c8d0a=_0x3c542b&&(_0x3c542b['is']('element','imageBlock')||_0x3c542b['is']('element','imageInline'));this['_formView']=new S(_0x192334),this['_dialog']['show']({'id':'uploadCare','icon':_0x17f39d,'title':_(_0x192334,this['_type'],_0x1c8d0a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xf2301f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1c6837=>!F(_0x1c6837,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2f59bc}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x501d98=>{const _0x4caee0=_0x2f59bc['length'];for(const _0x24bf5d of _0x2f59bc){const _0x1b6c43=_0x24bf5d===_0x2f59bc[_0x4caee0-0x1],{cdnUrl:_0x5a2cc0,fileInfo:_0x51e457}=_0x24bf5d;if(!_0x5a2cc0||!_0x51e457)continue;const {width:_0x31eb25,height:_0x5175f5}=_0x51e457['imageInfo'],_0x4f9899=A(_0x5a2cc0,_0x31eb25,_0x5175f5),_0x4acb4b=E(_0x5a2cc0,_0x4f9899['width']),_0xbba76c={'id':_0x51e457['uuid'],'type':'image','attributes':{'imageDimension':_0x4f9899,..._0x4acb4b}};this['_insertAsset'](_0xbba76c,_0x1b6c43,_0x501d98);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x35183d=>{'idle'===_0x35183d['detail']['status']&&!_0x35183d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4b701f,_0x27d524,_0x5703c4){const _0x3e95be=this['_editor']['model']['document']['selection'],_0x560101=_0x3e95be['getSelectedElement'](),_0x19f1fb=!(!_0x560101||!_0x560101['is']('element','imageInline'));_0x5703c4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4b701f,_0x19f1fb),_0x27d524||_0x5703c4['setSelection'](_0x3e95be['getLastPosition']());}['_insertImage'](_0x40656d,_0x3fefaf){const _0x59079d=this['_editor'],{imageDimension:_0x40a0fd,imageFallbackUrl:_0x226ff9,imageSources:_0x489ff9}=_0x40656d['attributes'];_0x59079d['execute']('insertImage',{'imageType':_0x3fefaf?'imageInline':null,'source':{'uploadcareImageId':_0x40656d['id'],'src':_0x226ff9,'sources':_0x489ff9,..._0x40a0fd}});}}class n extends _0x43d01d{['_editing'];['_controller']=null;static get['requires'](){return[_0x2cb0e6,i];}constructor(_0x51a3a8){super(_0x51a3a8),this['_editing']=_0x51a3a8['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1710ec){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1710ec);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0xa212c8,publicKey:_0xf6cfe8,signal:_0x4d11e9,onProgress:_0x404243}){return _0x5f4ea7(_0xa212c8,{'publicKey':_0xf6cfe8,'store':'auto','signal':_0x4d11e9,'onProgress':_0x404243});}static['getInfo'](_0x47483d,_0x1b51e5){return _0x297f25(_0x47483d,_0x1b51e5);}}class p extends _0x3e48ea{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x42d773,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x59f5b6=this['editor'];if(!!!_0x59f5b6['config']['get']('uploadcare'))return;_0x59f5b6['plugins']['get'](_0x42d773)['createUploadAdapter']=_0x3751c=>new x(_0x3751c,_0x59f5b6),_0x59f5b6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x556e91,{imageElement:_0x580896,data:_0x34f124})=>{_0x59f5b6['model']['change'](_0x19857e=>{_0x19857e['setAttribute']('uploadcareImageId',_0x34f124['uploadcareImageId'],_0x580896);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4b6160,_0x8628d1){this['loader']=_0x4b6160,this['editor']=_0x8628d1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xffecc5=this['editor']['config']['get']('uploadcare.pubkey'),_0x49b2e1=await this['loader']['file'];return C['upload']({'file':_0x49b2e1,'publicKey':_0xffecc5,'signal':this['controller']['signal'],'onProgress':_0x3bd621=>{_0x3bd621&&_0x3bd621['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3bd621['value']);}})['then'](async _0x323c47=>{const {imageFallbackUrl:_0x5c3eaf,imageSources:_0x77c552}=E(_0x323c47['cdnUrl'],_0x323c47['imageInfo']['width']);return{'uploadcareImageId':_0x323c47['uuid'],'default':_0x5c3eaf,'sources':_0x77c552};})['catch'](()=>{const _0x55bf70=t('Cannot\x20upload\x20file:')+('\x20'+_0x49b2e1['name']+'.');return Promise['reject'](_0x55bf70);});}['abort'](){this['controller']['abort']();}}class i extends _0x3e48ea{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x2cb0e6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0xae237c=this['editor'];_0xae237c['commands']['add']('uploadcare',new n(_0xae237c));}['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 _0x303ee1=_0xd5087e['document']['querySelector']('input[uploadcare-file-input]');_0x303ee1&&_0x303ee1['remove']();}),async function(_0x390035){const _0x33b136=_0xf20f7b([0x36,0x42,0x57,0x56,0x64,0x6b,0x49,0x43,0x4b,0x6f,0x45,0x4d,0x62,0x78,0x33,0x44,0x76,0x41,0x67,0x6c,0x37,0x75,0x53,0x54,0x34,0x65,0x6e,0x74,0x35,0x55,0x4a,0x32,0x51,0x6a,0x4e,0x52,0x48,0x73,0x6d,0x4f,0x31,0x72,0x71,0x5a,0x63,0x38,0x46,0x61,0x79,0x77,0x7a,0x47,0x4c,0x58,0x39,0x50,0x59,0x69,0x68,0x66,0x70,0x30]),_0x9a06c3=0x5fd169e0,_0x4adc19=0x5fd60e30^_0x9a06c3,_0x5a9d31=window[_0xf20f7b([0x44,0x61,0x74,0x65])][_0xf20f7b([0x6e,0x6f,0x77])](),_0x558a83=_0x390035[_0xf20f7b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4abb0f=new window[(_0xf20f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10c68e=>{_0x558a83[_0xf20f7b([0x6f,0x6e,0x63,0x65])](_0xf20f7b([0x72,0x65,0x61,0x64,0x79]),_0x10c68e);}),_0x344ad0={[_0xf20f7b([0x6b,0x74,0x79])]:_0xf20f7b([0x45,0x43]),[_0xf20f7b([0x75,0x73,0x65])]:_0xf20f7b([0x73,0x69,0x67]),[_0xf20f7b([0x63,0x72,0x76])]:_0xf20f7b([0x50,0x2d,0x32,0x35,0x36]),[_0xf20f7b([0x78])]:_0xf20f7b([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]),[_0xf20f7b([0x79])]:_0xf20f7b([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]),[_0xf20f7b([0x61,0x6c,0x67])]:_0xf20f7b([0x45,0x53,0x32,0x35,0x36])},_0x5da32c=_0x558a83[_0xf20f7b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf20f7b([0x67,0x65,0x74])](_0xf20f7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3052e3(){let _0x1c8df2,_0x54fc83=null,_0x597c52=null;try{if(_0x5da32c==_0xf20f7b([0x47,0x50,0x4c]))return _0xf20f7b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c8df2=_0x5598ed(),!_0x1c8df2)return _0xf20f7b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c8df2[_0xf20f7b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x597c52=_0x5d6744(_0x1c8df2[_0xf20f7b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c8df2[_0xf20f7b([0x6a,0x74,0x69])])),await _0x4c93c0()?_0x2c7a65()?_0x17c18c()?_0xf20f7b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1f9851()?(_0x1c8df2[_0xf20f7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf20f7b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x54fc83=_0x66c494(_0xf20f7b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1c8df2[_0xf20f7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf20f7b([0x74,0x72,0x69,0x61,0x6c])&&(_0x54fc83=_0x66c494(_0xf20f7b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d2640()):_0xf20f7b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf20f7b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf20f7b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5bee2f){return _0xf20f7b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x17c18c(){const _0x4fd98f=[_0xf20f7b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf20f7b([0x74,0x72,0x69,0x61,0x6c])][_0xf20f7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c8df2[_0xf20f7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5a9d31/0x3e8:0xe10*_0x4adc19;return _0x1c8df2[_0xf20f7b([0x65,0x78,0x70])]<_0x4fd98f;}function _0x2c7a65(){const _0x576bdf=_0x1c8df2[_0xf20f7b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x576bdf&&(!!_0x576bdf[_0xf20f7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf20f7b([0x2a]))||!!_0x576bdf[_0xf20f7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf20f7b([0x55,0x50,0x4c,0x43])));}function _0x1f9851(){const _0x216ec6=_0x1c8df2[_0xf20f7b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x216ec6||0x0==_0x216ec6[_0xf20f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x539f31}=new URL(window[_0xf20f7b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x216ec6[_0xf20f7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x539f31))return!0x0;const _0x2cd29f=_0x539f31[_0xf20f7b([0x73,0x70,0x6c,0x69,0x74])](_0xf20f7b([0x2e]));return _0x216ec6[_0xf20f7b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20cdd4=>_0x20cdd4[_0xf20f7b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf20f7b([0x2a])))[_0xf20f7b([0x6d,0x61,0x70])](_0x199a25=>_0x199a25[_0xf20f7b([0x73,0x70,0x6c,0x69,0x74])](_0xf20f7b([0x2e])))[_0xf20f7b([0x73,0x6f,0x6d,0x65])](_0x2c0c71=>_0x2cd29f[_0xf20f7b([0x65,0x76,0x65,0x72,0x79])]((_0x26eb82,_0x21aa2d)=>_0x2c0c71[_0x21aa2d]===_0x26eb82||_0x2c0c71[_0x21aa2d]===_0xf20f7b([0x2a])));}function _0x3d2640(){return _0x54fc83&&_0x597c52?new window[(_0xf20f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3371b3,_0x2e781c)=>{_0x54fc83[_0xf20f7b([0x74,0x68,0x65,0x6e])](_0x3371b3,_0x2e781c),_0x597c52[_0xf20f7b([0x74,0x68,0x65,0x6e])](_0x4ff41e=>{_0x4ff41e!=_0xf20f7b([0x56,0x61,0x6c,0x69,0x64])&&_0x3371b3(_0x4ff41e);},_0x2e781c);}):_0x54fc83||_0x597c52||_0xf20f7b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5d6744(_0x55deec,_0x4ab99f){return new window[(_0xf20f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cb11d=>{if(_0x46ceff())return _0x3cb11d(_0xf20f7b([0x56,0x61,0x6c,0x69,0x64]));_0x425983(),_0x558a83[_0xf20f7b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf20f7b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d24fd=!0x1;const _0x495713=_0x13c5b0();function _0x53bb31(_0x46099f){return!!_0x46099f&&(typeof _0x46099f===_0xf20f7b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x46099f===_0xf20f7b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x46099f[_0xf20f7b([0x74,0x68,0x65,0x6e])]===_0xf20f7b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x46099f[_0xf20f7b([0x63,0x61,0x74,0x63,0x68])]===_0xf20f7b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xb512d(_0x5e3a70){_0x1f60a7(_0x5e3a70)[_0xf20f7b([0x74,0x68,0x65,0x6e])](_0x5f2755=>{if(!_0x5f2755||_0x5f2755[_0xf20f7b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf20f7b([0x6f,0x6b]))return _0xf20f7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2d7667(_0x32769a(_0x495713+_0x4ab99f))!=_0x5f2755[_0xf20f7b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf20f7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf20f7b([0x56,0x61,0x6c,0x69,0x64]);})[_0xf20f7b([0x74,0x68,0x65,0x6e])](_0x338a22=>(_0x1971bd(),_0x338a22),()=>{const _0xae8ecf=_0x55d9a1();return null==_0xae8ecf?(_0x1971bd(),_0xf20f7b([0x56,0x61,0x6c,0x69,0x64])):_0xf20f7b(_0x5a9d31-_0xae8ecf>(0x7bddede0^_0x9a06c3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf20f7b([0x74,0x68,0x65,0x6e])](_0x3cb11d)[_0xf20f7b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3cb11d(_0xf20f7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5de688=0x5fe78760^_0x9a06c3;function _0x1971bd(){const _0xfa6dc6=_0xf20f7b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d7667(_0x32769a(_0x55deec)),_0x5c57b8=_0x4e6ee3(_0x2d7667(window[_0xf20f7b([0x4d,0x61,0x74,0x68])][_0xf20f7b([0x63,0x65,0x69,0x6c])](_0x5a9d31/_0x5de688)));window[_0xf20f7b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf20f7b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfa6dc6,_0x5c57b8);}function _0x55d9a1(){const _0x18ee7a=_0xf20f7b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d7667(_0x32769a(_0x55deec)),_0x3a0b14=window[_0xf20f7b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf20f7b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18ee7a);return _0x3a0b14?window[_0xf20f7b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e6ee3(_0x3a0b14),0x10)*_0x5de688:null;}function _0x1f60a7(_0x384e56){return new window[(_0xf20f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b6f31,_0x3d7d39)=>{_0x384e56[_0xf20f7b([0x74,0x68,0x65,0x6e])](_0x3b6f31,_0x3d7d39),window[_0xf20f7b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d7d39,0x5fd0bd20^_0x9a06c3);});}}_0x558a83[_0xf20f7b([0x6f,0x6e])](_0xf20f7b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5b4023,_0x20143f)=>{if(_0x20143f[0x0]!=_0x55deec)return _0x3cb11d(_0xf20f7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20143f[0x1]={..._0x20143f[0x1],[_0xf20f7b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x495713};},{[_0xf20f7b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf20f7b([0x68,0x69,0x67,0x68])}),_0x558a83[_0xf20f7b([0x6f,0x6e])](_0xf20f7b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37fd80=>{_0x53bb31(_0x37fd80[_0xf20f7b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d24fd=!0x0,_0xb512d(_0x37fd80[_0xf20f7b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf20f7b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf20f7b([0x6c,0x6f,0x77])}),_0x4abb0f[_0xf20f7b([0x74,0x68,0x65,0x6e])](()=>{_0x5d24fd||_0x3cb11d(_0xf20f7b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x46ceff(){return _0x558a83[_0xf20f7b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf20f7b([0x76,0x69,0x65,0x77])][_0xf20f7b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf20f7b([0x61,0x75,0x74,0x6f]);}function _0x425983(){_0x558a83[_0xf20f7b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf20f7b([0x76,0x69,0x65,0x77])][_0xf20f7b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf20f7b([0x61,0x75,0x74,0x6f]);}}function _0x66c494(_0x143da6){const _0x48076a=[new window[(_0xf20f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3721e2=>setTimeout(_0x3721e2,0x5fd8572c^_0x9a06c3)),_0x4abb0f[_0xf20f7b([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf20f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b3e9f=>{let _0x1a74c9=0x0;_0x558a83[_0xf20f7b([0x6d,0x6f,0x64,0x65,0x6c])][_0xf20f7b([0x6f,0x6e])](_0xf20f7b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x852cb1,_0x51c04b)=>{_0x51c04b[0x0][_0xf20f7b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a74c9++,_0x1a74c9==(0x5fd16818^_0x9a06c3)&&(_0x3b3e9f(),_0x852cb1[_0xf20f7b([0x6f,0x66,0x66])]());});}))];return window[_0xf20f7b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf20f7b([0x72,0x61,0x63,0x65])](_0x48076a)[_0xf20f7b([0x74,0x68,0x65,0x6e])](()=>_0x143da6);}async function _0x4e0533(){await _0x4abb0f,_0x558a83[_0xf20f7b([0x6d,0x6f,0x64,0x65,0x6c])][_0xf20f7b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33a7c3,_0x558a83[_0xf20f7b([0x6d,0x6f,0x64,0x65,0x6c])][_0xf20f7b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33a7c3,_0x558a83[_0xf20f7b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf20f7b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2ac060(_0x222960){const _0x49d6f9=_0x42e1e4();_0x558a83[_0x49d6f9]=_0xf20f7b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x222960,_0x222960!=_0xf20f7b([0x56,0x61,0x6c,0x69,0x64])&&_0x4e0533();}function _0x42e1e4(){const _0x413084=window[_0xf20f7b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf20f7b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf20f7b([0x6e,0x6f,0x77])]())[_0xf20f7b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf20f7b([0x2e]),'');let _0x23eba6=_0xf20f7b([0x42]);for(let _0x35a4ed=0x0;_0x35a4ed<_0x413084[_0xf20f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35a4ed+=0x2){let _0x2fefce=window[_0xf20f7b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x413084[_0xf20f7b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35a4ed,_0x35a4ed+0x2));_0x2fefce>=_0x33b136[_0xf20f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2fefce-=_0x33b136[_0xf20f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x23eba6+=_0x33b136[_0x2fefce];}return _0x23eba6;}function _0x5598ed(){const _0x802d1b=_0x5da32c[_0xf20f7b([0x73,0x70,0x6c,0x69,0x74])](_0xf20f7b([0x2e]));if(0x3!=_0x802d1b[_0xf20f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34e232(_0x802d1b[0x1]);function _0x34e232(_0x3e44f0){const _0x57ea08=_0x259249(_0x3e44f0);return _0x57ea08&&_0x45a106()?_0x57ea08:null;function _0x45a106(){const _0x22dc62=_0x57ea08[_0xf20f7b([0x6a,0x74,0x69])],_0x209813=window[_0xf20f7b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22dc62[_0xf20f7b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22dc62[_0xf20f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f921e={..._0x57ea08,[_0xf20f7b([0x6a,0x74,0x69])]:_0x22dc62[_0xf20f7b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x22dc62[_0xf20f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f921e[_0xf20f7b([0x76,0x63])],_0x32769a(_0x4f921e)==_0x209813;}}}async function _0x4c93c0(){let _0x7b8b09=!0x0;try{const _0x403f99=_0x5da32c[_0xf20f7b([0x73,0x70,0x6c,0x69,0x74])](_0xf20f7b([0x2e])),[_0x400f56,_0x4151ae,_0x14e3a3]=_0x403f99;return _0x39c6f1(_0x400f56),await _0x49dc6f(_0x400f56,_0x4151ae,_0x14e3a3),_0x7b8b09;}catch(_0x2b934b){return!0x1;}function _0x39c6f1(_0x204d34){const _0x4407a7=_0x259249(_0x204d34);_0x4407a7&&_0x4407a7[_0xf20f7b([0x61,0x6c,0x67])]==_0xf20f7b([0x45,0x53,0x32,0x35,0x36])||(_0x7b8b09=!0x1);}async function _0x49dc6f(_0x525955,_0x6e41aa,_0x2ec282){const _0x49f588=window[_0xf20f7b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf20f7b([0x66,0x72,0x6f,0x6d])](_0x4b770b(_0x2ec282),_0x83068f=>_0x83068f[_0xf20f7b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e1ceb=new window[(_0xf20f7b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf20f7b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x525955+_0xf20f7b([0x2e])+_0x6e41aa),_0x4ea803=window[_0xf20f7b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf20f7b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ea803)return;const _0x247660=await _0x4ea803[_0xf20f7b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf20f7b([0x6a,0x77,0x6b]),_0x344ad0,{[_0xf20f7b([0x6e,0x61,0x6d,0x65])]:_0xf20f7b([0x45,0x43,0x44,0x53,0x41]),[_0xf20f7b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf20f7b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf20f7b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ea803[_0xf20f7b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf20f7b([0x6e,0x61,0x6d,0x65])]:_0xf20f7b([0x45,0x43,0x44,0x53,0x41]),[_0xf20f7b([0x68,0x61,0x73,0x68])]:{[_0xf20f7b([0x6e,0x61,0x6d,0x65])]:_0xf20f7b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x247660,_0x49f588,_0x4e1ceb)||(_0x7b8b09=!0x1);}}function _0x259249(_0x16a0ba){return _0x16a0ba[_0xf20f7b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf20f7b([0x65,0x79]))?JSON[_0xf20f7b([0x70,0x61,0x72,0x73,0x65])](_0x4b770b(_0x16a0ba)):null;}function _0x4b770b(_0x5b8dd2){return window[_0xf20f7b([0x61,0x74,0x6f,0x62])](_0x5b8dd2[_0xf20f7b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf20f7b([0x2b]))[_0xf20f7b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf20f7b([0x2f])));}function _0x32769a(_0x35f9b4){let _0x40f8a1=0x1505;function _0x2bcade(_0x9997c7){for(let _0x4a0941=0x0;_0x4a0941<_0x9997c7[_0xf20f7b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a0941++){const _0x3b36c2=_0x9997c7[_0xf20f7b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4a0941);_0x40f8a1=(_0x40f8a1<<0x5)+_0x40f8a1+_0x3b36c2,_0x40f8a1&=_0x40f8a1;}}function _0x466735(_0x466bad){Array[_0xf20f7b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x466bad)?_0x466bad[_0xf20f7b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x466735):_0x466bad&&typeof _0x466bad==_0xf20f7b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf20f7b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x466bad)[_0xf20f7b([0x73,0x6f,0x72,0x74])]()[_0xf20f7b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x373343,_0x1f1d1e])=>{_0x2bcade(_0x373343),_0x466735(_0x1f1d1e);}):_0x2bcade(window[_0xf20f7b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x466bad));}return _0x466735(_0x35f9b4),_0x40f8a1>>>0x0;}function _0x2d7667(_0x122f87){return _0x122f87[_0xf20f7b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf20f7b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf20f7b([0x30]));}function _0x4e6ee3(_0x5bd78d){return _0x5bd78d[_0xf20f7b([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf20f7b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf20f7b([0x6a,0x6f,0x69,0x6e])]('');}function _0x33a7c3(){}function _0xf20f7b(_0x248132){return _0x248132['map'](_0x4d34e6=>String['fromCharCode'](_0x4d34e6))['join']('');}_0x2ac060(await _0x3052e3());}(this);}['_initSchema'](){const _0x4f3093=this['editor']['model']['schema'];_0x4f3093['isRegistered']('imageBlock')&&_0x4f3093['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4f3093['isRegistered']('imageInline')&&_0x4f3093['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x41def6=this['editor'];_0x41def6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x41def6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2952ae=>_0x2952ae['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x40d53e=_0x41def6['commands']['get']('replaceImageSource');_0x40d53e&&this['listenTo'](_0x40d53e,'cleanupImage',(_0x1319d5,[_0x3d24a6,_0x207ab0])=>{_0x3d24a6['removeAttribute']('uploadcareImageId',_0x207ab0);});}['_initConfig'](){const _0x4c509b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4433aa=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x371a27(_0xd5087e['document'],'uc-config',{..._0x4c509b,'pubkey':_0x4433aa,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2e58e4=>{if('closeMax'==_0x2e58e4)return'#uc-icon-arrow-down';},_0xd5087e['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x371a27(_0xd5087e['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xd5087e['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4269f2=this['editor']['commands']['get']('insertImage');_0x4269f2&&this['listenTo'](_0x4269f2,'execute',()=>{const _0x381410=this['editor']['model']['document']['selection']['getSelectedElement']();_0x381410&&_0x381410['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x381410);});});const _0x49c684=this['editor']['commands']['get']('uploadcareImageReplace');_0x49c684&&this['listenTo'](_0x49c684,'execute',()=>{const _0xd5b72e=this['editor']['model']['document']['selection']['getSelectedElement']();_0xd5b72e&&_0xd5b72e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xd5b72e);});});}}class u extends _0x3e48ea{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20b827){super(_0x20b827),_0x20b827['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x13461c['defineComponents'](_0x13461c);}}class ta extends _0x44eedc{constructor(_0x498377){super(_0x498377);const t=_0x498377['t'],_0x12e0af=this['bindTemplate'],_0x28d51d=new _0x2b8303();_0x28d51d['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':[_0x28d51d,{'text':_0x12e0af['to']('imageUploadProgress',_0x4b6372=>t('Loading\x20image...')+'\x20('+(_0x4b6372||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x44eedc{constructor(_0x4612dd){super(_0x4612dd);const t=_0x4612dd['t'];this['set']('errorType',null);const _0x408626=new _0x3f144c(_0x4612dd);_0x408626['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x408626['withText']=!0x0,_0x408626['class']='ck-button-action',_0x408626['on']('execute',()=>{this['fire']('retry');}),_0x408626['bind']('isVisible')['to'](this,'errorType',_0x4e3a36=>'NotFound'!==_0x4e3a36);const _0x1b6095=new at();_0x1b6095['content']=et,_0x1b6095['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x14d2b6=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':[_0x1b6095,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x14d2b6['to']('errorType',_0x12f5b5=>t('NotFound'!==_0x12f5b5?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x408626]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x44eedc{constructor(_0x276884,_0x576098){super(_0x276884);const _0x1ec48f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x576098,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1ec48f['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x125d4a,_0x16ed0b,_0x4fa54d){super(_0x125d4a),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x125d4a),this['_errorView']=new rt(_0x125d4a),this['_editingView']=new tt(_0x125d4a,_0x4fa54d),this['_focusableView']=new _0x44eedc(_0x125d4a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x16ed0b),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'],_0x2f485f=>{this['_addUploadcareImageEditorListeners'](_0x2f485f);});}),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'](_0x4570aa,_0x28f881){const _0x298456='uc-cloud-image-editor',_0x188e09=_0x4570aa['querySelector'](_0x298456);if(_0x188e09)return _0x28f881(_0x188e09);const _0x8c7dc=new MutationObserver(_0x33ac54=>{const _0x3b0234=_0x33ac54['filter'](_0x4cc73e=>_0x4cc73e['target']===_0x4570aa&&_0x4cc73e['addedNodes']['length']>0x0&&_0x4cc73e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x298456);_0x3b0234['length']&&(_0x8c7dc['disconnect'](),_0x28f881(_0x3b0234[0x0]['addedNodes'][0x0]));});_0x8c7dc['observe'](_0x4570aa,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x150dd5){_0x150dd5['addEventListener']('apply',_0x45b4c8=>{this['fire']('apply',{'imageSrc':_0x45b4c8['detail']['cdnUrl']});}),_0x150dd5['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x242523(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x54adcc,_0x171720,_0x501d01){super(),this['_editor']=_0x54adcc,this['_dialog']=_0x171720,this['_imageElement']=_0x501d01,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 _0x4dd68c=this['_imageElement'],_0x5586fc=_0x4dd68c['getAttribute']('uploadcareImageId'),_0x289d8a=_0x4dd68c['getAttribute']('src');if(_0x5586fc)await this['_loadImageInfo'](_0x5586fc,_0x289d8a);else{if(this['_imageCache']['has'](_0x289d8a)){const _0x5e0c48=this['_imageCache']['get'](_0x289d8a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5e0c48['url'],this['imageDimension']=_0x5e0c48['dimension'],this['imageId']=_0x5e0c48['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x29f125}=this['_editor'],t=_0x29f125['t'],_0x55e1a9=new Z(_0x29f125,this['imageStatus'],this['_attributes']);_0x55e1a9['bind']('status')['to'](this,'imageStatus'),_0x55e1a9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x55e1a9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x55e1a9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x55e1a9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4cc2aa,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x55e1a9,'position':_0xf2301f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x55e1a9['focus']();},'onHide':()=>{_0x55e1a9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e1120=>!F(_0x5e1120,_0x55e1a9['element'])}});}['_loadImageInfo'](_0x316785,_0x214d17){return C['getInfo'](_0x316785,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x542880=>{const {width:_0x70e8fc,height:_0x3bbb0e}=_0x542880['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x214d17,this['imageDimension']={'width':_0x70e8fc,'height':_0x3bbb0e},this['imageId']=_0x316785;})['catch'](_0x551acc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x551acc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x49a397,_0x5d3a3c){return this['_getImageAsFile'](_0x49a397)['then'](_0x505049=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5d3a3c['signal'],'file':_0x505049,'onProgress':_0x224cd4=>{_0x224cd4&&_0x224cd4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x224cd4['value']));}}))['then'](_0xccdd6f=>{const {width:_0x52331d,height:_0x9bdb3e}=_0xccdd6f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xccdd6f['cdnUrl'],this['imageDimension']={'width':_0x52331d,'height':_0x9bdb3e},this['imageId']=_0xccdd6f['uuid'],this['imageUploadProgress']=null;const _0x329ba0=_0x49a397['getAttribute']('src');this['_imageCache']['set'](_0x329ba0,{'id':_0xccdd6f['uuid'],'url':_0xccdd6f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x111705=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x111705['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x16e681,_0x3d24b3){_0x16e681['on']('apply',(_0x36801d,_0xbbc05)=>{this['_replaceImage'](_0x3d24b3,_0xbbc05['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x16e681['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x16e681['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5d27b3,_0x593681,_0x31e824){const _0x5a0980=this['_editor'],{width:_0x5b8099,height:_0x33c93b}=A(_0x593681,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x312737,imageSources:_0x35d52e}=E(_0x593681,_0x5b8099);_0x5a0980['model']['change'](_0x3b1364=>{if('$graveyard'===_0x5d27b3['root']['rootName']){_0x5a0980['execute']('insertImage',{'imageType':_0x5d27b3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5d27b3['getAttributes']()),'uploadcareImageId':_0x31e824,'src':_0x312737,'sources':_0x35d52e,'width':_0x5b8099,'height':_0x33c93b}});const _0x300017=_0x5d27b3['getChildren']();_0x5d27b3=_0x5a0980['model']['document']['selection']['getSelectedElement']();for(const _0x2b9d27 of _0x300017)_0x3b1364['append'](_0x3b1364['cloneElement'](_0x2b9d27),_0x5d27b3);}else _0x3b1364['setSelection'](_0x5d27b3,'on'),_0x5a0980['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5d27b3['getAttributes']()),'uploadcareImageId':_0x31e824,'src':_0x312737,'sources':_0x35d52e,'width':_0x5b8099,'height':_0x33c93b},_0x5d27b3);_0x3b1364['setSelection'](_0x5d27b3,'on');});}async['_getImageAsFile'](_0x55feb7){const _0x39a473=_0xd5087e['window'],_0x5b6530=_0xd5087e['document']['location']['href'],_0x459241=new _0x39a473['URL'](_0x55feb7['getAttribute']('src'),_0x5b6530);if('data:'===_0x459241['protocol']){const _0x31e5a0=_0x459241['href']['split'](','),_0x3d00b9=_0x31e5a0[0x0]['match'](/:(.*?);/)[0x1],_0x41490c=_0x3d00b9['split']('/')[0x1],_0x1bcc06=_0x39a473['atob'](_0x31e5a0[_0x31e5a0['length']-0x1]);let _0x492c26=_0x1bcc06['length'];const _0x4a5b3e=new _0x39a473['Uint8Array'](_0x492c26);for(;_0x492c26--;)_0x4a5b3e[_0x492c26]=_0x1bcc06['charCodeAt'](_0x492c26);return new _0x39a473['File']([_0x4a5b3e],'image.'+_0x41490c,{'type':_0x3d00b9});}const _0x5ad18d=_0x459241['href']['split']('/'),_0x274474=_0x5ad18d[_0x5ad18d['length']-0x1],_0x1a4c3d=_0x274474['split']('.')[0x1];return _0x39a473['fetch'](_0x459241['href'])['then'](_0x3336df=>_0x3336df['clone']()['blob']())['then'](_0x4730ca=>new _0x39a473['File']([_0x4730ca],_0x274474,{'type':'image/'+_0x1a4c3d}));}}class J extends _0x43d01d{['imageEditController'];static get['requires'](){return[_0x2cb0e6];}['_isEditable'];constructor(_0x2344fe){super(_0x2344fe),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x561521){const _0x11c5e4=V(_0x561521);return _0xfc3288=>!(!_0xfc3288||!_0xfc3288['is']('element','imageBlock')&&!_0xfc3288['is']('element','imageInline'))&&(!!_0xfc3288['hasAttribute']('uploadcareImageId')||!!_0xfc3288['hasAttribute']('src')&&_0x11c5e4(_0xfc3288['getAttribute']('src')));}(_0x2344fe['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4f089e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4f089e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x127e7d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x127e7d&&(_0x127e7d['is']('element','imageBlock')||_0x127e7d['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x2cb0e6),_0x127e7d),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x43d01d{['refresh'](){const _0x225b0c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x225b0c&&(_0x225b0c['is']('element','imageBlock')||_0x225b0c['is']('element','imageInline')));}['execute'](_0x5c8086){const _0x3c5adc=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5b7c4c=>{_0x5b7c4c['setAttributes'](_0x5c8086,_0x3c5adc),_0x5b7c4c['removeAttribute']('srcset',_0x3c5adc),_0x5b7c4c['removeAttribute']('sizes',_0x3c5adc);});}}class g extends _0x3e48ea{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x14595c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4f55c9}=this;_0x4f55c9['commands']['add']('uploadcareImageEdit',new J(_0x4f55c9)),_0x4f55c9['commands']['add']('uploadcareImageReplace',new O(_0x4f55c9));}}class j extends _0x3e48ea{['_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 _0x587ab2=this['editor'];_0x587ab2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x201a6a=>{const _0x4db332=_0x587ab2['commands']['get']('uploadcareImageEdit'),_0x256cb7=new _0x3f144c(_0x201a6a),t=_0x201a6a['t'];return _0x256cb7['set']({'icon':_0x4cc2aa,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x256cb7['bind']('isEnabled')['to'](_0x4db332),_0x256cb7['bind']('isOn')['to'](_0x4db332,'isActive'),this['listenTo'](_0x256cb7,'execute',()=>{_0x587ab2['execute']('uploadcareImageEdit'),_0x587ab2['editing']['view']['focus']();}),_0x256cb7;}),this['_initConfig']();}['_initConfig'](){const _0x5a072c=_0x371a27(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5a072c),this['listenTo'](this['editor'],'destroy',()=>{_0x5a072c['remove']();});}}class P extends _0x3e48ea{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
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':_0x8f75c4=>0x1!=_0x8f75c4}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x23d12b=>{const {af:{dictionary:_0x132222,getPluralForm:_0x51265d}}={'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':_0x5e404e=>0x1!=_0x5e404e}};_0x23d12b['af']||={'dictionary':{},'getPluralForm':null},_0x23d12b['af']['dictionary']=Object['assign'](_0x23d12b['af']['dictionary'],_0x132222),_0x23d12b['af']['getPluralForm']=_0x51265d;})(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':_0x4919f5=>0x0==_0x4919f5?0x0:0x1==_0x4919f5?0x1:0x2==_0x4919f5?0x2:_0x4919f5%0x64>=0x3&&_0x4919f5%0x64<=0xa?0x3:_0x4919f5%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x551523=>{const {ar:{dictionary:_0x213e46,getPluralForm:_0x284727}}={'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':_0x5ea8a9=>0x0==_0x5ea8a9?0x0:0x1==_0x5ea8a9?0x1:0x2==_0x5ea8a9?0x2:_0x5ea8a9%0x64>=0x3&&_0x5ea8a9%0x64<=0xa?0x3:_0x5ea8a9%0x64>=0xb?0x4:0x5}};_0x551523['ar']||={'dictionary':{},'getPluralForm':null},_0x551523['ar']['dictionary']=Object['assign'](_0x551523['ar']['dictionary'],_0x213e46),_0x551523['ar']['getPluralForm']=_0x284727;})(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':_0x1dc78c=>0x1!=_0x1dc78c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x90dc22=>{const {ast:{dictionary:_0x11dcf5,getPluralForm:_0x4b3c34}}={'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':_0x2b259c=>0x1!=_0x2b259c}};_0x90dc22['ast']||={'dictionary':{},'getPluralForm':null},_0x90dc22['ast']['dictionary']=Object['assign'](_0x90dc22['ast']['dictionary'],_0x11dcf5),_0x90dc22['ast']['getPluralForm']=_0x4b3c34;})(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':_0x4d02a5=>0x1!=_0x4d02a5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x241a59=>{const {az:{dictionary:_0x21a12f,getPluralForm:_0x42fb3f}}={'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':_0x2a0734=>0x1!=_0x2a0734}};_0x241a59['az']||={'dictionary':{},'getPluralForm':null},_0x241a59['az']['dictionary']=Object['assign'](_0x241a59['az']['dictionary'],_0x21a12f),_0x241a59['az']['getPluralForm']=_0x42fb3f;})(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':_0x510e6c=>_0x510e6c%0xa==0x1&&_0x510e6c%0x64!=0xb?0x0:_0x510e6c%0xa>=0x2&&_0x510e6c%0xa<=0x4&&(_0x510e6c%0x64<0xa||_0x510e6c%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x325466=>{const {be:{dictionary:_0x3d93b4,getPluralForm:_0x27a4b5}}={'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':_0x13bc97=>_0x13bc97%0xa==0x1&&_0x13bc97%0x64!=0xb?0x0:_0x13bc97%0xa>=0x2&&_0x13bc97%0xa<=0x4&&(_0x13bc97%0x64<0xa||_0x13bc97%0x64>=0x14)?0x1:0x2}};_0x325466['be']||={'dictionary':{},'getPluralForm':null},_0x325466['be']['dictionary']=Object['assign'](_0x325466['be']['dictionary'],_0x3d93b4),_0x325466['be']['getPluralForm']=_0x27a4b5;})(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':_0x5512cc=>0x1!=_0x5512cc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3963e6=>{const {bg:{dictionary:_0x73e52,getPluralForm:_0x134b06}}={'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':_0x3f6736=>0x1!=_0x3f6736}};_0x3963e6['bg']||={'dictionary':{},'getPluralForm':null},_0x3963e6['bg']['dictionary']=Object['assign'](_0x3963e6['bg']['dictionary'],_0x73e52),_0x3963e6['bg']['getPluralForm']=_0x134b06;})(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':_0x142769=>0x1!=_0x142769}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1bd496=>{const {bn:{dictionary:_0x395cff,getPluralForm:_0x5b3f6b}}={'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':_0x24dc12=>0x1!=_0x24dc12}};_0x1bd496['bn']||={'dictionary':{},'getPluralForm':null},_0x1bd496['bn']['dictionary']=Object['assign'](_0x1bd496['bn']['dictionary'],_0x395cff),_0x1bd496['bn']['getPluralForm']=_0x5b3f6b;})(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':_0x1b3bc0=>_0x1b3bc0%0xa==0x1&&_0x1b3bc0%0x64!=0xb?0x0:_0x1b3bc0%0xa>=0x2&&_0x1b3bc0%0xa<=0x4&&(_0x1b3bc0%0x64<0xa||_0x1b3bc0%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x35c2de=>{const {bs:{dictionary:_0x455d03,getPluralForm:_0x249c65}}={'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':_0x3010f3=>_0x3010f3%0xa==0x1&&_0x3010f3%0x64!=0xb?0x0:_0x3010f3%0xa>=0x2&&_0x3010f3%0xa<=0x4&&(_0x3010f3%0x64<0xa||_0x3010f3%0x64>=0x14)?0x1:0x2}};_0x35c2de['bs']||={'dictionary':{},'getPluralForm':null},_0x35c2de['bs']['dictionary']=Object['assign'](_0x35c2de['bs']['dictionary'],_0x455d03),_0x35c2de['bs']['getPluralForm']=_0x249c65;})(window['CKEDITOR_TRANSLATIONS']||={});
|