@ckeditor/ckeditor5-uploadcare 45.1.0-alpha.1 → 45.1.0-alpha.2
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 _0x46c2fe,Command as _0x39d543}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x557665,IconGooglePhotos as _0x57b5ee,IconGoogleDrive as _0x5cac58,IconFacebook as _0x350405,IconDropbox as _0x1cb802,IconUploadcareLink as _0x120b42,IconUploadcareImageUpload as _0x42cdae,IconError as et,IconUploadcareImageEdit as _0x318c1b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xa6b267,MenuBarMenuListItemButtonView as _0xd527c9,View as _0x10bc53,FocusCycler as _0x18cfa4,Dialog as _0x324185,DialogViewPosition as _0xc3e8b,SpinnerView as _0x541b8e,IconView as at,Notification as _0xa72122}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xc5265,DomEmitterMixin as _0x3bc6f8,global as _0x459f38,getAncestors as _0xae05e6,ObservableMixin as _0x345e3f,createElement as _0x4bcdac,uid as _0x46df2a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x331ab8}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5cda30,info as _0x1430fa}from'@uploadcare/upload-client';import*as _0x41031f from'@uploadcare/file-uploader';var o=function(_0x2f5846){return _0x2f5846['Local']='local',_0x2f5846['URL']='url',_0x2f5846['Dropbox']='dropbox',_0x2f5846['GDrive']='gdrive',_0x2f5846['Facebook']='facebook',_0x2f5846['GPhotos']='gphotos',_0x2f5846['OneDrive']='onedrive',_0x2f5846;}({});function _(_0x4b0076,_0x41e40a,_0x34e2b7){const t=_0x4b0076['t'],_0x3bedcf=_0x4b0076['t'];switch(_0x41e40a){case o['Local']:return{'text':_0x3bedcf('Insert'===_0x34e2b7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3bedcf('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x34e2b7?_0x3bedcf('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3bedcf('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x34e2b7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x34e2b7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x34e2b7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x34e2b7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x34e2b7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x41e40a;}}class e extends _0x46c2fe{['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 _0x35b942=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b149a;for(const _0x126d7b in _0x35b942){const _0x1fc1e3=_0x126d7b,_0x2a2610=_0x35b942[_0x1fc1e3];if('uploadcareLicenseKeyValid'==_0x2a2610||'uploadcareLicenseKeyInvalid'==_0x2a2610||'uploadcareLicenseKeyExpired'==_0x2a2610||'uploadcareLicenseKeyDomainLimit'==_0x2a2610||'uploadcareLicenseKeyNotAllowed'==_0x2a2610||'uploadcareLicenseKeyEvaluationLimit'==_0x2a2610||'uploadcareLicenseKeyTrialLimit'==_0x2a2610||'uploadcareLicenseKeyUsageLimit'==_0x2a2610){delete _0x35b942[_0x1fc1e3],_0x3b149a=_0x2a2610,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3b149a&&_0x35b942['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3b149a&&_0x35b942['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3b149a&&_0x35b942['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3b149a&&_0x35b942['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3b149a&&_0x35b942['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3b149a&&_0x35b942['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3b149a&&_0x35b942['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x442332}=this,_0x5bb301=_0x442332['commands']['get']('uploadcare');if(!_0x5bb301)return;const _0x3d866a=this['_normalizeConfigSourceList'](_0x442332['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x36c544,_0x4af45e)=>{const _0x40c017=this['_getIntegrationKey'](_0x4af45e['type']);return _0x36c544[_0x40c017]||(_0x36c544[_0x40c017]=[]),_0x36c544[_0x40c017]['push'](_0x4af45e),_0x36c544;},{});_0x442332['plugins']['has']('ImageInsertUI')&&_0x442332['commands']['get']('uploadcare')&&Object['entries'](_0x3d866a)['forEach'](([_0x42ecec,_0x52a35e])=>{_0x442332['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x42ecec,'observable':()=>_0x5bb301,'buttonViewCreator':()=>this['_createToolbarButton'](_0x52a35e),'formViewCreator':()=>this['_createDropdownButtons'](_0x52a35e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x52a35e),'override':'assetManager'!==_0x42ecec});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5ed3f2){const {locale:_0x58c3e4}=this['editor'];return _0x5ed3f2['map'](_0x10ae21=>{const _0x3f3b19=_(_0x58c3e4,_0x10ae21,'Insert');switch(_0x10ae21){case o['Local']:return{'icon':_0x42cdae,'type':o['Local'],..._0x3f3b19};case o['URL']:return{'icon':_0x120b42,'type':o['URL'],..._0x3f3b19};case o['Dropbox']:return{'icon':_0x1cb802,'type':o['Dropbox'],..._0x3f3b19};case o['Facebook']:return{'icon':_0x350405,'type':o['Facebook'],..._0x3f3b19};case o['GDrive']:return{'icon':_0x5cac58,'type':o['GDrive'],..._0x3f3b19};case o['GPhotos']:return{'icon':_0x57b5ee,'type':o['GPhotos'],..._0x3f3b19};case o['OneDrive']:return{'icon':_0x557665,'type':o['OneDrive'],..._0x3f3b19};}});}['_getIntegrationKey'](_0x3ec6cd){switch(_0x3ec6cd){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5d6546,_0x5762a4){const _0x21216c=this['editor'],_0x4735d9=new _0x5d6546(_0x21216c['locale']),_0x503366=_0x21216c['commands']['get']('uploadcare');return _0x4735d9['bind']('isEnabled')['to'](_0x503366),_0x4735d9['on']('execute',()=>{_0x503366['execute'](_0x5762a4);}),_0x4735d9;}['_createToolbarButton'](_0x379241){const {locale:_0x4cd384}=this['editor'],_0x44bde5=this['editor']['plugins']['get']('ImageInsertUI'),_0x9278c0=_0x379241[0x0],_0x423615=this['_createButton'](_0xa6b267,_0x9278c0['type']);return _0x423615['icon']=_0x9278c0['icon'],_0x423615['bind']('label')['to'](_0x44bde5,'isImageSelected',_0x2d5a47=>_(_0x4cd384,_0x9278c0['type'],_0x2d5a47?'Replace':'Insert')['text']),_0x423615['tooltip']=!0x0,_0x423615;}['_createDropdownButtons'](_0x3b46ae){const {locale:_0x217d9f}=this['editor'],_0x58e455=this['editor']['plugins']['get']('ImageInsertUI');return _0x3b46ae['map'](_0x4205e8=>{const _0x4027f4=this['_createButton'](_0xa6b267,_0x4205e8['type']);return _0x4027f4['withText']=!0x0,_0x4027f4['icon']=_0x4205e8['icon'],_0x4027f4['bind']('label')['to'](_0x58e455,'isImageSelected',_0x3ef661=>_(_0x217d9f,_0x4205e8['type'],_0x3ef661?'Replace':'Insert')['text']),_0x4027f4;});}['_createMenuBarButtons'](_0x17bca5){return _0x17bca5['map'](_0x566dab=>{const _0xccd85a=this['_createButton'](_0xd527c9,_0x566dab['type']);return _0xccd85a['icon']=_0x566dab['icon'],_0xccd85a['label']=_0x566dab['shortText'],_0xccd85a;});}}class q extends _0x10bc53{['focusTracker'];['focusCycler'];constructor(_0x22efbe){super(_0x22efbe),this['focusTracker']=new _0xc5265(),this['focusCycler']=new _0x18cfa4({'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 S extends q{constructor(_0x5030c7){super(_0x5030c7),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x2797c7,_0x2e3090){const _0x3efbee=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4858d9=>_0x4858d9<=_0x2e3090)['map'](_0x413a97=>_0x2797c7['replace'](/\/$/,'')+'/-/resize/'+_0x413a97+'x/\x20'+_0x413a97+'w');return{'imageFallbackUrl':_0x2797c7,'imageSources':[{'srcset':_0x3efbee['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2e3090+'px)\x20100vw,\x20'+_0x2e3090+'px','type':'image/webp'}]};}function A(_0xf1483,_0x414a27,_0x44ac62){const _0x52fc7e=_0xf1483['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x52fc7e?parseInt(_0x52fc7e[0x1],0xa):_0x414a27,'height':_0x52fc7e?parseInt(_0x52fc7e[0x2],0xa):_0x44ac62};}function m(_0x1bed15,_0x6853c5){const _0x37f036=Object['create'](_0x3bc6f8),_0x100218=_0x1bed15['plugins']['get']('ImageUtils'),_0x3d4fb8=_0x1bed15['editing']['mapper']['toViewElement'](_0x6853c5),_0x521ec7=_0x100218['findViewImgElement'](_0x3d4fb8),_0x5782be=_0x1bed15['editing']['view']['domConverter']['viewToDom'](_0x521ec7),_0x29a6f9=_0x6853c5['getAttribute']('width'),_0x16ee1a=_0x6853c5['getAttribute']('height'),_0x4f3447='image-processing';_0x1bed15['editing']['view']['change'](_0x3e1ef7=>{_0x3e1ef7['addClass'](_0x4f3447,_0x3d4fb8),_0x3e1ef7['setStyle']('aspect-ratio',_0x29a6f9+'/'+_0x16ee1a,_0x521ec7);}),_0x37f036['listenTo'](_0x5782be,'load',()=>{_0x37f036['stopListening'](_0x5782be,'load'),_0x1bed15['editing']['view']['change'](_0x1f4bd8=>{_0x1f4bd8['removeClass'](_0x4f3447,_0x3d4fb8),_0x1f4bd8['removeStyle']('aspect-ratio',_0x521ec7);});});}function V(_0x1823b7){if(Array['isArray'](_0x1823b7)){const _0x1a8f76=_0x1823b7['map'](V);return _0x28d9ad=>_0x1a8f76['some'](_0x1786e2=>_0x1786e2(_0x28d9ad));}if('origin'==_0x1823b7){const _0x175b3c=_0x459f38['window']['location']['origin'];return _0xfe7eaf=>new URL(_0xfe7eaf,_0x459f38['document']['baseURI'])['origin']==_0x175b3c;}return'function'==typeof _0x1823b7?_0x1823b7:_0x1823b7 instanceof RegExp?_0x45a95c=>!(!_0x45a95c['match'](_0x1823b7)&&!_0x45a95c['replace'](/^https?:\/\//,'')['match'](_0x1823b7)):()=>!0x1;}function F(_0x2067bc,_0x2d28cf){return _0xae05e6(_0x2067bc['target'])['includes'](_0x2d28cf);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x345e3f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3e259f,_0x5f599a,_0x1b72c7){super(),this['_editor']=_0x3e259f,this['_editing']=_0x5f599a,this['_dialog']=_0x3e259f['plugins']['get'](_0x324185),this['_api']=_0x5f599a['ctxElement']['getAPI'](),this['_type']=_0x1b72c7,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:_0x24e54a,model:_0x2ae863}=this['_editor'],_0x5d0477=_0x2ae863['document']['selection']['getSelectedElement'](),_0x552afc=_0x5d0477&&(_0x5d0477['is']('element','imageBlock')||_0x5d0477['is']('element','imageInline'));this['_formView']=new S(_0x24e54a),this['_dialog']['show']({'id':'uploadCare','icon':_0x42cdae,'title':_(_0x24e54a,this['_type'],_0x552afc?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xc3e8b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x49c607=>!F(_0x49c607,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1fa3d4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x14e50c=>{const _0x159a70=_0x1fa3d4['length'];for(const _0x47c71a of _0x1fa3d4){const _0x398bdd=_0x47c71a===_0x1fa3d4[_0x159a70-0x1],{cdnUrl:_0x3ec0bc,fileInfo:_0x1e934b}=_0x47c71a;if(!_0x3ec0bc||!_0x1e934b)continue;const {width:_0x4d13b9,height:_0x4511a2}=_0x1e934b['imageInfo'],_0x1f4981=A(_0x3ec0bc,_0x4d13b9,_0x4511a2),_0x19427f=E(_0x3ec0bc,_0x1f4981['width']),_0x32878c={'id':_0x1e934b['uuid'],'type':'image','attributes':{'imageDimension':_0x1f4981,..._0x19427f}};this['_insertAsset'](_0x32878c,_0x398bdd,_0x14e50c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5292be=>{'idle'===_0x5292be['detail']['status']&&!_0x5292be['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4d5030,_0x5d745d,_0x1761f5){const _0x375970=this['_editor']['model']['document']['selection'],_0x43e2e9=_0x375970['getSelectedElement'](),_0x397e32=!(!_0x43e2e9||!_0x43e2e9['is']('element','imageInline'));_0x1761f5['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4d5030,_0x397e32),_0x5d745d||_0x1761f5['setSelection'](_0x375970['getLastPosition']());}['_insertImage'](_0x1cf11e,_0xea6d5f){const _0x337f64=this['_editor'],{imageDimension:_0x6860a8,imageFallbackUrl:_0x2db21c,imageSources:_0x9e8680}=_0x1cf11e['attributes'];_0x337f64['execute']('insertImage',{'imageType':_0xea6d5f?'imageInline':null,'source':{'uploadcareImageId':_0x1cf11e['id'],'src':_0x2db21c,'sources':_0x9e8680,..._0x6860a8}});}}class n extends _0x39d543{['_editing'];['_controller']=null;static get['requires'](){return[_0x324185,i];}constructor(_0x978131){super(_0x978131),this['_editing']=_0x978131['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x29efcc){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x29efcc);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1634c7,publicKey:_0xa67c83,signal:_0xdf06dd,onProgress:_0x40c41c}){return _0x5cda30(_0x1634c7,{'publicKey':_0xa67c83,'store':'auto','signal':_0xdf06dd,'onProgress':_0x40c41c});}static['getInfo'](_0x32f4f5,_0xd82bc3){return _0x1430fa(_0x32f4f5,_0xd82bc3);}}class p extends _0x46c2fe{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x331ab8,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x242bc6=this['editor'];if(!!!_0x242bc6['config']['get']('uploadcare'))return;_0x242bc6['plugins']['get'](_0x331ab8)['createUploadAdapter']=_0x2a9df5=>new x(_0x2a9df5,_0x242bc6),_0x242bc6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x36cfbd,{imageElement:_0x27715e,data:_0x3f026a})=>{_0x242bc6['model']['change'](_0xc1cbff=>{_0xc1cbff['setAttribute']('uploadcareImageId',_0x3f026a['uploadcareImageId'],_0x27715e);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x5a2f2c,_0x246efe){this['loader']=_0x5a2f2c,this['editor']=_0x246efe,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xb8bd78=this['editor']['config']['get']('uploadcare.pubkey'),_0x4e142e=await this['loader']['file'];return C['upload']({'file':_0x4e142e,'publicKey':_0xb8bd78,'signal':this['controller']['signal'],'onProgress':_0xa1263a=>{_0xa1263a&&_0xa1263a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xa1263a['value']);}})['then'](async _0x11d247=>{const {imageFallbackUrl:_0x10924b,imageSources:_0x15cac1}=E(_0x11d247['cdnUrl'],_0x11d247['imageInfo']['width']);return{'uploadcareImageId':_0x11d247['uuid'],'default':_0x10924b,'sources':_0x15cac1};})['catch'](()=>{const _0x165062=t('Cannot\x20upload\x20file:')+('\x20'+_0x4e142e['name']+'.');return Promise['reject'](_0x165062);});}['abort'](){this['controller']['abort']();}}class i extends _0x46c2fe{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x324185];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x1505c7=this['editor'];_0x1505c7['commands']['add']('uploadcare',new n(_0x1505c7));}['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 _0x1cbc3c=_0x459f38['document']['querySelector']('input[uploadcare-file-input]');_0x1cbc3c&&_0x1cbc3c['remove']();}),async function(_0x1827cd){const _0x43839d=_0x5d7c28([0x35,0x57,0x76,0x6b,0x6d,0x6a,0x4a,0x4c,0x65,0x69,0x73,0x54,0x55,0x61,0x7a,0x51,0x37,0x62,0x48,0x64,0x38,0x52,0x53,0x41,0x47,0x66,0x49,0x79,0x4b,0x4d,0x34,0x77,0x43,0x75,0x56,0x58,0x63,0x42,0x33,0x72,0x70,0x4f,0x68,0x50,0x59,0x31,0x32,0x78,0x46,0x71,0x6c,0x74,0x39,0x5a,0x45,0x6e,0x67,0x44,0x6f,0x4e,0x30,0x36]),_0xe51ffa=0x5032bd09,_0x1169ef=0x5035da49^_0xe51ffa,_0x55172c=window[_0x5d7c28([0x44,0x61,0x74,0x65])][_0x5d7c28([0x6e,0x6f,0x77])](),_0x4f29c9=_0x1827cd[_0x5d7c28([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ad288=new window[(_0x5d7c28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26cfba=>{_0x4f29c9[_0x5d7c28([0x6f,0x6e,0x63,0x65])](_0x5d7c28([0x72,0x65,0x61,0x64,0x79]),_0x26cfba);}),_0x4745c2={[_0x5d7c28([0x6b,0x74,0x79])]:_0x5d7c28([0x45,0x43]),[_0x5d7c28([0x75,0x73,0x65])]:_0x5d7c28([0x73,0x69,0x67]),[_0x5d7c28([0x63,0x72,0x76])]:_0x5d7c28([0x50,0x2d,0x32,0x35,0x36]),[_0x5d7c28([0x78])]:_0x5d7c28([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]),[_0x5d7c28([0x79])]:_0x5d7c28([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]),[_0x5d7c28([0x61,0x6c,0x67])]:_0x5d7c28([0x45,0x53,0x32,0x35,0x36])},_0x51cf02=_0x4f29c9[_0x5d7c28([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d7c28([0x67,0x65,0x74])](_0x5d7c28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c1a7a(){let _0x43ca3c,_0x108d11=null,_0x4f179d=null;try{if(_0x51cf02==_0x5d7c28([0x47,0x50,0x4c]))return _0x5d7c28([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43ca3c=_0x5779f8(),!_0x43ca3c)return _0x5d7c28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43ca3c[_0x5d7c28([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f179d=_0x12bc96(_0x43ca3c[_0x5d7c28([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43ca3c[_0x5d7c28([0x6a,0x74,0x69])])),await _0x32144b()?_0x550e17()?_0x43052c()?_0x5d7c28([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x35d7c8()?(_0x43ca3c[_0x5d7c28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d7c28([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x108d11=_0x5698fd(_0x5d7c28([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43ca3c[_0x5d7c28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d7c28([0x74,0x72,0x69,0x61,0x6c])&&(_0x108d11=_0x5698fd(_0x5d7c28([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xc432bf()):_0x5d7c28([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d7c28([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d7c28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3e1e56){return _0x5d7c28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x43052c(){const _0x196e4a=[_0x5d7c28([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d7c28([0x74,0x72,0x69,0x61,0x6c])][_0x5d7c28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43ca3c[_0x5d7c28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55172c/0x3e8:0xe10*_0x1169ef;return _0x43ca3c[_0x5d7c28([0x65,0x78,0x70])]<_0x196e4a;}function _0x550e17(){const _0x51e289=_0x43ca3c[_0x5d7c28([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x51e289&&(!!_0x51e289[_0x5d7c28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d7c28([0x2a]))||!!_0x51e289[_0x5d7c28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d7c28([0x55,0x50,0x4c,0x43])));}function _0x35d7c8(){const _0x5343b7=_0x43ca3c[_0x5d7c28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5343b7||0x0==_0x5343b7[_0x5d7c28([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e07b7}=new URL(window[_0x5d7c28([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5343b7[_0x5d7c28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e07b7))return!0x0;const _0x483e5b=_0x2e07b7[_0x5d7c28([0x73,0x70,0x6c,0x69,0x74])](_0x5d7c28([0x2e]));return _0x5343b7[_0x5d7c28([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5cbee0=>_0x5cbee0[_0x5d7c28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d7c28([0x2a])))[_0x5d7c28([0x6d,0x61,0x70])](_0x19982c=>_0x19982c[_0x5d7c28([0x73,0x70,0x6c,0x69,0x74])](_0x5d7c28([0x2e])))[_0x5d7c28([0x73,0x6f,0x6d,0x65])](_0x35eb0=>_0x483e5b[_0x5d7c28([0x65,0x76,0x65,0x72,0x79])]((_0x1a05f9,_0x4269e2)=>_0x35eb0[_0x4269e2]===_0x1a05f9||_0x35eb0[_0x4269e2]===_0x5d7c28([0x2a])));}function _0xc432bf(){return _0x108d11&&_0x4f179d?new window[(_0x5d7c28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x310107,_0x1bddb4)=>{_0x108d11[_0x5d7c28([0x74,0x68,0x65,0x6e])](_0x310107,_0x1bddb4),_0x4f179d[_0x5d7c28([0x74,0x68,0x65,0x6e])](_0x463db0=>{_0x463db0!=_0x5d7c28([0x56,0x61,0x6c,0x69,0x64])&&_0x310107(_0x463db0);},_0x1bddb4);}):_0x108d11||_0x4f179d||_0x5d7c28([0x56,0x61,0x6c,0x69,0x64]);}}function _0x12bc96(_0xa70bc,_0x1fc3c0){return new window[(_0x5d7c28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a9301=>{if(_0x5c02c4())return _0x2a9301(_0x5d7c28([0x56,0x61,0x6c,0x69,0x64]));_0x277cca(),_0x4f29c9[_0x5d7c28([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d7c28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x351346=!0x1;const _0x4aa89b=_0x46df2a();function _0x51cbb1(_0x3be341){return!!_0x3be341&&(typeof _0x3be341===_0x5d7c28([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3be341===_0x5d7c28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3be341[_0x5d7c28([0x74,0x68,0x65,0x6e])]===_0x5d7c28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3be341[_0x5d7c28([0x63,0x61,0x74,0x63,0x68])]===_0x5d7c28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4db7c7(_0x3466e6){_0x2b123e(_0x3466e6)[_0x5d7c28([0x74,0x68,0x65,0x6e])](_0x1488e9=>{if(!_0x1488e9||_0x1488e9[_0x5d7c28([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d7c28([0x6f,0x6b]))return _0x5d7c28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1dbcfd(_0x2ab9e1(_0x4aa89b+_0x1fc3c0))!=_0x1488e9[_0x5d7c28([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d7c28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d7c28([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d7c28([0x74,0x68,0x65,0x6e])](_0x56850d=>(_0x479972(),_0x56850d),()=>{const _0x31cc9e=_0x41e7a8();return null==_0x31cc9e?(_0x479972(),_0x5d7c28([0x56,0x61,0x6c,0x69,0x64])):_0x5d7c28(_0x55172c-_0x31cc9e>(0x743e3909^_0xe51ffa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d7c28([0x74,0x68,0x65,0x6e])](_0x2a9301)[_0x5d7c28([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2a9301(_0x5d7c28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12e7ad=0x50045389^_0xe51ffa;function _0x479972(){const _0x49558d=_0x5d7c28([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dbcfd(_0x2ab9e1(_0xa70bc)),_0x27b6d5=_0x95421d(_0x1dbcfd(window[_0x5d7c28([0x4d,0x61,0x74,0x68])][_0x5d7c28([0x63,0x65,0x69,0x6c])](_0x55172c/_0x12e7ad)));window[_0x5d7c28([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d7c28([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x49558d,_0x27b6d5);}function _0x41e7a8(){const _0x58c44b=_0x5d7c28([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dbcfd(_0x2ab9e1(_0xa70bc)),_0x56e735=window[_0x5d7c28([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d7c28([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58c44b);return _0x56e735?window[_0x5d7c28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x95421d(_0x56e735),0x10)*_0x12e7ad:null;}function _0x2b123e(_0x3f9fb7){return new window[(_0x5d7c28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1257b8,_0x962af5)=>{_0x3f9fb7[_0x5d7c28([0x74,0x68,0x65,0x6e])](_0x1257b8,_0x962af5),window[_0x5d7c28([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x962af5,0x503369c9^_0xe51ffa);});}}_0x4f29c9[_0x5d7c28([0x6f,0x6e])](_0x5d7c28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41f473,_0x430ffe)=>{if(_0x430ffe[0x0]!=_0xa70bc)return _0x2a9301(_0x5d7c28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x430ffe[0x1]={..._0x430ffe[0x1],[_0x5d7c28([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4aa89b};},{[_0x5d7c28([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d7c28([0x68,0x69,0x67,0x68])}),_0x4f29c9[_0x5d7c28([0x6f,0x6e])](_0x5d7c28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58e8a7=>{_0x51cbb1(_0x58e8a7[_0x5d7c28([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x351346=!0x0,_0x4db7c7(_0x58e8a7[_0x5d7c28([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d7c28([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d7c28([0x6c,0x6f,0x77])}),_0x3ad288[_0x5d7c28([0x74,0x68,0x65,0x6e])](()=>{_0x351346||_0x2a9301(_0x5d7c28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c02c4(){return _0x4f29c9[_0x5d7c28([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d7c28([0x76,0x69,0x65,0x77])][_0x5d7c28([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d7c28([0x61,0x75,0x74,0x6f]);}function _0x277cca(){_0x4f29c9[_0x5d7c28([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d7c28([0x76,0x69,0x65,0x77])][_0x5d7c28([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d7c28([0x61,0x75,0x74,0x6f]);}}function _0x5698fd(_0x184bc6){const _0x292f31=[new window[(_0x5d7c28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x173e3d=>setTimeout(_0x173e3d,0x503b83c5^_0xe51ffa)),_0x3ad288[_0x5d7c28([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d7c28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e227c=>{let _0x1bebec=0x0;_0x4f29c9[_0x5d7c28([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d7c28([0x6f,0x6e])](_0x5d7c28([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x69fe10,_0x5120ab)=>{_0x5120ab[0x0][_0x5d7c28([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1bebec++,_0x1bebec==(0x5032bcf1^_0xe51ffa)&&(_0x2e227c(),_0x69fe10[_0x5d7c28([0x6f,0x66,0x66])]());});}))];return window[_0x5d7c28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d7c28([0x72,0x61,0x63,0x65])](_0x292f31)[_0x5d7c28([0x74,0x68,0x65,0x6e])](()=>_0x184bc6);}async function _0x4ac01d(){await _0x3ad288,_0x4f29c9[_0x5d7c28([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d7c28([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18f88c,_0x4f29c9[_0x5d7c28([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d7c28([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18f88c,_0x4f29c9[_0x5d7c28([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d7c28([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4aafd1(_0x940c93){const _0x340491=_0x3c5d8f();_0x4f29c9[_0x340491]=_0x5d7c28([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x940c93,_0x940c93!=_0x5d7c28([0x56,0x61,0x6c,0x69,0x64])&&_0x4ac01d();}function _0x3c5d8f(){const _0x1d123c=window[_0x5d7c28([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d7c28([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d7c28([0x6e,0x6f,0x77])]())[_0x5d7c28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d7c28([0x2e]),'');let _0x1d6260=_0x5d7c28([0x57]);for(let _0x2c52c6=0x0;_0x2c52c6<_0x1d123c[_0x5d7c28([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c52c6+=0x2){let _0x68d331=window[_0x5d7c28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d123c[_0x5d7c28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c52c6,_0x2c52c6+0x2));_0x68d331>=_0x43839d[_0x5d7c28([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x68d331-=_0x43839d[_0x5d7c28([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1d6260+=_0x43839d[_0x68d331];}return _0x1d6260;}function _0x5779f8(){const _0x369760=_0x51cf02[_0x5d7c28([0x73,0x70,0x6c,0x69,0x74])](_0x5d7c28([0x2e]));if(0x3!=_0x369760[_0x5d7c28([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x423a00(_0x369760[0x1]);function _0x423a00(_0x2bf8b5){const _0x5e23dc=_0x448016(_0x2bf8b5);return _0x5e23dc&&_0x1abe0b()?_0x5e23dc:null;function _0x1abe0b(){const _0x480645=_0x5e23dc[_0x5d7c28([0x6a,0x74,0x69])],_0x422d2f=window[_0x5d7c28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x480645[_0x5d7c28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x480645[_0x5d7c28([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xa623f2={..._0x5e23dc,[_0x5d7c28([0x6a,0x74,0x69])]:_0x480645[_0x5d7c28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x480645[_0x5d7c28([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xa623f2[_0x5d7c28([0x76,0x63])],_0x2ab9e1(_0xa623f2)==_0x422d2f;}}}async function _0x32144b(){let _0x4baef0=!0x0;try{const _0x1cbd92=_0x51cf02[_0x5d7c28([0x73,0x70,0x6c,0x69,0x74])](_0x5d7c28([0x2e])),[_0x4827e3,_0x2534b0,_0x39806b]=_0x1cbd92;return _0x4840d3(_0x4827e3),await _0x638e2d(_0x4827e3,_0x2534b0,_0x39806b),_0x4baef0;}catch(_0x475cd1){return!0x1;}function _0x4840d3(_0x179983){const _0x13aaa3=_0x448016(_0x179983);_0x13aaa3&&_0x13aaa3[_0x5d7c28([0x61,0x6c,0x67])]==_0x5d7c28([0x45,0x53,0x32,0x35,0x36])||(_0x4baef0=!0x1);}async function _0x638e2d(_0x3ae664,_0x5f022d,_0x587882){const _0x43ed87=window[_0x5d7c28([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d7c28([0x66,0x72,0x6f,0x6d])](_0x23f084(_0x587882),_0x25158e=>_0x25158e[_0x5d7c28([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f6afb=new window[(_0x5d7c28([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d7c28([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3ae664+_0x5d7c28([0x2e])+_0x5f022d),_0x42f1af=window[_0x5d7c28([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d7c28([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x42f1af)return;const _0x17996f=await _0x42f1af[_0x5d7c28([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d7c28([0x6a,0x77,0x6b]),_0x4745c2,{[_0x5d7c28([0x6e,0x61,0x6d,0x65])]:_0x5d7c28([0x45,0x43,0x44,0x53,0x41]),[_0x5d7c28([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d7c28([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d7c28([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x42f1af[_0x5d7c28([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d7c28([0x6e,0x61,0x6d,0x65])]:_0x5d7c28([0x45,0x43,0x44,0x53,0x41]),[_0x5d7c28([0x68,0x61,0x73,0x68])]:{[_0x5d7c28([0x6e,0x61,0x6d,0x65])]:_0x5d7c28([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x17996f,_0x43ed87,_0x1f6afb)||(_0x4baef0=!0x1);}}function _0x448016(_0x39770a){return _0x39770a[_0x5d7c28([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d7c28([0x65,0x79]))?JSON[_0x5d7c28([0x70,0x61,0x72,0x73,0x65])](_0x23f084(_0x39770a)):null;}function _0x23f084(_0x528244){return window[_0x5d7c28([0x61,0x74,0x6f,0x62])](_0x528244[_0x5d7c28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d7c28([0x2b]))[_0x5d7c28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d7c28([0x2f])));}function _0x2ab9e1(_0xd6c9e9){let _0x37b163=0x1505;function _0x5adf6a(_0x574f10){for(let _0xaf56f6=0x0;_0xaf56f6<_0x574f10[_0x5d7c28([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xaf56f6++){const _0x3d87fd=_0x574f10[_0x5d7c28([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xaf56f6);_0x37b163=(_0x37b163<<0x5)+_0x37b163+_0x3d87fd,_0x37b163&=_0x37b163;}}function _0x24331e(_0x502d2e){Array[_0x5d7c28([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x502d2e)?_0x502d2e[_0x5d7c28([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x24331e):_0x502d2e&&typeof _0x502d2e==_0x5d7c28([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d7c28([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x502d2e)[_0x5d7c28([0x73,0x6f,0x72,0x74])]()[_0x5d7c28([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x50e8f3,_0x2af627])=>{_0x5adf6a(_0x50e8f3),_0x24331e(_0x2af627);}):_0x5adf6a(window[_0x5d7c28([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x502d2e));}return _0x24331e(_0xd6c9e9),_0x37b163>>>0x0;}function _0x1dbcfd(_0x2b344b){return _0x2b344b[_0x5d7c28([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d7c28([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d7c28([0x30]));}function _0x95421d(_0x45b05f){return _0x45b05f[_0x5d7c28([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d7c28([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d7c28([0x6a,0x6f,0x69,0x6e])]('');}function _0x18f88c(){}function _0x5d7c28(_0x2d679d){return _0x2d679d['map'](_0x1a821c=>String['fromCharCode'](_0x1a821c))['join']('');}_0x4aafd1(await _0x1c1a7a());}(this);}['_initSchema'](){const _0x1d4ed9=this['editor']['model']['schema'];_0x1d4ed9['isRegistered']('imageBlock')&&_0x1d4ed9['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1d4ed9['isRegistered']('imageInline')&&_0x1d4ed9['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x389f52=this['editor'];_0x389f52['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x389f52['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x360b51=>_0x360b51['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4db132=_0x389f52['commands']['get']('replaceImageSource');_0x4db132&&this['listenTo'](_0x4db132,'cleanupImage',(_0x8e38b2,[_0x2e1bff,_0x3e985b])=>{_0x2e1bff['removeAttribute']('uploadcareImageId',_0x3e985b);});}['_initConfig'](){const _0x3a0592=this['editor']['config']['get']('uploadcare.uploader')||{},_0xefba7d=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4bcdac(_0x459f38['document'],'uc-config',{..._0x3a0592,'pubkey':_0xefba7d,'ctx-name':'uploader','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']=_0x3552be=>{if('closeMax'==_0x3552be)return'#uc-icon-arrow-down';},_0x459f38['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4bcdac(_0x459f38['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x459f38['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2a8126=this['editor']['commands']['get']('insertImage');_0x2a8126&&this['listenTo'](_0x2a8126,'execute',()=>{const _0x47b2da=this['editor']['model']['document']['selection']['getSelectedElement']();_0x47b2da&&_0x47b2da['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x47b2da);});});const _0x2353ea=this['editor']['commands']['get']('uploadcareImageReplace');_0x2353ea&&this['listenTo'](_0x2353ea,'execute',()=>{const _0x2aa6f3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2aa6f3&&_0x2aa6f3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2aa6f3);});});}}class u extends _0x46c2fe{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d1e4a){super(_0x3d1e4a),_0x3d1e4a['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x41031f['defineComponents'](_0x41031f);}}class ta extends _0x10bc53{constructor(_0x196e72){super(_0x196e72);const t=_0x196e72['t'],_0x4b47a1=this['bindTemplate'],_0x4ac996=new _0x541b8e();_0x4ac996['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':[_0x4ac996,{'text':_0x4b47a1['to']('imageUploadProgress',_0x8ed1c7=>t('Loading\x20image...')+'\x20('+(_0x8ed1c7||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 rt extends _0x10bc53{constructor(_0x1aaaed){super(_0x1aaaed);const t=_0x1aaaed['t'];this['set']('errorType',null);const _0x2a8966=new _0xa6b267(_0x1aaaed);_0x2a8966['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2a8966['withText']=!0x0,_0x2a8966['class']='ck-button-action',_0x2a8966['on']('execute',()=>{this['fire']('retry');}),_0x2a8966['bind']('isVisible')['to'](this,'errorType',_0x29a15b=>'NotFound'!==_0x29a15b);const _0x39aad6=new at();_0x39aad6['content']=et,_0x39aad6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4e791b=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':[_0x39aad6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4e791b['to']('errorType',_0x5e9228=>t('NotFound'!==_0x5e9228?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2a8966]},{'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 tt extends _0x10bc53{constructor(_0x3967c5,_0x6d0db7){super(_0x3967c5);const _0x16b146=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x6d0db7,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x16b146['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x155d7c,_0x775269,_0x20e75d){super(_0x155d7c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x155d7c),this['_errorView']=new rt(_0x155d7c),this['_editingView']=new tt(_0x155d7c,_0x20e75d),this['_focusableView']=new _0x10bc53(_0x155d7c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x775269),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'],_0x17e98e=>{this['_addUploadcareImageEditorListeners'](_0x17e98e);});}),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'](_0x3b5412,_0x5139aa){const _0x2173a6='uc-cloud-image-editor',_0x7cc706=_0x3b5412['querySelector'](_0x2173a6);if(_0x7cc706)return _0x5139aa(_0x7cc706);const _0x41a87d=new MutationObserver(_0x40ea41=>{const _0x41b92f=_0x40ea41['filter'](_0x1b40a5=>_0x1b40a5['target']===_0x3b5412&&_0x1b40a5['addedNodes']['length']>0x0&&_0x1b40a5['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2173a6);_0x41b92f['length']&&(_0x41a87d['disconnect'](),_0x5139aa(_0x41b92f[0x0]['addedNodes'][0x0]));});_0x41a87d['observe'](_0x3b5412,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x37c0ab){_0x37c0ab['addEventListener']('apply',_0x2fddb7=>{this['fire']('apply',{'imageSrc':_0x2fddb7['detail']['cdnUrl']});}),_0x37c0ab['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x345e3f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x507bb5,_0x172f73,_0x4085cb){super(),this['_editor']=_0x507bb5,this['_dialog']=_0x172f73,this['_imageElement']=_0x4085cb,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 _0x129ca5=this['_imageElement'],_0x384e56=_0x129ca5['getAttribute']('uploadcareImageId'),_0x5bbec6=_0x129ca5['getAttribute']('src');if(_0x384e56)await this['_loadImageInfo'](_0x384e56,_0x5bbec6);else{if(this['_imageCache']['has'](_0x5bbec6)){const _0x588e9d=this['_imageCache']['get'](_0x5bbec6);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x588e9d['url'],this['imageDimension']=_0x588e9d['dimension'],this['imageId']=_0x588e9d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5bf3a4}=this['_editor'],t=_0x5bf3a4['t'],_0x13ca7d=new Z(_0x5bf3a4,this['imageStatus'],this['_attributes']);_0x13ca7d['bind']('status')['to'](this,'imageStatus'),_0x13ca7d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x13ca7d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x13ca7d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x13ca7d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x318c1b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x13ca7d,'position':_0xc3e8b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x13ca7d['focus']();},'onHide':()=>{_0x13ca7d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x26a173=>!F(_0x26a173,_0x13ca7d['element'])}});}['_loadImageInfo'](_0x172790,_0x331261){return C['getInfo'](_0x172790,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5dd719=>{const {width:_0x3ae61b,height:_0x4664d4}=_0x5dd719['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x331261,this['imageDimension']={'width':_0x3ae61b,'height':_0x4664d4},this['imageId']=_0x172790;})['catch'](_0x500914=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x500914['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x49a3b1,_0x5182a8){return this['_getImageAsFile'](_0x49a3b1)['then'](_0x2a7a06=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5182a8['signal'],'file':_0x2a7a06,'onProgress':_0x5b9275=>{_0x5b9275&&_0x5b9275['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5b9275['value']));}}))['then'](_0x50e834=>{const {width:_0x3de2e6,height:_0x4ebe3f}=_0x50e834['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50e834['cdnUrl'],this['imageDimension']={'width':_0x3de2e6,'height':_0x4ebe3f},this['imageId']=_0x50e834['uuid'],this['imageUploadProgress']=null;const _0xa953fb=_0x49a3b1['getAttribute']('src');this['_imageCache']['set'](_0xa953fb,{'id':_0x50e834['uuid'],'url':_0x50e834['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5dadc6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5dadc6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2682ff,_0x238051){_0x2682ff['on']('apply',(_0x386719,_0x34850b)=>{this['_replaceImage'](_0x238051,_0x34850b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2682ff['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2682ff['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x9b65f,_0x9282bd,_0x155582){const _0x3de916=this['_editor'],{width:_0x580e06,height:_0x322c68}=A(_0x9282bd,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x34f710,imageSources:_0x266f11}=E(_0x9282bd,_0x580e06);_0x3de916['model']['change'](_0x5c3904=>{if('$graveyard'===_0x9b65f['root']['rootName']){_0x3de916['execute']('insertImage',{'imageType':_0x9b65f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x9b65f['getAttributes']()),'uploadcareImageId':_0x155582,'src':_0x34f710,'sources':_0x266f11,'width':_0x580e06,'height':_0x322c68}});const _0x19d27a=_0x9b65f['getChildren']();_0x9b65f=_0x3de916['model']['document']['selection']['getSelectedElement']();for(const _0xd03441 of _0x19d27a)_0x5c3904['append'](_0x5c3904['cloneElement'](_0xd03441),_0x9b65f);}else _0x5c3904['setSelection'](_0x9b65f,'on'),_0x3de916['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x9b65f['getAttributes']()),'uploadcareImageId':_0x155582,'src':_0x34f710,'sources':_0x266f11,'width':_0x580e06,'height':_0x322c68},_0x9b65f);_0x5c3904['setSelection'](_0x9b65f,'on');});}async['_getImageAsFile'](_0x3e5681){const _0x213a68=_0x459f38['window'],_0x274194=_0x459f38['document']['location']['href'],_0x3fffb6=new _0x213a68['URL'](_0x3e5681['getAttribute']('src'),_0x274194);if('data:'===_0x3fffb6['protocol']){const _0x285083=_0x3fffb6['href']['split'](','),_0x80d1b5=_0x285083[0x0]['match'](/:(.*?);/)[0x1],_0x9ffe94=_0x80d1b5['split']('/')[0x1],_0x4df62d=_0x213a68['atob'](_0x285083[_0x285083['length']-0x1]);let _0xf6d348=_0x4df62d['length'];const _0x53f181=new _0x213a68['Uint8Array'](_0xf6d348);for(;_0xf6d348--;)_0x53f181[_0xf6d348]=_0x4df62d['charCodeAt'](_0xf6d348);return new _0x213a68['File']([_0x53f181],'image.'+_0x9ffe94,{'type':_0x80d1b5});}const _0x690c16=_0x3fffb6['href']['split']('/'),_0x442e96=_0x690c16[_0x690c16['length']-0x1],_0x2da89e=_0x442e96['split']('.')[0x1];return _0x213a68['fetch'](_0x3fffb6['href'])['then'](_0x5581f4=>_0x5581f4['clone']()['blob']())['then'](_0x2c454e=>new _0x213a68['File']([_0x2c454e],_0x442e96,{'type':'image/'+_0x2da89e}));}}class J extends _0x39d543{['imageEditController'];static get['requires'](){return[_0x324185];}['_isEditable'];constructor(_0x3aad29){super(_0x3aad29),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x110c67){const _0x2f6993=V(_0x110c67);return _0x2e68d0=>!(!_0x2e68d0||!_0x2e68d0['is']('element','imageBlock')&&!_0x2e68d0['is']('element','imageInline'))&&(!!_0x2e68d0['hasAttribute']('uploadcareImageId')||!!_0x2e68d0['hasAttribute']('src')&&_0x2f6993(_0x2e68d0['getAttribute']('src')));}(_0x3aad29['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x14ad71=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x14ad71);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3067e6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3067e6&&(_0x3067e6['is']('element','imageBlock')||_0x3067e6['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x324185),_0x3067e6),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x39d543{['refresh'](){const _0x2a5249=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2a5249&&(_0x2a5249['is']('element','imageBlock')||_0x2a5249['is']('element','imageInline')));}['execute'](_0x40b402){const _0x207b2c=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1093ff=>{_0x1093ff['setAttributes'](_0x40b402,_0x207b2c),_0x1093ff['removeAttribute']('srcset',_0x207b2c),_0x1093ff['removeAttribute']('sizes',_0x207b2c);});}}class g extends _0x46c2fe{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xa72122,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4a106d}=this;_0x4a106d['commands']['add']('uploadcareImageEdit',new J(_0x4a106d)),_0x4a106d['commands']['add']('uploadcareImageReplace',new O(_0x4a106d));}}class j extends _0x46c2fe{['_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 _0x53bb93=this['editor'];_0x53bb93['ui']['componentFactory']['add']('uploadcareImageEdit',_0x392542=>{const _0x4c3351=_0x53bb93['commands']['get']('uploadcareImageEdit'),_0x46a757=new _0xa6b267(_0x392542),t=_0x392542['t'];return _0x46a757['set']({'icon':_0x318c1b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x46a757['bind']('isEnabled')['to'](_0x4c3351),_0x46a757['bind']('isOn')['to'](_0x4c3351,'isActive'),this['listenTo'](_0x46a757,'execute',()=>{_0x53bb93['execute']('uploadcareImageEdit'),_0x53bb93['editing']['view']['focus']();}),_0x46a757;}),this['_initConfig']();}['_initConfig'](){const _0x4d8a2b=_0x4bcdac(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4d8a2b),this['listenTo'](this['editor'],'destroy',()=>{_0x4d8a2b['remove']();});}}class P extends _0x46c2fe{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x1216db,Command as _0x566b9a}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1966ec,IconGooglePhotos as _0x2ce281,IconGoogleDrive as _0x381efa,IconFacebook as _0x246508,IconDropbox as _0x5500ff,IconUploadcareLink as _0x3fe24f,IconUploadcareImageUpload as _0xaf9236,IconError as et,IconUploadcareImageEdit as _0x493b43}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x50e41f,MenuBarMenuListItemButtonView as _0x422e7c,View as _0xbcde45,FocusCycler as _0x59b821,Dialog as _0x2e6829,DialogViewPosition as _0x4e3fb1,SpinnerView as _0x1d2eec,IconView as at,Notification as _0x3c8fee}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3be67e,DomEmitterMixin as _0x2e263f,global as _0x39abb1,getAncestors as _0x4cb2bd,ObservableMixin as _0xee8d54,createElement as _0xe1a070,uid as _0x53be81}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x447259}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5beac7,info as _0x5ed298}from'@uploadcare/upload-client';import*as _0x5ea66a from'@uploadcare/file-uploader';var o=function(_0x3501f3){return _0x3501f3['Local']='local',_0x3501f3['URL']='url',_0x3501f3['Dropbox']='dropbox',_0x3501f3['GDrive']='gdrive',_0x3501f3['Facebook']='facebook',_0x3501f3['GPhotos']='gphotos',_0x3501f3['OneDrive']='onedrive',_0x3501f3;}({});function _(_0x18e28f,_0x350a2d,_0x57fdff){const t=_0x18e28f['t'],_0x437a4d=_0x18e28f['t'];switch(_0x350a2d){case o['Local']:return{'text':_0x437a4d('Insert'===_0x57fdff?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x437a4d('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x57fdff?_0x437a4d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x437a4d('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x57fdff?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x57fdff?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x57fdff?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x57fdff?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x57fdff?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x350a2d;}}class e extends _0x1216db{['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 _0x3978dc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f235b;for(const _0x32debc in _0x3978dc){const _0xbcc655=_0x32debc,_0xd7816c=_0x3978dc[_0xbcc655];if('uploadcareLicenseKeyValid'==_0xd7816c||'uploadcareLicenseKeyInvalid'==_0xd7816c||'uploadcareLicenseKeyExpired'==_0xd7816c||'uploadcareLicenseKeyDomainLimit'==_0xd7816c||'uploadcareLicenseKeyNotAllowed'==_0xd7816c||'uploadcareLicenseKeyEvaluationLimit'==_0xd7816c||'uploadcareLicenseKeyTrialLimit'==_0xd7816c||'uploadcareLicenseKeyUsageLimit'==_0xd7816c){delete _0x3978dc[_0xbcc655],_0x1f235b=_0xd7816c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1f235b&&_0x3978dc['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1f235b&&_0x3978dc['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1f235b&&_0x3978dc['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1f235b&&_0x3978dc['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1f235b&&_0x3978dc['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1f235b&&_0x3978dc['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1f235b&&_0x3978dc['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x35e915}=this,_0x3d8bf0=_0x35e915['commands']['get']('uploadcare');if(!_0x3d8bf0)return;const _0x28dfc0=this['_normalizeConfigSourceList'](_0x35e915['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x571290,_0x27c606)=>{const _0x211085=this['_getIntegrationKey'](_0x27c606['type']);return _0x571290[_0x211085]||(_0x571290[_0x211085]=[]),_0x571290[_0x211085]['push'](_0x27c606),_0x571290;},{});_0x35e915['plugins']['has']('ImageInsertUI')&&_0x35e915['commands']['get']('uploadcare')&&Object['entries'](_0x28dfc0)['forEach'](([_0xfc5e3,_0x46ec58])=>{_0x35e915['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xfc5e3,'observable':()=>_0x3d8bf0,'buttonViewCreator':()=>this['_createToolbarButton'](_0x46ec58),'formViewCreator':()=>this['_createDropdownButtons'](_0x46ec58),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x46ec58),'override':'assetManager'!==_0xfc5e3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x296b23){const {locale:_0xe09a5c}=this['editor'];return _0x296b23['map'](_0x2a1ecb=>{const _0x81c85e=_(_0xe09a5c,_0x2a1ecb,'Insert');switch(_0x2a1ecb){case o['Local']:return{'icon':_0xaf9236,'type':o['Local'],..._0x81c85e};case o['URL']:return{'icon':_0x3fe24f,'type':o['URL'],..._0x81c85e};case o['Dropbox']:return{'icon':_0x5500ff,'type':o['Dropbox'],..._0x81c85e};case o['Facebook']:return{'icon':_0x246508,'type':o['Facebook'],..._0x81c85e};case o['GDrive']:return{'icon':_0x381efa,'type':o['GDrive'],..._0x81c85e};case o['GPhotos']:return{'icon':_0x2ce281,'type':o['GPhotos'],..._0x81c85e};case o['OneDrive']:return{'icon':_0x1966ec,'type':o['OneDrive'],..._0x81c85e};}});}['_getIntegrationKey'](_0x14271b){switch(_0x14271b){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2ef723,_0xbf9b29){const _0x4629e2=this['editor'],_0x5dfe30=new _0x2ef723(_0x4629e2['locale']),_0x296fbe=_0x4629e2['commands']['get']('uploadcare');return _0x5dfe30['bind']('isEnabled')['to'](_0x296fbe),_0x5dfe30['on']('execute',()=>{_0x296fbe['execute'](_0xbf9b29);}),_0x5dfe30;}['_createToolbarButton'](_0x31b82e){const {locale:_0x1eed50}=this['editor'],_0x56661c=this['editor']['plugins']['get']('ImageInsertUI'),_0x28b318=_0x31b82e[0x0],_0x756277=this['_createButton'](_0x50e41f,_0x28b318['type']);return _0x756277['icon']=_0x28b318['icon'],_0x756277['bind']('label')['to'](_0x56661c,'isImageSelected',_0x552eb6=>_(_0x1eed50,_0x28b318['type'],_0x552eb6?'Replace':'Insert')['text']),_0x756277['tooltip']=!0x0,_0x756277;}['_createDropdownButtons'](_0x54badc){const {locale:_0x22fd12}=this['editor'],_0x2b3ecd=this['editor']['plugins']['get']('ImageInsertUI');return _0x54badc['map'](_0x539773=>{const _0x438ad1=this['_createButton'](_0x50e41f,_0x539773['type']);return _0x438ad1['withText']=!0x0,_0x438ad1['icon']=_0x539773['icon'],_0x438ad1['bind']('label')['to'](_0x2b3ecd,'isImageSelected',_0x1e4749=>_(_0x22fd12,_0x539773['type'],_0x1e4749?'Replace':'Insert')['text']),_0x438ad1;});}['_createMenuBarButtons'](_0x28da15){return _0x28da15['map'](_0xaea0c0=>{const _0x1c4032=this['_createButton'](_0x422e7c,_0xaea0c0['type']);return _0x1c4032['icon']=_0xaea0c0['icon'],_0x1c4032['label']=_0xaea0c0['shortText'],_0x1c4032;});}}class q extends _0xbcde45{['focusTracker'];['focusCycler'];constructor(_0xa90dc1){super(_0xa90dc1),this['focusTracker']=new _0x3be67e(),this['focusCycler']=new _0x59b821({'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 S extends q{constructor(_0x9a1c8e){super(_0x9a1c8e),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x52fc7f,_0xc16ef2){const _0x1c1258=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3a9320=>_0x3a9320<=_0xc16ef2)['map'](_0x2f203f=>_0x52fc7f['replace'](/\/$/,'')+'/-/resize/'+_0x2f203f+'x/\x20'+_0x2f203f+'w');return{'imageFallbackUrl':_0x52fc7f,'imageSources':[{'srcset':_0x1c1258['join'](',\x20'),'sizes':'(max-width:\x20'+_0xc16ef2+'px)\x20100vw,\x20'+_0xc16ef2+'px','type':'image/webp'}]};}function A(_0x13db47,_0x4b1e1c,_0x5a1553){const _0x3061a0=_0x13db47['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3061a0?parseInt(_0x3061a0[0x1],0xa):_0x4b1e1c,'height':_0x3061a0?parseInt(_0x3061a0[0x2],0xa):_0x5a1553};}function m(_0x320a21,_0x4a8032){const _0x36b61d=Object['create'](_0x2e263f),_0x5d98d9=_0x320a21['plugins']['get']('ImageUtils'),_0x13aee0=_0x320a21['editing']['mapper']['toViewElement'](_0x4a8032),_0x4f5a57=_0x5d98d9['findViewImgElement'](_0x13aee0),_0x5ef680=_0x320a21['editing']['view']['domConverter']['viewToDom'](_0x4f5a57),_0x23b2eb=_0x4a8032['getAttribute']('width'),_0x27ce57=_0x4a8032['getAttribute']('height'),_0x1c082c='image-processing';_0x320a21['editing']['view']['change'](_0xadc138=>{_0xadc138['addClass'](_0x1c082c,_0x13aee0),_0xadc138['setStyle']('aspect-ratio',_0x23b2eb+'/'+_0x27ce57,_0x4f5a57);}),_0x36b61d['listenTo'](_0x5ef680,'load',()=>{_0x36b61d['stopListening'](_0x5ef680,'load'),_0x320a21['editing']['view']['change'](_0x34efc6=>{_0x34efc6['removeClass'](_0x1c082c,_0x13aee0),_0x34efc6['removeStyle']('aspect-ratio',_0x4f5a57);});});}function V(_0x2e12ec){if(Array['isArray'](_0x2e12ec)){const _0x3900d1=_0x2e12ec['map'](V);return _0x240c7e=>_0x3900d1['some'](_0x4cfbc7=>_0x4cfbc7(_0x240c7e));}if('origin'==_0x2e12ec){const _0x46e2c9=_0x39abb1['window']['location']['origin'];return _0x3d4dc1=>new URL(_0x3d4dc1,_0x39abb1['document']['baseURI'])['origin']==_0x46e2c9;}return'function'==typeof _0x2e12ec?_0x2e12ec:_0x2e12ec instanceof RegExp?_0x4c56a4=>!(!_0x4c56a4['match'](_0x2e12ec)&&!_0x4c56a4['replace'](/^https?:\/\//,'')['match'](_0x2e12ec)):()=>!0x1;}function F(_0x54e3b6,_0x18a778){return _0x4cb2bd(_0x54e3b6['target'])['includes'](_0x18a778);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xee8d54(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x22fe2e,_0x59b169,_0x437ac8){super(),this['_editor']=_0x22fe2e,this['_editing']=_0x59b169,this['_dialog']=_0x22fe2e['plugins']['get'](_0x2e6829),this['_api']=_0x59b169['ctxElement']['getAPI'](),this['_type']=_0x437ac8,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:_0x45b10a,model:_0xba5aa5}=this['_editor'],_0xa3f160=_0xba5aa5['document']['selection']['getSelectedElement'](),_0x4023a3=_0xa3f160&&(_0xa3f160['is']('element','imageBlock')||_0xa3f160['is']('element','imageInline'));this['_formView']=new S(_0x45b10a),this['_dialog']['show']({'id':'uploadCare','icon':_0xaf9236,'title':_(_0x45b10a,this['_type'],_0x4023a3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4e3fb1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x396148=>!F(_0x396148,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x9c389e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3ccfd9=>{const _0x358de3=_0x9c389e['length'];for(const _0x224382 of _0x9c389e){const _0x54f454=_0x224382===_0x9c389e[_0x358de3-0x1],{cdnUrl:_0x2c3c3e,fileInfo:_0x5cb797}=_0x224382;if(!_0x2c3c3e||!_0x5cb797)continue;const {width:_0x17fa16,height:_0x28337c}=_0x5cb797['imageInfo'],_0xb24df4=A(_0x2c3c3e,_0x17fa16,_0x28337c),_0x4ca9d8=E(_0x2c3c3e,_0xb24df4['width']),_0x236228={'id':_0x5cb797['uuid'],'type':'image','attributes':{'imageDimension':_0xb24df4,..._0x4ca9d8}};this['_insertAsset'](_0x236228,_0x54f454,_0x3ccfd9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x12e5db=>{'idle'===_0x12e5db['detail']['status']&&!_0x12e5db['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x45c3a1,_0xbf8f2d,_0x34c862){const _0x2f7665=this['_editor']['model']['document']['selection'],_0x4c96d8=_0x2f7665['getSelectedElement'](),_0x10defd=!(!_0x4c96d8||!_0x4c96d8['is']('element','imageInline'));_0x34c862['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x45c3a1,_0x10defd),_0xbf8f2d||_0x34c862['setSelection'](_0x2f7665['getLastPosition']());}['_insertImage'](_0x23bd54,_0x366d64){const _0x3026f7=this['_editor'],{imageDimension:_0x21db11,imageFallbackUrl:_0x17a92a,imageSources:_0x3dc9e2}=_0x23bd54['attributes'];_0x3026f7['execute']('insertImage',{'imageType':_0x366d64?'imageInline':null,'source':{'uploadcareImageId':_0x23bd54['id'],'src':_0x17a92a,'sources':_0x3dc9e2,..._0x21db11}});}}class n extends _0x566b9a{['_editing'];['_controller']=null;static get['requires'](){return[_0x2e6829,i];}constructor(_0xd05ae7){super(_0xd05ae7),this['_editing']=_0xd05ae7['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xcb2b69){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0xcb2b69);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x49ad1e,publicKey:_0x25e08a,signal:_0x4cdd4c,onProgress:_0x14c24d}){return _0x5beac7(_0x49ad1e,{'publicKey':_0x25e08a,'store':'auto','signal':_0x4cdd4c,'onProgress':_0x14c24d});}static['getInfo'](_0x174e20,_0x5dd04f){return _0x5ed298(_0x174e20,_0x5dd04f);}}class p extends _0x1216db{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x447259,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x44a563=this['editor'];if(!!!_0x44a563['config']['get']('uploadcare'))return;_0x44a563['plugins']['get'](_0x447259)['createUploadAdapter']=_0x3f1812=>new x(_0x3f1812,_0x44a563),_0x44a563['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xea027c,{imageElement:_0x302c11,data:_0x8c65c2})=>{_0x44a563['model']['change'](_0x150348=>{_0x150348['setAttribute']('uploadcareImageId',_0x8c65c2['uploadcareImageId'],_0x302c11);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x3c7d9b,_0x11047c){this['loader']=_0x3c7d9b,this['editor']=_0x11047c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4a07d2=this['editor']['config']['get']('uploadcare.pubkey'),_0x154412=await this['loader']['file'];return C['upload']({'file':_0x154412,'publicKey':_0x4a07d2,'signal':this['controller']['signal'],'onProgress':_0x2f4dd3=>{_0x2f4dd3&&_0x2f4dd3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2f4dd3['value']);}})['then'](async _0x511dec=>{const {imageFallbackUrl:_0x33090d,imageSources:_0x5d613b}=E(_0x511dec['cdnUrl'],_0x511dec['imageInfo']['width']);return{'uploadcareImageId':_0x511dec['uuid'],'default':_0x33090d,'sources':_0x5d613b};})['catch'](()=>{const _0x4c9441=t('Cannot\x20upload\x20file:')+('\x20'+_0x154412['name']+'.');return Promise['reject'](_0x4c9441);});}['abort'](){this['controller']['abort']();}}class i extends _0x1216db{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x2e6829];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x442cef=this['editor'];_0x442cef['commands']['add']('uploadcare',new n(_0x442cef));}['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 _0x2a5ae5=_0x39abb1['document']['querySelector']('input[uploadcare-file-input]');_0x2a5ae5&&_0x2a5ae5['remove']();}),async function(_0x5721a5){const _0x51cfae=_0x2cae23([0x4e,0x46,0x77,0x5a,0x67,0x59,0x73,0x4d,0x37,0x75,0x4c,0x70,0x31,0x62,0x49,0x57,0x69,0x44,0x35,0x78,0x55,0x6e,0x41,0x6b,0x38,0x33,0x32,0x53,0x48,0x63,0x52,0x39,0x30,0x6a,0x58,0x54,0x71,0x4f,0x68,0x65,0x64,0x36,0x47,0x61,0x66,0x74,0x34,0x79,0x56,0x76,0x50,0x42,0x43,0x4b,0x4a,0x7a,0x51,0x72,0x6d,0x6f,0x6c,0x45]),_0x9efcf5=0x23c72efe,_0x54489b=0x23c049a6^_0x9efcf5,_0x3a015b=window[_0x2cae23([0x44,0x61,0x74,0x65])][_0x2cae23([0x6e,0x6f,0x77])](),_0x4ff2a5=_0x5721a5[_0x2cae23([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47e327=new window[(_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c5866=>{_0x4ff2a5[_0x2cae23([0x6f,0x6e,0x63,0x65])](_0x2cae23([0x72,0x65,0x61,0x64,0x79]),_0x5c5866);}),_0xebfbe0={[_0x2cae23([0x6b,0x74,0x79])]:_0x2cae23([0x45,0x43]),[_0x2cae23([0x75,0x73,0x65])]:_0x2cae23([0x73,0x69,0x67]),[_0x2cae23([0x63,0x72,0x76])]:_0x2cae23([0x50,0x2d,0x32,0x35,0x36]),[_0x2cae23([0x78])]:_0x2cae23([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]),[_0x2cae23([0x79])]:_0x2cae23([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]),[_0x2cae23([0x61,0x6c,0x67])]:_0x2cae23([0x45,0x53,0x32,0x35,0x36])},_0x23490a=_0x4ff2a5[_0x2cae23([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2cae23([0x67,0x65,0x74])](_0x2cae23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c998e(){let _0x23df1b,_0x25ee3c=null,_0x1d986c=null;try{if(_0x23490a==_0x2cae23([0x47,0x50,0x4c]))return _0x2cae23([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x23df1b=_0x2fb725(),!_0x23df1b)return _0x2cae23([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x23df1b[_0x2cae23([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d986c=_0x107ce7(_0x23df1b[_0x2cae23([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x23df1b[_0x2cae23([0x6a,0x74,0x69])])),await _0x47bf36()?_0x2a1a5f()?_0x237965()?_0x2cae23([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c4e05()?(_0x23df1b[_0x2cae23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cae23([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x25ee3c=_0x556228(_0x2cae23([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x23df1b[_0x2cae23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cae23([0x74,0x72,0x69,0x61,0x6c])&&(_0x25ee3c=_0x556228(_0x2cae23([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5dd6d0()):_0x2cae23([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2cae23([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2cae23([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2f4eae){return _0x2cae23([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x237965(){const _0x53a51a=[_0x2cae23([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2cae23([0x74,0x72,0x69,0x61,0x6c])][_0x2cae23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23df1b[_0x2cae23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a015b/0x3e8:0xe10*_0x54489b;return _0x23df1b[_0x2cae23([0x65,0x78,0x70])]<_0x53a51a;}function _0x2a1a5f(){const _0x156d59=_0x23df1b[_0x2cae23([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x156d59&&(!!_0x156d59[_0x2cae23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cae23([0x2a]))||!!_0x156d59[_0x2cae23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cae23([0x55,0x50,0x4c,0x43])));}function _0x2c4e05(){const _0x24c61e=_0x23df1b[_0x2cae23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24c61e||0x0==_0x24c61e[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f363a}=new URL(window[_0x2cae23([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x24c61e[_0x2cae23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f363a))return!0x0;const _0x3b1b88=_0x4f363a[_0x2cae23([0x73,0x70,0x6c,0x69,0x74])](_0x2cae23([0x2e]));return _0x24c61e[_0x2cae23([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40d152=>_0x40d152[_0x2cae23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cae23([0x2a])))[_0x2cae23([0x6d,0x61,0x70])](_0x32b664=>_0x32b664[_0x2cae23([0x73,0x70,0x6c,0x69,0x74])](_0x2cae23([0x2e])))[_0x2cae23([0x73,0x6f,0x6d,0x65])](_0x5666f3=>_0x3b1b88[_0x2cae23([0x65,0x76,0x65,0x72,0x79])]((_0x244804,_0x2afde1)=>_0x5666f3[_0x2afde1]===_0x244804||_0x5666f3[_0x2afde1]===_0x2cae23([0x2a])));}function _0x5dd6d0(){return _0x25ee3c&&_0x1d986c?new window[(_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ff125,_0x29f74f)=>{_0x25ee3c[_0x2cae23([0x74,0x68,0x65,0x6e])](_0x2ff125,_0x29f74f),_0x1d986c[_0x2cae23([0x74,0x68,0x65,0x6e])](_0x4d7341=>{_0x4d7341!=_0x2cae23([0x56,0x61,0x6c,0x69,0x64])&&_0x2ff125(_0x4d7341);},_0x29f74f);}):_0x25ee3c||_0x1d986c||_0x2cae23([0x56,0x61,0x6c,0x69,0x64]);}}function _0x107ce7(_0x1bc13f,_0x5f3ff8){return new window[(_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e04a9=>{if(_0xd119fe())return _0x3e04a9(_0x2cae23([0x56,0x61,0x6c,0x69,0x64]));_0x3a2a31(),_0x4ff2a5[_0x2cae23([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2cae23([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1633e4=!0x1;const _0x33c1db=_0x53be81();function _0x2e3f1e(_0x321cee){return!!_0x321cee&&(typeof _0x321cee===_0x2cae23([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x321cee===_0x2cae23([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x321cee[_0x2cae23([0x74,0x68,0x65,0x6e])]===_0x2cae23([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x321cee[_0x2cae23([0x63,0x61,0x74,0x63,0x68])]===_0x2cae23([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x39b709(_0x2a70c1){_0x26590e(_0x2a70c1)[_0x2cae23([0x74,0x68,0x65,0x6e])](_0x4711d9=>{if(!_0x4711d9||_0x4711d9[_0x2cae23([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2cae23([0x6f,0x6b]))return _0x2cae23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4f555e(_0x3291ad(_0x33c1db+_0x5f3ff8))!=_0x4711d9[_0x2cae23([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2cae23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2cae23([0x56,0x61,0x6c,0x69,0x64]);})[_0x2cae23([0x74,0x68,0x65,0x6e])](_0x5b2105=>(_0x5dab0f(),_0x5b2105),()=>{const _0x27e615=_0x24550c();return null==_0x27e615?(_0x5dab0f(),_0x2cae23([0x56,0x61,0x6c,0x69,0x64])):_0x2cae23(_0x3a015b-_0x27e615>(0x7cbaafe^_0x9efcf5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2cae23([0x74,0x68,0x65,0x6e])](_0x3e04a9)[_0x2cae23([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3e04a9(_0x2cae23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x110771=0x23f1c07e^_0x9efcf5;function _0x5dab0f(){const _0x16220d=_0x2cae23([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f555e(_0x3291ad(_0x1bc13f)),_0x41a073=_0x139f63(_0x4f555e(window[_0x2cae23([0x4d,0x61,0x74,0x68])][_0x2cae23([0x63,0x65,0x69,0x6c])](_0x3a015b/_0x110771)));window[_0x2cae23([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cae23([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16220d,_0x41a073);}function _0x24550c(){const _0xcb96d4=_0x2cae23([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f555e(_0x3291ad(_0x1bc13f)),_0x3b888d=window[_0x2cae23([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cae23([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcb96d4);return _0x3b888d?window[_0x2cae23([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x139f63(_0x3b888d),0x10)*_0x110771:null;}function _0x26590e(_0x2dd85a){return new window[(_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c123a,_0x1cbf3f)=>{_0x2dd85a[_0x2cae23([0x74,0x68,0x65,0x6e])](_0x4c123a,_0x1cbf3f),window[_0x2cae23([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1cbf3f,0x23c6fa3e^_0x9efcf5);});}}_0x4ff2a5[_0x2cae23([0x6f,0x6e])](_0x2cae23([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x259f94,_0x3eb122)=>{if(_0x3eb122[0x0]!=_0x1bc13f)return _0x3e04a9(_0x2cae23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3eb122[0x1]={..._0x3eb122[0x1],[_0x2cae23([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33c1db};},{[_0x2cae23([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cae23([0x68,0x69,0x67,0x68])}),_0x4ff2a5[_0x2cae23([0x6f,0x6e])](_0x2cae23([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b335c=>{_0x2e3f1e(_0x1b335c[_0x2cae23([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1633e4=!0x0,_0x39b709(_0x1b335c[_0x2cae23([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2cae23([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cae23([0x6c,0x6f,0x77])}),_0x47e327[_0x2cae23([0x74,0x68,0x65,0x6e])](()=>{_0x1633e4||_0x3e04a9(_0x2cae23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd119fe(){return _0x4ff2a5[_0x2cae23([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cae23([0x76,0x69,0x65,0x77])][_0x2cae23([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2cae23([0x61,0x75,0x74,0x6f]);}function _0x3a2a31(){_0x4ff2a5[_0x2cae23([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cae23([0x76,0x69,0x65,0x77])][_0x2cae23([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2cae23([0x61,0x75,0x74,0x6f]);}}function _0x556228(_0x2758c2){const _0x415d49=[new window[(_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33ecab=>setTimeout(_0x33ecab,0x23ce1032^_0x9efcf5)),_0x47e327[_0x2cae23([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f108=>{let _0x5cd548=0x0;_0x4ff2a5[_0x2cae23([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cae23([0x6f,0x6e])](_0x2cae23([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xc52f7e,_0x2a58cc)=>{_0x2a58cc[0x0][_0x2cae23([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5cd548++,_0x5cd548==(0x23c72f06^_0x9efcf5)&&(_0x3f108(),_0xc52f7e[_0x2cae23([0x6f,0x66,0x66])]());});}))];return window[_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2cae23([0x72,0x61,0x63,0x65])](_0x415d49)[_0x2cae23([0x74,0x68,0x65,0x6e])](()=>_0x2758c2);}async function _0x6ebe45(){await _0x47e327,_0x4ff2a5[_0x2cae23([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cae23([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x533a32,_0x4ff2a5[_0x2cae23([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cae23([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x533a32,_0x4ff2a5[_0x2cae23([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2cae23([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4ceaba(_0x3a0088){const _0x26f01e=_0x2090aa();_0x4ff2a5[_0x26f01e]=_0x2cae23([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3a0088,_0x3a0088!=_0x2cae23([0x56,0x61,0x6c,0x69,0x64])&&_0x6ebe45();}function _0x2090aa(){const _0x37a6b6=window[_0x2cae23([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2cae23([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2cae23([0x6e,0x6f,0x77])]())[_0x2cae23([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2cae23([0x2e]),'');let _0x585b4f=_0x2cae23([0x4e]);for(let _0x3920ea=0x0;_0x3920ea<_0x37a6b6[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3920ea+=0x2){let _0x49ac7b=window[_0x2cae23([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37a6b6[_0x2cae23([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3920ea,_0x3920ea+0x2));_0x49ac7b>=_0x51cfae[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49ac7b-=_0x51cfae[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x585b4f+=_0x51cfae[_0x49ac7b];}return _0x585b4f;}function _0x2fb725(){const _0x53ee04=_0x23490a[_0x2cae23([0x73,0x70,0x6c,0x69,0x74])](_0x2cae23([0x2e]));if(0x3!=_0x53ee04[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x32d7dd(_0x53ee04[0x1]);function _0x32d7dd(_0x310b4a){const _0x4d501f=_0x4f0cae(_0x310b4a);return _0x4d501f&&_0x19feb6()?_0x4d501f:null;function _0x19feb6(){const _0x55b8f7=_0x4d501f[_0x2cae23([0x6a,0x74,0x69])],_0x47e5fc=window[_0x2cae23([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55b8f7[_0x2cae23([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55b8f7[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3df740={..._0x4d501f,[_0x2cae23([0x6a,0x74,0x69])]:_0x55b8f7[_0x2cae23([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x55b8f7[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3df740[_0x2cae23([0x76,0x63])],_0x3291ad(_0x3df740)==_0x47e5fc;}}}async function _0x47bf36(){let _0x52036d=!0x0;try{const _0x5c8c1e=_0x23490a[_0x2cae23([0x73,0x70,0x6c,0x69,0x74])](_0x2cae23([0x2e])),[_0x4de685,_0x3b4f4c,_0x3cc7d0]=_0x5c8c1e;return _0x4daa37(_0x4de685),await _0x1ad19e(_0x4de685,_0x3b4f4c,_0x3cc7d0),_0x52036d;}catch(_0xbeed2){return!0x1;}function _0x4daa37(_0x4a87f3){const _0x49b9ee=_0x4f0cae(_0x4a87f3);_0x49b9ee&&_0x49b9ee[_0x2cae23([0x61,0x6c,0x67])]==_0x2cae23([0x45,0x53,0x32,0x35,0x36])||(_0x52036d=!0x1);}async function _0x1ad19e(_0x3daa8e,_0xc5cd99,_0x323526){const _0x3aecaf=window[_0x2cae23([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2cae23([0x66,0x72,0x6f,0x6d])](_0x4f2904(_0x323526),_0x33211c=>_0x33211c[_0x2cae23([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x53a329=new window[(_0x2cae23([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2cae23([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3daa8e+_0x2cae23([0x2e])+_0xc5cd99),_0x12e3b1=window[_0x2cae23([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2cae23([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12e3b1)return;const _0x2a1389=await _0x12e3b1[_0x2cae23([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2cae23([0x6a,0x77,0x6b]),_0xebfbe0,{[_0x2cae23([0x6e,0x61,0x6d,0x65])]:_0x2cae23([0x45,0x43,0x44,0x53,0x41]),[_0x2cae23([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2cae23([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2cae23([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12e3b1[_0x2cae23([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2cae23([0x6e,0x61,0x6d,0x65])]:_0x2cae23([0x45,0x43,0x44,0x53,0x41]),[_0x2cae23([0x68,0x61,0x73,0x68])]:{[_0x2cae23([0x6e,0x61,0x6d,0x65])]:_0x2cae23([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2a1389,_0x3aecaf,_0x53a329)||(_0x52036d=!0x1);}}function _0x4f0cae(_0xd7887a){return _0xd7887a[_0x2cae23([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2cae23([0x65,0x79]))?JSON[_0x2cae23([0x70,0x61,0x72,0x73,0x65])](_0x4f2904(_0xd7887a)):null;}function _0x4f2904(_0x3f35fe){return window[_0x2cae23([0x61,0x74,0x6f,0x62])](_0x3f35fe[_0x2cae23([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2cae23([0x2b]))[_0x2cae23([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2cae23([0x2f])));}function _0x3291ad(_0x3d64b8){let _0x3151f5=0x1505;function _0x12225f(_0x1a9b77){for(let _0x18dafb=0x0;_0x18dafb<_0x1a9b77[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18dafb++){const _0x11d765=_0x1a9b77[_0x2cae23([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18dafb);_0x3151f5=(_0x3151f5<<0x5)+_0x3151f5+_0x11d765,_0x3151f5&=_0x3151f5;}}function _0x116322(_0x44c865){Array[_0x2cae23([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x44c865)?_0x44c865[_0x2cae23([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x116322):_0x44c865&&typeof _0x44c865==_0x2cae23([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2cae23([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x44c865)[_0x2cae23([0x73,0x6f,0x72,0x74])]()[_0x2cae23([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52c666,_0xa7f447])=>{_0x12225f(_0x52c666),_0x116322(_0xa7f447);}):_0x12225f(window[_0x2cae23([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x44c865));}return _0x116322(_0x3d64b8),_0x3151f5>>>0x0;}function _0x4f555e(_0xe87c4b){return _0xe87c4b[_0x2cae23([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2cae23([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2cae23([0x30]));}function _0x139f63(_0x49db23){return _0x49db23[_0x2cae23([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2cae23([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2cae23([0x6a,0x6f,0x69,0x6e])]('');}function _0x533a32(){}function _0x2cae23(_0x5396e3){return _0x5396e3['map'](_0x56360c=>String['fromCharCode'](_0x56360c))['join']('');}_0x4ceaba(await _0x2c998e());}(this);}['_initSchema'](){const _0x56f121=this['editor']['model']['schema'];_0x56f121['isRegistered']('imageBlock')&&_0x56f121['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x56f121['isRegistered']('imageInline')&&_0x56f121['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3b9366=this['editor'];_0x3b9366['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3b9366['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2e9491=>_0x2e9491['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57443c=_0x3b9366['commands']['get']('replaceImageSource');_0x57443c&&this['listenTo'](_0x57443c,'cleanupImage',(_0x28b0ee,[_0x3412ab,_0x4f755b])=>{_0x3412ab['removeAttribute']('uploadcareImageId',_0x4f755b);});}['_initConfig'](){const _0x594cbd=this['editor']['config']['get']('uploadcare.uploader')||{},_0x362c62=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xe1a070(_0x39abb1['document'],'uc-config',{..._0x594cbd,'pubkey':_0x362c62,'ctx-name':'uploader','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']=_0x3df0c2=>{if('closeMax'==_0x3df0c2)return'#uc-icon-arrow-down';},_0x39abb1['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xe1a070(_0x39abb1['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x39abb1['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xbda51e=this['editor']['commands']['get']('insertImage');_0xbda51e&&this['listenTo'](_0xbda51e,'execute',()=>{const _0x1e28eb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1e28eb&&_0x1e28eb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1e28eb);});});const _0x490410=this['editor']['commands']['get']('uploadcareImageReplace');_0x490410&&this['listenTo'](_0x490410,'execute',()=>{const _0x30e727=this['editor']['model']['document']['selection']['getSelectedElement']();_0x30e727&&_0x30e727['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x30e727);});});}}class u extends _0x1216db{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38d2d6){super(_0x38d2d6),_0x38d2d6['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x5ea66a['defineComponents'](_0x5ea66a);}}class ta extends _0xbcde45{constructor(_0x607fff){super(_0x607fff);const t=_0x607fff['t'],_0x429156=this['bindTemplate'],_0x1ab5da=new _0x1d2eec();_0x1ab5da['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':[_0x1ab5da,{'text':_0x429156['to']('imageUploadProgress',_0x229f3e=>t('Loading\x20image...')+'\x20('+(_0x229f3e||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 rt extends _0xbcde45{constructor(_0x21304a){super(_0x21304a);const t=_0x21304a['t'];this['set']('errorType',null);const _0x355c7e=new _0x50e41f(_0x21304a);_0x355c7e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x355c7e['withText']=!0x0,_0x355c7e['class']='ck-button-action',_0x355c7e['on']('execute',()=>{this['fire']('retry');}),_0x355c7e['bind']('isVisible')['to'](this,'errorType',_0x500441=>'NotFound'!==_0x500441);const _0x4637b3=new at();_0x4637b3['content']=et,_0x4637b3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4607d1=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':[_0x4637b3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4607d1['to']('errorType',_0x3f7bfa=>t('NotFound'!==_0x3f7bfa?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x355c7e]},{'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 tt extends _0xbcde45{constructor(_0x37ed03,_0x40386b){super(_0x37ed03);const _0x25dc44=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x40386b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x25dc44['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4cd0c8,_0x53631e,_0x3556e3){super(_0x4cd0c8),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x4cd0c8),this['_errorView']=new rt(_0x4cd0c8),this['_editingView']=new tt(_0x4cd0c8,_0x3556e3),this['_focusableView']=new _0xbcde45(_0x4cd0c8),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x53631e),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'],_0x1f9c17=>{this['_addUploadcareImageEditorListeners'](_0x1f9c17);});}),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'](_0x26356b,_0x458074){const _0x390ee2='uc-cloud-image-editor',_0x380cd0=_0x26356b['querySelector'](_0x390ee2);if(_0x380cd0)return _0x458074(_0x380cd0);const _0x139ff0=new MutationObserver(_0x49d243=>{const _0x32548a=_0x49d243['filter'](_0x500afe=>_0x500afe['target']===_0x26356b&&_0x500afe['addedNodes']['length']>0x0&&_0x500afe['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x390ee2);_0x32548a['length']&&(_0x139ff0['disconnect'](),_0x458074(_0x32548a[0x0]['addedNodes'][0x0]));});_0x139ff0['observe'](_0x26356b,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x9d138e){_0x9d138e['addEventListener']('apply',_0x472509=>{this['fire']('apply',{'imageSrc':_0x472509['detail']['cdnUrl']});}),_0x9d138e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xee8d54(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x11c4da,_0x56b791,_0x20b017){super(),this['_editor']=_0x11c4da,this['_dialog']=_0x56b791,this['_imageElement']=_0x20b017,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 _0x5023cc=this['_imageElement'],_0x4d466c=_0x5023cc['getAttribute']('uploadcareImageId'),_0x17048d=_0x5023cc['getAttribute']('src');if(_0x4d466c)await this['_loadImageInfo'](_0x4d466c,_0x17048d);else{if(this['_imageCache']['has'](_0x17048d)){const _0x3630c9=this['_imageCache']['get'](_0x17048d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3630c9['url'],this['imageDimension']=_0x3630c9['dimension'],this['imageId']=_0x3630c9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2ce55f}=this['_editor'],t=_0x2ce55f['t'],_0xb4c8b4=new Z(_0x2ce55f,this['imageStatus'],this['_attributes']);_0xb4c8b4['bind']('status')['to'](this,'imageStatus'),_0xb4c8b4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xb4c8b4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xb4c8b4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xb4c8b4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x493b43,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xb4c8b4,'position':_0x4e3fb1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xb4c8b4['focus']();},'onHide':()=>{_0xb4c8b4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4be723=>!F(_0x4be723,_0xb4c8b4['element'])}});}['_loadImageInfo'](_0x4515ff,_0x3cbe2a){return C['getInfo'](_0x4515ff,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3d651b=>{const {width:_0x47defe,height:_0x24dac1}=_0x3d651b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3cbe2a,this['imageDimension']={'width':_0x47defe,'height':_0x24dac1},this['imageId']=_0x4515ff;})['catch'](_0x78638d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x78638d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x34df55,_0x1be216){return this['_getImageAsFile'](_0x34df55)['then'](_0x516288=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1be216['signal'],'file':_0x516288,'onProgress':_0x1eadc4=>{_0x1eadc4&&_0x1eadc4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1eadc4['value']));}}))['then'](_0x196fa3=>{const {width:_0x432bec,height:_0x565364}=_0x196fa3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x196fa3['cdnUrl'],this['imageDimension']={'width':_0x432bec,'height':_0x565364},this['imageId']=_0x196fa3['uuid'],this['imageUploadProgress']=null;const _0x4f65d2=_0x34df55['getAttribute']('src');this['_imageCache']['set'](_0x4f65d2,{'id':_0x196fa3['uuid'],'url':_0x196fa3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5115a9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5115a9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3debd1,_0x4a74fe){_0x3debd1['on']('apply',(_0x3cf565,_0x2cd854)=>{this['_replaceImage'](_0x4a74fe,_0x2cd854['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3debd1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3debd1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x191008,_0x25a0d0,_0x58b0db){const _0x4b59fd=this['_editor'],{width:_0x34f1ea,height:_0x48e15d}=A(_0x25a0d0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x43740a,imageSources:_0x4d7a2e}=E(_0x25a0d0,_0x34f1ea);_0x4b59fd['model']['change'](_0x104a62=>{if('$graveyard'===_0x191008['root']['rootName']){_0x4b59fd['execute']('insertImage',{'imageType':_0x191008['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x191008['getAttributes']()),'uploadcareImageId':_0x58b0db,'src':_0x43740a,'sources':_0x4d7a2e,'width':_0x34f1ea,'height':_0x48e15d}});const _0x46ad0a=_0x191008['getChildren']();_0x191008=_0x4b59fd['model']['document']['selection']['getSelectedElement']();for(const _0x1a5643 of _0x46ad0a)_0x104a62['append'](_0x104a62['cloneElement'](_0x1a5643),_0x191008);}else _0x104a62['setSelection'](_0x191008,'on'),_0x4b59fd['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x191008['getAttributes']()),'uploadcareImageId':_0x58b0db,'src':_0x43740a,'sources':_0x4d7a2e,'width':_0x34f1ea,'height':_0x48e15d},_0x191008);_0x104a62['setSelection'](_0x191008,'on');});}async['_getImageAsFile'](_0x24f126){const _0x3e76a3=_0x39abb1['window'],_0x3562c9=_0x39abb1['document']['location']['href'],_0x5d742a=new _0x3e76a3['URL'](_0x24f126['getAttribute']('src'),_0x3562c9);if('data:'===_0x5d742a['protocol']){const _0x1abff1=_0x5d742a['href']['split'](','),_0x451a3d=_0x1abff1[0x0]['match'](/:(.*?);/)[0x1],_0x40d0b6=_0x451a3d['split']('/')[0x1],_0x24b3d1=_0x3e76a3['atob'](_0x1abff1[_0x1abff1['length']-0x1]);let _0x317a46=_0x24b3d1['length'];const _0x392663=new _0x3e76a3['Uint8Array'](_0x317a46);for(;_0x317a46--;)_0x392663[_0x317a46]=_0x24b3d1['charCodeAt'](_0x317a46);return new _0x3e76a3['File']([_0x392663],'image.'+_0x40d0b6,{'type':_0x451a3d});}const _0x42aa66=_0x5d742a['href']['split']('/'),_0x3ceccb=_0x42aa66[_0x42aa66['length']-0x1],_0x413f1b=_0x3ceccb['split']('.')[0x1];return _0x3e76a3['fetch'](_0x5d742a['href'])['then'](_0x3a48f2=>_0x3a48f2['clone']()['blob']())['then'](_0x42dd98=>new _0x3e76a3['File']([_0x42dd98],_0x3ceccb,{'type':'image/'+_0x413f1b}));}}class J extends _0x566b9a{['imageEditController'];static get['requires'](){return[_0x2e6829];}['_isEditable'];constructor(_0x3c6e36){super(_0x3c6e36),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x42cd99){const _0x52e517=V(_0x42cd99);return _0x2b5f45=>!(!_0x2b5f45||!_0x2b5f45['is']('element','imageBlock')&&!_0x2b5f45['is']('element','imageInline'))&&(!!_0x2b5f45['hasAttribute']('uploadcareImageId')||!!_0x2b5f45['hasAttribute']('src')&&_0x52e517(_0x2b5f45['getAttribute']('src')));}(_0x3c6e36['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xaf250d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xaf250d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4a9b60=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4a9b60&&(_0x4a9b60['is']('element','imageBlock')||_0x4a9b60['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x2e6829),_0x4a9b60),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x566b9a{['refresh'](){const _0x8ce952=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x8ce952&&(_0x8ce952['is']('element','imageBlock')||_0x8ce952['is']('element','imageInline')));}['execute'](_0x48e3d4){const _0x16d6ab=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x25ea11=>{_0x25ea11['setAttributes'](_0x48e3d4,_0x16d6ab),_0x25ea11['removeAttribute']('srcset',_0x16d6ab),_0x25ea11['removeAttribute']('sizes',_0x16d6ab);});}}class g extends _0x1216db{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3c8fee,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4c59e9}=this;_0x4c59e9['commands']['add']('uploadcareImageEdit',new J(_0x4c59e9)),_0x4c59e9['commands']['add']('uploadcareImageReplace',new O(_0x4c59e9));}}class j extends _0x1216db{['_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 _0x5c7222=this['editor'];_0x5c7222['ui']['componentFactory']['add']('uploadcareImageEdit',_0x248251=>{const _0x2b3b1b=_0x5c7222['commands']['get']('uploadcareImageEdit'),_0x14bebb=new _0x50e41f(_0x248251),t=_0x248251['t'];return _0x14bebb['set']({'icon':_0x493b43,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x14bebb['bind']('isEnabled')['to'](_0x2b3b1b),_0x14bebb['bind']('isOn')['to'](_0x2b3b1b,'isActive'),this['listenTo'](_0x14bebb,'execute',()=>{_0x5c7222['execute']('uploadcareImageEdit'),_0x5c7222['editing']['view']['focus']();}),_0x14bebb;}),this['_initConfig']();}['_initConfig'](){const _0x37413c=_0xe1a070(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x37413c),this['listenTo'](this['editor'],'destroy',()=>{_0x37413c['remove']();});}}class P extends _0x1216db{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
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':_0x572aae=>0x1!=_0x572aae}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x86c7d9=>{const {af:{dictionary:_0x7b926e,getPluralForm:_0x2c238c}}={'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':_0x32d534=>0x1!=_0x32d534}};_0x86c7d9['af']||={'dictionary':{},'getPluralForm':null},_0x86c7d9['af']['dictionary']=Object['assign'](_0x86c7d9['af']['dictionary'],_0x7b926e),_0x86c7d9['af']['getPluralForm']=_0x2c238c;})(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':_0x22b495=>0x0==_0x22b495?0x0:0x1==_0x22b495?0x1:0x2==_0x22b495?0x2:_0x22b495%0x64>=0x3&&_0x22b495%0x64<=0xa?0x3:_0x22b495%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1e1eb2=>{const {ar:{dictionary:_0x108222,getPluralForm:_0x424a00}}={'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':_0x36acb6=>0x0==_0x36acb6?0x0:0x1==_0x36acb6?0x1:0x2==_0x36acb6?0x2:_0x36acb6%0x64>=0x3&&_0x36acb6%0x64<=0xa?0x3:_0x36acb6%0x64>=0xb?0x4:0x5}};_0x1e1eb2['ar']||={'dictionary':{},'getPluralForm':null},_0x1e1eb2['ar']['dictionary']=Object['assign'](_0x1e1eb2['ar']['dictionary'],_0x108222),_0x1e1eb2['ar']['getPluralForm']=_0x424a00;})(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':_0x29f90a=>0x1!=_0x29f90a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x298132=>{const {ast:{dictionary:_0x89ab7c,getPluralForm:_0x2adcde}}={'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':_0x57a4c9=>0x1!=_0x57a4c9}};_0x298132['ast']||={'dictionary':{},'getPluralForm':null},_0x298132['ast']['dictionary']=Object['assign'](_0x298132['ast']['dictionary'],_0x89ab7c),_0x298132['ast']['getPluralForm']=_0x2adcde;})(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':_0x13678e=>0x1!=_0x13678e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4e1555=>{const {az:{dictionary:_0x2bff69,getPluralForm:_0x4798e1}}={'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':_0x5041ed=>0x1!=_0x5041ed}};_0x4e1555['az']||={'dictionary':{},'getPluralForm':null},_0x4e1555['az']['dictionary']=Object['assign'](_0x4e1555['az']['dictionary'],_0x2bff69),_0x4e1555['az']['getPluralForm']=_0x4798e1;})(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':_0x19f80b=>_0x19f80b%0xa==0x1&&_0x19f80b%0x64!=0xb?0x0:_0x19f80b%0xa>=0x2&&_0x19f80b%0xa<=0x4&&(_0x19f80b%0x64<0xa||_0x19f80b%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x28a403=>{const {be:{dictionary:_0x5b4ed0,getPluralForm:_0x510903}}={'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':_0x5de27f=>_0x5de27f%0xa==0x1&&_0x5de27f%0x64!=0xb?0x0:_0x5de27f%0xa>=0x2&&_0x5de27f%0xa<=0x4&&(_0x5de27f%0x64<0xa||_0x5de27f%0x64>=0x14)?0x1:0x2}};_0x28a403['be']||={'dictionary':{},'getPluralForm':null},_0x28a403['be']['dictionary']=Object['assign'](_0x28a403['be']['dictionary'],_0x5b4ed0),_0x28a403['be']['getPluralForm']=_0x510903;})(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':_0x26318b=>0x1!=_0x26318b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4eb589=>{const {bg:{dictionary:_0x19a2a9,getPluralForm:_0x3abadf}}={'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':_0x1ebba2=>0x1!=_0x1ebba2}};_0x4eb589['bg']||={'dictionary':{},'getPluralForm':null},_0x4eb589['bg']['dictionary']=Object['assign'](_0x4eb589['bg']['dictionary'],_0x19a2a9),_0x4eb589['bg']['getPluralForm']=_0x3abadf;})(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':_0x49b7a0=>0x1!=_0x49b7a0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x91d126=>{const {bn:{dictionary:_0x2397dc,getPluralForm:_0x5582e5}}={'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':_0x46af42=>0x1!=_0x46af42}};_0x91d126['bn']||={'dictionary':{},'getPluralForm':null},_0x91d126['bn']['dictionary']=Object['assign'](_0x91d126['bn']['dictionary'],_0x2397dc),_0x91d126['bn']['getPluralForm']=_0x5582e5;})(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':_0x35db1c=>_0x35db1c%0xa==0x1&&_0x35db1c%0x64!=0xb?0x0:_0x35db1c%0xa>=0x2&&_0x35db1c%0xa<=0x4&&(_0x35db1c%0x64<0xa||_0x35db1c%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x39bd9f=>{const {bs:{dictionary:_0x483b03,getPluralForm:_0x27ccaa}}={'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':_0x1c76c1=>_0x1c76c1%0xa==0x1&&_0x1c76c1%0x64!=0xb?0x0:_0x1c76c1%0xa>=0x2&&_0x1c76c1%0xa<=0x4&&(_0x1c76c1%0x64<0xa||_0x1c76c1%0x64>=0x14)?0x1:0x2}};_0x39bd9f['bs']||={'dictionary':{},'getPluralForm':null},_0x39bd9f['bs']['dictionary']=Object['assign'](_0x39bd9f['bs']['dictionary'],_0x483b03),_0x39bd9f['bs']['getPluralForm']=_0x27ccaa;})(window['CKEDITOR_TRANSLATIONS']||={});
|