@ckeditor/ckeditor5-uploadcare 45.1.0-alpha.4 → 45.1.0-alpha.6
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 _0x2252f4,Command as _0x53cd57}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x50aee0,IconGooglePhotos as _0x3bc49f,IconGoogleDrive as _0x1f6628,IconFacebook as _0x9866d3,IconDropbox as _0x45d2de,IconUploadcareLink as _0xfa8d69,IconUploadcareImageUpload as _0x103d4e,IconError as et,IconUploadcareImageEdit as _0x477390}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x14edb9,MenuBarMenuListItemButtonView as _0x1a880f,View as _0x2607b8,FocusCycler as _0x534244,Dialog as _0x4da01e,DialogViewPosition as _0x167e77,SpinnerView as _0x4de68d,IconView as at,Notification as _0x498d67}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4c5ff2,DomEmitterMixin as _0xdc0548,global as _0x4d3312,getAncestors as _0x39ff1a,ObservableMixin as _0x4bb07a,createElement as _0x50d96f,uid as _0x18dbf8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x344cd3}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1545d5,info as _0x3246e6}from'@uploadcare/upload-client';import*as _0x6af673 from'@uploadcare/file-uploader';var o=function(_0x5cf7de){return _0x5cf7de['Local']='local',_0x5cf7de['URL']='url',_0x5cf7de['Dropbox']='dropbox',_0x5cf7de['GDrive']='gdrive',_0x5cf7de['Facebook']='facebook',_0x5cf7de['GPhotos']='gphotos',_0x5cf7de['OneDrive']='onedrive',_0x5cf7de;}({});function _(_0x4c96ec,_0x22ab0d,_0x48c75d){const t=_0x4c96ec['t'],_0x94f1a3=_0x4c96ec['t'];switch(_0x22ab0d){case o['Local']:return{'text':_0x94f1a3('Insert'===_0x48c75d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x94f1a3('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x48c75d?_0x94f1a3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x94f1a3('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x22ab0d;}}class e extends _0x2252f4{['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 _0x51b606=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3e4b11;for(const _0x21c317 in _0x51b606){const _0x2ef38d=_0x21c317,_0x36bdb2=_0x51b606[_0x2ef38d];if('uploadcareLicenseKeyValid'==_0x36bdb2||'uploadcareLicenseKeyInvalid'==_0x36bdb2||'uploadcareLicenseKeyExpired'==_0x36bdb2||'uploadcareLicenseKeyDomainLimit'==_0x36bdb2||'uploadcareLicenseKeyNotAllowed'==_0x36bdb2||'uploadcareLicenseKeyEvaluationLimit'==_0x36bdb2||'uploadcareLicenseKeyTrialLimit'==_0x36bdb2||'uploadcareLicenseKeyUsageLimit'==_0x36bdb2){delete _0x51b606[_0x2ef38d],_0x3e4b11=_0x36bdb2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3e4b11&&_0x51b606['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3e4b11&&_0x51b606['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3e4b11&&_0x51b606['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3e4b11&&_0x51b606['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3e4b11&&_0x51b606['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3e4b11&&_0x51b606['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3e4b11&&_0x51b606['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x143d2c}=this,_0x3771c2=_0x143d2c['commands']['get']('uploadcare');if(!_0x3771c2)return;const _0x28067f=this['_normalizeConfigSourceList'](_0x143d2c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5cc018,_0xba523)=>{const _0xd2adc3=this['_getIntegrationKey'](_0xba523['type']);return _0x5cc018[_0xd2adc3]||(_0x5cc018[_0xd2adc3]=[]),_0x5cc018[_0xd2adc3]['push'](_0xba523),_0x5cc018;},{});_0x143d2c['plugins']['has']('ImageInsertUI')&&_0x143d2c['commands']['get']('uploadcare')&&Object['entries'](_0x28067f)['forEach'](([_0x2fcec5,_0x133a18])=>{_0x143d2c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2fcec5,'observable':()=>_0x3771c2,'buttonViewCreator':()=>this['_createToolbarButton'](_0x133a18),'formViewCreator':()=>this['_createDropdownButtons'](_0x133a18),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x133a18),'override':'assetManager'!==_0x2fcec5});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x28ec5e){const {locale:_0x3b3adb}=this['editor'];return _0x28ec5e['map'](_0x5a95fc=>{const _0x23987a=_(_0x3b3adb,_0x5a95fc,'Insert');switch(_0x5a95fc){case o['Local']:return{'icon':_0x103d4e,'type':o['Local'],..._0x23987a};case o['URL']:return{'icon':_0xfa8d69,'type':o['URL'],..._0x23987a};case o['Dropbox']:return{'icon':_0x45d2de,'type':o['Dropbox'],..._0x23987a};case o['Facebook']:return{'icon':_0x9866d3,'type':o['Facebook'],..._0x23987a};case o['GDrive']:return{'icon':_0x1f6628,'type':o['GDrive'],..._0x23987a};case o['GPhotos']:return{'icon':_0x3bc49f,'type':o['GPhotos'],..._0x23987a};case o['OneDrive']:return{'icon':_0x50aee0,'type':o['OneDrive'],..._0x23987a};}});}['_getIntegrationKey'](_0x29051c){switch(_0x29051c){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x45f277,_0x376eb2){const _0x1b737c=this['editor'],_0x5094a2=new _0x45f277(_0x1b737c['locale']),_0x1739ed=_0x1b737c['commands']['get']('uploadcare');return _0x5094a2['bind']('isEnabled')['to'](_0x1739ed),_0x5094a2['on']('execute',()=>{_0x1739ed['execute'](_0x376eb2);}),_0x5094a2;}['_createToolbarButton'](_0x27eaea){const {locale:_0x5c9a99}=this['editor'],_0x3cdf72=this['editor']['plugins']['get']('ImageInsertUI'),_0x5be92b=_0x27eaea[0x0],_0x21871a=this['_createButton'](_0x14edb9,_0x5be92b['type']);return _0x21871a['icon']=_0x5be92b['icon'],_0x21871a['bind']('label')['to'](_0x3cdf72,'isImageSelected',_0x343721=>_(_0x5c9a99,_0x5be92b['type'],_0x343721?'Replace':'Insert')['text']),_0x21871a['tooltip']=!0x0,_0x21871a;}['_createDropdownButtons'](_0x1058e8){const {locale:_0x32253f}=this['editor'],_0x1d3e50=this['editor']['plugins']['get']('ImageInsertUI');return _0x1058e8['map'](_0x1bdc80=>{const _0x30ddc5=this['_createButton'](_0x14edb9,_0x1bdc80['type']);return _0x30ddc5['withText']=!0x0,_0x30ddc5['icon']=_0x1bdc80['icon'],_0x30ddc5['bind']('label')['to'](_0x1d3e50,'isImageSelected',_0x56a1a7=>_(_0x32253f,_0x1bdc80['type'],_0x56a1a7?'Replace':'Insert')['text']),_0x30ddc5;});}['_createMenuBarButtons'](_0xb0fdbc){return _0xb0fdbc['map'](_0xb417fc=>{const _0x5b534b=this['_createButton'](_0x1a880f,_0xb417fc['type']);return _0x5b534b['icon']=_0xb417fc['icon'],_0x5b534b['label']=_0xb417fc['shortText'],_0x5b534b;});}}class q extends _0x2607b8{['focusTracker'];['focusCycler'];constructor(_0x4e2f62){super(_0x4e2f62),this['focusTracker']=new _0x4c5ff2(),this['focusCycler']=new _0x534244({'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(_0x1c912a){super(_0x1c912a),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(_0x64a5cc,_0xab618b){const _0x16990a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x14cbf7=>_0x14cbf7<=_0xab618b)['map'](_0x3b7900=>_0x64a5cc['replace'](/\/$/,'')+'/-/resize/'+_0x3b7900+'x/\x20'+_0x3b7900+'w');return{'imageFallbackUrl':_0x64a5cc,'imageSources':[{'srcset':_0x16990a['join'](',\x20'),'sizes':'(max-width:\x20'+_0xab618b+'px)\x20100vw,\x20'+_0xab618b+'px','type':'image/webp'}]};}function A(_0x35cad4,_0x3a2441,_0x429cc5){const _0x4f47df=_0x35cad4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4f47df?parseInt(_0x4f47df[0x1],0xa):_0x3a2441,'height':_0x4f47df?parseInt(_0x4f47df[0x2],0xa):_0x429cc5};}function m(_0xde3142,_0x3e1e18){const _0x6b4321=Object['create'](_0xdc0548),_0xf13f83=_0xde3142['plugins']['get']('ImageUtils'),_0x3690cb=_0xde3142['editing']['mapper']['toViewElement'](_0x3e1e18),_0x251bae=_0xf13f83['findViewImgElement'](_0x3690cb),_0x2a8ca7=_0xde3142['editing']['view']['domConverter']['viewToDom'](_0x251bae),_0x2eec28=_0x3e1e18['getAttribute']('width'),_0x41bd57=_0x3e1e18['getAttribute']('height'),_0xb3af17='image-processing';_0xde3142['editing']['view']['change'](_0xa628d2=>{_0xa628d2['addClass'](_0xb3af17,_0x3690cb),_0xa628d2['setStyle']('aspect-ratio',_0x2eec28+'/'+_0x41bd57,_0x251bae);}),_0x6b4321['listenTo'](_0x2a8ca7,'load',()=>{_0x6b4321['stopListening'](_0x2a8ca7,'load'),_0xde3142['editing']['view']['change'](_0x346ed8=>{_0x346ed8['removeClass'](_0xb3af17,_0x3690cb),_0x346ed8['removeStyle']('aspect-ratio',_0x251bae);});});}function V(_0xc0dac){if(Array['isArray'](_0xc0dac)){const _0x2247f0=_0xc0dac['map'](V);return _0x1b6687=>_0x2247f0['some'](_0x310736=>_0x310736(_0x1b6687));}if('origin'==_0xc0dac){const _0x5702c6=_0x4d3312['window']['location']['origin'];return _0x15c677=>new URL(_0x15c677,_0x4d3312['document']['baseURI'])['origin']==_0x5702c6;}return'function'==typeof _0xc0dac?_0xc0dac:_0xc0dac instanceof RegExp?_0x1b8f2a=>!(!_0x1b8f2a['match'](_0xc0dac)&&!_0x1b8f2a['replace'](/^https?:\/\//,'')['match'](_0xc0dac)):()=>!0x1;}function F(_0x5aa5b7,_0x4b9d75){return _0x39ff1a(_0x5aa5b7['target'])['includes'](_0x4b9d75);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4bb07a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4b24a0,_0x4c5f0f,_0x286d61){super(),this['_editor']=_0x4b24a0,this['_editing']=_0x4c5f0f,this['_dialog']=_0x4b24a0['plugins']['get'](_0x4da01e),this['_api']=_0x4c5f0f['ctxElement']['getAPI'](),this['_type']=_0x286d61,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:_0x2a46df,model:_0x18faef}=this['_editor'],_0x4701cc=_0x18faef['document']['selection']['getSelectedElement'](),_0x1dcc33=_0x4701cc&&(_0x4701cc['is']('element','imageBlock')||_0x4701cc['is']('element','imageInline'));this['_formView']=new S(_0x2a46df),this['_dialog']['show']({'id':'uploadCare','icon':_0x103d4e,'title':_(_0x2a46df,this['_type'],_0x1dcc33?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x167e77['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x19e538=>!F(_0x19e538,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x22c649}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x36fc2a=>{const _0x335ea9=_0x22c649['length'];for(const _0x13726c of _0x22c649){const _0x5c024d=_0x13726c===_0x22c649[_0x335ea9-0x1],{cdnUrl:_0x251e4f,fileInfo:_0x480258}=_0x13726c;if(!_0x251e4f||!_0x480258)continue;const {width:_0x343faf,height:_0x10d52d}=_0x480258['imageInfo'],_0x3345df=A(_0x251e4f,_0x343faf,_0x10d52d),_0x4e1328=E(_0x251e4f,_0x3345df['width']),_0x580aad={'id':_0x480258['uuid'],'type':'image','attributes':{'imageDimension':_0x3345df,..._0x4e1328}};this['_insertAsset'](_0x580aad,_0x5c024d,_0x36fc2a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x427080=>{'idle'===_0x427080['detail']['status']&&!_0x427080['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1876df,_0x57cf56,_0x3933be){const _0x18459f=this['_editor']['model']['document']['selection'],_0x5b88bf=_0x18459f['getSelectedElement'](),_0x5b687a=!(!_0x5b88bf||!_0x5b88bf['is']('element','imageInline'));_0x3933be['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1876df,_0x5b687a),_0x57cf56||_0x3933be['setSelection'](_0x18459f['getLastPosition']());}['_insertImage'](_0x52240c,_0x17700e){const _0x587da5=this['_editor'],{imageDimension:_0xd1afb5,imageFallbackUrl:_0x1b3f10,imageSources:_0x9f561e}=_0x52240c['attributes'];_0x587da5['execute']('insertImage',{'imageType':_0x17700e?'imageInline':null,'source':{'uploadcareImageId':_0x52240c['id'],'src':_0x1b3f10,'sources':_0x9f561e,..._0xd1afb5}});}}class n extends _0x53cd57{['_editing'];['_controller']=null;static get['requires'](){return[_0x4da01e,i];}constructor(_0x53cee0){super(_0x53cee0),this['_editing']=_0x53cee0['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4ef333){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x4ef333);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5f49ca,publicKey:_0x53f0eb,signal:_0xd1dee6,onProgress:_0x31d9f7}){return _0x1545d5(_0x5f49ca,{'publicKey':_0x53f0eb,'store':'auto','signal':_0xd1dee6,'onProgress':_0x31d9f7});}static['getInfo'](_0x103989,_0x312d72){return _0x3246e6(_0x103989,_0x312d72);}}class p extends _0x2252f4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x344cd3,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2751f3=this['editor'];if(!!!_0x2751f3['config']['get']('uploadcare'))return;_0x2751f3['plugins']['get'](_0x344cd3)['createUploadAdapter']=_0x1a790a=>new x(_0x1a790a,_0x2751f3),_0x2751f3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x280b79,{imageElement:_0x484bf8,data:_0x5649f0})=>{_0x2751f3['model']['change'](_0x51d9e2=>{_0x51d9e2['setAttribute']('uploadcareImageId',_0x5649f0['uploadcareImageId'],_0x484bf8);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x42b490,_0x4faef4){this['loader']=_0x42b490,this['editor']=_0x4faef4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x199787=this['editor']['config']['get']('uploadcare.pubkey'),_0x6687fc=await this['loader']['file'];return C['upload']({'file':_0x6687fc,'publicKey':_0x199787,'signal':this['controller']['signal'],'onProgress':_0x53e4e9=>{_0x53e4e9&&_0x53e4e9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x53e4e9['value']);}})['then'](async _0x576b12=>{const {imageFallbackUrl:_0x52ce70,imageSources:_0x8ff460}=E(_0x576b12['cdnUrl'],_0x576b12['imageInfo']['width']);return{'uploadcareImageId':_0x576b12['uuid'],'default':_0x52ce70,'sources':_0x8ff460};})['catch'](()=>{const _0x18b516=t('Cannot\x20upload\x20file:')+('\x20'+_0x6687fc['name']+'.');return Promise['reject'](_0x18b516);});}['abort'](){this['controller']['abort']();}}class i extends _0x2252f4{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4da01e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x4a9de4=this['editor'];_0x4a9de4['commands']['add']('uploadcare',new n(_0x4a9de4));}['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 _0x50a1e9=_0x4d3312['document']['querySelector']('input[uploadcare-file-input]');_0x50a1e9&&_0x50a1e9['remove']();}),async function(_0x5ab636){const _0x153313=_0x3cbe04([0x35,0x70,0x33,0x34,0x56,0x6c,0x74,0x64,0x5a,0x73,0x63,0x79,0x6f,0x49,0x69,0x61,0x68,0x65,0x32,0x44,0x4e,0x36,0x4a,0x72,0x6a,0x6e,0x66,0x67,0x50,0x4d,0x41,0x46,0x53,0x75,0x76,0x43,0x6b,0x54,0x31,0x42,0x78,0x4f,0x48,0x38,0x4c,0x6d,0x4b,0x51,0x45,0x57,0x58,0x47,0x30,0x52,0x77,0x39,0x37,0x59,0x7a,0x55,0x62,0x71]),_0x2cd523=0x5d94eb28,_0x1b44cf=0x5d938ca0^_0x2cd523,_0xc3b57c=window[_0x3cbe04([0x44,0x61,0x74,0x65])][_0x3cbe04([0x6e,0x6f,0x77])](),_0x5423f6=_0x5ab636[_0x3cbe04([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3553f4=new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ee09f=>{_0x5423f6[_0x3cbe04([0x6f,0x6e,0x63,0x65])](_0x3cbe04([0x72,0x65,0x61,0x64,0x79]),_0x2ee09f);}),_0x1b9512={[_0x3cbe04([0x6b,0x74,0x79])]:_0x3cbe04([0x45,0x43]),[_0x3cbe04([0x75,0x73,0x65])]:_0x3cbe04([0x73,0x69,0x67]),[_0x3cbe04([0x63,0x72,0x76])]:_0x3cbe04([0x50,0x2d,0x32,0x35,0x36]),[_0x3cbe04([0x78])]:_0x3cbe04([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]),[_0x3cbe04([0x79])]:_0x3cbe04([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]),[_0x3cbe04([0x61,0x6c,0x67])]:_0x3cbe04([0x45,0x53,0x32,0x35,0x36])},_0x111f18=_0x5423f6[_0x3cbe04([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3cbe04([0x67,0x65,0x74])](_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17f557(){let _0x55cde6,_0x35321a=null,_0x45909f=null;try{if(_0x111f18==_0x3cbe04([0x47,0x50,0x4c]))return _0x3cbe04([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x55cde6=_0xfc8a17(),!_0x55cde6)return _0x3cbe04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x55cde6[_0x3cbe04([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45909f=_0xe8ecd5(_0x55cde6[_0x3cbe04([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x55cde6[_0x3cbe04([0x6a,0x74,0x69])])),await _0x456334()?_0x49fa0a()?_0x46b651()?_0x3cbe04([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x34a69a()?(_0x55cde6[_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3cbe04([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x35321a=_0x1c61da(_0x3cbe04([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x55cde6[_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3cbe04([0x74,0x72,0x69,0x61,0x6c])&&(_0x35321a=_0x1c61da(_0x3cbe04([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ad7cb()):_0x3cbe04([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3cbe04([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3cbe04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x13d8a3){return _0x3cbe04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46b651(){const _0x3f36b6=[_0x3cbe04([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3cbe04([0x74,0x72,0x69,0x61,0x6c])][_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55cde6[_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc3b57c/0x3e8:0xe10*_0x1b44cf;return _0x55cde6[_0x3cbe04([0x65,0x78,0x70])]<_0x3f36b6;}function _0x49fa0a(){const _0x519bf8=_0x55cde6[_0x3cbe04([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x519bf8&&(!!_0x519bf8[_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cbe04([0x2a]))||!!_0x519bf8[_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cbe04([0x55,0x50,0x4c,0x43])));}function _0x34a69a(){const _0x1d51a2=_0x55cde6[_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1d51a2||0x0==_0x1d51a2[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x15b44e}=new URL(window[_0x3cbe04([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1d51a2[_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15b44e))return!0x0;const _0x3d66bc=_0x15b44e[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])](_0x3cbe04([0x2e]));return _0x1d51a2[_0x3cbe04([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c47e5=>_0x3c47e5[_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cbe04([0x2a])))[_0x3cbe04([0x6d,0x61,0x70])](_0x25b8e0=>_0x25b8e0[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])](_0x3cbe04([0x2e])))[_0x3cbe04([0x73,0x6f,0x6d,0x65])](_0x8ada1d=>_0x3d66bc[_0x3cbe04([0x65,0x76,0x65,0x72,0x79])]((_0x1258dd,_0x376ffd)=>_0x8ada1d[_0x376ffd]===_0x1258dd||_0x8ada1d[_0x376ffd]===_0x3cbe04([0x2a])));}function _0x5ad7cb(){return _0x35321a&&_0x45909f?new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54711d,_0x424ecc)=>{_0x35321a[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x54711d,_0x424ecc),_0x45909f[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x575977=>{_0x575977!=_0x3cbe04([0x56,0x61,0x6c,0x69,0x64])&&_0x54711d(_0x575977);},_0x424ecc);}):_0x35321a||_0x45909f||_0x3cbe04([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe8ecd5(_0x4f1e99,_0xb843ef){return new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5100e9=>{if(_0x2c8054())return _0x5100e9(_0x3cbe04([0x56,0x61,0x6c,0x69,0x64]));_0x2ecf21(),_0x5423f6[_0x3cbe04([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3cbe04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1823c8=!0x1;const _0x14dc96=_0x18dbf8();function _0x3c0543(_0x3fe6a0){return!!_0x3fe6a0&&(typeof _0x3fe6a0===_0x3cbe04([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3fe6a0===_0x3cbe04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3fe6a0[_0x3cbe04([0x74,0x68,0x65,0x6e])]===_0x3cbe04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3fe6a0[_0x3cbe04([0x63,0x61,0x74,0x63,0x68])]===_0x3cbe04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3583c1(_0xfc8f96){_0x5c8981(_0xfc8f96)[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x5d3092=>{if(!_0x5d3092||_0x5d3092[_0x3cbe04([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3cbe04([0x6f,0x6b]))return _0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x56ddd1(_0x3276c4(_0x14dc96+_0xb843ef))!=_0x5d3092[_0x3cbe04([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3cbe04([0x56,0x61,0x6c,0x69,0x64]);})[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x432888=>(_0x1f5fd5(),_0x432888),()=>{const _0x30eacb=_0x511a20();return null==_0x30eacb?(_0x1f5fd5(),_0x3cbe04([0x56,0x61,0x6c,0x69,0x64])):_0x3cbe04(_0xc3b57c-_0x30eacb>(0x79986f28^_0x2cd523)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x5100e9)[_0x3cbe04([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5100e9(_0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f14d6=0x5da205a8^_0x2cd523;function _0x1f5fd5(){const _0x2b6802=_0x3cbe04([0x6c,0x6c,0x63,0x74,0x2d])+_0x56ddd1(_0x3276c4(_0x4f1e99)),_0x54f2a3=_0x4cc77d(_0x56ddd1(window[_0x3cbe04([0x4d,0x61,0x74,0x68])][_0x3cbe04([0x63,0x65,0x69,0x6c])](_0xc3b57c/_0x3f14d6)));window[_0x3cbe04([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3cbe04([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b6802,_0x54f2a3);}function _0x511a20(){const _0x91e294=_0x3cbe04([0x6c,0x6c,0x63,0x74,0x2d])+_0x56ddd1(_0x3276c4(_0x4f1e99)),_0x21719e=window[_0x3cbe04([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3cbe04([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x91e294);return _0x21719e?window[_0x3cbe04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cc77d(_0x21719e),0x10)*_0x3f14d6:null;}function _0x5c8981(_0x328fc4){return new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3311a1,_0xdbd427)=>{_0x328fc4[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x3311a1,_0xdbd427),window[_0x3cbe04([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xdbd427,0x5d953fe8^_0x2cd523);});}}_0x5423f6[_0x3cbe04([0x6f,0x6e])](_0x3cbe04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52ffd5,_0x210c92)=>{if(_0x210c92[0x0]!=_0x4f1e99)return _0x5100e9(_0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x210c92[0x1]={..._0x210c92[0x1],[_0x3cbe04([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14dc96};},{[_0x3cbe04([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3cbe04([0x68,0x69,0x67,0x68])}),_0x5423f6[_0x3cbe04([0x6f,0x6e])](_0x3cbe04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5db2bf=>{_0x3c0543(_0x5db2bf[_0x3cbe04([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1823c8=!0x0,_0x3583c1(_0x5db2bf[_0x3cbe04([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3cbe04([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3cbe04([0x6c,0x6f,0x77])}),_0x3553f4[_0x3cbe04([0x74,0x68,0x65,0x6e])](()=>{_0x1823c8||_0x5100e9(_0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c8054(){return _0x5423f6[_0x3cbe04([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cbe04([0x76,0x69,0x65,0x77])][_0x3cbe04([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3cbe04([0x61,0x75,0x74,0x6f]);}function _0x2ecf21(){_0x5423f6[_0x3cbe04([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cbe04([0x76,0x69,0x65,0x77])][_0x3cbe04([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3cbe04([0x61,0x75,0x74,0x6f]);}}function _0x1c61da(_0x36ccdf){const _0x5032db=[new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28292f=>setTimeout(_0x28292f,0x5d9dd5e4^_0x2cd523)),_0x3553f4[_0x3cbe04([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b35c3=>{let _0x2d9ae3=0x0;_0x5423f6[_0x3cbe04([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cbe04([0x6f,0x6e])](_0x3cbe04([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40fac7,_0x28d42e)=>{_0x28d42e[0x0][_0x3cbe04([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d9ae3++,_0x2d9ae3==(0x5d94ead0^_0x2cd523)&&(_0x4b35c3(),_0x40fac7[_0x3cbe04([0x6f,0x66,0x66])]());});}))];return window[_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3cbe04([0x72,0x61,0x63,0x65])](_0x5032db)[_0x3cbe04([0x74,0x68,0x65,0x6e])](()=>_0x36ccdf);}async function _0x4cfe29(){await _0x3553f4,_0x5423f6[_0x3cbe04([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cbe04([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3073b2,_0x5423f6[_0x3cbe04([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cbe04([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3073b2,_0x5423f6[_0x3cbe04([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3cbe04([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b7541(_0x1bf69b){const _0x45a8c9=_0x25f6c9();_0x5423f6[_0x45a8c9]=_0x3cbe04([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1bf69b,_0x1bf69b!=_0x3cbe04([0x56,0x61,0x6c,0x69,0x64])&&_0x4cfe29();}function _0x25f6c9(){const _0x2436f5=window[_0x3cbe04([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3cbe04([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3cbe04([0x6e,0x6f,0x77])]())[_0x3cbe04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3cbe04([0x2e]),'');let _0x47e1dc=_0x3cbe04([0x70]);for(let _0x2a4e0e=0x0;_0x2a4e0e<_0x2436f5[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a4e0e+=0x2){let _0x457a52=window[_0x3cbe04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2436f5[_0x3cbe04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a4e0e,_0x2a4e0e+0x2));_0x457a52>=_0x153313[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x457a52-=_0x153313[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x47e1dc+=_0x153313[_0x457a52];}return _0x47e1dc;}function _0xfc8a17(){const _0x5c022c=_0x111f18[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])](_0x3cbe04([0x2e]));if(0x3!=_0x5c022c[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a29ff(_0x5c022c[0x1]);function _0x2a29ff(_0x1c8d0c){const _0x379cbd=_0x144b69(_0x1c8d0c);return _0x379cbd&&_0x5b6bee()?_0x379cbd:null;function _0x5b6bee(){const _0x24b755=_0x379cbd[_0x3cbe04([0x6a,0x74,0x69])],_0x547ba5=window[_0x3cbe04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24b755[_0x3cbe04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24b755[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5a50f4={..._0x379cbd,[_0x3cbe04([0x6a,0x74,0x69])]:_0x24b755[_0x3cbe04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24b755[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5a50f4[_0x3cbe04([0x76,0x63])],_0x3276c4(_0x5a50f4)==_0x547ba5;}}}async function _0x456334(){let _0x56340b=!0x0;try{const _0x40ee4e=_0x111f18[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])](_0x3cbe04([0x2e])),[_0x511820,_0x5d7de1,_0x319fd2]=_0x40ee4e;return _0x79bd0b(_0x511820),await _0x288c96(_0x511820,_0x5d7de1,_0x319fd2),_0x56340b;}catch(_0x80ccc6){return!0x1;}function _0x79bd0b(_0x10c878){const _0x7f007b=_0x144b69(_0x10c878);_0x7f007b&&_0x7f007b[_0x3cbe04([0x61,0x6c,0x67])]==_0x3cbe04([0x45,0x53,0x32,0x35,0x36])||(_0x56340b=!0x1);}async function _0x288c96(_0x2554c4,_0x2b886,_0xa6b1e2){const _0x455f2f=window[_0x3cbe04([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3cbe04([0x66,0x72,0x6f,0x6d])](_0x30d794(_0xa6b1e2),_0x351df4=>_0x351df4[_0x3cbe04([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x55cb96=new window[(_0x3cbe04([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3cbe04([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2554c4+_0x3cbe04([0x2e])+_0x2b886),_0x5587e8=window[_0x3cbe04([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3cbe04([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5587e8)return;const _0x30e86b=await _0x5587e8[_0x3cbe04([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3cbe04([0x6a,0x77,0x6b]),_0x1b9512,{[_0x3cbe04([0x6e,0x61,0x6d,0x65])]:_0x3cbe04([0x45,0x43,0x44,0x53,0x41]),[_0x3cbe04([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3cbe04([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3cbe04([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5587e8[_0x3cbe04([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3cbe04([0x6e,0x61,0x6d,0x65])]:_0x3cbe04([0x45,0x43,0x44,0x53,0x41]),[_0x3cbe04([0x68,0x61,0x73,0x68])]:{[_0x3cbe04([0x6e,0x61,0x6d,0x65])]:_0x3cbe04([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30e86b,_0x455f2f,_0x55cb96)||(_0x56340b=!0x1);}}function _0x144b69(_0x273075){return _0x273075[_0x3cbe04([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3cbe04([0x65,0x79]))?JSON[_0x3cbe04([0x70,0x61,0x72,0x73,0x65])](_0x30d794(_0x273075)):null;}function _0x30d794(_0x5f1ab2){return window[_0x3cbe04([0x61,0x74,0x6f,0x62])](_0x5f1ab2[_0x3cbe04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3cbe04([0x2b]))[_0x3cbe04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3cbe04([0x2f])));}function _0x3276c4(_0x1dce16){let _0x359b48=0x1505;function _0xa2f500(_0x18cfa8){for(let _0x4bf801=0x0;_0x4bf801<_0x18cfa8[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bf801++){const _0x4dd6ed=_0x18cfa8[_0x3cbe04([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4bf801);_0x359b48=(_0x359b48<<0x5)+_0x359b48+_0x4dd6ed,_0x359b48&=_0x359b48;}}function _0x294939(_0x121b47){Array[_0x3cbe04([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x121b47)?_0x121b47[_0x3cbe04([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x294939):_0x121b47&&typeof _0x121b47==_0x3cbe04([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3cbe04([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x121b47)[_0x3cbe04([0x73,0x6f,0x72,0x74])]()[_0x3cbe04([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5ece0f,_0x240c94])=>{_0xa2f500(_0x5ece0f),_0x294939(_0x240c94);}):_0xa2f500(window[_0x3cbe04([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x121b47));}return _0x294939(_0x1dce16),_0x359b48>>>0x0;}function _0x56ddd1(_0x3d7550){return _0x3d7550[_0x3cbe04([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3cbe04([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3cbe04([0x30]));}function _0x4cc77d(_0x48626d){return _0x48626d[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3cbe04([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3cbe04([0x6a,0x6f,0x69,0x6e])]('');}function _0x3073b2(){}function _0x3cbe04(_0x34b4a0){return _0x34b4a0['map'](_0x22a35c=>String['fromCharCode'](_0x22a35c))['join']('');}_0x3b7541(await _0x17f557());}(this);}['_initSchema'](){const _0x5b2097=this['editor']['model']['schema'];_0x5b2097['isRegistered']('imageBlock')&&_0x5b2097['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5b2097['isRegistered']('imageInline')&&_0x5b2097['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5a5b49=this['editor'];_0x5a5b49['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5a5b49['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4b0e9a=>_0x4b0e9a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2fc37e=_0x5a5b49['commands']['get']('replaceImageSource');_0x2fc37e&&this['listenTo'](_0x2fc37e,'cleanupImage',(_0x40ea3a,[_0x5d67dc,_0x20b0c2])=>{_0x5d67dc['removeAttribute']('uploadcareImageId',_0x20b0c2);});}['_initConfig'](){const _0x1d2f13=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3fd5dc=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x50d96f(_0x4d3312['document'],'uc-config',{..._0x1d2f13,'pubkey':_0x3fd5dc,'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']=_0x14279c=>{if('closeMax'==_0x14279c)return'#uc-icon-arrow-down';},_0x4d3312['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x50d96f(_0x4d3312['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4d3312['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x378755=this['editor']['commands']['get']('insertImage');_0x378755&&this['listenTo'](_0x378755,'execute',()=>{const _0x2e0f6c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2e0f6c&&_0x2e0f6c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2e0f6c);});});const _0xb7af17=this['editor']['commands']['get']('uploadcareImageReplace');_0xb7af17&&this['listenTo'](_0xb7af17,'execute',()=>{const _0x3cb45e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3cb45e&&_0x3cb45e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3cb45e);});});}}class u extends _0x2252f4{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c48a8){super(_0x5c48a8),_0x5c48a8['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x6af673['defineComponents'](_0x6af673);}}class ta extends _0x2607b8{constructor(_0xb892ec){super(_0xb892ec);const t=_0xb892ec['t'],_0x3cae24=this['bindTemplate'],_0x2e72ed=new _0x4de68d();_0x2e72ed['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':[_0x2e72ed,{'text':_0x3cae24['to']('imageUploadProgress',_0x49a491=>t('Loading\x20image...')+'\x20('+(_0x49a491||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 _0x2607b8{constructor(_0x38a76b){super(_0x38a76b);const t=_0x38a76b['t'];this['set']('errorType',null);const _0x39341a=new _0x14edb9(_0x38a76b);_0x39341a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x39341a['withText']=!0x0,_0x39341a['class']='ck-button-action',_0x39341a['on']('execute',()=>{this['fire']('retry');}),_0x39341a['bind']('isVisible')['to'](this,'errorType',_0x35b19f=>'NotFound'!==_0x35b19f);const _0x2f36be=new at();_0x2f36be['content']=et,_0x2f36be['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x11f55f=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':[_0x2f36be,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x11f55f['to']('errorType',_0x24831f=>t('NotFound'!==_0x24831f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x39341a]},{'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 _0x2607b8{constructor(_0x723fe6,_0x4cc246){super(_0x723fe6);const _0x3b2e8c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4cc246,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3b2e8c['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2dd8af,_0x30022e,_0x2eba89){super(_0x2dd8af),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2dd8af),this['_errorView']=new rt(_0x2dd8af),this['_editingView']=new tt(_0x2dd8af,_0x2eba89),this['_focusableView']=new _0x2607b8(_0x2dd8af),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x30022e),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'],_0x1b727e=>{this['_addUploadcareImageEditorListeners'](_0x1b727e);});}),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'](_0x2e06d7,_0x38fe9a){const _0x3ac794='uc-cloud-image-editor',_0x346629=_0x2e06d7['querySelector'](_0x3ac794);if(_0x346629)return _0x38fe9a(_0x346629);const _0x1a80f3=new MutationObserver(_0x1ba176=>{const _0x23dfaa=_0x1ba176['filter'](_0x4af1d5=>_0x4af1d5['target']===_0x2e06d7&&_0x4af1d5['addedNodes']['length']>0x0&&_0x4af1d5['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3ac794);_0x23dfaa['length']&&(_0x1a80f3['disconnect'](),_0x38fe9a(_0x23dfaa[0x0]['addedNodes'][0x0]));});_0x1a80f3['observe'](_0x2e06d7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x138a77){_0x138a77['addEventListener']('apply',_0x543386=>{this['fire']('apply',{'imageSrc':_0x543386['detail']['cdnUrl']});}),_0x138a77['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4bb07a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x217987,_0x35f3b2,_0x1635c0){super(),this['_editor']=_0x217987,this['_dialog']=_0x35f3b2,this['_imageElement']=_0x1635c0,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 _0x5414ed=this['_imageElement'],_0x4ba950=_0x5414ed['getAttribute']('uploadcareImageId'),_0x4b26c9=_0x5414ed['getAttribute']('src');if(_0x4ba950)await this['_loadImageInfo'](_0x4ba950,_0x4b26c9);else{if(this['_imageCache']['has'](_0x4b26c9)){const _0x2aade4=this['_imageCache']['get'](_0x4b26c9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2aade4['url'],this['imageDimension']=_0x2aade4['dimension'],this['imageId']=_0x2aade4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x285e43}=this['_editor'],t=_0x285e43['t'],_0x493f5f=new Z(_0x285e43,this['imageStatus'],this['_attributes']);_0x493f5f['bind']('status')['to'](this,'imageStatus'),_0x493f5f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x493f5f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x493f5f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x493f5f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x477390,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x493f5f,'position':_0x167e77['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x493f5f['focus']();},'onHide':()=>{_0x493f5f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x32ff54=>!F(_0x32ff54,_0x493f5f['element'])}});}['_loadImageInfo'](_0x1c2eaf,_0x1be61f){return C['getInfo'](_0x1c2eaf,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4f1f4c=>{const {width:_0x12393d,height:_0xd42f9}=_0x4f1f4c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1be61f,this['imageDimension']={'width':_0x12393d,'height':_0xd42f9},this['imageId']=_0x1c2eaf;})['catch'](_0x3f8be1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f8be1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5450c3,_0x26b715){return this['_getImageAsFile'](_0x5450c3)['then'](_0x512c54=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x26b715['signal'],'file':_0x512c54,'onProgress':_0x2137cf=>{_0x2137cf&&_0x2137cf['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2137cf['value']));}}))['then'](_0x4c380a=>{const {width:_0x401440,height:_0x187fd2}=_0x4c380a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c380a['cdnUrl'],this['imageDimension']={'width':_0x401440,'height':_0x187fd2},this['imageId']=_0x4c380a['uuid'],this['imageUploadProgress']=null;const _0x4fa16a=_0x5450c3['getAttribute']('src');this['_imageCache']['set'](_0x4fa16a,{'id':_0x4c380a['uuid'],'url':_0x4c380a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3a2658=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3a2658['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x660c2c,_0x1c71d4){_0x660c2c['on']('apply',(_0x3162f1,_0x3c915e)=>{this['_replaceImage'](_0x1c71d4,_0x3c915e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x660c2c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x660c2c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x9ccdfd,_0x3d3b90,_0x119b27){const _0x11cef7=this['_editor'],{width:_0x2b205a,height:_0x181000}=A(_0x3d3b90,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1f5264,imageSources:_0x189cdf}=E(_0x3d3b90,_0x2b205a);_0x11cef7['model']['change'](_0x282cf4=>{if('$graveyard'===_0x9ccdfd['root']['rootName']){_0x11cef7['execute']('insertImage',{'imageType':_0x9ccdfd['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x9ccdfd['getAttributes']()),'uploadcareImageId':_0x119b27,'src':_0x1f5264,'sources':_0x189cdf,'width':_0x2b205a,'height':_0x181000}});const _0x14863b=_0x9ccdfd['getChildren']();_0x9ccdfd=_0x11cef7['model']['document']['selection']['getSelectedElement']();for(const _0x1152ff of _0x14863b)_0x282cf4['append'](_0x282cf4['cloneElement'](_0x1152ff),_0x9ccdfd);}else _0x282cf4['setSelection'](_0x9ccdfd,'on'),_0x11cef7['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x9ccdfd['getAttributes']()),'uploadcareImageId':_0x119b27,'src':_0x1f5264,'sources':_0x189cdf,'width':_0x2b205a,'height':_0x181000},_0x9ccdfd);_0x282cf4['setSelection'](_0x9ccdfd,'on');});}async['_getImageAsFile'](_0x25c91a){const _0x471067=_0x4d3312['window'],_0x5e90e0=_0x4d3312['document']['location']['href'],_0x4b06fc=new _0x471067['URL'](_0x25c91a['getAttribute']('src'),_0x5e90e0);if('data:'===_0x4b06fc['protocol']){const _0x563382=_0x4b06fc['href']['split'](','),_0x5afc6c=_0x563382[0x0]['match'](/:(.*?);/)[0x1],_0x3f1ca9=_0x5afc6c['split']('/')[0x1],_0x47618b=_0x471067['atob'](_0x563382[_0x563382['length']-0x1]);let _0x5c2a3a=_0x47618b['length'];const _0x489357=new _0x471067['Uint8Array'](_0x5c2a3a);for(;_0x5c2a3a--;)_0x489357[_0x5c2a3a]=_0x47618b['charCodeAt'](_0x5c2a3a);return new _0x471067['File']([_0x489357],'image.'+_0x3f1ca9,{'type':_0x5afc6c});}const _0x511c7d=_0x4b06fc['href']['split']('/'),_0x1385af=_0x511c7d[_0x511c7d['length']-0x1],_0x59963d=_0x1385af['split']('.')[0x1];return _0x471067['fetch'](_0x4b06fc['href'])['then'](_0x18c4f0=>_0x18c4f0['clone']()['blob']())['then'](_0x25fd7f=>new _0x471067['File']([_0x25fd7f],_0x1385af,{'type':'image/'+_0x59963d}));}}class J extends _0x53cd57{['imageEditController'];static get['requires'](){return[_0x4da01e];}['_isEditable'];constructor(_0x4ca7e1){super(_0x4ca7e1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x43a80){const _0x435acf=V(_0x43a80);return _0x1138a8=>!(!_0x1138a8||!_0x1138a8['is']('element','imageBlock')&&!_0x1138a8['is']('element','imageInline'))&&(!!_0x1138a8['hasAttribute']('uploadcareImageId')||!!_0x1138a8['hasAttribute']('src')&&_0x435acf(_0x1138a8['getAttribute']('src')));}(_0x4ca7e1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5778c3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5778c3);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x25f122=this['editor']['model']['document']['selection']['getSelectedElement']();_0x25f122&&(_0x25f122['is']('element','imageBlock')||_0x25f122['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x4da01e),_0x25f122),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x53cd57{['refresh'](){const _0x1db25c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1db25c&&(_0x1db25c['is']('element','imageBlock')||_0x1db25c['is']('element','imageInline')));}['execute'](_0x27a782){const _0x39b2db=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xd11561=>{_0xd11561['setAttributes'](_0x27a782,_0x39b2db),_0xd11561['removeAttribute']('srcset',_0x39b2db),_0xd11561['removeAttribute']('sizes',_0x39b2db);});}}class g extends _0x2252f4{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x498d67,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x8d6a81}=this;_0x8d6a81['commands']['add']('uploadcareImageEdit',new J(_0x8d6a81)),_0x8d6a81['commands']['add']('uploadcareImageReplace',new O(_0x8d6a81));}}class j extends _0x2252f4{['_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 _0x57d548=this['editor'];_0x57d548['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1b6adb=>{const _0x1e5836=_0x57d548['commands']['get']('uploadcareImageEdit'),_0x2eee94=new _0x14edb9(_0x1b6adb),t=_0x1b6adb['t'];return _0x2eee94['set']({'icon':_0x477390,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2eee94['bind']('isEnabled')['to'](_0x1e5836),_0x2eee94['bind']('isOn')['to'](_0x1e5836,'isActive'),this['listenTo'](_0x2eee94,'execute',()=>{_0x57d548['execute']('uploadcareImageEdit'),_0x57d548['editing']['view']['focus']();}),_0x2eee94;}),this['_initConfig']();}['_initConfig'](){const _0x3ea38d=_0x50d96f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3ea38d),this['listenTo'](this['editor'],'destroy',()=>{_0x3ea38d['remove']();});}}class P extends _0x2252f4{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 _0x117fa5,Command as _0x12d838}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x217724,IconGooglePhotos as _0x26d391,IconGoogleDrive as _0x13fee4,IconFacebook as _0x46d64c,IconDropbox as _0x1d0f4d,IconUploadcareLink as _0x427e7f,IconUploadcareImageUpload as _0x106cab,IconError as et,IconUploadcareImageEdit as _0x55399e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x21406a,MenuBarMenuListItemButtonView as _0x52aa5d,View as _0x24f1ad,FocusCycler as _0x863731,Dialog as _0x206ecb,DialogViewPosition as _0x307bf2,SpinnerView as _0x3a23a4,IconView as at,Notification as _0x3b7af7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x59114b,DomEmitterMixin as _0x9a43ab,global as _0xe595b2,getAncestors as _0x2e216b,ObservableMixin as _0x1e4fd3,createElement as _0x4dcd38,uid as _0x3d17f6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x22380d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x398bf4,info as _0x152ced}from'@uploadcare/upload-client';import*as _0x44a155 from'@uploadcare/file-uploader';var o=function(_0x71eac3){return _0x71eac3['Local']='local',_0x71eac3['URL']='url',_0x71eac3['Dropbox']='dropbox',_0x71eac3['GDrive']='gdrive',_0x71eac3['Facebook']='facebook',_0x71eac3['GPhotos']='gphotos',_0x71eac3['OneDrive']='onedrive',_0x71eac3;}({});function _(_0x3ec759,_0x21500f,_0x64a327){const t=_0x3ec759['t'],_0x25d93d=_0x3ec759['t'];switch(_0x21500f){case o['Local']:return{'text':_0x25d93d('Insert'===_0x64a327?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x25d93d('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x64a327?_0x25d93d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x25d93d('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x21500f;}}class e extends _0x117fa5{['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 _0x4729b2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x248450;for(const _0x4a9df0 in _0x4729b2){const _0x32dcfa=_0x4a9df0,_0x20719d=_0x4729b2[_0x32dcfa];if('uploadcareLicenseKeyValid'==_0x20719d||'uploadcareLicenseKeyInvalid'==_0x20719d||'uploadcareLicenseKeyExpired'==_0x20719d||'uploadcareLicenseKeyDomainLimit'==_0x20719d||'uploadcareLicenseKeyNotAllowed'==_0x20719d||'uploadcareLicenseKeyEvaluationLimit'==_0x20719d||'uploadcareLicenseKeyTrialLimit'==_0x20719d||'uploadcareLicenseKeyUsageLimit'==_0x20719d){delete _0x4729b2[_0x32dcfa],_0x248450=_0x20719d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x248450&&_0x4729b2['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x248450&&_0x4729b2['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x248450&&_0x4729b2['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x248450&&_0x4729b2['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x248450&&_0x4729b2['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x248450&&_0x4729b2['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x248450&&_0x4729b2['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x49c443}=this,_0x47c618=_0x49c443['commands']['get']('uploadcare');if(!_0x47c618)return;const _0x55dab1=this['_normalizeConfigSourceList'](_0x49c443['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x28b4b1,_0x2e53ef)=>{const _0x50b116=this['_getIntegrationKey'](_0x2e53ef['type']);return _0x28b4b1[_0x50b116]||(_0x28b4b1[_0x50b116]=[]),_0x28b4b1[_0x50b116]['push'](_0x2e53ef),_0x28b4b1;},{});_0x49c443['plugins']['has']('ImageInsertUI')&&_0x49c443['commands']['get']('uploadcare')&&Object['entries'](_0x55dab1)['forEach'](([_0x1c0aa8,_0x18c2e8])=>{_0x49c443['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1c0aa8,'observable':()=>_0x47c618,'buttonViewCreator':()=>this['_createToolbarButton'](_0x18c2e8),'formViewCreator':()=>this['_createDropdownButtons'](_0x18c2e8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x18c2e8),'override':'assetManager'!==_0x1c0aa8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4fd13d){const {locale:_0x2c90a5}=this['editor'];return _0x4fd13d['map'](_0x1236fd=>{const _0xe3c3ad=_(_0x2c90a5,_0x1236fd,'Insert');switch(_0x1236fd){case o['Local']:return{'icon':_0x106cab,'type':o['Local'],..._0xe3c3ad};case o['URL']:return{'icon':_0x427e7f,'type':o['URL'],..._0xe3c3ad};case o['Dropbox']:return{'icon':_0x1d0f4d,'type':o['Dropbox'],..._0xe3c3ad};case o['Facebook']:return{'icon':_0x46d64c,'type':o['Facebook'],..._0xe3c3ad};case o['GDrive']:return{'icon':_0x13fee4,'type':o['GDrive'],..._0xe3c3ad};case o['GPhotos']:return{'icon':_0x26d391,'type':o['GPhotos'],..._0xe3c3ad};case o['OneDrive']:return{'icon':_0x217724,'type':o['OneDrive'],..._0xe3c3ad};}});}['_getIntegrationKey'](_0x4b9c6f){switch(_0x4b9c6f){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4bcb2c,_0x310c68){const _0x1b2277=this['editor'],_0x216038=new _0x4bcb2c(_0x1b2277['locale']),_0x5e8035=_0x1b2277['commands']['get']('uploadcare');return _0x216038['bind']('isEnabled')['to'](_0x5e8035),_0x216038['on']('execute',()=>{_0x5e8035['execute'](_0x310c68);}),_0x216038;}['_createToolbarButton'](_0x308fa0){const {locale:_0x1f55ff}=this['editor'],_0x44cbf4=this['editor']['plugins']['get']('ImageInsertUI'),_0x4d29eb=_0x308fa0[0x0],_0x28e09f=this['_createButton'](_0x21406a,_0x4d29eb['type']);return _0x28e09f['icon']=_0x4d29eb['icon'],_0x28e09f['bind']('label')['to'](_0x44cbf4,'isImageSelected',_0x166c7d=>_(_0x1f55ff,_0x4d29eb['type'],_0x166c7d?'Replace':'Insert')['text']),_0x28e09f['tooltip']=!0x0,_0x28e09f;}['_createDropdownButtons'](_0x152cbf){const {locale:_0x2af7d9}=this['editor'],_0x317cf1=this['editor']['plugins']['get']('ImageInsertUI');return _0x152cbf['map'](_0x595126=>{const _0x169531=this['_createButton'](_0x21406a,_0x595126['type']);return _0x169531['withText']=!0x0,_0x169531['icon']=_0x595126['icon'],_0x169531['bind']('label')['to'](_0x317cf1,'isImageSelected',_0x4a6987=>_(_0x2af7d9,_0x595126['type'],_0x4a6987?'Replace':'Insert')['text']),_0x169531;});}['_createMenuBarButtons'](_0x5e9c5a){return _0x5e9c5a['map'](_0x228882=>{const _0x43493f=this['_createButton'](_0x52aa5d,_0x228882['type']);return _0x43493f['icon']=_0x228882['icon'],_0x43493f['label']=_0x228882['shortText'],_0x43493f;});}}class q extends _0x24f1ad{['focusTracker'];['focusCycler'];constructor(_0x304698){super(_0x304698),this['focusTracker']=new _0x59114b(),this['focusCycler']=new _0x863731({'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(_0x117eeb){super(_0x117eeb),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(_0x551648,_0x5260fa){const _0x2d1700=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x222ec8=>_0x222ec8<=_0x5260fa)['map'](_0x125e86=>_0x551648['replace'](/\/$/,'')+'/-/resize/'+_0x125e86+'x/\x20'+_0x125e86+'w');return{'imageFallbackUrl':_0x551648,'imageSources':[{'srcset':_0x2d1700['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5260fa+'px)\x20100vw,\x20'+_0x5260fa+'px','type':'image/webp'}]};}function A(_0x4b02e5,_0x33bb3e,_0x52e136){const _0x221ff3=_0x4b02e5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x221ff3?parseInt(_0x221ff3[0x1],0xa):_0x33bb3e,'height':_0x221ff3?parseInt(_0x221ff3[0x2],0xa):_0x52e136};}function m(_0xc5e338,_0x43a2d4){const _0x33edaa=Object['create'](_0x9a43ab),_0x4bfbb5=_0xc5e338['plugins']['get']('ImageUtils'),_0x160ceb=_0xc5e338['editing']['mapper']['toViewElement'](_0x43a2d4),_0x594caf=_0x4bfbb5['findViewImgElement'](_0x160ceb),_0x28b7fa=_0xc5e338['editing']['view']['domConverter']['viewToDom'](_0x594caf),_0xd5073a=_0x43a2d4['getAttribute']('width'),_0x1dcbf0=_0x43a2d4['getAttribute']('height'),_0x41ef2f='image-processing';_0xc5e338['editing']['view']['change'](_0x467b9b=>{_0x467b9b['addClass'](_0x41ef2f,_0x160ceb),_0x467b9b['setStyle']('aspect-ratio',_0xd5073a+'/'+_0x1dcbf0,_0x594caf);}),_0x33edaa['listenTo'](_0x28b7fa,'load',()=>{_0x33edaa['stopListening'](_0x28b7fa,'load'),_0xc5e338['editing']['view']['change'](_0x576958=>{_0x576958['removeClass'](_0x41ef2f,_0x160ceb),_0x576958['removeStyle']('aspect-ratio',_0x594caf);});});}function V(_0x4bf351){if(Array['isArray'](_0x4bf351)){const _0x20824f=_0x4bf351['map'](V);return _0x1e5f82=>_0x20824f['some'](_0x3ded95=>_0x3ded95(_0x1e5f82));}if('origin'==_0x4bf351){const _0x12c6e4=_0xe595b2['window']['location']['origin'];return _0x263201=>new URL(_0x263201,_0xe595b2['document']['baseURI'])['origin']==_0x12c6e4;}return'function'==typeof _0x4bf351?_0x4bf351:_0x4bf351 instanceof RegExp?_0x55f50e=>!(!_0x55f50e['match'](_0x4bf351)&&!_0x55f50e['replace'](/^https?:\/\//,'')['match'](_0x4bf351)):()=>!0x1;}function F(_0x5aceba,_0x21ff71){return _0x2e216b(_0x5aceba['target'])['includes'](_0x21ff71);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1e4fd3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x381c75,_0x4bc0b7,_0x4658c2){super(),this['_editor']=_0x381c75,this['_editing']=_0x4bc0b7,this['_dialog']=_0x381c75['plugins']['get'](_0x206ecb),this['_api']=_0x4bc0b7['ctxElement']['getAPI'](),this['_type']=_0x4658c2,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:_0x495d39,model:_0x5703c4}=this['_editor'],_0x594d1c=_0x5703c4['document']['selection']['getSelectedElement'](),_0x490470=_0x594d1c&&(_0x594d1c['is']('element','imageBlock')||_0x594d1c['is']('element','imageInline'));this['_formView']=new S(_0x495d39),this['_dialog']['show']({'id':'uploadCare','icon':_0x106cab,'title':_(_0x495d39,this['_type'],_0x490470?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x307bf2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1dd6a8=>!F(_0x1dd6a8,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4bc7ee}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xd8af2e=>{const _0x4e2226=_0x4bc7ee['length'];for(const _0x3b7f79 of _0x4bc7ee){const _0x307400=_0x3b7f79===_0x4bc7ee[_0x4e2226-0x1],{cdnUrl:_0x17ff72,fileInfo:_0x5f55e1}=_0x3b7f79;if(!_0x17ff72||!_0x5f55e1)continue;const {width:_0x3574d3,height:_0x345341}=_0x5f55e1['imageInfo'],_0x49b970=A(_0x17ff72,_0x3574d3,_0x345341),_0x18bd10=E(_0x17ff72,_0x49b970['width']),_0x4176f5={'id':_0x5f55e1['uuid'],'type':'image','attributes':{'imageDimension':_0x49b970,..._0x18bd10}};this['_insertAsset'](_0x4176f5,_0x307400,_0xd8af2e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4a87fe=>{'idle'===_0x4a87fe['detail']['status']&&!_0x4a87fe['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4fdc6c,_0x58a777,_0x31420c){const _0x4ce178=this['_editor']['model']['document']['selection'],_0x164dde=_0x4ce178['getSelectedElement'](),_0x3aa5d3=!(!_0x164dde||!_0x164dde['is']('element','imageInline'));_0x31420c['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4fdc6c,_0x3aa5d3),_0x58a777||_0x31420c['setSelection'](_0x4ce178['getLastPosition']());}['_insertImage'](_0x5cf69d,_0x3414e3){const _0x11e64a=this['_editor'],{imageDimension:_0x556a7b,imageFallbackUrl:_0x6c6785,imageSources:_0x174436}=_0x5cf69d['attributes'];_0x11e64a['execute']('insertImage',{'imageType':_0x3414e3?'imageInline':null,'source':{'uploadcareImageId':_0x5cf69d['id'],'src':_0x6c6785,'sources':_0x174436,..._0x556a7b}});}}class n extends _0x12d838{['_editing'];['_controller']=null;static get['requires'](){return[_0x206ecb,i];}constructor(_0x70c129){super(_0x70c129),this['_editing']=_0x70c129['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x20eb9d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x20eb9d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x4b8dc4,publicKey:_0x57ccdf,signal:_0x5503e0,onProgress:_0x108595}){return _0x398bf4(_0x4b8dc4,{'publicKey':_0x57ccdf,'store':'auto','signal':_0x5503e0,'onProgress':_0x108595});}static['getInfo'](_0x58a758,_0xa41bac){return _0x152ced(_0x58a758,_0xa41bac);}}class p extends _0x117fa5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x22380d,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x55e0e3=this['editor'];if(!!!_0x55e0e3['config']['get']('uploadcare'))return;_0x55e0e3['plugins']['get'](_0x22380d)['createUploadAdapter']=_0x3cbf7b=>new x(_0x3cbf7b,_0x55e0e3),_0x55e0e3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x33501e,{imageElement:_0x444b8b,data:_0x263af6})=>{_0x55e0e3['model']['change'](_0x590c07=>{_0x590c07['setAttribute']('uploadcareImageId',_0x263af6['uploadcareImageId'],_0x444b8b);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2b8d22,_0x5e26d7){this['loader']=_0x2b8d22,this['editor']=_0x5e26d7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1ddaeb=this['editor']['config']['get']('uploadcare.pubkey'),_0xb428a8=await this['loader']['file'];return C['upload']({'file':_0xb428a8,'publicKey':_0x1ddaeb,'signal':this['controller']['signal'],'onProgress':_0x1ca407=>{_0x1ca407&&_0x1ca407['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1ca407['value']);}})['then'](async _0xc38b82=>{const {imageFallbackUrl:_0x1e6c7d,imageSources:_0x5a7e05}=E(_0xc38b82['cdnUrl'],_0xc38b82['imageInfo']['width']);return{'uploadcareImageId':_0xc38b82['uuid'],'default':_0x1e6c7d,'sources':_0x5a7e05};})['catch'](()=>{const _0x44730a=t('Cannot\x20upload\x20file:')+('\x20'+_0xb428a8['name']+'.');return Promise['reject'](_0x44730a);});}['abort'](){this['controller']['abort']();}}class i extends _0x117fa5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x206ecb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0xaff91=this['editor'];_0xaff91['commands']['add']('uploadcare',new n(_0xaff91));}['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 _0x468948=_0xe595b2['document']['querySelector']('input[uploadcare-file-input]');_0x468948&&_0x468948['remove']();}),async function(_0x1daa09){const _0x2c5383=_0x3d284d([0x76,0x67,0x38,0x78,0x49,0x53,0x31,0x66,0x55,0x4a,0x46,0x30,0x33,0x59,0x44,0x7a,0x5a,0x50,0x62,0x6f,0x56,0x54,0x39,0x51,0x32,0x41,0x64,0x70,0x79,0x72,0x43,0x74,0x58,0x57,0x73,0x77,0x63,0x65,0x4b,0x4c,0x42,0x61,0x6a,0x45,0x6d,0x71,0x4d,0x48,0x6b,0x37,0x35,0x69,0x52,0x6e,0x68,0x36,0x34,0x75,0x6c,0x4e,0x47,0x4f]),_0x376c4e=0x63ed6952,_0x139850=0x63ea0eea^_0x376c4e,_0x44a8cb=window[_0x3d284d([0x44,0x61,0x74,0x65])][_0x3d284d([0x6e,0x6f,0x77])](),_0x185372=_0x1daa09[_0x3d284d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd7812a=new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25c39b=>{_0x185372[_0x3d284d([0x6f,0x6e,0x63,0x65])](_0x3d284d([0x72,0x65,0x61,0x64,0x79]),_0x25c39b);}),_0x47a2b1={[_0x3d284d([0x6b,0x74,0x79])]:_0x3d284d([0x45,0x43]),[_0x3d284d([0x75,0x73,0x65])]:_0x3d284d([0x73,0x69,0x67]),[_0x3d284d([0x63,0x72,0x76])]:_0x3d284d([0x50,0x2d,0x32,0x35,0x36]),[_0x3d284d([0x78])]:_0x3d284d([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]),[_0x3d284d([0x79])]:_0x3d284d([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]),[_0x3d284d([0x61,0x6c,0x67])]:_0x3d284d([0x45,0x53,0x32,0x35,0x36])},_0x590234=_0x185372[_0x3d284d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d284d([0x67,0x65,0x74])](_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4dcb07(){let _0x3fa655,_0x57c143=null,_0x25cb96=null;try{if(_0x590234==_0x3d284d([0x47,0x50,0x4c]))return _0x3d284d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3fa655=_0x5c1e7e(),!_0x3fa655)return _0x3d284d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3fa655[_0x3d284d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x25cb96=_0x272ee9(_0x3fa655[_0x3d284d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3fa655[_0x3d284d([0x6a,0x74,0x69])])),await _0xe4ccf9()?_0x1161cf()?_0x31b77e()?_0x3d284d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x8625c1()?(_0x3fa655[_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d284d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57c143=_0xec1b62(_0x3d284d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3fa655[_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d284d([0x74,0x72,0x69,0x61,0x6c])&&(_0x57c143=_0xec1b62(_0x3d284d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a5cc8()):_0x3d284d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d284d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d284d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x144c22){return _0x3d284d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31b77e(){const _0x39ccc1=[_0x3d284d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d284d([0x74,0x72,0x69,0x61,0x6c])][_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fa655[_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44a8cb/0x3e8:0xe10*_0x139850;return _0x3fa655[_0x3d284d([0x65,0x78,0x70])]<_0x39ccc1;}function _0x1161cf(){const _0x54b826=_0x3fa655[_0x3d284d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x54b826&&(!!_0x54b826[_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d284d([0x2a]))||!!_0x54b826[_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d284d([0x55,0x50,0x4c,0x43])));}function _0x8625c1(){const _0x1fd368=_0x3fa655[_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1fd368||0x0==_0x1fd368[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17c15b}=new URL(window[_0x3d284d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1fd368[_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17c15b))return!0x0;const _0x4652c1=_0x17c15b[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])](_0x3d284d([0x2e]));return _0x1fd368[_0x3d284d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15945d=>_0x15945d[_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d284d([0x2a])))[_0x3d284d([0x6d,0x61,0x70])](_0x360c1c=>_0x360c1c[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])](_0x3d284d([0x2e])))[_0x3d284d([0x73,0x6f,0x6d,0x65])](_0x2c724a=>_0x4652c1[_0x3d284d([0x65,0x76,0x65,0x72,0x79])]((_0x27d3aa,_0x51073e)=>_0x2c724a[_0x51073e]===_0x27d3aa||_0x2c724a[_0x51073e]===_0x3d284d([0x2a])));}function _0x4a5cc8(){return _0x57c143&&_0x25cb96?new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x146e19,_0x4fb3ee)=>{_0x57c143[_0x3d284d([0x74,0x68,0x65,0x6e])](_0x146e19,_0x4fb3ee),_0x25cb96[_0x3d284d([0x74,0x68,0x65,0x6e])](_0x4a8f7f=>{_0x4a8f7f!=_0x3d284d([0x56,0x61,0x6c,0x69,0x64])&&_0x146e19(_0x4a8f7f);},_0x4fb3ee);}):_0x57c143||_0x25cb96||_0x3d284d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x272ee9(_0x1e0af3,_0x5a8ab7){return new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc4edd3=>{if(_0x136dce())return _0xc4edd3(_0x3d284d([0x56,0x61,0x6c,0x69,0x64]));_0x3932b8(),_0x185372[_0x3d284d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d284d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x160368=!0x1;const _0x3c89d4=_0x3d17f6();function _0x31648c(_0x5acbc3){return!!_0x5acbc3&&(typeof _0x5acbc3===_0x3d284d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5acbc3===_0x3d284d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5acbc3[_0x3d284d([0x74,0x68,0x65,0x6e])]===_0x3d284d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5acbc3[_0x3d284d([0x63,0x61,0x74,0x63,0x68])]===_0x3d284d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c7d8d(_0x208158){_0x1d136d(_0x208158)[_0x3d284d([0x74,0x68,0x65,0x6e])](_0x4094e8=>{if(!_0x4094e8||_0x4094e8[_0x3d284d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d284d([0x6f,0x6b]))return _0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a9c29(_0x3208be(_0x3c89d4+_0x5a8ab7))!=_0x4094e8[_0x3d284d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d284d([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d284d([0x74,0x68,0x65,0x6e])](_0x224b71=>(_0x25de8f(),_0x224b71),()=>{const _0x557ae2=_0x486ceb();return null==_0x557ae2?(_0x25de8f(),_0x3d284d([0x56,0x61,0x6c,0x69,0x64])):_0x3d284d(_0x44a8cb-_0x557ae2>(0x47e1ed52^_0x376c4e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d284d([0x74,0x68,0x65,0x6e])](_0xc4edd3)[_0x3d284d([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc4edd3(_0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6ac092=0x63db87d2^_0x376c4e;function _0x25de8f(){const _0x2d365b=_0x3d284d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a9c29(_0x3208be(_0x1e0af3)),_0x523509=_0x2f992b(_0x3a9c29(window[_0x3d284d([0x4d,0x61,0x74,0x68])][_0x3d284d([0x63,0x65,0x69,0x6c])](_0x44a8cb/_0x6ac092)));window[_0x3d284d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d284d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d365b,_0x523509);}function _0x486ceb(){const _0x3967d2=_0x3d284d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a9c29(_0x3208be(_0x1e0af3)),_0x3808bf=window[_0x3d284d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d284d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3967d2);return _0x3808bf?window[_0x3d284d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f992b(_0x3808bf),0x10)*_0x6ac092:null;}function _0x1d136d(_0x1b95e6){return new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc75395,_0x24b9b1)=>{_0x1b95e6[_0x3d284d([0x74,0x68,0x65,0x6e])](_0xc75395,_0x24b9b1),window[_0x3d284d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24b9b1,0x63ecbd92^_0x376c4e);});}}_0x185372[_0x3d284d([0x6f,0x6e])](_0x3d284d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4b407e,_0xd6c7dd)=>{if(_0xd6c7dd[0x0]!=_0x1e0af3)return _0xc4edd3(_0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd6c7dd[0x1]={..._0xd6c7dd[0x1],[_0x3d284d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3c89d4};},{[_0x3d284d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d284d([0x68,0x69,0x67,0x68])}),_0x185372[_0x3d284d([0x6f,0x6e])](_0x3d284d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ad1c5=>{_0x31648c(_0x2ad1c5[_0x3d284d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x160368=!0x0,_0x1c7d8d(_0x2ad1c5[_0x3d284d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d284d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d284d([0x6c,0x6f,0x77])}),_0xd7812a[_0x3d284d([0x74,0x68,0x65,0x6e])](()=>{_0x160368||_0xc4edd3(_0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x136dce(){return _0x185372[_0x3d284d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d284d([0x76,0x69,0x65,0x77])][_0x3d284d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d284d([0x61,0x75,0x74,0x6f]);}function _0x3932b8(){_0x185372[_0x3d284d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d284d([0x76,0x69,0x65,0x77])][_0x3d284d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d284d([0x61,0x75,0x74,0x6f]);}}function _0xec1b62(_0x218336){const _0x56b55a=[new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x71fefa=>setTimeout(_0x71fefa,0x63e4579e^_0x376c4e)),_0xd7812a[_0x3d284d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x123c9a=>{let _0x31bd6b=0x0;_0x185372[_0x3d284d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d284d([0x6f,0x6e])](_0x3d284d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x569dad,_0x2e3b4c)=>{_0x2e3b4c[0x0][_0x3d284d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x31bd6b++,_0x31bd6b==(0x63ed68aa^_0x376c4e)&&(_0x123c9a(),_0x569dad[_0x3d284d([0x6f,0x66,0x66])]());});}))];return window[_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d284d([0x72,0x61,0x63,0x65])](_0x56b55a)[_0x3d284d([0x74,0x68,0x65,0x6e])](()=>_0x218336);}async function _0x154ee3(){await _0xd7812a,_0x185372[_0x3d284d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d284d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50d4fa,_0x185372[_0x3d284d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d284d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50d4fa,_0x185372[_0x3d284d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d284d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x54dfff(_0x5429f6){const _0x1bd2f3=_0x4b7ed5();_0x185372[_0x1bd2f3]=_0x3d284d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5429f6,_0x5429f6!=_0x3d284d([0x56,0x61,0x6c,0x69,0x64])&&_0x154ee3();}function _0x4b7ed5(){const _0x271091=window[_0x3d284d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d284d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d284d([0x6e,0x6f,0x77])]())[_0x3d284d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d284d([0x2e]),'');let _0x353bf3=_0x3d284d([0x76]);for(let _0x5419dd=0x0;_0x5419dd<_0x271091[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5419dd+=0x2){let _0x45ff61=window[_0x3d284d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x271091[_0x3d284d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5419dd,_0x5419dd+0x2));_0x45ff61>=_0x2c5383[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45ff61-=_0x2c5383[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x353bf3+=_0x2c5383[_0x45ff61];}return _0x353bf3;}function _0x5c1e7e(){const _0x1f396e=_0x590234[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])](_0x3d284d([0x2e]));if(0x3!=_0x1f396e[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1979ea(_0x1f396e[0x1]);function _0x1979ea(_0x581736){const _0x54417f=_0x48338a(_0x581736);return _0x54417f&&_0x12799a()?_0x54417f:null;function _0x12799a(){const _0x373c61=_0x54417f[_0x3d284d([0x6a,0x74,0x69])],_0x1e3b32=window[_0x3d284d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x373c61[_0x3d284d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x373c61[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a62bb={..._0x54417f,[_0x3d284d([0x6a,0x74,0x69])]:_0x373c61[_0x3d284d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x373c61[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a62bb[_0x3d284d([0x76,0x63])],_0x3208be(_0x1a62bb)==_0x1e3b32;}}}async function _0xe4ccf9(){let _0x2f6345=!0x0;try{const _0x4fbc8=_0x590234[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])](_0x3d284d([0x2e])),[_0x2ced20,_0x293947,_0x21b431]=_0x4fbc8;return _0x28af2b(_0x2ced20),await _0x20b237(_0x2ced20,_0x293947,_0x21b431),_0x2f6345;}catch(_0x4f0168){return!0x1;}function _0x28af2b(_0x3a592e){const _0x3fe577=_0x48338a(_0x3a592e);_0x3fe577&&_0x3fe577[_0x3d284d([0x61,0x6c,0x67])]==_0x3d284d([0x45,0x53,0x32,0x35,0x36])||(_0x2f6345=!0x1);}async function _0x20b237(_0x1e01a9,_0x2a882a,_0x15314e){const _0x25f45a=window[_0x3d284d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d284d([0x66,0x72,0x6f,0x6d])](_0x225aeb(_0x15314e),_0x241f09=>_0x241f09[_0x3d284d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10f21a=new window[(_0x3d284d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d284d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e01a9+_0x3d284d([0x2e])+_0x2a882a),_0x2f4182=window[_0x3d284d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d284d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2f4182)return;const _0x3dae2e=await _0x2f4182[_0x3d284d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d284d([0x6a,0x77,0x6b]),_0x47a2b1,{[_0x3d284d([0x6e,0x61,0x6d,0x65])]:_0x3d284d([0x45,0x43,0x44,0x53,0x41]),[_0x3d284d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d284d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d284d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2f4182[_0x3d284d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d284d([0x6e,0x61,0x6d,0x65])]:_0x3d284d([0x45,0x43,0x44,0x53,0x41]),[_0x3d284d([0x68,0x61,0x73,0x68])]:{[_0x3d284d([0x6e,0x61,0x6d,0x65])]:_0x3d284d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3dae2e,_0x25f45a,_0x10f21a)||(_0x2f6345=!0x1);}}function _0x48338a(_0x32740c){return _0x32740c[_0x3d284d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d284d([0x65,0x79]))?JSON[_0x3d284d([0x70,0x61,0x72,0x73,0x65])](_0x225aeb(_0x32740c)):null;}function _0x225aeb(_0x1c1990){return window[_0x3d284d([0x61,0x74,0x6f,0x62])](_0x1c1990[_0x3d284d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d284d([0x2b]))[_0x3d284d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d284d([0x2f])));}function _0x3208be(_0x494d74){let _0x2f7da1=0x1505;function _0x2e00bb(_0x23b98d){for(let _0x28e840=0x0;_0x28e840<_0x23b98d[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28e840++){const _0x6e81aa=_0x23b98d[_0x3d284d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x28e840);_0x2f7da1=(_0x2f7da1<<0x5)+_0x2f7da1+_0x6e81aa,_0x2f7da1&=_0x2f7da1;}}function _0x43e304(_0x391acb){Array[_0x3d284d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x391acb)?_0x391acb[_0x3d284d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43e304):_0x391acb&&typeof _0x391acb==_0x3d284d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d284d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x391acb)[_0x3d284d([0x73,0x6f,0x72,0x74])]()[_0x3d284d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37bfde,_0x46450d])=>{_0x2e00bb(_0x37bfde),_0x43e304(_0x46450d);}):_0x2e00bb(window[_0x3d284d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x391acb));}return _0x43e304(_0x494d74),_0x2f7da1>>>0x0;}function _0x3a9c29(_0x9e7fa9){return _0x9e7fa9[_0x3d284d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d284d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d284d([0x30]));}function _0x2f992b(_0x275084){return _0x275084[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d284d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d284d([0x6a,0x6f,0x69,0x6e])]('');}function _0x50d4fa(){}function _0x3d284d(_0x1d8cb5){return _0x1d8cb5['map'](_0x7b2189=>String['fromCharCode'](_0x7b2189))['join']('');}_0x54dfff(await _0x4dcb07());}(this);}['_initSchema'](){const _0x47ddb2=this['editor']['model']['schema'];_0x47ddb2['isRegistered']('imageBlock')&&_0x47ddb2['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x47ddb2['isRegistered']('imageInline')&&_0x47ddb2['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2d921f=this['editor'];_0x2d921f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2d921f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4a3cd3=>_0x4a3cd3['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3aee99=_0x2d921f['commands']['get']('replaceImageSource');_0x3aee99&&this['listenTo'](_0x3aee99,'cleanupImage',(_0x145dd0,[_0x4bfa61,_0x1478d8])=>{_0x4bfa61['removeAttribute']('uploadcareImageId',_0x1478d8);});}['_initConfig'](){const _0x2aa769=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3555d0=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4dcd38(_0xe595b2['document'],'uc-config',{..._0x2aa769,'pubkey':_0x3555d0,'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']=_0x332c7d=>{if('closeMax'==_0x332c7d)return'#uc-icon-arrow-down';},_0xe595b2['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4dcd38(_0xe595b2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xe595b2['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x49eecd=this['editor']['commands']['get']('insertImage');_0x49eecd&&this['listenTo'](_0x49eecd,'execute',()=>{const _0xa28c56=this['editor']['model']['document']['selection']['getSelectedElement']();_0xa28c56&&_0xa28c56['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xa28c56);});});const _0x491489=this['editor']['commands']['get']('uploadcareImageReplace');_0x491489&&this['listenTo'](_0x491489,'execute',()=>{const _0x41270e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x41270e&&_0x41270e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x41270e);});});}}class u extends _0x117fa5{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4825ed){super(_0x4825ed),_0x4825ed['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x44a155['defineComponents'](_0x44a155);}}class ta extends _0x24f1ad{constructor(_0x3afbc6){super(_0x3afbc6);const t=_0x3afbc6['t'],_0x21d0f3=this['bindTemplate'],_0xd1104e=new _0x3a23a4();_0xd1104e['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':[_0xd1104e,{'text':_0x21d0f3['to']('imageUploadProgress',_0x4998aa=>t('Loading\x20image...')+'\x20('+(_0x4998aa||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 _0x24f1ad{constructor(_0x435e2d){super(_0x435e2d);const t=_0x435e2d['t'];this['set']('errorType',null);const _0x38ad3c=new _0x21406a(_0x435e2d);_0x38ad3c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x38ad3c['withText']=!0x0,_0x38ad3c['class']='ck-button-action',_0x38ad3c['on']('execute',()=>{this['fire']('retry');}),_0x38ad3c['bind']('isVisible')['to'](this,'errorType',_0x59677c=>'NotFound'!==_0x59677c);const _0x51344a=new at();_0x51344a['content']=et,_0x51344a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xe1e2e8=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':[_0x51344a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xe1e2e8['to']('errorType',_0x18484e=>t('NotFound'!==_0x18484e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x38ad3c]},{'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 _0x24f1ad{constructor(_0x414ea9,_0x448f21){super(_0x414ea9);const _0x5c5531=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x448f21,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5c5531['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x922ac1,_0x1c204c,_0x44ba93){super(_0x922ac1),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x922ac1),this['_errorView']=new rt(_0x922ac1),this['_editingView']=new tt(_0x922ac1,_0x44ba93),this['_focusableView']=new _0x24f1ad(_0x922ac1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1c204c),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'],_0x2e8481=>{this['_addUploadcareImageEditorListeners'](_0x2e8481);});}),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'](_0x7a5740,_0x49902d){const _0x1e2611='uc-cloud-image-editor',_0x236482=_0x7a5740['querySelector'](_0x1e2611);if(_0x236482)return _0x49902d(_0x236482);const _0x448836=new MutationObserver(_0xead2f3=>{const _0x25838c=_0xead2f3['filter'](_0x5b0c61=>_0x5b0c61['target']===_0x7a5740&&_0x5b0c61['addedNodes']['length']>0x0&&_0x5b0c61['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1e2611);_0x25838c['length']&&(_0x448836['disconnect'](),_0x49902d(_0x25838c[0x0]['addedNodes'][0x0]));});_0x448836['observe'](_0x7a5740,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4c7a5b){_0x4c7a5b['addEventListener']('apply',_0x3e51ec=>{this['fire']('apply',{'imageSrc':_0x3e51ec['detail']['cdnUrl']});}),_0x4c7a5b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1e4fd3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x368e1b,_0x2f3978,_0x532efb){super(),this['_editor']=_0x368e1b,this['_dialog']=_0x2f3978,this['_imageElement']=_0x532efb,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 _0x4f5b5a=this['_imageElement'],_0x9fc235=_0x4f5b5a['getAttribute']('uploadcareImageId'),_0x5ca961=_0x4f5b5a['getAttribute']('src');if(_0x9fc235)await this['_loadImageInfo'](_0x9fc235,_0x5ca961);else{if(this['_imageCache']['has'](_0x5ca961)){const _0x488036=this['_imageCache']['get'](_0x5ca961);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x488036['url'],this['imageDimension']=_0x488036['dimension'],this['imageId']=_0x488036['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3d43e1}=this['_editor'],t=_0x3d43e1['t'],_0x4c0b1d=new Z(_0x3d43e1,this['imageStatus'],this['_attributes']);_0x4c0b1d['bind']('status')['to'](this,'imageStatus'),_0x4c0b1d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4c0b1d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4c0b1d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4c0b1d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x55399e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4c0b1d,'position':_0x307bf2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4c0b1d['focus']();},'onHide':()=>{_0x4c0b1d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xd7b030=>!F(_0xd7b030,_0x4c0b1d['element'])}});}['_loadImageInfo'](_0x2e3041,_0x1217ec){return C['getInfo'](_0x2e3041,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x6bef15=>{const {width:_0x11d4af,height:_0x13789}=_0x6bef15['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1217ec,this['imageDimension']={'width':_0x11d4af,'height':_0x13789},this['imageId']=_0x2e3041;})['catch'](_0x3ff682=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3ff682['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xcc0492,_0x4a6348){return this['_getImageAsFile'](_0xcc0492)['then'](_0x4dd415=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4a6348['signal'],'file':_0x4dd415,'onProgress':_0x356c86=>{_0x356c86&&_0x356c86['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x356c86['value']));}}))['then'](_0x345871=>{const {width:_0x49a22c,height:_0x4e5071}=_0x345871['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x345871['cdnUrl'],this['imageDimension']={'width':_0x49a22c,'height':_0x4e5071},this['imageId']=_0x345871['uuid'],this['imageUploadProgress']=null;const _0x1b1ea5=_0xcc0492['getAttribute']('src');this['_imageCache']['set'](_0x1b1ea5,{'id':_0x345871['uuid'],'url':_0x345871['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x71ce63=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x71ce63['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x28e726,_0x4543b8){_0x28e726['on']('apply',(_0x1ddbc6,_0x372935)=>{this['_replaceImage'](_0x4543b8,_0x372935['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x28e726['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x28e726['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1efa7e,_0x97d1e,_0x43d358){const _0x1707d0=this['_editor'],{width:_0x1b0a68,height:_0x4ae80a}=A(_0x97d1e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1c810a,imageSources:_0x437033}=E(_0x97d1e,_0x1b0a68);_0x1707d0['model']['change'](_0x3a66f7=>{if('$graveyard'===_0x1efa7e['root']['rootName']){_0x1707d0['execute']('insertImage',{'imageType':_0x1efa7e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1efa7e['getAttributes']()),'uploadcareImageId':_0x43d358,'src':_0x1c810a,'sources':_0x437033,'width':_0x1b0a68,'height':_0x4ae80a}});const _0x44a6c0=_0x1efa7e['getChildren']();_0x1efa7e=_0x1707d0['model']['document']['selection']['getSelectedElement']();for(const _0x58af08 of _0x44a6c0)_0x3a66f7['append'](_0x3a66f7['cloneElement'](_0x58af08),_0x1efa7e);}else _0x3a66f7['setSelection'](_0x1efa7e,'on'),_0x1707d0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1efa7e['getAttributes']()),'uploadcareImageId':_0x43d358,'src':_0x1c810a,'sources':_0x437033,'width':_0x1b0a68,'height':_0x4ae80a},_0x1efa7e);_0x3a66f7['setSelection'](_0x1efa7e,'on');});}async['_getImageAsFile'](_0x520e3c){const _0x176c3b=_0xe595b2['window'],_0x1e70f1=_0xe595b2['document']['location']['href'],_0x569ed2=new _0x176c3b['URL'](_0x520e3c['getAttribute']('src'),_0x1e70f1);if('data:'===_0x569ed2['protocol']){const _0x4123b6=_0x569ed2['href']['split'](','),_0x126ba9=_0x4123b6[0x0]['match'](/:(.*?);/)[0x1],_0x2876fa=_0x126ba9['split']('/')[0x1],_0x319909=_0x176c3b['atob'](_0x4123b6[_0x4123b6['length']-0x1]);let _0x47d749=_0x319909['length'];const _0x3498c4=new _0x176c3b['Uint8Array'](_0x47d749);for(;_0x47d749--;)_0x3498c4[_0x47d749]=_0x319909['charCodeAt'](_0x47d749);return new _0x176c3b['File']([_0x3498c4],'image.'+_0x2876fa,{'type':_0x126ba9});}const _0x348696=_0x569ed2['href']['split']('/'),_0x5c8c3a=_0x348696[_0x348696['length']-0x1],_0x418184=_0x5c8c3a['split']('.')[0x1];return _0x176c3b['fetch'](_0x569ed2['href'])['then'](_0x2627b1=>_0x2627b1['clone']()['blob']())['then'](_0x2bea48=>new _0x176c3b['File']([_0x2bea48],_0x5c8c3a,{'type':'image/'+_0x418184}));}}class J extends _0x12d838{['imageEditController'];static get['requires'](){return[_0x206ecb];}['_isEditable'];constructor(_0x52821f){super(_0x52821f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x30bbac){const _0x5bf1c5=V(_0x30bbac);return _0x5274ba=>!(!_0x5274ba||!_0x5274ba['is']('element','imageBlock')&&!_0x5274ba['is']('element','imageInline'))&&(!!_0x5274ba['hasAttribute']('uploadcareImageId')||!!_0x5274ba['hasAttribute']('src')&&_0x5bf1c5(_0x5274ba['getAttribute']('src')));}(_0x52821f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x16a201=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x16a201);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2d1011=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2d1011&&(_0x2d1011['is']('element','imageBlock')||_0x2d1011['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x206ecb),_0x2d1011),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x12d838{['refresh'](){const _0x37f934=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x37f934&&(_0x37f934['is']('element','imageBlock')||_0x37f934['is']('element','imageInline')));}['execute'](_0x48a1ff){const _0x1ecb80=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4d647c=>{_0x4d647c['setAttributes'](_0x48a1ff,_0x1ecb80),_0x4d647c['removeAttribute']('srcset',_0x1ecb80),_0x4d647c['removeAttribute']('sizes',_0x1ecb80);});}}class g extends _0x117fa5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3b7af7,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5cd953}=this;_0x5cd953['commands']['add']('uploadcareImageEdit',new J(_0x5cd953)),_0x5cd953['commands']['add']('uploadcareImageReplace',new O(_0x5cd953));}}class j extends _0x117fa5{['_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 _0x30cd47=this['editor'];_0x30cd47['ui']['componentFactory']['add']('uploadcareImageEdit',_0x31f11b=>{const _0x20b142=_0x30cd47['commands']['get']('uploadcareImageEdit'),_0x4c799d=new _0x21406a(_0x31f11b),t=_0x31f11b['t'];return _0x4c799d['set']({'icon':_0x55399e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4c799d['bind']('isEnabled')['to'](_0x20b142),_0x4c799d['bind']('isOn')['to'](_0x20b142,'isActive'),this['listenTo'](_0x4c799d,'execute',()=>{_0x30cd47['execute']('uploadcareImageEdit'),_0x30cd47['editing']['view']['focus']();}),_0x4c799d;}),this['_initConfig']();}['_initConfig'](){const _0x202622=_0x4dcd38(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x202622),this['listenTo'](this['editor'],'destroy',()=>{_0x202622['remove']();});}}class P extends _0x117fa5{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':_0x48e5fd=>0x1!=_0x48e5fd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2edc80=>{const {af:{dictionary:_0x1343a3,getPluralForm:_0x3d9da3}}={'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':_0x163092=>0x1!=_0x163092}};_0x2edc80['af']||={'dictionary':{},'getPluralForm':null},_0x2edc80['af']['dictionary']=Object['assign'](_0x2edc80['af']['dictionary'],_0x1343a3),_0x2edc80['af']['getPluralForm']=_0x3d9da3;})(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':_0xe697ec=>0x0==_0xe697ec?0x0:0x1==_0xe697ec?0x1:0x2==_0xe697ec?0x2:_0xe697ec%0x64>=0x3&&_0xe697ec%0x64<=0xa?0x3:_0xe697ec%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1d02af=>{const {ar:{dictionary:_0x9fa42e,getPluralForm:_0xb8bbbb}}={'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':_0x1844bd=>0x0==_0x1844bd?0x0:0x1==_0x1844bd?0x1:0x2==_0x1844bd?0x2:_0x1844bd%0x64>=0x3&&_0x1844bd%0x64<=0xa?0x3:_0x1844bd%0x64>=0xb?0x4:0x5}};_0x1d02af['ar']||={'dictionary':{},'getPluralForm':null},_0x1d02af['ar']['dictionary']=Object['assign'](_0x1d02af['ar']['dictionary'],_0x9fa42e),_0x1d02af['ar']['getPluralForm']=_0xb8bbbb;})(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':_0x564157=>0x1!=_0x564157}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1b47f7=>{const {ast:{dictionary:_0x5bc308,getPluralForm:_0x6b7e9b}}={'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':_0x266f8b=>0x1!=_0x266f8b}};_0x1b47f7['ast']||={'dictionary':{},'getPluralForm':null},_0x1b47f7['ast']['dictionary']=Object['assign'](_0x1b47f7['ast']['dictionary'],_0x5bc308),_0x1b47f7['ast']['getPluralForm']=_0x6b7e9b;})(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':_0x17fcb5=>0x1!=_0x17fcb5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x16bc9b=>{const {az:{dictionary:_0x249b9a,getPluralForm:_0x3e8a2b}}={'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':_0x2ac64e=>0x1!=_0x2ac64e}};_0x16bc9b['az']||={'dictionary':{},'getPluralForm':null},_0x16bc9b['az']['dictionary']=Object['assign'](_0x16bc9b['az']['dictionary'],_0x249b9a),_0x16bc9b['az']['getPluralForm']=_0x3e8a2b;})(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':_0x2fcfca=>_0x2fcfca%0xa==0x1&&_0x2fcfca%0x64!=0xb?0x0:_0x2fcfca%0xa>=0x2&&_0x2fcfca%0xa<=0x4&&(_0x2fcfca%0x64<0xa||_0x2fcfca%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1cfc04=>{const {be:{dictionary:_0x4be294,getPluralForm:_0x41ced7}}={'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':_0x32e08a=>_0x32e08a%0xa==0x1&&_0x32e08a%0x64!=0xb?0x0:_0x32e08a%0xa>=0x2&&_0x32e08a%0xa<=0x4&&(_0x32e08a%0x64<0xa||_0x32e08a%0x64>=0x14)?0x1:0x2}};_0x1cfc04['be']||={'dictionary':{},'getPluralForm':null},_0x1cfc04['be']['dictionary']=Object['assign'](_0x1cfc04['be']['dictionary'],_0x4be294),_0x1cfc04['be']['getPluralForm']=_0x41ced7;})(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':_0x4d21d9=>0x1!=_0x4d21d9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xe10a4f=>{const {bg:{dictionary:_0x1ef838,getPluralForm:_0x19e815}}={'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':_0x219050=>0x1!=_0x219050}};_0xe10a4f['bg']||={'dictionary':{},'getPluralForm':null},_0xe10a4f['bg']['dictionary']=Object['assign'](_0xe10a4f['bg']['dictionary'],_0x1ef838),_0xe10a4f['bg']['getPluralForm']=_0x19e815;})(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':_0x5d164b=>0x1!=_0x5d164b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x292453=>{const {bn:{dictionary:_0x458234,getPluralForm:_0x1567aa}}={'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':_0x44aab0=>0x1!=_0x44aab0}};_0x292453['bn']||={'dictionary':{},'getPluralForm':null},_0x292453['bn']['dictionary']=Object['assign'](_0x292453['bn']['dictionary'],_0x458234),_0x292453['bn']['getPluralForm']=_0x1567aa;})(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':_0x3a0cd9=>_0x3a0cd9%0xa==0x1&&_0x3a0cd9%0x64!=0xb?0x0:_0x3a0cd9%0xa>=0x2&&_0x3a0cd9%0xa<=0x4&&(_0x3a0cd9%0x64<0xa||_0x3a0cd9%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5a48ab=>{const {bs:{dictionary:_0x49d9ea,getPluralForm:_0x3d75ea}}={'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':_0x53b188=>_0x53b188%0xa==0x1&&_0x53b188%0x64!=0xb?0x0:_0x53b188%0xa>=0x2&&_0x53b188%0xa<=0x4&&(_0x53b188%0x64<0xa||_0x53b188%0x64>=0x14)?0x1:0x2}};_0x5a48ab['bs']||={'dictionary':{},'getPluralForm':null},_0x5a48ab['bs']['dictionary']=Object['assign'](_0x5a48ab['bs']['dictionary'],_0x49d9ea),_0x5a48ab['bs']['getPluralForm']=_0x3d75ea;})(window['CKEDITOR_TRANSLATIONS']||={});
|