@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260127.0 → 0.0.0-nightly-next-20260128.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/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/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x41816c,Command as _0x3c39b8}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2afce4,IconGooglePhotos as _0x68b6df,IconGoogleDrive as _0x4c6857,IconFacebook as _0x2a7864,IconDropbox as _0x433119,IconUploadcareLink as _0x35971a,IconUploadcareImageUpload as _0x3e6424,IconError as _0x2e0735,IconUploadcareImageEdit as _0x21b7f3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x45198d,MenuBarMenuListItemButtonView as _0x25f1a7,View as _0x2d9937,FocusCycler as _0x5daac2,Dialog as _0x5ca1ad,DialogViewPosition as _0x4257c4,SpinnerView as _0x1f833e,IconView as _0x12a2a9,Notification as _0x734e51}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x9f09dd,DomEmitterMixin as _0x9b9b6d,global as _0x568424,getAncestors as _0x269790,ObservableMixin as _0x319eb9,uid as _0x297096,createElement as _0xf585bb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1851ac}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xb36c10,info as _0x37b1f5}from'@uploadcare/upload-client';import*as _0x207db7 from'@uploadcare/file-uploader';var S=function(_0x27d8e3){return _0x27d8e3['Local']='local',_0x27d8e3['URL']='url',_0x27d8e3['Dropbox']='dropbox',_0x27d8e3['GDrive']='gdrive',_0x27d8e3['Facebook']='facebook',_0x27d8e3['GPhotos']='gphotos',_0x27d8e3['OneDrive']='onedrive',_0x27d8e3;}({});function T(_0x2ae181,_0x30bdc2,_0x2cf31a){const t=_0x2ae181['t'],_0x15e61e=_0x2ae181['t'];switch(_0x30bdc2){case S['Local']:return{'text':_0x15e61e('Insert'===_0x2cf31a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x15e61e('From\x20computer')};case S['URL']:return{'text':'Insert'===_0x2cf31a?_0x15e61e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x15e61e('Via\x20URL')};case S['Dropbox']:return{'text':t('Insert'===_0x2cf31a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case S['Facebook']:return{'text':t('Insert'===_0x2cf31a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case S['GDrive']:return{'text':t('Insert'===_0x2cf31a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case S['GPhotos']:return{'text':t('Insert'===_0x2cf31a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case S['OneDrive']:return{'text':t('Insert'===_0x2cf31a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x30bdc2;}}class A extends _0x41816c{['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 _0x49aadd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a4958;for(const _0x1620f1 in _0x49aadd){const _0x2f3bfa=_0x1620f1,_0x1e10ab=_0x49aadd[_0x2f3bfa];if('uploadcareLicenseKeyValid'==_0x1e10ab||'uploadcareLicenseKeyInvalid'==_0x1e10ab||'uploadcareLicenseKeyExpired'==_0x1e10ab||'uploadcareLicenseKeyDomainLimit'==_0x1e10ab||'uploadcareLicenseKeyNotAllowed'==_0x1e10ab||'uploadcareLicenseKeyEvaluationLimit'==_0x1e10ab||'uploadcareLicenseKeyUsageLimit'==_0x1e10ab){delete _0x49aadd[_0x2f3bfa],_0x4a4958=_0x1e10ab,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4a4958&&_0x49aadd['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4a4958&&_0x49aadd['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4a4958&&_0x49aadd['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4a4958&&_0x49aadd['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4a4958&&_0x49aadd['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4a4958&&_0x49aadd['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x386069}=this,_0x2af229=_0x386069['commands']['get']('uploadcare');if(!_0x2af229)return;const _0x868f5d=this['_normalizeConfigSourceList'](_0x386069['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x440a2c,_0x1d3092)=>{const _0x10c1a5=this['_getIntegrationKey'](_0x1d3092['type']);return _0x440a2c[_0x10c1a5]||(_0x440a2c[_0x10c1a5]=[]),_0x440a2c[_0x10c1a5]['push'](_0x1d3092),_0x440a2c;},{});_0x386069['plugins']['has']('ImageInsertUI')&&_0x386069['commands']['get']('uploadcare')&&Object['entries'](_0x868f5d)['forEach'](([_0x4c8c96,_0x49bc7e])=>{_0x386069['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4c8c96,'observable':()=>_0x2af229,'buttonViewCreator':()=>this['_createToolbarButton'](_0x49bc7e),'formViewCreator':()=>this['_createDropdownButtons'](_0x49bc7e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x49bc7e),'override':'assetManager'!==_0x4c8c96});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5ab094){const {locale:_0x8ba888}=this['editor'];return _0x5ab094['map'](_0x5db09b=>{const _0x5b7a4b=T(_0x8ba888,_0x5db09b,'Insert');switch(_0x5db09b){case S['Local']:return{'icon':_0x3e6424,'type':S['Local'],..._0x5b7a4b};case S['URL']:return{'icon':_0x35971a,'type':S['URL'],..._0x5b7a4b};case S['Dropbox']:return{'icon':_0x433119,'type':S['Dropbox'],..._0x5b7a4b};case S['Facebook']:return{'icon':_0x2a7864,'type':S['Facebook'],..._0x5b7a4b};case S['GDrive']:return{'icon':_0x4c6857,'type':S['GDrive'],..._0x5b7a4b};case S['GPhotos']:return{'icon':_0x68b6df,'type':S['GPhotos'],..._0x5b7a4b};case S['OneDrive']:return{'icon':_0x2afce4,'type':S['OneDrive'],..._0x5b7a4b};}});}['_getIntegrationKey'](_0x3da717){switch(_0x3da717){case S['Local']:return'upload';case S['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x138ce1,_0x38f818){const _0x996bd4=this['editor'],_0x562934=new _0x138ce1(_0x996bd4['locale']),_0x34ad78=_0x996bd4['commands']['get']('uploadcare');return _0x562934['bind']('isEnabled')['to'](_0x34ad78),_0x562934['on']('execute',()=>{_0x34ad78['execute'](_0x38f818);}),_0x562934;}['_createToolbarButton'](_0xd4f26f){const {locale:_0x2d6757}=this['editor'],_0x5762e7=this['editor']['plugins']['get']('ImageInsertUI'),_0x292d00=_0xd4f26f[0x0],_0x1a23a1=this['_createButton'](_0x45198d,_0x292d00['type']);return _0x1a23a1['icon']=_0x292d00['icon'],_0x1a23a1['bind']('label')['to'](_0x5762e7,'isImageSelected',_0x2ef24e=>T(_0x2d6757,_0x292d00['type'],_0x2ef24e?'Replace':'Insert')['text']),_0x1a23a1['tooltip']=!0x0,_0x1a23a1;}['_createDropdownButtons'](_0x1e63ba){const {locale:_0x10a768}=this['editor'],_0x4bcc6d=this['editor']['plugins']['get']('ImageInsertUI');return _0x1e63ba['map'](_0x1a44e8=>{const _0x183288=this['_createButton'](_0x45198d,_0x1a44e8['type']);return _0x183288['withText']=!0x0,_0x183288['icon']=_0x1a44e8['icon'],_0x183288['bind']('label')['to'](_0x4bcc6d,'isImageSelected',_0x473305=>T(_0x10a768,_0x1a44e8['type'],_0x473305?'Replace':'Insert')['text']),_0x183288;});}['_createMenuBarButtons'](_0x142adb){return _0x142adb['map'](_0x36b5d6=>{const _0xf65b1d=this['_createButton'](_0x25f1a7,_0x36b5d6['type']);return _0xf65b1d['icon']=_0x36b5d6['icon'],_0xf65b1d['label']=_0x36b5d6['shortText'],_0xf65b1d;});}}class K extends _0x2d9937{['focusTracker'];['focusCycler'];constructor(_0x19e870){super(_0x19e870),this['focusTracker']=new _0x9f09dd(),this['focusCycler']=new _0x5daac2({'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 O extends K{constructor(_0x3c6e88,_0x41cdd1){super(_0x3c6e88),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-'+_0x41cdd1}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function D(_0x18e76b,_0xa6f2a0){const _0x1cdc17=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x55c91a=>_0x55c91a<=_0xa6f2a0)['map'](_0x6a0ae4=>_0x18e76b['replace'](/\/$/,'')+'/-/resize/'+_0x6a0ae4+'x/\x20'+_0x6a0ae4+'w');return{'imageFallbackUrl':_0x18e76b,'imageSources':[{'srcset':_0x1cdc17['join'](',\x20'),'sizes':'(max-width:\x20'+_0xa6f2a0+'px)\x20100vw,\x20'+_0xa6f2a0+'px','type':'image/webp'}]};}function F(_0x35159c,_0x54a60f,_0xfa8aa5){const _0x460e08=_0x35159c['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x460e08?parseInt(_0x460e08[0x1],0xa):_0x54a60f,'height':_0x460e08?parseInt(_0x460e08[0x2],0xa):_0xfa8aa5};}function $(_0x26cd99,_0x413cc3){const _0x17dce8=new(_0x9b9b6d())(),_0x2e8466=_0x26cd99['plugins']['get']('ImageUtils'),_0x46974e=_0x26cd99['editing']['mapper']['toViewElement'](_0x413cc3),_0x479fbb=_0x2e8466['findViewImgElement'](_0x46974e),_0x1dbccc=_0x26cd99['editing']['view']['domConverter']['viewToDom'](_0x479fbb),_0x58fc7=_0x413cc3['getAttribute']('width'),_0x155104=_0x413cc3['getAttribute']('height'),_0x7a29dc='image-processing';_0x26cd99['editing']['view']['change'](_0x410747=>{_0x410747['addClass'](_0x7a29dc,_0x46974e),_0x410747['setStyle']('aspect-ratio',_0x58fc7+'/'+_0x155104,_0x479fbb);}),_0x17dce8['listenTo'](_0x1dbccc,'load',()=>{_0x17dce8['stopListening'](_0x1dbccc,'load'),_0x26cd99['editing']['view']['change'](_0x22bd7b=>{_0x22bd7b['removeClass'](_0x7a29dc,_0x46974e),_0x22bd7b['removeStyle']('aspect-ratio',_0x479fbb);});});}function B(_0x11f018){if(Array['isArray'](_0x11f018)){const _0x3f41cd=_0x11f018['map'](B);return _0x4cf2bd=>_0x3f41cd['some'](_0x432d74=>_0x432d74(_0x4cf2bd));}if('origin'==_0x11f018){const _0x931ef5=_0x568424['window']['location']['origin'];return _0x5a7035=>new URL(_0x5a7035,_0x568424['document']['baseURI'])['origin']==_0x931ef5;}return'function'==typeof _0x11f018?_0x11f018:_0x11f018 instanceof RegExp?_0x5594c5=>!(!_0x5594c5['match'](_0x11f018)&&!_0x5594c5['replace'](/^https?:\/\//,'')['match'](_0x11f018)):()=>!0x1;}function V(_0x4b739f,_0x34492d){return _0x269790(_0x4b739f['target'])['includes'](_0x34492d);}class j extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x319eb9(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x39f947,_0x27e604,_0x2ca382){super(),this['_editor']=_0x39f947,this['_editing']=_0x27e604,this['_dialog']=_0x39f947['plugins']['get'](_0x5ca1ad),this['_api']=_0x27e604['ctxElement']['getAPI'](),this['_type']=_0x2ca382,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:_0x2313f3,model:_0x16b4e2}=this['_editor'],_0x1df728=_0x16b4e2['document']['selection']['getSelectedElement'](),_0x18bae8=_0x1df728&&(_0x1df728['is']('element','imageBlock')||_0x1df728['is']('element','imageInline'));this['_formView']=new O(_0x2313f3,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3e6424,'title':T(_0x2313f3,this['_type'],_0x18bae8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4257c4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e5b45=>!V(_0x5e5b45,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2acab9}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x139836=>{const _0x3aa218=_0x2acab9['length'];for(const _0x21f199 of _0x2acab9){const _0x9f37eb=_0x21f199===_0x2acab9[_0x3aa218-0x1],{cdnUrl:_0x8844f6,fileInfo:_0x281b32}=_0x21f199;if(!_0x8844f6||!_0x281b32)continue;const {width:_0x4d1b31,height:_0x1a05d8}=_0x281b32['imageInfo'],_0xe57b47=F(_0x8844f6,_0x4d1b31,_0x1a05d8),_0x176c42=D(_0x8844f6,_0xe57b47['width']),_0x501b1b={'id':_0x281b32['uuid'],'type':'image','attributes':{'imageDimension':_0xe57b47,..._0x176c42}};this['_insertAsset'](_0x501b1b,_0x9f37eb,_0x139836);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5a700f=>{'idle'===_0x5a700f['detail']['status']&&!_0x5a700f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===S['Local']?this['_api']['setCurrentActivity'](S['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1ff77c,_0x3de235,_0x3d93d5){const _0x4e731b=this['_editor']['model']['document']['selection'],_0x1ca61c=_0x4e731b['getSelectedElement'](),_0xee548d=!(!_0x1ca61c||!_0x1ca61c['is']('element','imageInline'));_0x3d93d5['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1ff77c,_0xee548d),_0x3de235||_0x3d93d5['setSelection'](_0x4e731b['getLastPosition']());}['_insertImage'](_0x336eed,_0x403327){const _0x2775e1=this['_editor'],{imageDimension:_0x393cbe,imageFallbackUrl:_0x47018d,imageSources:_0x1a826f}=_0x336eed['attributes'];_0x2775e1['execute']('insertImage',{'imageType':_0x403327?'imageInline':null,'source':{'uploadcareImageId':_0x336eed['id'],'src':_0x47018d,'sources':_0x1a826f,..._0x393cbe}});}}class M extends _0x3c39b8{['_editing'];['_controller']=null;static get['requires'](){return[_0x5ca1ad,z];}constructor(_0x506622){super(_0x506622),this['_editing']=_0x506622['plugins']['get'](z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x54b709){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new j(this['editor'],this['_editing'],_0x54b709);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class q{static['upload']({file:_0x44a3e4,..._0x5dacc6}){return _0xb36c10(_0x44a3e4,_0x5dacc6);}static['getInfo'](_0x521fc3,_0x50a9c7){return _0x37b1f5(_0x521fc3,_0x50a9c7);}}class W extends _0x41816c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1851ac,z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1b4e96=this['editor'];if(!!!_0x1b4e96['config']['get']('uploadcare'))return;_0x1b4e96['plugins']['get'](_0x1851ac)['createUploadAdapter']=_0x1d9a44=>new G(_0x1d9a44,_0x1b4e96),_0x1b4e96['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1b15c8,{imageElement:_0xab2446,data:_0x1b406e})=>{_0x1b4e96['model']['change'](_0x4fde71=>{_0x4fde71['setAttribute']('uploadcareImageId',_0x1b406e['uploadcareImageId'],_0xab2446);});});}}class G{['loader'];['editor'];['controller'];constructor(_0x30d434,_0x1bd780){this['loader']=_0x30d434,this['editor']=_0x1bd780,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x361c01=await this['loader']['file'];return q['upload']({'file':_0x361c01,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x116842=>{_0x116842&&_0x116842['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x116842['value']);}})['then'](async _0x33f495=>{const {imageFallbackUrl:_0x3a8b70,imageSources:_0x370a7a}=D(_0x33f495['cdnUrl'],_0x33f495['imageInfo']['width']);return{'uploadcareImageId':_0x33f495['uuid'],'default':_0x3a8b70,'sources':_0x370a7a};})['catch'](()=>{const _0x4b5e6f=t('Cannot\x20upload\x20file:')+('\x20'+_0x361c01['name']+'.');return Promise['reject'](_0x4b5e6f);});}['abort'](){this['controller']['abort']();}}class z extends _0x41816c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',W,_0x5ca1ad];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1c4bd3){super(_0x1c4bd3),this['ucContextId']=_0x297096();}['init'](){const _0x4eb2d9=this['editor'];_0x4eb2d9['commands']['add']('uploadcare',new M(_0x4eb2d9));}['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 _0x413e41=_0x568424['document']['querySelector']('input[uploadcare-file-input]');_0x413e41&&_0x413e41['remove']();}),async function(_0x39f86f){const _0x1c3e2a=_0x4ebc51([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x56c4e0=0x535f8c3a,_0x3ea8da=0x53580c3a^_0x56c4e0,_0x38826=window[_0x4ebc51([0x44,0x61,0x74,0x65])][_0x4ebc51([0x6e,0x6f,0x77])](),_0x3f81a0=_0x39f86f[_0x4ebc51([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4d38f8=new window[(_0x4ebc51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f935b=>{_0x3f81a0[_0x4ebc51([0x6f,0x6e,0x63,0x65])](_0x4ebc51([0x72,0x65,0x61,0x64,0x79]),_0x3f935b);}),_0x7c2b7f={[_0x4ebc51([0x6b,0x74,0x79])]:_0x4ebc51([0x45,0x43]),[_0x4ebc51([0x75,0x73,0x65])]:_0x4ebc51([0x73,0x69,0x67]),[_0x4ebc51([0x63,0x72,0x76])]:_0x4ebc51([0x50,0x2d,0x32,0x35,0x36]),[_0x4ebc51([0x78])]:_0x4ebc51([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]),[_0x4ebc51([0x79])]:_0x4ebc51([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]),[_0x4ebc51([0x61,0x6c,0x67])]:_0x4ebc51([0x45,0x53,0x32,0x35,0x36])},_0x265614=_0x3f81a0[_0x4ebc51([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4ebc51([0x67,0x65,0x74])](_0x4ebc51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1678c9(){let _0x2170c4,_0x58224c=null,_0x1df323=null;try{if(_0x265614==_0x4ebc51([0x47,0x50,0x4c]))return _0x4ebc51([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2170c4=_0x49cc78(),!_0x2170c4)return _0x4ebc51([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2170c4[_0x4ebc51([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1df323=_0x3d0584(_0x2170c4[_0x4ebc51([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2170c4[_0x4ebc51([0x6a,0x74,0x69])])),await _0x726f68()?_0x3fd0ba()?_0x5df10a()?_0x4ebc51([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4fcbe9()?(_0x2170c4[_0x4ebc51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ebc51([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58224c=_0x4260ea(_0x4ebc51([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b0d53()):_0x4ebc51([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4ebc51([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4ebc51([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4ebc51([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5df10a(){const _0x4d1f30=[_0x4ebc51([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4ebc51([0x74,0x72,0x69,0x61,0x6c])][_0x4ebc51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2170c4[_0x4ebc51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38826/0x3e8:0xe10*_0x3ea8da;return _0x2170c4[_0x4ebc51([0x65,0x78,0x70])]<_0x4d1f30;}function _0x3fd0ba(){const _0x1d608d=_0x2170c4[_0x4ebc51([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1d608d&&(!!_0x1d608d[_0x4ebc51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ebc51([0x2a]))||!!_0x1d608d[_0x4ebc51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ebc51([0x55,0x50,0x4c,0x43])));}function _0x4fcbe9(){const _0x1f1904=_0x2170c4[_0x4ebc51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1f1904||0x0==_0x1f1904[_0x4ebc51([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3e4fa6}=new URL(window[_0x4ebc51([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1f1904[_0x4ebc51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e4fa6))return!0x0;const _0x4f1015=_0x3e4fa6[_0x4ebc51([0x73,0x70,0x6c,0x69,0x74])](_0x4ebc51([0x2e]));return _0x1f1904[_0x4ebc51([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x378a32=>_0x378a32[_0x4ebc51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ebc51([0x2a])))[_0x4ebc51([0x6d,0x61,0x70])](_0x2ca72a=>_0x2ca72a[_0x4ebc51([0x73,0x70,0x6c,0x69,0x74])](_0x4ebc51([0x2e])))[_0x4ebc51([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x191a29=>_0x191a29[_0x4ebc51([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4f1015[_0x4ebc51([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ebc51([0x6d,0x61,0x70])](_0x5b1ba1=>Array(_0x4f1015[_0x4ebc51([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5b1ba1[_0x4ebc51([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ebc51([0x66,0x69,0x6c,0x6c])](_0x5b1ba1[0x0]===_0x4ebc51([0x2a])?_0x4ebc51([0x2a]):'')[_0x4ebc51([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5b1ba1))[_0x4ebc51([0x73,0x6f,0x6d,0x65])](_0x228942=>_0x4f1015[_0x4ebc51([0x65,0x76,0x65,0x72,0x79])]((_0x490c04,_0x29db48)=>_0x228942[_0x29db48]===_0x490c04||_0x228942[_0x29db48]===_0x4ebc51([0x2a])));}function _0x3b0d53(){return _0x58224c&&_0x1df323?new window[(_0x4ebc51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37654d,_0x2643a0)=>{_0x58224c[_0x4ebc51([0x74,0x68,0x65,0x6e])](_0x37654d,_0x2643a0),_0x1df323[_0x4ebc51([0x74,0x68,0x65,0x6e])](_0x57965b=>{_0x57965b!=_0x4ebc51([0x56,0x61,0x6c,0x69,0x64])&&_0x37654d(_0x57965b);},_0x2643a0);}):_0x58224c||_0x1df323||_0x4ebc51([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d0584(_0x4b5157,_0x14150f){return new window[(_0x4ebc51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ee146=>{if(_0x248048())return _0x1ee146(_0x4ebc51([0x56,0x61,0x6c,0x69,0x64]));_0x2cc110(),_0x3f81a0[_0x4ebc51([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4ebc51([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xca3e4a=!0x1;const _0x2137ad=_0x297096();function _0x55af2b(_0x59ee66){return!!_0x59ee66&&(typeof _0x59ee66===_0x4ebc51([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x59ee66===_0x4ebc51([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x59ee66[_0x4ebc51([0x74,0x68,0x65,0x6e])]===_0x4ebc51([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x59ee66[_0x4ebc51([0x63,0x61,0x74,0x63,0x68])]===_0x4ebc51([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x50123b(_0x3eadf7){_0x5bfe0d(_0x3eadf7)[_0x4ebc51([0x74,0x68,0x65,0x6e])](_0x2ef4c0=>{if(!_0x2ef4c0||_0x2ef4c0[_0x4ebc51([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4ebc51([0x6f,0x6b]))return _0x4ebc51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x360f1a(_0x1a9221(_0x2137ad+_0x14150f))!=_0x2ef4c0[_0x4ebc51([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4ebc51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4ebc51([0x56,0x61,0x6c,0x69,0x64]);})[_0x4ebc51([0x74,0x68,0x65,0x6e])](_0x56750b=>(_0x4da6cd(),_0x56750b),()=>{const _0x4400f8=_0x3d7630();return null==_0x4400f8?(_0x4da6cd(),_0x4ebc51([0x56,0x61,0x6c,0x69,0x64])):_0x4ebc51(_0x38826-_0x4400f8>(0x7753083a^_0x56c4e0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4ebc51([0x74,0x68,0x65,0x6e])](_0x1ee146)[_0x4ebc51([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ee146(_0x4ebc51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5a1ca0=0x536962ba^_0x56c4e0;function _0x4da6cd(){const _0xeee924=_0x4ebc51([0x6c,0x6c,0x63,0x74,0x2d])+_0x360f1a(_0x1a9221(_0x4b5157)),_0x4bd8b8=_0x5c707d(_0x360f1a(window[_0x4ebc51([0x4d,0x61,0x74,0x68])][_0x4ebc51([0x63,0x65,0x69,0x6c])](_0x38826/_0x5a1ca0)));window[_0x4ebc51([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ebc51([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xeee924,_0x4bd8b8);}function _0x3d7630(){const _0xfc6c0a=_0x4ebc51([0x6c,0x6c,0x63,0x74,0x2d])+_0x360f1a(_0x1a9221(_0x4b5157)),_0x16b60c=window[_0x4ebc51([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ebc51([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfc6c0a);return _0x16b60c?window[_0x4ebc51([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c707d(_0x16b60c),0x10)*_0x5a1ca0:null;}function _0x5bfe0d(_0x494322){return new window[(_0x4ebc51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2da996,_0x24da65)=>{_0x494322[_0x4ebc51([0x74,0x68,0x65,0x6e])](_0x2da996,_0x24da65),window[_0x4ebc51([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24da65,0x535e58fa^_0x56c4e0);});}}_0x3f81a0[_0x4ebc51([0x6f,0x6e])](_0x4ebc51([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x37c9c2,_0x1a0ff4)=>{if(_0x1a0ff4[0x0]!=_0x4b5157)return _0x1ee146(_0x4ebc51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1a0ff4[0x1]={..._0x1a0ff4[0x1],[_0x4ebc51([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2137ad};},{[_0x4ebc51([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ebc51([0x68,0x69,0x67,0x68])}),_0x3f81a0[_0x4ebc51([0x6f,0x6e])](_0x4ebc51([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2942aa=>{_0x55af2b(_0x2942aa[_0x4ebc51([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xca3e4a=!0x0,_0x50123b(_0x2942aa[_0x4ebc51([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4ebc51([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ebc51([0x6c,0x6f,0x77])}),_0x4d38f8[_0x4ebc51([0x74,0x68,0x65,0x6e])](()=>{_0xca3e4a||_0x1ee146(_0x4ebc51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x248048(){return _0x3f81a0[_0x4ebc51([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ebc51([0x76,0x69,0x65,0x77])][_0x4ebc51([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4ebc51([0x61,0x75,0x74,0x6f]);}function _0x2cc110(){_0x3f81a0[_0x4ebc51([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ebc51([0x76,0x69,0x65,0x77])][_0x4ebc51([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ebc51([0x61,0x75,0x74,0x6f]);}}function _0x4260ea(_0x1896f4){const _0x44f269=[new window[(_0x4ebc51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18cbf9=>setTimeout(_0x18cbf9,0x5356b2f6^_0x56c4e0)),_0x4d38f8[_0x4ebc51([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4ebc51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5855ad=>{let _0x471127=0x0;_0x3f81a0[_0x4ebc51([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ebc51([0x6f,0x6e])](_0x4ebc51([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe8c3f2,_0x238ece)=>{_0x238ece[0x0][_0x4ebc51([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x471127++,_0x471127==(0x535f89d2^_0x56c4e0)&&(_0x5855ad(),_0xe8c3f2[_0x4ebc51([0x6f,0x66,0x66])]());});}))];return window[_0x4ebc51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ebc51([0x72,0x61,0x63,0x65])](_0x44f269)[_0x4ebc51([0x74,0x68,0x65,0x6e])](()=>_0x1896f4);}async function _0x369627(){await _0x4d38f8,_0x3f81a0[_0x4ebc51([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ebc51([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5242a2,_0x3f81a0[_0x4ebc51([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ebc51([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5242a2,_0x3f81a0[_0x4ebc51([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ebc51([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c43e4(_0x311abd){const _0x3ccd2e=_0x592f82();_0x3f81a0[_0x3ccd2e]=_0x4ebc51([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x311abd,_0x311abd!=_0x4ebc51([0x56,0x61,0x6c,0x69,0x64])&&_0x369627();}function _0x592f82(){const _0x133232=window[_0x4ebc51([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4ebc51([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ebc51([0x6e,0x6f,0x77])]())[_0x4ebc51([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ebc51([0x2e]),'');let _0x48420f=_0x4ebc51([0x68]);for(let _0x3f0e37=0x0;_0x3f0e37<_0x133232[_0x4ebc51([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f0e37+=0x2){let _0x2a0840=window[_0x4ebc51([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x133232[_0x4ebc51([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f0e37,_0x3f0e37+0x2));_0x2a0840>=_0x1c3e2a[_0x4ebc51([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2a0840-=_0x1c3e2a[_0x4ebc51([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x48420f+=_0x1c3e2a[_0x2a0840];}return _0x48420f;}function _0x49cc78(){const _0x4c2263=_0x265614[_0x4ebc51([0x73,0x70,0x6c,0x69,0x74])](_0x4ebc51([0x2e]));if(0x3!=_0x4c2263[_0x4ebc51([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e9d35(_0x4c2263[0x1]);function _0x4e9d35(_0x422f2b){const _0x3685dc=_0x49ec20(_0x422f2b);return _0x3685dc&&_0x4d31e8()?_0x3685dc:null;function _0x4d31e8(){const _0x24d7b8=_0x3685dc[_0x4ebc51([0x6a,0x74,0x69])],_0x1bd98f=window[_0x4ebc51([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24d7b8[_0x4ebc51([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24d7b8[_0x4ebc51([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4bb8c0={..._0x3685dc,[_0x4ebc51([0x6a,0x74,0x69])]:_0x24d7b8[_0x4ebc51([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24d7b8[_0x4ebc51([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4bb8c0[_0x4ebc51([0x76,0x63])],_0x1a9221(_0x4bb8c0)==_0x1bd98f;}}}async function _0x726f68(){let _0x496236=!0x0;try{const _0xb1a07b=_0x265614[_0x4ebc51([0x73,0x70,0x6c,0x69,0x74])](_0x4ebc51([0x2e])),[_0x52097f,_0x135405,_0x5eee83]=_0xb1a07b;return _0x379a78(_0x52097f),await _0x12076d(_0x52097f,_0x135405,_0x5eee83),_0x496236;}catch{return!0x1;}function _0x379a78(_0x46064d){const _0x4e565c=_0x49ec20(_0x46064d);_0x4e565c&&_0x4e565c[_0x4ebc51([0x61,0x6c,0x67])]==_0x4ebc51([0x45,0x53,0x32,0x35,0x36])||(_0x496236=!0x1);}async function _0x12076d(_0x2f25d6,_0x48a907,_0x47e194){const _0x45a238=window[_0x4ebc51([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4ebc51([0x66,0x72,0x6f,0x6d])](_0x512da6(_0x47e194),_0x574aca=>_0x574aca[_0x4ebc51([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1949c2=new window[(_0x4ebc51([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4ebc51([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f25d6+_0x4ebc51([0x2e])+_0x48a907),_0xd044aa=window[_0x4ebc51([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4ebc51([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd044aa)return;const _0x472fe7=await _0xd044aa[_0x4ebc51([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4ebc51([0x6a,0x77,0x6b]),_0x7c2b7f,{[_0x4ebc51([0x6e,0x61,0x6d,0x65])]:_0x4ebc51([0x45,0x43,0x44,0x53,0x41]),[_0x4ebc51([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4ebc51([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4ebc51([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd044aa[_0x4ebc51([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4ebc51([0x6e,0x61,0x6d,0x65])]:_0x4ebc51([0x45,0x43,0x44,0x53,0x41]),[_0x4ebc51([0x68,0x61,0x73,0x68])]:{[_0x4ebc51([0x6e,0x61,0x6d,0x65])]:_0x4ebc51([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x472fe7,_0x45a238,_0x1949c2)||(_0x496236=!0x1);}}function _0x49ec20(_0x1e5259){return _0x1e5259[_0x4ebc51([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4ebc51([0x65,0x79]))?JSON[_0x4ebc51([0x70,0x61,0x72,0x73,0x65])](_0x512da6(_0x1e5259)):null;}function _0x512da6(_0x30203c){return window[_0x4ebc51([0x61,0x74,0x6f,0x62])](_0x30203c[_0x4ebc51([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4ebc51([0x2b]))[_0x4ebc51([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4ebc51([0x2f])));}function _0x1a9221(_0x5556e8){let _0x13d38b=0x1505;function _0x33fd14(_0x43d74c){for(let _0x451588=0x0;_0x451588<_0x43d74c[_0x4ebc51([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x451588++){const _0x5e553a=_0x43d74c[_0x4ebc51([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x451588);_0x13d38b=(_0x13d38b<<0x5)+_0x13d38b+_0x5e553a,_0x13d38b&=_0x13d38b;}}function _0x245b5f(_0x4d6c28){Array[_0x4ebc51([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d6c28)?_0x4d6c28[_0x4ebc51([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x245b5f):_0x4d6c28&&typeof _0x4d6c28==_0x4ebc51([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4ebc51([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d6c28)[_0x4ebc51([0x73,0x6f,0x72,0x74])]()[_0x4ebc51([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x306da3,_0x485bff])=>{_0x33fd14(_0x306da3),_0x245b5f(_0x485bff);}):_0x33fd14(window[_0x4ebc51([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d6c28));}return _0x245b5f(_0x5556e8),_0x13d38b>>>0x0;}function _0x360f1a(_0x9467df){return _0x9467df[_0x4ebc51([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4ebc51([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4ebc51([0x30]));}function _0x5c707d(_0x15f0c6){return _0x15f0c6[_0x4ebc51([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4ebc51([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4ebc51([0x6a,0x6f,0x69,0x6e])]('');}function _0x5242a2(){}function _0x4ebc51(_0x53de28){return _0x53de28['map'](_0x33c738=>String['fromCharCode'](_0x33c738))['join']('');}_0x2c43e4(await _0x1678c9());}(this);}['_initSchema'](){const _0x34c485=this['editor']['model']['schema'];_0x34c485['isRegistered']('imageBlock')&&_0x34c485['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x34c485['isRegistered']('imageInline')&&_0x34c485['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x26cbd8=this['editor'];_0x26cbd8['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x26cbd8['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x42cef4=>_0x42cef4['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x19bdea=_0x26cbd8['commands']['get']('replaceImageSource');_0x19bdea&&this['listenTo'](_0x19bdea,'cleanupImage',(_0x2b674e,[_0x2cc720,_0xda327a])=>{_0x2cc720['removeAttribute']('uploadcareImageId',_0xda327a);});}['_initConfig'](){const _0x4f5889=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4a6e4a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xf585bb(_0x568424['document'],'uc-config',{..._0x4f5889,'pubkey':_0x4a6e4a,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x51e51e=>{if('closeMax'==_0x51e51e)return'#uc-icon-arrow-down';},_0x568424['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xf585bb(_0x568424['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x568424['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x90ecbe=this['editor']['commands']['get']('insertImage');_0x90ecbe&&this['listenTo'](_0x90ecbe,'execute',()=>{const _0x155502=this['editor']['model']['document']['selection']['getSelectedElement']();_0x155502&&_0x155502['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x155502);});});const _0x377864=this['editor']['commands']['get']('uploadcareImageReplace');_0x377864&&this['listenTo'](_0x377864,'execute',()=>{const _0x109900=this['editor']['model']['document']['selection']['getSelectedElement']();_0x109900&&_0x109900['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x109900);});});}}class H extends _0x41816c{static get['requires'](){return[z,A];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3595d2){super(_0x3595d2),_0x3595d2['config']['define']('uploadcare.uploader.sourceList',[S['Local'],S['URL']]),_0x207db7['defineComponents'](_0x207db7),this['_defineLocale']();}['_defineLocale'](){const _0xfcf488=this['editor']['config']['get']('uploadcare.locale'),_0x4f91bc=this['editor']['locale']['contentLanguage'];_0xfcf488&&_0x207db7['defineLocale'](_0x4f91bc,_0xfcf488);}}class J extends _0x2d9937{constructor(_0x1f2bae){super(_0x1f2bae);const t=_0x1f2bae['t'],_0x19090f=this['bindTemplate'],_0x16569d=new _0x1f833e();_0x16569d['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':[_0x16569d,{'text':_0x19090f['to']('imageUploadProgress',_0x4687e0=>t('Loading\x20image...')+'\x20('+(_0x4687e0||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 Z extends _0x2d9937{constructor(_0x566c9d){super(_0x566c9d);const t=_0x566c9d['t'];this['set']('errorType',null);const _0x129d79=new _0x45198d(_0x566c9d);_0x129d79['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x129d79['withText']=!0x0,_0x129d79['class']='ck-button-action',_0x129d79['on']('execute',()=>{this['fire']('retry');}),_0x129d79['bind']('isVisible')['to'](this,'errorType',_0x512f9f=>'NotFound'!==_0x512f9f);const _0x4f7624=new _0x12a2a9();_0x4f7624['content']=_0x2e0735,_0x4f7624['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xfe3a54=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':[_0x4f7624,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xfe3a54['to']('errorType',_0x33922e=>t('NotFound'!==_0x33922e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x129d79]},{'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 Q extends _0x2d9937{constructor(_0x11d315,_0x277d1b){super(_0x11d315);const _0x124adb=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x277d1b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x124adb['to']('imageSrc')}});}}class X extends K{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3f3c35,_0x3fc8b9,_0x57ed39){super(_0x3f3c35),this['_items']=this['createCollection'](),this['_loadingView']=new J(_0x3f3c35),this['_errorView']=new Z(_0x3f3c35),this['_editingView']=new Q(_0x3f3c35,_0x57ed39),this['_focusableView']=new _0x2d9937(_0x3f3c35),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3fc8b9),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'],_0x495434=>{this['_addUploadcareImageEditorListeners'](_0x495434);});}),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'](_0x1367cd,_0x2b104b){const _0x29bba7='uc-cloud-image-editor',_0x5e914c=_0x1367cd['querySelector'](_0x29bba7);if(_0x5e914c)return _0x2b104b(_0x5e914c);const _0x594720=new MutationObserver(_0x3ae17c=>{const _0x25feb7=_0x3ae17c['filter'](_0x6542ce=>_0x6542ce['target']===_0x1367cd&&_0x6542ce['addedNodes']['length']>0x0&&_0x6542ce['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x29bba7);_0x25feb7['length']&&(_0x594720['disconnect'](),_0x2b104b(_0x25feb7[0x0]['addedNodes'][0x0]));});_0x594720['observe'](_0x1367cd,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xbeb0b0){_0xbeb0b0['addEventListener']('apply',_0x274d2d=>{this['fire']('apply',{'imageSrc':_0x274d2d['detail']['cdnUrl']});}),_0xbeb0b0['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Y extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x319eb9(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x187ca9,_0x31a6d6,_0x28d5ed){super(),this['_editor']=_0x187ca9,this['_dialog']=_0x31a6d6,this['_imageElement']=_0x28d5ed,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 _0x307161=this['_imageElement'],_0x318de2=_0x307161['getAttribute']('uploadcareImageId'),_0x5b3035=_0x307161['getAttribute']('src');if(_0x318de2)await this['_loadImageInfo'](_0x318de2,_0x5b3035);else{if(this['_imageCache']['has'](_0x5b3035)){const _0x40fdba=this['_imageCache']['get'](_0x5b3035);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40fdba['url'],this['imageDimension']=_0x40fdba['dimension'],this['imageId']=_0x40fdba['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x29d83d}=this['_editor'],t=_0x29d83d['t'],_0x200a68=new X(_0x29d83d,this['imageStatus'],this['_attributes']);_0x200a68['bind']('status')['to'](this,'imageStatus'),_0x200a68['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x200a68['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x200a68['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x200a68,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x21b7f3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x200a68,'position':_0x4257c4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x200a68['focus']();},'onHide':()=>{_0x200a68['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e8864=>!V(_0x5e8864,_0x200a68['element'])}});}['_loadImageInfo'](_0x311bb4,_0x5bb4b7){return q['getInfo'](_0x311bb4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1d0db4=>{const {width:_0x251783,height:_0x41db8c}=_0x1d0db4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5bb4b7,this['imageDimension']={'width':_0x251783,'height':_0x41db8c},this['imageId']=_0x311bb4;})['catch'](_0x43f26e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x43f26e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x389346,_0x53919d){return this['_getImageAsFile'](_0x389346)['then'](_0x1c502e=>q['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x53919d['signal'],'file':_0x1c502e,'onProgress':_0x8800c2=>{_0x8800c2&&_0x8800c2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x8800c2['value']));}}))['then'](_0x1c4b9f=>{const {width:_0x515a52,height:_0x3562c5}=_0x1c4b9f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1c4b9f['cdnUrl'],this['imageDimension']={'width':_0x515a52,'height':_0x3562c5},this['imageId']=_0x1c4b9f['uuid'],this['imageUploadProgress']=null;const _0x577414=_0x389346['getAttribute']('src');this['_imageCache']['set'](_0x577414,{'id':_0x1c4b9f['uuid'],'url':_0x1c4b9f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4a9dfe=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4a9dfe['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x12b14c,_0x4602f6){_0x12b14c['on']('apply',(_0x55f0e4,_0x454773)=>{this['_replaceImage'](_0x4602f6,_0x454773['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x12b14c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x12b14c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2d7be4,_0x1102cc,_0x2e8e62){const _0x25f362=this['_editor'],{width:_0x55ffab,height:_0x36859b}=F(_0x1102cc,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x72f1be,imageSources:_0x5c7e4f}=D(_0x1102cc,_0x55ffab);_0x25f362['model']['change'](_0x3fd694=>{if('$graveyard'===_0x2d7be4['root']['rootName']){_0x25f362['execute']('insertImage',{'imageType':_0x2d7be4['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2d7be4['getAttributes']()),'uploadcareImageId':_0x2e8e62,'src':_0x72f1be,'sources':_0x5c7e4f,'width':_0x55ffab,'height':_0x36859b}});const _0x159200=_0x2d7be4['getChildren']();_0x2d7be4=_0x25f362['model']['document']['selection']['getSelectedElement']();for(const _0x4721e5 of _0x159200)_0x3fd694['append'](_0x3fd694['cloneElement'](_0x4721e5),_0x2d7be4);}else _0x3fd694['setSelection'](_0x2d7be4,'on'),_0x25f362['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2d7be4['getAttributes']()),'uploadcareImageId':_0x2e8e62,'src':_0x72f1be,'sources':_0x5c7e4f,'width':_0x55ffab,'height':_0x36859b},_0x2d7be4);_0x3fd694['setSelection'](_0x2d7be4,'on');});}async['_getImageAsFile'](_0x56a503){const _0x8c4cf6=_0x568424['window'],_0x3a1878=_0x568424['document']['location']['href'],_0x4352a8=new _0x8c4cf6['URL'](_0x56a503['getAttribute']('src'),_0x3a1878);if('data:'===_0x4352a8['protocol']){const _0x177bf0=_0x4352a8['href']['split'](','),_0x3eb84a=_0x177bf0[0x0]['match'](/:(.*?);/)[0x1],_0x28b3db=_0x3eb84a['split']('/')[0x1],_0x307de1=_0x8c4cf6['atob'](_0x177bf0[_0x177bf0['length']-0x1]);let _0x24efdf=_0x307de1['length'];const _0x4b988e=new _0x8c4cf6['Uint8Array'](_0x24efdf);for(;_0x24efdf--;)_0x4b988e[_0x24efdf]=_0x307de1['charCodeAt'](_0x24efdf);return new _0x8c4cf6['File']([_0x4b988e],'image.'+_0x28b3db,{'type':_0x3eb84a});}const _0x461c6e=_0x4352a8['href']['split']('/'),_0x2cc1d9=_0x461c6e[_0x461c6e['length']-0x1],_0x1711b3=_0x2cc1d9['split']('.')[0x1];return _0x8c4cf6['fetch'](_0x4352a8['href'])['then'](_0x169a05=>_0x169a05['clone']()['blob']())['then'](_0x2b0582=>new _0x8c4cf6['File']([_0x2b0582],_0x2cc1d9,{'type':'image/'+_0x1711b3}));}}class tt extends _0x3c39b8{['imageEditController'];static get['requires'](){return[_0x5ca1ad];}['_isEditable'];constructor(_0x28d776){super(_0x28d776),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x35aeb7){const _0xb9ba71=B(_0x35aeb7);return _0x195dd3=>!(!_0x195dd3||!_0x195dd3['is']('element','imageBlock')&&!_0x195dd3['is']('element','imageInline'))&&(!!_0x195dd3['hasAttribute']('uploadcareImageId')||!!_0x195dd3['hasAttribute']('src')&&_0xb9ba71(_0x195dd3['getAttribute']('src')));}(_0x28d776['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x30ee64=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x30ee64);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2075a2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2075a2&&(_0x2075a2['is']('element','imageBlock')||_0x2075a2['is']('element','imageInline'))&&(this['imageEditController']=new Y(this['editor'],this['editor']['plugins']['get'](_0x5ca1ad),_0x2075a2),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class et extends _0x3c39b8{['refresh'](){const _0x265641=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x265641&&(_0x265641['is']('element','imageBlock')||_0x265641['is']('element','imageInline')));}['execute'](_0x44e844){const _0x50fb07=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x36dc6b=>{_0x36dc6b['setAttributes'](_0x44e844,_0x50fb07),_0x36dc6b['removeAttribute']('srcset',_0x50fb07),_0x36dc6b['removeAttribute']('sizes',_0x50fb07);});}}class it extends _0x41816c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[z,_0x734e51,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2e41dd}=this;_0x2e41dd['commands']['add']('uploadcareImageEdit',new tt(_0x2e41dd)),_0x2e41dd['commands']['add']('uploadcareImageReplace',new et(_0x2e41dd));}}class st extends _0x41816c{['_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 _0x59a542=this['editor'];_0x59a542['ui']['componentFactory']['add']('uploadcareImageEdit',_0x35293e=>{const _0x5aa18b=_0x59a542['commands']['get']('uploadcareImageEdit'),_0x2e9233=new _0x45198d(_0x35293e),t=_0x35293e['t'];return _0x2e9233['set']({'icon':_0x21b7f3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2e9233['bind']('isEnabled')['to'](_0x5aa18b),_0x2e9233['bind']('isOn')['to'](_0x5aa18b,'isActive'),this['listenTo'](_0x2e9233,'execute',()=>{_0x59a542['execute']('uploadcareImageEdit'),_0x59a542['editing']['view']['focus']();}),_0x2e9233;}),this['_initConfig']();}['_initConfig'](){const _0x2d8b6d=_0xf585bb(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2d8b6d),this['listenTo'](this['editor'],'destroy',()=>{_0x2d8b6d['remove']();});}}class nt extends _0x41816c{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[it,st];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{H as Uploadcare,M as UploadcareCommand,z as UploadcareEditing,nt as UploadcareImageEdit,tt as UploadcareImageEditCommand,it as UploadcareImageEditEditing,st as UploadcareImageEditUI,A as UploadcareUI,W as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x40d115,Command as _0x1f911f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1fe4d2,IconGooglePhotos as _0x3aea8e,IconGoogleDrive as _0x41b317,IconFacebook as _0x1d36bc,IconDropbox as _0x5b8ea0,IconUploadcareLink as _0x46d846,IconUploadcareImageUpload as _0x5da03c,IconError as _0x2c237d,IconUploadcareImageEdit as _0x2c500c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3a247a,MenuBarMenuListItemButtonView as _0x299822,View as _0x23451b,FocusCycler as _0x3e2b12,Dialog as _0x4a031b,DialogViewPosition as _0x44822f,SpinnerView as _0x3c5854,IconView as _0x5b6444,Notification as _0x4cd4d9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2d9958,DomEmitterMixin as _0x73236d,global as _0x266f0b,getAncestors as _0x2aa77d,ObservableMixin as _0x1c0d2a,uid as _0x4f0214,createElement as _0x68204e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x378fbf}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x348ae8,info as _0x31fa90}from'@uploadcare/upload-client';import*as _0xf6082a from'@uploadcare/file-uploader';var S=function(_0x53ddd8){return _0x53ddd8['Local']='local',_0x53ddd8['URL']='url',_0x53ddd8['Dropbox']='dropbox',_0x53ddd8['GDrive']='gdrive',_0x53ddd8['Facebook']='facebook',_0x53ddd8['GPhotos']='gphotos',_0x53ddd8['OneDrive']='onedrive',_0x53ddd8;}({});function T(_0x4e8fb8,_0x23c2fd,_0x1f19cc){const t=_0x4e8fb8['t'],_0x2072aa=_0x4e8fb8['t'];switch(_0x23c2fd){case S['Local']:return{'text':_0x2072aa('Insert'===_0x1f19cc?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2072aa('From\x20computer')};case S['URL']:return{'text':'Insert'===_0x1f19cc?_0x2072aa('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2072aa('Via\x20URL')};case S['Dropbox']:return{'text':t('Insert'===_0x1f19cc?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case S['Facebook']:return{'text':t('Insert'===_0x1f19cc?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case S['GDrive']:return{'text':t('Insert'===_0x1f19cc?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case S['GPhotos']:return{'text':t('Insert'===_0x1f19cc?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case S['OneDrive']:return{'text':t('Insert'===_0x1f19cc?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x23c2fd;}}class A extends _0x40d115{['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 _0x1afa40=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x311b4d;for(const _0x4dda3f in _0x1afa40){const _0x27fb97=_0x4dda3f,_0x4adbb1=_0x1afa40[_0x27fb97];if('uploadcareLicenseKeyValid'==_0x4adbb1||'uploadcareLicenseKeyInvalid'==_0x4adbb1||'uploadcareLicenseKeyExpired'==_0x4adbb1||'uploadcareLicenseKeyDomainLimit'==_0x4adbb1||'uploadcareLicenseKeyNotAllowed'==_0x4adbb1||'uploadcareLicenseKeyEvaluationLimit'==_0x4adbb1||'uploadcareLicenseKeyUsageLimit'==_0x4adbb1){delete _0x1afa40[_0x27fb97],_0x311b4d=_0x4adbb1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x311b4d&&_0x1afa40['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x311b4d&&_0x1afa40['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x311b4d&&_0x1afa40['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x311b4d&&_0x1afa40['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x311b4d&&_0x1afa40['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x311b4d&&_0x1afa40['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x40a7be}=this,_0x3173cd=_0x40a7be['commands']['get']('uploadcare');if(!_0x3173cd)return;const _0x22e799=this['_normalizeConfigSourceList'](_0x40a7be['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x115819,_0xf7de98)=>{const _0xe72dd=this['_getIntegrationKey'](_0xf7de98['type']);return _0x115819[_0xe72dd]||(_0x115819[_0xe72dd]=[]),_0x115819[_0xe72dd]['push'](_0xf7de98),_0x115819;},{});_0x40a7be['plugins']['has']('ImageInsertUI')&&_0x40a7be['commands']['get']('uploadcare')&&Object['entries'](_0x22e799)['forEach'](([_0x14799a,_0x21454c])=>{_0x40a7be['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x14799a,'observable':()=>_0x3173cd,'buttonViewCreator':()=>this['_createToolbarButton'](_0x21454c),'formViewCreator':()=>this['_createDropdownButtons'](_0x21454c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x21454c),'override':'assetManager'!==_0x14799a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x22cda5){const {locale:_0x16c6a4}=this['editor'];return _0x22cda5['map'](_0x535329=>{const _0x4fe8dc=T(_0x16c6a4,_0x535329,'Insert');switch(_0x535329){case S['Local']:return{'icon':_0x5da03c,'type':S['Local'],..._0x4fe8dc};case S['URL']:return{'icon':_0x46d846,'type':S['URL'],..._0x4fe8dc};case S['Dropbox']:return{'icon':_0x5b8ea0,'type':S['Dropbox'],..._0x4fe8dc};case S['Facebook']:return{'icon':_0x1d36bc,'type':S['Facebook'],..._0x4fe8dc};case S['GDrive']:return{'icon':_0x41b317,'type':S['GDrive'],..._0x4fe8dc};case S['GPhotos']:return{'icon':_0x3aea8e,'type':S['GPhotos'],..._0x4fe8dc};case S['OneDrive']:return{'icon':_0x1fe4d2,'type':S['OneDrive'],..._0x4fe8dc};}});}['_getIntegrationKey'](_0x104cee){switch(_0x104cee){case S['Local']:return'upload';case S['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x152fcf,_0x40cfc9){const _0x307619=this['editor'],_0x3fd4c0=new _0x152fcf(_0x307619['locale']),_0x447550=_0x307619['commands']['get']('uploadcare');return _0x3fd4c0['bind']('isEnabled')['to'](_0x447550),_0x3fd4c0['on']('execute',()=>{_0x447550['execute'](_0x40cfc9);}),_0x3fd4c0;}['_createToolbarButton'](_0x19d170){const {locale:_0x1d27ea}=this['editor'],_0x1bed3d=this['editor']['plugins']['get']('ImageInsertUI'),_0x24d2fa=_0x19d170[0x0],_0x143122=this['_createButton'](_0x3a247a,_0x24d2fa['type']);return _0x143122['icon']=_0x24d2fa['icon'],_0x143122['bind']('label')['to'](_0x1bed3d,'isImageSelected',_0x347a8a=>T(_0x1d27ea,_0x24d2fa['type'],_0x347a8a?'Replace':'Insert')['text']),_0x143122['tooltip']=!0x0,_0x143122;}['_createDropdownButtons'](_0xe578df){const {locale:_0x3aebde}=this['editor'],_0x29e23c=this['editor']['plugins']['get']('ImageInsertUI');return _0xe578df['map'](_0x1deb10=>{const _0x2da9a3=this['_createButton'](_0x3a247a,_0x1deb10['type']);return _0x2da9a3['withText']=!0x0,_0x2da9a3['icon']=_0x1deb10['icon'],_0x2da9a3['bind']('label')['to'](_0x29e23c,'isImageSelected',_0x1616d9=>T(_0x3aebde,_0x1deb10['type'],_0x1616d9?'Replace':'Insert')['text']),_0x2da9a3;});}['_createMenuBarButtons'](_0x3a87d4){return _0x3a87d4['map'](_0x3841c1=>{const _0x38c37f=this['_createButton'](_0x299822,_0x3841c1['type']);return _0x38c37f['icon']=_0x3841c1['icon'],_0x38c37f['label']=_0x3841c1['shortText'],_0x38c37f;});}}class K extends _0x23451b{['focusTracker'];['focusCycler'];constructor(_0x5eb39e){super(_0x5eb39e),this['focusTracker']=new _0x2d9958(),this['focusCycler']=new _0x3e2b12({'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 O extends K{constructor(_0x5e2f6f,_0x51913c){super(_0x5e2f6f),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-'+_0x51913c}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function D(_0x268acd,_0x5b72f2){const _0x5818df=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x584913=>_0x584913<=_0x5b72f2)['map'](_0x379910=>_0x268acd['replace'](/\/$/,'')+'/-/resize/'+_0x379910+'x/\x20'+_0x379910+'w');return{'imageFallbackUrl':_0x268acd,'imageSources':[{'srcset':_0x5818df['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5b72f2+'px)\x20100vw,\x20'+_0x5b72f2+'px','type':'image/webp'}]};}function F(_0x57e1cc,_0x27e955,_0x1848ad){const _0x14c77a=_0x57e1cc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x14c77a?parseInt(_0x14c77a[0x1],0xa):_0x27e955,'height':_0x14c77a?parseInt(_0x14c77a[0x2],0xa):_0x1848ad};}function $(_0x2292c4,_0x5d45cd){const _0xc43817=new(_0x73236d())(),_0x436f76=_0x2292c4['plugins']['get']('ImageUtils'),_0xfc3b41=_0x2292c4['editing']['mapper']['toViewElement'](_0x5d45cd),_0x17d020=_0x436f76['findViewImgElement'](_0xfc3b41),_0x14bb2a=_0x2292c4['editing']['view']['domConverter']['viewToDom'](_0x17d020),_0x4505ba=_0x5d45cd['getAttribute']('width'),_0x1d7885=_0x5d45cd['getAttribute']('height'),_0x578070='image-processing';_0x2292c4['editing']['view']['change'](_0xa3a350=>{_0xa3a350['addClass'](_0x578070,_0xfc3b41),_0xa3a350['setStyle']('aspect-ratio',_0x4505ba+'/'+_0x1d7885,_0x17d020);}),_0xc43817['listenTo'](_0x14bb2a,'load',()=>{_0xc43817['stopListening'](_0x14bb2a,'load'),_0x2292c4['editing']['view']['change'](_0x4cbf30=>{_0x4cbf30['removeClass'](_0x578070,_0xfc3b41),_0x4cbf30['removeStyle']('aspect-ratio',_0x17d020);});});}function B(_0x2c3036){if(Array['isArray'](_0x2c3036)){const _0x4931b0=_0x2c3036['map'](B);return _0x40fd48=>_0x4931b0['some'](_0x1e7f80=>_0x1e7f80(_0x40fd48));}if('origin'==_0x2c3036){const _0xaa3bbd=_0x266f0b['window']['location']['origin'];return _0x499663=>new URL(_0x499663,_0x266f0b['document']['baseURI'])['origin']==_0xaa3bbd;}return'function'==typeof _0x2c3036?_0x2c3036:_0x2c3036 instanceof RegExp?_0x14c91b=>!(!_0x14c91b['match'](_0x2c3036)&&!_0x14c91b['replace'](/^https?:\/\//,'')['match'](_0x2c3036)):()=>!0x1;}function V(_0x3e691e,_0x5c6b70){return _0x2aa77d(_0x3e691e['target'])['includes'](_0x5c6b70);}class j extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1c0d2a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2d2eac,_0x5ca41f,_0x1fec13){super(),this['_editor']=_0x2d2eac,this['_editing']=_0x5ca41f,this['_dialog']=_0x2d2eac['plugins']['get'](_0x4a031b),this['_api']=_0x5ca41f['ctxElement']['getAPI'](),this['_type']=_0x1fec13,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:_0x3ae5fd,model:_0x4c784b}=this['_editor'],_0x52f071=_0x4c784b['document']['selection']['getSelectedElement'](),_0x582f22=_0x52f071&&(_0x52f071['is']('element','imageBlock')||_0x52f071['is']('element','imageInline'));this['_formView']=new O(_0x3ae5fd,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5da03c,'title':T(_0x3ae5fd,this['_type'],_0x582f22?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x44822f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x234773=>!V(_0x234773,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4eec7c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x30725b=>{const _0x373321=_0x4eec7c['length'];for(const _0x1d2f6d of _0x4eec7c){const _0x1a6950=_0x1d2f6d===_0x4eec7c[_0x373321-0x1],{cdnUrl:_0x55305e,fileInfo:_0x2a1a6d}=_0x1d2f6d;if(!_0x55305e||!_0x2a1a6d)continue;const {width:_0x1a4259,height:_0x364488}=_0x2a1a6d['imageInfo'],_0x1d41d6=F(_0x55305e,_0x1a4259,_0x364488),_0x156500=D(_0x55305e,_0x1d41d6['width']),_0x4ba62c={'id':_0x2a1a6d['uuid'],'type':'image','attributes':{'imageDimension':_0x1d41d6,..._0x156500}};this['_insertAsset'](_0x4ba62c,_0x1a6950,_0x30725b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3e8b93=>{'idle'===_0x3e8b93['detail']['status']&&!_0x3e8b93['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===S['Local']?this['_api']['setCurrentActivity'](S['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5b9539,_0xd58c3a,_0x3c2c7b){const _0x6bc7c1=this['_editor']['model']['document']['selection'],_0x532eb6=_0x6bc7c1['getSelectedElement'](),_0x14fc1d=!(!_0x532eb6||!_0x532eb6['is']('element','imageInline'));_0x3c2c7b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5b9539,_0x14fc1d),_0xd58c3a||_0x3c2c7b['setSelection'](_0x6bc7c1['getLastPosition']());}['_insertImage'](_0x570091,_0x566b9e){const _0x354738=this['_editor'],{imageDimension:_0x36ff2c,imageFallbackUrl:_0x96b918,imageSources:_0x2096f3}=_0x570091['attributes'];_0x354738['execute']('insertImage',{'imageType':_0x566b9e?'imageInline':null,'source':{'uploadcareImageId':_0x570091['id'],'src':_0x96b918,'sources':_0x2096f3,..._0x36ff2c}});}}class M extends _0x1f911f{['_editing'];['_controller']=null;static get['requires'](){return[_0x4a031b,z];}constructor(_0x4b28ba){super(_0x4b28ba),this['_editing']=_0x4b28ba['plugins']['get'](z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x11c079){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new j(this['editor'],this['_editing'],_0x11c079);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class q{static['upload']({file:_0x15e388,..._0x539d05}){return _0x348ae8(_0x15e388,_0x539d05);}static['getInfo'](_0x4b17ae,_0xa98153){return _0x31fa90(_0x4b17ae,_0xa98153);}}class W extends _0x40d115{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x378fbf,z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1e543f=this['editor'];if(!!!_0x1e543f['config']['get']('uploadcare'))return;_0x1e543f['plugins']['get'](_0x378fbf)['createUploadAdapter']=_0x517c39=>new G(_0x517c39,_0x1e543f),_0x1e543f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x13f847,{imageElement:_0x2bd31c,data:_0x284a72})=>{_0x1e543f['model']['change'](_0x745dfb=>{_0x745dfb['setAttribute']('uploadcareImageId',_0x284a72['uploadcareImageId'],_0x2bd31c);});});}}class G{['loader'];['editor'];['controller'];constructor(_0x108033,_0x4f3a4a){this['loader']=_0x108033,this['editor']=_0x4f3a4a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x13459c=await this['loader']['file'];return q['upload']({'file':_0x13459c,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x4657c1=>{_0x4657c1&&_0x4657c1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4657c1['value']);}})['then'](async _0x1bc605=>{const {imageFallbackUrl:_0x543390,imageSources:_0x32e664}=D(_0x1bc605['cdnUrl'],_0x1bc605['imageInfo']['width']);return{'uploadcareImageId':_0x1bc605['uuid'],'default':_0x543390,'sources':_0x32e664};})['catch'](()=>{const _0x243e1e=t('Cannot\x20upload\x20file:')+('\x20'+_0x13459c['name']+'.');return Promise['reject'](_0x243e1e);});}['abort'](){this['controller']['abort']();}}class z extends _0x40d115{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',W,_0x4a031b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x14d47c){super(_0x14d47c),this['ucContextId']=_0x4f0214();}['init'](){const _0xe505a1=this['editor'];_0xe505a1['commands']['add']('uploadcare',new M(_0xe505a1));}['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 _0x4ad299=_0x266f0b['document']['querySelector']('input[uploadcare-file-input]');_0x4ad299&&_0x4ad299['remove']();}),async function(_0x33807f){const _0x539748=_0x16fe10([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x50bb8d=0x535f8c3a,_0x523877=0x53580c22^_0x50bb8d,_0x12d84c=window[_0x16fe10([0x44,0x61,0x74,0x65])][_0x16fe10([0x6e,0x6f,0x77])](),_0x13a003=_0x33807f[_0x16fe10([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x27352b=new window[(_0x16fe10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xedd390=>{_0x13a003[_0x16fe10([0x6f,0x6e,0x63,0x65])](_0x16fe10([0x72,0x65,0x61,0x64,0x79]),_0xedd390);}),_0x45e846={[_0x16fe10([0x6b,0x74,0x79])]:_0x16fe10([0x45,0x43]),[_0x16fe10([0x75,0x73,0x65])]:_0x16fe10([0x73,0x69,0x67]),[_0x16fe10([0x63,0x72,0x76])]:_0x16fe10([0x50,0x2d,0x32,0x35,0x36]),[_0x16fe10([0x78])]:_0x16fe10([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]),[_0x16fe10([0x79])]:_0x16fe10([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]),[_0x16fe10([0x61,0x6c,0x67])]:_0x16fe10([0x45,0x53,0x32,0x35,0x36])},_0xe16c90=_0x13a003[_0x16fe10([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x16fe10([0x67,0x65,0x74])](_0x16fe10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x374b62(){let _0x26b5c2,_0xc1a964=null,_0x8874ec=null;try{if(_0xe16c90==_0x16fe10([0x47,0x50,0x4c]))return _0x16fe10([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26b5c2=_0x3df265(),!_0x26b5c2)return _0x16fe10([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26b5c2[_0x16fe10([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x8874ec=_0x510073(_0x26b5c2[_0x16fe10([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26b5c2[_0x16fe10([0x6a,0x74,0x69])])),await _0x379317()?_0x1f0b08()?_0x55df79()?_0x16fe10([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x50b474()?(_0x26b5c2[_0x16fe10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16fe10([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc1a964=_0x2e7f96(_0x16fe10([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa37e0f()):_0x16fe10([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x16fe10([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x16fe10([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x16fe10([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55df79(){const _0x336953=[_0x16fe10([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x16fe10([0x74,0x72,0x69,0x61,0x6c])][_0x16fe10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26b5c2[_0x16fe10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x12d84c/0x3e8:0xe10*_0x523877;return _0x26b5c2[_0x16fe10([0x65,0x78,0x70])]<_0x336953;}function _0x1f0b08(){const _0xc335c=_0x26b5c2[_0x16fe10([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc335c&&(!!_0xc335c[_0x16fe10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16fe10([0x2a]))||!!_0xc335c[_0x16fe10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16fe10([0x55,0x50,0x4c,0x43])));}function _0x50b474(){const _0x2597c0=_0x26b5c2[_0x16fe10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2597c0||0x0==_0x2597c0[_0x16fe10([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x49ba9e}=new URL(window[_0x16fe10([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2597c0[_0x16fe10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49ba9e))return!0x0;const _0x3e7fc8=_0x49ba9e[_0x16fe10([0x73,0x70,0x6c,0x69,0x74])](_0x16fe10([0x2e]));return _0x2597c0[_0x16fe10([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11307c=>_0x11307c[_0x16fe10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16fe10([0x2a])))[_0x16fe10([0x6d,0x61,0x70])](_0x4e921a=>_0x4e921a[_0x16fe10([0x73,0x70,0x6c,0x69,0x74])](_0x16fe10([0x2e])))[_0x16fe10([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24f7aa=>_0x24f7aa[_0x16fe10([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3e7fc8[_0x16fe10([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16fe10([0x6d,0x61,0x70])](_0x85c13b=>Array(_0x3e7fc8[_0x16fe10([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x85c13b[_0x16fe10([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16fe10([0x66,0x69,0x6c,0x6c])](_0x85c13b[0x0]===_0x16fe10([0x2a])?_0x16fe10([0x2a]):'')[_0x16fe10([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x85c13b))[_0x16fe10([0x73,0x6f,0x6d,0x65])](_0x261e9d=>_0x3e7fc8[_0x16fe10([0x65,0x76,0x65,0x72,0x79])]((_0x2891f2,_0x42c13b)=>_0x261e9d[_0x42c13b]===_0x2891f2||_0x261e9d[_0x42c13b]===_0x16fe10([0x2a])));}function _0xa37e0f(){return _0xc1a964&&_0x8874ec?new window[(_0x16fe10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ec96c,_0x396d5c)=>{_0xc1a964[_0x16fe10([0x74,0x68,0x65,0x6e])](_0x4ec96c,_0x396d5c),_0x8874ec[_0x16fe10([0x74,0x68,0x65,0x6e])](_0x56662b=>{_0x56662b!=_0x16fe10([0x56,0x61,0x6c,0x69,0x64])&&_0x4ec96c(_0x56662b);},_0x396d5c);}):_0xc1a964||_0x8874ec||_0x16fe10([0x56,0x61,0x6c,0x69,0x64]);}}function _0x510073(_0xcda6ab,_0x5cf186){return new window[(_0x16fe10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23481f=>{if(_0x376851())return _0x23481f(_0x16fe10([0x56,0x61,0x6c,0x69,0x64]));_0x2aee9e(),_0x13a003[_0x16fe10([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x16fe10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3686e0=!0x1;const _0x958ecc=_0x4f0214();function _0x56ceba(_0x5593bd){return!!_0x5593bd&&(typeof _0x5593bd===_0x16fe10([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5593bd===_0x16fe10([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5593bd[_0x16fe10([0x74,0x68,0x65,0x6e])]===_0x16fe10([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5593bd[_0x16fe10([0x63,0x61,0x74,0x63,0x68])]===_0x16fe10([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x179910(_0x2b8cf8){_0xfbb6ae(_0x2b8cf8)[_0x16fe10([0x74,0x68,0x65,0x6e])](_0x43a2b1=>{if(!_0x43a2b1||_0x43a2b1[_0x16fe10([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x16fe10([0x6f,0x6b]))return _0x16fe10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x21c0f2(_0x32fef2(_0x958ecc+_0x5cf186))!=_0x43a2b1[_0x16fe10([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x16fe10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x16fe10([0x56,0x61,0x6c,0x69,0x64]);})[_0x16fe10([0x74,0x68,0x65,0x6e])](_0x574e76=>(_0x50f5c3(),_0x574e76),()=>{const _0x48ee37=_0xe7c353();return null==_0x48ee37?(_0x50f5c3(),_0x16fe10([0x56,0x61,0x6c,0x69,0x64])):_0x16fe10(_0x12d84c-_0x48ee37>(0x7753083a^_0x50bb8d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x16fe10([0x74,0x68,0x65,0x6e])](_0x23481f)[_0x16fe10([0x63,0x61,0x74,0x63,0x68])](()=>{_0x23481f(_0x16fe10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e6699=0x536962ba^_0x50bb8d;function _0x50f5c3(){const _0x532c21=_0x16fe10([0x6c,0x6c,0x63,0x74,0x2d])+_0x21c0f2(_0x32fef2(_0xcda6ab)),_0x5acc07=_0x1bd5e8(_0x21c0f2(window[_0x16fe10([0x4d,0x61,0x74,0x68])][_0x16fe10([0x63,0x65,0x69,0x6c])](_0x12d84c/_0x5e6699)));window[_0x16fe10([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16fe10([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x532c21,_0x5acc07);}function _0xe7c353(){const _0x4708fa=_0x16fe10([0x6c,0x6c,0x63,0x74,0x2d])+_0x21c0f2(_0x32fef2(_0xcda6ab)),_0x2a61af=window[_0x16fe10([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16fe10([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4708fa);return _0x2a61af?window[_0x16fe10([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bd5e8(_0x2a61af),0x10)*_0x5e6699:null;}function _0xfbb6ae(_0x978d92){return new window[(_0x16fe10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x526997,_0x4411fa)=>{_0x978d92[_0x16fe10([0x74,0x68,0x65,0x6e])](_0x526997,_0x4411fa),window[_0x16fe10([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4411fa,0x535e58fa^_0x50bb8d);});}}_0x13a003[_0x16fe10([0x6f,0x6e])](_0x16fe10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15fc9a,_0x237542)=>{if(_0x237542[0x0]!=_0xcda6ab)return _0x23481f(_0x16fe10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x237542[0x1]={..._0x237542[0x1],[_0x16fe10([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x958ecc};},{[_0x16fe10([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16fe10([0x68,0x69,0x67,0x68])}),_0x13a003[_0x16fe10([0x6f,0x6e])](_0x16fe10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x197be0=>{_0x56ceba(_0x197be0[_0x16fe10([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3686e0=!0x0,_0x179910(_0x197be0[_0x16fe10([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x16fe10([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16fe10([0x6c,0x6f,0x77])}),_0x27352b[_0x16fe10([0x74,0x68,0x65,0x6e])](()=>{_0x3686e0||_0x23481f(_0x16fe10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x376851(){return _0x13a003[_0x16fe10([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16fe10([0x76,0x69,0x65,0x77])][_0x16fe10([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x16fe10([0x61,0x75,0x74,0x6f]);}function _0x2aee9e(){_0x13a003[_0x16fe10([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16fe10([0x76,0x69,0x65,0x77])][_0x16fe10([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16fe10([0x61,0x75,0x74,0x6f]);}}function _0x2e7f96(_0x23cf60){const _0x29caf3=[new window[(_0x16fe10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49d78f=>setTimeout(_0x49d78f,0x5356b2f6^_0x50bb8d)),_0x27352b[_0x16fe10([0x74,0x68,0x65,0x6e])](()=>new window[(_0x16fe10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18bc74=>{let _0x2f8366=0x0;_0x13a003[_0x16fe10([0x6d,0x6f,0x64,0x65,0x6c])][_0x16fe10([0x6f,0x6e])](_0x16fe10([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2531a3,_0x4c68ee)=>{_0x4c68ee[0x0][_0x16fe10([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f8366++,_0x2f8366==(0x535f89d2^_0x50bb8d)&&(_0x18bc74(),_0x2531a3[_0x16fe10([0x6f,0x66,0x66])]());});}))];return window[_0x16fe10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16fe10([0x72,0x61,0x63,0x65])](_0x29caf3)[_0x16fe10([0x74,0x68,0x65,0x6e])](()=>_0x23cf60);}async function _0x2c468c(){await _0x27352b,_0x13a003[_0x16fe10([0x6d,0x6f,0x64,0x65,0x6c])][_0x16fe10([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x233155,_0x13a003[_0x16fe10([0x6d,0x6f,0x64,0x65,0x6c])][_0x16fe10([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x233155,_0x13a003[_0x16fe10([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x16fe10([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b5c91(_0xa0fba1){const _0x2b9e84=_0x252e15();_0x13a003[_0x2b9e84]=_0x16fe10([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xa0fba1,_0xa0fba1!=_0x16fe10([0x56,0x61,0x6c,0x69,0x64])&&_0x2c468c();}function _0x252e15(){const _0x42812f=window[_0x16fe10([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x16fe10([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x16fe10([0x6e,0x6f,0x77])]())[_0x16fe10([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x16fe10([0x2e]),'');let _0x4530f0=_0x16fe10([0x68]);for(let _0x4e9f89=0x0;_0x4e9f89<_0x42812f[_0x16fe10([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e9f89+=0x2){let _0x23942e=window[_0x16fe10([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42812f[_0x16fe10([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e9f89,_0x4e9f89+0x2));_0x23942e>=_0x539748[_0x16fe10([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x23942e-=_0x539748[_0x16fe10([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4530f0+=_0x539748[_0x23942e];}return _0x4530f0;}function _0x3df265(){const _0xcc982c=_0xe16c90[_0x16fe10([0x73,0x70,0x6c,0x69,0x74])](_0x16fe10([0x2e]));if(0x3!=_0xcc982c[_0x16fe10([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x551207(_0xcc982c[0x1]);function _0x551207(_0x5bd0ce){const _0x2844a1=_0xdff53b(_0x5bd0ce);return _0x2844a1&&_0x406645()?_0x2844a1:null;function _0x406645(){const _0x49751d=_0x2844a1[_0x16fe10([0x6a,0x74,0x69])],_0x49cb88=window[_0x16fe10([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49751d[_0x16fe10([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49751d[_0x16fe10([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ca54b={..._0x2844a1,[_0x16fe10([0x6a,0x74,0x69])]:_0x49751d[_0x16fe10([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x49751d[_0x16fe10([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ca54b[_0x16fe10([0x76,0x63])],_0x32fef2(_0x2ca54b)==_0x49cb88;}}}async function _0x379317(){let _0x36fabb=!0x0;try{const _0x5f2847=_0xe16c90[_0x16fe10([0x73,0x70,0x6c,0x69,0x74])](_0x16fe10([0x2e])),[_0x14b2aa,_0x21334f,_0x38fd9f]=_0x5f2847;return _0x2a4cf4(_0x14b2aa),await _0x30b8c3(_0x14b2aa,_0x21334f,_0x38fd9f),_0x36fabb;}catch{return!0x1;}function _0x2a4cf4(_0x3da0ee){const _0x120f6e=_0xdff53b(_0x3da0ee);_0x120f6e&&_0x120f6e[_0x16fe10([0x61,0x6c,0x67])]==_0x16fe10([0x45,0x53,0x32,0x35,0x36])||(_0x36fabb=!0x1);}async function _0x30b8c3(_0x38b940,_0x3d4a0f,_0x288e33){const _0x4c978c=window[_0x16fe10([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x16fe10([0x66,0x72,0x6f,0x6d])](_0x357eef(_0x288e33),_0x8ebbf5=>_0x8ebbf5[_0x16fe10([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x31ab58=new window[(_0x16fe10([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x16fe10([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x38b940+_0x16fe10([0x2e])+_0x3d4a0f),_0x842cef=window[_0x16fe10([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x16fe10([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x842cef)return;const _0x5cec96=await _0x842cef[_0x16fe10([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x16fe10([0x6a,0x77,0x6b]),_0x45e846,{[_0x16fe10([0x6e,0x61,0x6d,0x65])]:_0x16fe10([0x45,0x43,0x44,0x53,0x41]),[_0x16fe10([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x16fe10([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x16fe10([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x842cef[_0x16fe10([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x16fe10([0x6e,0x61,0x6d,0x65])]:_0x16fe10([0x45,0x43,0x44,0x53,0x41]),[_0x16fe10([0x68,0x61,0x73,0x68])]:{[_0x16fe10([0x6e,0x61,0x6d,0x65])]:_0x16fe10([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5cec96,_0x4c978c,_0x31ab58)||(_0x36fabb=!0x1);}}function _0xdff53b(_0x4b87bb){return _0x4b87bb[_0x16fe10([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x16fe10([0x65,0x79]))?JSON[_0x16fe10([0x70,0x61,0x72,0x73,0x65])](_0x357eef(_0x4b87bb)):null;}function _0x357eef(_0x4af98e){return window[_0x16fe10([0x61,0x74,0x6f,0x62])](_0x4af98e[_0x16fe10([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x16fe10([0x2b]))[_0x16fe10([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x16fe10([0x2f])));}function _0x32fef2(_0x2de50d){let _0x215c13=0x1505;function _0x444613(_0x34dc32){for(let _0x52019a=0x0;_0x52019a<_0x34dc32[_0x16fe10([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52019a++){const _0x483648=_0x34dc32[_0x16fe10([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x52019a);_0x215c13=(_0x215c13<<0x5)+_0x215c13+_0x483648,_0x215c13&=_0x215c13;}}function _0x3ae50f(_0x330c07){Array[_0x16fe10([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x330c07)?_0x330c07[_0x16fe10([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3ae50f):_0x330c07&&typeof _0x330c07==_0x16fe10([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x16fe10([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x330c07)[_0x16fe10([0x73,0x6f,0x72,0x74])]()[_0x16fe10([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd48252,_0x1ba2a5])=>{_0x444613(_0xd48252),_0x3ae50f(_0x1ba2a5);}):_0x444613(window[_0x16fe10([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x330c07));}return _0x3ae50f(_0x2de50d),_0x215c13>>>0x0;}function _0x21c0f2(_0x1f5088){return _0x1f5088[_0x16fe10([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x16fe10([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x16fe10([0x30]));}function _0x1bd5e8(_0x55829a){return _0x55829a[_0x16fe10([0x73,0x70,0x6c,0x69,0x74])]('')[_0x16fe10([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x16fe10([0x6a,0x6f,0x69,0x6e])]('');}function _0x233155(){}function _0x16fe10(_0x255354){return _0x255354['map'](_0x66ba76=>String['fromCharCode'](_0x66ba76))['join']('');}_0x4b5c91(await _0x374b62());}(this);}['_initSchema'](){const _0x1066f9=this['editor']['model']['schema'];_0x1066f9['isRegistered']('imageBlock')&&_0x1066f9['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1066f9['isRegistered']('imageInline')&&_0x1066f9['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5b707c=this['editor'];_0x5b707c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5b707c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4dafd8=>_0x4dafd8['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x239170=_0x5b707c['commands']['get']('replaceImageSource');_0x239170&&this['listenTo'](_0x239170,'cleanupImage',(_0x16ab24,[_0x34b06d,_0x57122d])=>{_0x34b06d['removeAttribute']('uploadcareImageId',_0x57122d);});}['_initConfig'](){const _0x5deb1e=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5e2673=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x68204e(_0x266f0b['document'],'uc-config',{..._0x5deb1e,'pubkey':_0x5e2673,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x466a43=>{if('closeMax'==_0x466a43)return'#uc-icon-arrow-down';},_0x266f0b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x68204e(_0x266f0b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x266f0b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4fdb00=this['editor']['commands']['get']('insertImage');_0x4fdb00&&this['listenTo'](_0x4fdb00,'execute',()=>{const _0x36d53e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x36d53e&&_0x36d53e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x36d53e);});});const _0x24ce52=this['editor']['commands']['get']('uploadcareImageReplace');_0x24ce52&&this['listenTo'](_0x24ce52,'execute',()=>{const _0x21ec7e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x21ec7e&&_0x21ec7e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x21ec7e);});});}}class H extends _0x40d115{static get['requires'](){return[z,A];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3bc3a2){super(_0x3bc3a2),_0x3bc3a2['config']['define']('uploadcare.uploader.sourceList',[S['Local'],S['URL']]),_0xf6082a['defineComponents'](_0xf6082a),this['_defineLocale']();}['_defineLocale'](){const _0x2ea08c=this['editor']['config']['get']('uploadcare.locale'),_0x59d037=this['editor']['locale']['contentLanguage'];_0x2ea08c&&_0xf6082a['defineLocale'](_0x59d037,_0x2ea08c);}}class J extends _0x23451b{constructor(_0x2d34a3){super(_0x2d34a3);const t=_0x2d34a3['t'],_0x3974ef=this['bindTemplate'],_0x5242d7=new _0x3c5854();_0x5242d7['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':[_0x5242d7,{'text':_0x3974ef['to']('imageUploadProgress',_0x48b8aa=>t('Loading\x20image...')+'\x20('+(_0x48b8aa||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 Z extends _0x23451b{constructor(_0x3d5c81){super(_0x3d5c81);const t=_0x3d5c81['t'];this['set']('errorType',null);const _0x45ff51=new _0x3a247a(_0x3d5c81);_0x45ff51['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x45ff51['withText']=!0x0,_0x45ff51['class']='ck-button-action',_0x45ff51['on']('execute',()=>{this['fire']('retry');}),_0x45ff51['bind']('isVisible')['to'](this,'errorType',_0x32aa3d=>'NotFound'!==_0x32aa3d);const _0x3ade7a=new _0x5b6444();_0x3ade7a['content']=_0x2c237d,_0x3ade7a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x38cdc0=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':[_0x3ade7a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x38cdc0['to']('errorType',_0x10715c=>t('NotFound'!==_0x10715c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x45ff51]},{'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 Q extends _0x23451b{constructor(_0x30149c,_0x36cb3a){super(_0x30149c);const _0x3c3e37=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x36cb3a,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3c3e37['to']('imageSrc')}});}}class X extends K{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x22268f,_0x2afd19,_0x4b5ed7){super(_0x22268f),this['_items']=this['createCollection'](),this['_loadingView']=new J(_0x22268f),this['_errorView']=new Z(_0x22268f),this['_editingView']=new Q(_0x22268f,_0x4b5ed7),this['_focusableView']=new _0x23451b(_0x22268f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2afd19),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'],_0x1f729d=>{this['_addUploadcareImageEditorListeners'](_0x1f729d);});}),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'](_0x24060c,_0x8338cf){const _0x3f2c4f='uc-cloud-image-editor',_0x4b6ec1=_0x24060c['querySelector'](_0x3f2c4f);if(_0x4b6ec1)return _0x8338cf(_0x4b6ec1);const _0x1c4cf0=new MutationObserver(_0x25706a=>{const _0x2a08ad=_0x25706a['filter'](_0x315b47=>_0x315b47['target']===_0x24060c&&_0x315b47['addedNodes']['length']>0x0&&_0x315b47['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3f2c4f);_0x2a08ad['length']&&(_0x1c4cf0['disconnect'](),_0x8338cf(_0x2a08ad[0x0]['addedNodes'][0x0]));});_0x1c4cf0['observe'](_0x24060c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2442d){_0x2442d['addEventListener']('apply',_0x553b52=>{this['fire']('apply',{'imageSrc':_0x553b52['detail']['cdnUrl']});}),_0x2442d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Y extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1c0d2a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x50a437,_0x6fe40,_0x3236ec){super(),this['_editor']=_0x50a437,this['_dialog']=_0x6fe40,this['_imageElement']=_0x3236ec,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 _0x3acc60=this['_imageElement'],_0x3468e7=_0x3acc60['getAttribute']('uploadcareImageId'),_0x2716c3=_0x3acc60['getAttribute']('src');if(_0x3468e7)await this['_loadImageInfo'](_0x3468e7,_0x2716c3);else{if(this['_imageCache']['has'](_0x2716c3)){const _0x36ee90=this['_imageCache']['get'](_0x2716c3);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x36ee90['url'],this['imageDimension']=_0x36ee90['dimension'],this['imageId']=_0x36ee90['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x52db9a}=this['_editor'],t=_0x52db9a['t'],_0x54fb9b=new X(_0x52db9a,this['imageStatus'],this['_attributes']);_0x54fb9b['bind']('status')['to'](this,'imageStatus'),_0x54fb9b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x54fb9b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x54fb9b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x54fb9b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2c500c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x54fb9b,'position':_0x44822f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x54fb9b['focus']();},'onHide':()=>{_0x54fb9b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x12a42f=>!V(_0x12a42f,_0x54fb9b['element'])}});}['_loadImageInfo'](_0x107588,_0x38d2e7){return q['getInfo'](_0x107588,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1c41d0=>{const {width:_0x29f7d2,height:_0x2f035b}=_0x1c41d0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x38d2e7,this['imageDimension']={'width':_0x29f7d2,'height':_0x2f035b},this['imageId']=_0x107588;})['catch'](_0x50cf56=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x50cf56['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2fbe45,_0x2f1881){return this['_getImageAsFile'](_0x2fbe45)['then'](_0x4d188c=>q['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2f1881['signal'],'file':_0x4d188c,'onProgress':_0x29242a=>{_0x29242a&&_0x29242a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x29242a['value']));}}))['then'](_0x17de5f=>{const {width:_0x511946,height:_0x51f721}=_0x17de5f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17de5f['cdnUrl'],this['imageDimension']={'width':_0x511946,'height':_0x51f721},this['imageId']=_0x17de5f['uuid'],this['imageUploadProgress']=null;const _0x5cca2b=_0x2fbe45['getAttribute']('src');this['_imageCache']['set'](_0x5cca2b,{'id':_0x17de5f['uuid'],'url':_0x17de5f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x766304=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x766304['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x8e8ffc,_0x4c0c3e){_0x8e8ffc['on']('apply',(_0x480783,_0x1276c1)=>{this['_replaceImage'](_0x4c0c3e,_0x1276c1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x8e8ffc['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x8e8ffc['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x43c977,_0x411612,_0xbfabd8){const _0x356365=this['_editor'],{width:_0x3f7431,height:_0x4d7cef}=F(_0x411612,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x526118,imageSources:_0x10ba60}=D(_0x411612,_0x3f7431);_0x356365['model']['change'](_0x45a791=>{if('$graveyard'===_0x43c977['root']['rootName']){_0x356365['execute']('insertImage',{'imageType':_0x43c977['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x43c977['getAttributes']()),'uploadcareImageId':_0xbfabd8,'src':_0x526118,'sources':_0x10ba60,'width':_0x3f7431,'height':_0x4d7cef}});const _0x5389c8=_0x43c977['getChildren']();_0x43c977=_0x356365['model']['document']['selection']['getSelectedElement']();for(const _0x3d81e5 of _0x5389c8)_0x45a791['append'](_0x45a791['cloneElement'](_0x3d81e5),_0x43c977);}else _0x45a791['setSelection'](_0x43c977,'on'),_0x356365['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x43c977['getAttributes']()),'uploadcareImageId':_0xbfabd8,'src':_0x526118,'sources':_0x10ba60,'width':_0x3f7431,'height':_0x4d7cef},_0x43c977);_0x45a791['setSelection'](_0x43c977,'on');});}async['_getImageAsFile'](_0x10f919){const _0x3fee43=_0x266f0b['window'],_0x3757cf=_0x266f0b['document']['location']['href'],_0x2586c5=new _0x3fee43['URL'](_0x10f919['getAttribute']('src'),_0x3757cf);if('data:'===_0x2586c5['protocol']){const _0x4887a9=_0x2586c5['href']['split'](','),_0x566945=_0x4887a9[0x0]['match'](/:(.*?);/)[0x1],_0x14f3b2=_0x566945['split']('/')[0x1],_0x18a164=_0x3fee43['atob'](_0x4887a9[_0x4887a9['length']-0x1]);let _0x206ce3=_0x18a164['length'];const _0x5ec07d=new _0x3fee43['Uint8Array'](_0x206ce3);for(;_0x206ce3--;)_0x5ec07d[_0x206ce3]=_0x18a164['charCodeAt'](_0x206ce3);return new _0x3fee43['File']([_0x5ec07d],'image.'+_0x14f3b2,{'type':_0x566945});}const _0x27b772=_0x2586c5['href']['split']('/'),_0x37947c=_0x27b772[_0x27b772['length']-0x1],_0x1452bd=_0x37947c['split']('.')[0x1];return _0x3fee43['fetch'](_0x2586c5['href'])['then'](_0x45228b=>_0x45228b['clone']()['blob']())['then'](_0x3beda7=>new _0x3fee43['File']([_0x3beda7],_0x37947c,{'type':'image/'+_0x1452bd}));}}class tt extends _0x1f911f{['imageEditController'];static get['requires'](){return[_0x4a031b];}['_isEditable'];constructor(_0x438b4b){super(_0x438b4b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x43c1f9){const _0x2d890e=B(_0x43c1f9);return _0x406ce1=>!(!_0x406ce1||!_0x406ce1['is']('element','imageBlock')&&!_0x406ce1['is']('element','imageInline'))&&(!!_0x406ce1['hasAttribute']('uploadcareImageId')||!!_0x406ce1['hasAttribute']('src')&&_0x2d890e(_0x406ce1['getAttribute']('src')));}(_0x438b4b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4fdd1a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4fdd1a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5c9659=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5c9659&&(_0x5c9659['is']('element','imageBlock')||_0x5c9659['is']('element','imageInline'))&&(this['imageEditController']=new Y(this['editor'],this['editor']['plugins']['get'](_0x4a031b),_0x5c9659),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class et extends _0x1f911f{['refresh'](){const _0x1bdd89=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1bdd89&&(_0x1bdd89['is']('element','imageBlock')||_0x1bdd89['is']('element','imageInline')));}['execute'](_0xb301d0){const _0x4b30cc=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x57d2ab=>{_0x57d2ab['setAttributes'](_0xb301d0,_0x4b30cc),_0x57d2ab['removeAttribute']('srcset',_0x4b30cc),_0x57d2ab['removeAttribute']('sizes',_0x4b30cc);});}}class it extends _0x40d115{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[z,_0x4cd4d9,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xb4c7f3}=this;_0xb4c7f3['commands']['add']('uploadcareImageEdit',new tt(_0xb4c7f3)),_0xb4c7f3['commands']['add']('uploadcareImageReplace',new et(_0xb4c7f3));}}class st extends _0x40d115{['_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 _0x4a0eaa=this['editor'];_0x4a0eaa['ui']['componentFactory']['add']('uploadcareImageEdit',_0x57c49b=>{const _0x5926bb=_0x4a0eaa['commands']['get']('uploadcareImageEdit'),_0x3c203b=new _0x3a247a(_0x57c49b),t=_0x57c49b['t'];return _0x3c203b['set']({'icon':_0x2c500c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3c203b['bind']('isEnabled')['to'](_0x5926bb),_0x3c203b['bind']('isOn')['to'](_0x5926bb,'isActive'),this['listenTo'](_0x3c203b,'execute',()=>{_0x4a0eaa['execute']('uploadcareImageEdit'),_0x4a0eaa['editing']['view']['focus']();}),_0x3c203b;}),this['_initConfig']();}['_initConfig'](){const _0x13f363=_0x68204e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x13f363),this['listenTo'](this['editor'],'destroy',()=>{_0x13f363['remove']();});}}class nt extends _0x40d115{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[it,st];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{H as Uploadcare,M as UploadcareCommand,z as UploadcareEditing,nt as UploadcareImageEdit,tt as UploadcareImageEditCommand,it as UploadcareImageEditEditing,st as UploadcareImageEditUI,A as UploadcareUI,W as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x12154e=>0x1!=_0x12154e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x55f9ce=>{const {af:{dictionary:_0x29b655,getPluralForm:_0x52de97}}={'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':_0x2ca3e3=>0x1!=_0x2ca3e3}};_0x55f9ce['af']||={'dictionary':{},'getPluralForm':null},_0x55f9ce['af']['dictionary']=Object['assign'](_0x55f9ce['af']['dictionary'],_0x29b655),_0x55f9ce['af']['getPluralForm']=_0x52de97;})(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':_0x2107a8=>0x0==_0x2107a8?0x0:0x1==_0x2107a8?0x1:0x2==_0x2107a8?0x2:_0x2107a8%0x64>=0x3&&_0x2107a8%0x64<=0xa?0x3:_0x2107a8%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x17d94f=>{const {ar:{dictionary:_0x45ee4a,getPluralForm:_0x5811ba}}={'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':_0x207272=>0x0==_0x207272?0x0:0x1==_0x207272?0x1:0x2==_0x207272?0x2:_0x207272%0x64>=0x3&&_0x207272%0x64<=0xa?0x3:_0x207272%0x64>=0xb?0x4:0x5}};_0x17d94f['ar']||={'dictionary':{},'getPluralForm':null},_0x17d94f['ar']['dictionary']=Object['assign'](_0x17d94f['ar']['dictionary'],_0x45ee4a),_0x17d94f['ar']['getPluralForm']=_0x5811ba;})(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':_0x3f9ba1=>0x1!=_0x3f9ba1}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2a74c8=>{const {ast:{dictionary:_0xd5815a,getPluralForm:_0x341ea8}}={'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':_0x2d8ff6=>0x1!=_0x2d8ff6}};_0x2a74c8['ast']||={'dictionary':{},'getPluralForm':null},_0x2a74c8['ast']['dictionary']=Object['assign'](_0x2a74c8['ast']['dictionary'],_0xd5815a),_0x2a74c8['ast']['getPluralForm']=_0x341ea8;})(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':_0x410f15=>0x1!=_0x410f15}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x42f9d7=>{const {az:{dictionary:_0x3801a5,getPluralForm:_0x4ca2a3}}={'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':_0x3fd543=>0x1!=_0x3fd543}};_0x42f9d7['az']||={'dictionary':{},'getPluralForm':null},_0x42f9d7['az']['dictionary']=Object['assign'](_0x42f9d7['az']['dictionary'],_0x3801a5),_0x42f9d7['az']['getPluralForm']=_0x4ca2a3;})(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':_0x347f49=>_0x347f49%0xa==0x1&&_0x347f49%0x64!=0xb?0x0:_0x347f49%0xa>=0x2&&_0x347f49%0xa<=0x4&&(_0x347f49%0x64<0xa||_0x347f49%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x291a73=>{const {be:{dictionary:_0x1a107e,getPluralForm:_0x16ec26}}={'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':_0x378d49=>_0x378d49%0xa==0x1&&_0x378d49%0x64!=0xb?0x0:_0x378d49%0xa>=0x2&&_0x378d49%0xa<=0x4&&(_0x378d49%0x64<0xa||_0x378d49%0x64>=0x14)?0x1:0x2}};_0x291a73['be']||={'dictionary':{},'getPluralForm':null},_0x291a73['be']['dictionary']=Object['assign'](_0x291a73['be']['dictionary'],_0x1a107e),_0x291a73['be']['getPluralForm']=_0x16ec26;})(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':_0x449ef3=>0x1!=_0x449ef3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x33c20b=>{const {bg:{dictionary:_0x2cbfc9,getPluralForm:_0x5a47c6}}={'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':_0x37e00d=>0x1!=_0x37e00d}};_0x33c20b['bg']||={'dictionary':{},'getPluralForm':null},_0x33c20b['bg']['dictionary']=Object['assign'](_0x33c20b['bg']['dictionary'],_0x2cbfc9),_0x33c20b['bg']['getPluralForm']=_0x5a47c6;})(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':_0x4b0563=>0x1!=_0x4b0563}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xe7dc7d=>{const {bn:{dictionary:_0x2978c0,getPluralForm:_0x239e70}}={'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':_0xd8e82a=>0x1!=_0xd8e82a}};_0xe7dc7d['bn']||={'dictionary':{},'getPluralForm':null},_0xe7dc7d['bn']['dictionary']=Object['assign'](_0xe7dc7d['bn']['dictionary'],_0x2978c0),_0xe7dc7d['bn']['getPluralForm']=_0x239e70;})(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':_0x1a8bd3=>_0x1a8bd3%0xa==0x1&&_0x1a8bd3%0x64!=0xb?0x0:_0x1a8bd3%0xa>=0x2&&_0x1a8bd3%0xa<=0x4&&(_0x1a8bd3%0x64<0xa||_0x1a8bd3%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2e6cde=>{const {bs:{dictionary:_0x2062bb,getPluralForm:_0x2cbdfe}}={'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':_0x5ec547=>_0x5ec547%0xa==0x1&&_0x5ec547%0x64!=0xb?0x0:_0x5ec547%0xa>=0x2&&_0x5ec547%0xa<=0x4&&(_0x5ec547%0x64<0xa||_0x5ec547%0x64>=0x14)?0x1:0x2}};_0x2e6cde['bs']||={'dictionary':{},'getPluralForm':null},_0x2e6cde['bs']['dictionary']=Object['assign'](_0x2e6cde['bs']['dictionary'],_0x2062bb),_0x2e6cde['bs']['getPluralForm']=_0x2cbdfe;})(window['CKEDITOR_TRANSLATIONS']||={});
|