@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251215.0 → 0.0.0-nightly-next-20251215.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x276e86,Command as _0x4829b3}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4afe5c,IconGooglePhotos as _0x307cc6,IconGoogleDrive as _0x2a773c,IconFacebook as _0x49b029,IconDropbox as _0x43c6f1,IconUploadcareLink as _0x3bea44,IconUploadcareImageUpload as _0x1e2f4e,IconError as _0x14565b,IconUploadcareImageEdit as _0x1baeca}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x54f1bd,MenuBarMenuListItemButtonView as _0x2a4400,View as _0x248bc7,FocusCycler as _0x4c41ec,Dialog as _0x33aabb,DialogViewPosition as _0x4c4f22,SpinnerView as _0x341639,IconView as _0x4cac59,Notification as _0x44b878}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x243806,DomEmitterMixin as _0x56864e,global as _0xfb9838,getAncestors as _0x4ab2c8,ObservableMixin as _0x282ffb,uid as _0x5648e2,createElement as _0x4a2901}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3fb03f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x54c122,info as _0x474471}from'@uploadcare/upload-client';import*as _0xcc5fb6 from'@uploadcare/file-uploader';var i=function(_0x511d47){return _0x511d47['Local']='local',_0x511d47['URL']='url',_0x511d47['Dropbox']='dropbox',_0x511d47['GDrive']='gdrive',_0x511d47['Facebook']='facebook',_0x511d47['GPhotos']='gphotos',_0x511d47['OneDrive']='onedrive',_0x511d47;}({});function _(_0x25e725,_0x67b989,_0x35b1b6){const t=_0x25e725['t'],_0x3fe29a=_0x25e725['t'];switch(_0x67b989){case i['Local']:return{'text':_0x3fe29a('Insert'===_0x35b1b6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3fe29a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x35b1b6?_0x3fe29a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3fe29a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x35b1b6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x35b1b6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x35b1b6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x35b1b6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x35b1b6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x67b989;}}class e extends _0x276e86{['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 _0x4742a7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3f4f11;for(const _0x4eba0f in _0x4742a7){const _0x5c5f3f=_0x4eba0f,_0x3cae34=_0x4742a7[_0x5c5f3f];if('uploadcareLicenseKeyValid'==_0x3cae34||'uploadcareLicenseKeyInvalid'==_0x3cae34||'uploadcareLicenseKeyExpired'==_0x3cae34||'uploadcareLicenseKeyDomainLimit'==_0x3cae34||'uploadcareLicenseKeyNotAllowed'==_0x3cae34||'uploadcareLicenseKeyEvaluationLimit'==_0x3cae34||'uploadcareLicenseKeyTrialLimit'==_0x3cae34||'uploadcareLicenseKeyUsageLimit'==_0x3cae34){delete _0x4742a7[_0x5c5f3f],_0x3f4f11=_0x3cae34,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3f4f11&&_0x4742a7['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3f4f11&&_0x4742a7['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3f4f11&&_0x4742a7['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3f4f11&&_0x4742a7['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3f4f11&&_0x4742a7['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3f4f11&&_0x4742a7['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3f4f11&&_0x4742a7['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x21b4a6}=this,_0x23d6f9=_0x21b4a6['commands']['get']('uploadcare');if(!_0x23d6f9)return;const _0x53677a=this['_normalizeConfigSourceList'](_0x21b4a6['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2a816,_0x5e0728)=>{const _0x2aafb6=this['_getIntegrationKey'](_0x5e0728['type']);return _0x2a816[_0x2aafb6]||(_0x2a816[_0x2aafb6]=[]),_0x2a816[_0x2aafb6]['push'](_0x5e0728),_0x2a816;},{});_0x21b4a6['plugins']['has']('ImageInsertUI')&&_0x21b4a6['commands']['get']('uploadcare')&&Object['entries'](_0x53677a)['forEach'](([_0x57cfc8,_0x7c9b51])=>{_0x21b4a6['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x57cfc8,'observable':()=>_0x23d6f9,'buttonViewCreator':()=>this['_createToolbarButton'](_0x7c9b51),'formViewCreator':()=>this['_createDropdownButtons'](_0x7c9b51),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x7c9b51),'override':'assetManager'!==_0x57cfc8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3ed56f){const {locale:_0x442b62}=this['editor'];return _0x3ed56f['map'](_0x598400=>{const _0x222bed=_(_0x442b62,_0x598400,'Insert');switch(_0x598400){case i['Local']:return{'icon':_0x1e2f4e,'type':i['Local'],..._0x222bed};case i['URL']:return{'icon':_0x3bea44,'type':i['URL'],..._0x222bed};case i['Dropbox']:return{'icon':_0x43c6f1,'type':i['Dropbox'],..._0x222bed};case i['Facebook']:return{'icon':_0x49b029,'type':i['Facebook'],..._0x222bed};case i['GDrive']:return{'icon':_0x2a773c,'type':i['GDrive'],..._0x222bed};case i['GPhotos']:return{'icon':_0x307cc6,'type':i['GPhotos'],..._0x222bed};case i['OneDrive']:return{'icon':_0x4afe5c,'type':i['OneDrive'],..._0x222bed};}});}['_getIntegrationKey'](_0x4a9e21){switch(_0x4a9e21){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2fc893,_0x5161fe){const _0x49b036=this['editor'],_0x1df839=new _0x2fc893(_0x49b036['locale']),_0xcec78d=_0x49b036['commands']['get']('uploadcare');return _0x1df839['bind']('isEnabled')['to'](_0xcec78d),_0x1df839['on']('execute',()=>{_0xcec78d['execute'](_0x5161fe);}),_0x1df839;}['_createToolbarButton'](_0xf8d7da){const {locale:_0x458663}=this['editor'],_0x1fd32e=this['editor']['plugins']['get']('ImageInsertUI'),_0x568c19=_0xf8d7da[0x0],_0x38ae2c=this['_createButton'](_0x54f1bd,_0x568c19['type']);return _0x38ae2c['icon']=_0x568c19['icon'],_0x38ae2c['bind']('label')['to'](_0x1fd32e,'isImageSelected',_0x2f9cb8=>_(_0x458663,_0x568c19['type'],_0x2f9cb8?'Replace':'Insert')['text']),_0x38ae2c['tooltip']=!0x0,_0x38ae2c;}['_createDropdownButtons'](_0x1eaabb){const {locale:_0x544ff3}=this['editor'],_0x19571f=this['editor']['plugins']['get']('ImageInsertUI');return _0x1eaabb['map'](_0x30512b=>{const _0x2135e0=this['_createButton'](_0x54f1bd,_0x30512b['type']);return _0x2135e0['withText']=!0x0,_0x2135e0['icon']=_0x30512b['icon'],_0x2135e0['bind']('label')['to'](_0x19571f,'isImageSelected',_0x1bea62=>_(_0x544ff3,_0x30512b['type'],_0x1bea62?'Replace':'Insert')['text']),_0x2135e0;});}['_createMenuBarButtons'](_0x419862){return _0x419862['map'](_0x1f5c1d=>{const _0x9e107c=this['_createButton'](_0x2a4400,_0x1f5c1d['type']);return _0x9e107c['icon']=_0x1f5c1d['icon'],_0x9e107c['label']=_0x1f5c1d['shortText'],_0x9e107c;});}}class W extends _0x248bc7{['focusTracker'];['focusCycler'];constructor(_0x37d4ef){super(_0x37d4ef),this['focusTracker']=new _0x243806(),this['focusCycler']=new _0x4c41ec({'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 V extends W{constructor(_0x3c71ee,_0x431630){super(_0x3c71ee),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-'+_0x431630}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5804eb,_0x3e68fc){const _0x35919b=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1c473c=>_0x1c473c<=_0x3e68fc)['map'](_0x42e109=>_0x5804eb['replace'](/\/$/,'')+'/-/resize/'+_0x42e109+'x/\x20'+_0x42e109+'w');return{'imageFallbackUrl':_0x5804eb,'imageSources':[{'srcset':_0x35919b['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3e68fc+'px)\x20100vw,\x20'+_0x3e68fc+'px','type':'image/webp'}]};}function J(_0x205124,_0x26fdad,_0x37d7cd){const _0x22a8dc=_0x205124['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x22a8dc?parseInt(_0x22a8dc[0x1],0xa):_0x26fdad,'height':_0x22a8dc?parseInt(_0x22a8dc[0x2],0xa):_0x37d7cd};}function p(_0x273a89,_0x35602a){const _0x3701f1=new(_0x56864e())(),_0x411c96=_0x273a89['plugins']['get']('ImageUtils'),_0x538933=_0x273a89['editing']['mapper']['toViewElement'](_0x35602a),_0x226714=_0x411c96['findViewImgElement'](_0x538933),_0x845f3f=_0x273a89['editing']['view']['domConverter']['viewToDom'](_0x226714),_0x1d8b37=_0x35602a['getAttribute']('width'),_0x2ec2ef=_0x35602a['getAttribute']('height'),_0x421001='image-processing';_0x273a89['editing']['view']['change'](_0x34f84e=>{_0x34f84e['addClass'](_0x421001,_0x538933),_0x34f84e['setStyle']('aspect-ratio',_0x1d8b37+'/'+_0x2ec2ef,_0x226714);}),_0x3701f1['listenTo'](_0x845f3f,'load',()=>{_0x3701f1['stopListening'](_0x845f3f,'load'),_0x273a89['editing']['view']['change'](_0x2ba29e=>{_0x2ba29e['removeClass'](_0x421001,_0x538933),_0x2ba29e['removeStyle']('aspect-ratio',_0x226714);});});}function z(_0x405092){if(Array['isArray'](_0x405092)){const _0x311a41=_0x405092['map'](z);return _0x2e0e4d=>_0x311a41['some'](_0x2ed3d0=>_0x2ed3d0(_0x2e0e4d));}if('origin'==_0x405092){const _0x2857ed=_0xfb9838['window']['location']['origin'];return _0x265feb=>new URL(_0x265feb,_0xfb9838['document']['baseURI'])['origin']==_0x2857ed;}return'function'==typeof _0x405092?_0x405092:_0x405092 instanceof RegExp?_0x1f7bde=>!(!_0x1f7bde['match'](_0x405092)&&!_0x1f7bde['replace'](/^https?:\/\//,'')['match'](_0x405092)):()=>!0x1;}function Q(_0x8810d,_0x537503){return _0x4ab2c8(_0x8810d['target'])['includes'](_0x537503);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x282ffb(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5accf2,_0x388fdc,_0x4ebd78){super(),this['_editor']=_0x5accf2,this['_editing']=_0x388fdc,this['_dialog']=_0x5accf2['plugins']['get'](_0x33aabb),this['_api']=_0x388fdc['ctxElement']['getAPI'](),this['_type']=_0x4ebd78,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:_0x2fe73a,model:_0x453147}=this['_editor'],_0x198d1a=_0x453147['document']['selection']['getSelectedElement'](),_0x56321d=_0x198d1a&&(_0x198d1a['is']('element','imageBlock')||_0x198d1a['is']('element','imageInline'));this['_formView']=new V(_0x2fe73a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1e2f4e,'title':_(_0x2fe73a,this['_type'],_0x56321d?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4c4f22['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f05ba=>!Q(_0x3f05ba,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xad0fa2}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4ce21b=>{const _0x2136ec=_0xad0fa2['length'];for(const _0x24a600 of _0xad0fa2){const _0x1f518d=_0x24a600===_0xad0fa2[_0x2136ec-0x1],{cdnUrl:_0x1d0871,fileInfo:_0x336aed}=_0x24a600;if(!_0x1d0871||!_0x336aed)continue;const {width:_0x4757bf,height:_0x3cc9e4}=_0x336aed['imageInfo'],_0x36bcdb=J(_0x1d0871,_0x4757bf,_0x3cc9e4),_0x4bd6a9=C(_0x1d0871,_0x36bcdb['width']),_0x1320a2={'id':_0x336aed['uuid'],'type':'image','attributes':{'imageDimension':_0x36bcdb,..._0x4bd6a9}};this['_insertAsset'](_0x1320a2,_0x1f518d,_0x4ce21b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x160233=>{'idle'===_0x160233['detail']['status']&&!_0x160233['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2eec63,_0x11d69e,_0x328d86){const _0xfa9bc1=this['_editor']['model']['document']['selection'],_0xbc59e8=_0xfa9bc1['getSelectedElement'](),_0x3fa643=!(!_0xbc59e8||!_0xbc59e8['is']('element','imageInline'));_0x328d86['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2eec63,_0x3fa643),_0x11d69e||_0x328d86['setSelection'](_0xfa9bc1['getLastPosition']());}['_insertImage'](_0x50469f,_0x12f5e4){const _0x16a9f5=this['_editor'],{imageDimension:_0x46abb6,imageFallbackUrl:_0x2cadff,imageSources:_0x6cffad}=_0x50469f['attributes'];_0x16a9f5['execute']('insertImage',{'imageType':_0x12f5e4?'imageInline':null,'source':{'uploadcareImageId':_0x50469f['id'],'src':_0x2cadff,'sources':_0x6cffad,..._0x46abb6}});}}class w extends _0x4829b3{['_editing'];['_controller']=null;static get['requires'](){return[_0x33aabb,o];}constructor(_0xdde27a){super(_0xdde27a),this['_editing']=_0xdde27a['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1b51d2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1b51d2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x2beb71,..._0x3b0357}){return _0x54c122(_0x2beb71,_0x3b0357);}static['getInfo'](_0x3feac3,_0x14e1e0){return _0x474471(_0x3feac3,_0x14e1e0);}}class f extends _0x276e86{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3fb03f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x41e7e6=this['editor'];if(!!!_0x41e7e6['config']['get']('uploadcare'))return;_0x41e7e6['plugins']['get'](_0x3fb03f)['createUploadAdapter']=_0x28d793=>new k(_0x28d793,_0x41e7e6),_0x41e7e6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5c498a,{imageElement:_0x5d0866,data:_0x4d76aa})=>{_0x41e7e6['model']['change'](_0x27f00a=>{_0x27f00a['setAttribute']('uploadcareImageId',_0x4d76aa['uploadcareImageId'],_0x5d0866);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x657671,_0x399df5){this['loader']=_0x657671,this['editor']=_0x399df5,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5e6ae0=await this['loader']['file'];return j['upload']({'file':_0x5e6ae0,'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':_0x4b0c3d=>{_0x4b0c3d&&_0x4b0c3d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4b0c3d['value']);}})['then'](async _0x4684b5=>{const {imageFallbackUrl:_0xd48313,imageSources:_0x118d18}=C(_0x4684b5['cdnUrl'],_0x4684b5['imageInfo']['width']);return{'uploadcareImageId':_0x4684b5['uuid'],'default':_0xd48313,'sources':_0x118d18};})['catch'](()=>{const _0x5357d0=t('Cannot\x20upload\x20file:')+('\x20'+_0x5e6ae0['name']+'.');return Promise['reject'](_0x5357d0);});}['abort'](){this['controller']['abort']();}}class o extends _0x276e86{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x33aabb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1b55c6){super(_0x1b55c6),this['ucContextId']=_0x5648e2();}['init'](){const _0x269567=this['editor'];_0x269567['commands']['add']('uploadcare',new w(_0x269567));}['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 _0x3285a7=_0xfb9838['document']['querySelector']('input[uploadcare-file-input]');_0x3285a7&&_0x3285a7['remove']();}),async function(_0x241ad2){const _0x19442a=_0x18b150([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]),_0x1ed59d=0x535f8c3a,_0x5d1c58=0x5358f7c2^_0x1ed59d,_0x5bce80=window[_0x18b150([0x44,0x61,0x74,0x65])][_0x18b150([0x6e,0x6f,0x77])](),_0x16a58c=_0x241ad2[_0x18b150([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x46feb4=new window[(_0x18b150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4abbc1=>{_0x16a58c[_0x18b150([0x6f,0x6e,0x63,0x65])](_0x18b150([0x72,0x65,0x61,0x64,0x79]),_0x4abbc1);}),_0x1308de={[_0x18b150([0x6b,0x74,0x79])]:_0x18b150([0x45,0x43]),[_0x18b150([0x75,0x73,0x65])]:_0x18b150([0x73,0x69,0x67]),[_0x18b150([0x63,0x72,0x76])]:_0x18b150([0x50,0x2d,0x32,0x35,0x36]),[_0x18b150([0x78])]:_0x18b150([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]),[_0x18b150([0x79])]:_0x18b150([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]),[_0x18b150([0x61,0x6c,0x67])]:_0x18b150([0x45,0x53,0x32,0x35,0x36])},_0x2011a5=_0x16a58c[_0x18b150([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x18b150([0x67,0x65,0x74])](_0x18b150([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xd294dc(){let _0x1cd7b4,_0x2afec7=null,_0x2ea3b9=null;try{if(_0x2011a5==_0x18b150([0x47,0x50,0x4c]))return _0x18b150([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cd7b4=_0x26e9a4(),!_0x1cd7b4)return _0x18b150([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cd7b4[_0x18b150([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ea3b9=_0x905c3a(_0x1cd7b4[_0x18b150([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cd7b4[_0x18b150([0x6a,0x74,0x69])])),await _0x39845c()?_0x1306dc()?_0x145b57()?_0x18b150([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x59973e()?(_0x1cd7b4[_0x18b150([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18b150([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2afec7=_0xb9a3c(_0x18b150([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cd7b4[_0x18b150([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18b150([0x74,0x72,0x69,0x61,0x6c])&&(_0x2afec7=_0xb9a3c(_0x18b150([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x40baf5()):_0x18b150([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x18b150([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x18b150([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x18b150([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x145b57(){const _0x2ea559=[_0x18b150([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x18b150([0x74,0x72,0x69,0x61,0x6c])][_0x18b150([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cd7b4[_0x18b150([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bce80/0x3e8:0xe10*_0x5d1c58;return _0x1cd7b4[_0x18b150([0x65,0x78,0x70])]<_0x2ea559;}function _0x1306dc(){const _0xd7fc4c=_0x1cd7b4[_0x18b150([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xd7fc4c&&(!!_0xd7fc4c[_0x18b150([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18b150([0x2a]))||!!_0xd7fc4c[_0x18b150([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18b150([0x55,0x50,0x4c,0x43])));}function _0x59973e(){const _0x3c1be8=_0x1cd7b4[_0x18b150([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c1be8||0x0==_0x3c1be8[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a4efc}=new URL(window[_0x18b150([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c1be8[_0x18b150([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a4efc))return!0x0;const _0xa5cd5=_0x4a4efc[_0x18b150([0x73,0x70,0x6c,0x69,0x74])](_0x18b150([0x2e]));return _0x3c1be8[_0x18b150([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x393325=>_0x393325[_0x18b150([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18b150([0x2a])))[_0x18b150([0x6d,0x61,0x70])](_0x4ba611=>_0x4ba611[_0x18b150([0x73,0x70,0x6c,0x69,0x74])](_0x18b150([0x2e])))[_0x18b150([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x22d86a=>_0x22d86a[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa5cd5[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x18b150([0x6d,0x61,0x70])](_0x26e005=>Array(_0xa5cd5[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x26e005[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x18b150([0x66,0x69,0x6c,0x6c])](_0x26e005[0x0]===_0x18b150([0x2a])?_0x18b150([0x2a]):'')[_0x18b150([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x26e005))[_0x18b150([0x73,0x6f,0x6d,0x65])](_0x427a19=>_0xa5cd5[_0x18b150([0x65,0x76,0x65,0x72,0x79])]((_0x5e216b,_0x40df74)=>_0x427a19[_0x40df74]===_0x5e216b||_0x427a19[_0x40df74]===_0x18b150([0x2a])));}function _0x40baf5(){return _0x2afec7&&_0x2ea3b9?new window[(_0x18b150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d509a,_0x5237c9)=>{_0x2afec7[_0x18b150([0x74,0x68,0x65,0x6e])](_0x2d509a,_0x5237c9),_0x2ea3b9[_0x18b150([0x74,0x68,0x65,0x6e])](_0x36d85b=>{_0x36d85b!=_0x18b150([0x56,0x61,0x6c,0x69,0x64])&&_0x2d509a(_0x36d85b);},_0x5237c9);}):_0x2afec7||_0x2ea3b9||_0x18b150([0x56,0x61,0x6c,0x69,0x64]);}}function _0x905c3a(_0x2217c8,_0x5347a1){return new window[(_0x18b150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x573640=>{if(_0x4690cf())return _0x573640(_0x18b150([0x56,0x61,0x6c,0x69,0x64]));_0x500fd4(),_0x16a58c[_0x18b150([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x18b150([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ee629=!0x1;const _0x461b91=_0x5648e2();function _0x468c59(_0x353621){return!!_0x353621&&(typeof _0x353621===_0x18b150([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x353621===_0x18b150([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x353621[_0x18b150([0x74,0x68,0x65,0x6e])]===_0x18b150([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x353621[_0x18b150([0x63,0x61,0x74,0x63,0x68])]===_0x18b150([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f12be(_0x178853){_0x470632(_0x178853)[_0x18b150([0x74,0x68,0x65,0x6e])](_0x2bdff4=>{if(!_0x2bdff4||_0x2bdff4[_0x18b150([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x18b150([0x6f,0x6b]))return _0x18b150([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c1c52(_0x455ac6(_0x461b91+_0x5347a1))!=_0x2bdff4[_0x18b150([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x18b150([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x18b150([0x56,0x61,0x6c,0x69,0x64]);})[_0x18b150([0x74,0x68,0x65,0x6e])](_0x31c5d7=>(_0x6b59a9(),_0x31c5d7),()=>{const _0x1e92dc=_0x5be787();return null==_0x1e92dc?(_0x6b59a9(),_0x18b150([0x56,0x61,0x6c,0x69,0x64])):_0x18b150(_0x5bce80-_0x1e92dc>(0x7753083a^_0x1ed59d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x18b150([0x74,0x68,0x65,0x6e])](_0x573640)[_0x18b150([0x63,0x61,0x74,0x63,0x68])](()=>{_0x573640(_0x18b150([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d25f9=0x536962ba^_0x1ed59d;function _0x6b59a9(){const _0xf65fd=_0x18b150([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c1c52(_0x455ac6(_0x2217c8)),_0x3315cb=_0x16c48c(_0x2c1c52(window[_0x18b150([0x4d,0x61,0x74,0x68])][_0x18b150([0x63,0x65,0x69,0x6c])](_0x5bce80/_0x5d25f9)));window[_0x18b150([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18b150([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf65fd,_0x3315cb);}function _0x5be787(){const _0x2d7f7b=_0x18b150([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c1c52(_0x455ac6(_0x2217c8)),_0x32af45=window[_0x18b150([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18b150([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d7f7b);return _0x32af45?window[_0x18b150([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16c48c(_0x32af45),0x10)*_0x5d25f9:null;}function _0x470632(_0x25363b){return new window[(_0x18b150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x498b95,_0xc0eadc)=>{_0x25363b[_0x18b150([0x74,0x68,0x65,0x6e])](_0x498b95,_0xc0eadc),window[_0x18b150([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc0eadc,0x535e58fa^_0x1ed59d);});}}_0x16a58c[_0x18b150([0x6f,0x6e])](_0x18b150([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ed61e,_0x13237e)=>{if(_0x13237e[0x0]!=_0x2217c8)return _0x573640(_0x18b150([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13237e[0x1]={..._0x13237e[0x1],[_0x18b150([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x461b91};},{[_0x18b150([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18b150([0x68,0x69,0x67,0x68])}),_0x16a58c[_0x18b150([0x6f,0x6e])](_0x18b150([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3fc74e=>{_0x468c59(_0x3fc74e[_0x18b150([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ee629=!0x0,_0x3f12be(_0x3fc74e[_0x18b150([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x18b150([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18b150([0x6c,0x6f,0x77])}),_0x46feb4[_0x18b150([0x74,0x68,0x65,0x6e])](()=>{_0x4ee629||_0x573640(_0x18b150([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4690cf(){return _0x16a58c[_0x18b150([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18b150([0x76,0x69,0x65,0x77])][_0x18b150([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x18b150([0x61,0x75,0x74,0x6f]);}function _0x500fd4(){_0x16a58c[_0x18b150([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18b150([0x76,0x69,0x65,0x77])][_0x18b150([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18b150([0x61,0x75,0x74,0x6f]);}}function _0xb9a3c(_0x52fef6){const _0x17b28a=[new window[(_0x18b150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42b6df=>setTimeout(_0x42b6df,0x5356b2f6^_0x1ed59d)),_0x46feb4[_0x18b150([0x74,0x68,0x65,0x6e])](()=>new window[(_0x18b150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e94f6=>{let _0x300fdb=0x0;_0x16a58c[_0x18b150([0x6d,0x6f,0x64,0x65,0x6c])][_0x18b150([0x6f,0x6e])](_0x18b150([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe8fc34,_0x167c2b)=>{_0x167c2b[0x0][_0x18b150([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x300fdb++,_0x300fdb==(0x535f8dc2^_0x1ed59d)&&(_0x5e94f6(),_0xe8fc34[_0x18b150([0x6f,0x66,0x66])]());});}))];return window[_0x18b150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18b150([0x72,0x61,0x63,0x65])](_0x17b28a)[_0x18b150([0x74,0x68,0x65,0x6e])](()=>_0x52fef6);}async function _0x3096c7(){await _0x46feb4,_0x16a58c[_0x18b150([0x6d,0x6f,0x64,0x65,0x6c])][_0x18b150([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49768d,_0x16a58c[_0x18b150([0x6d,0x6f,0x64,0x65,0x6c])][_0x18b150([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49768d,_0x16a58c[_0x18b150([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x18b150([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d9d03(_0x5454f2){const _0x4b46f=_0x38ae13();_0x16a58c[_0x4b46f]=_0x18b150([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5454f2,_0x5454f2!=_0x18b150([0x56,0x61,0x6c,0x69,0x64])&&_0x3096c7();}function _0x38ae13(){const _0x52223d=window[_0x18b150([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x18b150([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x18b150([0x6e,0x6f,0x77])]())[_0x18b150([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x18b150([0x2e]),'');let _0x2ca2b7=_0x18b150([0x68]);for(let _0x1f479c=0x0;_0x1f479c<_0x52223d[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f479c+=0x2){let _0x1ef97e=window[_0x18b150([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52223d[_0x18b150([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f479c,_0x1f479c+0x2));_0x1ef97e>=_0x19442a[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ef97e-=_0x19442a[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ca2b7+=_0x19442a[_0x1ef97e];}return _0x2ca2b7;}function _0x26e9a4(){const _0xbf1b0c=_0x2011a5[_0x18b150([0x73,0x70,0x6c,0x69,0x74])](_0x18b150([0x2e]));if(0x3!=_0xbf1b0c[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d7961(_0xbf1b0c[0x1]);function _0x1d7961(_0x23496e){const _0x5a75d4=_0x2d3f81(_0x23496e);return _0x5a75d4&&_0x3bc369()?_0x5a75d4:null;function _0x3bc369(){const _0x1a6296=_0x5a75d4[_0x18b150([0x6a,0x74,0x69])],_0x50004e=window[_0x18b150([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a6296[_0x18b150([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a6296[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2fdc95={..._0x5a75d4,[_0x18b150([0x6a,0x74,0x69])]:_0x1a6296[_0x18b150([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a6296[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2fdc95[_0x18b150([0x76,0x63])],_0x455ac6(_0x2fdc95)==_0x50004e;}}}async function _0x39845c(){let _0x364d2d=!0x0;try{const _0x982032=_0x2011a5[_0x18b150([0x73,0x70,0x6c,0x69,0x74])](_0x18b150([0x2e])),[_0x5e0114,_0x16519f,_0x20da4a]=_0x982032;return _0x5bf168(_0x5e0114),await _0x26be5d(_0x5e0114,_0x16519f,_0x20da4a),_0x364d2d;}catch{return!0x1;}function _0x5bf168(_0x5e8df9){const _0x13e9d7=_0x2d3f81(_0x5e8df9);_0x13e9d7&&_0x13e9d7[_0x18b150([0x61,0x6c,0x67])]==_0x18b150([0x45,0x53,0x32,0x35,0x36])||(_0x364d2d=!0x1);}async function _0x26be5d(_0x2621c2,_0x304275,_0x156431){const _0x16a4bc=window[_0x18b150([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x18b150([0x66,0x72,0x6f,0x6d])](_0x2b6888(_0x156431),_0x512e2d=>_0x512e2d[_0x18b150([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x24f339=new window[(_0x18b150([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x18b150([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2621c2+_0x18b150([0x2e])+_0x304275),_0x542b17=window[_0x18b150([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x18b150([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x542b17)return;const _0x4cb61a=await _0x542b17[_0x18b150([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x18b150([0x6a,0x77,0x6b]),_0x1308de,{[_0x18b150([0x6e,0x61,0x6d,0x65])]:_0x18b150([0x45,0x43,0x44,0x53,0x41]),[_0x18b150([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x18b150([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x18b150([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x542b17[_0x18b150([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x18b150([0x6e,0x61,0x6d,0x65])]:_0x18b150([0x45,0x43,0x44,0x53,0x41]),[_0x18b150([0x68,0x61,0x73,0x68])]:{[_0x18b150([0x6e,0x61,0x6d,0x65])]:_0x18b150([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4cb61a,_0x16a4bc,_0x24f339)||(_0x364d2d=!0x1);}}function _0x2d3f81(_0x5079b7){return _0x5079b7[_0x18b150([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x18b150([0x65,0x79]))?JSON[_0x18b150([0x70,0x61,0x72,0x73,0x65])](_0x2b6888(_0x5079b7)):null;}function _0x2b6888(_0x56204a){return window[_0x18b150([0x61,0x74,0x6f,0x62])](_0x56204a[_0x18b150([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x18b150([0x2b]))[_0x18b150([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x18b150([0x2f])));}function _0x455ac6(_0x509d16){let _0x45d59b=0x1505;function _0x4d969b(_0x10d049){for(let _0x23936a=0x0;_0x23936a<_0x10d049[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23936a++){const _0x253377=_0x10d049[_0x18b150([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23936a);_0x45d59b=(_0x45d59b<<0x5)+_0x45d59b+_0x253377,_0x45d59b&=_0x45d59b;}}function _0x496326(_0x887fb0){Array[_0x18b150([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x887fb0)?_0x887fb0[_0x18b150([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x496326):_0x887fb0&&typeof _0x887fb0==_0x18b150([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x18b150([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x887fb0)[_0x18b150([0x73,0x6f,0x72,0x74])]()[_0x18b150([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40876e,_0x1cf36c])=>{_0x4d969b(_0x40876e),_0x496326(_0x1cf36c);}):_0x4d969b(window[_0x18b150([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x887fb0));}return _0x496326(_0x509d16),_0x45d59b>>>0x0;}function _0x2c1c52(_0x5d04eb){return _0x5d04eb[_0x18b150([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x18b150([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x18b150([0x30]));}function _0x16c48c(_0x1668c8){return _0x1668c8[_0x18b150([0x73,0x70,0x6c,0x69,0x74])]('')[_0x18b150([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x18b150([0x6a,0x6f,0x69,0x6e])]('');}function _0x49768d(){}function _0x18b150(_0x3d395d){return _0x3d395d['map'](_0x5332f0=>String['fromCharCode'](_0x5332f0))['join']('');}_0x3d9d03(await _0xd294dc());}(this);}['_initSchema'](){const _0x551ab1=this['editor']['model']['schema'];_0x551ab1['isRegistered']('imageBlock')&&_0x551ab1['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x551ab1['isRegistered']('imageInline')&&_0x551ab1['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x416ab6=this['editor'];_0x416ab6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x416ab6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x24e172=>_0x24e172['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x9d2cb0=_0x416ab6['commands']['get']('replaceImageSource');_0x9d2cb0&&this['listenTo'](_0x9d2cb0,'cleanupImage',(_0x3f643f,[_0x4ded03,_0x102bdc])=>{_0x4ded03['removeAttribute']('uploadcareImageId',_0x102bdc);});}['_initConfig'](){const _0x5d1ace=this['editor']['config']['get']('uploadcare.uploader')||{},_0x421e23=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4a2901(_0xfb9838['document'],'uc-config',{..._0x5d1ace,'pubkey':_0x421e23,'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']=_0x26f085=>{if('closeMax'==_0x26f085)return'#uc-icon-arrow-down';},_0xfb9838['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4a2901(_0xfb9838['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xfb9838['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1a915c=this['editor']['commands']['get']('insertImage');_0x1a915c&&this['listenTo'](_0x1a915c,'execute',()=>{const _0x4e60e6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4e60e6&&_0x4e60e6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4e60e6);});});const _0x21f14f=this['editor']['commands']['get']('uploadcareImageReplace');_0x21f14f&&this['listenTo'](_0x21f14f,'execute',()=>{const _0x486c07=this['editor']['model']['document']['selection']['getSelectedElement']();_0x486c07&&_0x486c07['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x486c07);});});}}class tt extends _0x276e86{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52a266){super(_0x52a266),_0x52a266['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xcc5fb6['defineComponents'](_0xcc5fb6),this['_defineLocale']();}['_defineLocale'](){const _0x28613d=this['editor']['config']['get']('uploadcare.locale'),_0x17a5fe=this['editor']['locale']['contentLanguage'];_0x28613d&&_0xcc5fb6['defineLocale'](_0x17a5fe,_0x28613d);}}class ii extends _0x248bc7{constructor(_0x4cae34){super(_0x4cae34);const t=_0x4cae34['t'],_0x49bb32=this['bindTemplate'],_0x51dac8=new _0x341639();_0x51dac8['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':[_0x51dac8,{'text':_0x49bb32['to']('imageUploadProgress',_0x2b1273=>t('Loading\x20image...')+'\x20('+(_0x2b1273||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x248bc7{constructor(_0x25c5e2){super(_0x25c5e2);const t=_0x25c5e2['t'];this['set']('errorType',null);const _0x17f3f0=new _0x54f1bd(_0x25c5e2);_0x17f3f0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x17f3f0['withText']=!0x0,_0x17f3f0['class']='ck-button-action',_0x17f3f0['on']('execute',()=>{this['fire']('retry');}),_0x17f3f0['bind']('isVisible')['to'](this,'errorType',_0x55e70c=>'NotFound'!==_0x55e70c);const _0x343a3b=new _0x4cac59();_0x343a3b['content']=_0x14565b,_0x343a3b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x42467b=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':[_0x343a3b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x42467b['to']('errorType',_0x4c2d24=>t('NotFound'!==_0x4c2d24?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x17f3f0]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x248bc7{constructor(_0x52c29a,_0x36a04d){super(_0x52c29a);const _0x5d5b40=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x36a04d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5d5b40['to']('imageSrc')}});}}class X extends W{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x19f6d4,_0x110a03,_0x4624a4){super(_0x19f6d4),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x19f6d4),this['_errorView']=new ti(_0x19f6d4),this['_editingView']=new ei(_0x19f6d4,_0x4624a4),this['_focusableView']=new _0x248bc7(_0x19f6d4),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x110a03),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'],_0x466c0b=>{this['_addUploadcareImageEditorListeners'](_0x466c0b);});}),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'](_0x33cde5,_0x303947){const _0x5e3d0c='uc-cloud-image-editor',_0x50f34e=_0x33cde5['querySelector'](_0x5e3d0c);if(_0x50f34e)return _0x303947(_0x50f34e);const _0x5449e9=new MutationObserver(_0x2a0645=>{const _0x352dc6=_0x2a0645['filter'](_0x2ed85b=>_0x2ed85b['target']===_0x33cde5&&_0x2ed85b['addedNodes']['length']>0x0&&_0x2ed85b['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5e3d0c);_0x352dc6['length']&&(_0x5449e9['disconnect'](),_0x303947(_0x352dc6[0x0]['addedNodes'][0x0]));});_0x5449e9['observe'](_0x33cde5,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1b0de1){_0x1b0de1['addEventListener']('apply',_0x1ccb3b=>{this['fire']('apply',{'imageSrc':_0x1ccb3b['detail']['cdnUrl']});}),_0x1b0de1['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x282ffb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1b17d2,_0x408ada,_0x3ea4cc){super(),this['_editor']=_0x1b17d2,this['_dialog']=_0x408ada,this['_imageElement']=_0x3ea4cc,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 _0x3697e7=this['_imageElement'],_0x5978c4=_0x3697e7['getAttribute']('uploadcareImageId'),_0x4f5b1a=_0x3697e7['getAttribute']('src');if(_0x5978c4)await this['_loadImageInfo'](_0x5978c4,_0x4f5b1a);else{if(this['_imageCache']['has'](_0x4f5b1a)){const _0x3a080f=this['_imageCache']['get'](_0x4f5b1a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a080f['url'],this['imageDimension']=_0x3a080f['dimension'],this['imageId']=_0x3a080f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x252d15}=this['_editor'],t=_0x252d15['t'],_0x52a4b1=new X(_0x252d15,this['imageStatus'],this['_attributes']);_0x52a4b1['bind']('status')['to'](this,'imageStatus'),_0x52a4b1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x52a4b1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x52a4b1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x52a4b1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1baeca,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x52a4b1,'position':_0x4c4f22['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x52a4b1['focus']();},'onHide':()=>{_0x52a4b1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x384e3f=>!Q(_0x384e3f,_0x52a4b1['element'])}});}['_loadImageInfo'](_0x15a3c7,_0x2765b9){return j['getInfo'](_0x15a3c7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1d2f3e=>{const {width:_0x5e471c,height:_0x54100e}=_0x1d2f3e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2765b9,this['imageDimension']={'width':_0x5e471c,'height':_0x54100e},this['imageId']=_0x15a3c7;})['catch'](_0xfffd3e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xfffd3e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5b22d7,_0x5ecef6){return this['_getImageAsFile'](_0x5b22d7)['then'](_0x1e66ff=>j['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':_0x5ecef6['signal'],'file':_0x1e66ff,'onProgress':_0x90f847=>{_0x90f847&&_0x90f847['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x90f847['value']));}}))['then'](_0x4327af=>{const {width:_0x85667e,height:_0x14bf39}=_0x4327af['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4327af['cdnUrl'],this['imageDimension']={'width':_0x85667e,'height':_0x14bf39},this['imageId']=_0x4327af['uuid'],this['imageUploadProgress']=null;const _0x26f53f=_0x5b22d7['getAttribute']('src');this['_imageCache']['set'](_0x26f53f,{'id':_0x4327af['uuid'],'url':_0x4327af['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2ca22b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2ca22b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x34a9c4,_0xc400b2){_0x34a9c4['on']('apply',(_0x3dfdbb,_0x44cc6e)=>{this['_replaceImage'](_0xc400b2,_0x44cc6e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x34a9c4['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x34a9c4['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x599c31,_0x4822b0,_0x1a6db2){const _0xf85b22=this['_editor'],{width:_0x40e460,height:_0x465a7b}=J(_0x4822b0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4070ee,imageSources:_0x3ff31c}=C(_0x4822b0,_0x40e460);_0xf85b22['model']['change'](_0x58f0ab=>{if('$graveyard'===_0x599c31['root']['rootName']){_0xf85b22['execute']('insertImage',{'imageType':_0x599c31['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x599c31['getAttributes']()),'uploadcareImageId':_0x1a6db2,'src':_0x4070ee,'sources':_0x3ff31c,'width':_0x40e460,'height':_0x465a7b}});const _0x14b1f8=_0x599c31['getChildren']();_0x599c31=_0xf85b22['model']['document']['selection']['getSelectedElement']();for(const _0x49b811 of _0x14b1f8)_0x58f0ab['append'](_0x58f0ab['cloneElement'](_0x49b811),_0x599c31);}else _0x58f0ab['setSelection'](_0x599c31,'on'),_0xf85b22['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x599c31['getAttributes']()),'uploadcareImageId':_0x1a6db2,'src':_0x4070ee,'sources':_0x3ff31c,'width':_0x40e460,'height':_0x465a7b},_0x599c31);_0x58f0ab['setSelection'](_0x599c31,'on');});}async['_getImageAsFile'](_0x3345d9){const _0x444609=_0xfb9838['window'],_0x2c72b1=_0xfb9838['document']['location']['href'],_0x40ffa7=new _0x444609['URL'](_0x3345d9['getAttribute']('src'),_0x2c72b1);if('data:'===_0x40ffa7['protocol']){const _0x524dce=_0x40ffa7['href']['split'](','),_0x55bb21=_0x524dce[0x0]['match'](/:(.*?);/)[0x1],_0x36130b=_0x55bb21['split']('/')[0x1],_0x8cb70c=_0x444609['atob'](_0x524dce[_0x524dce['length']-0x1]);let _0x2fc0d5=_0x8cb70c['length'];const _0x5bee2d=new _0x444609['Uint8Array'](_0x2fc0d5);for(;_0x2fc0d5--;)_0x5bee2d[_0x2fc0d5]=_0x8cb70c['charCodeAt'](_0x2fc0d5);return new _0x444609['File']([_0x5bee2d],'image.'+_0x36130b,{'type':_0x55bb21});}const _0x4a6e45=_0x40ffa7['href']['split']('/'),_0x509c01=_0x4a6e45[_0x4a6e45['length']-0x1],_0x4a7573=_0x509c01['split']('.')[0x1];return _0x444609['fetch'](_0x40ffa7['href'])['then'](_0x32d0d9=>_0x32d0d9['clone']()['blob']())['then'](_0x568930=>new _0x444609['File']([_0x568930],_0x509c01,{'type':'image/'+_0x4a7573}));}}class O extends _0x4829b3{['imageEditController'];static get['requires'](){return[_0x33aabb];}['_isEditable'];constructor(_0x456acf){super(_0x456acf),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xd99255){const _0x16cb78=z(_0xd99255);return _0x24103f=>!(!_0x24103f||!_0x24103f['is']('element','imageBlock')&&!_0x24103f['is']('element','imageInline'))&&(!!_0x24103f['hasAttribute']('uploadcareImageId')||!!_0x24103f['hasAttribute']('src')&&_0x16cb78(_0x24103f['getAttribute']('src')));}(_0x456acf['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4276bf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4276bf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x58d74c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x58d74c&&(_0x58d74c['is']('element','imageBlock')||_0x58d74c['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x33aabb),_0x58d74c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4829b3{['refresh'](){const _0x2779a7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2779a7&&(_0x2779a7['is']('element','imageBlock')||_0x2779a7['is']('element','imageInline')));}['execute'](_0x41104a){const _0x122d00=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x401939=>{_0x401939['setAttributes'](_0x41104a,_0x122d00),_0x401939['removeAttribute']('srcset',_0x122d00),_0x401939['removeAttribute']('sizes',_0x122d00);});}}class m extends _0x276e86{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x44b878,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3053cb}=this;_0x3053cb['commands']['add']('uploadcareImageEdit',new O(_0x3053cb)),_0x3053cb['commands']['add']('uploadcareImageReplace',new R(_0x3053cb));}}class g extends _0x276e86{['_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 _0x163a16=this['editor'];_0x163a16['ui']['componentFactory']['add']('uploadcareImageEdit',_0x138f25=>{const _0x249960=_0x163a16['commands']['get']('uploadcareImageEdit'),_0x142a02=new _0x54f1bd(_0x138f25),t=_0x138f25['t'];return _0x142a02['set']({'icon':_0x1baeca,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x142a02['bind']('isEnabled')['to'](_0x249960),_0x142a02['bind']('isOn')['to'](_0x249960,'isActive'),this['listenTo'](_0x142a02,'execute',()=>{_0x163a16['execute']('uploadcareImageEdit'),_0x163a16['editing']['view']['focus']();}),_0x142a02;}),this['_initConfig']();}['_initConfig'](){const _0x50ab7f=_0x4a2901(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x50ab7f),this['listenTo'](this['editor'],'destroy',()=>{_0x50ab7f['remove']();});}}class et extends _0x276e86{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0xe1bc50,Command as _0x2446cd}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x24a027,IconGooglePhotos as _0x313fcf,IconGoogleDrive as _0x31cd6a,IconFacebook as _0x5936a6,IconDropbox as _0x5b3cfa,IconUploadcareLink as _0x558945,IconUploadcareImageUpload as _0xb04f56,IconError as _0x172d42,IconUploadcareImageEdit as _0x72eb95}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x33db85,MenuBarMenuListItemButtonView as _0x27a912,View as _0x309140,FocusCycler as _0x167e01,Dialog as _0x49d3a6,DialogViewPosition as _0x50b8a2,SpinnerView as _0x15da0d,IconView as _0x3677a1,Notification as _0x72305c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xbe535b,DomEmitterMixin as _0x2f7e22,global as _0x331faf,getAncestors as _0x1f32f9,ObservableMixin as _0x52ce49,uid as _0x5b5010,createElement as _0x3549a1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x418789}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5a363b,info as _0x185684}from'@uploadcare/upload-client';import*as _0x22dd18 from'@uploadcare/file-uploader';var i=function(_0x413036){return _0x413036['Local']='local',_0x413036['URL']='url',_0x413036['Dropbox']='dropbox',_0x413036['GDrive']='gdrive',_0x413036['Facebook']='facebook',_0x413036['GPhotos']='gphotos',_0x413036['OneDrive']='onedrive',_0x413036;}({});function _(_0x38d7ab,_0x48f992,_0x1fb7fe){const t=_0x38d7ab['t'],_0x4de923=_0x38d7ab['t'];switch(_0x48f992){case i['Local']:return{'text':_0x4de923('Insert'===_0x1fb7fe?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4de923('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1fb7fe?_0x4de923('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4de923('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1fb7fe?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1fb7fe?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1fb7fe?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1fb7fe?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1fb7fe?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x48f992;}}class e extends _0xe1bc50{['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 _0x47f29a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x14e1ed;for(const _0x3fb724 in _0x47f29a){const _0x4f8d1f=_0x3fb724,_0x628756=_0x47f29a[_0x4f8d1f];if('uploadcareLicenseKeyValid'==_0x628756||'uploadcareLicenseKeyInvalid'==_0x628756||'uploadcareLicenseKeyExpired'==_0x628756||'uploadcareLicenseKeyDomainLimit'==_0x628756||'uploadcareLicenseKeyNotAllowed'==_0x628756||'uploadcareLicenseKeyEvaluationLimit'==_0x628756||'uploadcareLicenseKeyTrialLimit'==_0x628756||'uploadcareLicenseKeyUsageLimit'==_0x628756){delete _0x47f29a[_0x4f8d1f],_0x14e1ed=_0x628756,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x14e1ed&&_0x47f29a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x14e1ed&&_0x47f29a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x14e1ed&&_0x47f29a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x14e1ed&&_0x47f29a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x14e1ed&&_0x47f29a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x14e1ed&&_0x47f29a['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x14e1ed&&_0x47f29a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x16e04a}=this,_0x5599c5=_0x16e04a['commands']['get']('uploadcare');if(!_0x5599c5)return;const _0x42fb81=this['_normalizeConfigSourceList'](_0x16e04a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x54421b,_0x3377da)=>{const _0x19ff1f=this['_getIntegrationKey'](_0x3377da['type']);return _0x54421b[_0x19ff1f]||(_0x54421b[_0x19ff1f]=[]),_0x54421b[_0x19ff1f]['push'](_0x3377da),_0x54421b;},{});_0x16e04a['plugins']['has']('ImageInsertUI')&&_0x16e04a['commands']['get']('uploadcare')&&Object['entries'](_0x42fb81)['forEach'](([_0x9cbf87,_0x4897cd])=>{_0x16e04a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x9cbf87,'observable':()=>_0x5599c5,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4897cd),'formViewCreator':()=>this['_createDropdownButtons'](_0x4897cd),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4897cd),'override':'assetManager'!==_0x9cbf87});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3a7020){const {locale:_0x2aa23a}=this['editor'];return _0x3a7020['map'](_0x4e8ed6=>{const _0x4965da=_(_0x2aa23a,_0x4e8ed6,'Insert');switch(_0x4e8ed6){case i['Local']:return{'icon':_0xb04f56,'type':i['Local'],..._0x4965da};case i['URL']:return{'icon':_0x558945,'type':i['URL'],..._0x4965da};case i['Dropbox']:return{'icon':_0x5b3cfa,'type':i['Dropbox'],..._0x4965da};case i['Facebook']:return{'icon':_0x5936a6,'type':i['Facebook'],..._0x4965da};case i['GDrive']:return{'icon':_0x31cd6a,'type':i['GDrive'],..._0x4965da};case i['GPhotos']:return{'icon':_0x313fcf,'type':i['GPhotos'],..._0x4965da};case i['OneDrive']:return{'icon':_0x24a027,'type':i['OneDrive'],..._0x4965da};}});}['_getIntegrationKey'](_0x5a3792){switch(_0x5a3792){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3774cb,_0x130737){const _0x3cca1b=this['editor'],_0x47aa96=new _0x3774cb(_0x3cca1b['locale']),_0x450ad3=_0x3cca1b['commands']['get']('uploadcare');return _0x47aa96['bind']('isEnabled')['to'](_0x450ad3),_0x47aa96['on']('execute',()=>{_0x450ad3['execute'](_0x130737);}),_0x47aa96;}['_createToolbarButton'](_0x3c67ee){const {locale:_0xd1d764}=this['editor'],_0x275ba7=this['editor']['plugins']['get']('ImageInsertUI'),_0x342cf6=_0x3c67ee[0x0],_0x4de3bd=this['_createButton'](_0x33db85,_0x342cf6['type']);return _0x4de3bd['icon']=_0x342cf6['icon'],_0x4de3bd['bind']('label')['to'](_0x275ba7,'isImageSelected',_0x14ad25=>_(_0xd1d764,_0x342cf6['type'],_0x14ad25?'Replace':'Insert')['text']),_0x4de3bd['tooltip']=!0x0,_0x4de3bd;}['_createDropdownButtons'](_0x1d9577){const {locale:_0x4d8d21}=this['editor'],_0xeb8ba0=this['editor']['plugins']['get']('ImageInsertUI');return _0x1d9577['map'](_0x4424cd=>{const _0x3b297f=this['_createButton'](_0x33db85,_0x4424cd['type']);return _0x3b297f['withText']=!0x0,_0x3b297f['icon']=_0x4424cd['icon'],_0x3b297f['bind']('label')['to'](_0xeb8ba0,'isImageSelected',_0x595dd2=>_(_0x4d8d21,_0x4424cd['type'],_0x595dd2?'Replace':'Insert')['text']),_0x3b297f;});}['_createMenuBarButtons'](_0x26a868){return _0x26a868['map'](_0x436dc2=>{const _0x8c5097=this['_createButton'](_0x27a912,_0x436dc2['type']);return _0x8c5097['icon']=_0x436dc2['icon'],_0x8c5097['label']=_0x436dc2['shortText'],_0x8c5097;});}}class F extends _0x309140{['focusTracker'];['focusCycler'];constructor(_0x4d277b){super(_0x4d277b),this['focusTracker']=new _0xbe535b(),this['focusCycler']=new _0x167e01({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x4e8122,_0x5950e4){super(_0x4e8122),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-'+_0x5950e4}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xcb7eea,_0x45cd08){const _0x5611e4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4f3d9c=>_0x4f3d9c<=_0x45cd08)['map'](_0x57edd9=>_0xcb7eea['replace'](/\/$/,'')+'/-/resize/'+_0x57edd9+'x/\x20'+_0x57edd9+'w');return{'imageFallbackUrl':_0xcb7eea,'imageSources':[{'srcset':_0x5611e4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x45cd08+'px)\x20100vw,\x20'+_0x45cd08+'px','type':'image/webp'}]};}function S(_0x329485,_0x2677bb,_0x2aa2f8){const _0x246bb0=_0x329485['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x246bb0?parseInt(_0x246bb0[0x1],0xa):_0x2677bb,'height':_0x246bb0?parseInt(_0x246bb0[0x2],0xa):_0x2aa2f8};}function p(_0x2250f6,_0x1393d3){const _0x2c370a=new(_0x2f7e22())(),_0x4860e8=_0x2250f6['plugins']['get']('ImageUtils'),_0x50c1ba=_0x2250f6['editing']['mapper']['toViewElement'](_0x1393d3),_0x22f929=_0x4860e8['findViewImgElement'](_0x50c1ba),_0x5cdc01=_0x2250f6['editing']['view']['domConverter']['viewToDom'](_0x22f929),_0x321ccc=_0x1393d3['getAttribute']('width'),_0x2c7eda=_0x1393d3['getAttribute']('height'),_0x42fdb1='image-processing';_0x2250f6['editing']['view']['change'](_0x2ddc72=>{_0x2ddc72['addClass'](_0x42fdb1,_0x50c1ba),_0x2ddc72['setStyle']('aspect-ratio',_0x321ccc+'/'+_0x2c7eda,_0x22f929);}),_0x2c370a['listenTo'](_0x5cdc01,'load',()=>{_0x2c370a['stopListening'](_0x5cdc01,'load'),_0x2250f6['editing']['view']['change'](_0x5e7a39=>{_0x5e7a39['removeClass'](_0x42fdb1,_0x50c1ba),_0x5e7a39['removeStyle']('aspect-ratio',_0x22f929);});});}function G(_0x4d8b44){if(Array['isArray'](_0x4d8b44)){const _0xb34e30=_0x4d8b44['map'](G);return _0x51ecb6=>_0xb34e30['some'](_0xd30711=>_0xd30711(_0x51ecb6));}if('origin'==_0x4d8b44){const _0x2001b7=_0x331faf['window']['location']['origin'];return _0x910651=>new URL(_0x910651,_0x331faf['document']['baseURI'])['origin']==_0x2001b7;}return'function'==typeof _0x4d8b44?_0x4d8b44:_0x4d8b44 instanceof RegExp?_0x279ab4=>!(!_0x279ab4['match'](_0x4d8b44)&&!_0x279ab4['replace'](/^https?:\/\//,'')['match'](_0x4d8b44)):()=>!0x1;}function A(_0x3720f1,_0x580744){return _0x1f32f9(_0x3720f1['target'])['includes'](_0x580744);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x52ce49(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x51cc27,_0x4c36f8,_0x24993b){super(),this['_editor']=_0x51cc27,this['_editing']=_0x4c36f8,this['_dialog']=_0x51cc27['plugins']['get'](_0x49d3a6),this['_api']=_0x4c36f8['ctxElement']['getAPI'](),this['_type']=_0x24993b,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:_0xb46887,model:_0x23e3eb}=this['_editor'],_0xec7931=_0x23e3eb['document']['selection']['getSelectedElement'](),_0x58b0d7=_0xec7931&&(_0xec7931['is']('element','imageBlock')||_0xec7931['is']('element','imageInline'));this['_formView']=new x(_0xb46887,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xb04f56,'title':_(_0xb46887,this['_type'],_0x58b0d7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x50b8a2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2a64df=>!A(_0x2a64df,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x407d24}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2c6373=>{const _0x1d4ea9=_0x407d24['length'];for(const _0xdb5eaf of _0x407d24){const _0x414491=_0xdb5eaf===_0x407d24[_0x1d4ea9-0x1],{cdnUrl:_0x477f4c,fileInfo:_0x4b6c2d}=_0xdb5eaf;if(!_0x477f4c||!_0x4b6c2d)continue;const {width:_0x11d8e9,height:_0x70a7b4}=_0x4b6c2d['imageInfo'],_0x5e2bfe=S(_0x477f4c,_0x11d8e9,_0x70a7b4),_0x47f973=C(_0x477f4c,_0x5e2bfe['width']),_0x73b865={'id':_0x4b6c2d['uuid'],'type':'image','attributes':{'imageDimension':_0x5e2bfe,..._0x47f973}};this['_insertAsset'](_0x73b865,_0x414491,_0x2c6373);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x30932c=>{'idle'===_0x30932c['detail']['status']&&!_0x30932c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x138b35,_0x41ceae,_0x473bae){const _0x3daa93=this['_editor']['model']['document']['selection'],_0x112095=_0x3daa93['getSelectedElement'](),_0x5362a2=!(!_0x112095||!_0x112095['is']('element','imageInline'));_0x473bae['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x138b35,_0x5362a2),_0x41ceae||_0x473bae['setSelection'](_0x3daa93['getLastPosition']());}['_insertImage'](_0x118df9,_0x5c5d73){const _0xa3c5e2=this['_editor'],{imageDimension:_0x374619,imageFallbackUrl:_0x4cbf75,imageSources:_0x59a2de}=_0x118df9['attributes'];_0xa3c5e2['execute']('insertImage',{'imageType':_0x5c5d73?'imageInline':null,'source':{'uploadcareImageId':_0x118df9['id'],'src':_0x4cbf75,'sources':_0x59a2de,..._0x374619}});}}class w extends _0x2446cd{['_editing'];['_controller']=null;static get['requires'](){return[_0x49d3a6,o];}constructor(_0x3bf0c7){super(_0x3bf0c7),this['_editing']=_0x3bf0c7['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1265d4){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1265d4);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x43a21b,..._0x2561a8}){return _0x5a363b(_0x43a21b,_0x2561a8);}static['getInfo'](_0x2ae4e4,_0x1574be){return _0x185684(_0x2ae4e4,_0x1574be);}}class f extends _0xe1bc50{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x418789,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x35995c=this['editor'];if(!!!_0x35995c['config']['get']('uploadcare'))return;_0x35995c['plugins']['get'](_0x418789)['createUploadAdapter']=_0x50e7ab=>new k(_0x50e7ab,_0x35995c),_0x35995c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2eab05,{imageElement:_0x86c4a9,data:_0x36e5ef})=>{_0x35995c['model']['change'](_0x41f21b=>{_0x41f21b['setAttribute']('uploadcareImageId',_0x36e5ef['uploadcareImageId'],_0x86c4a9);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x45f9c2,_0x378c26){this['loader']=_0x45f9c2,this['editor']=_0x378c26,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3265d0=await this['loader']['file'];return j['upload']({'file':_0x3265d0,'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':_0x20440a=>{_0x20440a&&_0x20440a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x20440a['value']);}})['then'](async _0x2f1ca2=>{const {imageFallbackUrl:_0x24c401,imageSources:_0x9dace5}=C(_0x2f1ca2['cdnUrl'],_0x2f1ca2['imageInfo']['width']);return{'uploadcareImageId':_0x2f1ca2['uuid'],'default':_0x24c401,'sources':_0x9dace5};})['catch'](()=>{const _0x29125d=t('Cannot\x20upload\x20file:')+('\x20'+_0x3265d0['name']+'.');return Promise['reject'](_0x29125d);});}['abort'](){this['controller']['abort']();}}class o extends _0xe1bc50{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x49d3a6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x399b4f){super(_0x399b4f),this['ucContextId']=_0x5b5010();}['init'](){const _0x485f32=this['editor'];_0x485f32['commands']['add']('uploadcare',new w(_0x485f32));}['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 _0x5790be=_0x331faf['document']['querySelector']('input[uploadcare-file-input]');_0x5790be&&_0x5790be['remove']();}),async function(_0x488f81){const _0x4f01c2=_0x4087d2([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]),_0x276d2b=0x535f8c3a,_0x6c967f=0x5358f7c2^_0x276d2b,_0xd3804a=window[_0x4087d2([0x44,0x61,0x74,0x65])][_0x4087d2([0x6e,0x6f,0x77])](),_0x5ef361=_0x488f81[_0x4087d2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e9a29=new window[(_0x4087d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c83a8=>{_0x5ef361[_0x4087d2([0x6f,0x6e,0x63,0x65])](_0x4087d2([0x72,0x65,0x61,0x64,0x79]),_0x2c83a8);}),_0x19b7b8={[_0x4087d2([0x6b,0x74,0x79])]:_0x4087d2([0x45,0x43]),[_0x4087d2([0x75,0x73,0x65])]:_0x4087d2([0x73,0x69,0x67]),[_0x4087d2([0x63,0x72,0x76])]:_0x4087d2([0x50,0x2d,0x32,0x35,0x36]),[_0x4087d2([0x78])]:_0x4087d2([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]),[_0x4087d2([0x79])]:_0x4087d2([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]),[_0x4087d2([0x61,0x6c,0x67])]:_0x4087d2([0x45,0x53,0x32,0x35,0x36])},_0x1ed18e=_0x5ef361[_0x4087d2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4087d2([0x67,0x65,0x74])](_0x4087d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x423bbf(){let _0x3d9541,_0x3336e0=null,_0x8171dd=null;try{if(_0x1ed18e==_0x4087d2([0x47,0x50,0x4c]))return _0x4087d2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3d9541=_0x107bee(),!_0x3d9541)return _0x4087d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3d9541[_0x4087d2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x8171dd=_0x4d6f0d(_0x3d9541[_0x4087d2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3d9541[_0x4087d2([0x6a,0x74,0x69])])),await _0x4c6399()?_0x535897()?_0x4fc942()?_0x4087d2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d87d0()?(_0x3d9541[_0x4087d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4087d2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3336e0=_0x8eb6b2(_0x4087d2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3d9541[_0x4087d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4087d2([0x74,0x72,0x69,0x61,0x6c])&&(_0x3336e0=_0x8eb6b2(_0x4087d2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c8f9e()):_0x4087d2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4087d2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4087d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4087d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4fc942(){const _0x4fae6b=[_0x4087d2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4087d2([0x74,0x72,0x69,0x61,0x6c])][_0x4087d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d9541[_0x4087d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd3804a/0x3e8:0xe10*_0x6c967f;return _0x3d9541[_0x4087d2([0x65,0x78,0x70])]<_0x4fae6b;}function _0x535897(){const _0x31f9ed=_0x3d9541[_0x4087d2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x31f9ed&&(!!_0x31f9ed[_0x4087d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4087d2([0x2a]))||!!_0x31f9ed[_0x4087d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4087d2([0x55,0x50,0x4c,0x43])));}function _0x5d87d0(){const _0x451de3=_0x3d9541[_0x4087d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x451de3||0x0==_0x451de3[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e338b}=new URL(window[_0x4087d2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x451de3[_0x4087d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e338b))return!0x0;const _0x5da19a=_0x2e338b[_0x4087d2([0x73,0x70,0x6c,0x69,0x74])](_0x4087d2([0x2e]));return _0x451de3[_0x4087d2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x211691=>_0x211691[_0x4087d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4087d2([0x2a])))[_0x4087d2([0x6d,0x61,0x70])](_0x18bd5b=>_0x18bd5b[_0x4087d2([0x73,0x70,0x6c,0x69,0x74])](_0x4087d2([0x2e])))[_0x4087d2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x153e51=>_0x153e51[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5da19a[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4087d2([0x6d,0x61,0x70])](_0x152195=>Array(_0x5da19a[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x152195[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4087d2([0x66,0x69,0x6c,0x6c])](_0x152195[0x0]===_0x4087d2([0x2a])?_0x4087d2([0x2a]):'')[_0x4087d2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x152195))[_0x4087d2([0x73,0x6f,0x6d,0x65])](_0x1b8889=>_0x5da19a[_0x4087d2([0x65,0x76,0x65,0x72,0x79])]((_0x4cdaf6,_0x3ac160)=>_0x1b8889[_0x3ac160]===_0x4cdaf6||_0x1b8889[_0x3ac160]===_0x4087d2([0x2a])));}function _0x4c8f9e(){return _0x3336e0&&_0x8171dd?new window[(_0x4087d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3732e2,_0x371011)=>{_0x3336e0[_0x4087d2([0x74,0x68,0x65,0x6e])](_0x3732e2,_0x371011),_0x8171dd[_0x4087d2([0x74,0x68,0x65,0x6e])](_0x1d6c79=>{_0x1d6c79!=_0x4087d2([0x56,0x61,0x6c,0x69,0x64])&&_0x3732e2(_0x1d6c79);},_0x371011);}):_0x3336e0||_0x8171dd||_0x4087d2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d6f0d(_0x55aa0d,_0x23e319){return new window[(_0x4087d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd52efc=>{if(_0x21c9e2())return _0xd52efc(_0x4087d2([0x56,0x61,0x6c,0x69,0x64]));_0x2c8d94(),_0x5ef361[_0x4087d2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4087d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x218a6b=!0x1;const _0x5c5e99=_0x5b5010();function _0x2e2d54(_0x578836){return!!_0x578836&&(typeof _0x578836===_0x4087d2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x578836===_0x4087d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x578836[_0x4087d2([0x74,0x68,0x65,0x6e])]===_0x4087d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x578836[_0x4087d2([0x63,0x61,0x74,0x63,0x68])]===_0x4087d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x30e754(_0x533f69){_0x3d554d(_0x533f69)[_0x4087d2([0x74,0x68,0x65,0x6e])](_0x3668b7=>{if(!_0x3668b7||_0x3668b7[_0x4087d2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4087d2([0x6f,0x6b]))return _0x4087d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x20b6fa(_0xac3fbb(_0x5c5e99+_0x23e319))!=_0x3668b7[_0x4087d2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4087d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4087d2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4087d2([0x74,0x68,0x65,0x6e])](_0x5514f3=>(_0x5789e1(),_0x5514f3),()=>{const _0x55dcfb=_0x1497f0();return null==_0x55dcfb?(_0x5789e1(),_0x4087d2([0x56,0x61,0x6c,0x69,0x64])):_0x4087d2(_0xd3804a-_0x55dcfb>(0x7753083a^_0x276d2b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4087d2([0x74,0x68,0x65,0x6e])](_0xd52efc)[_0x4087d2([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd52efc(_0x4087d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2dae9=0x536962ba^_0x276d2b;function _0x5789e1(){const _0x5be18f=_0x4087d2([0x6c,0x6c,0x63,0x74,0x2d])+_0x20b6fa(_0xac3fbb(_0x55aa0d)),_0x2aa032=_0x5f26c5(_0x20b6fa(window[_0x4087d2([0x4d,0x61,0x74,0x68])][_0x4087d2([0x63,0x65,0x69,0x6c])](_0xd3804a/_0x2dae9)));window[_0x4087d2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4087d2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5be18f,_0x2aa032);}function _0x1497f0(){const _0x309a68=_0x4087d2([0x6c,0x6c,0x63,0x74,0x2d])+_0x20b6fa(_0xac3fbb(_0x55aa0d)),_0x1c5512=window[_0x4087d2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4087d2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x309a68);return _0x1c5512?window[_0x4087d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f26c5(_0x1c5512),0x10)*_0x2dae9:null;}function _0x3d554d(_0x36e03d){return new window[(_0x4087d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4197bf,_0x25b14f)=>{_0x36e03d[_0x4087d2([0x74,0x68,0x65,0x6e])](_0x4197bf,_0x25b14f),window[_0x4087d2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x25b14f,0x535e58fa^_0x276d2b);});}}_0x5ef361[_0x4087d2([0x6f,0x6e])](_0x4087d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3d1d24,_0x372281)=>{if(_0x372281[0x0]!=_0x55aa0d)return _0xd52efc(_0x4087d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x372281[0x1]={..._0x372281[0x1],[_0x4087d2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c5e99};},{[_0x4087d2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4087d2([0x68,0x69,0x67,0x68])}),_0x5ef361[_0x4087d2([0x6f,0x6e])](_0x4087d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x15dd47=>{_0x2e2d54(_0x15dd47[_0x4087d2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x218a6b=!0x0,_0x30e754(_0x15dd47[_0x4087d2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4087d2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4087d2([0x6c,0x6f,0x77])}),_0x5e9a29[_0x4087d2([0x74,0x68,0x65,0x6e])](()=>{_0x218a6b||_0xd52efc(_0x4087d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x21c9e2(){return _0x5ef361[_0x4087d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4087d2([0x76,0x69,0x65,0x77])][_0x4087d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4087d2([0x61,0x75,0x74,0x6f]);}function _0x2c8d94(){_0x5ef361[_0x4087d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4087d2([0x76,0x69,0x65,0x77])][_0x4087d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4087d2([0x61,0x75,0x74,0x6f]);}}function _0x8eb6b2(_0x4f30ad){const _0x30b1f4=[new window[(_0x4087d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a4744=>setTimeout(_0x5a4744,0x5356b2f6^_0x276d2b)),_0x5e9a29[_0x4087d2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4087d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aee12=>{let _0x6b9fb3=0x0;_0x5ef361[_0x4087d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4087d2([0x6f,0x6e])](_0x4087d2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1f2eb1,_0x2d919f)=>{_0x2d919f[0x0][_0x4087d2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x6b9fb3++,_0x6b9fb3==(0x535f8dc2^_0x276d2b)&&(_0x4aee12(),_0x1f2eb1[_0x4087d2([0x6f,0x66,0x66])]());});}))];return window[_0x4087d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4087d2([0x72,0x61,0x63,0x65])](_0x30b1f4)[_0x4087d2([0x74,0x68,0x65,0x6e])](()=>_0x4f30ad);}async function _0x4d776d(){await _0x5e9a29,_0x5ef361[_0x4087d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4087d2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x125c74,_0x5ef361[_0x4087d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4087d2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x125c74,_0x5ef361[_0x4087d2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4087d2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e00b6(_0x1d5101){const _0x92d23e=_0x569f15();_0x5ef361[_0x92d23e]=_0x4087d2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1d5101,_0x1d5101!=_0x4087d2([0x56,0x61,0x6c,0x69,0x64])&&_0x4d776d();}function _0x569f15(){const _0x42a38f=window[_0x4087d2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4087d2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4087d2([0x6e,0x6f,0x77])]())[_0x4087d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4087d2([0x2e]),'');let _0x31399e=_0x4087d2([0x68]);for(let _0x1b054c=0x0;_0x1b054c<_0x42a38f[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b054c+=0x2){let _0x6c43eb=window[_0x4087d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42a38f[_0x4087d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b054c,_0x1b054c+0x2));_0x6c43eb>=_0x4f01c2[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x6c43eb-=_0x4f01c2[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x31399e+=_0x4f01c2[_0x6c43eb];}return _0x31399e;}function _0x107bee(){const _0x7e1766=_0x1ed18e[_0x4087d2([0x73,0x70,0x6c,0x69,0x74])](_0x4087d2([0x2e]));if(0x3!=_0x7e1766[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5330ef(_0x7e1766[0x1]);function _0x5330ef(_0x4e83d6){const _0x342ca8=_0x3b0520(_0x4e83d6);return _0x342ca8&&_0x17ebc3()?_0x342ca8:null;function _0x17ebc3(){const _0x8d0558=_0x342ca8[_0x4087d2([0x6a,0x74,0x69])],_0x11a682=window[_0x4087d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8d0558[_0x4087d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8d0558[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x238fb2={..._0x342ca8,[_0x4087d2([0x6a,0x74,0x69])]:_0x8d0558[_0x4087d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8d0558[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x238fb2[_0x4087d2([0x76,0x63])],_0xac3fbb(_0x238fb2)==_0x11a682;}}}async function _0x4c6399(){let _0x17574e=!0x0;try{const _0x8b6ed6=_0x1ed18e[_0x4087d2([0x73,0x70,0x6c,0x69,0x74])](_0x4087d2([0x2e])),[_0x3dfd86,_0x3d0949,_0x414870]=_0x8b6ed6;return _0x57f48f(_0x3dfd86),await _0x216732(_0x3dfd86,_0x3d0949,_0x414870),_0x17574e;}catch{return!0x1;}function _0x57f48f(_0x18556b){const _0x31c449=_0x3b0520(_0x18556b);_0x31c449&&_0x31c449[_0x4087d2([0x61,0x6c,0x67])]==_0x4087d2([0x45,0x53,0x32,0x35,0x36])||(_0x17574e=!0x1);}async function _0x216732(_0x2234cf,_0x4f8a06,_0x176f96){const _0x2e3506=window[_0x4087d2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4087d2([0x66,0x72,0x6f,0x6d])](_0x5738b9(_0x176f96),_0x1f19ca=>_0x1f19ca[_0x4087d2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1faaa6=new window[(_0x4087d2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4087d2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2234cf+_0x4087d2([0x2e])+_0x4f8a06),_0x2f431a=window[_0x4087d2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4087d2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2f431a)return;const _0x18d7e8=await _0x2f431a[_0x4087d2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4087d2([0x6a,0x77,0x6b]),_0x19b7b8,{[_0x4087d2([0x6e,0x61,0x6d,0x65])]:_0x4087d2([0x45,0x43,0x44,0x53,0x41]),[_0x4087d2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4087d2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4087d2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2f431a[_0x4087d2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4087d2([0x6e,0x61,0x6d,0x65])]:_0x4087d2([0x45,0x43,0x44,0x53,0x41]),[_0x4087d2([0x68,0x61,0x73,0x68])]:{[_0x4087d2([0x6e,0x61,0x6d,0x65])]:_0x4087d2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x18d7e8,_0x2e3506,_0x1faaa6)||(_0x17574e=!0x1);}}function _0x3b0520(_0xe129ca){return _0xe129ca[_0x4087d2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4087d2([0x65,0x79]))?JSON[_0x4087d2([0x70,0x61,0x72,0x73,0x65])](_0x5738b9(_0xe129ca)):null;}function _0x5738b9(_0x3e369b){return window[_0x4087d2([0x61,0x74,0x6f,0x62])](_0x3e369b[_0x4087d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4087d2([0x2b]))[_0x4087d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4087d2([0x2f])));}function _0xac3fbb(_0x15202a){let _0x2abaee=0x1505;function _0xb8be52(_0x4f3f19){for(let _0x15cbd9=0x0;_0x15cbd9<_0x4f3f19[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15cbd9++){const _0x3f22d8=_0x4f3f19[_0x4087d2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x15cbd9);_0x2abaee=(_0x2abaee<<0x5)+_0x2abaee+_0x3f22d8,_0x2abaee&=_0x2abaee;}}function _0x1b0fd3(_0x3ffe03){Array[_0x4087d2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ffe03)?_0x3ffe03[_0x4087d2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1b0fd3):_0x3ffe03&&typeof _0x3ffe03==_0x4087d2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4087d2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ffe03)[_0x4087d2([0x73,0x6f,0x72,0x74])]()[_0x4087d2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x453fd5,_0x169253])=>{_0xb8be52(_0x453fd5),_0x1b0fd3(_0x169253);}):_0xb8be52(window[_0x4087d2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ffe03));}return _0x1b0fd3(_0x15202a),_0x2abaee>>>0x0;}function _0x20b6fa(_0x344382){return _0x344382[_0x4087d2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4087d2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4087d2([0x30]));}function _0x5f26c5(_0x3d6a45){return _0x3d6a45[_0x4087d2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4087d2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4087d2([0x6a,0x6f,0x69,0x6e])]('');}function _0x125c74(){}function _0x4087d2(_0x5f167c){return _0x5f167c['map'](_0x4522df=>String['fromCharCode'](_0x4522df))['join']('');}_0x4e00b6(await _0x423bbf());}(this);}['_initSchema'](){const _0x218a5a=this['editor']['model']['schema'];_0x218a5a['isRegistered']('imageBlock')&&_0x218a5a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x218a5a['isRegistered']('imageInline')&&_0x218a5a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x193543=this['editor'];_0x193543['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x193543['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5c183c=>_0x5c183c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xe8705c=_0x193543['commands']['get']('replaceImageSource');_0xe8705c&&this['listenTo'](_0xe8705c,'cleanupImage',(_0x1423a0,[_0x4f59f8,_0x45ab53])=>{_0x4f59f8['removeAttribute']('uploadcareImageId',_0x45ab53);});}['_initConfig'](){const _0x5693af=this['editor']['config']['get']('uploadcare.uploader')||{},_0x21a782=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3549a1(_0x331faf['document'],'uc-config',{..._0x5693af,'pubkey':_0x21a782,'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']=_0x56d832=>{if('closeMax'==_0x56d832)return'#uc-icon-arrow-down';},_0x331faf['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3549a1(_0x331faf['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x331faf['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xd65610=this['editor']['commands']['get']('insertImage');_0xd65610&&this['listenTo'](_0xd65610,'execute',()=>{const _0x304712=this['editor']['model']['document']['selection']['getSelectedElement']();_0x304712&&_0x304712['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x304712);});});const _0xce819=this['editor']['commands']['get']('uploadcareImageReplace');_0xce819&&this['listenTo'](_0xce819,'execute',()=>{const _0x2f690a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2f690a&&_0x2f690a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2f690a);});});}}class tt extends _0xe1bc50{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2986b1){super(_0x2986b1),_0x2986b1['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x22dd18['defineComponents'](_0x22dd18),this['_defineLocale']();}['_defineLocale'](){const _0x214f92=this['editor']['config']['get']('uploadcare.locale'),_0x249a0d=this['editor']['locale']['contentLanguage'];_0x214f92&&_0x22dd18['defineLocale'](_0x249a0d,_0x214f92);}}class ii extends _0x309140{constructor(_0x12b2d5){super(_0x12b2d5);const t=_0x12b2d5['t'],_0xf7716=this['bindTemplate'],_0x22ccc0=new _0x15da0d();_0x22ccc0['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':[_0x22ccc0,{'text':_0xf7716['to']('imageUploadProgress',_0x398473=>t('Loading\x20image...')+'\x20('+(_0x398473||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x309140{constructor(_0x257782){super(_0x257782);const t=_0x257782['t'];this['set']('errorType',null);const _0x15d45f=new _0x33db85(_0x257782);_0x15d45f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x15d45f['withText']=!0x0,_0x15d45f['class']='ck-button-action',_0x15d45f['on']('execute',()=>{this['fire']('retry');}),_0x15d45f['bind']('isVisible')['to'](this,'errorType',_0x548faf=>'NotFound'!==_0x548faf);const _0xaa47c4=new _0x3677a1();_0xaa47c4['content']=_0x172d42,_0xaa47c4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5ae982=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':[_0xaa47c4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5ae982['to']('errorType',_0x276c1d=>t('NotFound'!==_0x276c1d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x15d45f]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x309140{constructor(_0x309829,_0x1d8a47){super(_0x309829);const _0x379906=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1d8a47,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x379906['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2a462f,_0x9e2fa8,_0x416334){super(_0x2a462f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2a462f),this['_errorView']=new ti(_0x2a462f),this['_editingView']=new ei(_0x2a462f,_0x416334),this['_focusableView']=new _0x309140(_0x2a462f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x9e2fa8),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'],_0x3377a1=>{this['_addUploadcareImageEditorListeners'](_0x3377a1);});}),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'](_0x5ca6f2,_0x42c9ec){const _0x26477b='uc-cloud-image-editor',_0x24cbc8=_0x5ca6f2['querySelector'](_0x26477b);if(_0x24cbc8)return _0x42c9ec(_0x24cbc8);const _0x14eaae=new MutationObserver(_0x12bcf9=>{const _0x2f9989=_0x12bcf9['filter'](_0x4724ce=>_0x4724ce['target']===_0x5ca6f2&&_0x4724ce['addedNodes']['length']>0x0&&_0x4724ce['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x26477b);_0x2f9989['length']&&(_0x14eaae['disconnect'](),_0x42c9ec(_0x2f9989[0x0]['addedNodes'][0x0]));});_0x14eaae['observe'](_0x5ca6f2,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4577c8){_0x4577c8['addEventListener']('apply',_0x367403=>{this['fire']('apply',{'imageSrc':_0x367403['detail']['cdnUrl']});}),_0x4577c8['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x52ce49(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1454a0,_0x1c6d73,_0x73a96c){super(),this['_editor']=_0x1454a0,this['_dialog']=_0x1c6d73,this['_imageElement']=_0x73a96c,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 _0x38c0c5=this['_imageElement'],_0x396026=_0x38c0c5['getAttribute']('uploadcareImageId'),_0x401593=_0x38c0c5['getAttribute']('src');if(_0x396026)await this['_loadImageInfo'](_0x396026,_0x401593);else{if(this['_imageCache']['has'](_0x401593)){const _0x5649b3=this['_imageCache']['get'](_0x401593);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5649b3['url'],this['imageDimension']=_0x5649b3['dimension'],this['imageId']=_0x5649b3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x59026c}=this['_editor'],t=_0x59026c['t'],_0x362614=new X(_0x59026c,this['imageStatus'],this['_attributes']);_0x362614['bind']('status')['to'](this,'imageStatus'),_0x362614['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x362614['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x362614['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x362614,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x72eb95,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x362614,'position':_0x50b8a2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x362614['focus']();},'onHide':()=>{_0x362614['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5630a7=>!A(_0x5630a7,_0x362614['element'])}});}['_loadImageInfo'](_0x2f94f9,_0x310ef3){return j['getInfo'](_0x2f94f9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4e3792=>{const {width:_0x3d36d2,height:_0xe579bd}=_0x4e3792['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x310ef3,this['imageDimension']={'width':_0x3d36d2,'height':_0xe579bd},this['imageId']=_0x2f94f9;})['catch'](_0x47d41b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x47d41b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x186333,_0x348f77){return this['_getImageAsFile'](_0x186333)['then'](_0xc3c3c8=>j['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':_0x348f77['signal'],'file':_0xc3c3c8,'onProgress':_0x3b06cb=>{_0x3b06cb&&_0x3b06cb['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3b06cb['value']));}}))['then'](_0x5c620d=>{const {width:_0x41947b,height:_0x5307c4}=_0x5c620d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5c620d['cdnUrl'],this['imageDimension']={'width':_0x41947b,'height':_0x5307c4},this['imageId']=_0x5c620d['uuid'],this['imageUploadProgress']=null;const _0x23b3e4=_0x186333['getAttribute']('src');this['_imageCache']['set'](_0x23b3e4,{'id':_0x5c620d['uuid'],'url':_0x5c620d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x568763=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x568763['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x574c7d,_0xfe521a){_0x574c7d['on']('apply',(_0x3bdf67,_0xcca2a8)=>{this['_replaceImage'](_0xfe521a,_0xcca2a8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x574c7d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x574c7d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x42a5c4,_0x35568e,_0x309841){const _0x5ac944=this['_editor'],{width:_0x5e60c0,height:_0x18f1c3}=S(_0x35568e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x50dc75,imageSources:_0x88fbcf}=C(_0x35568e,_0x5e60c0);_0x5ac944['model']['change'](_0x37ee6d=>{if('$graveyard'===_0x42a5c4['root']['rootName']){_0x5ac944['execute']('insertImage',{'imageType':_0x42a5c4['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x42a5c4['getAttributes']()),'uploadcareImageId':_0x309841,'src':_0x50dc75,'sources':_0x88fbcf,'width':_0x5e60c0,'height':_0x18f1c3}});const _0x3a5151=_0x42a5c4['getChildren']();_0x42a5c4=_0x5ac944['model']['document']['selection']['getSelectedElement']();for(const _0x4d1471 of _0x3a5151)_0x37ee6d['append'](_0x37ee6d['cloneElement'](_0x4d1471),_0x42a5c4);}else _0x37ee6d['setSelection'](_0x42a5c4,'on'),_0x5ac944['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x42a5c4['getAttributes']()),'uploadcareImageId':_0x309841,'src':_0x50dc75,'sources':_0x88fbcf,'width':_0x5e60c0,'height':_0x18f1c3},_0x42a5c4);_0x37ee6d['setSelection'](_0x42a5c4,'on');});}async['_getImageAsFile'](_0x4e4d75){const _0x36362f=_0x331faf['window'],_0x4a653c=_0x331faf['document']['location']['href'],_0x4afc2a=new _0x36362f['URL'](_0x4e4d75['getAttribute']('src'),_0x4a653c);if('data:'===_0x4afc2a['protocol']){const _0x50e85d=_0x4afc2a['href']['split'](','),_0x23a10e=_0x50e85d[0x0]['match'](/:(.*?);/)[0x1],_0x46433c=_0x23a10e['split']('/')[0x1],_0x5e16ec=_0x36362f['atob'](_0x50e85d[_0x50e85d['length']-0x1]);let _0x467db8=_0x5e16ec['length'];const _0x42b9bf=new _0x36362f['Uint8Array'](_0x467db8);for(;_0x467db8--;)_0x42b9bf[_0x467db8]=_0x5e16ec['charCodeAt'](_0x467db8);return new _0x36362f['File']([_0x42b9bf],'image.'+_0x46433c,{'type':_0x23a10e});}const _0x313072=_0x4afc2a['href']['split']('/'),_0x30b1fe=_0x313072[_0x313072['length']-0x1],_0x1da36c=_0x30b1fe['split']('.')[0x1];return _0x36362f['fetch'](_0x4afc2a['href'])['then'](_0x367cb1=>_0x367cb1['clone']()['blob']())['then'](_0x2fb60f=>new _0x36362f['File']([_0x2fb60f],_0x30b1fe,{'type':'image/'+_0x1da36c}));}}class O extends _0x2446cd{['imageEditController'];static get['requires'](){return[_0x49d3a6];}['_isEditable'];constructor(_0x5f3a8e){super(_0x5f3a8e),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x358964){const _0x29bd26=G(_0x358964);return _0xe18947=>!(!_0xe18947||!_0xe18947['is']('element','imageBlock')&&!_0xe18947['is']('element','imageInline'))&&(!!_0xe18947['hasAttribute']('uploadcareImageId')||!!_0xe18947['hasAttribute']('src')&&_0x29bd26(_0xe18947['getAttribute']('src')));}(_0x5f3a8e['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x8380ee=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x8380ee);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5d1be6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5d1be6&&(_0x5d1be6['is']('element','imageBlock')||_0x5d1be6['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x49d3a6),_0x5d1be6),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x2446cd{['refresh'](){const _0x3d5163=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3d5163&&(_0x3d5163['is']('element','imageBlock')||_0x3d5163['is']('element','imageInline')));}['execute'](_0x196a78){const _0x24bbe1=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2ae954=>{_0x2ae954['setAttributes'](_0x196a78,_0x24bbe1),_0x2ae954['removeAttribute']('srcset',_0x24bbe1),_0x2ae954['removeAttribute']('sizes',_0x24bbe1);});}}class m extends _0xe1bc50{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x72305c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4c5cd6}=this;_0x4c5cd6['commands']['add']('uploadcareImageEdit',new O(_0x4c5cd6)),_0x4c5cd6['commands']['add']('uploadcareImageReplace',new R(_0x4c5cd6));}}class g extends _0xe1bc50{['_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 _0x1e1645=this['editor'];_0x1e1645['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5ed713=>{const _0x28caa5=_0x1e1645['commands']['get']('uploadcareImageEdit'),_0x974a41=new _0x33db85(_0x5ed713),t=_0x5ed713['t'];return _0x974a41['set']({'icon':_0x72eb95,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x974a41['bind']('isEnabled')['to'](_0x28caa5),_0x974a41['bind']('isOn')['to'](_0x28caa5,'isActive'),this['listenTo'](_0x974a41,'execute',()=>{_0x1e1645['execute']('uploadcareImageEdit'),_0x1e1645['editing']['view']['focus']();}),_0x974a41;}),this['_initConfig']();}['_initConfig'](){const _0x3fc66a=_0x3549a1(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3fc66a),this['listenTo'](this['editor'],'destroy',()=>{_0x3fc66a['remove']();});}}class et extends _0xe1bc50{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x3258c9=>0x1!=_0x3258c9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x261343=>{const {af:{dictionary:_0x539ba6,getPluralForm:_0x36c956}}={'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':_0x2d78f3=>0x1!=_0x2d78f3}};_0x261343['af']||={'dictionary':{},'getPluralForm':null},_0x261343['af']['dictionary']=Object['assign'](_0x261343['af']['dictionary'],_0x539ba6),_0x261343['af']['getPluralForm']=_0x36c956;})(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':_0x58a5b9=>0x0==_0x58a5b9?0x0:0x1==_0x58a5b9?0x1:0x2==_0x58a5b9?0x2:_0x58a5b9%0x64>=0x3&&_0x58a5b9%0x64<=0xa?0x3:_0x58a5b9%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x72d169=>{const {ar:{dictionary:_0x3b1819,getPluralForm:_0x2fe6e1}}={'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':_0x3ceb01=>0x0==_0x3ceb01?0x0:0x1==_0x3ceb01?0x1:0x2==_0x3ceb01?0x2:_0x3ceb01%0x64>=0x3&&_0x3ceb01%0x64<=0xa?0x3:_0x3ceb01%0x64>=0xb?0x4:0x5}};_0x72d169['ar']||={'dictionary':{},'getPluralForm':null},_0x72d169['ar']['dictionary']=Object['assign'](_0x72d169['ar']['dictionary'],_0x3b1819),_0x72d169['ar']['getPluralForm']=_0x2fe6e1;})(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':_0x233153=>0x1!=_0x233153}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x25c8ca=>{const {ast:{dictionary:_0x12717f,getPluralForm:_0x1a2077}}={'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':_0x41fee5=>0x1!=_0x41fee5}};_0x25c8ca['ast']||={'dictionary':{},'getPluralForm':null},_0x25c8ca['ast']['dictionary']=Object['assign'](_0x25c8ca['ast']['dictionary'],_0x12717f),_0x25c8ca['ast']['getPluralForm']=_0x1a2077;})(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':_0x322730=>0x1!=_0x322730}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xb67634=>{const {az:{dictionary:_0x5491d0,getPluralForm:_0xba583b}}={'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':_0x52aa93=>0x1!=_0x52aa93}};_0xb67634['az']||={'dictionary':{},'getPluralForm':null},_0xb67634['az']['dictionary']=Object['assign'](_0xb67634['az']['dictionary'],_0x5491d0),_0xb67634['az']['getPluralForm']=_0xba583b;})(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':_0x52e3f9=>_0x52e3f9%0xa==0x1&&_0x52e3f9%0x64!=0xb?0x0:_0x52e3f9%0xa>=0x2&&_0x52e3f9%0xa<=0x4&&(_0x52e3f9%0x64<0xa||_0x52e3f9%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1c6265=>{const {be:{dictionary:_0x21efee,getPluralForm:_0x5aceb3}}={'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':_0x339993=>_0x339993%0xa==0x1&&_0x339993%0x64!=0xb?0x0:_0x339993%0xa>=0x2&&_0x339993%0xa<=0x4&&(_0x339993%0x64<0xa||_0x339993%0x64>=0x14)?0x1:0x2}};_0x1c6265['be']||={'dictionary':{},'getPluralForm':null},_0x1c6265['be']['dictionary']=Object['assign'](_0x1c6265['be']['dictionary'],_0x21efee),_0x1c6265['be']['getPluralForm']=_0x5aceb3;})(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':_0x544cf1=>0x1!=_0x544cf1}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2594c6=>{const {bg:{dictionary:_0x13a623,getPluralForm:_0x5c9d29}}={'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':_0x416e13=>0x1!=_0x416e13}};_0x2594c6['bg']||={'dictionary':{},'getPluralForm':null},_0x2594c6['bg']['dictionary']=Object['assign'](_0x2594c6['bg']['dictionary'],_0x13a623),_0x2594c6['bg']['getPluralForm']=_0x5c9d29;})(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':_0x5b937a=>0x1!=_0x5b937a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2099ba=>{const {bn:{dictionary:_0x1de31a,getPluralForm:_0x1f4499}}={'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':_0x407f7f=>0x1!=_0x407f7f}};_0x2099ba['bn']||={'dictionary':{},'getPluralForm':null},_0x2099ba['bn']['dictionary']=Object['assign'](_0x2099ba['bn']['dictionary'],_0x1de31a),_0x2099ba['bn']['getPluralForm']=_0x1f4499;})(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':_0x318703=>_0x318703%0xa==0x1&&_0x318703%0x64!=0xb?0x0:_0x318703%0xa>=0x2&&_0x318703%0xa<=0x4&&(_0x318703%0x64<0xa||_0x318703%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x53c095=>{const {bs:{dictionary:_0x52d0b9,getPluralForm:_0x468c9f}}={'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':_0x148a0d=>_0x148a0d%0xa==0x1&&_0x148a0d%0x64!=0xb?0x0:_0x148a0d%0xa>=0x2&&_0x148a0d%0xa<=0x4&&(_0x148a0d%0x64<0xa||_0x148a0d%0x64>=0x14)?0x1:0x2}};_0x53c095['bs']||={'dictionary':{},'getPluralForm':null},_0x53c095['bs']['dictionary']=Object['assign'](_0x53c095['bs']['dictionary'],_0x52d0b9),_0x53c095['bs']['getPluralForm']=_0x468c9f;})(window['CKEDITOR_TRANSLATIONS']||={});
|