@ckeditor/ckeditor5-uploadcare 47.7.1-alpha.0 → 47.7.2-alpha.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 _0x1e119d,Command as _0xcf6c66}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3ac9c3,IconGooglePhotos as _0x2a644c,IconGoogleDrive as _0x2ac3bd,IconFacebook as _0x29c9a0,IconDropbox as _0x4d123a,IconUploadcareLink as _0x4b1b9f,IconUploadcareImageUpload as _0x1b6e13,IconError as _0x2a8b34,IconUploadcareImageEdit as _0x34de50}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4df92e,MenuBarMenuListItemButtonView as _0x15d3ff,View as _0x41c584,FocusCycler as _0xa746d3,Dialog as _0x96891a,DialogViewPosition as _0xfd697d,SpinnerView as _0x457457,IconView as _0x9419a6,Notification as _0x4ddc2f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4b2f8c,DomEmitterMixin as _0x397614,global as _0x4e845c,getAncestors as _0x365f8d,ObservableMixin as _0x1ad003,uid as _0x5a6318,createElement as _0x14d4e6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4101ba}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2a0f30,info as _0x3108df}from'@uploadcare/upload-client';import*as _0x5259ab from'@uploadcare/file-uploader';var i=function(_0x49a5af){return _0x49a5af['Local']='local',_0x49a5af['URL']='url',_0x49a5af['Dropbox']='dropbox',_0x49a5af['GDrive']='gdrive',_0x49a5af['Facebook']='facebook',_0x49a5af['GPhotos']='gphotos',_0x49a5af['OneDrive']='onedrive',_0x49a5af;}({});function _(_0x406bb8,_0x545fc9,_0x1dba76){const t=_0x406bb8['t'],_0x57c9d3=_0x406bb8['t'];switch(_0x545fc9){case i['Local']:return{'text':_0x57c9d3('Insert'===_0x1dba76?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x57c9d3('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1dba76?_0x57c9d3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x57c9d3('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1dba76?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1dba76?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1dba76?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1dba76?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1dba76?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x545fc9;}}class e extends _0x1e119d{['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 _0x3dabe7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xff75ad;for(const _0x535411 in _0x3dabe7){const _0x4fae2b=_0x535411,_0xafbaac=_0x3dabe7[_0x4fae2b];if('uploadcareLicenseKeyValid'==_0xafbaac||'uploadcareLicenseKeyInvalid'==_0xafbaac||'uploadcareLicenseKeyExpired'==_0xafbaac||'uploadcareLicenseKeyDomainLimit'==_0xafbaac||'uploadcareLicenseKeyNotAllowed'==_0xafbaac||'uploadcareLicenseKeyEvaluationLimit'==_0xafbaac||'uploadcareLicenseKeyUsageLimit'==_0xafbaac){delete _0x3dabe7[_0x4fae2b],_0xff75ad=_0xafbaac,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xff75ad&&_0x3dabe7['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xff75ad&&_0x3dabe7['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xff75ad&&_0x3dabe7['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xff75ad&&_0x3dabe7['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xff75ad&&_0x3dabe7['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0xff75ad&&_0x3dabe7['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x269ba9}=this,_0x52c980=_0x269ba9['commands']['get']('uploadcare');if(!_0x52c980)return;const _0x1bfe21=this['_normalizeConfigSourceList'](_0x269ba9['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x424d8a,_0x384c1e)=>{const _0x646d8a=this['_getIntegrationKey'](_0x384c1e['type']);return _0x424d8a[_0x646d8a]||(_0x424d8a[_0x646d8a]=[]),_0x424d8a[_0x646d8a]['push'](_0x384c1e),_0x424d8a;},{});_0x269ba9['plugins']['has']('ImageInsertUI')&&_0x269ba9['commands']['get']('uploadcare')&&Object['entries'](_0x1bfe21)['forEach'](([_0x2dba64,_0x43bec9])=>{_0x269ba9['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2dba64,'observable':()=>_0x52c980,'buttonViewCreator':()=>this['_createToolbarButton'](_0x43bec9),'formViewCreator':()=>this['_createDropdownButtons'](_0x43bec9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x43bec9),'override':'assetManager'!==_0x2dba64});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4158a8){const {locale:_0x12aaf4}=this['editor'];return _0x4158a8['map'](_0xc6994=>{const _0x5650a3=_(_0x12aaf4,_0xc6994,'Insert');switch(_0xc6994){case i['Local']:return{'icon':_0x1b6e13,'type':i['Local'],..._0x5650a3};case i['URL']:return{'icon':_0x4b1b9f,'type':i['URL'],..._0x5650a3};case i['Dropbox']:return{'icon':_0x4d123a,'type':i['Dropbox'],..._0x5650a3};case i['Facebook']:return{'icon':_0x29c9a0,'type':i['Facebook'],..._0x5650a3};case i['GDrive']:return{'icon':_0x2ac3bd,'type':i['GDrive'],..._0x5650a3};case i['GPhotos']:return{'icon':_0x2a644c,'type':i['GPhotos'],..._0x5650a3};case i['OneDrive']:return{'icon':_0x3ac9c3,'type':i['OneDrive'],..._0x5650a3};}});}['_getIntegrationKey'](_0x414a44){switch(_0x414a44){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xe2c650,_0x57bea0){const _0x2c66ab=this['editor'],_0x15d09a=new _0xe2c650(_0x2c66ab['locale']),_0x50f7ee=_0x2c66ab['commands']['get']('uploadcare');return _0x15d09a['bind']('isEnabled')['to'](_0x50f7ee),_0x15d09a['on']('execute',()=>{_0x50f7ee['execute'](_0x57bea0);}),_0x15d09a;}['_createToolbarButton'](_0x56d1db){const {locale:_0x5a0421}=this['editor'],_0x260110=this['editor']['plugins']['get']('ImageInsertUI'),_0x8fd841=_0x56d1db[0x0],_0x2c0bca=this['_createButton'](_0x4df92e,_0x8fd841['type']);return _0x2c0bca['icon']=_0x8fd841['icon'],_0x2c0bca['bind']('label')['to'](_0x260110,'isImageSelected',_0x4f5d2d=>_(_0x5a0421,_0x8fd841['type'],_0x4f5d2d?'Replace':'Insert')['text']),_0x2c0bca['tooltip']=!0x0,_0x2c0bca;}['_createDropdownButtons'](_0xb1f100){const {locale:_0x31a51d}=this['editor'],_0x264717=this['editor']['plugins']['get']('ImageInsertUI');return _0xb1f100['map'](_0x4fb6e8=>{const _0x2218f6=this['_createButton'](_0x4df92e,_0x4fb6e8['type']);return _0x2218f6['withText']=!0x0,_0x2218f6['icon']=_0x4fb6e8['icon'],_0x2218f6['bind']('label')['to'](_0x264717,'isImageSelected',_0x53ad35=>_(_0x31a51d,_0x4fb6e8['type'],_0x53ad35?'Replace':'Insert')['text']),_0x2218f6;});}['_createMenuBarButtons'](_0x5c1554){return _0x5c1554['map'](_0x3683c5=>{const _0x42f9a7=this['_createButton'](_0x15d3ff,_0x3683c5['type']);return _0x42f9a7['icon']=_0x3683c5['icon'],_0x42f9a7['label']=_0x3683c5['shortText'],_0x42f9a7;});}}class F extends _0x41c584{['focusTracker'];['focusCycler'];constructor(_0x1e7445){super(_0x1e7445),this['focusTracker']=new _0x4b2f8c(),this['focusCycler']=new _0xa746d3({'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(_0x5ea014,_0x3db272){super(_0x5ea014),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-'+_0x3db272}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x2afad8,_0xbbe9e8){const _0x231239=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x40d791=>_0x40d791<=_0xbbe9e8)['map'](_0x13e997=>_0x2afad8['replace'](/\/$/,'')+'/-/resize/'+_0x13e997+'x/\x20'+_0x13e997+'w');return{'imageFallbackUrl':_0x2afad8,'imageSources':[{'srcset':_0x231239['join'](',\x20'),'sizes':'(max-width:\x20'+_0xbbe9e8+'px)\x20100vw,\x20'+_0xbbe9e8+'px','type':'image/webp'}]};}function S(_0x115ac5,_0x5bedce,_0x406329){const _0x426189=_0x115ac5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x426189?parseInt(_0x426189[0x1],0xa):_0x5bedce,'height':_0x426189?parseInt(_0x426189[0x2],0xa):_0x406329};}function p(_0x3bca22,_0x3a6b7c){const _0x13dc43=new(_0x397614())(),_0x3b8efb=_0x3bca22['plugins']['get']('ImageUtils'),_0x1843da=_0x3bca22['editing']['mapper']['toViewElement'](_0x3a6b7c),_0x5d5f58=_0x3b8efb['findViewImgElement'](_0x1843da),_0xb691a6=_0x3bca22['editing']['view']['domConverter']['viewToDom'](_0x5d5f58),_0x4a529a=_0x3a6b7c['getAttribute']('width'),_0x1c8bfd=_0x3a6b7c['getAttribute']('height'),_0x2ce8d1='image-processing';_0x3bca22['editing']['view']['change'](_0x1146b2=>{_0x1146b2['addClass'](_0x2ce8d1,_0x1843da),_0x1146b2['setStyle']('aspect-ratio',_0x4a529a+'/'+_0x1c8bfd,_0x5d5f58);}),_0x13dc43['listenTo'](_0xb691a6,'load',()=>{_0x13dc43['stopListening'](_0xb691a6,'load'),_0x3bca22['editing']['view']['change'](_0x34190e=>{_0x34190e['removeClass'](_0x2ce8d1,_0x1843da),_0x34190e['removeStyle']('aspect-ratio',_0x5d5f58);});});}function G(_0x14eec0){if(Array['isArray'](_0x14eec0)){const _0x1a6780=_0x14eec0['map'](G);return _0x42b6e4=>_0x1a6780['some'](_0x5cd76c=>_0x5cd76c(_0x42b6e4));}if('origin'==_0x14eec0){const _0x4b5b53=_0x4e845c['window']['location']['origin'];return _0x3c0a12=>new URL(_0x3c0a12,_0x4e845c['document']['baseURI'])['origin']==_0x4b5b53;}return'function'==typeof _0x14eec0?_0x14eec0:_0x14eec0 instanceof RegExp?_0x440139=>!(!_0x440139['match'](_0x14eec0)&&!_0x440139['replace'](/^https?:\/\//,'')['match'](_0x14eec0)):()=>!0x1;}function A(_0x69d7e7,_0xab19b1){return _0x365f8d(_0x69d7e7['target'])['includes'](_0xab19b1);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x1ad003(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2045ba,_0x48f74c,_0x1c6eaa){super(),this['_editor']=_0x2045ba,this['_editing']=_0x48f74c,this['_dialog']=_0x2045ba['plugins']['get'](_0x96891a),this['_api']=_0x48f74c['ctxElement']['getAPI'](),this['_type']=_0x1c6eaa,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:_0x1be74e,model:_0x493c42}=this['_editor'],_0xcdc851=_0x493c42['document']['selection']['getSelectedElement'](),_0x30ace7=_0xcdc851&&(_0xcdc851['is']('element','imageBlock')||_0xcdc851['is']('element','imageInline'));this['_formView']=new x(_0x1be74e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1b6e13,'title':_(_0x1be74e,this['_type'],_0x30ace7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xfd697d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2f70ed=>!A(_0x2f70ed,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x262554}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x40d5c9=>{const _0x2b932f=_0x262554['length'];for(const _0xafe540 of _0x262554){const _0x106498=_0xafe540===_0x262554[_0x2b932f-0x1],{cdnUrl:_0xcf0409,fileInfo:_0x48dffd}=_0xafe540;if(!_0xcf0409||!_0x48dffd)continue;const {width:_0x39ba3d,height:_0x5344e2}=_0x48dffd['imageInfo'],_0x2668c0=S(_0xcf0409,_0x39ba3d,_0x5344e2),_0x4fce11=C(_0xcf0409,_0x2668c0['width']),_0x1badc7={'id':_0x48dffd['uuid'],'type':'image','attributes':{'imageDimension':_0x2668c0,..._0x4fce11}};this['_insertAsset'](_0x1badc7,_0x106498,_0x40d5c9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x29ecec=>{'idle'===_0x29ecec['detail']['status']&&!_0x29ecec['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3aebb1,_0x362719,_0x1a4ffa){const _0x33fcab=this['_editor']['model']['document']['selection'],_0x318c58=_0x33fcab['getSelectedElement'](),_0x3b6fec=!(!_0x318c58||!_0x318c58['is']('element','imageInline'));_0x1a4ffa['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3aebb1,_0x3b6fec),_0x362719||_0x1a4ffa['setSelection'](_0x33fcab['getLastPosition']());}['_insertImage'](_0xc7684d,_0x1c14a1){const _0x59e36d=this['_editor'],{imageDimension:_0x3c37bf,imageFallbackUrl:_0x346cbe,imageSources:_0x13934c}=_0xc7684d['attributes'];_0x59e36d['execute']('insertImage',{'imageType':_0x1c14a1?'imageInline':null,'source':{'uploadcareImageId':_0xc7684d['id'],'src':_0x346cbe,'sources':_0x13934c,..._0x3c37bf}});}}class w extends _0xcf6c66{['_editing'];['_controller']=null;static get['requires'](){return[_0x96891a,o];}constructor(_0x4fedc3){super(_0x4fedc3),this['_editing']=_0x4fedc3['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1c60bb){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1c60bb);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x368d39,..._0x3127cc}){return _0x2a0f30(_0x368d39,_0x3127cc);}static['getInfo'](_0x20f885,_0x1f276e){return _0x3108df(_0x20f885,_0x1f276e);}}class f extends _0x1e119d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4101ba,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x10eac6=this['editor'];if(!!!_0x10eac6['config']['get']('uploadcare'))return;_0x10eac6['plugins']['get'](_0x4101ba)['createUploadAdapter']=_0x554871=>new k(_0x554871,_0x10eac6),_0x10eac6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x676c61,{imageElement:_0x51f193,data:_0x5773fd})=>{_0x10eac6['model']['change'](_0x5d75a0=>{_0x5d75a0['setAttribute']('uploadcareImageId',_0x5773fd['uploadcareImageId'],_0x51f193);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x47606b,_0x54888f){this['loader']=_0x47606b,this['editor']=_0x54888f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x683f98=await this['loader']['file'];return j['upload']({'file':_0x683f98,'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':_0x3d9b03=>{_0x3d9b03&&_0x3d9b03['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3d9b03['value']);}})['then'](async _0xce9867=>{const {imageFallbackUrl:_0x6fdf7,imageSources:_0xefc59e}=C(_0xce9867['cdnUrl'],_0xce9867['imageInfo']['width']);return{'uploadcareImageId':_0xce9867['uuid'],'default':_0x6fdf7,'sources':_0xefc59e};})['catch'](()=>{const _0x1ac139=t('Cannot\x20upload\x20file:')+('\x20'+_0x683f98['name']+'.');return Promise['reject'](_0x1ac139);});}['abort'](){this['controller']['abort']();}}class o extends _0x1e119d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x96891a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x54667b){super(_0x54667b),this['ucContextId']=_0x5a6318();}['init'](){const _0xa3b37=this['editor'];_0xa3b37['commands']['add']('uploadcare',new w(_0xa3b37));}['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 _0xb25641=_0x4e845c['document']['querySelector']('input[uploadcare-file-input]');_0xb25641&&_0xb25641['remove']();}),async function(_0x2c9362){const _0x360921=_0x766812([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]),_0x2a2d06=0x535f8c3a,_0xb55258=0x53580bf2^_0x2a2d06,_0x42aa90=window[_0x766812([0x44,0x61,0x74,0x65])][_0x766812([0x6e,0x6f,0x77])](),_0x2026ef=_0x2c9362[_0x766812([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2eeb1e=new window[(_0x766812([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c5f39=>{_0x2026ef[_0x766812([0x6f,0x6e,0x63,0x65])](_0x766812([0x72,0x65,0x61,0x64,0x79]),_0x4c5f39);}),_0x2a0083={[_0x766812([0x6b,0x74,0x79])]:_0x766812([0x45,0x43]),[_0x766812([0x75,0x73,0x65])]:_0x766812([0x73,0x69,0x67]),[_0x766812([0x63,0x72,0x76])]:_0x766812([0x50,0x2d,0x32,0x35,0x36]),[_0x766812([0x78])]:_0x766812([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]),[_0x766812([0x79])]:_0x766812([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]),[_0x766812([0x61,0x6c,0x67])]:_0x766812([0x45,0x53,0x32,0x35,0x36])},_0x2a70c9=_0x2026ef[_0x766812([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x766812([0x67,0x65,0x74])](_0x766812([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3968ea(){let _0x1c5033,_0x2f7ce1=null,_0x2ed6f3=null;try{if(_0x2a70c9==_0x766812([0x47,0x50,0x4c]))return _0x766812([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c5033=_0x1e59f5(),!_0x1c5033)return _0x766812([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c5033[_0x766812([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ed6f3=_0x2916b6(_0x1c5033[_0x766812([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c5033[_0x766812([0x6a,0x74,0x69])])),await _0x5b0f97()?_0x5a7170()?_0x43202a()?_0x766812([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3f5312()?(_0x1c5033[_0x766812([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x766812([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2f7ce1=_0x46a6b9(_0x766812([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5aeb20()):_0x766812([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x766812([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x766812([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x766812([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x43202a(){const _0x50127f=[_0x766812([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x766812([0x74,0x72,0x69,0x61,0x6c])][_0x766812([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c5033[_0x766812([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x42aa90/0x3e8:0xe10*_0xb55258;return _0x1c5033[_0x766812([0x65,0x78,0x70])]<_0x50127f;}function _0x5a7170(){const _0x3504a7=_0x1c5033[_0x766812([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3504a7&&(!!_0x3504a7[_0x766812([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x766812([0x2a]))||!!_0x3504a7[_0x766812([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x766812([0x55,0x50,0x4c,0x43])));}function _0x3f5312(){const _0x10201f=_0x1c5033[_0x766812([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x10201f||0x0==_0x10201f[_0x766812([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a79eb}=new URL(window[_0x766812([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x10201f[_0x766812([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a79eb))return!0x0;const _0x342a8d=_0x1a79eb[_0x766812([0x73,0x70,0x6c,0x69,0x74])](_0x766812([0x2e]));return _0x10201f[_0x766812([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xff5b7b=>_0xff5b7b[_0x766812([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x766812([0x2a])))[_0x766812([0x6d,0x61,0x70])](_0x5bc006=>_0x5bc006[_0x766812([0x73,0x70,0x6c,0x69,0x74])](_0x766812([0x2e])))[_0x766812([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49456f=>_0x49456f[_0x766812([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x342a8d[_0x766812([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x766812([0x6d,0x61,0x70])](_0x5aa4f8=>Array(_0x342a8d[_0x766812([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5aa4f8[_0x766812([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x766812([0x66,0x69,0x6c,0x6c])](_0x5aa4f8[0x0]===_0x766812([0x2a])?_0x766812([0x2a]):'')[_0x766812([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5aa4f8))[_0x766812([0x73,0x6f,0x6d,0x65])](_0x4984fc=>_0x342a8d[_0x766812([0x65,0x76,0x65,0x72,0x79])]((_0x4ced8f,_0x5a9719)=>_0x4984fc[_0x5a9719]===_0x4ced8f||_0x4984fc[_0x5a9719]===_0x766812([0x2a])));}function _0x5aeb20(){return _0x2f7ce1&&_0x2ed6f3?new window[(_0x766812([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2943b5,_0xbd2eb6)=>{_0x2f7ce1[_0x766812([0x74,0x68,0x65,0x6e])](_0x2943b5,_0xbd2eb6),_0x2ed6f3[_0x766812([0x74,0x68,0x65,0x6e])](_0x1bcafe=>{_0x1bcafe!=_0x766812([0x56,0x61,0x6c,0x69,0x64])&&_0x2943b5(_0x1bcafe);},_0xbd2eb6);}):_0x2f7ce1||_0x2ed6f3||_0x766812([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2916b6(_0x5d17d4,_0x3d0d5e){return new window[(_0x766812([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfd3c74=>{if(_0x1bf214())return _0xfd3c74(_0x766812([0x56,0x61,0x6c,0x69,0x64]));_0x11828c(),_0x2026ef[_0x766812([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x766812([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x130e6a=!0x1;const _0x27ddf0=_0x5a6318();function _0x4e7d45(_0x45f1dc){return!!_0x45f1dc&&(typeof _0x45f1dc===_0x766812([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x45f1dc===_0x766812([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x45f1dc[_0x766812([0x74,0x68,0x65,0x6e])]===_0x766812([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x45f1dc[_0x766812([0x63,0x61,0x74,0x63,0x68])]===_0x766812([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c8120(_0x158bb2){_0x3f1ac8(_0x158bb2)[_0x766812([0x74,0x68,0x65,0x6e])](_0x2463e9=>{if(!_0x2463e9||_0x2463e9[_0x766812([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x766812([0x6f,0x6b]))return _0x766812([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x541889(_0x269075(_0x27ddf0+_0x3d0d5e))!=_0x2463e9[_0x766812([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x766812([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x766812([0x56,0x61,0x6c,0x69,0x64]);})[_0x766812([0x74,0x68,0x65,0x6e])](_0x4282a9=>(_0x11745a(),_0x4282a9),()=>{const _0x571bd0=_0x31a42d();return null==_0x571bd0?(_0x11745a(),_0x766812([0x56,0x61,0x6c,0x69,0x64])):_0x766812(_0x42aa90-_0x571bd0>(0x7753083a^_0x2a2d06)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x766812([0x74,0x68,0x65,0x6e])](_0xfd3c74)[_0x766812([0x63,0x61,0x74,0x63,0x68])](()=>{_0xfd3c74(_0x766812([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5564c2=0x536962ba^_0x2a2d06;function _0x11745a(){const _0x29628c=_0x766812([0x6c,0x6c,0x63,0x74,0x2d])+_0x541889(_0x269075(_0x5d17d4)),_0x6d5fb2=_0x3e48a3(_0x541889(window[_0x766812([0x4d,0x61,0x74,0x68])][_0x766812([0x63,0x65,0x69,0x6c])](_0x42aa90/_0x5564c2)));window[_0x766812([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x766812([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29628c,_0x6d5fb2);}function _0x31a42d(){const _0x11b81c=_0x766812([0x6c,0x6c,0x63,0x74,0x2d])+_0x541889(_0x269075(_0x5d17d4)),_0x316bee=window[_0x766812([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x766812([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11b81c);return _0x316bee?window[_0x766812([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e48a3(_0x316bee),0x10)*_0x5564c2:null;}function _0x3f1ac8(_0xe94cb0){return new window[(_0x766812([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x340793,_0x56f44d)=>{_0xe94cb0[_0x766812([0x74,0x68,0x65,0x6e])](_0x340793,_0x56f44d),window[_0x766812([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56f44d,0x535e58fa^_0x2a2d06);});}}_0x2026ef[_0x766812([0x6f,0x6e])](_0x766812([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x6559c,_0x4177c6)=>{if(_0x4177c6[0x0]!=_0x5d17d4)return _0xfd3c74(_0x766812([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4177c6[0x1]={..._0x4177c6[0x1],[_0x766812([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x27ddf0};},{[_0x766812([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x766812([0x68,0x69,0x67,0x68])}),_0x2026ef[_0x766812([0x6f,0x6e])](_0x766812([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a28bf=>{_0x4e7d45(_0x2a28bf[_0x766812([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x130e6a=!0x0,_0x1c8120(_0x2a28bf[_0x766812([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x766812([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x766812([0x6c,0x6f,0x77])}),_0x2eeb1e[_0x766812([0x74,0x68,0x65,0x6e])](()=>{_0x130e6a||_0xfd3c74(_0x766812([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1bf214(){return _0x2026ef[_0x766812([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x766812([0x76,0x69,0x65,0x77])][_0x766812([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x766812([0x61,0x75,0x74,0x6f]);}function _0x11828c(){_0x2026ef[_0x766812([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x766812([0x76,0x69,0x65,0x77])][_0x766812([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x766812([0x61,0x75,0x74,0x6f]);}}function _0x46a6b9(_0xe890af){const _0x12e21d=[new window[(_0x766812([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40ea25=>setTimeout(_0x40ea25,0x5356b2f6^_0x2a2d06)),_0x2eeb1e[_0x766812([0x74,0x68,0x65,0x6e])](()=>new window[(_0x766812([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x173a25=>{let _0x2cc91c=0x0;_0x2026ef[_0x766812([0x6d,0x6f,0x64,0x65,0x6c])][_0x766812([0x6f,0x6e])](_0x766812([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd109eb,_0x1c7870)=>{_0x1c7870[0x0][_0x766812([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2cc91c++,_0x2cc91c==(0x535f89d2^_0x2a2d06)&&(_0x173a25(),_0xd109eb[_0x766812([0x6f,0x66,0x66])]());});}))];return window[_0x766812([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x766812([0x72,0x61,0x63,0x65])](_0x12e21d)[_0x766812([0x74,0x68,0x65,0x6e])](()=>_0xe890af);}async function _0x302df8(){await _0x2eeb1e,_0x2026ef[_0x766812([0x6d,0x6f,0x64,0x65,0x6c])][_0x766812([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x385d7a,_0x2026ef[_0x766812([0x6d,0x6f,0x64,0x65,0x6c])][_0x766812([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x385d7a,_0x2026ef[_0x766812([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x766812([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x320615(_0x148109){const _0x207d2e=_0x3573e1();_0x2026ef[_0x207d2e]=_0x766812([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x148109,_0x148109!=_0x766812([0x56,0x61,0x6c,0x69,0x64])&&_0x302df8();}function _0x3573e1(){const _0x398edf=window[_0x766812([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x766812([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x766812([0x6e,0x6f,0x77])]())[_0x766812([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x766812([0x2e]),'');let _0xd5a7c3=_0x766812([0x68]);for(let _0x2c1c19=0x0;_0x2c1c19<_0x398edf[_0x766812([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c1c19+=0x2){let _0x48df45=window[_0x766812([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x398edf[_0x766812([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c1c19,_0x2c1c19+0x2));_0x48df45>=_0x360921[_0x766812([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x48df45-=_0x360921[_0x766812([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xd5a7c3+=_0x360921[_0x48df45];}return _0xd5a7c3;}function _0x1e59f5(){const _0x325433=_0x2a70c9[_0x766812([0x73,0x70,0x6c,0x69,0x74])](_0x766812([0x2e]));if(0x3!=_0x325433[_0x766812([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d8d43(_0x325433[0x1]);function _0x1d8d43(_0x4a3e64){const _0x117b2d=_0x590cdb(_0x4a3e64);return _0x117b2d&&_0x5847b0()?_0x117b2d:null;function _0x5847b0(){const _0x145070=_0x117b2d[_0x766812([0x6a,0x74,0x69])],_0x5c337c=window[_0x766812([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x145070[_0x766812([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x145070[_0x766812([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2fcca3={..._0x117b2d,[_0x766812([0x6a,0x74,0x69])]:_0x145070[_0x766812([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x145070[_0x766812([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2fcca3[_0x766812([0x76,0x63])],_0x269075(_0x2fcca3)==_0x5c337c;}}}async function _0x5b0f97(){let _0x4f0041=!0x0;try{const _0x769c45=_0x2a70c9[_0x766812([0x73,0x70,0x6c,0x69,0x74])](_0x766812([0x2e])),[_0x1a0538,_0x44352a,_0x253962]=_0x769c45;return _0x354738(_0x1a0538),await _0x598d4f(_0x1a0538,_0x44352a,_0x253962),_0x4f0041;}catch{return!0x1;}function _0x354738(_0x5e25ba){const _0x116600=_0x590cdb(_0x5e25ba);_0x116600&&_0x116600[_0x766812([0x61,0x6c,0x67])]==_0x766812([0x45,0x53,0x32,0x35,0x36])||(_0x4f0041=!0x1);}async function _0x598d4f(_0x58a8c1,_0x386f5b,_0x2cb74c){const _0x1703b2=window[_0x766812([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x766812([0x66,0x72,0x6f,0x6d])](_0x4afc08(_0x2cb74c),_0xacbe87=>_0xacbe87[_0x766812([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9ef907=new window[(_0x766812([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x766812([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x58a8c1+_0x766812([0x2e])+_0x386f5b),_0x2c09f0=window[_0x766812([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x766812([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2c09f0)return;const _0x26bd5b=await _0x2c09f0[_0x766812([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x766812([0x6a,0x77,0x6b]),_0x2a0083,{[_0x766812([0x6e,0x61,0x6d,0x65])]:_0x766812([0x45,0x43,0x44,0x53,0x41]),[_0x766812([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x766812([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x766812([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2c09f0[_0x766812([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x766812([0x6e,0x61,0x6d,0x65])]:_0x766812([0x45,0x43,0x44,0x53,0x41]),[_0x766812([0x68,0x61,0x73,0x68])]:{[_0x766812([0x6e,0x61,0x6d,0x65])]:_0x766812([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x26bd5b,_0x1703b2,_0x9ef907)||(_0x4f0041=!0x1);}}function _0x590cdb(_0x647d09){return _0x647d09[_0x766812([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x766812([0x65,0x79]))?JSON[_0x766812([0x70,0x61,0x72,0x73,0x65])](_0x4afc08(_0x647d09)):null;}function _0x4afc08(_0x3229ab){return window[_0x766812([0x61,0x74,0x6f,0x62])](_0x3229ab[_0x766812([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x766812([0x2b]))[_0x766812([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x766812([0x2f])));}function _0x269075(_0x33e74c){let _0x40e0a6=0x1505;function _0x580981(_0x18cbbc){for(let _0x16a1b0=0x0;_0x16a1b0<_0x18cbbc[_0x766812([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16a1b0++){const _0x3b464d=_0x18cbbc[_0x766812([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x16a1b0);_0x40e0a6=(_0x40e0a6<<0x5)+_0x40e0a6+_0x3b464d,_0x40e0a6&=_0x40e0a6;}}function _0x57536f(_0x55667c){Array[_0x766812([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x55667c)?_0x55667c[_0x766812([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57536f):_0x55667c&&typeof _0x55667c==_0x766812([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x766812([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x55667c)[_0x766812([0x73,0x6f,0x72,0x74])]()[_0x766812([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c6d18,_0x44ebfe])=>{_0x580981(_0x4c6d18),_0x57536f(_0x44ebfe);}):_0x580981(window[_0x766812([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x55667c));}return _0x57536f(_0x33e74c),_0x40e0a6>>>0x0;}function _0x541889(_0x201c11){return _0x201c11[_0x766812([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x766812([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x766812([0x30]));}function _0x3e48a3(_0x14a41d){return _0x14a41d[_0x766812([0x73,0x70,0x6c,0x69,0x74])]('')[_0x766812([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x766812([0x6a,0x6f,0x69,0x6e])]('');}function _0x385d7a(){}function _0x766812(_0x25048b){return _0x25048b['map'](_0x551d5f=>String['fromCharCode'](_0x551d5f))['join']('');}_0x320615(await _0x3968ea());}(this);}['_initSchema'](){const _0x1794db=this['editor']['model']['schema'];_0x1794db['isRegistered']('imageBlock')&&_0x1794db['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1794db['isRegistered']('imageInline')&&_0x1794db['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3b6f4d=this['editor'];_0x3b6f4d['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3b6f4d['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x160068=>_0x160068['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3a6871=_0x3b6f4d['commands']['get']('replaceImageSource');_0x3a6871&&this['listenTo'](_0x3a6871,'cleanupImage',(_0x2d1fe0,[_0x1b1dec,_0x275a69])=>{_0x1b1dec['removeAttribute']('uploadcareImageId',_0x275a69);});}['_initConfig'](){const _0x3e365d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5d0fd4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x14d4e6(_0x4e845c['document'],'uc-config',{..._0x3e365d,'pubkey':_0x5d0fd4,'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']=_0x52d03e=>{if('closeMax'==_0x52d03e)return'#uc-icon-arrow-down';},_0x4e845c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x14d4e6(_0x4e845c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4e845c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2d1dc3=this['editor']['commands']['get']('insertImage');_0x2d1dc3&&this['listenTo'](_0x2d1dc3,'execute',()=>{const _0x1ee216=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1ee216&&_0x1ee216['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1ee216);});});const _0x401242=this['editor']['commands']['get']('uploadcareImageReplace');_0x401242&&this['listenTo'](_0x401242,'execute',()=>{const _0x24a43d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x24a43d&&_0x24a43d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x24a43d);});});}}class tt extends _0x1e119d{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24c08e){super(_0x24c08e),_0x24c08e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5259ab['defineComponents'](_0x5259ab),this['_defineLocale']();}['_defineLocale'](){const _0x4a97a5=this['editor']['config']['get']('uploadcare.locale'),_0x499e51=this['editor']['locale']['contentLanguage'];_0x4a97a5&&_0x5259ab['defineLocale'](_0x499e51,_0x4a97a5);}}class ii extends _0x41c584{constructor(_0x19b850){super(_0x19b850);const t=_0x19b850['t'],_0x56278b=this['bindTemplate'],_0x28c8f8=new _0x457457();_0x28c8f8['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':[_0x28c8f8,{'text':_0x56278b['to']('imageUploadProgress',_0x43d90b=>t('Loading\x20image...')+'\x20('+(_0x43d90b||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 _0x41c584{constructor(_0x1850f4){super(_0x1850f4);const t=_0x1850f4['t'];this['set']('errorType',null);const _0x25cd19=new _0x4df92e(_0x1850f4);_0x25cd19['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x25cd19['withText']=!0x0,_0x25cd19['class']='ck-button-action',_0x25cd19['on']('execute',()=>{this['fire']('retry');}),_0x25cd19['bind']('isVisible')['to'](this,'errorType',_0x53e63d=>'NotFound'!==_0x53e63d);const _0x44449f=new _0x9419a6();_0x44449f['content']=_0x2a8b34,_0x44449f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2b7074=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':[_0x44449f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2b7074['to']('errorType',_0xc6c14b=>t('NotFound'!==_0xc6c14b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x25cd19]},{'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 _0x41c584{constructor(_0x3d7a5d,_0x14f445){super(_0x3d7a5d);const _0x1f4cf5=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x14f445,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1f4cf5['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2a1200,_0x11cfc5,_0x5204a9){super(_0x2a1200),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2a1200),this['_errorView']=new ti(_0x2a1200),this['_editingView']=new ei(_0x2a1200,_0x5204a9),this['_focusableView']=new _0x41c584(_0x2a1200),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x11cfc5),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'],_0xeb016b=>{this['_addUploadcareImageEditorListeners'](_0xeb016b);});}),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'](_0x30f7ce,_0x432140){const _0x264c17='uc-cloud-image-editor',_0x373db3=_0x30f7ce['querySelector'](_0x264c17);if(_0x373db3)return _0x432140(_0x373db3);const _0x3d33b0=new MutationObserver(_0x3d8b00=>{const _0x296369=_0x3d8b00['filter'](_0x44c05b=>_0x44c05b['target']===_0x30f7ce&&_0x44c05b['addedNodes']['length']>0x0&&_0x44c05b['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x264c17);_0x296369['length']&&(_0x3d33b0['disconnect'](),_0x432140(_0x296369[0x0]['addedNodes'][0x0]));});_0x3d33b0['observe'](_0x30f7ce,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x39fff5){_0x39fff5['addEventListener']('apply',_0xbe8b14=>{this['fire']('apply',{'imageSrc':_0xbe8b14['detail']['cdnUrl']});}),_0x39fff5['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1ad003(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x98e252,_0x3f48ce,_0x1c64cd){super(),this['_editor']=_0x98e252,this['_dialog']=_0x3f48ce,this['_imageElement']=_0x1c64cd,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 _0x2bd2cd=this['_imageElement'],_0xf967b0=_0x2bd2cd['getAttribute']('uploadcareImageId'),_0x2bbf2d=_0x2bd2cd['getAttribute']('src');if(_0xf967b0)await this['_loadImageInfo'](_0xf967b0,_0x2bbf2d);else{if(this['_imageCache']['has'](_0x2bbf2d)){const _0x5989bf=this['_imageCache']['get'](_0x2bbf2d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5989bf['url'],this['imageDimension']=_0x5989bf['dimension'],this['imageId']=_0x5989bf['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xbffb33}=this['_editor'],t=_0xbffb33['t'],_0x51408b=new X(_0xbffb33,this['imageStatus'],this['_attributes']);_0x51408b['bind']('status')['to'](this,'imageStatus'),_0x51408b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x51408b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x51408b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x51408b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x34de50,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x51408b,'position':_0xfd697d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x51408b['focus']();},'onHide':()=>{_0x51408b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x9b2e2b=>!A(_0x9b2e2b,_0x51408b['element'])}});}['_loadImageInfo'](_0x3e3d3a,_0x172060){return j['getInfo'](_0x3e3d3a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1e5129=>{const {width:_0x44fef0,height:_0x5a4349}=_0x1e5129['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x172060,this['imageDimension']={'width':_0x44fef0,'height':_0x5a4349},this['imageId']=_0x3e3d3a;})['catch'](_0x57a67d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x57a67d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x509dab,_0x1d2745){return this['_getImageAsFile'](_0x509dab)['then'](_0x57c6f0=>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':_0x1d2745['signal'],'file':_0x57c6f0,'onProgress':_0x2bc116=>{_0x2bc116&&_0x2bc116['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2bc116['value']));}}))['then'](_0x4baf63=>{const {width:_0x303890,height:_0x596b05}=_0x4baf63['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4baf63['cdnUrl'],this['imageDimension']={'width':_0x303890,'height':_0x596b05},this['imageId']=_0x4baf63['uuid'],this['imageUploadProgress']=null;const _0x54de18=_0x509dab['getAttribute']('src');this['_imageCache']['set'](_0x54de18,{'id':_0x4baf63['uuid'],'url':_0x4baf63['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x30dd72=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x30dd72['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x6d95ed,_0x2d9f68){_0x6d95ed['on']('apply',(_0x2d049b,_0x1e14d5)=>{this['_replaceImage'](_0x2d9f68,_0x1e14d5['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x6d95ed['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x6d95ed['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3b4d63,_0x5d8327,_0xd941){const _0x62997b=this['_editor'],{width:_0x4ad45e,height:_0x29608d}=S(_0x5d8327,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x41cc4c,imageSources:_0x7257a}=C(_0x5d8327,_0x4ad45e);_0x62997b['model']['change'](_0x188f9a=>{if('$graveyard'===_0x3b4d63['root']['rootName']){_0x62997b['execute']('insertImage',{'imageType':_0x3b4d63['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3b4d63['getAttributes']()),'uploadcareImageId':_0xd941,'src':_0x41cc4c,'sources':_0x7257a,'width':_0x4ad45e,'height':_0x29608d}});const _0x4cb510=_0x3b4d63['getChildren']();_0x3b4d63=_0x62997b['model']['document']['selection']['getSelectedElement']();for(const _0x1b7d34 of _0x4cb510)_0x188f9a['append'](_0x188f9a['cloneElement'](_0x1b7d34),_0x3b4d63);}else _0x188f9a['setSelection'](_0x3b4d63,'on'),_0x62997b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3b4d63['getAttributes']()),'uploadcareImageId':_0xd941,'src':_0x41cc4c,'sources':_0x7257a,'width':_0x4ad45e,'height':_0x29608d},_0x3b4d63);_0x188f9a['setSelection'](_0x3b4d63,'on');});}async['_getImageAsFile'](_0x2943f5){const _0x1fb390=_0x4e845c['window'],_0x4fb440=_0x4e845c['document']['location']['href'],_0x3ade95=new _0x1fb390['URL'](_0x2943f5['getAttribute']('src'),_0x4fb440);if('data:'===_0x3ade95['protocol']){const _0xe341c2=_0x3ade95['href']['split'](','),_0x119b55=_0xe341c2[0x0]['match'](/:(.*?);/)[0x1],_0xd9f00b=_0x119b55['split']('/')[0x1],_0x211490=_0x1fb390['atob'](_0xe341c2[_0xe341c2['length']-0x1]);let _0x1d13e5=_0x211490['length'];const _0xd0bc98=new _0x1fb390['Uint8Array'](_0x1d13e5);for(;_0x1d13e5--;)_0xd0bc98[_0x1d13e5]=_0x211490['charCodeAt'](_0x1d13e5);return new _0x1fb390['File']([_0xd0bc98],'image.'+_0xd9f00b,{'type':_0x119b55});}const _0x4cfcb1=_0x3ade95['href']['split']('/'),_0x56654f=_0x4cfcb1[_0x4cfcb1['length']-0x1],_0x2362f9=_0x56654f['split']('.')[0x1];return _0x1fb390['fetch'](_0x3ade95['href'])['then'](_0x46d343=>_0x46d343['clone']()['blob']())['then'](_0x486f61=>new _0x1fb390['File']([_0x486f61],_0x56654f,{'type':'image/'+_0x2362f9}));}}class O extends _0xcf6c66{['imageEditController'];static get['requires'](){return[_0x96891a];}['_isEditable'];constructor(_0x452577){super(_0x452577),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x283658){const _0x3f0ab5=G(_0x283658);return _0x1d43b4=>!(!_0x1d43b4||!_0x1d43b4['is']('element','imageBlock')&&!_0x1d43b4['is']('element','imageInline'))&&(!!_0x1d43b4['hasAttribute']('uploadcareImageId')||!!_0x1d43b4['hasAttribute']('src')&&_0x3f0ab5(_0x1d43b4['getAttribute']('src')));}(_0x452577['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x58ae16=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x58ae16);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1b25bc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1b25bc&&(_0x1b25bc['is']('element','imageBlock')||_0x1b25bc['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x96891a),_0x1b25bc),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0xcf6c66{['refresh'](){const _0xd8373f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xd8373f&&(_0xd8373f['is']('element','imageBlock')||_0xd8373f['is']('element','imageInline')));}['execute'](_0x2a9183){const _0x1e1901=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x318df9=>{_0x318df9['setAttributes'](_0x2a9183,_0x1e1901),_0x318df9['removeAttribute']('srcset',_0x1e1901),_0x318df9['removeAttribute']('sizes',_0x1e1901);});}}class m extends _0x1e119d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4ddc2f,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4ab06e}=this;_0x4ab06e['commands']['add']('uploadcareImageEdit',new O(_0x4ab06e)),_0x4ab06e['commands']['add']('uploadcareImageReplace',new R(_0x4ab06e));}}class g extends _0x1e119d{['_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 _0x16ead6=this['editor'];_0x16ead6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2e7c2b=>{const _0x1ed58a=_0x16ead6['commands']['get']('uploadcareImageEdit'),_0x4864ef=new _0x4df92e(_0x2e7c2b),t=_0x2e7c2b['t'];return _0x4864ef['set']({'icon':_0x34de50,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4864ef['bind']('isEnabled')['to'](_0x1ed58a),_0x4864ef['bind']('isOn')['to'](_0x1ed58a,'isActive'),this['listenTo'](_0x4864ef,'execute',()=>{_0x16ead6['execute']('uploadcareImageEdit'),_0x16ead6['editing']['view']['focus']();}),_0x4864ef;}),this['_initConfig']();}['_initConfig'](){const _0x2499a5=_0x14d4e6(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2499a5),this['listenTo'](this['editor'],'destroy',()=>{_0x2499a5['remove']();});}}class et extends _0x1e119d{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 _0x270dbe,Command as _0x45a90e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x273b9c,IconGooglePhotos as _0x512c5b,IconGoogleDrive as _0x2675ab,IconFacebook as _0x178eb9,IconDropbox as _0x2de5a2,IconUploadcareLink as _0x4e3e8b,IconUploadcareImageUpload as _0x1d8592,IconError as _0x455cfa,IconUploadcareImageEdit as _0x210f75}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1e36f3,MenuBarMenuListItemButtonView as _0x564902,View as _0x45ac62,FocusCycler as _0x398c81,Dialog as _0x3ef61f,DialogViewPosition as _0x299999,SpinnerView as _0x136c9b,IconView as _0x10a792,Notification as _0x4e4416}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x24a01b,DomEmitterMixin as _0x5b9ced,global as _0x2b22b6,getAncestors as _0x47a2d8,ObservableMixin as _0x32e859,uid as _0x17ac84,createElement as _0x39b425}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2bd64a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x550bbc,info as _0x17d3c7}from'@uploadcare/upload-client';import*as _0x1c1721 from'@uploadcare/file-uploader';var i=function(_0x1d2f55){return _0x1d2f55['Local']='local',_0x1d2f55['URL']='url',_0x1d2f55['Dropbox']='dropbox',_0x1d2f55['GDrive']='gdrive',_0x1d2f55['Facebook']='facebook',_0x1d2f55['GPhotos']='gphotos',_0x1d2f55['OneDrive']='onedrive',_0x1d2f55;}({});function _(_0x19641d,_0x146fcb,_0x4380a2){const t=_0x19641d['t'],_0x411fa7=_0x19641d['t'];switch(_0x146fcb){case i['Local']:return{'text':_0x411fa7('Insert'===_0x4380a2?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x411fa7('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4380a2?_0x411fa7('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x411fa7('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4380a2?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4380a2?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4380a2?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4380a2?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4380a2?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x146fcb;}}class e extends _0x270dbe{['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 _0x1f7b7f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5e9a4c;for(const _0x20046c in _0x1f7b7f){const _0x992f4a=_0x20046c,_0x5b0b80=_0x1f7b7f[_0x992f4a];if('uploadcareLicenseKeyValid'==_0x5b0b80||'uploadcareLicenseKeyInvalid'==_0x5b0b80||'uploadcareLicenseKeyExpired'==_0x5b0b80||'uploadcareLicenseKeyDomainLimit'==_0x5b0b80||'uploadcareLicenseKeyNotAllowed'==_0x5b0b80||'uploadcareLicenseKeyEvaluationLimit'==_0x5b0b80||'uploadcareLicenseKeyUsageLimit'==_0x5b0b80){delete _0x1f7b7f[_0x992f4a],_0x5e9a4c=_0x5b0b80,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5e9a4c&&_0x1f7b7f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5e9a4c&&_0x1f7b7f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5e9a4c&&_0x1f7b7f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5e9a4c&&_0x1f7b7f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5e9a4c&&_0x1f7b7f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5e9a4c&&_0x1f7b7f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2ae53b}=this,_0x594052=_0x2ae53b['commands']['get']('uploadcare');if(!_0x594052)return;const _0x149a32=this['_normalizeConfigSourceList'](_0x2ae53b['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x46c192,_0x28e576)=>{const _0x570bc4=this['_getIntegrationKey'](_0x28e576['type']);return _0x46c192[_0x570bc4]||(_0x46c192[_0x570bc4]=[]),_0x46c192[_0x570bc4]['push'](_0x28e576),_0x46c192;},{});_0x2ae53b['plugins']['has']('ImageInsertUI')&&_0x2ae53b['commands']['get']('uploadcare')&&Object['entries'](_0x149a32)['forEach'](([_0x47a7ec,_0x73563e])=>{_0x2ae53b['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x47a7ec,'observable':()=>_0x594052,'buttonViewCreator':()=>this['_createToolbarButton'](_0x73563e),'formViewCreator':()=>this['_createDropdownButtons'](_0x73563e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x73563e),'override':'assetManager'!==_0x47a7ec});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4a6e82){const {locale:_0xb3fe29}=this['editor'];return _0x4a6e82['map'](_0x3446a1=>{const _0x11d744=_(_0xb3fe29,_0x3446a1,'Insert');switch(_0x3446a1){case i['Local']:return{'icon':_0x1d8592,'type':i['Local'],..._0x11d744};case i['URL']:return{'icon':_0x4e3e8b,'type':i['URL'],..._0x11d744};case i['Dropbox']:return{'icon':_0x2de5a2,'type':i['Dropbox'],..._0x11d744};case i['Facebook']:return{'icon':_0x178eb9,'type':i['Facebook'],..._0x11d744};case i['GDrive']:return{'icon':_0x2675ab,'type':i['GDrive'],..._0x11d744};case i['GPhotos']:return{'icon':_0x512c5b,'type':i['GPhotos'],..._0x11d744};case i['OneDrive']:return{'icon':_0x273b9c,'type':i['OneDrive'],..._0x11d744};}});}['_getIntegrationKey'](_0x5f2830){switch(_0x5f2830){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x14949a,_0x3c76e2){const _0x12d0c3=this['editor'],_0x3d173c=new _0x14949a(_0x12d0c3['locale']),_0x40414e=_0x12d0c3['commands']['get']('uploadcare');return _0x3d173c['bind']('isEnabled')['to'](_0x40414e),_0x3d173c['on']('execute',()=>{_0x40414e['execute'](_0x3c76e2);}),_0x3d173c;}['_createToolbarButton'](_0x210ec2){const {locale:_0x50e1d5}=this['editor'],_0xaca3b7=this['editor']['plugins']['get']('ImageInsertUI'),_0xb573d6=_0x210ec2[0x0],_0x4f24f7=this['_createButton'](_0x1e36f3,_0xb573d6['type']);return _0x4f24f7['icon']=_0xb573d6['icon'],_0x4f24f7['bind']('label')['to'](_0xaca3b7,'isImageSelected',_0x3f5f79=>_(_0x50e1d5,_0xb573d6['type'],_0x3f5f79?'Replace':'Insert')['text']),_0x4f24f7['tooltip']=!0x0,_0x4f24f7;}['_createDropdownButtons'](_0xdae485){const {locale:_0x2c71f9}=this['editor'],_0xeefea8=this['editor']['plugins']['get']('ImageInsertUI');return _0xdae485['map'](_0x2a569e=>{const _0x655e90=this['_createButton'](_0x1e36f3,_0x2a569e['type']);return _0x655e90['withText']=!0x0,_0x655e90['icon']=_0x2a569e['icon'],_0x655e90['bind']('label')['to'](_0xeefea8,'isImageSelected',_0x19f395=>_(_0x2c71f9,_0x2a569e['type'],_0x19f395?'Replace':'Insert')['text']),_0x655e90;});}['_createMenuBarButtons'](_0x35c0d4){return _0x35c0d4['map'](_0x24167e=>{const _0x1dca01=this['_createButton'](_0x564902,_0x24167e['type']);return _0x1dca01['icon']=_0x24167e['icon'],_0x1dca01['label']=_0x24167e['shortText'],_0x1dca01;});}}class F extends _0x45ac62{['focusTracker'];['focusCycler'];constructor(_0x534596){super(_0x534596),this['focusTracker']=new _0x24a01b(),this['focusCycler']=new _0x398c81({'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 H extends F{constructor(_0x4fb49d,_0x27100f){super(_0x4fb49d),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-'+_0x27100f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function A(_0x3bbee6,_0x35f7f8){const _0x42f2fc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4c1b7f=>_0x4c1b7f<=_0x35f7f8)['map'](_0x47d34=>_0x3bbee6['replace'](/\/$/,'')+'/-/resize/'+_0x47d34+'x/\x20'+_0x47d34+'w');return{'imageFallbackUrl':_0x3bbee6,'imageSources':[{'srcset':_0x42f2fc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x35f7f8+'px)\x20100vw,\x20'+_0x35f7f8+'px','type':'image/webp'}]};}function x(_0x1ff8bd,_0x7c2169,_0x142a9e){const _0x26e9ba=_0x1ff8bd['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x26e9ba?parseInt(_0x26e9ba[0x1],0xa):_0x7c2169,'height':_0x26e9ba?parseInt(_0x26e9ba[0x2],0xa):_0x142a9e};}function p(_0x15f2ce,_0x478ff7){const _0x2c12f7=new(_0x5b9ced())(),_0x4da509=_0x15f2ce['plugins']['get']('ImageUtils'),_0x39531e=_0x15f2ce['editing']['mapper']['toViewElement'](_0x478ff7),_0x16acf8=_0x4da509['findViewImgElement'](_0x39531e),_0x4dcbba=_0x15f2ce['editing']['view']['domConverter']['viewToDom'](_0x16acf8),_0x228f57=_0x478ff7['getAttribute']('width'),_0x5f01e2=_0x478ff7['getAttribute']('height'),_0x597106='image-processing';_0x15f2ce['editing']['view']['change'](_0x4043fd=>{_0x4043fd['addClass'](_0x597106,_0x39531e),_0x4043fd['setStyle']('aspect-ratio',_0x228f57+'/'+_0x5f01e2,_0x16acf8);}),_0x2c12f7['listenTo'](_0x4dcbba,'load',()=>{_0x2c12f7['stopListening'](_0x4dcbba,'load'),_0x15f2ce['editing']['view']['change'](_0x4be2e6=>{_0x4be2e6['removeClass'](_0x597106,_0x39531e),_0x4be2e6['removeStyle']('aspect-ratio',_0x16acf8);});});}function S(_0x21b1df){if(Array['isArray'](_0x21b1df)){const _0x3e1f4b=_0x21b1df['map'](S);return _0x5e23f3=>_0x3e1f4b['some'](_0x407c4c=>_0x407c4c(_0x5e23f3));}if('origin'==_0x21b1df){const _0x4f9325=_0x2b22b6['window']['location']['origin'];return _0x14122b=>new URL(_0x14122b,_0x2b22b6['document']['baseURI'])['origin']==_0x4f9325;}return'function'==typeof _0x21b1df?_0x21b1df:_0x21b1df instanceof RegExp?_0x239234=>!(!_0x239234['match'](_0x21b1df)&&!_0x239234['replace'](/^https?:\/\//,'')['match'](_0x21b1df)):()=>!0x1;}function C(_0x179fea,_0x4dfa33){return _0x47a2d8(_0x179fea['target'])['includes'](_0x4dfa33);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x32e859(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5387ea,_0x4a7dc1,_0x3f532e){super(),this['_editor']=_0x5387ea,this['_editing']=_0x4a7dc1,this['_dialog']=_0x5387ea['plugins']['get'](_0x3ef61f),this['_api']=_0x4a7dc1['ctxElement']['getAPI'](),this['_type']=_0x3f532e,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:_0x394860,model:_0x4cdc0e}=this['_editor'],_0x1e3e76=_0x4cdc0e['document']['selection']['getSelectedElement'](),_0x5af74f=_0x1e3e76&&(_0x1e3e76['is']('element','imageBlock')||_0x1e3e76['is']('element','imageInline'));this['_formView']=new H(_0x394860,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1d8592,'title':_(_0x394860,this['_type'],_0x5af74f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x299999['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x263bdf=>!C(_0x263bdf,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3c799b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xe42909=>{const _0x45fd08=_0x3c799b['length'];for(const _0x47f510 of _0x3c799b){const _0x3d0dfe=_0x47f510===_0x3c799b[_0x45fd08-0x1],{cdnUrl:_0x3b5010,fileInfo:_0x1d3e05}=_0x47f510;if(!_0x3b5010||!_0x1d3e05)continue;const {width:_0x102d15,height:_0x28ad6b}=_0x1d3e05['imageInfo'],_0x226cd7=x(_0x3b5010,_0x102d15,_0x28ad6b),_0x5cac4a=A(_0x3b5010,_0x226cd7['width']),_0x4604e0={'id':_0x1d3e05['uuid'],'type':'image','attributes':{'imageDimension':_0x226cd7,..._0x5cac4a}};this['_insertAsset'](_0x4604e0,_0x3d0dfe,_0xe42909);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x37b9bd=>{'idle'===_0x37b9bd['detail']['status']&&!_0x37b9bd['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1ba19a,_0x172dc6,_0x397a3f){const _0x3bbcd1=this['_editor']['model']['document']['selection'],_0x5b75d1=_0x3bbcd1['getSelectedElement'](),_0x19b542=!(!_0x5b75d1||!_0x5b75d1['is']('element','imageInline'));_0x397a3f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1ba19a,_0x19b542),_0x172dc6||_0x397a3f['setSelection'](_0x3bbcd1['getLastPosition']());}['_insertImage'](_0x104247,_0x435ce2){const _0x3e7489=this['_editor'],{imageDimension:_0x5229fc,imageFallbackUrl:_0x363f68,imageSources:_0x417ae0}=_0x104247['attributes'];_0x3e7489['execute']('insertImage',{'imageType':_0x435ce2?'imageInline':null,'source':{'uploadcareImageId':_0x104247['id'],'src':_0x363f68,'sources':_0x417ae0,..._0x5229fc}});}}class w extends _0x45a90e{['_editing'];['_controller']=null;static get['requires'](){return[_0x3ef61f,o];}constructor(_0x1b8685){super(_0x1b8685),this['_editing']=_0x1b8685['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x57875a){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x57875a);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x332876,..._0x1d01dc}){return _0x550bbc(_0x332876,_0x1d01dc);}static['getInfo'](_0x3aaa4b,_0x1b9599){return _0x17d3c7(_0x3aaa4b,_0x1b9599);}}class f extends _0x270dbe{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2bd64a,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x23a8bb=this['editor'];if(!!!_0x23a8bb['config']['get']('uploadcare'))return;_0x23a8bb['plugins']['get'](_0x2bd64a)['createUploadAdapter']=_0x5b12ea=>new Adapter(_0x5b12ea,_0x23a8bb),_0x23a8bb['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3c3277,{imageElement:_0x475ae7,data:_0x551b28})=>{_0x23a8bb['model']['change'](_0x1458d6=>{_0x1458d6['setAttribute']('uploadcareImageId',_0x551b28['uploadcareImageId'],_0x475ae7);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x432a5c,_0x42d1c9){this['loader']=_0x432a5c,this['editor']=_0x42d1c9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x16779c=await this['loader']['file'];return j['upload']({'file':_0x16779c,'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':_0x949634=>{_0x949634&&_0x949634['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x949634['value']);}})['then'](async _0x5d22cc=>{const {imageFallbackUrl:_0x1bea3d,imageSources:_0x5e2a3d}=A(_0x5d22cc['cdnUrl'],_0x5d22cc['imageInfo']['width']);return{'uploadcareImageId':_0x5d22cc['uuid'],'default':_0x1bea3d,'sources':_0x5e2a3d};})['catch'](()=>{const _0x49749a=t('Cannot\x20upload\x20file:')+('\x20'+_0x16779c['name']+'.');return Promise['reject'](_0x49749a);});}['abort'](){this['controller']['abort']();}}class o extends _0x270dbe{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3ef61f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5d6d35){super(_0x5d6d35),this['ucContextId']=_0x17ac84();}['init'](){const _0x38881d=this['editor'];_0x38881d['commands']['add']('uploadcare',new w(_0x38881d));}['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 _0xd935f4=_0x2b22b6['document']['querySelector']('input[uploadcare-file-input]');_0xd935f4&&_0xd935f4['remove']();}),async function(_0x9a552){const _0x3694e6=_0x2ac3f5([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]),_0x1156b2=0x535f8c3a,_0x59a6fd=0x5358061a^_0x1156b2,_0x26a37b=window[_0x2ac3f5([0x44,0x61,0x74,0x65])][_0x2ac3f5([0x6e,0x6f,0x77])](),_0x2fa180=_0x9a552[_0x2ac3f5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x41b6dd=new window[(_0x2ac3f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e6e5f=>{_0x2fa180[_0x2ac3f5([0x6f,0x6e,0x63,0x65])](_0x2ac3f5([0x72,0x65,0x61,0x64,0x79]),_0x5e6e5f);}),_0x1de4c3={[_0x2ac3f5([0x6b,0x74,0x79])]:_0x2ac3f5([0x45,0x43]),[_0x2ac3f5([0x75,0x73,0x65])]:_0x2ac3f5([0x73,0x69,0x67]),[_0x2ac3f5([0x63,0x72,0x76])]:_0x2ac3f5([0x50,0x2d,0x32,0x35,0x36]),[_0x2ac3f5([0x78])]:_0x2ac3f5([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]),[_0x2ac3f5([0x79])]:_0x2ac3f5([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]),[_0x2ac3f5([0x61,0x6c,0x67])]:_0x2ac3f5([0x45,0x53,0x32,0x35,0x36])},_0x19c27b=_0x2fa180[_0x2ac3f5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2ac3f5([0x67,0x65,0x74])](_0x2ac3f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x403dd7(){let _0x85388f,_0x2707e1=null,_0x1fa95f=null;try{if(_0x19c27b==_0x2ac3f5([0x47,0x50,0x4c]))return _0x2ac3f5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x85388f=_0x3ccb66(),!_0x85388f)return _0x2ac3f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x85388f[_0x2ac3f5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1fa95f=_0x1198aa(_0x85388f[_0x2ac3f5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x85388f[_0x2ac3f5([0x6a,0x74,0x69])])),await _0x1f9721()?_0x571b9b()?_0x461ab7()?_0x2ac3f5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x36f556()?(_0x85388f[_0x2ac3f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ac3f5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2707e1=_0x49f0d1(_0x2ac3f5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x997199()):_0x2ac3f5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2ac3f5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2ac3f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2ac3f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x461ab7(){const _0x53c978=[_0x2ac3f5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2ac3f5([0x74,0x72,0x69,0x61,0x6c])][_0x2ac3f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x85388f[_0x2ac3f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26a37b/0x3e8:0xe10*_0x59a6fd;return _0x85388f[_0x2ac3f5([0x65,0x78,0x70])]<_0x53c978;}function _0x571b9b(){const _0x5b1045=_0x85388f[_0x2ac3f5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5b1045&&(!!_0x5b1045[_0x2ac3f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ac3f5([0x2a]))||!!_0x5b1045[_0x2ac3f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ac3f5([0x55,0x50,0x4c,0x43])));}function _0x36f556(){const _0xb60490=_0x85388f[_0x2ac3f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb60490||0x0==_0xb60490[_0x2ac3f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1600e3}=new URL(window[_0x2ac3f5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb60490[_0x2ac3f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1600e3))return!0x0;const _0x4814f3=_0x1600e3[_0x2ac3f5([0x73,0x70,0x6c,0x69,0x74])](_0x2ac3f5([0x2e]));return _0xb60490[_0x2ac3f5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d80e2=>_0x4d80e2[_0x2ac3f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ac3f5([0x2a])))[_0x2ac3f5([0x6d,0x61,0x70])](_0x47548e=>_0x47548e[_0x2ac3f5([0x73,0x70,0x6c,0x69,0x74])](_0x2ac3f5([0x2e])))[_0x2ac3f5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e8b0e=>_0x2e8b0e[_0x2ac3f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4814f3[_0x2ac3f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ac3f5([0x6d,0x61,0x70])](_0x208c1c=>Array(_0x4814f3[_0x2ac3f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x208c1c[_0x2ac3f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ac3f5([0x66,0x69,0x6c,0x6c])](_0x208c1c[0x0]===_0x2ac3f5([0x2a])?_0x2ac3f5([0x2a]):'')[_0x2ac3f5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x208c1c))[_0x2ac3f5([0x73,0x6f,0x6d,0x65])](_0x54e9df=>_0x4814f3[_0x2ac3f5([0x65,0x76,0x65,0x72,0x79])]((_0x3a9a90,_0x333f6d)=>_0x54e9df[_0x333f6d]===_0x3a9a90||_0x54e9df[_0x333f6d]===_0x2ac3f5([0x2a])));}function _0x997199(){return _0x2707e1&&_0x1fa95f?new window[(_0x2ac3f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x150dd7,_0x5b470f)=>{_0x2707e1[_0x2ac3f5([0x74,0x68,0x65,0x6e])](_0x150dd7,_0x5b470f),_0x1fa95f[_0x2ac3f5([0x74,0x68,0x65,0x6e])](_0x590bea=>{_0x590bea!=_0x2ac3f5([0x56,0x61,0x6c,0x69,0x64])&&_0x150dd7(_0x590bea);},_0x5b470f);}):_0x2707e1||_0x1fa95f||_0x2ac3f5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1198aa(_0xa210e3,_0x6f6955){return new window[(_0x2ac3f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x518539=>{if(_0x34f3e6())return _0x518539(_0x2ac3f5([0x56,0x61,0x6c,0x69,0x64]));_0x16774f(),_0x2fa180[_0x2ac3f5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2ac3f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e6dde=!0x1;const _0x537d5b=_0x17ac84();function _0xf8bf33(_0x59a857){return!!_0x59a857&&(typeof _0x59a857===_0x2ac3f5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x59a857===_0x2ac3f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x59a857[_0x2ac3f5([0x74,0x68,0x65,0x6e])]===_0x2ac3f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x59a857[_0x2ac3f5([0x63,0x61,0x74,0x63,0x68])]===_0x2ac3f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ac784(_0x4c68be){_0x49ec47(_0x4c68be)[_0x2ac3f5([0x74,0x68,0x65,0x6e])](_0x5076ff=>{if(!_0x5076ff||_0x5076ff[_0x2ac3f5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2ac3f5([0x6f,0x6b]))return _0x2ac3f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x56aec6(_0x37de42(_0x537d5b+_0x6f6955))!=_0x5076ff[_0x2ac3f5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2ac3f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2ac3f5([0x56,0x61,0x6c,0x69,0x64]);})[_0x2ac3f5([0x74,0x68,0x65,0x6e])](_0x16b100=>(_0x1bb1a2(),_0x16b100),()=>{const _0x2d27b8=_0x376d79();return null==_0x2d27b8?(_0x1bb1a2(),_0x2ac3f5([0x56,0x61,0x6c,0x69,0x64])):_0x2ac3f5(_0x26a37b-_0x2d27b8>(0x7753083a^_0x1156b2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2ac3f5([0x74,0x68,0x65,0x6e])](_0x518539)[_0x2ac3f5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x518539(_0x2ac3f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x29c71d=0x536962ba^_0x1156b2;function _0x1bb1a2(){const _0x9fb49c=_0x2ac3f5([0x6c,0x6c,0x63,0x74,0x2d])+_0x56aec6(_0x37de42(_0xa210e3)),_0x2a9525=_0x3a5ce0(_0x56aec6(window[_0x2ac3f5([0x4d,0x61,0x74,0x68])][_0x2ac3f5([0x63,0x65,0x69,0x6c])](_0x26a37b/_0x29c71d)));window[_0x2ac3f5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ac3f5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x9fb49c,_0x2a9525);}function _0x376d79(){const _0x38fa9d=_0x2ac3f5([0x6c,0x6c,0x63,0x74,0x2d])+_0x56aec6(_0x37de42(_0xa210e3)),_0x37897c=window[_0x2ac3f5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ac3f5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38fa9d);return _0x37897c?window[_0x2ac3f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a5ce0(_0x37897c),0x10)*_0x29c71d:null;}function _0x49ec47(_0x298eb6){return new window[(_0x2ac3f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7e4c67,_0x45067c)=>{_0x298eb6[_0x2ac3f5([0x74,0x68,0x65,0x6e])](_0x7e4c67,_0x45067c),window[_0x2ac3f5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x45067c,0x535e58fa^_0x1156b2);});}}_0x2fa180[_0x2ac3f5([0x6f,0x6e])](_0x2ac3f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x167d74,_0x4833bb)=>{if(_0x4833bb[0x0]!=_0xa210e3)return _0x518539(_0x2ac3f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4833bb[0x1]={..._0x4833bb[0x1],[_0x2ac3f5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x537d5b};},{[_0x2ac3f5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ac3f5([0x68,0x69,0x67,0x68])}),_0x2fa180[_0x2ac3f5([0x6f,0x6e])](_0x2ac3f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x36eb4f=>{_0xf8bf33(_0x36eb4f[_0x2ac3f5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e6dde=!0x0,_0x2ac784(_0x36eb4f[_0x2ac3f5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2ac3f5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ac3f5([0x6c,0x6f,0x77])}),_0x41b6dd[_0x2ac3f5([0x74,0x68,0x65,0x6e])](()=>{_0x3e6dde||_0x518539(_0x2ac3f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x34f3e6(){return _0x2fa180[_0x2ac3f5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ac3f5([0x76,0x69,0x65,0x77])][_0x2ac3f5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2ac3f5([0x61,0x75,0x74,0x6f]);}function _0x16774f(){_0x2fa180[_0x2ac3f5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ac3f5([0x76,0x69,0x65,0x77])][_0x2ac3f5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ac3f5([0x61,0x75,0x74,0x6f]);}}function _0x49f0d1(_0x4f8781){const _0x2d21f1=[new window[(_0x2ac3f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a48e1=>setTimeout(_0x5a48e1,0x5356b2f6^_0x1156b2)),_0x41b6dd[_0x2ac3f5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2ac3f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b9e42=>{let _0x5c6fcc=0x0;_0x2fa180[_0x2ac3f5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ac3f5([0x6f,0x6e])](_0x2ac3f5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x122e61,_0x46e1ee)=>{_0x46e1ee[0x0][_0x2ac3f5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c6fcc++,_0x5c6fcc==(0x535f89d2^_0x1156b2)&&(_0x1b9e42(),_0x122e61[_0x2ac3f5([0x6f,0x66,0x66])]());});}))];return window[_0x2ac3f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ac3f5([0x72,0x61,0x63,0x65])](_0x2d21f1)[_0x2ac3f5([0x74,0x68,0x65,0x6e])](()=>_0x4f8781);}async function _0x5a6745(){await _0x41b6dd,_0x2fa180[_0x2ac3f5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ac3f5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b8946,_0x2fa180[_0x2ac3f5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ac3f5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b8946,_0x2fa180[_0x2ac3f5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2ac3f5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2534df(_0x3890be){const _0x22bda3=_0xb02d19();_0x2fa180[_0x22bda3]=_0x2ac3f5([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3890be,_0x3890be!=_0x2ac3f5([0x56,0x61,0x6c,0x69,0x64])&&_0x5a6745();}function _0xb02d19(){const _0x9354=window[_0x2ac3f5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2ac3f5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2ac3f5([0x6e,0x6f,0x77])]())[_0x2ac3f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2ac3f5([0x2e]),'');let _0x33abb3=_0x2ac3f5([0x68]);for(let _0x357d55=0x0;_0x357d55<_0x9354[_0x2ac3f5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x357d55+=0x2){let _0x52e956=window[_0x2ac3f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9354[_0x2ac3f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x357d55,_0x357d55+0x2));_0x52e956>=_0x3694e6[_0x2ac3f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x52e956-=_0x3694e6[_0x2ac3f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x33abb3+=_0x3694e6[_0x52e956];}return _0x33abb3;}function _0x3ccb66(){const _0x5c62c2=_0x19c27b[_0x2ac3f5([0x73,0x70,0x6c,0x69,0x74])](_0x2ac3f5([0x2e]));if(0x3!=_0x5c62c2[_0x2ac3f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x24ba4a(_0x5c62c2[0x1]);function _0x24ba4a(_0x4a04ce){const _0x414207=_0x1e9d18(_0x4a04ce);return _0x414207&&_0xd2f2d4()?_0x414207:null;function _0xd2f2d4(){const _0x269acf=_0x414207[_0x2ac3f5([0x6a,0x74,0x69])],_0x48dc6b=window[_0x2ac3f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x269acf[_0x2ac3f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x269acf[_0x2ac3f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x411d46={..._0x414207,[_0x2ac3f5([0x6a,0x74,0x69])]:_0x269acf[_0x2ac3f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x269acf[_0x2ac3f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x411d46[_0x2ac3f5([0x76,0x63])],_0x37de42(_0x411d46)==_0x48dc6b;}}}async function _0x1f9721(){let _0x1475bb=!0x0;try{const _0x4dd32c=_0x19c27b[_0x2ac3f5([0x73,0x70,0x6c,0x69,0x74])](_0x2ac3f5([0x2e])),[_0x4c34b2,_0x2b23b4,_0x3f860a]=_0x4dd32c;return _0x463855(_0x4c34b2),await _0x413c11(_0x4c34b2,_0x2b23b4,_0x3f860a),_0x1475bb;}catch{return!0x1;}function _0x463855(_0x5678f5){const _0x2e4ac9=_0x1e9d18(_0x5678f5);_0x2e4ac9&&_0x2e4ac9[_0x2ac3f5([0x61,0x6c,0x67])]==_0x2ac3f5([0x45,0x53,0x32,0x35,0x36])||(_0x1475bb=!0x1);}async function _0x413c11(_0x494b66,_0x2bd581,_0x52e907){const _0x2783dc=window[_0x2ac3f5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2ac3f5([0x66,0x72,0x6f,0x6d])](_0x82343b(_0x52e907),_0x123d21=>_0x123d21[_0x2ac3f5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x395288=new window[(_0x2ac3f5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2ac3f5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x494b66+_0x2ac3f5([0x2e])+_0x2bd581),_0x583810=window[_0x2ac3f5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2ac3f5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x583810)return;const _0x44cd53=await _0x583810[_0x2ac3f5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2ac3f5([0x6a,0x77,0x6b]),_0x1de4c3,{[_0x2ac3f5([0x6e,0x61,0x6d,0x65])]:_0x2ac3f5([0x45,0x43,0x44,0x53,0x41]),[_0x2ac3f5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2ac3f5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2ac3f5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x583810[_0x2ac3f5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2ac3f5([0x6e,0x61,0x6d,0x65])]:_0x2ac3f5([0x45,0x43,0x44,0x53,0x41]),[_0x2ac3f5([0x68,0x61,0x73,0x68])]:{[_0x2ac3f5([0x6e,0x61,0x6d,0x65])]:_0x2ac3f5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44cd53,_0x2783dc,_0x395288)||(_0x1475bb=!0x1);}}function _0x1e9d18(_0x2c8c70){return _0x2c8c70[_0x2ac3f5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2ac3f5([0x65,0x79]))?JSON[_0x2ac3f5([0x70,0x61,0x72,0x73,0x65])](_0x82343b(_0x2c8c70)):null;}function _0x82343b(_0x310ff5){return window[_0x2ac3f5([0x61,0x74,0x6f,0x62])](_0x310ff5[_0x2ac3f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2ac3f5([0x2b]))[_0x2ac3f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2ac3f5([0x2f])));}function _0x37de42(_0x3ed170){let _0x12222a=0x1505;function _0x2e9b98(_0x4904d4){for(let _0x40a8ad=0x0;_0x40a8ad<_0x4904d4[_0x2ac3f5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40a8ad++){const _0x54f15e=_0x4904d4[_0x2ac3f5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x40a8ad);_0x12222a=(_0x12222a<<0x5)+_0x12222a+_0x54f15e,_0x12222a&=_0x12222a;}}function _0xfe43ab(_0x1bf883){Array[_0x2ac3f5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1bf883)?_0x1bf883[_0x2ac3f5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xfe43ab):_0x1bf883&&typeof _0x1bf883==_0x2ac3f5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2ac3f5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1bf883)[_0x2ac3f5([0x73,0x6f,0x72,0x74])]()[_0x2ac3f5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5bfa00,_0x1c8fe5])=>{_0x2e9b98(_0x5bfa00),_0xfe43ab(_0x1c8fe5);}):_0x2e9b98(window[_0x2ac3f5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1bf883));}return _0xfe43ab(_0x3ed170),_0x12222a>>>0x0;}function _0x56aec6(_0x87e640){return _0x87e640[_0x2ac3f5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2ac3f5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2ac3f5([0x30]));}function _0x3a5ce0(_0x39f567){return _0x39f567[_0x2ac3f5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2ac3f5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2ac3f5([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b8946(){}function _0x2ac3f5(_0x11049b){return _0x11049b['map'](_0x5c5833=>String['fromCharCode'](_0x5c5833))['join']('');}_0x2534df(await _0x403dd7());}(this);}['_initSchema'](){const _0x50a26c=this['editor']['model']['schema'];_0x50a26c['isRegistered']('imageBlock')&&_0x50a26c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x50a26c['isRegistered']('imageInline')&&_0x50a26c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x47f640=this['editor'];_0x47f640['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x47f640['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3d4935=>_0x3d4935['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x290b17=_0x47f640['commands']['get']('replaceImageSource');_0x290b17&&this['listenTo'](_0x290b17,'cleanupImage',(_0x32906d,[_0x459ba3,_0x2d1a4b])=>{_0x459ba3['removeAttribute']('uploadcareImageId',_0x2d1a4b);});}['_initConfig'](){const _0x1ddd05=this['editor']['config']['get']('uploadcare.uploader')||{},_0xa728c7=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x39b425(_0x2b22b6['document'],'uc-config',{..._0x1ddd05,'pubkey':_0xa728c7,'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']=_0x3b0f3d=>{if('closeMax'==_0x3b0f3d)return'#uc-icon-arrow-down';},_0x2b22b6['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x39b425(_0x2b22b6['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2b22b6['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x52c625=this['editor']['commands']['get']('insertImage');_0x52c625&&this['listenTo'](_0x52c625,'execute',()=>{const _0x4b300e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4b300e&&_0x4b300e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4b300e);});});const _0x15d03d=this['editor']['commands']['get']('uploadcareImageReplace');_0x15d03d&&this['listenTo'](_0x15d03d,'execute',()=>{const _0x40c3d1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x40c3d1&&_0x40c3d1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x40c3d1);});});}}class Uploadcare extends _0x270dbe{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5698bd){super(_0x5698bd),_0x5698bd['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1c1721['defineComponents'](_0x1c1721),this['_defineLocale']();}['_defineLocale'](){const _0x2241cc=this['editor']['config']['get']('uploadcare.locale'),_0x4bb903=this['editor']['locale']['contentLanguage'];_0x2241cc&&_0x1c1721['defineLocale'](_0x4bb903,_0x2241cc);}}class ii extends _0x45ac62{constructor(_0x1480ad){super(_0x1480ad);const t=_0x1480ad['t'],_0x1c7bd4=this['bindTemplate'],_0x447abb=new _0x136c9b();_0x447abb['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':[_0x447abb,{'text':_0x1c7bd4['to']('imageUploadProgress',_0x4cb9c2=>t('Loading\x20image...')+'\x20('+(_0x4cb9c2||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 _0x45ac62{constructor(_0x3479c7){super(_0x3479c7);const t=_0x3479c7['t'];this['set']('errorType',null);const _0x251042=new _0x1e36f3(_0x3479c7);_0x251042['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x251042['withText']=!0x0,_0x251042['class']='ck-button-action',_0x251042['on']('execute',()=>{this['fire']('retry');}),_0x251042['bind']('isVisible')['to'](this,'errorType',_0x2fcfe8=>'NotFound'!==_0x2fcfe8);const _0x46aae7=new _0x10a792();_0x46aae7['content']=_0x455cfa,_0x46aae7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x411f6e=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':[_0x46aae7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x411f6e['to']('errorType',_0x8bc6ba=>t('NotFound'!==_0x8bc6ba?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x251042]},{'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 _0x45ac62{constructor(_0x4da54e,_0x198d2c){super(_0x4da54e);const _0x37a5ff=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x198d2c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x37a5ff['to']('imageSrc')}});}}class W extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x36ce28,_0x123c42,_0x277f90){super(_0x36ce28),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x36ce28),this['_errorView']=new ti(_0x36ce28),this['_editingView']=new ei(_0x36ce28,_0x277f90),this['_focusableView']=new _0x45ac62(_0x36ce28),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x123c42),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'],_0x438532=>{this['_addUploadcareImageEditorListeners'](_0x438532);});}),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'](_0x304b64,_0x58fb6e){const _0x4c7556='uc-cloud-image-editor',_0x2e4280=_0x304b64['querySelector'](_0x4c7556);if(_0x2e4280)return _0x58fb6e(_0x2e4280);const _0x18b9a9=new MutationObserver(_0x4e3815=>{const _0x12e1b1=_0x4e3815['filter'](_0x48201b=>_0x48201b['target']===_0x304b64&&_0x48201b['addedNodes']['length']>0x0&&_0x48201b['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4c7556);_0x12e1b1['length']&&(_0x18b9a9['disconnect'](),_0x58fb6e(_0x12e1b1[0x0]['addedNodes'][0x0]));});_0x18b9a9['observe'](_0x304b64,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x768825){_0x768825['addEventListener']('apply',_0x32bf3c=>{this['fire']('apply',{'imageSrc':_0x32bf3c['detail']['cdnUrl']});}),_0x768825['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x32e859(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5a1266,_0x218023,_0x3fb739){super(),this['_editor']=_0x5a1266,this['_dialog']=_0x218023,this['_imageElement']=_0x3fb739,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 _0x7f1025=this['_imageElement'],_0x59efec=_0x7f1025['getAttribute']('uploadcareImageId'),_0x5acb2f=_0x7f1025['getAttribute']('src');if(_0x59efec)await this['_loadImageInfo'](_0x59efec,_0x5acb2f);else{if(this['_imageCache']['has'](_0x5acb2f)){const _0x3447b1=this['_imageCache']['get'](_0x5acb2f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3447b1['url'],this['imageDimension']=_0x3447b1['dimension'],this['imageId']=_0x3447b1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4440bf}=this['_editor'],t=_0x4440bf['t'],_0xa3119b=new W(_0x4440bf,this['imageStatus'],this['_attributes']);_0xa3119b['bind']('status')['to'](this,'imageStatus'),_0xa3119b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xa3119b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xa3119b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xa3119b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x210f75,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xa3119b,'position':_0x299999['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xa3119b['focus']();},'onHide':()=>{_0xa3119b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x44abf0=>!C(_0x44abf0,_0xa3119b['element'])}});}['_loadImageInfo'](_0x49943e,_0x905e8b){return j['getInfo'](_0x49943e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x36c7e0=>{const {width:_0x53b3ae,height:_0x43dbb0}=_0x36c7e0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x905e8b,this['imageDimension']={'width':_0x53b3ae,'height':_0x43dbb0},this['imageId']=_0x49943e;})['catch'](_0x2c9bf5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c9bf5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x452036,_0x163471){return this['_getImageAsFile'](_0x452036)['then'](_0x1c9fee=>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':_0x163471['signal'],'file':_0x1c9fee,'onProgress':_0x37026c=>{_0x37026c&&_0x37026c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x37026c['value']));}}))['then'](_0x43a40a=>{const {width:_0x5e40f1,height:_0x48b026}=_0x43a40a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x43a40a['cdnUrl'],this['imageDimension']={'width':_0x5e40f1,'height':_0x48b026},this['imageId']=_0x43a40a['uuid'],this['imageUploadProgress']=null;const _0x27fe49=_0x452036['getAttribute']('src');this['_imageCache']['set'](_0x27fe49,{'id':_0x43a40a['uuid'],'url':_0x43a40a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xed22b3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xed22b3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x553ad7,_0x5c0826){_0x553ad7['on']('apply',(_0x43629b,_0x337d4a)=>{this['_replaceImage'](_0x5c0826,_0x337d4a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x553ad7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x553ad7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x395767,_0x46fe9c,_0x5f4cf8){const _0x52288f=this['_editor'],{width:_0xd0c1a5,height:_0x346843}=x(_0x46fe9c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x345fe3,imageSources:_0x403b21}=A(_0x46fe9c,_0xd0c1a5);_0x52288f['model']['change'](_0xa8112a=>{if('$graveyard'===_0x395767['root']['rootName']){_0x52288f['execute']('insertImage',{'imageType':_0x395767['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x395767['getAttributes']()),'uploadcareImageId':_0x5f4cf8,'src':_0x345fe3,'sources':_0x403b21,'width':_0xd0c1a5,'height':_0x346843}});const _0x5c613f=_0x395767['getChildren']();_0x395767=_0x52288f['model']['document']['selection']['getSelectedElement']();for(const _0x501cdc of _0x5c613f)_0xa8112a['append'](_0xa8112a['cloneElement'](_0x501cdc),_0x395767);}else _0xa8112a['setSelection'](_0x395767,'on'),_0x52288f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x395767['getAttributes']()),'uploadcareImageId':_0x5f4cf8,'src':_0x345fe3,'sources':_0x403b21,'width':_0xd0c1a5,'height':_0x346843},_0x395767);_0xa8112a['setSelection'](_0x395767,'on');});}async['_getImageAsFile'](_0xb857d2){const _0x1d2b82=_0x2b22b6['window'],_0x463511=_0x2b22b6['document']['location']['href'],_0x1d99dd=new _0x1d2b82['URL'](_0xb857d2['getAttribute']('src'),_0x463511);if('data:'===_0x1d99dd['protocol']){const _0x36fc5a=_0x1d99dd['href']['split'](','),_0x17e32a=_0x36fc5a[0x0]['match'](/:(.*?);/)[0x1],_0x271c5c=_0x17e32a['split']('/')[0x1],_0xafeb34=_0x1d2b82['atob'](_0x36fc5a[_0x36fc5a['length']-0x1]);let _0x2f40ee=_0xafeb34['length'];const _0x17d567=new _0x1d2b82['Uint8Array'](_0x2f40ee);for(;_0x2f40ee--;)_0x17d567[_0x2f40ee]=_0xafeb34['charCodeAt'](_0x2f40ee);return new _0x1d2b82['File']([_0x17d567],'image.'+_0x271c5c,{'type':_0x17e32a});}const _0x579fa0=_0x1d99dd['href']['split']('/'),_0x231811=_0x579fa0[_0x579fa0['length']-0x1],_0x3ce2f8=_0x231811['split']('.')[0x1];return _0x1d2b82['fetch'](_0x1d99dd['href'])['then'](_0x569ad2=>_0x569ad2['clone']()['blob']())['then'](_0x29655b=>new _0x1d2b82['File']([_0x29655b],_0x231811,{'type':'image/'+_0x3ce2f8}));}}class O extends _0x45a90e{['imageEditController'];static get['requires'](){return[_0x3ef61f];}['_isEditable'];constructor(_0x5212e0){super(_0x5212e0),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3e74f2){const _0x21c7ce=S(_0x3e74f2);return _0x33e035=>!(!_0x33e035||!_0x33e035['is']('element','imageBlock')&&!_0x33e035['is']('element','imageInline'))&&(!!_0x33e035['hasAttribute']('uploadcareImageId')||!!_0x33e035['hasAttribute']('src')&&_0x21c7ce(_0x33e035['getAttribute']('src')));}(_0x5212e0['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x47369e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x47369e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x195304=this['editor']['model']['document']['selection']['getSelectedElement']();_0x195304&&(_0x195304['is']('element','imageBlock')||_0x195304['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x3ef61f),_0x195304),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x45a90e{['refresh'](){const _0x2d9a97=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2d9a97&&(_0x2d9a97['is']('element','imageBlock')||_0x2d9a97['is']('element','imageInline')));}['execute'](_0x55a97b){const _0x1d5dbf=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4fc2fb=>{_0x4fc2fb['setAttributes'](_0x55a97b,_0x1d5dbf),_0x4fc2fb['removeAttribute']('srcset',_0x1d5dbf),_0x4fc2fb['removeAttribute']('sizes',_0x1d5dbf);});}}class m extends _0x270dbe{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4e4416,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2e0e7b}=this;_0x2e0e7b['commands']['add']('uploadcareImageEdit',new O(_0x2e0e7b)),_0x2e0e7b['commands']['add']('uploadcareImageReplace',new R(_0x2e0e7b));}}class g extends _0x270dbe{['_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 _0x1f8ae6=this['editor'];_0x1f8ae6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x214b58=>{const _0x1dfc23=_0x1f8ae6['commands']['get']('uploadcareImageEdit'),_0x39921a=new _0x1e36f3(_0x214b58),t=_0x214b58['t'];return _0x39921a['set']({'icon':_0x210f75,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x39921a['bind']('isEnabled')['to'](_0x1dfc23),_0x39921a['bind']('isOn')['to'](_0x1dfc23,'isActive'),this['listenTo'](_0x39921a,'execute',()=>{_0x1f8ae6['execute']('uploadcareImageEdit'),_0x1f8ae6['editing']['view']['focus']();}),_0x39921a;}),this['_initConfig']();}['_initConfig'](){const _0x3395bd=_0x39b425(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3395bd),this['listenTo'](this['editor'],'destroy',()=>{_0x3395bd['remove']();});}}class UploadcareImageEdit extends _0x270dbe{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Uploadcare,w as UploadcareCommand,o as UploadcareEditing,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':_0x251b0d=>0x1!=_0x251b0d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x358cd0=>{const {af:{dictionary:_0x24699d,getPluralForm:_0x3447f4}}={'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':_0x42930f=>0x1!=_0x42930f}};_0x358cd0['af']||={'dictionary':{},'getPluralForm':null},_0x358cd0['af']['dictionary']=Object['assign'](_0x358cd0['af']['dictionary'],_0x24699d),_0x358cd0['af']['getPluralForm']=_0x3447f4;})(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':_0x56f631=>0x0==_0x56f631?0x0:0x1==_0x56f631?0x1:0x2==_0x56f631?0x2:_0x56f631%0x64>=0x3&&_0x56f631%0x64<=0xa?0x3:_0x56f631%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x572ed5=>{const {ar:{dictionary:_0x5e1325,getPluralForm:_0x2d68d5}}={'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':_0x3ce9ba=>0x0==_0x3ce9ba?0x0:0x1==_0x3ce9ba?0x1:0x2==_0x3ce9ba?0x2:_0x3ce9ba%0x64>=0x3&&_0x3ce9ba%0x64<=0xa?0x3:_0x3ce9ba%0x64>=0xb?0x4:0x5}};_0x572ed5['ar']||={'dictionary':{},'getPluralForm':null},_0x572ed5['ar']['dictionary']=Object['assign'](_0x572ed5['ar']['dictionary'],_0x5e1325),_0x572ed5['ar']['getPluralForm']=_0x2d68d5;})(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':_0x4b466d=>0x1!=_0x4b466d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x31d154=>{const {ast:{dictionary:_0x30f046,getPluralForm:_0x444abf}}={'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':_0x6586f5=>0x1!=_0x6586f5}};_0x31d154['ast']||={'dictionary':{},'getPluralForm':null},_0x31d154['ast']['dictionary']=Object['assign'](_0x31d154['ast']['dictionary'],_0x30f046),_0x31d154['ast']['getPluralForm']=_0x444abf;})(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':_0x1ffbc7=>0x1!=_0x1ffbc7}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x54c8da=>{const {az:{dictionary:_0x35180b,getPluralForm:_0x4c9674}}={'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':_0x23b9a7=>0x1!=_0x23b9a7}};_0x54c8da['az']||={'dictionary':{},'getPluralForm':null},_0x54c8da['az']['dictionary']=Object['assign'](_0x54c8da['az']['dictionary'],_0x35180b),_0x54c8da['az']['getPluralForm']=_0x4c9674;})(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':_0x31d9f4=>_0x31d9f4%0xa==0x1&&_0x31d9f4%0x64!=0xb?0x0:_0x31d9f4%0xa>=0x2&&_0x31d9f4%0xa<=0x4&&(_0x31d9f4%0x64<0xa||_0x31d9f4%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x527bed=>{const {be:{dictionary:_0x501383,getPluralForm:_0x1a14c5}}={'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':_0x163729=>_0x163729%0xa==0x1&&_0x163729%0x64!=0xb?0x0:_0x163729%0xa>=0x2&&_0x163729%0xa<=0x4&&(_0x163729%0x64<0xa||_0x163729%0x64>=0x14)?0x1:0x2}};_0x527bed['be']||={'dictionary':{},'getPluralForm':null},_0x527bed['be']['dictionary']=Object['assign'](_0x527bed['be']['dictionary'],_0x501383),_0x527bed['be']['getPluralForm']=_0x1a14c5;})(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':_0x435e72=>0x1!=_0x435e72}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x43d527=>{const {bg:{dictionary:_0x48a192,getPluralForm:_0x37500a}}={'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':_0x42f9b1=>0x1!=_0x42f9b1}};_0x43d527['bg']||={'dictionary':{},'getPluralForm':null},_0x43d527['bg']['dictionary']=Object['assign'](_0x43d527['bg']['dictionary'],_0x48a192),_0x43d527['bg']['getPluralForm']=_0x37500a;})(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':_0x2b714b=>0x1!=_0x2b714b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x79a69f=>{const {bn:{dictionary:_0x3946e4,getPluralForm:_0x3a88b7}}={'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':_0x1722b9=>0x1!=_0x1722b9}};_0x79a69f['bn']||={'dictionary':{},'getPluralForm':null},_0x79a69f['bn']['dictionary']=Object['assign'](_0x79a69f['bn']['dictionary'],_0x3946e4),_0x79a69f['bn']['getPluralForm']=_0x3a88b7;})(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':_0xbb973e=>_0xbb973e%0xa==0x1&&_0xbb973e%0x64!=0xb?0x0:_0xbb973e%0xa>=0x2&&_0xbb973e%0xa<=0x4&&(_0xbb973e%0x64<0xa||_0xbb973e%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3adde5=>{const {bs:{dictionary:_0x3783a2,getPluralForm:_0x28d2db}}={'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':_0xf08bd4=>_0xf08bd4%0xa==0x1&&_0xf08bd4%0x64!=0xb?0x0:_0xf08bd4%0xa>=0x2&&_0xf08bd4%0xa<=0x4&&(_0xf08bd4%0x64<0xa||_0xf08bd4%0x64>=0x14)?0x1:0x2}};_0x3adde5['bs']||={'dictionary':{},'getPluralForm':null},_0x3adde5['bs']['dictionary']=Object['assign'](_0x3adde5['bs']['dictionary'],_0x3783a2),_0x3adde5['bs']['getPluralForm']=_0x28d2db;})(window['CKEDITOR_TRANSLATIONS']||={});
|