@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260123.0 → 0.0.0-nightly-next-20260124.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 _0x241860,Command as _0x5980df}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x56b118,IconGooglePhotos as _0x28a282,IconGoogleDrive as _0x346120,IconFacebook as _0x40bfe7,IconDropbox as _0x2fe8b2,IconUploadcareLink as _0x50a565,IconUploadcareImageUpload as _0x865cf3,IconError as _0x41012d,IconUploadcareImageEdit as _0x182a19}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x261f0d,MenuBarMenuListItemButtonView as _0x297525,View as _0x3f8953,FocusCycler as _0x28ac56,Dialog as _0x1814e4,DialogViewPosition as _0x1bf303,SpinnerView as _0x14287f,IconView as _0x22bbeb,Notification as _0x5107b8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x16d64c,DomEmitterMixin as _0x3fe8f8,global as _0xca5948,getAncestors as _0x417cbe,ObservableMixin as _0xcab798,uid as _0x594f4b,createElement as _0x224752}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x336a6a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x277534,info as _0x3e696}from'@uploadcare/upload-client';import*as _0x2e6e5a from'@uploadcare/file-uploader';var S=function(_0xbb1ca2){return _0xbb1ca2['Local']='local',_0xbb1ca2['URL']='url',_0xbb1ca2['Dropbox']='dropbox',_0xbb1ca2['GDrive']='gdrive',_0xbb1ca2['Facebook']='facebook',_0xbb1ca2['GPhotos']='gphotos',_0xbb1ca2['OneDrive']='onedrive',_0xbb1ca2;}({});function T(_0x37fd25,_0x20f1aa,_0x38003a){const t=_0x37fd25['t'],_0x19ffc4=_0x37fd25['t'];switch(_0x20f1aa){case S['Local']:return{'text':_0x19ffc4('Insert'===_0x38003a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x19ffc4('From\x20computer')};case S['URL']:return{'text':'Insert'===_0x38003a?_0x19ffc4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x19ffc4('Via\x20URL')};case S['Dropbox']:return{'text':t('Insert'===_0x38003a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case S['Facebook']:return{'text':t('Insert'===_0x38003a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case S['GDrive']:return{'text':t('Insert'===_0x38003a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case S['GPhotos']:return{'text':t('Insert'===_0x38003a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case S['OneDrive']:return{'text':t('Insert'===_0x38003a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x20f1aa;}}class A extends _0x241860{['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 _0x5f3f5c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x439b8c;for(const _0x7e6aa3 in _0x5f3f5c){const _0x3374d3=_0x7e6aa3,_0x33480b=_0x5f3f5c[_0x3374d3];if('uploadcareLicenseKeyValid'==_0x33480b||'uploadcareLicenseKeyInvalid'==_0x33480b||'uploadcareLicenseKeyExpired'==_0x33480b||'uploadcareLicenseKeyDomainLimit'==_0x33480b||'uploadcareLicenseKeyNotAllowed'==_0x33480b||'uploadcareLicenseKeyEvaluationLimit'==_0x33480b||'uploadcareLicenseKeyUsageLimit'==_0x33480b){delete _0x5f3f5c[_0x3374d3],_0x439b8c=_0x33480b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x439b8c&&_0x5f3f5c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x439b8c&&_0x5f3f5c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x439b8c&&_0x5f3f5c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x439b8c&&_0x5f3f5c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x439b8c&&_0x5f3f5c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x439b8c&&_0x5f3f5c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2c6dc7}=this,_0x37ab8a=_0x2c6dc7['commands']['get']('uploadcare');if(!_0x37ab8a)return;const _0x321f14=this['_normalizeConfigSourceList'](_0x2c6dc7['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2fbde4,_0x1ec259)=>{const _0x378233=this['_getIntegrationKey'](_0x1ec259['type']);return _0x2fbde4[_0x378233]||(_0x2fbde4[_0x378233]=[]),_0x2fbde4[_0x378233]['push'](_0x1ec259),_0x2fbde4;},{});_0x2c6dc7['plugins']['has']('ImageInsertUI')&&_0x2c6dc7['commands']['get']('uploadcare')&&Object['entries'](_0x321f14)['forEach'](([_0x6ecfe1,_0x5a78ca])=>{_0x2c6dc7['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x6ecfe1,'observable':()=>_0x37ab8a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5a78ca),'formViewCreator':()=>this['_createDropdownButtons'](_0x5a78ca),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5a78ca),'override':'assetManager'!==_0x6ecfe1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x11e8a6){const {locale:_0x50be12}=this['editor'];return _0x11e8a6['map'](_0x5818fd=>{const _0x10f7a7=T(_0x50be12,_0x5818fd,'Insert');switch(_0x5818fd){case S['Local']:return{'icon':_0x865cf3,'type':S['Local'],..._0x10f7a7};case S['URL']:return{'icon':_0x50a565,'type':S['URL'],..._0x10f7a7};case S['Dropbox']:return{'icon':_0x2fe8b2,'type':S['Dropbox'],..._0x10f7a7};case S['Facebook']:return{'icon':_0x40bfe7,'type':S['Facebook'],..._0x10f7a7};case S['GDrive']:return{'icon':_0x346120,'type':S['GDrive'],..._0x10f7a7};case S['GPhotos']:return{'icon':_0x28a282,'type':S['GPhotos'],..._0x10f7a7};case S['OneDrive']:return{'icon':_0x56b118,'type':S['OneDrive'],..._0x10f7a7};}});}['_getIntegrationKey'](_0x16c60f){switch(_0x16c60f){case S['Local']:return'upload';case S['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x45032a,_0x223d09){const _0x37ab8c=this['editor'],_0xcae66d=new _0x45032a(_0x37ab8c['locale']),_0x131e79=_0x37ab8c['commands']['get']('uploadcare');return _0xcae66d['bind']('isEnabled')['to'](_0x131e79),_0xcae66d['on']('execute',()=>{_0x131e79['execute'](_0x223d09);}),_0xcae66d;}['_createToolbarButton'](_0x249c0d){const {locale:_0x12bb1b}=this['editor'],_0x35b8cb=this['editor']['plugins']['get']('ImageInsertUI'),_0x26c45e=_0x249c0d[0x0],_0x1d7b12=this['_createButton'](_0x261f0d,_0x26c45e['type']);return _0x1d7b12['icon']=_0x26c45e['icon'],_0x1d7b12['bind']('label')['to'](_0x35b8cb,'isImageSelected',_0x2928e4=>T(_0x12bb1b,_0x26c45e['type'],_0x2928e4?'Replace':'Insert')['text']),_0x1d7b12['tooltip']=!0x0,_0x1d7b12;}['_createDropdownButtons'](_0x383cd9){const {locale:_0x37faaf}=this['editor'],_0x31da71=this['editor']['plugins']['get']('ImageInsertUI');return _0x383cd9['map'](_0x4567d3=>{const _0x1ea454=this['_createButton'](_0x261f0d,_0x4567d3['type']);return _0x1ea454['withText']=!0x0,_0x1ea454['icon']=_0x4567d3['icon'],_0x1ea454['bind']('label')['to'](_0x31da71,'isImageSelected',_0x2ec670=>T(_0x37faaf,_0x4567d3['type'],_0x2ec670?'Replace':'Insert')['text']),_0x1ea454;});}['_createMenuBarButtons'](_0x22466b){return _0x22466b['map'](_0x9df313=>{const _0x219c71=this['_createButton'](_0x297525,_0x9df313['type']);return _0x219c71['icon']=_0x9df313['icon'],_0x219c71['label']=_0x9df313['shortText'],_0x219c71;});}}class K extends _0x3f8953{['focusTracker'];['focusCycler'];constructor(_0x20cfc3){super(_0x20cfc3),this['focusTracker']=new _0x16d64c(),this['focusCycler']=new _0x28ac56({'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(_0x290538,_0x4025ed){super(_0x290538),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-'+_0x4025ed}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function D(_0x2a959a,_0x3855d6){const _0x53dff1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x273536=>_0x273536<=_0x3855d6)['map'](_0x1ed43d=>_0x2a959a['replace'](/\/$/,'')+'/-/resize/'+_0x1ed43d+'x/\x20'+_0x1ed43d+'w');return{'imageFallbackUrl':_0x2a959a,'imageSources':[{'srcset':_0x53dff1['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3855d6+'px)\x20100vw,\x20'+_0x3855d6+'px','type':'image/webp'}]};}function F(_0x421547,_0x464e85,_0x556cbc){const _0x51c5ac=_0x421547['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x51c5ac?parseInt(_0x51c5ac[0x1],0xa):_0x464e85,'height':_0x51c5ac?parseInt(_0x51c5ac[0x2],0xa):_0x556cbc};}function $(_0x12b653,_0x3cd668){const _0x1d09fb=new(_0x3fe8f8())(),_0x5871a1=_0x12b653['plugins']['get']('ImageUtils'),_0x31826f=_0x12b653['editing']['mapper']['toViewElement'](_0x3cd668),_0x30a7f2=_0x5871a1['findViewImgElement'](_0x31826f),_0x5df969=_0x12b653['editing']['view']['domConverter']['viewToDom'](_0x30a7f2),_0x3f88d5=_0x3cd668['getAttribute']('width'),_0xa7968=_0x3cd668['getAttribute']('height'),_0x5020d8='image-processing';_0x12b653['editing']['view']['change'](_0x474837=>{_0x474837['addClass'](_0x5020d8,_0x31826f),_0x474837['setStyle']('aspect-ratio',_0x3f88d5+'/'+_0xa7968,_0x30a7f2);}),_0x1d09fb['listenTo'](_0x5df969,'load',()=>{_0x1d09fb['stopListening'](_0x5df969,'load'),_0x12b653['editing']['view']['change'](_0x363212=>{_0x363212['removeClass'](_0x5020d8,_0x31826f),_0x363212['removeStyle']('aspect-ratio',_0x30a7f2);});});}function B(_0x39dc6f){if(Array['isArray'](_0x39dc6f)){const _0x173dbe=_0x39dc6f['map'](B);return _0xa0ed26=>_0x173dbe['some'](_0x32603a=>_0x32603a(_0xa0ed26));}if('origin'==_0x39dc6f){const _0x38f176=_0xca5948['window']['location']['origin'];return _0x29c168=>new URL(_0x29c168,_0xca5948['document']['baseURI'])['origin']==_0x38f176;}return'function'==typeof _0x39dc6f?_0x39dc6f:_0x39dc6f instanceof RegExp?_0x3f2692=>!(!_0x3f2692['match'](_0x39dc6f)&&!_0x3f2692['replace'](/^https?:\/\//,'')['match'](_0x39dc6f)):()=>!0x1;}function V(_0x199547,_0x1ca8d3){return _0x417cbe(_0x199547['target'])['includes'](_0x1ca8d3);}class j extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xcab798(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x407fe7,_0x1dbba0,_0x13a013){super(),this['_editor']=_0x407fe7,this['_editing']=_0x1dbba0,this['_dialog']=_0x407fe7['plugins']['get'](_0x1814e4),this['_api']=_0x1dbba0['ctxElement']['getAPI'](),this['_type']=_0x13a013,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:_0x397031,model:_0x5edfc3}=this['_editor'],_0xce2da4=_0x5edfc3['document']['selection']['getSelectedElement'](),_0x2eeb9e=_0xce2da4&&(_0xce2da4['is']('element','imageBlock')||_0xce2da4['is']('element','imageInline'));this['_formView']=new O(_0x397031,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x865cf3,'title':T(_0x397031,this['_type'],_0x2eeb9e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1bf303['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x32cd68=>!V(_0x32cd68,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x43e98f}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x27e96c=>{const _0x5d566b=_0x43e98f['length'];for(const _0x1cb1c5 of _0x43e98f){const _0x2be608=_0x1cb1c5===_0x43e98f[_0x5d566b-0x1],{cdnUrl:_0x5854d5,fileInfo:_0x563ef1}=_0x1cb1c5;if(!_0x5854d5||!_0x563ef1)continue;const {width:_0x351c23,height:_0x3e1485}=_0x563ef1['imageInfo'],_0x503b1a=F(_0x5854d5,_0x351c23,_0x3e1485),_0x477adc=D(_0x5854d5,_0x503b1a['width']),_0x56e4d3={'id':_0x563ef1['uuid'],'type':'image','attributes':{'imageDimension':_0x503b1a,..._0x477adc}};this['_insertAsset'](_0x56e4d3,_0x2be608,_0x27e96c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x133931=>{'idle'===_0x133931['detail']['status']&&!_0x133931['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===S['Local']?this['_api']['setCurrentActivity'](S['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2b658c,_0x4b5b98,_0x1192ed){const _0x41b9c3=this['_editor']['model']['document']['selection'],_0x31b276=_0x41b9c3['getSelectedElement'](),_0x3f5680=!(!_0x31b276||!_0x31b276['is']('element','imageInline'));_0x1192ed['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2b658c,_0x3f5680),_0x4b5b98||_0x1192ed['setSelection'](_0x41b9c3['getLastPosition']());}['_insertImage'](_0xdd668d,_0xdd06ce){const _0x4589da=this['_editor'],{imageDimension:_0x102322,imageFallbackUrl:_0x2f6403,imageSources:_0x1e62c1}=_0xdd668d['attributes'];_0x4589da['execute']('insertImage',{'imageType':_0xdd06ce?'imageInline':null,'source':{'uploadcareImageId':_0xdd668d['id'],'src':_0x2f6403,'sources':_0x1e62c1,..._0x102322}});}}class M extends _0x5980df{['_editing'];['_controller']=null;static get['requires'](){return[_0x1814e4,z];}constructor(_0x1a950e){super(_0x1a950e),this['_editing']=_0x1a950e['plugins']['get'](z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xa0de2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new j(this['editor'],this['_editing'],_0xa0de2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class q{static['upload']({file:_0x57ef9d,..._0x2aac51}){return _0x277534(_0x57ef9d,_0x2aac51);}static['getInfo'](_0x585fd3,_0x12e9a2){return _0x3e696(_0x585fd3,_0x12e9a2);}}class W extends _0x241860{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x336a6a,z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x120ac8=this['editor'];if(!!!_0x120ac8['config']['get']('uploadcare'))return;_0x120ac8['plugins']['get'](_0x336a6a)['createUploadAdapter']=_0x21c7b6=>new G(_0x21c7b6,_0x120ac8),_0x120ac8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4ab459,{imageElement:_0x4a534e,data:_0x2f5aed})=>{_0x120ac8['model']['change'](_0x574d34=>{_0x574d34['setAttribute']('uploadcareImageId',_0x2f5aed['uploadcareImageId'],_0x4a534e);});});}}class G{['loader'];['editor'];['controller'];constructor(_0xcf39ee,_0x2376da){this['loader']=_0xcf39ee,this['editor']=_0x2376da,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x32919a=await this['loader']['file'];return q['upload']({'file':_0x32919a,'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':_0x264a8d=>{_0x264a8d&&_0x264a8d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x264a8d['value']);}})['then'](async _0x398072=>{const {imageFallbackUrl:_0x510b73,imageSources:_0x203958}=D(_0x398072['cdnUrl'],_0x398072['imageInfo']['width']);return{'uploadcareImageId':_0x398072['uuid'],'default':_0x510b73,'sources':_0x203958};})['catch'](()=>{const _0x287345=t('Cannot\x20upload\x20file:')+('\x20'+_0x32919a['name']+'.');return Promise['reject'](_0x287345);});}['abort'](){this['controller']['abort']();}}class z extends _0x241860{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',W,_0x1814e4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x10145f){super(_0x10145f),this['ucContextId']=_0x594f4b();}['init'](){const _0x517423=this['editor'];_0x517423['commands']['add']('uploadcare',new M(_0x517423));}['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 _0x3b1355=_0xca5948['document']['querySelector']('input[uploadcare-file-input]');_0x3b1355&&_0x3b1355['remove']();}),async function(_0x1cd53e){const _0x1eaef3=_0x3d7ac2([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]),_0xb48f91=0x535f8c3a,_0x30477a=0x5358f39a^_0xb48f91,_0x3944ca=window[_0x3d7ac2([0x44,0x61,0x74,0x65])][_0x3d7ac2([0x6e,0x6f,0x77])](),_0xc73475=_0x1cd53e[_0x3d7ac2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c4695=new window[(_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ab5ec=>{_0xc73475[_0x3d7ac2([0x6f,0x6e,0x63,0x65])](_0x3d7ac2([0x72,0x65,0x61,0x64,0x79]),_0x3ab5ec);}),_0xe5fdd1={[_0x3d7ac2([0x6b,0x74,0x79])]:_0x3d7ac2([0x45,0x43]),[_0x3d7ac2([0x75,0x73,0x65])]:_0x3d7ac2([0x73,0x69,0x67]),[_0x3d7ac2([0x63,0x72,0x76])]:_0x3d7ac2([0x50,0x2d,0x32,0x35,0x36]),[_0x3d7ac2([0x78])]:_0x3d7ac2([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]),[_0x3d7ac2([0x79])]:_0x3d7ac2([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]),[_0x3d7ac2([0x61,0x6c,0x67])]:_0x3d7ac2([0x45,0x53,0x32,0x35,0x36])},_0x387cf9=_0xc73475[_0x3d7ac2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d7ac2([0x67,0x65,0x74])](_0x3d7ac2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3ce13c(){let _0x13ba1d,_0x57ca5e=null,_0x5e6ced=null;try{if(_0x387cf9==_0x3d7ac2([0x47,0x50,0x4c]))return _0x3d7ac2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x13ba1d=_0x23e08c(),!_0x13ba1d)return _0x3d7ac2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x13ba1d[_0x3d7ac2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e6ced=_0x13f418(_0x13ba1d[_0x3d7ac2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x13ba1d[_0x3d7ac2([0x6a,0x74,0x69])])),await _0x37d719()?_0x501ba6()?_0x2106dc()?_0x3d7ac2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x831416()?(_0x13ba1d[_0x3d7ac2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d7ac2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57ca5e=_0x356c77(_0x3d7ac2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2340b4()):_0x3d7ac2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d7ac2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d7ac2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3d7ac2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2106dc(){const _0x18e04b=[_0x3d7ac2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d7ac2([0x74,0x72,0x69,0x61,0x6c])][_0x3d7ac2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13ba1d[_0x3d7ac2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3944ca/0x3e8:0xe10*_0x30477a;return _0x13ba1d[_0x3d7ac2([0x65,0x78,0x70])]<_0x18e04b;}function _0x501ba6(){const _0xa7d97c=_0x13ba1d[_0x3d7ac2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa7d97c&&(!!_0xa7d97c[_0x3d7ac2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d7ac2([0x2a]))||!!_0xa7d97c[_0x3d7ac2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d7ac2([0x55,0x50,0x4c,0x43])));}function _0x831416(){const _0x59705d=_0x13ba1d[_0x3d7ac2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59705d||0x0==_0x59705d[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5ab59e}=new URL(window[_0x3d7ac2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59705d[_0x3d7ac2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ab59e))return!0x0;const _0xa9335e=_0x5ab59e[_0x3d7ac2([0x73,0x70,0x6c,0x69,0x74])](_0x3d7ac2([0x2e]));return _0x59705d[_0x3d7ac2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x295c5c=>_0x295c5c[_0x3d7ac2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d7ac2([0x2a])))[_0x3d7ac2([0x6d,0x61,0x70])](_0x20a930=>_0x20a930[_0x3d7ac2([0x73,0x70,0x6c,0x69,0x74])](_0x3d7ac2([0x2e])))[_0x3d7ac2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x161857=>_0x161857[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa9335e[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d7ac2([0x6d,0x61,0x70])](_0x703071=>Array(_0xa9335e[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x703071[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d7ac2([0x66,0x69,0x6c,0x6c])](_0x703071[0x0]===_0x3d7ac2([0x2a])?_0x3d7ac2([0x2a]):'')[_0x3d7ac2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x703071))[_0x3d7ac2([0x73,0x6f,0x6d,0x65])](_0xfa2980=>_0xa9335e[_0x3d7ac2([0x65,0x76,0x65,0x72,0x79])]((_0x434b6f,_0x4123b3)=>_0xfa2980[_0x4123b3]===_0x434b6f||_0xfa2980[_0x4123b3]===_0x3d7ac2([0x2a])));}function _0x2340b4(){return _0x57ca5e&&_0x5e6ced?new window[(_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15050d,_0x98d4be)=>{_0x57ca5e[_0x3d7ac2([0x74,0x68,0x65,0x6e])](_0x15050d,_0x98d4be),_0x5e6ced[_0x3d7ac2([0x74,0x68,0x65,0x6e])](_0x1dd5c4=>{_0x1dd5c4!=_0x3d7ac2([0x56,0x61,0x6c,0x69,0x64])&&_0x15050d(_0x1dd5c4);},_0x98d4be);}):_0x57ca5e||_0x5e6ced||_0x3d7ac2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x13f418(_0x395c12,_0x1fc9b9){return new window[(_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15376f=>{if(_0x4ec4ec())return _0x15376f(_0x3d7ac2([0x56,0x61,0x6c,0x69,0x64]));_0x49218d(),_0xc73475[_0x3d7ac2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d7ac2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1da788=!0x1;const _0x29a2f5=_0x594f4b();function _0x28086f(_0xa4f7dd){return!!_0xa4f7dd&&(typeof _0xa4f7dd===_0x3d7ac2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa4f7dd===_0x3d7ac2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa4f7dd[_0x3d7ac2([0x74,0x68,0x65,0x6e])]===_0x3d7ac2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa4f7dd[_0x3d7ac2([0x63,0x61,0x74,0x63,0x68])]===_0x3d7ac2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e57f0(_0x42e0c8){_0x21fc8f(_0x42e0c8)[_0x3d7ac2([0x74,0x68,0x65,0x6e])](_0xb1a904=>{if(!_0xb1a904||_0xb1a904[_0x3d7ac2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d7ac2([0x6f,0x6b]))return _0x3d7ac2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a53a0(_0x41ee62(_0x29a2f5+_0x1fc9b9))!=_0xb1a904[_0x3d7ac2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d7ac2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d7ac2([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d7ac2([0x74,0x68,0x65,0x6e])](_0x1c57c8=>(_0x574a2a(),_0x1c57c8),()=>{const _0x28a6d9=_0x5929c8();return null==_0x28a6d9?(_0x574a2a(),_0x3d7ac2([0x56,0x61,0x6c,0x69,0x64])):_0x3d7ac2(_0x3944ca-_0x28a6d9>(0x7753083a^_0xb48f91)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d7ac2([0x74,0x68,0x65,0x6e])](_0x15376f)[_0x3d7ac2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x15376f(_0x3d7ac2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1872b8=0x536962ba^_0xb48f91;function _0x574a2a(){const _0x14b12e=_0x3d7ac2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a53a0(_0x41ee62(_0x395c12)),_0x42101e=_0xba9b5(_0x2a53a0(window[_0x3d7ac2([0x4d,0x61,0x74,0x68])][_0x3d7ac2([0x63,0x65,0x69,0x6c])](_0x3944ca/_0x1872b8)));window[_0x3d7ac2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d7ac2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14b12e,_0x42101e);}function _0x5929c8(){const _0x522968=_0x3d7ac2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a53a0(_0x41ee62(_0x395c12)),_0x1e4f93=window[_0x3d7ac2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d7ac2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x522968);return _0x1e4f93?window[_0x3d7ac2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xba9b5(_0x1e4f93),0x10)*_0x1872b8:null;}function _0x21fc8f(_0x455796){return new window[(_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c014e,_0x1135c1)=>{_0x455796[_0x3d7ac2([0x74,0x68,0x65,0x6e])](_0x3c014e,_0x1135c1),window[_0x3d7ac2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1135c1,0x535e58fa^_0xb48f91);});}}_0xc73475[_0x3d7ac2([0x6f,0x6e])](_0x3d7ac2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2dcc3b,_0x4317c5)=>{if(_0x4317c5[0x0]!=_0x395c12)return _0x15376f(_0x3d7ac2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4317c5[0x1]={..._0x4317c5[0x1],[_0x3d7ac2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29a2f5};},{[_0x3d7ac2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d7ac2([0x68,0x69,0x67,0x68])}),_0xc73475[_0x3d7ac2([0x6f,0x6e])](_0x3d7ac2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x562274=>{_0x28086f(_0x562274[_0x3d7ac2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1da788=!0x0,_0x4e57f0(_0x562274[_0x3d7ac2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d7ac2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d7ac2([0x6c,0x6f,0x77])}),_0x4c4695[_0x3d7ac2([0x74,0x68,0x65,0x6e])](()=>{_0x1da788||_0x15376f(_0x3d7ac2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ec4ec(){return _0xc73475[_0x3d7ac2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d7ac2([0x76,0x69,0x65,0x77])][_0x3d7ac2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d7ac2([0x61,0x75,0x74,0x6f]);}function _0x49218d(){_0xc73475[_0x3d7ac2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d7ac2([0x76,0x69,0x65,0x77])][_0x3d7ac2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d7ac2([0x61,0x75,0x74,0x6f]);}}function _0x356c77(_0x2a8584){const _0x35c2d1=[new window[(_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5498c5=>setTimeout(_0x5498c5,0x5356b2f6^_0xb48f91)),_0x4c4695[_0x3d7ac2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x351629=>{let _0x3f870f=0x0;_0xc73475[_0x3d7ac2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d7ac2([0x6f,0x6e])](_0x3d7ac2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ef6c0,_0x498082)=>{_0x498082[0x0][_0x3d7ac2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f870f++,_0x3f870f==(0x535f89d2^_0xb48f91)&&(_0x351629(),_0x1ef6c0[_0x3d7ac2([0x6f,0x66,0x66])]());});}))];return window[_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d7ac2([0x72,0x61,0x63,0x65])](_0x35c2d1)[_0x3d7ac2([0x74,0x68,0x65,0x6e])](()=>_0x2a8584);}async function _0x56c70a(){await _0x4c4695,_0xc73475[_0x3d7ac2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d7ac2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51e464,_0xc73475[_0x3d7ac2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d7ac2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51e464,_0xc73475[_0x3d7ac2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d7ac2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x517faa(_0x4acd19){const _0x41d9c5=_0x544991();_0xc73475[_0x41d9c5]=_0x3d7ac2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4acd19,_0x4acd19!=_0x3d7ac2([0x56,0x61,0x6c,0x69,0x64])&&_0x56c70a();}function _0x544991(){const _0x512849=window[_0x3d7ac2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d7ac2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d7ac2([0x6e,0x6f,0x77])]())[_0x3d7ac2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d7ac2([0x2e]),'');let _0x598ca8=_0x3d7ac2([0x68]);for(let _0x32f214=0x0;_0x32f214<_0x512849[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32f214+=0x2){let _0x17ce05=window[_0x3d7ac2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x512849[_0x3d7ac2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32f214,_0x32f214+0x2));_0x17ce05>=_0x1eaef3[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x17ce05-=_0x1eaef3[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x598ca8+=_0x1eaef3[_0x17ce05];}return _0x598ca8;}function _0x23e08c(){const _0x9b3cdf=_0x387cf9[_0x3d7ac2([0x73,0x70,0x6c,0x69,0x74])](_0x3d7ac2([0x2e]));if(0x3!=_0x9b3cdf[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d31d1(_0x9b3cdf[0x1]);function _0x1d31d1(_0x5e54cd){const _0x4901f1=_0x58a067(_0x5e54cd);return _0x4901f1&&_0x447405()?_0x4901f1:null;function _0x447405(){const _0x49bcf8=_0x4901f1[_0x3d7ac2([0x6a,0x74,0x69])],_0x40dc7a=window[_0x3d7ac2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49bcf8[_0x3d7ac2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49bcf8[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11ef6c={..._0x4901f1,[_0x3d7ac2([0x6a,0x74,0x69])]:_0x49bcf8[_0x3d7ac2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x49bcf8[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11ef6c[_0x3d7ac2([0x76,0x63])],_0x41ee62(_0x11ef6c)==_0x40dc7a;}}}async function _0x37d719(){let _0xea3638=!0x0;try{const _0x48e79e=_0x387cf9[_0x3d7ac2([0x73,0x70,0x6c,0x69,0x74])](_0x3d7ac2([0x2e])),[_0xb4debb,_0x4f144b,_0x3305cb]=_0x48e79e;return _0x1ea033(_0xb4debb),await _0x4d189e(_0xb4debb,_0x4f144b,_0x3305cb),_0xea3638;}catch{return!0x1;}function _0x1ea033(_0x10af7c){const _0x593437=_0x58a067(_0x10af7c);_0x593437&&_0x593437[_0x3d7ac2([0x61,0x6c,0x67])]==_0x3d7ac2([0x45,0x53,0x32,0x35,0x36])||(_0xea3638=!0x1);}async function _0x4d189e(_0x2b800b,_0x1d2087,_0x345987){const _0x2d5e96=window[_0x3d7ac2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d7ac2([0x66,0x72,0x6f,0x6d])](_0x26c2bf(_0x345987),_0x22b3b7=>_0x22b3b7[_0x3d7ac2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12cf1f=new window[(_0x3d7ac2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d7ac2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b800b+_0x3d7ac2([0x2e])+_0x1d2087),_0xb87415=window[_0x3d7ac2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d7ac2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xb87415)return;const _0x42acdf=await _0xb87415[_0x3d7ac2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d7ac2([0x6a,0x77,0x6b]),_0xe5fdd1,{[_0x3d7ac2([0x6e,0x61,0x6d,0x65])]:_0x3d7ac2([0x45,0x43,0x44,0x53,0x41]),[_0x3d7ac2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d7ac2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d7ac2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xb87415[_0x3d7ac2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d7ac2([0x6e,0x61,0x6d,0x65])]:_0x3d7ac2([0x45,0x43,0x44,0x53,0x41]),[_0x3d7ac2([0x68,0x61,0x73,0x68])]:{[_0x3d7ac2([0x6e,0x61,0x6d,0x65])]:_0x3d7ac2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x42acdf,_0x2d5e96,_0x12cf1f)||(_0xea3638=!0x1);}}function _0x58a067(_0xe81b16){return _0xe81b16[_0x3d7ac2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d7ac2([0x65,0x79]))?JSON[_0x3d7ac2([0x70,0x61,0x72,0x73,0x65])](_0x26c2bf(_0xe81b16)):null;}function _0x26c2bf(_0x2f3b58){return window[_0x3d7ac2([0x61,0x74,0x6f,0x62])](_0x2f3b58[_0x3d7ac2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d7ac2([0x2b]))[_0x3d7ac2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d7ac2([0x2f])));}function _0x41ee62(_0x17d0b5){let _0x139685=0x1505;function _0x32478f(_0x5144c4){for(let _0x43fa4a=0x0;_0x43fa4a<_0x5144c4[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43fa4a++){const _0x536388=_0x5144c4[_0x3d7ac2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43fa4a);_0x139685=(_0x139685<<0x5)+_0x139685+_0x536388,_0x139685&=_0x139685;}}function _0x1b8729(_0x36cc4c){Array[_0x3d7ac2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36cc4c)?_0x36cc4c[_0x3d7ac2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1b8729):_0x36cc4c&&typeof _0x36cc4c==_0x3d7ac2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d7ac2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36cc4c)[_0x3d7ac2([0x73,0x6f,0x72,0x74])]()[_0x3d7ac2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc47248,_0x689d36])=>{_0x32478f(_0xc47248),_0x1b8729(_0x689d36);}):_0x32478f(window[_0x3d7ac2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36cc4c));}return _0x1b8729(_0x17d0b5),_0x139685>>>0x0;}function _0x2a53a0(_0x45f3ea){return _0x45f3ea[_0x3d7ac2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d7ac2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d7ac2([0x30]));}function _0xba9b5(_0x5f91ea){return _0x5f91ea[_0x3d7ac2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d7ac2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d7ac2([0x6a,0x6f,0x69,0x6e])]('');}function _0x51e464(){}function _0x3d7ac2(_0x3fc916){return _0x3fc916['map'](_0x27eeb2=>String['fromCharCode'](_0x27eeb2))['join']('');}_0x517faa(await _0x3ce13c());}(this);}['_initSchema'](){const _0x6186c5=this['editor']['model']['schema'];_0x6186c5['isRegistered']('imageBlock')&&_0x6186c5['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x6186c5['isRegistered']('imageInline')&&_0x6186c5['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3322cb=this['editor'];_0x3322cb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3322cb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x431221=>_0x431221['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x110c29=_0x3322cb['commands']['get']('replaceImageSource');_0x110c29&&this['listenTo'](_0x110c29,'cleanupImage',(_0x5d4b4d,[_0x5e3451,_0x496112])=>{_0x5e3451['removeAttribute']('uploadcareImageId',_0x496112);});}['_initConfig'](){const _0x483622=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3b1715=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x224752(_0xca5948['document'],'uc-config',{..._0x483622,'pubkey':_0x3b1715,'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']=_0x4cb384=>{if('closeMax'==_0x4cb384)return'#uc-icon-arrow-down';},_0xca5948['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x224752(_0xca5948['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xca5948['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x59cece=this['editor']['commands']['get']('insertImage');_0x59cece&&this['listenTo'](_0x59cece,'execute',()=>{const _0xb2736a=this['editor']['model']['document']['selection']['getSelectedElement']();_0xb2736a&&_0xb2736a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0xb2736a);});});const _0x4d275e=this['editor']['commands']['get']('uploadcareImageReplace');_0x4d275e&&this['listenTo'](_0x4d275e,'execute',()=>{const _0x43adc5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x43adc5&&_0x43adc5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x43adc5);});});}}class H extends _0x241860{static get['requires'](){return[z,A];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28c318){super(_0x28c318),_0x28c318['config']['define']('uploadcare.uploader.sourceList',[S['Local'],S['URL']]),_0x2e6e5a['defineComponents'](_0x2e6e5a),this['_defineLocale']();}['_defineLocale'](){const _0x54b758=this['editor']['config']['get']('uploadcare.locale'),_0xf73086=this['editor']['locale']['contentLanguage'];_0x54b758&&_0x2e6e5a['defineLocale'](_0xf73086,_0x54b758);}}class J extends _0x3f8953{constructor(_0x2342f1){super(_0x2342f1);const t=_0x2342f1['t'],_0x392240=this['bindTemplate'],_0x39b6a3=new _0x14287f();_0x39b6a3['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':[_0x39b6a3,{'text':_0x392240['to']('imageUploadProgress',_0x1b96ac=>t('Loading\x20image...')+'\x20('+(_0x1b96ac||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 _0x3f8953{constructor(_0x27655d){super(_0x27655d);const t=_0x27655d['t'];this['set']('errorType',null);const _0x183af5=new _0x261f0d(_0x27655d);_0x183af5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x183af5['withText']=!0x0,_0x183af5['class']='ck-button-action',_0x183af5['on']('execute',()=>{this['fire']('retry');}),_0x183af5['bind']('isVisible')['to'](this,'errorType',_0x750e2=>'NotFound'!==_0x750e2);const _0x9bd710=new _0x22bbeb();_0x9bd710['content']=_0x41012d,_0x9bd710['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1d9e3f=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':[_0x9bd710,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1d9e3f['to']('errorType',_0x4307df=>t('NotFound'!==_0x4307df?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x183af5]},{'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 _0x3f8953{constructor(_0x24a030,_0x481898){super(_0x24a030);const _0x2c8e01=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x481898,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2c8e01['to']('imageSrc')}});}}class X extends K{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x56b62d,_0x26859f,_0xcc0555){super(_0x56b62d),this['_items']=this['createCollection'](),this['_loadingView']=new J(_0x56b62d),this['_errorView']=new Z(_0x56b62d),this['_editingView']=new Q(_0x56b62d,_0xcc0555),this['_focusableView']=new _0x3f8953(_0x56b62d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x26859f),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'],_0xaf4c9e=>{this['_addUploadcareImageEditorListeners'](_0xaf4c9e);});}),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'](_0x455524,_0x3d06fd){const _0xa973a0='uc-cloud-image-editor',_0x58aab9=_0x455524['querySelector'](_0xa973a0);if(_0x58aab9)return _0x3d06fd(_0x58aab9);const _0x476c47=new MutationObserver(_0x57b547=>{const _0x19ebbc=_0x57b547['filter'](_0x50afe9=>_0x50afe9['target']===_0x455524&&_0x50afe9['addedNodes']['length']>0x0&&_0x50afe9['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xa973a0);_0x19ebbc['length']&&(_0x476c47['disconnect'](),_0x3d06fd(_0x19ebbc[0x0]['addedNodes'][0x0]));});_0x476c47['observe'](_0x455524,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3dabc2){_0x3dabc2['addEventListener']('apply',_0x1fc269=>{this['fire']('apply',{'imageSrc':_0x1fc269['detail']['cdnUrl']});}),_0x3dabc2['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Y extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xcab798(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x48c3e6,_0x237515,_0x3cac1d){super(),this['_editor']=_0x48c3e6,this['_dialog']=_0x237515,this['_imageElement']=_0x3cac1d,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 _0x160b46=this['_imageElement'],_0x18d485=_0x160b46['getAttribute']('uploadcareImageId'),_0x412952=_0x160b46['getAttribute']('src');if(_0x18d485)await this['_loadImageInfo'](_0x18d485,_0x412952);else{if(this['_imageCache']['has'](_0x412952)){const _0x186877=this['_imageCache']['get'](_0x412952);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x186877['url'],this['imageDimension']=_0x186877['dimension'],this['imageId']=_0x186877['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xc0f60}=this['_editor'],t=_0xc0f60['t'],_0x2bda46=new X(_0xc0f60,this['imageStatus'],this['_attributes']);_0x2bda46['bind']('status')['to'](this,'imageStatus'),_0x2bda46['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2bda46['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2bda46['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2bda46,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x182a19,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2bda46,'position':_0x1bf303['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2bda46['focus']();},'onHide':()=>{_0x2bda46['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3a1a1b=>!V(_0x3a1a1b,_0x2bda46['element'])}});}['_loadImageInfo'](_0x1c704a,_0x1745be){return q['getInfo'](_0x1c704a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x24edcb=>{const {width:_0x3f80d8,height:_0x5710f9}=_0x24edcb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1745be,this['imageDimension']={'width':_0x3f80d8,'height':_0x5710f9},this['imageId']=_0x1c704a;})['catch'](_0x14f6d5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x14f6d5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1698b8,_0x23f9d2){return this['_getImageAsFile'](_0x1698b8)['then'](_0x55558d=>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':_0x23f9d2['signal'],'file':_0x55558d,'onProgress':_0x48fcd4=>{_0x48fcd4&&_0x48fcd4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x48fcd4['value']));}}))['then'](_0x5d6524=>{const {width:_0x98fdbd,height:_0x5b1392}=_0x5d6524['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5d6524['cdnUrl'],this['imageDimension']={'width':_0x98fdbd,'height':_0x5b1392},this['imageId']=_0x5d6524['uuid'],this['imageUploadProgress']=null;const _0x4b5938=_0x1698b8['getAttribute']('src');this['_imageCache']['set'](_0x4b5938,{'id':_0x5d6524['uuid'],'url':_0x5d6524['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x45956f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x45956f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x548d11,_0x325dcb){_0x548d11['on']('apply',(_0x5ef6b9,_0x10e39f)=>{this['_replaceImage'](_0x325dcb,_0x10e39f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x548d11['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x548d11['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x16fb5e,_0x323bc8,_0x422136){const _0x141c23=this['_editor'],{width:_0x3fb69e,height:_0x2e6be9}=F(_0x323bc8,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x57601e,imageSources:_0x557c58}=D(_0x323bc8,_0x3fb69e);_0x141c23['model']['change'](_0x4e612f=>{if('$graveyard'===_0x16fb5e['root']['rootName']){_0x141c23['execute']('insertImage',{'imageType':_0x16fb5e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x16fb5e['getAttributes']()),'uploadcareImageId':_0x422136,'src':_0x57601e,'sources':_0x557c58,'width':_0x3fb69e,'height':_0x2e6be9}});const _0x4e6ac6=_0x16fb5e['getChildren']();_0x16fb5e=_0x141c23['model']['document']['selection']['getSelectedElement']();for(const _0x425584 of _0x4e6ac6)_0x4e612f['append'](_0x4e612f['cloneElement'](_0x425584),_0x16fb5e);}else _0x4e612f['setSelection'](_0x16fb5e,'on'),_0x141c23['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x16fb5e['getAttributes']()),'uploadcareImageId':_0x422136,'src':_0x57601e,'sources':_0x557c58,'width':_0x3fb69e,'height':_0x2e6be9},_0x16fb5e);_0x4e612f['setSelection'](_0x16fb5e,'on');});}async['_getImageAsFile'](_0x31cb39){const _0x271010=_0xca5948['window'],_0x1f5435=_0xca5948['document']['location']['href'],_0x1df65e=new _0x271010['URL'](_0x31cb39['getAttribute']('src'),_0x1f5435);if('data:'===_0x1df65e['protocol']){const _0x39ca79=_0x1df65e['href']['split'](','),_0x15f1da=_0x39ca79[0x0]['match'](/:(.*?);/)[0x1],_0x21e834=_0x15f1da['split']('/')[0x1],_0x3c5f10=_0x271010['atob'](_0x39ca79[_0x39ca79['length']-0x1]);let _0x19d422=_0x3c5f10['length'];const _0x273966=new _0x271010['Uint8Array'](_0x19d422);for(;_0x19d422--;)_0x273966[_0x19d422]=_0x3c5f10['charCodeAt'](_0x19d422);return new _0x271010['File']([_0x273966],'image.'+_0x21e834,{'type':_0x15f1da});}const _0x418bbf=_0x1df65e['href']['split']('/'),_0x5bdec3=_0x418bbf[_0x418bbf['length']-0x1],_0x233842=_0x5bdec3['split']('.')[0x1];return _0x271010['fetch'](_0x1df65e['href'])['then'](_0x10faab=>_0x10faab['clone']()['blob']())['then'](_0x58e693=>new _0x271010['File']([_0x58e693],_0x5bdec3,{'type':'image/'+_0x233842}));}}class tt extends _0x5980df{['imageEditController'];static get['requires'](){return[_0x1814e4];}['_isEditable'];constructor(_0x48d231){super(_0x48d231),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x205ec2){const _0xd1f1eb=B(_0x205ec2);return _0xec4e91=>!(!_0xec4e91||!_0xec4e91['is']('element','imageBlock')&&!_0xec4e91['is']('element','imageInline'))&&(!!_0xec4e91['hasAttribute']('uploadcareImageId')||!!_0xec4e91['hasAttribute']('src')&&_0xd1f1eb(_0xec4e91['getAttribute']('src')));}(_0x48d231['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x19b75a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x19b75a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x16263f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x16263f&&(_0x16263f['is']('element','imageBlock')||_0x16263f['is']('element','imageInline'))&&(this['imageEditController']=new Y(this['editor'],this['editor']['plugins']['get'](_0x1814e4),_0x16263f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class et extends _0x5980df{['refresh'](){const _0x34512b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x34512b&&(_0x34512b['is']('element','imageBlock')||_0x34512b['is']('element','imageInline')));}['execute'](_0xc6c543){const _0x157b71=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x531475=>{_0x531475['setAttributes'](_0xc6c543,_0x157b71),_0x531475['removeAttribute']('srcset',_0x157b71),_0x531475['removeAttribute']('sizes',_0x157b71);});}}class it extends _0x241860{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[z,_0x5107b8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3caa92}=this;_0x3caa92['commands']['add']('uploadcareImageEdit',new tt(_0x3caa92)),_0x3caa92['commands']['add']('uploadcareImageReplace',new et(_0x3caa92));}}class st extends _0x241860{['_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 _0x4f117d=this['editor'];_0x4f117d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x37a67b=>{const _0x2ccc45=_0x4f117d['commands']['get']('uploadcareImageEdit'),_0xe20106=new _0x261f0d(_0x37a67b),t=_0x37a67b['t'];return _0xe20106['set']({'icon':_0x182a19,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xe20106['bind']('isEnabled')['to'](_0x2ccc45),_0xe20106['bind']('isOn')['to'](_0x2ccc45,'isActive'),this['listenTo'](_0xe20106,'execute',()=>{_0x4f117d['execute']('uploadcareImageEdit'),_0x4f117d['editing']['view']['focus']();}),_0xe20106;}),this['_initConfig']();}['_initConfig'](){const _0x28e0db=_0x224752(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x28e0db),this['listenTo'](this['editor'],'destroy',()=>{_0x28e0db['remove']();});}}class nt extends _0x241860{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 _0x150695,Command as _0x35863b}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x228dd5,IconGooglePhotos as _0x139280,IconGoogleDrive as _0x1afef5,IconFacebook as _0x3c5dfd,IconDropbox as _0xfe594d,IconUploadcareLink as _0x319d94,IconUploadcareImageUpload as _0x565d2d,IconError as _0x3b0889,IconUploadcareImageEdit as _0x178804}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x56987c,MenuBarMenuListItemButtonView as _0x26feca,View as _0x39157e,FocusCycler as _0x38dbeb,Dialog as _0x3ac812,DialogViewPosition as _0x5773c9,SpinnerView as _0x4e4daa,IconView as _0x311890,Notification as _0x181562}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2f7f6f,DomEmitterMixin as _0x588bb3,global as _0x34be63,getAncestors as _0x20d0c4,ObservableMixin as _0x391e1b,uid as _0x146068,createElement as _0x4adfc6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x433da8}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1c39d4,info as _0x5759b9}from'@uploadcare/upload-client';import*as _0x349517 from'@uploadcare/file-uploader';var S=function(_0x72d442){return _0x72d442['Local']='local',_0x72d442['URL']='url',_0x72d442['Dropbox']='dropbox',_0x72d442['GDrive']='gdrive',_0x72d442['Facebook']='facebook',_0x72d442['GPhotos']='gphotos',_0x72d442['OneDrive']='onedrive',_0x72d442;}({});function T(_0x3aecf1,_0x4dc96c,_0x201536){const t=_0x3aecf1['t'],_0x221ee9=_0x3aecf1['t'];switch(_0x4dc96c){case S['Local']:return{'text':_0x221ee9('Insert'===_0x201536?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x221ee9('From\x20computer')};case S['URL']:return{'text':'Insert'===_0x201536?_0x221ee9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x221ee9('Via\x20URL')};case S['Dropbox']:return{'text':t('Insert'===_0x201536?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case S['Facebook']:return{'text':t('Insert'===_0x201536?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case S['GDrive']:return{'text':t('Insert'===_0x201536?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case S['GPhotos']:return{'text':t('Insert'===_0x201536?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case S['OneDrive']:return{'text':t('Insert'===_0x201536?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4dc96c;}}class A extends _0x150695{['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 _0x373699=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f36c4;for(const _0x2731c3 in _0x373699){const _0x2f7dbf=_0x2731c3,_0x431393=_0x373699[_0x2f7dbf];if('uploadcareLicenseKeyValid'==_0x431393||'uploadcareLicenseKeyInvalid'==_0x431393||'uploadcareLicenseKeyExpired'==_0x431393||'uploadcareLicenseKeyDomainLimit'==_0x431393||'uploadcareLicenseKeyNotAllowed'==_0x431393||'uploadcareLicenseKeyEvaluationLimit'==_0x431393||'uploadcareLicenseKeyUsageLimit'==_0x431393){delete _0x373699[_0x2f7dbf],_0x1f36c4=_0x431393,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1f36c4&&_0x373699['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1f36c4&&_0x373699['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1f36c4&&_0x373699['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1f36c4&&_0x373699['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1f36c4&&_0x373699['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1f36c4&&_0x373699['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x15f7a6}=this,_0x5dbcb6=_0x15f7a6['commands']['get']('uploadcare');if(!_0x5dbcb6)return;const _0x1e3109=this['_normalizeConfigSourceList'](_0x15f7a6['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5a91cc,_0x717e1a)=>{const _0x2f1b74=this['_getIntegrationKey'](_0x717e1a['type']);return _0x5a91cc[_0x2f1b74]||(_0x5a91cc[_0x2f1b74]=[]),_0x5a91cc[_0x2f1b74]['push'](_0x717e1a),_0x5a91cc;},{});_0x15f7a6['plugins']['has']('ImageInsertUI')&&_0x15f7a6['commands']['get']('uploadcare')&&Object['entries'](_0x1e3109)['forEach'](([_0x3f55a8,_0xbcf306])=>{_0x15f7a6['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3f55a8,'observable':()=>_0x5dbcb6,'buttonViewCreator':()=>this['_createToolbarButton'](_0xbcf306),'formViewCreator':()=>this['_createDropdownButtons'](_0xbcf306),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xbcf306),'override':'assetManager'!==_0x3f55a8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x122111){const {locale:_0x46990c}=this['editor'];return _0x122111['map'](_0x45dd77=>{const _0x278888=T(_0x46990c,_0x45dd77,'Insert');switch(_0x45dd77){case S['Local']:return{'icon':_0x565d2d,'type':S['Local'],..._0x278888};case S['URL']:return{'icon':_0x319d94,'type':S['URL'],..._0x278888};case S['Dropbox']:return{'icon':_0xfe594d,'type':S['Dropbox'],..._0x278888};case S['Facebook']:return{'icon':_0x3c5dfd,'type':S['Facebook'],..._0x278888};case S['GDrive']:return{'icon':_0x1afef5,'type':S['GDrive'],..._0x278888};case S['GPhotos']:return{'icon':_0x139280,'type':S['GPhotos'],..._0x278888};case S['OneDrive']:return{'icon':_0x228dd5,'type':S['OneDrive'],..._0x278888};}});}['_getIntegrationKey'](_0x18a269){switch(_0x18a269){case S['Local']:return'upload';case S['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x94d8d5,_0x3c481c){const _0x5ddd2b=this['editor'],_0x264222=new _0x94d8d5(_0x5ddd2b['locale']),_0x4ef557=_0x5ddd2b['commands']['get']('uploadcare');return _0x264222['bind']('isEnabled')['to'](_0x4ef557),_0x264222['on']('execute',()=>{_0x4ef557['execute'](_0x3c481c);}),_0x264222;}['_createToolbarButton'](_0x32d84c){const {locale:_0x408744}=this['editor'],_0x1aad20=this['editor']['plugins']['get']('ImageInsertUI'),_0x3270d3=_0x32d84c[0x0],_0x24e571=this['_createButton'](_0x56987c,_0x3270d3['type']);return _0x24e571['icon']=_0x3270d3['icon'],_0x24e571['bind']('label')['to'](_0x1aad20,'isImageSelected',_0x1524c9=>T(_0x408744,_0x3270d3['type'],_0x1524c9?'Replace':'Insert')['text']),_0x24e571['tooltip']=!0x0,_0x24e571;}['_createDropdownButtons'](_0x2b5810){const {locale:_0x28b1f0}=this['editor'],_0x683004=this['editor']['plugins']['get']('ImageInsertUI');return _0x2b5810['map'](_0xbd0e88=>{const _0x509f0b=this['_createButton'](_0x56987c,_0xbd0e88['type']);return _0x509f0b['withText']=!0x0,_0x509f0b['icon']=_0xbd0e88['icon'],_0x509f0b['bind']('label')['to'](_0x683004,'isImageSelected',_0x302e4d=>T(_0x28b1f0,_0xbd0e88['type'],_0x302e4d?'Replace':'Insert')['text']),_0x509f0b;});}['_createMenuBarButtons'](_0x320e73){return _0x320e73['map'](_0x538a51=>{const _0x2d5b4e=this['_createButton'](_0x26feca,_0x538a51['type']);return _0x2d5b4e['icon']=_0x538a51['icon'],_0x2d5b4e['label']=_0x538a51['shortText'],_0x2d5b4e;});}}class K extends _0x39157e{['focusTracker'];['focusCycler'];constructor(_0x27b63c){super(_0x27b63c),this['focusTracker']=new _0x2f7f6f(),this['focusCycler']=new _0x38dbeb({'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(_0x5731cb,_0x3c46cc){super(_0x5731cb),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-'+_0x3c46cc}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function D(_0x59b8ac,_0xf26c28){const _0x3a47c2=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x56fd0f=>_0x56fd0f<=_0xf26c28)['map'](_0x4cded2=>_0x59b8ac['replace'](/\/$/,'')+'/-/resize/'+_0x4cded2+'x/\x20'+_0x4cded2+'w');return{'imageFallbackUrl':_0x59b8ac,'imageSources':[{'srcset':_0x3a47c2['join'](',\x20'),'sizes':'(max-width:\x20'+_0xf26c28+'px)\x20100vw,\x20'+_0xf26c28+'px','type':'image/webp'}]};}function F(_0x51eea5,_0x2e48e5,_0x5b588e){const _0x5ccfc2=_0x51eea5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5ccfc2?parseInt(_0x5ccfc2[0x1],0xa):_0x2e48e5,'height':_0x5ccfc2?parseInt(_0x5ccfc2[0x2],0xa):_0x5b588e};}function $(_0x50f891,_0x4358b8){const _0x1576bd=new(_0x588bb3())(),_0x1195e2=_0x50f891['plugins']['get']('ImageUtils'),_0x4ce9b7=_0x50f891['editing']['mapper']['toViewElement'](_0x4358b8),_0x45e04a=_0x1195e2['findViewImgElement'](_0x4ce9b7),_0x323fde=_0x50f891['editing']['view']['domConverter']['viewToDom'](_0x45e04a),_0x3f2f0f=_0x4358b8['getAttribute']('width'),_0x54a66b=_0x4358b8['getAttribute']('height'),_0x69a7d1='image-processing';_0x50f891['editing']['view']['change'](_0x4974b0=>{_0x4974b0['addClass'](_0x69a7d1,_0x4ce9b7),_0x4974b0['setStyle']('aspect-ratio',_0x3f2f0f+'/'+_0x54a66b,_0x45e04a);}),_0x1576bd['listenTo'](_0x323fde,'load',()=>{_0x1576bd['stopListening'](_0x323fde,'load'),_0x50f891['editing']['view']['change'](_0x5913ab=>{_0x5913ab['removeClass'](_0x69a7d1,_0x4ce9b7),_0x5913ab['removeStyle']('aspect-ratio',_0x45e04a);});});}function B(_0x5830a6){if(Array['isArray'](_0x5830a6)){const _0x5b7e75=_0x5830a6['map'](B);return _0x117379=>_0x5b7e75['some'](_0x9ebcfb=>_0x9ebcfb(_0x117379));}if('origin'==_0x5830a6){const _0x4518e7=_0x34be63['window']['location']['origin'];return _0x3b3279=>new URL(_0x3b3279,_0x34be63['document']['baseURI'])['origin']==_0x4518e7;}return'function'==typeof _0x5830a6?_0x5830a6:_0x5830a6 instanceof RegExp?_0x5b8c13=>!(!_0x5b8c13['match'](_0x5830a6)&&!_0x5b8c13['replace'](/^https?:\/\//,'')['match'](_0x5830a6)):()=>!0x1;}function V(_0x1cdacf,_0xa82f75){return _0x20d0c4(_0x1cdacf['target'])['includes'](_0xa82f75);}class j extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x391e1b(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x19a5c4,_0x8a7da3,_0x36ce8f){super(),this['_editor']=_0x19a5c4,this['_editing']=_0x8a7da3,this['_dialog']=_0x19a5c4['plugins']['get'](_0x3ac812),this['_api']=_0x8a7da3['ctxElement']['getAPI'](),this['_type']=_0x36ce8f,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:_0x2acbbc,model:_0x50b369}=this['_editor'],_0x4f518e=_0x50b369['document']['selection']['getSelectedElement'](),_0x165fe6=_0x4f518e&&(_0x4f518e['is']('element','imageBlock')||_0x4f518e['is']('element','imageInline'));this['_formView']=new O(_0x2acbbc,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x565d2d,'title':T(_0x2acbbc,this['_type'],_0x165fe6?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5773c9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x51ea92=>!V(_0x51ea92,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4cc76c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1d55b3=>{const _0x4e3963=_0x4cc76c['length'];for(const _0x366ea7 of _0x4cc76c){const _0xdbfec=_0x366ea7===_0x4cc76c[_0x4e3963-0x1],{cdnUrl:_0x4bcfdb,fileInfo:_0x4edb90}=_0x366ea7;if(!_0x4bcfdb||!_0x4edb90)continue;const {width:_0x32ed39,height:_0x1e0408}=_0x4edb90['imageInfo'],_0x566c17=F(_0x4bcfdb,_0x32ed39,_0x1e0408),_0x148c65=D(_0x4bcfdb,_0x566c17['width']),_0x5491a4={'id':_0x4edb90['uuid'],'type':'image','attributes':{'imageDimension':_0x566c17,..._0x148c65}};this['_insertAsset'](_0x5491a4,_0xdbfec,_0x1d55b3);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x589181=>{'idle'===_0x589181['detail']['status']&&!_0x589181['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===S['Local']?this['_api']['setCurrentActivity'](S['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x6de567,_0x1f5472,_0x4305d5){const _0x35d5e7=this['_editor']['model']['document']['selection'],_0x376629=_0x35d5e7['getSelectedElement'](),_0x47fb2d=!(!_0x376629||!_0x376629['is']('element','imageInline'));_0x4305d5['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x6de567,_0x47fb2d),_0x1f5472||_0x4305d5['setSelection'](_0x35d5e7['getLastPosition']());}['_insertImage'](_0x315221,_0x2c2660){const _0x896cbd=this['_editor'],{imageDimension:_0x42fe68,imageFallbackUrl:_0xb1a90,imageSources:_0x1ff826}=_0x315221['attributes'];_0x896cbd['execute']('insertImage',{'imageType':_0x2c2660?'imageInline':null,'source':{'uploadcareImageId':_0x315221['id'],'src':_0xb1a90,'sources':_0x1ff826,..._0x42fe68}});}}class M extends _0x35863b{['_editing'];['_controller']=null;static get['requires'](){return[_0x3ac812,z];}constructor(_0x278def){super(_0x278def),this['_editing']=_0x278def['plugins']['get'](z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x11ac00){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new j(this['editor'],this['_editing'],_0x11ac00);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class q{static['upload']({file:_0x5dcec4,..._0x40370c}){return _0x1c39d4(_0x5dcec4,_0x40370c);}static['getInfo'](_0x461ec1,_0x5418a4){return _0x5759b9(_0x461ec1,_0x5418a4);}}class W extends _0x150695{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x433da8,z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4cdaf6=this['editor'];if(!!!_0x4cdaf6['config']['get']('uploadcare'))return;_0x4cdaf6['plugins']['get'](_0x433da8)['createUploadAdapter']=_0x3b97c0=>new G(_0x3b97c0,_0x4cdaf6),_0x4cdaf6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4a695c,{imageElement:_0x4df60f,data:_0xbd4162})=>{_0x4cdaf6['model']['change'](_0x53e15a=>{_0x53e15a['setAttribute']('uploadcareImageId',_0xbd4162['uploadcareImageId'],_0x4df60f);});});}}class G{['loader'];['editor'];['controller'];constructor(_0x1382a0,_0x3853f6){this['loader']=_0x1382a0,this['editor']=_0x3853f6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x15bef4=await this['loader']['file'];return q['upload']({'file':_0x15bef4,'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':_0x3d4e57=>{_0x3d4e57&&_0x3d4e57['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3d4e57['value']);}})['then'](async _0x31f2de=>{const {imageFallbackUrl:_0x59a683,imageSources:_0x53e2a9}=D(_0x31f2de['cdnUrl'],_0x31f2de['imageInfo']['width']);return{'uploadcareImageId':_0x31f2de['uuid'],'default':_0x59a683,'sources':_0x53e2a9};})['catch'](()=>{const _0x3b77cf=t('Cannot\x20upload\x20file:')+('\x20'+_0x15bef4['name']+'.');return Promise['reject'](_0x3b77cf);});}['abort'](){this['controller']['abort']();}}class z extends _0x150695{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',W,_0x3ac812];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x59c069){super(_0x59c069),this['ucContextId']=_0x146068();}['init'](){const _0x3d6c80=this['editor'];_0x3d6c80['commands']['add']('uploadcare',new M(_0x3d6c80));}['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 _0x32fa8c=_0x34be63['document']['querySelector']('input[uploadcare-file-input]');_0x32fa8c&&_0x32fa8c['remove']();}),async function(_0x23dce2){const _0x207b37=_0x534a5c([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]),_0x105c89=0x535f8c3a,_0x540a0a=0x5358f382^_0x105c89,_0x458512=window[_0x534a5c([0x44,0x61,0x74,0x65])][_0x534a5c([0x6e,0x6f,0x77])](),_0x352c12=_0x23dce2[_0x534a5c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x7bbdcd=new window[(_0x534a5c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x586903=>{_0x352c12[_0x534a5c([0x6f,0x6e,0x63,0x65])](_0x534a5c([0x72,0x65,0x61,0x64,0x79]),_0x586903);}),_0x14ae8b={[_0x534a5c([0x6b,0x74,0x79])]:_0x534a5c([0x45,0x43]),[_0x534a5c([0x75,0x73,0x65])]:_0x534a5c([0x73,0x69,0x67]),[_0x534a5c([0x63,0x72,0x76])]:_0x534a5c([0x50,0x2d,0x32,0x35,0x36]),[_0x534a5c([0x78])]:_0x534a5c([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]),[_0x534a5c([0x79])]:_0x534a5c([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]),[_0x534a5c([0x61,0x6c,0x67])]:_0x534a5c([0x45,0x53,0x32,0x35,0x36])},_0x47359b=_0x352c12[_0x534a5c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x534a5c([0x67,0x65,0x74])](_0x534a5c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1f5af5(){let _0x579cbc,_0x5293f4=null,_0x4a275f=null;try{if(_0x47359b==_0x534a5c([0x47,0x50,0x4c]))return _0x534a5c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x579cbc=_0xf8ed3c(),!_0x579cbc)return _0x534a5c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x579cbc[_0x534a5c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4a275f=_0x58361d(_0x579cbc[_0x534a5c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x579cbc[_0x534a5c([0x6a,0x74,0x69])])),await _0x3e1ecb()?_0x22bf1e()?_0x31ae5f()?_0x534a5c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x7678ef()?(_0x579cbc[_0x534a5c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x534a5c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5293f4=_0x480178(_0x534a5c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xe7a6c9()):_0x534a5c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x534a5c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x534a5c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x534a5c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31ae5f(){const _0x118b8b=[_0x534a5c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x534a5c([0x74,0x72,0x69,0x61,0x6c])][_0x534a5c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x579cbc[_0x534a5c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x458512/0x3e8:0xe10*_0x540a0a;return _0x579cbc[_0x534a5c([0x65,0x78,0x70])]<_0x118b8b;}function _0x22bf1e(){const _0x375877=_0x579cbc[_0x534a5c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x375877&&(!!_0x375877[_0x534a5c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x534a5c([0x2a]))||!!_0x375877[_0x534a5c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x534a5c([0x55,0x50,0x4c,0x43])));}function _0x7678ef(){const _0xa4148d=_0x579cbc[_0x534a5c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xa4148d||0x0==_0xa4148d[_0x534a5c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59eb41}=new URL(window[_0x534a5c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xa4148d[_0x534a5c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59eb41))return!0x0;const _0x19c9a7=_0x59eb41[_0x534a5c([0x73,0x70,0x6c,0x69,0x74])](_0x534a5c([0x2e]));return _0xa4148d[_0x534a5c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xaf1230=>_0xaf1230[_0x534a5c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x534a5c([0x2a])))[_0x534a5c([0x6d,0x61,0x70])](_0x383cb1=>_0x383cb1[_0x534a5c([0x73,0x70,0x6c,0x69,0x74])](_0x534a5c([0x2e])))[_0x534a5c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5f2567=>_0x5f2567[_0x534a5c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x19c9a7[_0x534a5c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x534a5c([0x6d,0x61,0x70])](_0x415e16=>Array(_0x19c9a7[_0x534a5c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x415e16[_0x534a5c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x534a5c([0x66,0x69,0x6c,0x6c])](_0x415e16[0x0]===_0x534a5c([0x2a])?_0x534a5c([0x2a]):'')[_0x534a5c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x415e16))[_0x534a5c([0x73,0x6f,0x6d,0x65])](_0x1022f4=>_0x19c9a7[_0x534a5c([0x65,0x76,0x65,0x72,0x79])]((_0x177698,_0x42870c)=>_0x1022f4[_0x42870c]===_0x177698||_0x1022f4[_0x42870c]===_0x534a5c([0x2a])));}function _0xe7a6c9(){return _0x5293f4&&_0x4a275f?new window[(_0x534a5c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1683b9,_0x5f6454)=>{_0x5293f4[_0x534a5c([0x74,0x68,0x65,0x6e])](_0x1683b9,_0x5f6454),_0x4a275f[_0x534a5c([0x74,0x68,0x65,0x6e])](_0x57e788=>{_0x57e788!=_0x534a5c([0x56,0x61,0x6c,0x69,0x64])&&_0x1683b9(_0x57e788);},_0x5f6454);}):_0x5293f4||_0x4a275f||_0x534a5c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x58361d(_0x4938f8,_0x527c4f){return new window[(_0x534a5c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b5397=>{if(_0x52816b())return _0x2b5397(_0x534a5c([0x56,0x61,0x6c,0x69,0x64]));_0x3b4627(),_0x352c12[_0x534a5c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x534a5c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f0490=!0x1;const _0x31c126=_0x146068();function _0x5088a1(_0x4adfcb){return!!_0x4adfcb&&(typeof _0x4adfcb===_0x534a5c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4adfcb===_0x534a5c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4adfcb[_0x534a5c([0x74,0x68,0x65,0x6e])]===_0x534a5c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4adfcb[_0x534a5c([0x63,0x61,0x74,0x63,0x68])]===_0x534a5c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x82fbf3(_0x502074){_0x28d75b(_0x502074)[_0x534a5c([0x74,0x68,0x65,0x6e])](_0x3b68c4=>{if(!_0x3b68c4||_0x3b68c4[_0x534a5c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x534a5c([0x6f,0x6b]))return _0x534a5c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28f511(_0x5b20a7(_0x31c126+_0x527c4f))!=_0x3b68c4[_0x534a5c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x534a5c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x534a5c([0x56,0x61,0x6c,0x69,0x64]);})[_0x534a5c([0x74,0x68,0x65,0x6e])](_0x3fa48b=>(_0x37fe30(),_0x3fa48b),()=>{const _0x2a8cc8=_0x5e3612();return null==_0x2a8cc8?(_0x37fe30(),_0x534a5c([0x56,0x61,0x6c,0x69,0x64])):_0x534a5c(_0x458512-_0x2a8cc8>(0x7753083a^_0x105c89)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x534a5c([0x74,0x68,0x65,0x6e])](_0x2b5397)[_0x534a5c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b5397(_0x534a5c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e73f8=0x536962ba^_0x105c89;function _0x37fe30(){const _0x24f389=_0x534a5c([0x6c,0x6c,0x63,0x74,0x2d])+_0x28f511(_0x5b20a7(_0x4938f8)),_0x3ab324=_0x122ca8(_0x28f511(window[_0x534a5c([0x4d,0x61,0x74,0x68])][_0x534a5c([0x63,0x65,0x69,0x6c])](_0x458512/_0x1e73f8)));window[_0x534a5c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x534a5c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24f389,_0x3ab324);}function _0x5e3612(){const _0x36e376=_0x534a5c([0x6c,0x6c,0x63,0x74,0x2d])+_0x28f511(_0x5b20a7(_0x4938f8)),_0x54fd5d=window[_0x534a5c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x534a5c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36e376);return _0x54fd5d?window[_0x534a5c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x122ca8(_0x54fd5d),0x10)*_0x1e73f8:null;}function _0x28d75b(_0x36a874){return new window[(_0x534a5c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x81727d,_0x54e2a3)=>{_0x36a874[_0x534a5c([0x74,0x68,0x65,0x6e])](_0x81727d,_0x54e2a3),window[_0x534a5c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54e2a3,0x535e58fa^_0x105c89);});}}_0x352c12[_0x534a5c([0x6f,0x6e])](_0x534a5c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa7fe0b,_0x84f598)=>{if(_0x84f598[0x0]!=_0x4938f8)return _0x2b5397(_0x534a5c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x84f598[0x1]={..._0x84f598[0x1],[_0x534a5c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31c126};},{[_0x534a5c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x534a5c([0x68,0x69,0x67,0x68])}),_0x352c12[_0x534a5c([0x6f,0x6e])](_0x534a5c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x31e746=>{_0x5088a1(_0x31e746[_0x534a5c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f0490=!0x0,_0x82fbf3(_0x31e746[_0x534a5c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x534a5c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x534a5c([0x6c,0x6f,0x77])}),_0x7bbdcd[_0x534a5c([0x74,0x68,0x65,0x6e])](()=>{_0x2f0490||_0x2b5397(_0x534a5c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x52816b(){return _0x352c12[_0x534a5c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x534a5c([0x76,0x69,0x65,0x77])][_0x534a5c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x534a5c([0x61,0x75,0x74,0x6f]);}function _0x3b4627(){_0x352c12[_0x534a5c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x534a5c([0x76,0x69,0x65,0x77])][_0x534a5c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x534a5c([0x61,0x75,0x74,0x6f]);}}function _0x480178(_0x106661){const _0x3f7aaa=[new window[(_0x534a5c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b625b=>setTimeout(_0x5b625b,0x5356b2f6^_0x105c89)),_0x7bbdcd[_0x534a5c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x534a5c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51695b=>{let _0x51fd06=0x0;_0x352c12[_0x534a5c([0x6d,0x6f,0x64,0x65,0x6c])][_0x534a5c([0x6f,0x6e])](_0x534a5c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2a2510,_0x476069)=>{_0x476069[0x0][_0x534a5c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x51fd06++,_0x51fd06==(0x535f89d2^_0x105c89)&&(_0x51695b(),_0x2a2510[_0x534a5c([0x6f,0x66,0x66])]());});}))];return window[_0x534a5c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x534a5c([0x72,0x61,0x63,0x65])](_0x3f7aaa)[_0x534a5c([0x74,0x68,0x65,0x6e])](()=>_0x106661);}async function _0x364a18(){await _0x7bbdcd,_0x352c12[_0x534a5c([0x6d,0x6f,0x64,0x65,0x6c])][_0x534a5c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20611d,_0x352c12[_0x534a5c([0x6d,0x6f,0x64,0x65,0x6c])][_0x534a5c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20611d,_0x352c12[_0x534a5c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x534a5c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f5ad7(_0x4b13da){const _0x51e83a=_0x3f7738();_0x352c12[_0x51e83a]=_0x534a5c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4b13da,_0x4b13da!=_0x534a5c([0x56,0x61,0x6c,0x69,0x64])&&_0x364a18();}function _0x3f7738(){const _0x5af017=window[_0x534a5c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x534a5c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x534a5c([0x6e,0x6f,0x77])]())[_0x534a5c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x534a5c([0x2e]),'');let _0x31cf62=_0x534a5c([0x68]);for(let _0x4bb6e8=0x0;_0x4bb6e8<_0x5af017[_0x534a5c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bb6e8+=0x2){let _0x29c21a=window[_0x534a5c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5af017[_0x534a5c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4bb6e8,_0x4bb6e8+0x2));_0x29c21a>=_0x207b37[_0x534a5c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29c21a-=_0x207b37[_0x534a5c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x31cf62+=_0x207b37[_0x29c21a];}return _0x31cf62;}function _0xf8ed3c(){const _0x277317=_0x47359b[_0x534a5c([0x73,0x70,0x6c,0x69,0x74])](_0x534a5c([0x2e]));if(0x3!=_0x277317[_0x534a5c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c0dd1(_0x277317[0x1]);function _0x4c0dd1(_0x25087b){const _0x38bac4=_0x1e0168(_0x25087b);return _0x38bac4&&_0x4210ff()?_0x38bac4:null;function _0x4210ff(){const _0x838372=_0x38bac4[_0x534a5c([0x6a,0x74,0x69])],_0x283f19=window[_0x534a5c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x838372[_0x534a5c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x838372[_0x534a5c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x481e19={..._0x38bac4,[_0x534a5c([0x6a,0x74,0x69])]:_0x838372[_0x534a5c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x838372[_0x534a5c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x481e19[_0x534a5c([0x76,0x63])],_0x5b20a7(_0x481e19)==_0x283f19;}}}async function _0x3e1ecb(){let _0x1cc9fb=!0x0;try{const _0x1ed99e=_0x47359b[_0x534a5c([0x73,0x70,0x6c,0x69,0x74])](_0x534a5c([0x2e])),[_0x114d18,_0x4c2ea1,_0x2bb914]=_0x1ed99e;return _0x43a431(_0x114d18),await _0x14456c(_0x114d18,_0x4c2ea1,_0x2bb914),_0x1cc9fb;}catch{return!0x1;}function _0x43a431(_0x1f1a32){const _0x2116be=_0x1e0168(_0x1f1a32);_0x2116be&&_0x2116be[_0x534a5c([0x61,0x6c,0x67])]==_0x534a5c([0x45,0x53,0x32,0x35,0x36])||(_0x1cc9fb=!0x1);}async function _0x14456c(_0x5c1d9b,_0x13989d,_0x77bde0){const _0x10d71b=window[_0x534a5c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x534a5c([0x66,0x72,0x6f,0x6d])](_0x596d82(_0x77bde0),_0x435859=>_0x435859[_0x534a5c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5cf478=new window[(_0x534a5c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x534a5c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c1d9b+_0x534a5c([0x2e])+_0x13989d),_0x8a1007=window[_0x534a5c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x534a5c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x8a1007)return;const _0x53560b=await _0x8a1007[_0x534a5c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x534a5c([0x6a,0x77,0x6b]),_0x14ae8b,{[_0x534a5c([0x6e,0x61,0x6d,0x65])]:_0x534a5c([0x45,0x43,0x44,0x53,0x41]),[_0x534a5c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x534a5c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x534a5c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x8a1007[_0x534a5c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x534a5c([0x6e,0x61,0x6d,0x65])]:_0x534a5c([0x45,0x43,0x44,0x53,0x41]),[_0x534a5c([0x68,0x61,0x73,0x68])]:{[_0x534a5c([0x6e,0x61,0x6d,0x65])]:_0x534a5c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x53560b,_0x10d71b,_0x5cf478)||(_0x1cc9fb=!0x1);}}function _0x1e0168(_0x36fd52){return _0x36fd52[_0x534a5c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x534a5c([0x65,0x79]))?JSON[_0x534a5c([0x70,0x61,0x72,0x73,0x65])](_0x596d82(_0x36fd52)):null;}function _0x596d82(_0x29d9d8){return window[_0x534a5c([0x61,0x74,0x6f,0x62])](_0x29d9d8[_0x534a5c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x534a5c([0x2b]))[_0x534a5c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x534a5c([0x2f])));}function _0x5b20a7(_0x39fbd3){let _0x8a8f0b=0x1505;function _0x2154f0(_0x29ac2f){for(let _0x4a97e8=0x0;_0x4a97e8<_0x29ac2f[_0x534a5c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a97e8++){const _0x1247a5=_0x29ac2f[_0x534a5c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4a97e8);_0x8a8f0b=(_0x8a8f0b<<0x5)+_0x8a8f0b+_0x1247a5,_0x8a8f0b&=_0x8a8f0b;}}function _0x25ea82(_0x17bed6){Array[_0x534a5c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x17bed6)?_0x17bed6[_0x534a5c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25ea82):_0x17bed6&&typeof _0x17bed6==_0x534a5c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x534a5c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x17bed6)[_0x534a5c([0x73,0x6f,0x72,0x74])]()[_0x534a5c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7f92d2,_0xc25384])=>{_0x2154f0(_0x7f92d2),_0x25ea82(_0xc25384);}):_0x2154f0(window[_0x534a5c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x17bed6));}return _0x25ea82(_0x39fbd3),_0x8a8f0b>>>0x0;}function _0x28f511(_0x2565d2){return _0x2565d2[_0x534a5c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x534a5c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x534a5c([0x30]));}function _0x122ca8(_0x43588a){return _0x43588a[_0x534a5c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x534a5c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x534a5c([0x6a,0x6f,0x69,0x6e])]('');}function _0x20611d(){}function _0x534a5c(_0x4e804e){return _0x4e804e['map'](_0x27e192=>String['fromCharCode'](_0x27e192))['join']('');}_0x2f5ad7(await _0x1f5af5());}(this);}['_initSchema'](){const _0x58a3ac=this['editor']['model']['schema'];_0x58a3ac['isRegistered']('imageBlock')&&_0x58a3ac['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x58a3ac['isRegistered']('imageInline')&&_0x58a3ac['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x14cdd1=this['editor'];_0x14cdd1['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x14cdd1['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3fb064=>_0x3fb064['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4b3d4a=_0x14cdd1['commands']['get']('replaceImageSource');_0x4b3d4a&&this['listenTo'](_0x4b3d4a,'cleanupImage',(_0x4b3ee9,[_0x55de4d,_0x24dac1])=>{_0x55de4d['removeAttribute']('uploadcareImageId',_0x24dac1);});}['_initConfig'](){const _0x52780b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3a6541=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4adfc6(_0x34be63['document'],'uc-config',{..._0x52780b,'pubkey':_0x3a6541,'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']=_0x121c6c=>{if('closeMax'==_0x121c6c)return'#uc-icon-arrow-down';},_0x34be63['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4adfc6(_0x34be63['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x34be63['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5d10de=this['editor']['commands']['get']('insertImage');_0x5d10de&&this['listenTo'](_0x5d10de,'execute',()=>{const _0x5b1b1a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5b1b1a&&_0x5b1b1a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x5b1b1a);});});const _0x1967b=this['editor']['commands']['get']('uploadcareImageReplace');_0x1967b&&this['listenTo'](_0x1967b,'execute',()=>{const _0x32c7a6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x32c7a6&&_0x32c7a6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x32c7a6);});});}}class H extends _0x150695{static get['requires'](){return[z,A];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x79f40d){super(_0x79f40d),_0x79f40d['config']['define']('uploadcare.uploader.sourceList',[S['Local'],S['URL']]),_0x349517['defineComponents'](_0x349517),this['_defineLocale']();}['_defineLocale'](){const _0x96e92f=this['editor']['config']['get']('uploadcare.locale'),_0x5a0a1a=this['editor']['locale']['contentLanguage'];_0x96e92f&&_0x349517['defineLocale'](_0x5a0a1a,_0x96e92f);}}class J extends _0x39157e{constructor(_0x878d39){super(_0x878d39);const t=_0x878d39['t'],_0x2967c2=this['bindTemplate'],_0x5e188c=new _0x4e4daa();_0x5e188c['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':[_0x5e188c,{'text':_0x2967c2['to']('imageUploadProgress',_0x4da655=>t('Loading\x20image...')+'\x20('+(_0x4da655||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 _0x39157e{constructor(_0x3b0163){super(_0x3b0163);const t=_0x3b0163['t'];this['set']('errorType',null);const _0x4b8c9e=new _0x56987c(_0x3b0163);_0x4b8c9e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4b8c9e['withText']=!0x0,_0x4b8c9e['class']='ck-button-action',_0x4b8c9e['on']('execute',()=>{this['fire']('retry');}),_0x4b8c9e['bind']('isVisible')['to'](this,'errorType',_0x363e27=>'NotFound'!==_0x363e27);const _0x5be9ae=new _0x311890();_0x5be9ae['content']=_0x3b0889,_0x5be9ae['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1716d2=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':[_0x5be9ae,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1716d2['to']('errorType',_0x316d01=>t('NotFound'!==_0x316d01?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4b8c9e]},{'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 _0x39157e{constructor(_0xbf1c95,_0x56890b){super(_0xbf1c95);const _0xfc90b2=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x56890b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xfc90b2['to']('imageSrc')}});}}class X extends K{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xd42fcb,_0x2e7efb,_0x115fc9){super(_0xd42fcb),this['_items']=this['createCollection'](),this['_loadingView']=new J(_0xd42fcb),this['_errorView']=new Z(_0xd42fcb),this['_editingView']=new Q(_0xd42fcb,_0x115fc9),this['_focusableView']=new _0x39157e(_0xd42fcb),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2e7efb),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'],_0x58756f=>{this['_addUploadcareImageEditorListeners'](_0x58756f);});}),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'](_0x2cf7a6,_0x308e26){const _0xa7feae='uc-cloud-image-editor',_0x442747=_0x2cf7a6['querySelector'](_0xa7feae);if(_0x442747)return _0x308e26(_0x442747);const _0x476b13=new MutationObserver(_0x3ec5ef=>{const _0xeba31d=_0x3ec5ef['filter'](_0x9a4504=>_0x9a4504['target']===_0x2cf7a6&&_0x9a4504['addedNodes']['length']>0x0&&_0x9a4504['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xa7feae);_0xeba31d['length']&&(_0x476b13['disconnect'](),_0x308e26(_0xeba31d[0x0]['addedNodes'][0x0]));});_0x476b13['observe'](_0x2cf7a6,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2e37f3){_0x2e37f3['addEventListener']('apply',_0x2c817d=>{this['fire']('apply',{'imageSrc':_0x2c817d['detail']['cdnUrl']});}),_0x2e37f3['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Y extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x391e1b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5cbb66,_0x22854c,_0x35dead){super(),this['_editor']=_0x5cbb66,this['_dialog']=_0x22854c,this['_imageElement']=_0x35dead,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 _0x1890b5=this['_imageElement'],_0x4db2a5=_0x1890b5['getAttribute']('uploadcareImageId'),_0x21c557=_0x1890b5['getAttribute']('src');if(_0x4db2a5)await this['_loadImageInfo'](_0x4db2a5,_0x21c557);else{if(this['_imageCache']['has'](_0x21c557)){const _0x209e1d=this['_imageCache']['get'](_0x21c557);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x209e1d['url'],this['imageDimension']=_0x209e1d['dimension'],this['imageId']=_0x209e1d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2903cf}=this['_editor'],t=_0x2903cf['t'],_0x225434=new X(_0x2903cf,this['imageStatus'],this['_attributes']);_0x225434['bind']('status')['to'](this,'imageStatus'),_0x225434['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x225434['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x225434['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x225434,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x178804,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x225434,'position':_0x5773c9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x225434['focus']();},'onHide':()=>{_0x225434['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x29eb78=>!V(_0x29eb78,_0x225434['element'])}});}['_loadImageInfo'](_0x11518f,_0x269405){return q['getInfo'](_0x11518f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x288bef=>{const {width:_0x5945e1,height:_0x38084b}=_0x288bef['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x269405,this['imageDimension']={'width':_0x5945e1,'height':_0x38084b},this['imageId']=_0x11518f;})['catch'](_0x21b076=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x21b076['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5c96c,_0x2f9452){return this['_getImageAsFile'](_0x5c96c)['then'](_0x1579fa=>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':_0x2f9452['signal'],'file':_0x1579fa,'onProgress':_0x140bbd=>{_0x140bbd&&_0x140bbd['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x140bbd['value']));}}))['then'](_0x3adffb=>{const {width:_0x4adc14,height:_0x42e324}=_0x3adffb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3adffb['cdnUrl'],this['imageDimension']={'width':_0x4adc14,'height':_0x42e324},this['imageId']=_0x3adffb['uuid'],this['imageUploadProgress']=null;const _0x4d54e2=_0x5c96c['getAttribute']('src');this['_imageCache']['set'](_0x4d54e2,{'id':_0x3adffb['uuid'],'url':_0x3adffb['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1226b0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1226b0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5a9984,_0x13bc49){_0x5a9984['on']('apply',(_0x423a86,_0x34b9ca)=>{this['_replaceImage'](_0x13bc49,_0x34b9ca['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5a9984['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5a9984['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3e42f6,_0xeec200,_0x1d8c90){const _0x58ea95=this['_editor'],{width:_0x4a18b0,height:_0x264353}=F(_0xeec200,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3bc652,imageSources:_0x808e57}=D(_0xeec200,_0x4a18b0);_0x58ea95['model']['change'](_0x33509b=>{if('$graveyard'===_0x3e42f6['root']['rootName']){_0x58ea95['execute']('insertImage',{'imageType':_0x3e42f6['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3e42f6['getAttributes']()),'uploadcareImageId':_0x1d8c90,'src':_0x3bc652,'sources':_0x808e57,'width':_0x4a18b0,'height':_0x264353}});const _0x3b40b7=_0x3e42f6['getChildren']();_0x3e42f6=_0x58ea95['model']['document']['selection']['getSelectedElement']();for(const _0x13b74a of _0x3b40b7)_0x33509b['append'](_0x33509b['cloneElement'](_0x13b74a),_0x3e42f6);}else _0x33509b['setSelection'](_0x3e42f6,'on'),_0x58ea95['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3e42f6['getAttributes']()),'uploadcareImageId':_0x1d8c90,'src':_0x3bc652,'sources':_0x808e57,'width':_0x4a18b0,'height':_0x264353},_0x3e42f6);_0x33509b['setSelection'](_0x3e42f6,'on');});}async['_getImageAsFile'](_0x5e7d6d){const _0x56e2f5=_0x34be63['window'],_0x2b0179=_0x34be63['document']['location']['href'],_0x3ae347=new _0x56e2f5['URL'](_0x5e7d6d['getAttribute']('src'),_0x2b0179);if('data:'===_0x3ae347['protocol']){const _0x19fdeb=_0x3ae347['href']['split'](','),_0x5c55d7=_0x19fdeb[0x0]['match'](/:(.*?);/)[0x1],_0x186ae4=_0x5c55d7['split']('/')[0x1],_0x234116=_0x56e2f5['atob'](_0x19fdeb[_0x19fdeb['length']-0x1]);let _0x121706=_0x234116['length'];const _0x30e48f=new _0x56e2f5['Uint8Array'](_0x121706);for(;_0x121706--;)_0x30e48f[_0x121706]=_0x234116['charCodeAt'](_0x121706);return new _0x56e2f5['File']([_0x30e48f],'image.'+_0x186ae4,{'type':_0x5c55d7});}const _0x92c709=_0x3ae347['href']['split']('/'),_0x53e26b=_0x92c709[_0x92c709['length']-0x1],_0x2c6b59=_0x53e26b['split']('.')[0x1];return _0x56e2f5['fetch'](_0x3ae347['href'])['then'](_0x49ffb7=>_0x49ffb7['clone']()['blob']())['then'](_0xdae698=>new _0x56e2f5['File']([_0xdae698],_0x53e26b,{'type':'image/'+_0x2c6b59}));}}class tt extends _0x35863b{['imageEditController'];static get['requires'](){return[_0x3ac812];}['_isEditable'];constructor(_0x53d341){super(_0x53d341),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x307c83){const _0x438f33=B(_0x307c83);return _0xa56faa=>!(!_0xa56faa||!_0xa56faa['is']('element','imageBlock')&&!_0xa56faa['is']('element','imageInline'))&&(!!_0xa56faa['hasAttribute']('uploadcareImageId')||!!_0xa56faa['hasAttribute']('src')&&_0x438f33(_0xa56faa['getAttribute']('src')));}(_0x53d341['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x228941=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x228941);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5ac13e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5ac13e&&(_0x5ac13e['is']('element','imageBlock')||_0x5ac13e['is']('element','imageInline'))&&(this['imageEditController']=new Y(this['editor'],this['editor']['plugins']['get'](_0x3ac812),_0x5ac13e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class et extends _0x35863b{['refresh'](){const _0x300ac3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x300ac3&&(_0x300ac3['is']('element','imageBlock')||_0x300ac3['is']('element','imageInline')));}['execute'](_0x4dd0c8){const _0x1eccfd=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2542d4=>{_0x2542d4['setAttributes'](_0x4dd0c8,_0x1eccfd),_0x2542d4['removeAttribute']('srcset',_0x1eccfd),_0x2542d4['removeAttribute']('sizes',_0x1eccfd);});}}class it extends _0x150695{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[z,_0x181562,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x486685}=this;_0x486685['commands']['add']('uploadcareImageEdit',new tt(_0x486685)),_0x486685['commands']['add']('uploadcareImageReplace',new et(_0x486685));}}class st extends _0x150695{['_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 _0x45e4b0=this['editor'];_0x45e4b0['ui']['componentFactory']['add']('uploadcareImageEdit',_0xad1b98=>{const _0x145910=_0x45e4b0['commands']['get']('uploadcareImageEdit'),_0x28571a=new _0x56987c(_0xad1b98),t=_0xad1b98['t'];return _0x28571a['set']({'icon':_0x178804,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x28571a['bind']('isEnabled')['to'](_0x145910),_0x28571a['bind']('isOn')['to'](_0x145910,'isActive'),this['listenTo'](_0x28571a,'execute',()=>{_0x45e4b0['execute']('uploadcareImageEdit'),_0x45e4b0['editing']['view']['focus']();}),_0x28571a;}),this['_initConfig']();}['_initConfig'](){const _0xdb5bd1=_0x4adfc6(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xdb5bd1),this['listenTo'](this['editor'],'destroy',()=>{_0xdb5bd1['remove']();});}}class nt extends _0x150695{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':_0x29ebc8=>0x1!=_0x29ebc8}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x9980d0=>{const {af:{dictionary:_0x1e8fd4,getPluralForm:_0x3780ad}}={'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':_0x5362d7=>0x1!=_0x5362d7}};_0x9980d0['af']||={'dictionary':{},'getPluralForm':null},_0x9980d0['af']['dictionary']=Object['assign'](_0x9980d0['af']['dictionary'],_0x1e8fd4),_0x9980d0['af']['getPluralForm']=_0x3780ad;})(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':_0xfec8ff=>0x0==_0xfec8ff?0x0:0x1==_0xfec8ff?0x1:0x2==_0xfec8ff?0x2:_0xfec8ff%0x64>=0x3&&_0xfec8ff%0x64<=0xa?0x3:_0xfec8ff%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4c7f6d=>{const {ar:{dictionary:_0xd0a8ed,getPluralForm:_0x2c9102}}={'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':_0x1ec02e=>0x0==_0x1ec02e?0x0:0x1==_0x1ec02e?0x1:0x2==_0x1ec02e?0x2:_0x1ec02e%0x64>=0x3&&_0x1ec02e%0x64<=0xa?0x3:_0x1ec02e%0x64>=0xb?0x4:0x5}};_0x4c7f6d['ar']||={'dictionary':{},'getPluralForm':null},_0x4c7f6d['ar']['dictionary']=Object['assign'](_0x4c7f6d['ar']['dictionary'],_0xd0a8ed),_0x4c7f6d['ar']['getPluralForm']=_0x2c9102;})(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':_0x4ccffd=>0x1!=_0x4ccffd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1533aa=>{const {ast:{dictionary:_0x4c3250,getPluralForm:_0x3e6388}}={'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':_0x152884=>0x1!=_0x152884}};_0x1533aa['ast']||={'dictionary':{},'getPluralForm':null},_0x1533aa['ast']['dictionary']=Object['assign'](_0x1533aa['ast']['dictionary'],_0x4c3250),_0x1533aa['ast']['getPluralForm']=_0x3e6388;})(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':_0x459781=>0x1!=_0x459781}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x44b989=>{const {az:{dictionary:_0xcc9bda,getPluralForm:_0x569e1a}}={'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':_0x214dad=>0x1!=_0x214dad}};_0x44b989['az']||={'dictionary':{},'getPluralForm':null},_0x44b989['az']['dictionary']=Object['assign'](_0x44b989['az']['dictionary'],_0xcc9bda),_0x44b989['az']['getPluralForm']=_0x569e1a;})(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':_0x1759a8=>_0x1759a8%0xa==0x1&&_0x1759a8%0x64!=0xb?0x0:_0x1759a8%0xa>=0x2&&_0x1759a8%0xa<=0x4&&(_0x1759a8%0x64<0xa||_0x1759a8%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x34383d=>{const {be:{dictionary:_0x2173c6,getPluralForm:_0x1eaca9}}={'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':_0x33a41b=>_0x33a41b%0xa==0x1&&_0x33a41b%0x64!=0xb?0x0:_0x33a41b%0xa>=0x2&&_0x33a41b%0xa<=0x4&&(_0x33a41b%0x64<0xa||_0x33a41b%0x64>=0x14)?0x1:0x2}};_0x34383d['be']||={'dictionary':{},'getPluralForm':null},_0x34383d['be']['dictionary']=Object['assign'](_0x34383d['be']['dictionary'],_0x2173c6),_0x34383d['be']['getPluralForm']=_0x1eaca9;})(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':_0x5bb457=>0x1!=_0x5bb457}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x47f4bd=>{const {bg:{dictionary:_0x4d56f1,getPluralForm:_0x4f11b9}}={'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':_0x439998=>0x1!=_0x439998}};_0x47f4bd['bg']||={'dictionary':{},'getPluralForm':null},_0x47f4bd['bg']['dictionary']=Object['assign'](_0x47f4bd['bg']['dictionary'],_0x4d56f1),_0x47f4bd['bg']['getPluralForm']=_0x4f11b9;})(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':_0x2861c8=>0x1!=_0x2861c8}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x10148c=>{const {bn:{dictionary:_0x49641a,getPluralForm:_0x15787b}}={'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':_0x57c99e=>0x1!=_0x57c99e}};_0x10148c['bn']||={'dictionary':{},'getPluralForm':null},_0x10148c['bn']['dictionary']=Object['assign'](_0x10148c['bn']['dictionary'],_0x49641a),_0x10148c['bn']['getPluralForm']=_0x15787b;})(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':_0x40e6c0=>_0x40e6c0%0xa==0x1&&_0x40e6c0%0x64!=0xb?0x0:_0x40e6c0%0xa>=0x2&&_0x40e6c0%0xa<=0x4&&(_0x40e6c0%0x64<0xa||_0x40e6c0%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2a4f97=>{const {bs:{dictionary:_0x55197d,getPluralForm:_0x5d5bb7}}={'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':_0x4df98e=>_0x4df98e%0xa==0x1&&_0x4df98e%0x64!=0xb?0x0:_0x4df98e%0xa>=0x2&&_0x4df98e%0xa<=0x4&&(_0x4df98e%0x64<0xa||_0x4df98e%0x64>=0x14)?0x1:0x2}};_0x2a4f97['bs']||={'dictionary':{},'getPluralForm':null},_0x2a4f97['bs']['dictionary']=Object['assign'](_0x2a4f97['bs']['dictionary'],_0x55197d),_0x2a4f97['bs']['getPluralForm']=_0x5d5bb7;})(window['CKEDITOR_TRANSLATIONS']||={});
|