@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260112.0 → 0.0.0-nightly-next-20260113.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 _0xcfa041,Command as _0x553c37}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5d03c4,IconGooglePhotos as _0xc2d6e7,IconGoogleDrive as _0x444b18,IconFacebook as _0x133773,IconDropbox as _0x343088,IconUploadcareLink as _0x78a5ee,IconUploadcareImageUpload as _0x10b853,IconError as _0x99cac7,IconUploadcareImageEdit as _0x1b93bf}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x34268c,MenuBarMenuListItemButtonView as _0x3e08b3,View as _0x55537e,FocusCycler as _0x351852,Dialog as _0x35fdff,DialogViewPosition as _0x53221e,SpinnerView as _0x2754dc,IconView as _0x47b58a,Notification as _0x3d5365}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x52e80b,DomEmitterMixin as _0x27456c,global as _0x2393ce,getAncestors as _0x14781e,ObservableMixin as _0xf6508e,uid as _0x1ecda0,createElement as _0x4012d2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x67a54b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xc445a3,info as _0x4d81a0}from'@uploadcare/upload-client';import*as _0xc819d8 from'@uploadcare/file-uploader';var S=function(_0x239ff3){return _0x239ff3['Local']='local',_0x239ff3['URL']='url',_0x239ff3['Dropbox']='dropbox',_0x239ff3['GDrive']='gdrive',_0x239ff3['Facebook']='facebook',_0x239ff3['GPhotos']='gphotos',_0x239ff3['OneDrive']='onedrive',_0x239ff3;}({});function T(_0x3f5a87,_0x529326,_0x5d4515){const t=_0x3f5a87['t'],_0x3cc882=_0x3f5a87['t'];switch(_0x529326){case S['Local']:return{'text':_0x3cc882('Insert'===_0x5d4515?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3cc882('From\x20computer')};case S['URL']:return{'text':'Insert'===_0x5d4515?_0x3cc882('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3cc882('Via\x20URL')};case S['Dropbox']:return{'text':t('Insert'===_0x5d4515?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case S['Facebook']:return{'text':t('Insert'===_0x5d4515?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case S['GDrive']:return{'text':t('Insert'===_0x5d4515?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case S['GPhotos']:return{'text':t('Insert'===_0x5d4515?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case S['OneDrive']:return{'text':t('Insert'===_0x5d4515?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x529326;}}class A extends _0xcfa041{['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 _0x4c72b4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1383c1;for(const _0x94bcee in _0x4c72b4){const _0x19bd2c=_0x94bcee,_0x39220a=_0x4c72b4[_0x19bd2c];if('uploadcareLicenseKeyValid'==_0x39220a||'uploadcareLicenseKeyInvalid'==_0x39220a||'uploadcareLicenseKeyExpired'==_0x39220a||'uploadcareLicenseKeyDomainLimit'==_0x39220a||'uploadcareLicenseKeyNotAllowed'==_0x39220a||'uploadcareLicenseKeyEvaluationLimit'==_0x39220a||'uploadcareLicenseKeyUsageLimit'==_0x39220a){delete _0x4c72b4[_0x19bd2c],_0x1383c1=_0x39220a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1383c1&&_0x4c72b4['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1383c1&&_0x4c72b4['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1383c1&&_0x4c72b4['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1383c1&&_0x4c72b4['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1383c1&&_0x4c72b4['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1383c1&&_0x4c72b4['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4c992d}=this,_0x1954f3=_0x4c992d['commands']['get']('uploadcare');if(!_0x1954f3)return;const _0x5e8325=this['_normalizeConfigSourceList'](_0x4c992d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x64347a,_0x1eb96f)=>{const _0x2d8ba0=this['_getIntegrationKey'](_0x1eb96f['type']);return _0x64347a[_0x2d8ba0]||(_0x64347a[_0x2d8ba0]=[]),_0x64347a[_0x2d8ba0]['push'](_0x1eb96f),_0x64347a;},{});_0x4c992d['plugins']['has']('ImageInsertUI')&&_0x4c992d['commands']['get']('uploadcare')&&Object['entries'](_0x5e8325)['forEach'](([_0x5bf3d3,_0x15d7a8])=>{_0x4c992d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5bf3d3,'observable':()=>_0x1954f3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x15d7a8),'formViewCreator':()=>this['_createDropdownButtons'](_0x15d7a8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x15d7a8),'override':'assetManager'!==_0x5bf3d3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2ed2f1){const {locale:_0xdbfa2b}=this['editor'];return _0x2ed2f1['map'](_0x2c48c3=>{const _0x54a616=T(_0xdbfa2b,_0x2c48c3,'Insert');switch(_0x2c48c3){case S['Local']:return{'icon':_0x10b853,'type':S['Local'],..._0x54a616};case S['URL']:return{'icon':_0x78a5ee,'type':S['URL'],..._0x54a616};case S['Dropbox']:return{'icon':_0x343088,'type':S['Dropbox'],..._0x54a616};case S['Facebook']:return{'icon':_0x133773,'type':S['Facebook'],..._0x54a616};case S['GDrive']:return{'icon':_0x444b18,'type':S['GDrive'],..._0x54a616};case S['GPhotos']:return{'icon':_0xc2d6e7,'type':S['GPhotos'],..._0x54a616};case S['OneDrive']:return{'icon':_0x5d03c4,'type':S['OneDrive'],..._0x54a616};}});}['_getIntegrationKey'](_0x53ba95){switch(_0x53ba95){case S['Local']:return'upload';case S['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x33ddc9,_0x496826){const _0x118a20=this['editor'],_0x408a08=new _0x33ddc9(_0x118a20['locale']),_0x1ba820=_0x118a20['commands']['get']('uploadcare');return _0x408a08['bind']('isEnabled')['to'](_0x1ba820),_0x408a08['on']('execute',()=>{_0x1ba820['execute'](_0x496826);}),_0x408a08;}['_createToolbarButton'](_0x5b7e6c){const {locale:_0x7a04d9}=this['editor'],_0x5bf3b2=this['editor']['plugins']['get']('ImageInsertUI'),_0x54fbaa=_0x5b7e6c[0x0],_0x5bb597=this['_createButton'](_0x34268c,_0x54fbaa['type']);return _0x5bb597['icon']=_0x54fbaa['icon'],_0x5bb597['bind']('label')['to'](_0x5bf3b2,'isImageSelected',_0x4f671d=>T(_0x7a04d9,_0x54fbaa['type'],_0x4f671d?'Replace':'Insert')['text']),_0x5bb597['tooltip']=!0x0,_0x5bb597;}['_createDropdownButtons'](_0x49f9dd){const {locale:_0x575034}=this['editor'],_0x28a424=this['editor']['plugins']['get']('ImageInsertUI');return _0x49f9dd['map'](_0x3aad86=>{const _0x4623d7=this['_createButton'](_0x34268c,_0x3aad86['type']);return _0x4623d7['withText']=!0x0,_0x4623d7['icon']=_0x3aad86['icon'],_0x4623d7['bind']('label')['to'](_0x28a424,'isImageSelected',_0x3fd620=>T(_0x575034,_0x3aad86['type'],_0x3fd620?'Replace':'Insert')['text']),_0x4623d7;});}['_createMenuBarButtons'](_0x4fdcab){return _0x4fdcab['map'](_0x54dfd6=>{const _0x3a1a4a=this['_createButton'](_0x3e08b3,_0x54dfd6['type']);return _0x3a1a4a['icon']=_0x54dfd6['icon'],_0x3a1a4a['label']=_0x54dfd6['shortText'],_0x3a1a4a;});}}class K extends _0x55537e{['focusTracker'];['focusCycler'];constructor(_0x55e967){super(_0x55e967),this['focusTracker']=new _0x52e80b(),this['focusCycler']=new _0x351852({'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(_0x124f23,_0x44603d){super(_0x124f23),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-'+_0x44603d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function D(_0x5ee2e6,_0x3278b3){const _0x28cb1a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4cffdd=>_0x4cffdd<=_0x3278b3)['map'](_0x3537b4=>_0x5ee2e6['replace'](/\/$/,'')+'/-/resize/'+_0x3537b4+'x/\x20'+_0x3537b4+'w');return{'imageFallbackUrl':_0x5ee2e6,'imageSources':[{'srcset':_0x28cb1a['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3278b3+'px)\x20100vw,\x20'+_0x3278b3+'px','type':'image/webp'}]};}function F(_0x90029e,_0x167465,_0x282e7e){const _0x122953=_0x90029e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x122953?parseInt(_0x122953[0x1],0xa):_0x167465,'height':_0x122953?parseInt(_0x122953[0x2],0xa):_0x282e7e};}function $(_0x22eab5,_0x94bef1){const _0x4f45f2=new(_0x27456c())(),_0x15e1cc=_0x22eab5['plugins']['get']('ImageUtils'),_0x1fef07=_0x22eab5['editing']['mapper']['toViewElement'](_0x94bef1),_0x5d7773=_0x15e1cc['findViewImgElement'](_0x1fef07),_0x33f320=_0x22eab5['editing']['view']['domConverter']['viewToDom'](_0x5d7773),_0x216624=_0x94bef1['getAttribute']('width'),_0x249245=_0x94bef1['getAttribute']('height'),_0x145695='image-processing';_0x22eab5['editing']['view']['change'](_0x3ca9f2=>{_0x3ca9f2['addClass'](_0x145695,_0x1fef07),_0x3ca9f2['setStyle']('aspect-ratio',_0x216624+'/'+_0x249245,_0x5d7773);}),_0x4f45f2['listenTo'](_0x33f320,'load',()=>{_0x4f45f2['stopListening'](_0x33f320,'load'),_0x22eab5['editing']['view']['change'](_0x16a4ee=>{_0x16a4ee['removeClass'](_0x145695,_0x1fef07),_0x16a4ee['removeStyle']('aspect-ratio',_0x5d7773);});});}function B(_0x4fddf8){if(Array['isArray'](_0x4fddf8)){const _0x36cd9c=_0x4fddf8['map'](B);return _0x1a9cd5=>_0x36cd9c['some'](_0x6e9ca5=>_0x6e9ca5(_0x1a9cd5));}if('origin'==_0x4fddf8){const _0x39dfc7=_0x2393ce['window']['location']['origin'];return _0x3d6ac4=>new URL(_0x3d6ac4,_0x2393ce['document']['baseURI'])['origin']==_0x39dfc7;}return'function'==typeof _0x4fddf8?_0x4fddf8:_0x4fddf8 instanceof RegExp?_0x568bfe=>!(!_0x568bfe['match'](_0x4fddf8)&&!_0x568bfe['replace'](/^https?:\/\//,'')['match'](_0x4fddf8)):()=>!0x1;}function V(_0x143712,_0x235958){return _0x14781e(_0x143712['target'])['includes'](_0x235958);}class j extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xf6508e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5a91bb,_0x577b50,_0x24094d){super(),this['_editor']=_0x5a91bb,this['_editing']=_0x577b50,this['_dialog']=_0x5a91bb['plugins']['get'](_0x35fdff),this['_api']=_0x577b50['ctxElement']['getAPI'](),this['_type']=_0x24094d,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:_0x4a61ca,model:_0x1204a0}=this['_editor'],_0x1dbc4a=_0x1204a0['document']['selection']['getSelectedElement'](),_0x29f499=_0x1dbc4a&&(_0x1dbc4a['is']('element','imageBlock')||_0x1dbc4a['is']('element','imageInline'));this['_formView']=new O(_0x4a61ca,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x10b853,'title':T(_0x4a61ca,this['_type'],_0x29f499?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x53221e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3746ac=>!V(_0x3746ac,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x39185d}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x572453=>{const _0x42eb4a=_0x39185d['length'];for(const _0x5c5b06 of _0x39185d){const _0x4b5e6b=_0x5c5b06===_0x39185d[_0x42eb4a-0x1],{cdnUrl:_0x39241a,fileInfo:_0x165f7d}=_0x5c5b06;if(!_0x39241a||!_0x165f7d)continue;const {width:_0x18ee39,height:_0x42005a}=_0x165f7d['imageInfo'],_0x4284d1=F(_0x39241a,_0x18ee39,_0x42005a),_0x5c3d04=D(_0x39241a,_0x4284d1['width']),_0x32f87d={'id':_0x165f7d['uuid'],'type':'image','attributes':{'imageDimension':_0x4284d1,..._0x5c3d04}};this['_insertAsset'](_0x32f87d,_0x4b5e6b,_0x572453);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5da7f0=>{'idle'===_0x5da7f0['detail']['status']&&!_0x5da7f0['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===S['Local']?this['_api']['setCurrentActivity'](S['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x369c23,_0x4934c1,_0x551305){const _0x142534=this['_editor']['model']['document']['selection'],_0x30c6a0=_0x142534['getSelectedElement'](),_0xb0b64=!(!_0x30c6a0||!_0x30c6a0['is']('element','imageInline'));_0x551305['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x369c23,_0xb0b64),_0x4934c1||_0x551305['setSelection'](_0x142534['getLastPosition']());}['_insertImage'](_0x3f1831,_0x2f4961){const _0x1713f2=this['_editor'],{imageDimension:_0x36442f,imageFallbackUrl:_0x507385,imageSources:_0x5ae03b}=_0x3f1831['attributes'];_0x1713f2['execute']('insertImage',{'imageType':_0x2f4961?'imageInline':null,'source':{'uploadcareImageId':_0x3f1831['id'],'src':_0x507385,'sources':_0x5ae03b,..._0x36442f}});}}class M extends _0x553c37{['_editing'];['_controller']=null;static get['requires'](){return[_0x35fdff,z];}constructor(_0x136a85){super(_0x136a85),this['_editing']=_0x136a85['plugins']['get'](z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1fbce6){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new j(this['editor'],this['_editing'],_0x1fbce6);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class q{static['upload']({file:_0x4ccd77,..._0x544b81}){return _0xc445a3(_0x4ccd77,_0x544b81);}static['getInfo'](_0x5499a5,_0x502369){return _0x4d81a0(_0x5499a5,_0x502369);}}class W extends _0xcfa041{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x67a54b,z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2472c0=this['editor'];if(!!!_0x2472c0['config']['get']('uploadcare'))return;_0x2472c0['plugins']['get'](_0x67a54b)['createUploadAdapter']=_0x351d2f=>new G(_0x351d2f,_0x2472c0),_0x2472c0['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xa5db21,{imageElement:_0x18c883,data:_0x3e783e})=>{_0x2472c0['model']['change'](_0xb16bb0=>{_0xb16bb0['setAttribute']('uploadcareImageId',_0x3e783e['uploadcareImageId'],_0x18c883);});});}}class G{['loader'];['editor'];['controller'];constructor(_0xc83868,_0x520e2f){this['loader']=_0xc83868,this['editor']=_0x520e2f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x8e0658=await this['loader']['file'];return q['upload']({'file':_0x8e0658,'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':_0xa6e76e=>{_0xa6e76e&&_0xa6e76e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xa6e76e['value']);}})['then'](async _0x4ea857=>{const {imageFallbackUrl:_0x183bf,imageSources:_0x2ba5ae}=D(_0x4ea857['cdnUrl'],_0x4ea857['imageInfo']['width']);return{'uploadcareImageId':_0x4ea857['uuid'],'default':_0x183bf,'sources':_0x2ba5ae};})['catch'](()=>{const _0x464d0b=t('Cannot\x20upload\x20file:')+('\x20'+_0x8e0658['name']+'.');return Promise['reject'](_0x464d0b);});}['abort'](){this['controller']['abort']();}}class z extends _0xcfa041{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',W,_0x35fdff];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xb11f7){super(_0xb11f7),this['ucContextId']=_0x1ecda0();}['init'](){const _0x4fa603=this['editor'];_0x4fa603['commands']['add']('uploadcare',new M(_0x4fa603));}['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 _0x3b0dd0=_0x2393ce['document']['querySelector']('input[uploadcare-file-input]');_0x3b0dd0&&_0x3b0dd0['remove']();}),async function(_0x1d1610){const _0x5c8e19=_0x4931fb([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]),_0x43dfdb=0x535f8c3a,_0x536758=0x5358f2a2^_0x43dfdb,_0x9df267=window[_0x4931fb([0x44,0x61,0x74,0x65])][_0x4931fb([0x6e,0x6f,0x77])](),_0xd0573=_0x1d1610[_0x4931fb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4e4091=new window[(_0x4931fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d88b8=>{_0xd0573[_0x4931fb([0x6f,0x6e,0x63,0x65])](_0x4931fb([0x72,0x65,0x61,0x64,0x79]),_0x3d88b8);}),_0x426b5a={[_0x4931fb([0x6b,0x74,0x79])]:_0x4931fb([0x45,0x43]),[_0x4931fb([0x75,0x73,0x65])]:_0x4931fb([0x73,0x69,0x67]),[_0x4931fb([0x63,0x72,0x76])]:_0x4931fb([0x50,0x2d,0x32,0x35,0x36]),[_0x4931fb([0x78])]:_0x4931fb([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]),[_0x4931fb([0x79])]:_0x4931fb([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]),[_0x4931fb([0x61,0x6c,0x67])]:_0x4931fb([0x45,0x53,0x32,0x35,0x36])},_0x208225=_0xd0573[_0x4931fb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4931fb([0x67,0x65,0x74])](_0x4931fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x40492b(){let _0x1d5701,_0x15f33d=null,_0x28c8ce=null;try{if(_0x208225==_0x4931fb([0x47,0x50,0x4c]))return _0x4931fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d5701=_0x2ee789(),!_0x1d5701)return _0x4931fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d5701[_0x4931fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x28c8ce=_0x560b86(_0x1d5701[_0x4931fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d5701[_0x4931fb([0x6a,0x74,0x69])])),await _0x1c9e40()?_0x56827c()?_0x74d3d6()?_0x4931fb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3ad634()?(_0x1d5701[_0x4931fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4931fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x15f33d=_0x13a76a(_0x4931fb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14c740()):_0x4931fb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4931fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4931fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4931fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x74d3d6(){const _0x37d582=[_0x4931fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4931fb([0x74,0x72,0x69,0x61,0x6c])][_0x4931fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d5701[_0x4931fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9df267/0x3e8:0xe10*_0x536758;return _0x1d5701[_0x4931fb([0x65,0x78,0x70])]<_0x37d582;}function _0x56827c(){const _0x28fae5=_0x1d5701[_0x4931fb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x28fae5&&(!!_0x28fae5[_0x4931fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4931fb([0x2a]))||!!_0x28fae5[_0x4931fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4931fb([0x55,0x50,0x4c,0x43])));}function _0x3ad634(){const _0xac4fc6=_0x1d5701[_0x4931fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xac4fc6||0x0==_0xac4fc6[_0x4931fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4272a6}=new URL(window[_0x4931fb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xac4fc6[_0x4931fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4272a6))return!0x0;const _0x24b8a8=_0x4272a6[_0x4931fb([0x73,0x70,0x6c,0x69,0x74])](_0x4931fb([0x2e]));return _0xac4fc6[_0x4931fb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54521b=>_0x54521b[_0x4931fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4931fb([0x2a])))[_0x4931fb([0x6d,0x61,0x70])](_0x163d22=>_0x163d22[_0x4931fb([0x73,0x70,0x6c,0x69,0x74])](_0x4931fb([0x2e])))[_0x4931fb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53459f=>_0x53459f[_0x4931fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x24b8a8[_0x4931fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4931fb([0x6d,0x61,0x70])](_0x1743e0=>Array(_0x24b8a8[_0x4931fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1743e0[_0x4931fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4931fb([0x66,0x69,0x6c,0x6c])](_0x1743e0[0x0]===_0x4931fb([0x2a])?_0x4931fb([0x2a]):'')[_0x4931fb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1743e0))[_0x4931fb([0x73,0x6f,0x6d,0x65])](_0x295830=>_0x24b8a8[_0x4931fb([0x65,0x76,0x65,0x72,0x79])]((_0x59115e,_0x2d4ac8)=>_0x295830[_0x2d4ac8]===_0x59115e||_0x295830[_0x2d4ac8]===_0x4931fb([0x2a])));}function _0x14c740(){return _0x15f33d&&_0x28c8ce?new window[(_0x4931fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43d21b,_0xc009f2)=>{_0x15f33d[_0x4931fb([0x74,0x68,0x65,0x6e])](_0x43d21b,_0xc009f2),_0x28c8ce[_0x4931fb([0x74,0x68,0x65,0x6e])](_0x510c12=>{_0x510c12!=_0x4931fb([0x56,0x61,0x6c,0x69,0x64])&&_0x43d21b(_0x510c12);},_0xc009f2);}):_0x15f33d||_0x28c8ce||_0x4931fb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x560b86(_0x546e7a,_0x4cc8fb){return new window[(_0x4931fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7a63ae=>{if(_0x3dadb9())return _0x7a63ae(_0x4931fb([0x56,0x61,0x6c,0x69,0x64]));_0x394c2d(),_0xd0573[_0x4931fb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4931fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d5015=!0x1;const _0x59e317=_0x1ecda0();function _0x14d379(_0x296ff0){return!!_0x296ff0&&(typeof _0x296ff0===_0x4931fb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x296ff0===_0x4931fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x296ff0[_0x4931fb([0x74,0x68,0x65,0x6e])]===_0x4931fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x296ff0[_0x4931fb([0x63,0x61,0x74,0x63,0x68])]===_0x4931fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x236e9c(_0x187fe9){_0x20abce(_0x187fe9)[_0x4931fb([0x74,0x68,0x65,0x6e])](_0x2f7c9b=>{if(!_0x2f7c9b||_0x2f7c9b[_0x4931fb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4931fb([0x6f,0x6b]))return _0x4931fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b9279(_0x44f721(_0x59e317+_0x4cc8fb))!=_0x2f7c9b[_0x4931fb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4931fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4931fb([0x56,0x61,0x6c,0x69,0x64]);})[_0x4931fb([0x74,0x68,0x65,0x6e])](_0x5a13ad=>(_0x489bbd(),_0x5a13ad),()=>{const _0x3bce5c=_0x4ea0c1();return null==_0x3bce5c?(_0x489bbd(),_0x4931fb([0x56,0x61,0x6c,0x69,0x64])):_0x4931fb(_0x9df267-_0x3bce5c>(0x7753083a^_0x43dfdb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4931fb([0x74,0x68,0x65,0x6e])](_0x7a63ae)[_0x4931fb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x7a63ae(_0x4931fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12da0a=0x536962ba^_0x43dfdb;function _0x489bbd(){const _0x93ae77=_0x4931fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b9279(_0x44f721(_0x546e7a)),_0x3b8518=_0x251e96(_0x2b9279(window[_0x4931fb([0x4d,0x61,0x74,0x68])][_0x4931fb([0x63,0x65,0x69,0x6c])](_0x9df267/_0x12da0a)));window[_0x4931fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4931fb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x93ae77,_0x3b8518);}function _0x4ea0c1(){const _0x1e2361=_0x4931fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b9279(_0x44f721(_0x546e7a)),_0x2a1404=window[_0x4931fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4931fb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e2361);return _0x2a1404?window[_0x4931fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x251e96(_0x2a1404),0x10)*_0x12da0a:null;}function _0x20abce(_0x51343b){return new window[(_0x4931fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x562bb1,_0x595070)=>{_0x51343b[_0x4931fb([0x74,0x68,0x65,0x6e])](_0x562bb1,_0x595070),window[_0x4931fb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x595070,0x535e58fa^_0x43dfdb);});}}_0xd0573[_0x4931fb([0x6f,0x6e])](_0x4931fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e3e83,_0x4592f6)=>{if(_0x4592f6[0x0]!=_0x546e7a)return _0x7a63ae(_0x4931fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4592f6[0x1]={..._0x4592f6[0x1],[_0x4931fb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59e317};},{[_0x4931fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4931fb([0x68,0x69,0x67,0x68])}),_0xd0573[_0x4931fb([0x6f,0x6e])](_0x4931fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2070dd=>{_0x14d379(_0x2070dd[_0x4931fb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d5015=!0x0,_0x236e9c(_0x2070dd[_0x4931fb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4931fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4931fb([0x6c,0x6f,0x77])}),_0x4e4091[_0x4931fb([0x74,0x68,0x65,0x6e])](()=>{_0x5d5015||_0x7a63ae(_0x4931fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3dadb9(){return _0xd0573[_0x4931fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4931fb([0x76,0x69,0x65,0x77])][_0x4931fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4931fb([0x61,0x75,0x74,0x6f]);}function _0x394c2d(){_0xd0573[_0x4931fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4931fb([0x76,0x69,0x65,0x77])][_0x4931fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4931fb([0x61,0x75,0x74,0x6f]);}}function _0x13a76a(_0x5071b2){const _0x9a1783=[new window[(_0x4931fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x118114=>setTimeout(_0x118114,0x5356b2f6^_0x43dfdb)),_0x4e4091[_0x4931fb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4931fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x131a89=>{let _0x33b392=0x0;_0xd0573[_0x4931fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4931fb([0x6f,0x6e])](_0x4931fb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5dab44,_0x49c127)=>{_0x49c127[0x0][_0x4931fb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x33b392++,_0x33b392==(0x535f89d2^_0x43dfdb)&&(_0x131a89(),_0x5dab44[_0x4931fb([0x6f,0x66,0x66])]());});}))];return window[_0x4931fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4931fb([0x72,0x61,0x63,0x65])](_0x9a1783)[_0x4931fb([0x74,0x68,0x65,0x6e])](()=>_0x5071b2);}async function _0xa0e707(){await _0x4e4091,_0xd0573[_0x4931fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4931fb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x401732,_0xd0573[_0x4931fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4931fb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x401732,_0xd0573[_0x4931fb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4931fb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a726c(_0x3a046a){const _0x5cf5f1=_0x16fd6e();_0xd0573[_0x5cf5f1]=_0x4931fb([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3a046a,_0x3a046a!=_0x4931fb([0x56,0x61,0x6c,0x69,0x64])&&_0xa0e707();}function _0x16fd6e(){const _0x26e40e=window[_0x4931fb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4931fb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4931fb([0x6e,0x6f,0x77])]())[_0x4931fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4931fb([0x2e]),'');let _0x1d5233=_0x4931fb([0x68]);for(let _0x4fa0dc=0x0;_0x4fa0dc<_0x26e40e[_0x4931fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fa0dc+=0x2){let _0x4c0ddf=window[_0x4931fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26e40e[_0x4931fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fa0dc,_0x4fa0dc+0x2));_0x4c0ddf>=_0x5c8e19[_0x4931fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c0ddf-=_0x5c8e19[_0x4931fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1d5233+=_0x5c8e19[_0x4c0ddf];}return _0x1d5233;}function _0x2ee789(){const _0x41fb64=_0x208225[_0x4931fb([0x73,0x70,0x6c,0x69,0x74])](_0x4931fb([0x2e]));if(0x3!=_0x41fb64[_0x4931fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b13a0(_0x41fb64[0x1]);function _0x2b13a0(_0x227830){const _0x39b0e4=_0x9a8dc(_0x227830);return _0x39b0e4&&_0x2808c3()?_0x39b0e4:null;function _0x2808c3(){const _0xf27fd4=_0x39b0e4[_0x4931fb([0x6a,0x74,0x69])],_0x5cfd2f=window[_0x4931fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf27fd4[_0x4931fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf27fd4[_0x4931fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x299c25={..._0x39b0e4,[_0x4931fb([0x6a,0x74,0x69])]:_0xf27fd4[_0x4931fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf27fd4[_0x4931fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x299c25[_0x4931fb([0x76,0x63])],_0x44f721(_0x299c25)==_0x5cfd2f;}}}async function _0x1c9e40(){let _0xc033a3=!0x0;try{const _0x394522=_0x208225[_0x4931fb([0x73,0x70,0x6c,0x69,0x74])](_0x4931fb([0x2e])),[_0xb18bef,_0x443c60,_0x3c1b73]=_0x394522;return _0x1cab92(_0xb18bef),await _0x4d232c(_0xb18bef,_0x443c60,_0x3c1b73),_0xc033a3;}catch{return!0x1;}function _0x1cab92(_0x2e66a2){const _0x2d1c89=_0x9a8dc(_0x2e66a2);_0x2d1c89&&_0x2d1c89[_0x4931fb([0x61,0x6c,0x67])]==_0x4931fb([0x45,0x53,0x32,0x35,0x36])||(_0xc033a3=!0x1);}async function _0x4d232c(_0x27f254,_0x457887,_0x3ca031){const _0x4b06b4=window[_0x4931fb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4931fb([0x66,0x72,0x6f,0x6d])](_0x33360e(_0x3ca031),_0x51cd89=>_0x51cd89[_0x4931fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x282557=new window[(_0x4931fb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4931fb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27f254+_0x4931fb([0x2e])+_0x457887),_0x201529=window[_0x4931fb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4931fb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x201529)return;const _0x5db3fb=await _0x201529[_0x4931fb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4931fb([0x6a,0x77,0x6b]),_0x426b5a,{[_0x4931fb([0x6e,0x61,0x6d,0x65])]:_0x4931fb([0x45,0x43,0x44,0x53,0x41]),[_0x4931fb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4931fb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4931fb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x201529[_0x4931fb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4931fb([0x6e,0x61,0x6d,0x65])]:_0x4931fb([0x45,0x43,0x44,0x53,0x41]),[_0x4931fb([0x68,0x61,0x73,0x68])]:{[_0x4931fb([0x6e,0x61,0x6d,0x65])]:_0x4931fb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5db3fb,_0x4b06b4,_0x282557)||(_0xc033a3=!0x1);}}function _0x9a8dc(_0x4341c3){return _0x4341c3[_0x4931fb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4931fb([0x65,0x79]))?JSON[_0x4931fb([0x70,0x61,0x72,0x73,0x65])](_0x33360e(_0x4341c3)):null;}function _0x33360e(_0x2a394a){return window[_0x4931fb([0x61,0x74,0x6f,0x62])](_0x2a394a[_0x4931fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4931fb([0x2b]))[_0x4931fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4931fb([0x2f])));}function _0x44f721(_0x141872){let _0x52e720=0x1505;function _0x4dae14(_0x1a8a4b){for(let _0x136c80=0x0;_0x136c80<_0x1a8a4b[_0x4931fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x136c80++){const _0x474e3c=_0x1a8a4b[_0x4931fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x136c80);_0x52e720=(_0x52e720<<0x5)+_0x52e720+_0x474e3c,_0x52e720&=_0x52e720;}}function _0x82523c(_0x1dee67){Array[_0x4931fb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1dee67)?_0x1dee67[_0x4931fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x82523c):_0x1dee67&&typeof _0x1dee67==_0x4931fb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4931fb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1dee67)[_0x4931fb([0x73,0x6f,0x72,0x74])]()[_0x4931fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4fb6a9,_0x629a60])=>{_0x4dae14(_0x4fb6a9),_0x82523c(_0x629a60);}):_0x4dae14(window[_0x4931fb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1dee67));}return _0x82523c(_0x141872),_0x52e720>>>0x0;}function _0x2b9279(_0x33b5c2){return _0x33b5c2[_0x4931fb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4931fb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4931fb([0x30]));}function _0x251e96(_0x527ed7){return _0x527ed7[_0x4931fb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4931fb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4931fb([0x6a,0x6f,0x69,0x6e])]('');}function _0x401732(){}function _0x4931fb(_0x26f633){return _0x26f633['map'](_0x2900b7=>String['fromCharCode'](_0x2900b7))['join']('');}_0x4a726c(await _0x40492b());}(this);}['_initSchema'](){const _0x4b6215=this['editor']['model']['schema'];_0x4b6215['isRegistered']('imageBlock')&&_0x4b6215['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4b6215['isRegistered']('imageInline')&&_0x4b6215['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x46634e=this['editor'];_0x46634e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x46634e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x320052=>_0x320052['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x348c74=_0x46634e['commands']['get']('replaceImageSource');_0x348c74&&this['listenTo'](_0x348c74,'cleanupImage',(_0x289227,[_0x1cda50,_0x1bf88d])=>{_0x1cda50['removeAttribute']('uploadcareImageId',_0x1bf88d);});}['_initConfig'](){const _0x2a9961=this['editor']['config']['get']('uploadcare.uploader')||{},_0x477f34=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4012d2(_0x2393ce['document'],'uc-config',{..._0x2a9961,'pubkey':_0x477f34,'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']=_0x4d110d=>{if('closeMax'==_0x4d110d)return'#uc-icon-arrow-down';},_0x2393ce['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4012d2(_0x2393ce['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2393ce['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1d6287=this['editor']['commands']['get']('insertImage');_0x1d6287&&this['listenTo'](_0x1d6287,'execute',()=>{const _0xc606cb=this['editor']['model']['document']['selection']['getSelectedElement']();_0xc606cb&&_0xc606cb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0xc606cb);});});const _0x11a39a=this['editor']['commands']['get']('uploadcareImageReplace');_0x11a39a&&this['listenTo'](_0x11a39a,'execute',()=>{const _0x1088b1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1088b1&&_0x1088b1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x1088b1);});});}}class H extends _0xcfa041{static get['requires'](){return[z,A];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6eebc6){super(_0x6eebc6),_0x6eebc6['config']['define']('uploadcare.uploader.sourceList',[S['Local'],S['URL']]),_0xc819d8['defineComponents'](_0xc819d8),this['_defineLocale']();}['_defineLocale'](){const _0x81e40c=this['editor']['config']['get']('uploadcare.locale'),_0x531d7d=this['editor']['locale']['contentLanguage'];_0x81e40c&&_0xc819d8['defineLocale'](_0x531d7d,_0x81e40c);}}class J extends _0x55537e{constructor(_0x4c6f11){super(_0x4c6f11);const t=_0x4c6f11['t'],_0x5a30f0=this['bindTemplate'],_0x226d06=new _0x2754dc();_0x226d06['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':[_0x226d06,{'text':_0x5a30f0['to']('imageUploadProgress',_0x1aea1f=>t('Loading\x20image...')+'\x20('+(_0x1aea1f||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 _0x55537e{constructor(_0x4470c8){super(_0x4470c8);const t=_0x4470c8['t'];this['set']('errorType',null);const _0x3223c7=new _0x34268c(_0x4470c8);_0x3223c7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3223c7['withText']=!0x0,_0x3223c7['class']='ck-button-action',_0x3223c7['on']('execute',()=>{this['fire']('retry');}),_0x3223c7['bind']('isVisible')['to'](this,'errorType',_0x1a7fa7=>'NotFound'!==_0x1a7fa7);const _0x4bad07=new _0x47b58a();_0x4bad07['content']=_0x99cac7,_0x4bad07['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4fffb5=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':[_0x4bad07,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4fffb5['to']('errorType',_0x2d4c13=>t('NotFound'!==_0x2d4c13?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3223c7]},{'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 _0x55537e{constructor(_0x5c9cfb,_0x5831e1){super(_0x5c9cfb);const _0x3f8f47=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5831e1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3f8f47['to']('imageSrc')}});}}class X extends K{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3fa56b,_0x402c58,_0xbdf728){super(_0x3fa56b),this['_items']=this['createCollection'](),this['_loadingView']=new J(_0x3fa56b),this['_errorView']=new Z(_0x3fa56b),this['_editingView']=new Q(_0x3fa56b,_0xbdf728),this['_focusableView']=new _0x55537e(_0x3fa56b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x402c58),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'],_0x2725b4=>{this['_addUploadcareImageEditorListeners'](_0x2725b4);});}),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'](_0x2203ce,_0x56a9c1){const _0x1b2211='uc-cloud-image-editor',_0x43e4db=_0x2203ce['querySelector'](_0x1b2211);if(_0x43e4db)return _0x56a9c1(_0x43e4db);const _0x1f1f8f=new MutationObserver(_0x72c317=>{const _0x46ba7f=_0x72c317['filter'](_0x5529a7=>_0x5529a7['target']===_0x2203ce&&_0x5529a7['addedNodes']['length']>0x0&&_0x5529a7['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1b2211);_0x46ba7f['length']&&(_0x1f1f8f['disconnect'](),_0x56a9c1(_0x46ba7f[0x0]['addedNodes'][0x0]));});_0x1f1f8f['observe'](_0x2203ce,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3b764f){_0x3b764f['addEventListener']('apply',_0x3cef98=>{this['fire']('apply',{'imageSrc':_0x3cef98['detail']['cdnUrl']});}),_0x3b764f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Y extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xf6508e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x505a54,_0x2b7323,_0x4c76b3){super(),this['_editor']=_0x505a54,this['_dialog']=_0x2b7323,this['_imageElement']=_0x4c76b3,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 _0xee0326=this['_imageElement'],_0x13b259=_0xee0326['getAttribute']('uploadcareImageId'),_0x12a699=_0xee0326['getAttribute']('src');if(_0x13b259)await this['_loadImageInfo'](_0x13b259,_0x12a699);else{if(this['_imageCache']['has'](_0x12a699)){const _0x1fbc30=this['_imageCache']['get'](_0x12a699);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1fbc30['url'],this['imageDimension']=_0x1fbc30['dimension'],this['imageId']=_0x1fbc30['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x25520b}=this['_editor'],t=_0x25520b['t'],_0x4602d5=new X(_0x25520b,this['imageStatus'],this['_attributes']);_0x4602d5['bind']('status')['to'](this,'imageStatus'),_0x4602d5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4602d5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4602d5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4602d5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1b93bf,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4602d5,'position':_0x53221e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4602d5['focus']();},'onHide':()=>{_0x4602d5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1da9e8=>!V(_0x1da9e8,_0x4602d5['element'])}});}['_loadImageInfo'](_0x16f1ad,_0x3389c5){return q['getInfo'](_0x16f1ad,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x405269=>{const {width:_0x1e2d63,height:_0x474adf}=_0x405269['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3389c5,this['imageDimension']={'width':_0x1e2d63,'height':_0x474adf},this['imageId']=_0x16f1ad;})['catch'](_0x2a0e84=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2a0e84['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1503f3,_0x1a2c95){return this['_getImageAsFile'](_0x1503f3)['then'](_0x1a6d6c=>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':_0x1a2c95['signal'],'file':_0x1a6d6c,'onProgress':_0x1b91d5=>{_0x1b91d5&&_0x1b91d5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1b91d5['value']));}}))['then'](_0x28d3f8=>{const {width:_0x405809,height:_0x1796a6}=_0x28d3f8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x28d3f8['cdnUrl'],this['imageDimension']={'width':_0x405809,'height':_0x1796a6},this['imageId']=_0x28d3f8['uuid'],this['imageUploadProgress']=null;const _0x9f5e9a=_0x1503f3['getAttribute']('src');this['_imageCache']['set'](_0x9f5e9a,{'id':_0x28d3f8['uuid'],'url':_0x28d3f8['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5b08aa=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5b08aa['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x221aa6,_0x3c4e9b){_0x221aa6['on']('apply',(_0x36facf,_0x2939b2)=>{this['_replaceImage'](_0x3c4e9b,_0x2939b2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x221aa6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x221aa6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x15ad91,_0xf9161f,_0x4d1dca){const _0x4973aa=this['_editor'],{width:_0x25a168,height:_0xd97cd}=F(_0xf9161f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5cb80a,imageSources:_0x27bd1d}=D(_0xf9161f,_0x25a168);_0x4973aa['model']['change'](_0x332220=>{if('$graveyard'===_0x15ad91['root']['rootName']){_0x4973aa['execute']('insertImage',{'imageType':_0x15ad91['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x15ad91['getAttributes']()),'uploadcareImageId':_0x4d1dca,'src':_0x5cb80a,'sources':_0x27bd1d,'width':_0x25a168,'height':_0xd97cd}});const _0x4f5104=_0x15ad91['getChildren']();_0x15ad91=_0x4973aa['model']['document']['selection']['getSelectedElement']();for(const _0x5a6ff7 of _0x4f5104)_0x332220['append'](_0x332220['cloneElement'](_0x5a6ff7),_0x15ad91);}else _0x332220['setSelection'](_0x15ad91,'on'),_0x4973aa['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x15ad91['getAttributes']()),'uploadcareImageId':_0x4d1dca,'src':_0x5cb80a,'sources':_0x27bd1d,'width':_0x25a168,'height':_0xd97cd},_0x15ad91);_0x332220['setSelection'](_0x15ad91,'on');});}async['_getImageAsFile'](_0x42fe5b){const _0x3123f6=_0x2393ce['window'],_0x34fdc9=_0x2393ce['document']['location']['href'],_0x47f598=new _0x3123f6['URL'](_0x42fe5b['getAttribute']('src'),_0x34fdc9);if('data:'===_0x47f598['protocol']){const _0x143560=_0x47f598['href']['split'](','),_0x4051e6=_0x143560[0x0]['match'](/:(.*?);/)[0x1],_0x408858=_0x4051e6['split']('/')[0x1],_0x52bf22=_0x3123f6['atob'](_0x143560[_0x143560['length']-0x1]);let _0x3df3d1=_0x52bf22['length'];const _0x2cfd79=new _0x3123f6['Uint8Array'](_0x3df3d1);for(;_0x3df3d1--;)_0x2cfd79[_0x3df3d1]=_0x52bf22['charCodeAt'](_0x3df3d1);return new _0x3123f6['File']([_0x2cfd79],'image.'+_0x408858,{'type':_0x4051e6});}const _0x623250=_0x47f598['href']['split']('/'),_0x375a36=_0x623250[_0x623250['length']-0x1],_0x16dfee=_0x375a36['split']('.')[0x1];return _0x3123f6['fetch'](_0x47f598['href'])['then'](_0x189533=>_0x189533['clone']()['blob']())['then'](_0x2d4e67=>new _0x3123f6['File']([_0x2d4e67],_0x375a36,{'type':'image/'+_0x16dfee}));}}class tt extends _0x553c37{['imageEditController'];static get['requires'](){return[_0x35fdff];}['_isEditable'];constructor(_0x1f0c14){super(_0x1f0c14),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x17da9c){const _0x2afeff=B(_0x17da9c);return _0x4c38cc=>!(!_0x4c38cc||!_0x4c38cc['is']('element','imageBlock')&&!_0x4c38cc['is']('element','imageInline'))&&(!!_0x4c38cc['hasAttribute']('uploadcareImageId')||!!_0x4c38cc['hasAttribute']('src')&&_0x2afeff(_0x4c38cc['getAttribute']('src')));}(_0x1f0c14['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4d955d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4d955d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xf5f913=this['editor']['model']['document']['selection']['getSelectedElement']();_0xf5f913&&(_0xf5f913['is']('element','imageBlock')||_0xf5f913['is']('element','imageInline'))&&(this['imageEditController']=new Y(this['editor'],this['editor']['plugins']['get'](_0x35fdff),_0xf5f913),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class et extends _0x553c37{['refresh'](){const _0x46a571=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x46a571&&(_0x46a571['is']('element','imageBlock')||_0x46a571['is']('element','imageInline')));}['execute'](_0x79002a){const _0x3ed214=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x313bbe=>{_0x313bbe['setAttributes'](_0x79002a,_0x3ed214),_0x313bbe['removeAttribute']('srcset',_0x3ed214),_0x313bbe['removeAttribute']('sizes',_0x3ed214);});}}class it extends _0xcfa041{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[z,_0x3d5365,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x36d351}=this;_0x36d351['commands']['add']('uploadcareImageEdit',new tt(_0x36d351)),_0x36d351['commands']['add']('uploadcareImageReplace',new et(_0x36d351));}}class st extends _0xcfa041{['_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 _0x26c361=this['editor'];_0x26c361['ui']['componentFactory']['add']('uploadcareImageEdit',_0xedd39a=>{const _0x385ba5=_0x26c361['commands']['get']('uploadcareImageEdit'),_0x46dc53=new _0x34268c(_0xedd39a),t=_0xedd39a['t'];return _0x46dc53['set']({'icon':_0x1b93bf,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x46dc53['bind']('isEnabled')['to'](_0x385ba5),_0x46dc53['bind']('isOn')['to'](_0x385ba5,'isActive'),this['listenTo'](_0x46dc53,'execute',()=>{_0x26c361['execute']('uploadcareImageEdit'),_0x26c361['editing']['view']['focus']();}),_0x46dc53;}),this['_initConfig']();}['_initConfig'](){const _0x28d42e=_0x4012d2(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x28d42e),this['listenTo'](this['editor'],'destroy',()=>{_0x28d42e['remove']();});}}class nt extends _0xcfa041{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 _0x41d798,Command as _0x2c9eb8}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1296f4,IconGooglePhotos as _0x2b533f,IconGoogleDrive as _0x59bb10,IconFacebook as _0x3c36f4,IconDropbox as _0x281bb2,IconUploadcareLink as _0x3fbb2f,IconUploadcareImageUpload as _0x138699,IconError as _0x3f8819,IconUploadcareImageEdit as _0x36b588}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x40aa4b,MenuBarMenuListItemButtonView as _0x4c0f79,View as _0x371a0c,FocusCycler as _0x1a0f41,Dialog as _0x447a09,DialogViewPosition as _0x22f0a7,SpinnerView as _0x193a62,IconView as _0x4dd9dc,Notification as _0x73e358}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5bf015,DomEmitterMixin as _0xd2a10c,global as _0x2b8df2,getAncestors as _0x28d2de,ObservableMixin as _0x2aadfe,uid as _0x33f4d2,createElement as _0x1f7e0e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x53c2a6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x7bb793,info as _0x4761ca}from'@uploadcare/upload-client';import*as _0x157a6b from'@uploadcare/file-uploader';var S=function(_0x2caef9){return _0x2caef9['Local']='local',_0x2caef9['URL']='url',_0x2caef9['Dropbox']='dropbox',_0x2caef9['GDrive']='gdrive',_0x2caef9['Facebook']='facebook',_0x2caef9['GPhotos']='gphotos',_0x2caef9['OneDrive']='onedrive',_0x2caef9;}({});function T(_0x4423f4,_0x3cc1fe,_0x384af0){const t=_0x4423f4['t'],_0x450389=_0x4423f4['t'];switch(_0x3cc1fe){case S['Local']:return{'text':_0x450389('Insert'===_0x384af0?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x450389('From\x20computer')};case S['URL']:return{'text':'Insert'===_0x384af0?_0x450389('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x450389('Via\x20URL')};case S['Dropbox']:return{'text':t('Insert'===_0x384af0?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case S['Facebook']:return{'text':t('Insert'===_0x384af0?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case S['GDrive']:return{'text':t('Insert'===_0x384af0?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case S['GPhotos']:return{'text':t('Insert'===_0x384af0?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case S['OneDrive']:return{'text':t('Insert'===_0x384af0?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3cc1fe;}}class A extends _0x41d798{['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 _0x363298=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x43793f;for(const _0x1a9867 in _0x363298){const _0x460174=_0x1a9867,_0xfeac90=_0x363298[_0x460174];if('uploadcareLicenseKeyValid'==_0xfeac90||'uploadcareLicenseKeyInvalid'==_0xfeac90||'uploadcareLicenseKeyExpired'==_0xfeac90||'uploadcareLicenseKeyDomainLimit'==_0xfeac90||'uploadcareLicenseKeyNotAllowed'==_0xfeac90||'uploadcareLicenseKeyEvaluationLimit'==_0xfeac90||'uploadcareLicenseKeyUsageLimit'==_0xfeac90){delete _0x363298[_0x460174],_0x43793f=_0xfeac90,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x43793f&&_0x363298['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x43793f&&_0x363298['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x43793f&&_0x363298['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x43793f&&_0x363298['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x43793f&&_0x363298['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x43793f&&_0x363298['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2c4224}=this,_0x5c8e96=_0x2c4224['commands']['get']('uploadcare');if(!_0x5c8e96)return;const _0x175cd8=this['_normalizeConfigSourceList'](_0x2c4224['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4137c9,_0x54cc44)=>{const _0x52a4ec=this['_getIntegrationKey'](_0x54cc44['type']);return _0x4137c9[_0x52a4ec]||(_0x4137c9[_0x52a4ec]=[]),_0x4137c9[_0x52a4ec]['push'](_0x54cc44),_0x4137c9;},{});_0x2c4224['plugins']['has']('ImageInsertUI')&&_0x2c4224['commands']['get']('uploadcare')&&Object['entries'](_0x175cd8)['forEach'](([_0x1548a5,_0x11ce33])=>{_0x2c4224['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1548a5,'observable':()=>_0x5c8e96,'buttonViewCreator':()=>this['_createToolbarButton'](_0x11ce33),'formViewCreator':()=>this['_createDropdownButtons'](_0x11ce33),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x11ce33),'override':'assetManager'!==_0x1548a5});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x562c07){const {locale:_0x46fed7}=this['editor'];return _0x562c07['map'](_0x1753c0=>{const _0x2bc931=T(_0x46fed7,_0x1753c0,'Insert');switch(_0x1753c0){case S['Local']:return{'icon':_0x138699,'type':S['Local'],..._0x2bc931};case S['URL']:return{'icon':_0x3fbb2f,'type':S['URL'],..._0x2bc931};case S['Dropbox']:return{'icon':_0x281bb2,'type':S['Dropbox'],..._0x2bc931};case S['Facebook']:return{'icon':_0x3c36f4,'type':S['Facebook'],..._0x2bc931};case S['GDrive']:return{'icon':_0x59bb10,'type':S['GDrive'],..._0x2bc931};case S['GPhotos']:return{'icon':_0x2b533f,'type':S['GPhotos'],..._0x2bc931};case S['OneDrive']:return{'icon':_0x1296f4,'type':S['OneDrive'],..._0x2bc931};}});}['_getIntegrationKey'](_0x59ad34){switch(_0x59ad34){case S['Local']:return'upload';case S['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5c49ce,_0x41e406){const _0x345ba9=this['editor'],_0x344e73=new _0x5c49ce(_0x345ba9['locale']),_0x4cbf0b=_0x345ba9['commands']['get']('uploadcare');return _0x344e73['bind']('isEnabled')['to'](_0x4cbf0b),_0x344e73['on']('execute',()=>{_0x4cbf0b['execute'](_0x41e406);}),_0x344e73;}['_createToolbarButton'](_0x31aac2){const {locale:_0x212d14}=this['editor'],_0x5f40d0=this['editor']['plugins']['get']('ImageInsertUI'),_0x1035f2=_0x31aac2[0x0],_0x77978a=this['_createButton'](_0x40aa4b,_0x1035f2['type']);return _0x77978a['icon']=_0x1035f2['icon'],_0x77978a['bind']('label')['to'](_0x5f40d0,'isImageSelected',_0x163f17=>T(_0x212d14,_0x1035f2['type'],_0x163f17?'Replace':'Insert')['text']),_0x77978a['tooltip']=!0x0,_0x77978a;}['_createDropdownButtons'](_0x385528){const {locale:_0x52f6e3}=this['editor'],_0x185e9b=this['editor']['plugins']['get']('ImageInsertUI');return _0x385528['map'](_0xfa8bd6=>{const _0x271d9e=this['_createButton'](_0x40aa4b,_0xfa8bd6['type']);return _0x271d9e['withText']=!0x0,_0x271d9e['icon']=_0xfa8bd6['icon'],_0x271d9e['bind']('label')['to'](_0x185e9b,'isImageSelected',_0x2516fa=>T(_0x52f6e3,_0xfa8bd6['type'],_0x2516fa?'Replace':'Insert')['text']),_0x271d9e;});}['_createMenuBarButtons'](_0x266f4e){return _0x266f4e['map'](_0xa560f9=>{const _0xf4093d=this['_createButton'](_0x4c0f79,_0xa560f9['type']);return _0xf4093d['icon']=_0xa560f9['icon'],_0xf4093d['label']=_0xa560f9['shortText'],_0xf4093d;});}}class K extends _0x371a0c{['focusTracker'];['focusCycler'];constructor(_0x5d03ef){super(_0x5d03ef),this['focusTracker']=new _0x5bf015(),this['focusCycler']=new _0x1a0f41({'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(_0x5d4395,_0x2980bd){super(_0x5d4395),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-'+_0x2980bd}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function D(_0x45b391,_0x4f9c76){const _0x23f709=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4c2d77=>_0x4c2d77<=_0x4f9c76)['map'](_0x4b906d=>_0x45b391['replace'](/\/$/,'')+'/-/resize/'+_0x4b906d+'x/\x20'+_0x4b906d+'w');return{'imageFallbackUrl':_0x45b391,'imageSources':[{'srcset':_0x23f709['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4f9c76+'px)\x20100vw,\x20'+_0x4f9c76+'px','type':'image/webp'}]};}function F(_0x811cc2,_0x380dc4,_0x2bb60d){const _0x4f6839=_0x811cc2['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4f6839?parseInt(_0x4f6839[0x1],0xa):_0x380dc4,'height':_0x4f6839?parseInt(_0x4f6839[0x2],0xa):_0x2bb60d};}function $(_0x4a019a,_0xa74e94){const _0x2f06da=new(_0xd2a10c())(),_0x197aca=_0x4a019a['plugins']['get']('ImageUtils'),_0x3f2b38=_0x4a019a['editing']['mapper']['toViewElement'](_0xa74e94),_0x2cb2df=_0x197aca['findViewImgElement'](_0x3f2b38),_0x43c01f=_0x4a019a['editing']['view']['domConverter']['viewToDom'](_0x2cb2df),_0x2bd415=_0xa74e94['getAttribute']('width'),_0x2f7eb7=_0xa74e94['getAttribute']('height'),_0x2c53b9='image-processing';_0x4a019a['editing']['view']['change'](_0x560012=>{_0x560012['addClass'](_0x2c53b9,_0x3f2b38),_0x560012['setStyle']('aspect-ratio',_0x2bd415+'/'+_0x2f7eb7,_0x2cb2df);}),_0x2f06da['listenTo'](_0x43c01f,'load',()=>{_0x2f06da['stopListening'](_0x43c01f,'load'),_0x4a019a['editing']['view']['change'](_0x1f7668=>{_0x1f7668['removeClass'](_0x2c53b9,_0x3f2b38),_0x1f7668['removeStyle']('aspect-ratio',_0x2cb2df);});});}function B(_0x4092a9){if(Array['isArray'](_0x4092a9)){const _0x20d518=_0x4092a9['map'](B);return _0x180d3a=>_0x20d518['some'](_0x5267d4=>_0x5267d4(_0x180d3a));}if('origin'==_0x4092a9){const _0x620978=_0x2b8df2['window']['location']['origin'];return _0xd9b1a=>new URL(_0xd9b1a,_0x2b8df2['document']['baseURI'])['origin']==_0x620978;}return'function'==typeof _0x4092a9?_0x4092a9:_0x4092a9 instanceof RegExp?_0x38a0e2=>!(!_0x38a0e2['match'](_0x4092a9)&&!_0x38a0e2['replace'](/^https?:\/\//,'')['match'](_0x4092a9)):()=>!0x1;}function V(_0xf9f572,_0x1722f8){return _0x28d2de(_0xf9f572['target'])['includes'](_0x1722f8);}class j extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2aadfe(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x360717,_0x11cd2c,_0x585ba9){super(),this['_editor']=_0x360717,this['_editing']=_0x11cd2c,this['_dialog']=_0x360717['plugins']['get'](_0x447a09),this['_api']=_0x11cd2c['ctxElement']['getAPI'](),this['_type']=_0x585ba9,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:_0x2a41fa,model:_0x4f717b}=this['_editor'],_0x2a6fbf=_0x4f717b['document']['selection']['getSelectedElement'](),_0x3096b5=_0x2a6fbf&&(_0x2a6fbf['is']('element','imageBlock')||_0x2a6fbf['is']('element','imageInline'));this['_formView']=new O(_0x2a41fa,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x138699,'title':T(_0x2a41fa,this['_type'],_0x3096b5?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x22f0a7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4e0f04=>!V(_0x4e0f04,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x20d384}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x318ecc=>{const _0x525c13=_0x20d384['length'];for(const _0x53a700 of _0x20d384){const _0x146587=_0x53a700===_0x20d384[_0x525c13-0x1],{cdnUrl:_0x3e9a27,fileInfo:_0x5cf460}=_0x53a700;if(!_0x3e9a27||!_0x5cf460)continue;const {width:_0x545848,height:_0x2316f1}=_0x5cf460['imageInfo'],_0x1408e8=F(_0x3e9a27,_0x545848,_0x2316f1),_0x25cf50=D(_0x3e9a27,_0x1408e8['width']),_0x3ca622={'id':_0x5cf460['uuid'],'type':'image','attributes':{'imageDimension':_0x1408e8,..._0x25cf50}};this['_insertAsset'](_0x3ca622,_0x146587,_0x318ecc);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2bee31=>{'idle'===_0x2bee31['detail']['status']&&!_0x2bee31['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===S['Local']?this['_api']['setCurrentActivity'](S['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x21ea2f,_0x4f04a1,_0x338c2b){const _0x587cbb=this['_editor']['model']['document']['selection'],_0x409c94=_0x587cbb['getSelectedElement'](),_0x208a1f=!(!_0x409c94||!_0x409c94['is']('element','imageInline'));_0x338c2b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x21ea2f,_0x208a1f),_0x4f04a1||_0x338c2b['setSelection'](_0x587cbb['getLastPosition']());}['_insertImage'](_0x192b39,_0x400b27){const _0x3040b4=this['_editor'],{imageDimension:_0x2f79d6,imageFallbackUrl:_0x2fb451,imageSources:_0xcd00ba}=_0x192b39['attributes'];_0x3040b4['execute']('insertImage',{'imageType':_0x400b27?'imageInline':null,'source':{'uploadcareImageId':_0x192b39['id'],'src':_0x2fb451,'sources':_0xcd00ba,..._0x2f79d6}});}}class M extends _0x2c9eb8{['_editing'];['_controller']=null;static get['requires'](){return[_0x447a09,z];}constructor(_0x5fe587){super(_0x5fe587),this['_editing']=_0x5fe587['plugins']['get'](z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2b2fef){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new j(this['editor'],this['_editing'],_0x2b2fef);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class q{static['upload']({file:_0x51b67d,..._0x5ad58b}){return _0x7bb793(_0x51b67d,_0x5ad58b);}static['getInfo'](_0x4aaf5b,_0x3f9ae5){return _0x4761ca(_0x4aaf5b,_0x3f9ae5);}}class W extends _0x41d798{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x53c2a6,z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1744e1=this['editor'];if(!!!_0x1744e1['config']['get']('uploadcare'))return;_0x1744e1['plugins']['get'](_0x53c2a6)['createUploadAdapter']=_0x2b3215=>new G(_0x2b3215,_0x1744e1),_0x1744e1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x14dc2b,{imageElement:_0x30c5e0,data:_0x23c5ad})=>{_0x1744e1['model']['change'](_0x1c20c6=>{_0x1c20c6['setAttribute']('uploadcareImageId',_0x23c5ad['uploadcareImageId'],_0x30c5e0);});});}}class G{['loader'];['editor'];['controller'];constructor(_0xabfffb,_0x30c55c){this['loader']=_0xabfffb,this['editor']=_0x30c55c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5c34e5=await this['loader']['file'];return q['upload']({'file':_0x5c34e5,'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':_0x34803d=>{_0x34803d&&_0x34803d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x34803d['value']);}})['then'](async _0x370073=>{const {imageFallbackUrl:_0xfbd74d,imageSources:_0x138676}=D(_0x370073['cdnUrl'],_0x370073['imageInfo']['width']);return{'uploadcareImageId':_0x370073['uuid'],'default':_0xfbd74d,'sources':_0x138676};})['catch'](()=>{const _0x4b15a3=t('Cannot\x20upload\x20file:')+('\x20'+_0x5c34e5['name']+'.');return Promise['reject'](_0x4b15a3);});}['abort'](){this['controller']['abort']();}}class z extends _0x41d798{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',W,_0x447a09];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xd43bd7){super(_0xd43bd7),this['ucContextId']=_0x33f4d2();}['init'](){const _0x59b300=this['editor'];_0x59b300['commands']['add']('uploadcare',new M(_0x59b300));}['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 _0x508c76=_0x2b8df2['document']['querySelector']('input[uploadcare-file-input]');_0x508c76&&_0x508c76['remove']();}),async function(_0x361921){const _0x3d5e7e=_0x3b5f05([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]),_0x47c687=0x535f8c3a,_0xe15d0d=0x5358f28a^_0x47c687,_0x1caa4a=window[_0x3b5f05([0x44,0x61,0x74,0x65])][_0x3b5f05([0x6e,0x6f,0x77])](),_0x4898b2=_0x361921[_0x3b5f05([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5567ea=new window[(_0x3b5f05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa59428=>{_0x4898b2[_0x3b5f05([0x6f,0x6e,0x63,0x65])](_0x3b5f05([0x72,0x65,0x61,0x64,0x79]),_0xa59428);}),_0x1552dc={[_0x3b5f05([0x6b,0x74,0x79])]:_0x3b5f05([0x45,0x43]),[_0x3b5f05([0x75,0x73,0x65])]:_0x3b5f05([0x73,0x69,0x67]),[_0x3b5f05([0x63,0x72,0x76])]:_0x3b5f05([0x50,0x2d,0x32,0x35,0x36]),[_0x3b5f05([0x78])]:_0x3b5f05([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]),[_0x3b5f05([0x79])]:_0x3b5f05([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]),[_0x3b5f05([0x61,0x6c,0x67])]:_0x3b5f05([0x45,0x53,0x32,0x35,0x36])},_0x12ddc4=_0x4898b2[_0x3b5f05([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b5f05([0x67,0x65,0x74])](_0x3b5f05([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e65f8(){let _0x16f86d,_0x25d37e=null,_0x47932e=null;try{if(_0x12ddc4==_0x3b5f05([0x47,0x50,0x4c]))return _0x3b5f05([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16f86d=_0x37e30b(),!_0x16f86d)return _0x3b5f05([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16f86d[_0x3b5f05([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x47932e=_0x383f06(_0x16f86d[_0x3b5f05([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16f86d[_0x3b5f05([0x6a,0x74,0x69])])),await _0x232fc0()?_0xb895a0()?_0x29ad2f()?_0x3b5f05([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25fcdc()?(_0x16f86d[_0x3b5f05([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b5f05([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x25d37e=_0xe353f8(_0x3b5f05([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x584d39()):_0x3b5f05([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b5f05([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b5f05([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b5f05([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x29ad2f(){const _0x303a0c=[_0x3b5f05([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b5f05([0x74,0x72,0x69,0x61,0x6c])][_0x3b5f05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16f86d[_0x3b5f05([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1caa4a/0x3e8:0xe10*_0xe15d0d;return _0x16f86d[_0x3b5f05([0x65,0x78,0x70])]<_0x303a0c;}function _0xb895a0(){const _0x566545=_0x16f86d[_0x3b5f05([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x566545&&(!!_0x566545[_0x3b5f05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b5f05([0x2a]))||!!_0x566545[_0x3b5f05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b5f05([0x55,0x50,0x4c,0x43])));}function _0x25fcdc(){const _0x34f90b=_0x16f86d[_0x3b5f05([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34f90b||0x0==_0x34f90b[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f55ff}=new URL(window[_0x3b5f05([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x34f90b[_0x3b5f05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f55ff))return!0x0;const _0x28048f=_0x4f55ff[_0x3b5f05([0x73,0x70,0x6c,0x69,0x74])](_0x3b5f05([0x2e]));return _0x34f90b[_0x3b5f05([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x261141=>_0x261141[_0x3b5f05([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b5f05([0x2a])))[_0x3b5f05([0x6d,0x61,0x70])](_0x47f7a6=>_0x47f7a6[_0x3b5f05([0x73,0x70,0x6c,0x69,0x74])](_0x3b5f05([0x2e])))[_0x3b5f05([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x235078=>_0x235078[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28048f[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b5f05([0x6d,0x61,0x70])](_0x25b619=>Array(_0x28048f[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x25b619[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b5f05([0x66,0x69,0x6c,0x6c])](_0x25b619[0x0]===_0x3b5f05([0x2a])?_0x3b5f05([0x2a]):'')[_0x3b5f05([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x25b619))[_0x3b5f05([0x73,0x6f,0x6d,0x65])](_0x4a0b23=>_0x28048f[_0x3b5f05([0x65,0x76,0x65,0x72,0x79])]((_0x29dcda,_0x390d21)=>_0x4a0b23[_0x390d21]===_0x29dcda||_0x4a0b23[_0x390d21]===_0x3b5f05([0x2a])));}function _0x584d39(){return _0x25d37e&&_0x47932e?new window[(_0x3b5f05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x24de60,_0x24c264)=>{_0x25d37e[_0x3b5f05([0x74,0x68,0x65,0x6e])](_0x24de60,_0x24c264),_0x47932e[_0x3b5f05([0x74,0x68,0x65,0x6e])](_0x4aaac1=>{_0x4aaac1!=_0x3b5f05([0x56,0x61,0x6c,0x69,0x64])&&_0x24de60(_0x4aaac1);},_0x24c264);}):_0x25d37e||_0x47932e||_0x3b5f05([0x56,0x61,0x6c,0x69,0x64]);}}function _0x383f06(_0x511013,_0x3b9baa){return new window[(_0x3b5f05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf02e4e=>{if(_0x304196())return _0xf02e4e(_0x3b5f05([0x56,0x61,0x6c,0x69,0x64]));_0x155369(),_0x4898b2[_0x3b5f05([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b5f05([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3a77b4=!0x1;const _0x1cf50c=_0x33f4d2();function _0x21bd65(_0x22a88c){return!!_0x22a88c&&(typeof _0x22a88c===_0x3b5f05([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22a88c===_0x3b5f05([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22a88c[_0x3b5f05([0x74,0x68,0x65,0x6e])]===_0x3b5f05([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22a88c[_0x3b5f05([0x63,0x61,0x74,0x63,0x68])]===_0x3b5f05([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x95c9ec(_0x37b209){_0xd06d75(_0x37b209)[_0x3b5f05([0x74,0x68,0x65,0x6e])](_0x22e2d2=>{if(!_0x22e2d2||_0x22e2d2[_0x3b5f05([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b5f05([0x6f,0x6b]))return _0x3b5f05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c7440(_0x3435d4(_0x1cf50c+_0x3b9baa))!=_0x22e2d2[_0x3b5f05([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b5f05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b5f05([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b5f05([0x74,0x68,0x65,0x6e])](_0xebd956=>(_0x2b617f(),_0xebd956),()=>{const _0x3d81ba=_0x56b984();return null==_0x3d81ba?(_0x2b617f(),_0x3b5f05([0x56,0x61,0x6c,0x69,0x64])):_0x3b5f05(_0x1caa4a-_0x3d81ba>(0x7753083a^_0x47c687)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b5f05([0x74,0x68,0x65,0x6e])](_0xf02e4e)[_0x3b5f05([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf02e4e(_0x3b5f05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35c1c7=0x536962ba^_0x47c687;function _0x2b617f(){const _0xbd911a=_0x3b5f05([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c7440(_0x3435d4(_0x511013)),_0x318caf=_0x8f2ca5(_0x2c7440(window[_0x3b5f05([0x4d,0x61,0x74,0x68])][_0x3b5f05([0x63,0x65,0x69,0x6c])](_0x1caa4a/_0x35c1c7)));window[_0x3b5f05([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b5f05([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xbd911a,_0x318caf);}function _0x56b984(){const _0x5ddf38=_0x3b5f05([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c7440(_0x3435d4(_0x511013)),_0x26138c=window[_0x3b5f05([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b5f05([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ddf38);return _0x26138c?window[_0x3b5f05([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8f2ca5(_0x26138c),0x10)*_0x35c1c7:null;}function _0xd06d75(_0x43090a){return new window[(_0x3b5f05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44b624,_0x7e4ddf)=>{_0x43090a[_0x3b5f05([0x74,0x68,0x65,0x6e])](_0x44b624,_0x7e4ddf),window[_0x3b5f05([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x7e4ddf,0x535e58fa^_0x47c687);});}}_0x4898b2[_0x3b5f05([0x6f,0x6e])](_0x3b5f05([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2cb02b,_0x16a05c)=>{if(_0x16a05c[0x0]!=_0x511013)return _0xf02e4e(_0x3b5f05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x16a05c[0x1]={..._0x16a05c[0x1],[_0x3b5f05([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1cf50c};},{[_0x3b5f05([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b5f05([0x68,0x69,0x67,0x68])}),_0x4898b2[_0x3b5f05([0x6f,0x6e])](_0x3b5f05([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5620c3=>{_0x21bd65(_0x5620c3[_0x3b5f05([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3a77b4=!0x0,_0x95c9ec(_0x5620c3[_0x3b5f05([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b5f05([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b5f05([0x6c,0x6f,0x77])}),_0x5567ea[_0x3b5f05([0x74,0x68,0x65,0x6e])](()=>{_0x3a77b4||_0xf02e4e(_0x3b5f05([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x304196(){return _0x4898b2[_0x3b5f05([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b5f05([0x76,0x69,0x65,0x77])][_0x3b5f05([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b5f05([0x61,0x75,0x74,0x6f]);}function _0x155369(){_0x4898b2[_0x3b5f05([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b5f05([0x76,0x69,0x65,0x77])][_0x3b5f05([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b5f05([0x61,0x75,0x74,0x6f]);}}function _0xe353f8(_0x588e8b){const _0x42c2b7=[new window[(_0x3b5f05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51f7b9=>setTimeout(_0x51f7b9,0x5356b2f6^_0x47c687)),_0x5567ea[_0x3b5f05([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b5f05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19016c=>{let _0x4a5f01=0x0;_0x4898b2[_0x3b5f05([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b5f05([0x6f,0x6e])](_0x3b5f05([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2cbd80,_0x1aba84)=>{_0x1aba84[0x0][_0x3b5f05([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a5f01++,_0x4a5f01==(0x535f89d2^_0x47c687)&&(_0x19016c(),_0x2cbd80[_0x3b5f05([0x6f,0x66,0x66])]());});}))];return window[_0x3b5f05([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b5f05([0x72,0x61,0x63,0x65])](_0x42c2b7)[_0x3b5f05([0x74,0x68,0x65,0x6e])](()=>_0x588e8b);}async function _0x1a41df(){await _0x5567ea,_0x4898b2[_0x3b5f05([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b5f05([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38a0f6,_0x4898b2[_0x3b5f05([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b5f05([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38a0f6,_0x4898b2[_0x3b5f05([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b5f05([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c609c(_0x2f136b){const _0x24e66b=_0x2db115();_0x4898b2[_0x24e66b]=_0x3b5f05([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2f136b,_0x2f136b!=_0x3b5f05([0x56,0x61,0x6c,0x69,0x64])&&_0x1a41df();}function _0x2db115(){const _0x3a9706=window[_0x3b5f05([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b5f05([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b5f05([0x6e,0x6f,0x77])]())[_0x3b5f05([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b5f05([0x2e]),'');let _0x17a6f3=_0x3b5f05([0x68]);for(let _0x52ee33=0x0;_0x52ee33<_0x3a9706[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52ee33+=0x2){let _0x24ee1c=window[_0x3b5f05([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a9706[_0x3b5f05([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52ee33,_0x52ee33+0x2));_0x24ee1c>=_0x3d5e7e[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x24ee1c-=_0x3d5e7e[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17a6f3+=_0x3d5e7e[_0x24ee1c];}return _0x17a6f3;}function _0x37e30b(){const _0xca224=_0x12ddc4[_0x3b5f05([0x73,0x70,0x6c,0x69,0x74])](_0x3b5f05([0x2e]));if(0x3!=_0xca224[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e7e9c(_0xca224[0x1]);function _0x4e7e9c(_0x1fb940){const _0x429b2d=_0x196be9(_0x1fb940);return _0x429b2d&&_0x1b36b8()?_0x429b2d:null;function _0x1b36b8(){const _0x2d315b=_0x429b2d[_0x3b5f05([0x6a,0x74,0x69])],_0x2c6ae3=window[_0x3b5f05([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d315b[_0x3b5f05([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d315b[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48329b={..._0x429b2d,[_0x3b5f05([0x6a,0x74,0x69])]:_0x2d315b[_0x3b5f05([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d315b[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48329b[_0x3b5f05([0x76,0x63])],_0x3435d4(_0x48329b)==_0x2c6ae3;}}}async function _0x232fc0(){let _0x49e233=!0x0;try{const _0x3bd277=_0x12ddc4[_0x3b5f05([0x73,0x70,0x6c,0x69,0x74])](_0x3b5f05([0x2e])),[_0x4929fa,_0x11ffa9,_0x3a7210]=_0x3bd277;return _0x97ffbd(_0x4929fa),await _0x256ad4(_0x4929fa,_0x11ffa9,_0x3a7210),_0x49e233;}catch{return!0x1;}function _0x97ffbd(_0x5df3ef){const _0x7aec82=_0x196be9(_0x5df3ef);_0x7aec82&&_0x7aec82[_0x3b5f05([0x61,0x6c,0x67])]==_0x3b5f05([0x45,0x53,0x32,0x35,0x36])||(_0x49e233=!0x1);}async function _0x256ad4(_0x3d84fa,_0x25f22b,_0x26879d){const _0x122306=window[_0x3b5f05([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b5f05([0x66,0x72,0x6f,0x6d])](_0x423be8(_0x26879d),_0x3b744e=>_0x3b744e[_0x3b5f05([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x219904=new window[(_0x3b5f05([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b5f05([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d84fa+_0x3b5f05([0x2e])+_0x25f22b),_0x5af5f9=window[_0x3b5f05([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b5f05([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5af5f9)return;const _0x41d4ee=await _0x5af5f9[_0x3b5f05([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b5f05([0x6a,0x77,0x6b]),_0x1552dc,{[_0x3b5f05([0x6e,0x61,0x6d,0x65])]:_0x3b5f05([0x45,0x43,0x44,0x53,0x41]),[_0x3b5f05([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b5f05([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b5f05([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5af5f9[_0x3b5f05([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b5f05([0x6e,0x61,0x6d,0x65])]:_0x3b5f05([0x45,0x43,0x44,0x53,0x41]),[_0x3b5f05([0x68,0x61,0x73,0x68])]:{[_0x3b5f05([0x6e,0x61,0x6d,0x65])]:_0x3b5f05([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x41d4ee,_0x122306,_0x219904)||(_0x49e233=!0x1);}}function _0x196be9(_0x4c4de9){return _0x4c4de9[_0x3b5f05([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b5f05([0x65,0x79]))?JSON[_0x3b5f05([0x70,0x61,0x72,0x73,0x65])](_0x423be8(_0x4c4de9)):null;}function _0x423be8(_0x52ae47){return window[_0x3b5f05([0x61,0x74,0x6f,0x62])](_0x52ae47[_0x3b5f05([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b5f05([0x2b]))[_0x3b5f05([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b5f05([0x2f])));}function _0x3435d4(_0x5af071){let _0x360669=0x1505;function _0x335e9d(_0x47dbfc){for(let _0x3eaac5=0x0;_0x3eaac5<_0x47dbfc[_0x3b5f05([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3eaac5++){const _0x46465b=_0x47dbfc[_0x3b5f05([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3eaac5);_0x360669=(_0x360669<<0x5)+_0x360669+_0x46465b,_0x360669&=_0x360669;}}function _0x15b54a(_0x10c0c9){Array[_0x3b5f05([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10c0c9)?_0x10c0c9[_0x3b5f05([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15b54a):_0x10c0c9&&typeof _0x10c0c9==_0x3b5f05([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b5f05([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10c0c9)[_0x3b5f05([0x73,0x6f,0x72,0x74])]()[_0x3b5f05([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x373ba1,_0x4404c2])=>{_0x335e9d(_0x373ba1),_0x15b54a(_0x4404c2);}):_0x335e9d(window[_0x3b5f05([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10c0c9));}return _0x15b54a(_0x5af071),_0x360669>>>0x0;}function _0x2c7440(_0x2f16c7){return _0x2f16c7[_0x3b5f05([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b5f05([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b5f05([0x30]));}function _0x8f2ca5(_0x5eb0ce){return _0x5eb0ce[_0x3b5f05([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b5f05([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b5f05([0x6a,0x6f,0x69,0x6e])]('');}function _0x38a0f6(){}function _0x3b5f05(_0x529c33){return _0x529c33['map'](_0xc946cb=>String['fromCharCode'](_0xc946cb))['join']('');}_0x1c609c(await _0x3e65f8());}(this);}['_initSchema'](){const _0x1f149a=this['editor']['model']['schema'];_0x1f149a['isRegistered']('imageBlock')&&_0x1f149a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1f149a['isRegistered']('imageInline')&&_0x1f149a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2ce92a=this['editor'];_0x2ce92a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2ce92a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x547b8a=>_0x547b8a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1610a4=_0x2ce92a['commands']['get']('replaceImageSource');_0x1610a4&&this['listenTo'](_0x1610a4,'cleanupImage',(_0x389928,[_0x126516,_0x323f14])=>{_0x126516['removeAttribute']('uploadcareImageId',_0x323f14);});}['_initConfig'](){const _0x4da48d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x22cf01=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1f7e0e(_0x2b8df2['document'],'uc-config',{..._0x4da48d,'pubkey':_0x22cf01,'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']=_0x4995bb=>{if('closeMax'==_0x4995bb)return'#uc-icon-arrow-down';},_0x2b8df2['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1f7e0e(_0x2b8df2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2b8df2['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x13a279=this['editor']['commands']['get']('insertImage');_0x13a279&&this['listenTo'](_0x13a279,'execute',()=>{const _0x2b2f7c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2b2f7c&&_0x2b2f7c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x2b2f7c);});});const _0x442006=this['editor']['commands']['get']('uploadcareImageReplace');_0x442006&&this['listenTo'](_0x442006,'execute',()=>{const _0xd058bf=this['editor']['model']['document']['selection']['getSelectedElement']();_0xd058bf&&_0xd058bf['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0xd058bf);});});}}class H extends _0x41d798{static get['requires'](){return[z,A];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x140bd9){super(_0x140bd9),_0x140bd9['config']['define']('uploadcare.uploader.sourceList',[S['Local'],S['URL']]),_0x157a6b['defineComponents'](_0x157a6b),this['_defineLocale']();}['_defineLocale'](){const _0x513825=this['editor']['config']['get']('uploadcare.locale'),_0x3ec151=this['editor']['locale']['contentLanguage'];_0x513825&&_0x157a6b['defineLocale'](_0x3ec151,_0x513825);}}class J extends _0x371a0c{constructor(_0x17df4c){super(_0x17df4c);const t=_0x17df4c['t'],_0x26d87c=this['bindTemplate'],_0x2ed3b8=new _0x193a62();_0x2ed3b8['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':[_0x2ed3b8,{'text':_0x26d87c['to']('imageUploadProgress',_0x5091a3=>t('Loading\x20image...')+'\x20('+(_0x5091a3||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 _0x371a0c{constructor(_0x4766c3){super(_0x4766c3);const t=_0x4766c3['t'];this['set']('errorType',null);const _0x437761=new _0x40aa4b(_0x4766c3);_0x437761['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x437761['withText']=!0x0,_0x437761['class']='ck-button-action',_0x437761['on']('execute',()=>{this['fire']('retry');}),_0x437761['bind']('isVisible')['to'](this,'errorType',_0x30b210=>'NotFound'!==_0x30b210);const _0x5ea057=new _0x4dd9dc();_0x5ea057['content']=_0x3f8819,_0x5ea057['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x125cde=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':[_0x5ea057,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x125cde['to']('errorType',_0x241da1=>t('NotFound'!==_0x241da1?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x437761]},{'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 _0x371a0c{constructor(_0x3b5585,_0x266a1b){super(_0x3b5585);const _0x54f561=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x266a1b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x54f561['to']('imageSrc')}});}}class X extends K{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5cb3e9,_0x1ac762,_0x18830c){super(_0x5cb3e9),this['_items']=this['createCollection'](),this['_loadingView']=new J(_0x5cb3e9),this['_errorView']=new Z(_0x5cb3e9),this['_editingView']=new Q(_0x5cb3e9,_0x18830c),this['_focusableView']=new _0x371a0c(_0x5cb3e9),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1ac762),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'],_0xcc67f1=>{this['_addUploadcareImageEditorListeners'](_0xcc67f1);});}),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'](_0x50c367,_0x86f7b2){const _0x18da27='uc-cloud-image-editor',_0x2921a5=_0x50c367['querySelector'](_0x18da27);if(_0x2921a5)return _0x86f7b2(_0x2921a5);const _0x469e66=new MutationObserver(_0x430b80=>{const _0x485e69=_0x430b80['filter'](_0xc31684=>_0xc31684['target']===_0x50c367&&_0xc31684['addedNodes']['length']>0x0&&_0xc31684['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x18da27);_0x485e69['length']&&(_0x469e66['disconnect'](),_0x86f7b2(_0x485e69[0x0]['addedNodes'][0x0]));});_0x469e66['observe'](_0x50c367,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x151c89){_0x151c89['addEventListener']('apply',_0x28e957=>{this['fire']('apply',{'imageSrc':_0x28e957['detail']['cdnUrl']});}),_0x151c89['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Y extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2aadfe(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x40acd1,_0x335d85,_0x40642e){super(),this['_editor']=_0x40acd1,this['_dialog']=_0x335d85,this['_imageElement']=_0x40642e,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 _0x1f5783=this['_imageElement'],_0x3472d4=_0x1f5783['getAttribute']('uploadcareImageId'),_0x17b017=_0x1f5783['getAttribute']('src');if(_0x3472d4)await this['_loadImageInfo'](_0x3472d4,_0x17b017);else{if(this['_imageCache']['has'](_0x17b017)){const _0x1fcad6=this['_imageCache']['get'](_0x17b017);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1fcad6['url'],this['imageDimension']=_0x1fcad6['dimension'],this['imageId']=_0x1fcad6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x584828}=this['_editor'],t=_0x584828['t'],_0xd6e35e=new X(_0x584828,this['imageStatus'],this['_attributes']);_0xd6e35e['bind']('status')['to'](this,'imageStatus'),_0xd6e35e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xd6e35e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xd6e35e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xd6e35e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x36b588,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xd6e35e,'position':_0x22f0a7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xd6e35e['focus']();},'onHide':()=>{_0xd6e35e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x28abe8=>!V(_0x28abe8,_0xd6e35e['element'])}});}['_loadImageInfo'](_0x166865,_0x50fcd3){return q['getInfo'](_0x166865,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2a81ff=>{const {width:_0x6c1ee3,height:_0x450b40}=_0x2a81ff['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50fcd3,this['imageDimension']={'width':_0x6c1ee3,'height':_0x450b40},this['imageId']=_0x166865;})['catch'](_0x34a2db=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x34a2db['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d36e1,_0x2de05d){return this['_getImageAsFile'](_0x1d36e1)['then'](_0x57fd6c=>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':_0x2de05d['signal'],'file':_0x57fd6c,'onProgress':_0x39c538=>{_0x39c538&&_0x39c538['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x39c538['value']));}}))['then'](_0x1e0f07=>{const {width:_0x511f5a,height:_0xabe8de}=_0x1e0f07['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1e0f07['cdnUrl'],this['imageDimension']={'width':_0x511f5a,'height':_0xabe8de},this['imageId']=_0x1e0f07['uuid'],this['imageUploadProgress']=null;const _0x4b7be3=_0x1d36e1['getAttribute']('src');this['_imageCache']['set'](_0x4b7be3,{'id':_0x1e0f07['uuid'],'url':_0x1e0f07['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x450eb5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x450eb5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x238f7f,_0x24800d){_0x238f7f['on']('apply',(_0x4b75,_0x596a5a)=>{this['_replaceImage'](_0x24800d,_0x596a5a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x238f7f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x238f7f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x17b551,_0x2d2d04,_0x11fab7){const _0x725ad=this['_editor'],{width:_0x3b40b7,height:_0x2c2ae3}=F(_0x2d2d04,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5861fc,imageSources:_0x37c58c}=D(_0x2d2d04,_0x3b40b7);_0x725ad['model']['change'](_0x16a8e2=>{if('$graveyard'===_0x17b551['root']['rootName']){_0x725ad['execute']('insertImage',{'imageType':_0x17b551['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x17b551['getAttributes']()),'uploadcareImageId':_0x11fab7,'src':_0x5861fc,'sources':_0x37c58c,'width':_0x3b40b7,'height':_0x2c2ae3}});const _0x1f3e2d=_0x17b551['getChildren']();_0x17b551=_0x725ad['model']['document']['selection']['getSelectedElement']();for(const _0x2d4ff0 of _0x1f3e2d)_0x16a8e2['append'](_0x16a8e2['cloneElement'](_0x2d4ff0),_0x17b551);}else _0x16a8e2['setSelection'](_0x17b551,'on'),_0x725ad['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x17b551['getAttributes']()),'uploadcareImageId':_0x11fab7,'src':_0x5861fc,'sources':_0x37c58c,'width':_0x3b40b7,'height':_0x2c2ae3},_0x17b551);_0x16a8e2['setSelection'](_0x17b551,'on');});}async['_getImageAsFile'](_0x1c9801){const _0x5c10b8=_0x2b8df2['window'],_0x2fa408=_0x2b8df2['document']['location']['href'],_0x26cf1f=new _0x5c10b8['URL'](_0x1c9801['getAttribute']('src'),_0x2fa408);if('data:'===_0x26cf1f['protocol']){const _0x4917c4=_0x26cf1f['href']['split'](','),_0x405ec4=_0x4917c4[0x0]['match'](/:(.*?);/)[0x1],_0x42b6c1=_0x405ec4['split']('/')[0x1],_0x23eba5=_0x5c10b8['atob'](_0x4917c4[_0x4917c4['length']-0x1]);let _0x243de0=_0x23eba5['length'];const _0x552c47=new _0x5c10b8['Uint8Array'](_0x243de0);for(;_0x243de0--;)_0x552c47[_0x243de0]=_0x23eba5['charCodeAt'](_0x243de0);return new _0x5c10b8['File']([_0x552c47],'image.'+_0x42b6c1,{'type':_0x405ec4});}const _0x3485e3=_0x26cf1f['href']['split']('/'),_0x410f28=_0x3485e3[_0x3485e3['length']-0x1],_0x1ad64c=_0x410f28['split']('.')[0x1];return _0x5c10b8['fetch'](_0x26cf1f['href'])['then'](_0x4355b2=>_0x4355b2['clone']()['blob']())['then'](_0x2ae728=>new _0x5c10b8['File']([_0x2ae728],_0x410f28,{'type':'image/'+_0x1ad64c}));}}class tt extends _0x2c9eb8{['imageEditController'];static get['requires'](){return[_0x447a09];}['_isEditable'];constructor(_0x52b77f){super(_0x52b77f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x354337){const _0x4df0b5=B(_0x354337);return _0x573c94=>!(!_0x573c94||!_0x573c94['is']('element','imageBlock')&&!_0x573c94['is']('element','imageInline'))&&(!!_0x573c94['hasAttribute']('uploadcareImageId')||!!_0x573c94['hasAttribute']('src')&&_0x4df0b5(_0x573c94['getAttribute']('src')));}(_0x52b77f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x358f79=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x358f79);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x26d425=this['editor']['model']['document']['selection']['getSelectedElement']();_0x26d425&&(_0x26d425['is']('element','imageBlock')||_0x26d425['is']('element','imageInline'))&&(this['imageEditController']=new Y(this['editor'],this['editor']['plugins']['get'](_0x447a09),_0x26d425),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class et extends _0x2c9eb8{['refresh'](){const _0x5493ed=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5493ed&&(_0x5493ed['is']('element','imageBlock')||_0x5493ed['is']('element','imageInline')));}['execute'](_0x3d2f7e){const _0x5cbe9d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x326a27=>{_0x326a27['setAttributes'](_0x3d2f7e,_0x5cbe9d),_0x326a27['removeAttribute']('srcset',_0x5cbe9d),_0x326a27['removeAttribute']('sizes',_0x5cbe9d);});}}class it extends _0x41d798{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[z,_0x73e358,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x508186}=this;_0x508186['commands']['add']('uploadcareImageEdit',new tt(_0x508186)),_0x508186['commands']['add']('uploadcareImageReplace',new et(_0x508186));}}class st extends _0x41d798{['_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 _0x3a0828=this['editor'];_0x3a0828['ui']['componentFactory']['add']('uploadcareImageEdit',_0x35c45b=>{const _0x7a2ee4=_0x3a0828['commands']['get']('uploadcareImageEdit'),_0x12d507=new _0x40aa4b(_0x35c45b),t=_0x35c45b['t'];return _0x12d507['set']({'icon':_0x36b588,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x12d507['bind']('isEnabled')['to'](_0x7a2ee4),_0x12d507['bind']('isOn')['to'](_0x7a2ee4,'isActive'),this['listenTo'](_0x12d507,'execute',()=>{_0x3a0828['execute']('uploadcareImageEdit'),_0x3a0828['editing']['view']['focus']();}),_0x12d507;}),this['_initConfig']();}['_initConfig'](){const _0x5d6130=_0x1f7e0e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5d6130),this['listenTo'](this['editor'],'destroy',()=>{_0x5d6130['remove']();});}}class nt extends _0x41d798{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':_0x366620=>0x1!=_0x366620}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4f4799=>{const {af:{dictionary:_0x37d322,getPluralForm:_0x424b42}}={'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':_0x385d5a=>0x1!=_0x385d5a}};_0x4f4799['af']||={'dictionary':{},'getPluralForm':null},_0x4f4799['af']['dictionary']=Object['assign'](_0x4f4799['af']['dictionary'],_0x37d322),_0x4f4799['af']['getPluralForm']=_0x424b42;})(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':_0x54621e=>0x0==_0x54621e?0x0:0x1==_0x54621e?0x1:0x2==_0x54621e?0x2:_0x54621e%0x64>=0x3&&_0x54621e%0x64<=0xa?0x3:_0x54621e%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x556a73=>{const {ar:{dictionary:_0xf34f89,getPluralForm:_0x3ed2d8}}={'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':_0x39a385=>0x0==_0x39a385?0x0:0x1==_0x39a385?0x1:0x2==_0x39a385?0x2:_0x39a385%0x64>=0x3&&_0x39a385%0x64<=0xa?0x3:_0x39a385%0x64>=0xb?0x4:0x5}};_0x556a73['ar']||={'dictionary':{},'getPluralForm':null},_0x556a73['ar']['dictionary']=Object['assign'](_0x556a73['ar']['dictionary'],_0xf34f89),_0x556a73['ar']['getPluralForm']=_0x3ed2d8;})(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':_0x428663=>0x1!=_0x428663}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5b02dc=>{const {ast:{dictionary:_0x30ee1d,getPluralForm:_0x5d37de}}={'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':_0x118872=>0x1!=_0x118872}};_0x5b02dc['ast']||={'dictionary':{},'getPluralForm':null},_0x5b02dc['ast']['dictionary']=Object['assign'](_0x5b02dc['ast']['dictionary'],_0x30ee1d),_0x5b02dc['ast']['getPluralForm']=_0x5d37de;})(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':_0x30be56=>0x1!=_0x30be56}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3fc722=>{const {az:{dictionary:_0xfc1977,getPluralForm:_0x12c028}}={'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':_0x37411d=>0x1!=_0x37411d}};_0x3fc722['az']||={'dictionary':{},'getPluralForm':null},_0x3fc722['az']['dictionary']=Object['assign'](_0x3fc722['az']['dictionary'],_0xfc1977),_0x3fc722['az']['getPluralForm']=_0x12c028;})(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':_0x33c50b=>_0x33c50b%0xa==0x1&&_0x33c50b%0x64!=0xb?0x0:_0x33c50b%0xa>=0x2&&_0x33c50b%0xa<=0x4&&(_0x33c50b%0x64<0xa||_0x33c50b%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xc48535=>{const {be:{dictionary:_0x454efa,getPluralForm:_0x2a2d74}}={'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':_0x4a6422=>_0x4a6422%0xa==0x1&&_0x4a6422%0x64!=0xb?0x0:_0x4a6422%0xa>=0x2&&_0x4a6422%0xa<=0x4&&(_0x4a6422%0x64<0xa||_0x4a6422%0x64>=0x14)?0x1:0x2}};_0xc48535['be']||={'dictionary':{},'getPluralForm':null},_0xc48535['be']['dictionary']=Object['assign'](_0xc48535['be']['dictionary'],_0x454efa),_0xc48535['be']['getPluralForm']=_0x2a2d74;})(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':_0x5157d6=>0x1!=_0x5157d6}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2c4505=>{const {bg:{dictionary:_0x150902,getPluralForm:_0x201a94}}={'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':_0x5f351a=>0x1!=_0x5f351a}};_0x2c4505['bg']||={'dictionary':{},'getPluralForm':null},_0x2c4505['bg']['dictionary']=Object['assign'](_0x2c4505['bg']['dictionary'],_0x150902),_0x2c4505['bg']['getPluralForm']=_0x201a94;})(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':_0x60e1cb=>0x1!=_0x60e1cb}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x408658=>{const {bn:{dictionary:_0x407c1d,getPluralForm:_0x291029}}={'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':_0x1c4a10=>0x1!=_0x1c4a10}};_0x408658['bn']||={'dictionary':{},'getPluralForm':null},_0x408658['bn']['dictionary']=Object['assign'](_0x408658['bn']['dictionary'],_0x407c1d),_0x408658['bn']['getPluralForm']=_0x291029;})(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':_0x573a5f=>_0x573a5f%0xa==0x1&&_0x573a5f%0x64!=0xb?0x0:_0x573a5f%0xa>=0x2&&_0x573a5f%0xa<=0x4&&(_0x573a5f%0x64<0xa||_0x573a5f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xca0642=>{const {bs:{dictionary:_0xedd9f0,getPluralForm:_0x5372a4}}={'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':_0x5c46f0=>_0x5c46f0%0xa==0x1&&_0x5c46f0%0x64!=0xb?0x0:_0x5c46f0%0xa>=0x2&&_0x5c46f0%0xa<=0x4&&(_0x5c46f0%0x64<0xa||_0x5c46f0%0x64>=0x14)?0x1:0x2}};_0xca0642['bs']||={'dictionary':{},'getPluralForm':null},_0xca0642['bs']['dictionary']=Object['assign'](_0xca0642['bs']['dictionary'],_0xedd9f0),_0xca0642['bs']['getPluralForm']=_0x5372a4;})(window['CKEDITOR_TRANSLATIONS']||={});
|