@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250410.0 → 0.0.0-nightly-20250412.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x158d9b,Command as _0x4b83f0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x25d874,IconGooglePhotos as _0x4bf1ed,IconGoogleDrive as _0x1f8f44,IconFacebook as _0x4976fe,IconDropbox as _0x36d0f1,IconUploadcareLink as _0x296cb4,IconUploadcareImageUpload as _0x220686,IconError as et,IconUploadcareImageEdit as _0x394570}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1d1f63,MenuBarMenuListItemButtonView as _0x53e9f0,View as _0x153b72,FocusCycler as _0xf0696f,Dialog as _0x3e29b2,DialogViewPosition as _0x39ac5e,SpinnerView as _0x3e0c05,IconView as at,Notification as _0x8e730}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5d87d4,DomEmitterMixin as _0x4d5178,global as _0x45694b,getAncestors as _0x2a6cf2,ObservableMixin as _0x23db6a,createElement as _0x25b06b,uid as _0x1dc8e6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x19caab}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x315435,info as _0x30a4e7}from'@uploadcare/upload-client';import*as _0x4a97c4 from'@uploadcare/file-uploader';var o=function(_0x324aea){return _0x324aea['Local']='local',_0x324aea['URL']='url',_0x324aea['Dropbox']='dropbox',_0x324aea['GDrive']='gdrive',_0x324aea['Facebook']='facebook',_0x324aea['GPhotos']='gphotos',_0x324aea['OneDrive']='onedrive',_0x324aea;}({});function _(_0x4d93a7,_0x3a3f6a,_0x307f5a){const t=_0x4d93a7['t'],_0x192614=_0x4d93a7['t'];switch(_0x3a3f6a){case o['Local']:return{'text':_0x192614('Insert'===_0x307f5a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x192614('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x307f5a?_0x192614('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x192614('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x307f5a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x307f5a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x307f5a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x307f5a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x307f5a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3a3f6a;}}class e extends _0x158d9b{['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 _0x37511c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5ba5df;for(const _0x24d171 in _0x37511c){const _0x1829c1=_0x24d171,_0x278f98=_0x37511c[_0x1829c1];if('uploadcareLicenseKeyValid'==_0x278f98||'uploadcareLicenseKeyInvalid'==_0x278f98||'uploadcareLicenseKeyExpired'==_0x278f98||'uploadcareLicenseKeyDomainLimit'==_0x278f98||'uploadcareLicenseKeyNotAllowed'==_0x278f98||'uploadcareLicenseKeyEvaluationLimit'==_0x278f98||'uploadcareLicenseKeyTrialLimit'==_0x278f98||'uploadcareLicenseKeyUsageLimit'==_0x278f98){delete _0x37511c[_0x1829c1],_0x5ba5df=_0x278f98,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5ba5df&&_0x37511c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5ba5df&&_0x37511c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5ba5df&&_0x37511c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5ba5df&&_0x37511c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5ba5df&&_0x37511c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5ba5df&&_0x37511c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5ba5df&&_0x37511c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x50bcfd}=this,_0x5ea8d6=_0x50bcfd['commands']['get']('uploadcare');if(!_0x5ea8d6)return;const _0x20bdfb=this['_normalizeConfigSourceList'](_0x50bcfd['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2e1102,_0x37b573)=>{const _0x4a3aac=this['_getIntegrationKey'](_0x37b573['type']);return _0x2e1102[_0x4a3aac]||(_0x2e1102[_0x4a3aac]=[]),_0x2e1102[_0x4a3aac]['push'](_0x37b573),_0x2e1102;},{});_0x50bcfd['plugins']['has']('ImageInsertUI')&&_0x50bcfd['commands']['get']('uploadcare')&&Object['entries'](_0x20bdfb)['forEach'](([_0xc49965,_0x22091d])=>{_0x50bcfd['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xc49965,'observable':()=>_0x5ea8d6,'buttonViewCreator':()=>this['_createToolbarButton'](_0x22091d),'formViewCreator':()=>this['_createDropdownButtons'](_0x22091d),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x22091d),'override':'assetManager'!==_0xc49965});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3256aa){const {locale:_0x200d5d}=this['editor'];return _0x3256aa['map'](_0xb69148=>{const _0x29410b=_(_0x200d5d,_0xb69148,'Insert');switch(_0xb69148){case o['Local']:return{'icon':_0x220686,'type':o['Local'],..._0x29410b};case o['URL']:return{'icon':_0x296cb4,'type':o['URL'],..._0x29410b};case o['Dropbox']:return{'icon':_0x36d0f1,'type':o['Dropbox'],..._0x29410b};case o['Facebook']:return{'icon':_0x4976fe,'type':o['Facebook'],..._0x29410b};case o['GDrive']:return{'icon':_0x1f8f44,'type':o['GDrive'],..._0x29410b};case o['GPhotos']:return{'icon':_0x4bf1ed,'type':o['GPhotos'],..._0x29410b};case o['OneDrive']:return{'icon':_0x25d874,'type':o['OneDrive'],..._0x29410b};}});}['_getIntegrationKey'](_0x391de0){switch(_0x391de0){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1479d1,_0x3d21d1){const _0x4cb35f=this['editor'],_0x2c22ce=new _0x1479d1(_0x4cb35f['locale']),_0x25684a=_0x4cb35f['commands']['get']('uploadcare');return _0x2c22ce['bind']('isEnabled')['to'](_0x25684a),_0x2c22ce['on']('execute',()=>{_0x25684a['execute'](_0x3d21d1);}),_0x2c22ce;}['_createToolbarButton'](_0x441592){const {locale:_0x244545}=this['editor'],_0x43b862=this['editor']['plugins']['get']('ImageInsertUI'),_0x538dfb=_0x441592[0x0],_0xb1d7d3=this['_createButton'](_0x1d1f63,_0x538dfb['type']);return _0xb1d7d3['icon']=_0x538dfb['icon'],_0xb1d7d3['bind']('label')['to'](_0x43b862,'isImageSelected',_0x325bcc=>_(_0x244545,_0x538dfb['type'],_0x325bcc?'Replace':'Insert')['text']),_0xb1d7d3['tooltip']=!0x0,_0xb1d7d3;}['_createDropdownButtons'](_0x2f0573){const {locale:_0x157c0d}=this['editor'],_0x4906fd=this['editor']['plugins']['get']('ImageInsertUI');return _0x2f0573['map'](_0x34d015=>{const _0x5e3193=this['_createButton'](_0x1d1f63,_0x34d015['type']);return _0x5e3193['withText']=!0x0,_0x5e3193['icon']=_0x34d015['icon'],_0x5e3193['bind']('label')['to'](_0x4906fd,'isImageSelected',_0xb3836b=>_(_0x157c0d,_0x34d015['type'],_0xb3836b?'Replace':'Insert')['text']),_0x5e3193;});}['_createMenuBarButtons'](_0x4f838d){return _0x4f838d['map'](_0x1aa94b=>{const _0x3599b6=this['_createButton'](_0x53e9f0,_0x1aa94b['type']);return _0x3599b6['icon']=_0x1aa94b['icon'],_0x3599b6['label']=_0x1aa94b['shortText'],_0x3599b6;});}}class q extends _0x153b72{['focusTracker'];['focusCycler'];constructor(_0xf47648){super(_0xf47648),this['focusTracker']=new _0x5d87d4(),this['focusCycler']=new _0xf0696f({'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(_0x47194e){super(_0x47194e),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(_0x4f6ad5,_0x251ab9){const _0x511607=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x34a931=>_0x34a931<=_0x251ab9)['map'](_0x2922c5=>_0x4f6ad5['replace'](/\/$/,'')+'/-/resize/'+_0x2922c5+'x/\x20'+_0x2922c5+'w');return{'imageFallbackUrl':_0x4f6ad5,'imageSources':[{'srcset':_0x511607['join'](',\x20'),'sizes':'(max-width:\x20'+_0x251ab9+'px)\x20100vw,\x20'+_0x251ab9+'px','type':'image/webp'}]};}function A(_0x19fff3,_0x375519,_0x35b7b5){const _0xdf3049=_0x19fff3['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xdf3049?parseInt(_0xdf3049[0x1],0xa):_0x375519,'height':_0xdf3049?parseInt(_0xdf3049[0x2],0xa):_0x35b7b5};}function m(_0x4d82d8,_0x2b4a21){const _0x19fd9b=Object['create'](_0x4d5178),_0x4d5505=_0x4d82d8['plugins']['get']('ImageUtils'),_0x165be0=_0x4d82d8['editing']['mapper']['toViewElement'](_0x2b4a21),_0x5af13b=_0x4d5505['findViewImgElement'](_0x165be0),_0x2c653b=_0x4d82d8['editing']['view']['domConverter']['viewToDom'](_0x5af13b),_0x58f13a=_0x2b4a21['getAttribute']('width'),_0x545dde=_0x2b4a21['getAttribute']('height'),_0xe07cc0='image-processing';_0x4d82d8['editing']['view']['change'](_0x2083a5=>{_0x2083a5['addClass'](_0xe07cc0,_0x165be0),_0x2083a5['setStyle']('aspect-ratio',_0x58f13a+'/'+_0x545dde,_0x5af13b);}),_0x19fd9b['listenTo'](_0x2c653b,'load',()=>{_0x19fd9b['stopListening'](_0x2c653b,'load'),_0x4d82d8['editing']['view']['change'](_0x2310d2=>{_0x2310d2['removeClass'](_0xe07cc0,_0x165be0),_0x2310d2['removeStyle']('aspect-ratio',_0x5af13b);});});}function V(_0x43168e){if(Array['isArray'](_0x43168e)){const _0x247fda=_0x43168e['map'](V);return _0x177391=>_0x247fda['some'](_0x5214da=>_0x5214da(_0x177391));}if('origin'==_0x43168e){const _0x450588=_0x45694b['window']['location']['origin'];return _0x6c8955=>new URL(_0x6c8955,_0x45694b['document']['baseURI'])['origin']==_0x450588;}return'function'==typeof _0x43168e?_0x43168e:_0x43168e instanceof RegExp?_0x3ab297=>!(!_0x3ab297['match'](_0x43168e)&&!_0x3ab297['replace'](/^https?:\/\//,'')['match'](_0x43168e)):()=>!0x1;}function F(_0x5d92df,_0x23026a){return _0x2a6cf2(_0x5d92df['target'])['includes'](_0x23026a);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x23db6a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4ee2fb,_0x32f060,_0x1456ca){super(),this['_editor']=_0x4ee2fb,this['_editing']=_0x32f060,this['_dialog']=_0x4ee2fb['plugins']['get'](_0x3e29b2),this['_api']=_0x32f060['ctxElement']['getAPI'](),this['_type']=_0x1456ca,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:_0x209a80,model:_0x156433}=this['_editor'],_0x1a430c=_0x156433['document']['selection']['getSelectedElement'](),_0x3e6f44=_0x1a430c&&(_0x1a430c['is']('element','imageBlock')||_0x1a430c['is']('element','imageInline'));this['_formView']=new S(_0x209a80),this['_dialog']['show']({'id':'uploadCare','icon':_0x220686,'title':_(_0x209a80,this['_type'],_0x3e6f44?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x39ac5e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3e20df=>!F(_0x3e20df,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x298500}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x40a803=>{const _0x417599=_0x298500['length'];for(const _0x33c652 of _0x298500){const _0x1f5010=_0x33c652===_0x298500[_0x417599-0x1],{cdnUrl:_0x559eb8,fileInfo:_0x32c7cf}=_0x33c652;if(!_0x559eb8||!_0x32c7cf)continue;const {width:_0x45d97c,height:_0x1935a2}=_0x32c7cf['imageInfo'],_0x5be6f9=A(_0x559eb8,_0x45d97c,_0x1935a2),_0x25dccf=E(_0x559eb8,_0x5be6f9['width']),_0x3835d4={'id':_0x32c7cf['uuid'],'type':'image','attributes':{'imageDimension':_0x5be6f9,..._0x25dccf}};this['_insertAsset'](_0x3835d4,_0x1f5010,_0x40a803);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x23281f=>{'idle'===_0x23281f['detail']['status']&&!_0x23281f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x93a661,_0x267ab5,_0x51144f){const _0x3adedb=this['_editor']['model']['document']['selection'],_0x203237=_0x3adedb['getSelectedElement'](),_0x174e49=!(!_0x203237||!_0x203237['is']('element','imageInline'));_0x51144f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x93a661,_0x174e49),_0x267ab5||_0x51144f['setSelection'](_0x3adedb['getLastPosition']());}['_insertImage'](_0x5f2332,_0x455f1e){const _0x41645b=this['_editor'],{imageDimension:_0x544346,imageFallbackUrl:_0x4e4432,imageSources:_0x1b30f0}=_0x5f2332['attributes'];_0x41645b['execute']('insertImage',{'imageType':_0x455f1e?'imageInline':null,'source':{'uploadcareImageId':_0x5f2332['id'],'src':_0x4e4432,'sources':_0x1b30f0,..._0x544346}});}}class n extends _0x4b83f0{['_editing'];['_controller']=null;static get['requires'](){return[_0x3e29b2,i];}constructor(_0x4ccb6a){super(_0x4ccb6a),this['_editing']=_0x4ccb6a['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4ba6d2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x4ba6d2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x293666,publicKey:_0x3e781e,signal:_0x5b95f9,onProgress:_0x58a9fd}){return _0x315435(_0x293666,{'publicKey':_0x3e781e,'store':'auto','signal':_0x5b95f9,'onProgress':_0x58a9fd});}static['getInfo'](_0x3ab0ae,_0x1a8f10){return _0x30a4e7(_0x3ab0ae,_0x1a8f10);}}class p extends _0x158d9b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x19caab,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x12e0f4=this['editor'];if(!!!_0x12e0f4['config']['get']('uploadcare'))return;_0x12e0f4['plugins']['get'](_0x19caab)['createUploadAdapter']=_0x362597=>new x(_0x362597,_0x12e0f4),_0x12e0f4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2f56d4,{imageElement:_0x5c129d,data:_0x63ac07})=>{_0x12e0f4['model']['change'](_0x32496f=>{_0x32496f['setAttribute']('uploadcareImageId',_0x63ac07['uploadcareImageId'],_0x5c129d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x5e4bd1,_0x35ede6){this['loader']=_0x5e4bd1,this['editor']=_0x35ede6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x347ade=this['editor']['config']['get']('uploadcare.pubkey'),_0xad37b=await this['loader']['file'];return C['upload']({'file':_0xad37b,'publicKey':_0x347ade,'signal':this['controller']['signal'],'onProgress':_0xacdc6c=>{_0xacdc6c&&_0xacdc6c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xacdc6c['value']);}})['then'](async _0x1b9a99=>{const {imageFallbackUrl:_0x104170,imageSources:_0x2c6502}=E(_0x1b9a99['cdnUrl'],_0x1b9a99['imageInfo']['width']);return{'uploadcareImageId':_0x1b9a99['uuid'],'default':_0x104170,'sources':_0x2c6502};})['catch'](()=>{const _0x947296=t('Cannot\x20upload\x20file:')+('\x20'+_0xad37b['name']+'.');return Promise['reject'](_0x947296);});}['abort'](){this['controller']['abort']();}}class i extends _0x158d9b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3e29b2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x461401=this['editor'];_0x461401['commands']['add']('uploadcare',new n(_0x461401));}['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 _0x4439cf=_0x45694b['document']['querySelector']('input[uploadcare-file-input]');_0x4439cf&&_0x4439cf['remove']();}),async function(_0x5583c8){const _0x5527d7=_0x5159dc([0x56,0x45,0x37,0x34,0x75,0x4a,0x47,0x79,0x70,0x43,0x6e,0x32,0x6c,0x65,0x71,0x6f,0x48,0x41,0x51,0x53,0x57,0x4f,0x31,0x52,0x67,0x64,0x6b,0x54,0x58,0x76,0x36,0x5a,0x50,0x77,0x72,0x39,0x7a,0x6a,0x4b,0x4d,0x38,0x6d,0x35,0x66,0x74,0x69,0x61,0x68,0x42,0x33,0x44,0x73,0x4c,0x59,0x55,0x30,0x46,0x62,0x49,0x4e,0x78,0x63]),_0x1a1fc5=0x113d7281,_0x37284c=0x113a1621^_0x1a1fc5,_0x353e09=window[_0x5159dc([0x44,0x61,0x74,0x65])][_0x5159dc([0x6e,0x6f,0x77])](),_0x51c5c8=_0x5583c8[_0x5159dc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x908655=new window[(_0x5159dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x345dbc=>{_0x51c5c8[_0x5159dc([0x6f,0x6e,0x63,0x65])](_0x5159dc([0x72,0x65,0x61,0x64,0x79]),_0x345dbc);}),_0x3df4bd={[_0x5159dc([0x6b,0x74,0x79])]:_0x5159dc([0x45,0x43]),[_0x5159dc([0x75,0x73,0x65])]:_0x5159dc([0x73,0x69,0x67]),[_0x5159dc([0x63,0x72,0x76])]:_0x5159dc([0x50,0x2d,0x32,0x35,0x36]),[_0x5159dc([0x78])]:_0x5159dc([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]),[_0x5159dc([0x79])]:_0x5159dc([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]),[_0x5159dc([0x61,0x6c,0x67])]:_0x5159dc([0x45,0x53,0x32,0x35,0x36])},_0x33d337=_0x51c5c8[_0x5159dc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5159dc([0x67,0x65,0x74])](_0x5159dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c08b1(){let _0x1f5ca0,_0x1e8a3d=null,_0x1d540a=null;try{if(_0x33d337==_0x5159dc([0x47,0x50,0x4c]))return _0x5159dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1f5ca0=_0x11ebe1(),!_0x1f5ca0)return _0x5159dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1f5ca0[_0x5159dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d540a=_0x23b19b(_0x1f5ca0[_0x5159dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1f5ca0[_0x5159dc([0x6a,0x74,0x69])])),await _0x2b3a27()?_0x2af1ea()?_0x584770()?_0x5159dc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b557a()?(_0x1f5ca0[_0x5159dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5159dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e8a3d=_0x70462f(_0x5159dc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1f5ca0[_0x5159dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5159dc([0x74,0x72,0x69,0x61,0x6c])&&(_0x1e8a3d=_0x70462f(_0x5159dc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3e2e1c()):_0x5159dc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5159dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5159dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x19db07){return _0x5159dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x584770(){const _0x4d5b39=[_0x5159dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5159dc([0x74,0x72,0x69,0x61,0x6c])][_0x5159dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f5ca0[_0x5159dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x353e09/0x3e8:0xe10*_0x37284c;return _0x1f5ca0[_0x5159dc([0x65,0x78,0x70])]<_0x4d5b39;}function _0x2af1ea(){const _0x18122b=_0x1f5ca0[_0x5159dc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x18122b&&(!!_0x18122b[_0x5159dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5159dc([0x2a]))||!!_0x18122b[_0x5159dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5159dc([0x55,0x50,0x4c,0x43])));}function _0x1b557a(){const _0x55dd3f=_0x1f5ca0[_0x5159dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x55dd3f||0x0==_0x55dd3f[_0x5159dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x38a14d}=new URL(window[_0x5159dc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x55dd3f[_0x5159dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a14d))return!0x0;const _0x1152dd=_0x38a14d[_0x5159dc([0x73,0x70,0x6c,0x69,0x74])](_0x5159dc([0x2e]));return _0x55dd3f[_0x5159dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ee4d2=>_0x2ee4d2[_0x5159dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5159dc([0x2a])))[_0x5159dc([0x6d,0x61,0x70])](_0x39ac03=>_0x39ac03[_0x5159dc([0x73,0x70,0x6c,0x69,0x74])](_0x5159dc([0x2e])))[_0x5159dc([0x73,0x6f,0x6d,0x65])](_0x1aa6a2=>_0x1152dd[_0x5159dc([0x65,0x76,0x65,0x72,0x79])]((_0x56050f,_0x4c95e9)=>_0x1aa6a2[_0x4c95e9]===_0x56050f||_0x1aa6a2[_0x4c95e9]===_0x5159dc([0x2a])));}function _0x3e2e1c(){return _0x1e8a3d&&_0x1d540a?new window[(_0x5159dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bc93d,_0x3b83a3)=>{_0x1e8a3d[_0x5159dc([0x74,0x68,0x65,0x6e])](_0x1bc93d,_0x3b83a3),_0x1d540a[_0x5159dc([0x74,0x68,0x65,0x6e])](_0xdec6cc=>{_0xdec6cc!=_0x5159dc([0x56,0x61,0x6c,0x69,0x64])&&_0x1bc93d(_0xdec6cc);},_0x3b83a3);}):_0x1e8a3d||_0x1d540a||_0x5159dc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23b19b(_0x3531e9,_0x59df44){return new window[(_0x5159dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bca58=>{if(_0x2c901a())return _0x3bca58(_0x5159dc([0x56,0x61,0x6c,0x69,0x64]));_0x198907(),_0x51c5c8[_0x5159dc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5159dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5ef8d8=!0x1;const _0x2976e0=_0x1dc8e6();function _0x238660(_0x2008c9){return!!_0x2008c9&&(typeof _0x2008c9===_0x5159dc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2008c9===_0x5159dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2008c9[_0x5159dc([0x74,0x68,0x65,0x6e])]===_0x5159dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2008c9[_0x5159dc([0x63,0x61,0x74,0x63,0x68])]===_0x5159dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5cb08e(_0x873713){_0x21bf11(_0x873713)[_0x5159dc([0x74,0x68,0x65,0x6e])](_0x157443=>{if(!_0x157443||_0x157443[_0x5159dc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5159dc([0x6f,0x6b]))return _0x5159dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x18869c(_0x37c232(_0x2976e0+_0x59df44))!=_0x157443[_0x5159dc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5159dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5159dc([0x56,0x61,0x6c,0x69,0x64]);})[_0x5159dc([0x74,0x68,0x65,0x6e])](_0x5d2f8b=>(_0x4fc06b(),_0x5d2f8b),()=>{const _0x561b6b=_0x414b0b();return null==_0x561b6b?(_0x4fc06b(),_0x5159dc([0x56,0x61,0x6c,0x69,0x64])):_0x5159dc(_0x353e09-_0x561b6b>(0x3531f681^_0x1a1fc5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5159dc([0x74,0x68,0x65,0x6e])](_0x3bca58)[_0x5159dc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3bca58(_0x5159dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3de675=0x110b9c01^_0x1a1fc5;function _0x4fc06b(){const _0x3dccb6=_0x5159dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x18869c(_0x37c232(_0x3531e9)),_0x52243b=_0x1ffc21(_0x18869c(window[_0x5159dc([0x4d,0x61,0x74,0x68])][_0x5159dc([0x63,0x65,0x69,0x6c])](_0x353e09/_0x3de675)));window[_0x5159dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5159dc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3dccb6,_0x52243b);}function _0x414b0b(){const _0x52db4b=_0x5159dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x18869c(_0x37c232(_0x3531e9)),_0x4d73c0=window[_0x5159dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5159dc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52db4b);return _0x4d73c0?window[_0x5159dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ffc21(_0x4d73c0),0x10)*_0x3de675:null;}function _0x21bf11(_0x29bf4){return new window[(_0x5159dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe2ecda,_0x3035f6)=>{_0x29bf4[_0x5159dc([0x74,0x68,0x65,0x6e])](_0xe2ecda,_0x3035f6),window[_0x5159dc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3035f6,0x113ca641^_0x1a1fc5);});}}_0x51c5c8[_0x5159dc([0x6f,0x6e])](_0x5159dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2df297,_0x29155b)=>{if(_0x29155b[0x0]!=_0x3531e9)return _0x3bca58(_0x5159dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x29155b[0x1]={..._0x29155b[0x1],[_0x5159dc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2976e0};},{[_0x5159dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5159dc([0x68,0x69,0x67,0x68])}),_0x51c5c8[_0x5159dc([0x6f,0x6e])](_0x5159dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x294e24=>{_0x238660(_0x294e24[_0x5159dc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5ef8d8=!0x0,_0x5cb08e(_0x294e24[_0x5159dc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5159dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5159dc([0x6c,0x6f,0x77])}),_0x908655[_0x5159dc([0x74,0x68,0x65,0x6e])](()=>{_0x5ef8d8||_0x3bca58(_0x5159dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c901a(){return _0x51c5c8[_0x5159dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5159dc([0x76,0x69,0x65,0x77])][_0x5159dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5159dc([0x61,0x75,0x74,0x6f]);}function _0x198907(){_0x51c5c8[_0x5159dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5159dc([0x76,0x69,0x65,0x77])][_0x5159dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5159dc([0x61,0x75,0x74,0x6f]);}}function _0x70462f(_0x4ebe42){const _0x66fa7e=[new window[(_0x5159dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56252d=>setTimeout(_0x56252d,0x11344c4d^_0x1a1fc5)),_0x908655[_0x5159dc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5159dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b3761=>{let _0x412c78=0x0;_0x51c5c8[_0x5159dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5159dc([0x6f,0x6e])](_0x5159dc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11cd8c,_0x3daad1)=>{_0x3daad1[0x0][_0x5159dc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x412c78++,_0x412c78==(0x113d7379^_0x1a1fc5)&&(_0x2b3761(),_0x11cd8c[_0x5159dc([0x6f,0x66,0x66])]());});}))];return window[_0x5159dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5159dc([0x72,0x61,0x63,0x65])](_0x66fa7e)[_0x5159dc([0x74,0x68,0x65,0x6e])](()=>_0x4ebe42);}async function _0xceed85(){await _0x908655,_0x51c5c8[_0x5159dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5159dc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x511ede,_0x51c5c8[_0x5159dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5159dc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x511ede,_0x51c5c8[_0x5159dc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5159dc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x304ccf(_0x319db7){const _0x2070af=_0x3b58cb();_0x51c5c8[_0x2070af]=_0x5159dc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x319db7,_0x319db7!=_0x5159dc([0x56,0x61,0x6c,0x69,0x64])&&_0xceed85();}function _0x3b58cb(){const _0x2c798f=window[_0x5159dc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5159dc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5159dc([0x6e,0x6f,0x77])]())[_0x5159dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5159dc([0x2e]),'');let _0x3541e8=_0x5159dc([0x56]);for(let _0xd9d425=0x0;_0xd9d425<_0x2c798f[_0x5159dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd9d425+=0x2){let _0x110839=window[_0x5159dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c798f[_0x5159dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd9d425,_0xd9d425+0x2));_0x110839>=_0x5527d7[_0x5159dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x110839-=_0x5527d7[_0x5159dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3541e8+=_0x5527d7[_0x110839];}return _0x3541e8;}function _0x11ebe1(){const _0x2023d9=_0x33d337[_0x5159dc([0x73,0x70,0x6c,0x69,0x74])](_0x5159dc([0x2e]));if(0x3!=_0x2023d9[_0x5159dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d3b23(_0x2023d9[0x1]);function _0x5d3b23(_0x400d4f){const _0x3070e1=_0x5cad44(_0x400d4f);return _0x3070e1&&_0x533e8d()?_0x3070e1:null;function _0x533e8d(){const _0xdf698b=_0x3070e1[_0x5159dc([0x6a,0x74,0x69])],_0x2dcd7a=window[_0x5159dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdf698b[_0x5159dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xdf698b[_0x5159dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d4b31={..._0x3070e1,[_0x5159dc([0x6a,0x74,0x69])]:_0xdf698b[_0x5159dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xdf698b[_0x5159dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d4b31[_0x5159dc([0x76,0x63])],_0x37c232(_0x2d4b31)==_0x2dcd7a;}}}async function _0x2b3a27(){let _0xe7ca47=!0x0;try{const _0x24034b=_0x33d337[_0x5159dc([0x73,0x70,0x6c,0x69,0x74])](_0x5159dc([0x2e])),[_0x1f66a6,_0x55449a,_0xf31cc2]=_0x24034b;return _0x11ed40(_0x1f66a6),await _0x3e1d1a(_0x1f66a6,_0x55449a,_0xf31cc2),_0xe7ca47;}catch(_0x3f849d){return!0x1;}function _0x11ed40(_0xb377fc){const _0x3c72f8=_0x5cad44(_0xb377fc);_0x3c72f8&&_0x3c72f8[_0x5159dc([0x61,0x6c,0x67])]==_0x5159dc([0x45,0x53,0x32,0x35,0x36])||(_0xe7ca47=!0x1);}async function _0x3e1d1a(_0x300f20,_0x5bad8e,_0x5f412d){const _0x419650=window[_0x5159dc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5159dc([0x66,0x72,0x6f,0x6d])](_0x4f23d7(_0x5f412d),_0xc72867=>_0xc72867[_0x5159dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x110c37=new window[(_0x5159dc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5159dc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x300f20+_0x5159dc([0x2e])+_0x5bad8e),_0x4ef4a8=window[_0x5159dc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5159dc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ef4a8)return;const _0x49485e=await _0x4ef4a8[_0x5159dc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5159dc([0x6a,0x77,0x6b]),_0x3df4bd,{[_0x5159dc([0x6e,0x61,0x6d,0x65])]:_0x5159dc([0x45,0x43,0x44,0x53,0x41]),[_0x5159dc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5159dc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5159dc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ef4a8[_0x5159dc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5159dc([0x6e,0x61,0x6d,0x65])]:_0x5159dc([0x45,0x43,0x44,0x53,0x41]),[_0x5159dc([0x68,0x61,0x73,0x68])]:{[_0x5159dc([0x6e,0x61,0x6d,0x65])]:_0x5159dc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x49485e,_0x419650,_0x110c37)||(_0xe7ca47=!0x1);}}function _0x5cad44(_0x149c1b){return _0x149c1b[_0x5159dc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5159dc([0x65,0x79]))?JSON[_0x5159dc([0x70,0x61,0x72,0x73,0x65])](_0x4f23d7(_0x149c1b)):null;}function _0x4f23d7(_0x3dff34){return window[_0x5159dc([0x61,0x74,0x6f,0x62])](_0x3dff34[_0x5159dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5159dc([0x2b]))[_0x5159dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5159dc([0x2f])));}function _0x37c232(_0x448685){let _0x3cd783=0x1505;function _0x2fd4a6(_0xe33ffc){for(let _0x505c5e=0x0;_0x505c5e<_0xe33ffc[_0x5159dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x505c5e++){const _0x442d09=_0xe33ffc[_0x5159dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x505c5e);_0x3cd783=(_0x3cd783<<0x5)+_0x3cd783+_0x442d09,_0x3cd783&=_0x3cd783;}}function _0x311d90(_0x6babba){Array[_0x5159dc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x6babba)?_0x6babba[_0x5159dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x311d90):_0x6babba&&typeof _0x6babba==_0x5159dc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5159dc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x6babba)[_0x5159dc([0x73,0x6f,0x72,0x74])]()[_0x5159dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x447a5f,_0x149212])=>{_0x2fd4a6(_0x447a5f),_0x311d90(_0x149212);}):_0x2fd4a6(window[_0x5159dc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x6babba));}return _0x311d90(_0x448685),_0x3cd783>>>0x0;}function _0x18869c(_0x4a1df9){return _0x4a1df9[_0x5159dc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5159dc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5159dc([0x30]));}function _0x1ffc21(_0x8f689b){return _0x8f689b[_0x5159dc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5159dc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5159dc([0x6a,0x6f,0x69,0x6e])]('');}function _0x511ede(){}function _0x5159dc(_0x1bcb2d){return _0x1bcb2d['map'](_0x5ebf31=>String['fromCharCode'](_0x5ebf31))['join']('');}_0x304ccf(await _0x3c08b1());}(this);}['_initSchema'](){const _0x1e6bd9=this['editor']['model']['schema'];_0x1e6bd9['isRegistered']('imageBlock')&&_0x1e6bd9['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1e6bd9['isRegistered']('imageInline')&&_0x1e6bd9['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x266989=this['editor'];_0x266989['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x266989['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x40dabb=>_0x40dabb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1c70b0=_0x266989['commands']['get']('replaceImageSource');_0x1c70b0&&this['listenTo'](_0x1c70b0,'cleanupImage',(_0x1ffc11,[_0x2a99d6,_0x5867dc])=>{_0x2a99d6['removeAttribute']('uploadcareImageId',_0x5867dc);});}['_initConfig'](){const _0x11bd8e=this['editor']['config']['get']('uploadcare.uploader')||{},_0x43e368=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x25b06b(_0x45694b['document'],'uc-config',{..._0x11bd8e,'pubkey':_0x43e368,'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']=_0x547915=>{if('closeMax'==_0x547915)return'#uc-icon-arrow-down';},_0x45694b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x25b06b(_0x45694b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x45694b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x428999=this['editor']['commands']['get']('insertImage');_0x428999&&this['listenTo'](_0x428999,'execute',()=>{const _0x29b99a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x29b99a&&_0x29b99a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x29b99a);});});const _0x349553=this['editor']['commands']['get']('uploadcareImageReplace');_0x349553&&this['listenTo'](_0x349553,'execute',()=>{const _0x1bd1ec=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1bd1ec&&_0x1bd1ec['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1bd1ec);});});}}class u extends _0x158d9b{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44e9f7){super(_0x44e9f7),_0x44e9f7['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x4a97c4['defineComponents'](_0x4a97c4);}}class ta extends _0x153b72{constructor(_0x1006bf){super(_0x1006bf);const t=_0x1006bf['t'],_0x943efa=this['bindTemplate'],_0x7abbed=new _0x3e0c05();_0x7abbed['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':[_0x7abbed,{'text':_0x943efa['to']('imageUploadProgress',_0x4df966=>t('Loading\x20image...')+'\x20('+(_0x4df966||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 _0x153b72{constructor(_0x7b18f2){super(_0x7b18f2);const t=_0x7b18f2['t'];this['set']('errorType',null);const _0x514cdb=new _0x1d1f63(_0x7b18f2);_0x514cdb['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x514cdb['withText']=!0x0,_0x514cdb['class']='ck-button-action',_0x514cdb['on']('execute',()=>{this['fire']('retry');}),_0x514cdb['bind']('isVisible')['to'](this,'errorType',_0x1723f5=>'NotFound'!==_0x1723f5);const _0x3937b2=new at();_0x3937b2['content']=et,_0x3937b2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4263a8=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':[_0x3937b2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4263a8['to']('errorType',_0x1b6b0a=>t('NotFound'!==_0x1b6b0a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x514cdb]},{'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 _0x153b72{constructor(_0x2ffb21,_0x27b7e0){super(_0x2ffb21);const _0x1cc14c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x27b7e0,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1cc14c['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1ad50e,_0x50180c,_0x418c66){super(_0x1ad50e),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x1ad50e),this['_errorView']=new rt(_0x1ad50e),this['_editingView']=new tt(_0x1ad50e,_0x418c66),this['_focusableView']=new _0x153b72(_0x1ad50e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x50180c),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'],_0x1129bb=>{this['_addUploadcareImageEditorListeners'](_0x1129bb);});}),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'](_0x10a1ff,_0x446b3c){const _0x572e31='uc-cloud-image-editor',_0x26dae6=_0x10a1ff['querySelector'](_0x572e31);if(_0x26dae6)return _0x446b3c(_0x26dae6);const _0x3a1333=new MutationObserver(_0x4af269=>{const _0x46afbf=_0x4af269['filter'](_0x338a62=>_0x338a62['target']===_0x10a1ff&&_0x338a62['addedNodes']['length']>0x0&&_0x338a62['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x572e31);_0x46afbf['length']&&(_0x3a1333['disconnect'](),_0x446b3c(_0x46afbf[0x0]['addedNodes'][0x0]));});_0x3a1333['observe'](_0x10a1ff,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5a960a){_0x5a960a['addEventListener']('apply',_0x1da179=>{this['fire']('apply',{'imageSrc':_0x1da179['detail']['cdnUrl']});}),_0x5a960a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x23db6a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x465e6f,_0x4bbf83,_0x58f185){super(),this['_editor']=_0x465e6f,this['_dialog']=_0x4bbf83,this['_imageElement']=_0x58f185,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 _0x1c04b0=this['_imageElement'],_0xb4a389=_0x1c04b0['getAttribute']('uploadcareImageId'),_0xb372df=_0x1c04b0['getAttribute']('src');if(_0xb4a389)await this['_loadImageInfo'](_0xb4a389,_0xb372df);else{if(this['_imageCache']['has'](_0xb372df)){const _0x33e062=this['_imageCache']['get'](_0xb372df);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33e062['url'],this['imageDimension']=_0x33e062['dimension'],this['imageId']=_0x33e062['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1de32a}=this['_editor'],t=_0x1de32a['t'],_0x24b3f0=new Z(_0x1de32a,this['imageStatus'],this['_attributes']);_0x24b3f0['bind']('status')['to'](this,'imageStatus'),_0x24b3f0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x24b3f0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x24b3f0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x24b3f0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x394570,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x24b3f0,'position':_0x39ac5e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x24b3f0['focus']();},'onHide':()=>{_0x24b3f0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1b8e74=>!F(_0x1b8e74,_0x24b3f0['element'])}});}['_loadImageInfo'](_0x130cce,_0x12d7c7){return C['getInfo'](_0x130cce,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x40295b=>{const {width:_0x33468e,height:_0x290790}=_0x40295b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x12d7c7,this['imageDimension']={'width':_0x33468e,'height':_0x290790},this['imageId']=_0x130cce;})['catch'](_0x46e53b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x46e53b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3d66bd,_0x36b253){return this['_getImageAsFile'](_0x3d66bd)['then'](_0x483971=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x36b253['signal'],'file':_0x483971,'onProgress':_0x2e075a=>{_0x2e075a&&_0x2e075a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2e075a['value']));}}))['then'](_0x4c707b=>{const {width:_0x17786c,height:_0x5d13db}=_0x4c707b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c707b['cdnUrl'],this['imageDimension']={'width':_0x17786c,'height':_0x5d13db},this['imageId']=_0x4c707b['uuid'],this['imageUploadProgress']=null;const _0x251f1b=_0x3d66bd['getAttribute']('src');this['_imageCache']['set'](_0x251f1b,{'id':_0x4c707b['uuid'],'url':_0x4c707b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3684f5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3684f5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2c7c90,_0x480e72){_0x2c7c90['on']('apply',(_0x2821ea,_0x201961)=>{this['_replaceImage'](_0x480e72,_0x201961['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2c7c90['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2c7c90['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4d7d0a,_0x181c02,_0x58686a){const _0x197112=this['_editor'],{width:_0x571be8,height:_0x5effe0}=A(_0x181c02,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x519073,imageSources:_0x587cda}=E(_0x181c02,_0x571be8);_0x197112['model']['change'](_0x1a825a=>{if('$graveyard'===_0x4d7d0a['root']['rootName']){_0x197112['execute']('insertImage',{'imageType':_0x4d7d0a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4d7d0a['getAttributes']()),'uploadcareImageId':_0x58686a,'src':_0x519073,'sources':_0x587cda,'width':_0x571be8,'height':_0x5effe0}});const _0x4046d8=_0x4d7d0a['getChildren']();_0x4d7d0a=_0x197112['model']['document']['selection']['getSelectedElement']();for(const _0x5a4c75 of _0x4046d8)_0x1a825a['append'](_0x1a825a['cloneElement'](_0x5a4c75),_0x4d7d0a);}else _0x1a825a['setSelection'](_0x4d7d0a,'on'),_0x197112['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4d7d0a['getAttributes']()),'uploadcareImageId':_0x58686a,'src':_0x519073,'sources':_0x587cda,'width':_0x571be8,'height':_0x5effe0},_0x4d7d0a);_0x1a825a['setSelection'](_0x4d7d0a,'on');});}async['_getImageAsFile'](_0x5eee3a){const _0x3a7bf1=_0x45694b['window'],_0x380fa8=_0x45694b['document']['location']['href'],_0xd90b36=new _0x3a7bf1['URL'](_0x5eee3a['getAttribute']('src'),_0x380fa8);if('data:'===_0xd90b36['protocol']){const _0x42c58a=_0xd90b36['href']['split'](','),_0x51bde6=_0x42c58a[0x0]['match'](/:(.*?);/)[0x1],_0x530bd7=_0x51bde6['split']('/')[0x1],_0x2f0717=_0x3a7bf1['atob'](_0x42c58a[_0x42c58a['length']-0x1]);let _0x5b0381=_0x2f0717['length'];const _0x54e30c=new _0x3a7bf1['Uint8Array'](_0x5b0381);for(;_0x5b0381--;)_0x54e30c[_0x5b0381]=_0x2f0717['charCodeAt'](_0x5b0381);return new _0x3a7bf1['File']([_0x54e30c],'image.'+_0x530bd7,{'type':_0x51bde6});}const _0x46be78=_0xd90b36['href']['split']('/'),_0x42b662=_0x46be78[_0x46be78['length']-0x1],_0x33a169=_0x42b662['split']('.')[0x1];return _0x3a7bf1['fetch'](_0xd90b36['href'])['then'](_0x558723=>_0x558723['clone']()['blob']())['then'](_0x579c01=>new _0x3a7bf1['File']([_0x579c01],_0x42b662,{'type':'image/'+_0x33a169}));}}class J extends _0x4b83f0{['imageEditController'];static get['requires'](){return[_0x3e29b2];}['_isEditable'];constructor(_0x23545c){super(_0x23545c),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x453e1d){const _0x9a2e46=V(_0x453e1d);return _0xa2162f=>!(!_0xa2162f||!_0xa2162f['is']('element','imageBlock')&&!_0xa2162f['is']('element','imageInline'))&&(!!_0xa2162f['hasAttribute']('uploadcareImageId')||!!_0xa2162f['hasAttribute']('src')&&_0x9a2e46(_0xa2162f['getAttribute']('src')));}(_0x23545c['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3db3b7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3db3b7);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x212ae8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x212ae8&&(_0x212ae8['is']('element','imageBlock')||_0x212ae8['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3e29b2),_0x212ae8),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x4b83f0{['refresh'](){const _0x2ef30e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2ef30e&&(_0x2ef30e['is']('element','imageBlock')||_0x2ef30e['is']('element','imageInline')));}['execute'](_0x4f9337){const _0x1446e0=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x12c135=>{_0x12c135['setAttributes'](_0x4f9337,_0x1446e0),_0x12c135['removeAttribute']('srcset',_0x1446e0),_0x12c135['removeAttribute']('sizes',_0x1446e0);});}}class g extends _0x158d9b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x8e730,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x29b0d5}=this;_0x29b0d5['commands']['add']('uploadcareImageEdit',new J(_0x29b0d5)),_0x29b0d5['commands']['add']('uploadcareImageReplace',new O(_0x29b0d5));}}class j extends _0x158d9b{['_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 _0x355227=this['editor'];_0x355227['ui']['componentFactory']['add']('uploadcareImageEdit',_0x6534fb=>{const _0x3f69c1=_0x355227['commands']['get']('uploadcareImageEdit'),_0x4235c1=new _0x1d1f63(_0x6534fb),t=_0x6534fb['t'];return _0x4235c1['set']({'icon':_0x394570,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4235c1['bind']('isEnabled')['to'](_0x3f69c1),_0x4235c1['bind']('isOn')['to'](_0x3f69c1,'isActive'),this['listenTo'](_0x4235c1,'execute',()=>{_0x355227['execute']('uploadcareImageEdit'),_0x355227['editing']['view']['focus']();}),_0x4235c1;}),this['_initConfig']();}['_initConfig'](){const _0xc8c403=_0x25b06b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xc8c403),this['listenTo'](this['editor'],'destroy',()=>{_0xc8c403['remove']();});}}class P extends _0x158d9b{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 _0x2d0d04,Command as _0x482f89}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2684bb,IconGooglePhotos as _0x3bf636,IconGoogleDrive as _0x4d74a4,IconFacebook as _0x52f0e0,IconDropbox as _0x59c471,IconUploadcareLink as _0x441f84,IconUploadcareImageUpload as _0xee346e,IconError as et,IconUploadcareImageEdit as _0x38d088}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x298306,MenuBarMenuListItemButtonView as _0x9d2b94,View as _0x31ac5d,FocusCycler as _0x585f64,Dialog as _0xdafa55,DialogViewPosition as _0x11a9d9,SpinnerView as _0xcf85d3,IconView as at,Notification as _0x592cda}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x493268,DomEmitterMixin as _0x1159f5,global as _0x825d17,getAncestors as _0x165387,ObservableMixin as _0x5e0200,createElement as _0x297852,uid as _0x17ea59}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3cbcc8}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x31290c,info as _0x4e8763}from'@uploadcare/upload-client';import*as _0x3e43e8 from'@uploadcare/file-uploader';var o=function(_0x171b5e){return _0x171b5e['Local']='local',_0x171b5e['URL']='url',_0x171b5e['Dropbox']='dropbox',_0x171b5e['GDrive']='gdrive',_0x171b5e['Facebook']='facebook',_0x171b5e['GPhotos']='gphotos',_0x171b5e['OneDrive']='onedrive',_0x171b5e;}({});function _(_0x2fa87a,_0x381cb4,_0x746aff){const t=_0x2fa87a['t'],_0x249a04=_0x2fa87a['t'];switch(_0x381cb4){case o['Local']:return{'text':_0x249a04('Insert'===_0x746aff?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x249a04('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x746aff?_0x249a04('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x249a04('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x746aff?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x746aff?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x746aff?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x746aff?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x746aff?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x381cb4;}}class e extends _0x2d0d04{['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 _0x5d94e1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ca6bd;for(const _0x3b112d in _0x5d94e1){const _0x47fa05=_0x3b112d,_0xd2c3c8=_0x5d94e1[_0x47fa05];if('uploadcareLicenseKeyValid'==_0xd2c3c8||'uploadcareLicenseKeyInvalid'==_0xd2c3c8||'uploadcareLicenseKeyExpired'==_0xd2c3c8||'uploadcareLicenseKeyDomainLimit'==_0xd2c3c8||'uploadcareLicenseKeyNotAllowed'==_0xd2c3c8||'uploadcareLicenseKeyEvaluationLimit'==_0xd2c3c8||'uploadcareLicenseKeyTrialLimit'==_0xd2c3c8||'uploadcareLicenseKeyUsageLimit'==_0xd2c3c8){delete _0x5d94e1[_0x47fa05],_0x1ca6bd=_0xd2c3c8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1ca6bd&&_0x5d94e1['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1ca6bd&&_0x5d94e1['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1ca6bd&&_0x5d94e1['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1ca6bd&&_0x5d94e1['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1ca6bd&&_0x5d94e1['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1ca6bd&&_0x5d94e1['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1ca6bd&&_0x5d94e1['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1dd09f}=this,_0x4eaee8=_0x1dd09f['commands']['get']('uploadcare');if(!_0x4eaee8)return;const _0x18cec9=this['_normalizeConfigSourceList'](_0x1dd09f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x23afe3,_0x359e21)=>{const _0x5f1c24=this['_getIntegrationKey'](_0x359e21['type']);return _0x23afe3[_0x5f1c24]||(_0x23afe3[_0x5f1c24]=[]),_0x23afe3[_0x5f1c24]['push'](_0x359e21),_0x23afe3;},{});_0x1dd09f['plugins']['has']('ImageInsertUI')&&_0x1dd09f['commands']['get']('uploadcare')&&Object['entries'](_0x18cec9)['forEach'](([_0x43f7e5,_0x4f3175])=>{_0x1dd09f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x43f7e5,'observable':()=>_0x4eaee8,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4f3175),'formViewCreator':()=>this['_createDropdownButtons'](_0x4f3175),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4f3175),'override':'assetManager'!==_0x43f7e5});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x490d23){const {locale:_0x1627b8}=this['editor'];return _0x490d23['map'](_0x15415d=>{const _0x21627a=_(_0x1627b8,_0x15415d,'Insert');switch(_0x15415d){case o['Local']:return{'icon':_0xee346e,'type':o['Local'],..._0x21627a};case o['URL']:return{'icon':_0x441f84,'type':o['URL'],..._0x21627a};case o['Dropbox']:return{'icon':_0x59c471,'type':o['Dropbox'],..._0x21627a};case o['Facebook']:return{'icon':_0x52f0e0,'type':o['Facebook'],..._0x21627a};case o['GDrive']:return{'icon':_0x4d74a4,'type':o['GDrive'],..._0x21627a};case o['GPhotos']:return{'icon':_0x3bf636,'type':o['GPhotos'],..._0x21627a};case o['OneDrive']:return{'icon':_0x2684bb,'type':o['OneDrive'],..._0x21627a};}});}['_getIntegrationKey'](_0x4b1e38){switch(_0x4b1e38){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xb48b16,_0x375bfc){const _0x541556=this['editor'],_0x25f882=new _0xb48b16(_0x541556['locale']),_0x5646b4=_0x541556['commands']['get']('uploadcare');return _0x25f882['bind']('isEnabled')['to'](_0x5646b4),_0x25f882['on']('execute',()=>{_0x5646b4['execute'](_0x375bfc);}),_0x25f882;}['_createToolbarButton'](_0x3b342c){const {locale:_0x2fc748}=this['editor'],_0x14ae1f=this['editor']['plugins']['get']('ImageInsertUI'),_0x38d7ff=_0x3b342c[0x0],_0x51ea06=this['_createButton'](_0x298306,_0x38d7ff['type']);return _0x51ea06['icon']=_0x38d7ff['icon'],_0x51ea06['bind']('label')['to'](_0x14ae1f,'isImageSelected',_0x4a2ad5=>_(_0x2fc748,_0x38d7ff['type'],_0x4a2ad5?'Replace':'Insert')['text']),_0x51ea06['tooltip']=!0x0,_0x51ea06;}['_createDropdownButtons'](_0x137c2d){const {locale:_0x3e6bc7}=this['editor'],_0x43f612=this['editor']['plugins']['get']('ImageInsertUI');return _0x137c2d['map'](_0x35d28b=>{const _0x328739=this['_createButton'](_0x298306,_0x35d28b['type']);return _0x328739['withText']=!0x0,_0x328739['icon']=_0x35d28b['icon'],_0x328739['bind']('label')['to'](_0x43f612,'isImageSelected',_0x469c45=>_(_0x3e6bc7,_0x35d28b['type'],_0x469c45?'Replace':'Insert')['text']),_0x328739;});}['_createMenuBarButtons'](_0x1c325b){return _0x1c325b['map'](_0x4de18c=>{const _0x3ecd06=this['_createButton'](_0x9d2b94,_0x4de18c['type']);return _0x3ecd06['icon']=_0x4de18c['icon'],_0x3ecd06['label']=_0x4de18c['shortText'],_0x3ecd06;});}}class q extends _0x31ac5d{['focusTracker'];['focusCycler'];constructor(_0x948d77){super(_0x948d77),this['focusTracker']=new _0x493268(),this['focusCycler']=new _0x585f64({'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(_0xb6d6dc){super(_0xb6d6dc),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(_0x5e54b2,_0x3a5401){const _0x2d83ab=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x38242f=>_0x38242f<=_0x3a5401)['map'](_0x4f4909=>_0x5e54b2['replace'](/\/$/,'')+'/-/resize/'+_0x4f4909+'x/\x20'+_0x4f4909+'w');return{'imageFallbackUrl':_0x5e54b2,'imageSources':[{'srcset':_0x2d83ab['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3a5401+'px)\x20100vw,\x20'+_0x3a5401+'px','type':'image/webp'}]};}function A(_0x31269f,_0x29046d,_0x1fbead){const _0x2a3c07=_0x31269f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2a3c07?parseInt(_0x2a3c07[0x1],0xa):_0x29046d,'height':_0x2a3c07?parseInt(_0x2a3c07[0x2],0xa):_0x1fbead};}function m(_0x290f18,_0x4532dd){const _0x3b1af9=Object['create'](_0x1159f5),_0x3a21e7=_0x290f18['plugins']['get']('ImageUtils'),_0x2a8be7=_0x290f18['editing']['mapper']['toViewElement'](_0x4532dd),_0x1eaeab=_0x3a21e7['findViewImgElement'](_0x2a8be7),_0xe66bab=_0x290f18['editing']['view']['domConverter']['viewToDom'](_0x1eaeab),_0x217cb0=_0x4532dd['getAttribute']('width'),_0x29f338=_0x4532dd['getAttribute']('height'),_0x5db1a4='image-processing';_0x290f18['editing']['view']['change'](_0xac54c7=>{_0xac54c7['addClass'](_0x5db1a4,_0x2a8be7),_0xac54c7['setStyle']('aspect-ratio',_0x217cb0+'/'+_0x29f338,_0x1eaeab);}),_0x3b1af9['listenTo'](_0xe66bab,'load',()=>{_0x3b1af9['stopListening'](_0xe66bab,'load'),_0x290f18['editing']['view']['change'](_0x13e364=>{_0x13e364['removeClass'](_0x5db1a4,_0x2a8be7),_0x13e364['removeStyle']('aspect-ratio',_0x1eaeab);});});}function V(_0x2cf449){if(Array['isArray'](_0x2cf449)){const _0x41d281=_0x2cf449['map'](V);return _0x21fd31=>_0x41d281['some'](_0x9a1521=>_0x9a1521(_0x21fd31));}if('origin'==_0x2cf449){const _0x2ef9d7=_0x825d17['window']['location']['origin'];return _0x5552bf=>new URL(_0x5552bf,_0x825d17['document']['baseURI'])['origin']==_0x2ef9d7;}return'function'==typeof _0x2cf449?_0x2cf449:_0x2cf449 instanceof RegExp?_0x17b20e=>!(!_0x17b20e['match'](_0x2cf449)&&!_0x17b20e['replace'](/^https?:\/\//,'')['match'](_0x2cf449)):()=>!0x1;}function F(_0x4e281b,_0x44721f){return _0x165387(_0x4e281b['target'])['includes'](_0x44721f);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5e0200(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x31690b,_0x54b3eb,_0x1884cc){super(),this['_editor']=_0x31690b,this['_editing']=_0x54b3eb,this['_dialog']=_0x31690b['plugins']['get'](_0xdafa55),this['_api']=_0x54b3eb['ctxElement']['getAPI'](),this['_type']=_0x1884cc,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:_0x3249f7,model:_0x4075c7}=this['_editor'],_0x221230=_0x4075c7['document']['selection']['getSelectedElement'](),_0x53c1b8=_0x221230&&(_0x221230['is']('element','imageBlock')||_0x221230['is']('element','imageInline'));this['_formView']=new S(_0x3249f7),this['_dialog']['show']({'id':'uploadCare','icon':_0xee346e,'title':_(_0x3249f7,this['_type'],_0x53c1b8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x11a9d9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1744cc=>!F(_0x1744cc,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xdc61f1}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x65124e=>{const _0x4d0cce=_0xdc61f1['length'];for(const _0x25db15 of _0xdc61f1){const _0xf8a961=_0x25db15===_0xdc61f1[_0x4d0cce-0x1],{cdnUrl:_0xe0a462,fileInfo:_0x4db9d2}=_0x25db15;if(!_0xe0a462||!_0x4db9d2)continue;const {width:_0xbe1e06,height:_0x4bb74e}=_0x4db9d2['imageInfo'],_0x5e8687=A(_0xe0a462,_0xbe1e06,_0x4bb74e),_0x4411c7=E(_0xe0a462,_0x5e8687['width']),_0x272920={'id':_0x4db9d2['uuid'],'type':'image','attributes':{'imageDimension':_0x5e8687,..._0x4411c7}};this['_insertAsset'](_0x272920,_0xf8a961,_0x65124e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x902a50=>{'idle'===_0x902a50['detail']['status']&&!_0x902a50['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x217344,_0x722f05,_0x2831d3){const _0x24aa02=this['_editor']['model']['document']['selection'],_0x57f31b=_0x24aa02['getSelectedElement'](),_0x1ce556=!(!_0x57f31b||!_0x57f31b['is']('element','imageInline'));_0x2831d3['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x217344,_0x1ce556),_0x722f05||_0x2831d3['setSelection'](_0x24aa02['getLastPosition']());}['_insertImage'](_0x1e8717,_0x23d76e){const _0x2596de=this['_editor'],{imageDimension:_0x2f017a,imageFallbackUrl:_0x43d96f,imageSources:_0x2f23b9}=_0x1e8717['attributes'];_0x2596de['execute']('insertImage',{'imageType':_0x23d76e?'imageInline':null,'source':{'uploadcareImageId':_0x1e8717['id'],'src':_0x43d96f,'sources':_0x2f23b9,..._0x2f017a}});}}class n extends _0x482f89{['_editing'];['_controller']=null;static get['requires'](){return[_0xdafa55,i];}constructor(_0x304946){super(_0x304946),this['_editing']=_0x304946['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1f9c2c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1f9c2c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x10876d,publicKey:_0x3f9884,signal:_0x46a5f3,onProgress:_0x36cd5c}){return _0x31290c(_0x10876d,{'publicKey':_0x3f9884,'store':'auto','signal':_0x46a5f3,'onProgress':_0x36cd5c});}static['getInfo'](_0x32332e,_0x56611a){return _0x4e8763(_0x32332e,_0x56611a);}}class p extends _0x2d0d04{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3cbcc8,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xe8911c=this['editor'];if(!!!_0xe8911c['config']['get']('uploadcare'))return;_0xe8911c['plugins']['get'](_0x3cbcc8)['createUploadAdapter']=_0x258fe1=>new x(_0x258fe1,_0xe8911c),_0xe8911c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x59b11c,{imageElement:_0x1bb98d,data:_0x56d7e5})=>{_0xe8911c['model']['change'](_0x4d2d06=>{_0x4d2d06['setAttribute']('uploadcareImageId',_0x56d7e5['uploadcareImageId'],_0x1bb98d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x492754,_0x14fb55){this['loader']=_0x492754,this['editor']=_0x14fb55,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x16a00b=this['editor']['config']['get']('uploadcare.pubkey'),_0x432bf1=await this['loader']['file'];return C['upload']({'file':_0x432bf1,'publicKey':_0x16a00b,'signal':this['controller']['signal'],'onProgress':_0x11bcf1=>{_0x11bcf1&&_0x11bcf1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x11bcf1['value']);}})['then'](async _0x50c8a5=>{const {imageFallbackUrl:_0x276f58,imageSources:_0x5d2294}=E(_0x50c8a5['cdnUrl'],_0x50c8a5['imageInfo']['width']);return{'uploadcareImageId':_0x50c8a5['uuid'],'default':_0x276f58,'sources':_0x5d2294};})['catch'](()=>{const _0x258d6d=t('Cannot\x20upload\x20file:')+('\x20'+_0x432bf1['name']+'.');return Promise['reject'](_0x258d6d);});}['abort'](){this['controller']['abort']();}}class i extends _0x2d0d04{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0xdafa55];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x4efcea=this['editor'];_0x4efcea['commands']['add']('uploadcare',new n(_0x4efcea));}['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 _0x48aec=_0x825d17['document']['querySelector']('input[uploadcare-file-input]');_0x48aec&&_0x48aec['remove']();}),async function(_0x17d0d7){const _0x544328=_0x10e421([0x6e,0x42,0x50,0x44,0x39,0x30,0x65,0x63,0x6f,0x62,0x35,0x4e,0x73,0x45,0x77,0x4f,0x7a,0x47,0x66,0x56,0x52,0x38,0x41,0x4b,0x71,0x70,0x31,0x51,0x57,0x36,0x61,0x6c,0x6a,0x49,0x76,0x68,0x72,0x59,0x43,0x4d,0x79,0x54,0x75,0x37,0x4c,0x34,0x64,0x67,0x33,0x5a,0x74,0x32,0x53,0x48,0x46,0x78,0x6d,0x58,0x69,0x6b,0x55,0x4a]),_0x2b9fb9=0x6a1e7200,_0x500d2d=0x6a1916d0^_0x2b9fb9,_0x22c0dd=window[_0x10e421([0x44,0x61,0x74,0x65])][_0x10e421([0x6e,0x6f,0x77])](),_0x209a0a=_0x17d0d7[_0x10e421([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x38e89f=new window[(_0x10e421([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c7def=>{_0x209a0a[_0x10e421([0x6f,0x6e,0x63,0x65])](_0x10e421([0x72,0x65,0x61,0x64,0x79]),_0x5c7def);}),_0x3907d5={[_0x10e421([0x6b,0x74,0x79])]:_0x10e421([0x45,0x43]),[_0x10e421([0x75,0x73,0x65])]:_0x10e421([0x73,0x69,0x67]),[_0x10e421([0x63,0x72,0x76])]:_0x10e421([0x50,0x2d,0x32,0x35,0x36]),[_0x10e421([0x78])]:_0x10e421([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]),[_0x10e421([0x79])]:_0x10e421([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]),[_0x10e421([0x61,0x6c,0x67])]:_0x10e421([0x45,0x53,0x32,0x35,0x36])},_0x2dcdce=_0x209a0a[_0x10e421([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x10e421([0x67,0x65,0x74])](_0x10e421([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4d680e(){let _0x4c1fac,_0x480ec8=null,_0x54418a=null;try{if(_0x2dcdce==_0x10e421([0x47,0x50,0x4c]))return _0x10e421([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c1fac=_0x5a0d88(),!_0x4c1fac)return _0x10e421([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c1fac[_0x10e421([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x54418a=_0xac012b(_0x4c1fac[_0x10e421([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c1fac[_0x10e421([0x6a,0x74,0x69])])),await _0x57ac5a()?_0x5463ce()?_0x5e6334()?_0x10e421([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b4fad()?(_0x4c1fac[_0x10e421([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10e421([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x480ec8=_0x1bfd1b(_0x10e421([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c1fac[_0x10e421([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10e421([0x74,0x72,0x69,0x61,0x6c])&&(_0x480ec8=_0x1bfd1b(_0x10e421([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c069b()):_0x10e421([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x10e421([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x10e421([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1c1086){return _0x10e421([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5e6334(){const _0x29c2f1=[_0x10e421([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x10e421([0x74,0x72,0x69,0x61,0x6c])][_0x10e421([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c1fac[_0x10e421([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x22c0dd/0x3e8:0xe10*_0x500d2d;return _0x4c1fac[_0x10e421([0x65,0x78,0x70])]<_0x29c2f1;}function _0x5463ce(){const _0xa6b7c0=_0x4c1fac[_0x10e421([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa6b7c0&&(!!_0xa6b7c0[_0x10e421([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10e421([0x2a]))||!!_0xa6b7c0[_0x10e421([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10e421([0x55,0x50,0x4c,0x43])));}function _0x2b4fad(){const _0x3d6ecd=_0x4c1fac[_0x10e421([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d6ecd||0x0==_0x3d6ecd[_0x10e421([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ce600}=new URL(window[_0x10e421([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d6ecd[_0x10e421([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ce600))return!0x0;const _0x41e890=_0x3ce600[_0x10e421([0x73,0x70,0x6c,0x69,0x74])](_0x10e421([0x2e]));return _0x3d6ecd[_0x10e421([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30aad3=>_0x30aad3[_0x10e421([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10e421([0x2a])))[_0x10e421([0x6d,0x61,0x70])](_0x53874a=>_0x53874a[_0x10e421([0x73,0x70,0x6c,0x69,0x74])](_0x10e421([0x2e])))[_0x10e421([0x73,0x6f,0x6d,0x65])](_0x343e5a=>_0x41e890[_0x10e421([0x65,0x76,0x65,0x72,0x79])]((_0x187252,_0x4b42f0)=>_0x343e5a[_0x4b42f0]===_0x187252||_0x343e5a[_0x4b42f0]===_0x10e421([0x2a])));}function _0x5c069b(){return _0x480ec8&&_0x54418a?new window[(_0x10e421([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36d02f,_0xe28392)=>{_0x480ec8[_0x10e421([0x74,0x68,0x65,0x6e])](_0x36d02f,_0xe28392),_0x54418a[_0x10e421([0x74,0x68,0x65,0x6e])](_0x24b56b=>{_0x24b56b!=_0x10e421([0x56,0x61,0x6c,0x69,0x64])&&_0x36d02f(_0x24b56b);},_0xe28392);}):_0x480ec8||_0x54418a||_0x10e421([0x56,0x61,0x6c,0x69,0x64]);}}function _0xac012b(_0x3c3081,_0x1ff1fd){return new window[(_0x10e421([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fc320=>{if(_0x480782())return _0x1fc320(_0x10e421([0x56,0x61,0x6c,0x69,0x64]));_0x124072(),_0x209a0a[_0x10e421([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x10e421([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42a58b=!0x1;const _0x3ae835=_0x17ea59();function _0xb233d8(_0x16ebfb){return!!_0x16ebfb&&(typeof _0x16ebfb===_0x10e421([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x16ebfb===_0x10e421([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x16ebfb[_0x10e421([0x74,0x68,0x65,0x6e])]===_0x10e421([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x16ebfb[_0x10e421([0x63,0x61,0x74,0x63,0x68])]===_0x10e421([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xb92ff2(_0x50da6f){_0x275cc5(_0x50da6f)[_0x10e421([0x74,0x68,0x65,0x6e])](_0x32d6dc=>{if(!_0x32d6dc||_0x32d6dc[_0x10e421([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x10e421([0x6f,0x6b]))return _0x10e421([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c48c6(_0x564b1b(_0x3ae835+_0x1ff1fd))!=_0x32d6dc[_0x10e421([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x10e421([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x10e421([0x56,0x61,0x6c,0x69,0x64]);})[_0x10e421([0x74,0x68,0x65,0x6e])](_0x1341d7=>(_0xd8c940(),_0x1341d7),()=>{const _0x29b280=_0x38ba9a();return null==_0x29b280?(_0xd8c940(),_0x10e421([0x56,0x61,0x6c,0x69,0x64])):_0x10e421(_0x22c0dd-_0x29b280>(0x4e12f600^_0x2b9fb9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x10e421([0x74,0x68,0x65,0x6e])](_0x1fc320)[_0x10e421([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1fc320(_0x10e421([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x546581=0x6a289c80^_0x2b9fb9;function _0xd8c940(){const _0x73cf3b=_0x10e421([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c48c6(_0x564b1b(_0x3c3081)),_0x125e88=_0x4e797a(_0x4c48c6(window[_0x10e421([0x4d,0x61,0x74,0x68])][_0x10e421([0x63,0x65,0x69,0x6c])](_0x22c0dd/_0x546581)));window[_0x10e421([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10e421([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x73cf3b,_0x125e88);}function _0x38ba9a(){const _0x2b51ab=_0x10e421([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c48c6(_0x564b1b(_0x3c3081)),_0x29908d=window[_0x10e421([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10e421([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b51ab);return _0x29908d?window[_0x10e421([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e797a(_0x29908d),0x10)*_0x546581:null;}function _0x275cc5(_0x263e56){return new window[(_0x10e421([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x532649,_0x13ec6f)=>{_0x263e56[_0x10e421([0x74,0x68,0x65,0x6e])](_0x532649,_0x13ec6f),window[_0x10e421([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x13ec6f,0x6a1fa6c0^_0x2b9fb9);});}}_0x209a0a[_0x10e421([0x6f,0x6e])](_0x10e421([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f2d08,_0x4c19fe)=>{if(_0x4c19fe[0x0]!=_0x3c3081)return _0x1fc320(_0x10e421([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c19fe[0x1]={..._0x4c19fe[0x1],[_0x10e421([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ae835};},{[_0x10e421([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10e421([0x68,0x69,0x67,0x68])}),_0x209a0a[_0x10e421([0x6f,0x6e])](_0x10e421([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b670b=>{_0xb233d8(_0x3b670b[_0x10e421([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42a58b=!0x0,_0xb92ff2(_0x3b670b[_0x10e421([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x10e421([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10e421([0x6c,0x6f,0x77])}),_0x38e89f[_0x10e421([0x74,0x68,0x65,0x6e])](()=>{_0x42a58b||_0x1fc320(_0x10e421([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x480782(){return _0x209a0a[_0x10e421([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10e421([0x76,0x69,0x65,0x77])][_0x10e421([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x10e421([0x61,0x75,0x74,0x6f]);}function _0x124072(){_0x209a0a[_0x10e421([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10e421([0x76,0x69,0x65,0x77])][_0x10e421([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10e421([0x61,0x75,0x74,0x6f]);}}function _0x1bfd1b(_0x9476c0){const _0x2117e3=[new window[(_0x10e421([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1208d7=>setTimeout(_0x1208d7,0x6a174ccc^_0x2b9fb9)),_0x38e89f[_0x10e421([0x74,0x68,0x65,0x6e])](()=>new window[(_0x10e421([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44d540=>{let _0x66f6=0x0;_0x209a0a[_0x10e421([0x6d,0x6f,0x64,0x65,0x6c])][_0x10e421([0x6f,0x6e])](_0x10e421([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2348e0,_0x1f02a9)=>{_0x1f02a9[0x0][_0x10e421([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x66f6++,_0x66f6==(0x6a1e73f8^_0x2b9fb9)&&(_0x44d540(),_0x2348e0[_0x10e421([0x6f,0x66,0x66])]());});}))];return window[_0x10e421([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10e421([0x72,0x61,0x63,0x65])](_0x2117e3)[_0x10e421([0x74,0x68,0x65,0x6e])](()=>_0x9476c0);}async function _0x49e083(){await _0x38e89f,_0x209a0a[_0x10e421([0x6d,0x6f,0x64,0x65,0x6c])][_0x10e421([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5e6f2a,_0x209a0a[_0x10e421([0x6d,0x6f,0x64,0x65,0x6c])][_0x10e421([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5e6f2a,_0x209a0a[_0x10e421([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x10e421([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x40094e(_0x102b60){const _0x29ed33=_0x22b959();_0x209a0a[_0x29ed33]=_0x10e421([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x102b60,_0x102b60!=_0x10e421([0x56,0x61,0x6c,0x69,0x64])&&_0x49e083();}function _0x22b959(){const _0x418690=window[_0x10e421([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x10e421([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x10e421([0x6e,0x6f,0x77])]())[_0x10e421([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x10e421([0x2e]),'');let _0x44f3b5=_0x10e421([0x6e]);for(let _0x3ab277=0x0;_0x3ab277<_0x418690[_0x10e421([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ab277+=0x2){let _0x20680d=window[_0x10e421([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x418690[_0x10e421([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ab277,_0x3ab277+0x2));_0x20680d>=_0x544328[_0x10e421([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x20680d-=_0x544328[_0x10e421([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x44f3b5+=_0x544328[_0x20680d];}return _0x44f3b5;}function _0x5a0d88(){const _0x2e7ae6=_0x2dcdce[_0x10e421([0x73,0x70,0x6c,0x69,0x74])](_0x10e421([0x2e]));if(0x3!=_0x2e7ae6[_0x10e421([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2172ae(_0x2e7ae6[0x1]);function _0x2172ae(_0x459449){const _0x4dd857=_0x345355(_0x459449);return _0x4dd857&&_0x22a78a()?_0x4dd857:null;function _0x22a78a(){const _0x3d0e22=_0x4dd857[_0x10e421([0x6a,0x74,0x69])],_0x51d9a2=window[_0x10e421([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d0e22[_0x10e421([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d0e22[_0x10e421([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16405c={..._0x4dd857,[_0x10e421([0x6a,0x74,0x69])]:_0x3d0e22[_0x10e421([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3d0e22[_0x10e421([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16405c[_0x10e421([0x76,0x63])],_0x564b1b(_0x16405c)==_0x51d9a2;}}}async function _0x57ac5a(){let _0x4826b8=!0x0;try{const _0x8b685d=_0x2dcdce[_0x10e421([0x73,0x70,0x6c,0x69,0x74])](_0x10e421([0x2e])),[_0x366d09,_0x34fcae,_0x24073d]=_0x8b685d;return _0x4bee1a(_0x366d09),await _0x528a5b(_0x366d09,_0x34fcae,_0x24073d),_0x4826b8;}catch(_0x4024d1){return!0x1;}function _0x4bee1a(_0x23af23){const _0x462b67=_0x345355(_0x23af23);_0x462b67&&_0x462b67[_0x10e421([0x61,0x6c,0x67])]==_0x10e421([0x45,0x53,0x32,0x35,0x36])||(_0x4826b8=!0x1);}async function _0x528a5b(_0x239973,_0x122ae6,_0x39cfe7){const _0x286978=window[_0x10e421([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x10e421([0x66,0x72,0x6f,0x6d])](_0x19a852(_0x39cfe7),_0x4679d9=>_0x4679d9[_0x10e421([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e33a3=new window[(_0x10e421([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x10e421([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x239973+_0x10e421([0x2e])+_0x122ae6),_0x5785a4=window[_0x10e421([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x10e421([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5785a4)return;const _0x34c389=await _0x5785a4[_0x10e421([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x10e421([0x6a,0x77,0x6b]),_0x3907d5,{[_0x10e421([0x6e,0x61,0x6d,0x65])]:_0x10e421([0x45,0x43,0x44,0x53,0x41]),[_0x10e421([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x10e421([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x10e421([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5785a4[_0x10e421([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x10e421([0x6e,0x61,0x6d,0x65])]:_0x10e421([0x45,0x43,0x44,0x53,0x41]),[_0x10e421([0x68,0x61,0x73,0x68])]:{[_0x10e421([0x6e,0x61,0x6d,0x65])]:_0x10e421([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34c389,_0x286978,_0x4e33a3)||(_0x4826b8=!0x1);}}function _0x345355(_0x1d095f){return _0x1d095f[_0x10e421([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x10e421([0x65,0x79]))?JSON[_0x10e421([0x70,0x61,0x72,0x73,0x65])](_0x19a852(_0x1d095f)):null;}function _0x19a852(_0x545554){return window[_0x10e421([0x61,0x74,0x6f,0x62])](_0x545554[_0x10e421([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x10e421([0x2b]))[_0x10e421([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x10e421([0x2f])));}function _0x564b1b(_0x2455f7){let _0x559b8b=0x1505;function _0x539f54(_0x3cd655){for(let _0xd6a1cd=0x0;_0xd6a1cd<_0x3cd655[_0x10e421([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd6a1cd++){const _0x2c761c=_0x3cd655[_0x10e421([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xd6a1cd);_0x559b8b=(_0x559b8b<<0x5)+_0x559b8b+_0x2c761c,_0x559b8b&=_0x559b8b;}}function _0x1eb7f7(_0xdae30f){Array[_0x10e421([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xdae30f)?_0xdae30f[_0x10e421([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1eb7f7):_0xdae30f&&typeof _0xdae30f==_0x10e421([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x10e421([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xdae30f)[_0x10e421([0x73,0x6f,0x72,0x74])]()[_0x10e421([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3a7886,_0x2c4d6d])=>{_0x539f54(_0x3a7886),_0x1eb7f7(_0x2c4d6d);}):_0x539f54(window[_0x10e421([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xdae30f));}return _0x1eb7f7(_0x2455f7),_0x559b8b>>>0x0;}function _0x4c48c6(_0x4bae7f){return _0x4bae7f[_0x10e421([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x10e421([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x10e421([0x30]));}function _0x4e797a(_0x1997c2){return _0x1997c2[_0x10e421([0x73,0x70,0x6c,0x69,0x74])]('')[_0x10e421([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x10e421([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e6f2a(){}function _0x10e421(_0x10b3cf){return _0x10b3cf['map'](_0x27584f=>String['fromCharCode'](_0x27584f))['join']('');}_0x40094e(await _0x4d680e());}(this);}['_initSchema'](){const _0xf70104=this['editor']['model']['schema'];_0xf70104['isRegistered']('imageBlock')&&_0xf70104['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xf70104['isRegistered']('imageInline')&&_0xf70104['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1dea25=this['editor'];_0x1dea25['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1dea25['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1beef7=>_0x1beef7['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1061ed=_0x1dea25['commands']['get']('replaceImageSource');_0x1061ed&&this['listenTo'](_0x1061ed,'cleanupImage',(_0x55c36b,[_0x117e82,_0x5e50f6])=>{_0x117e82['removeAttribute']('uploadcareImageId',_0x5e50f6);});}['_initConfig'](){const _0xf9a922=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2abe8d=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x297852(_0x825d17['document'],'uc-config',{..._0xf9a922,'pubkey':_0x2abe8d,'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']=_0x47b74d=>{if('closeMax'==_0x47b74d)return'#uc-icon-arrow-down';},_0x825d17['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x297852(_0x825d17['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x825d17['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x15d6f5=this['editor']['commands']['get']('insertImage');_0x15d6f5&&this['listenTo'](_0x15d6f5,'execute',()=>{const _0x22284d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x22284d&&_0x22284d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x22284d);});});const _0x3deab0=this['editor']['commands']['get']('uploadcareImageReplace');_0x3deab0&&this['listenTo'](_0x3deab0,'execute',()=>{const _0x38f6b3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x38f6b3&&_0x38f6b3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x38f6b3);});});}}class u extends _0x2d0d04{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b0a31){super(_0x5b0a31),_0x5b0a31['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3e43e8['defineComponents'](_0x3e43e8);}}class ta extends _0x31ac5d{constructor(_0x166f4c){super(_0x166f4c);const t=_0x166f4c['t'],_0x4e4673=this['bindTemplate'],_0x3bbb9f=new _0xcf85d3();_0x3bbb9f['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':[_0x3bbb9f,{'text':_0x4e4673['to']('imageUploadProgress',_0x3e71b0=>t('Loading\x20image...')+'\x20('+(_0x3e71b0||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 _0x31ac5d{constructor(_0x270afe){super(_0x270afe);const t=_0x270afe['t'];this['set']('errorType',null);const _0x17ebe6=new _0x298306(_0x270afe);_0x17ebe6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x17ebe6['withText']=!0x0,_0x17ebe6['class']='ck-button-action',_0x17ebe6['on']('execute',()=>{this['fire']('retry');}),_0x17ebe6['bind']('isVisible')['to'](this,'errorType',_0x3e331f=>'NotFound'!==_0x3e331f);const _0x55b128=new at();_0x55b128['content']=et,_0x55b128['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3d84b9=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':[_0x55b128,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3d84b9['to']('errorType',_0x31c28a=>t('NotFound'!==_0x31c28a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x17ebe6]},{'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 _0x31ac5d{constructor(_0x58f067,_0x3423ea){super(_0x58f067);const _0x1c43c0=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3423ea,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1c43c0['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3e8e60,_0x2ffeee,_0x564baf){super(_0x3e8e60),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x3e8e60),this['_errorView']=new rt(_0x3e8e60),this['_editingView']=new tt(_0x3e8e60,_0x564baf),this['_focusableView']=new _0x31ac5d(_0x3e8e60),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2ffeee),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'],_0x52a09b=>{this['_addUploadcareImageEditorListeners'](_0x52a09b);});}),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'](_0x576aaf,_0x55ae05){const _0x435af4='uc-cloud-image-editor',_0x4ca8e7=_0x576aaf['querySelector'](_0x435af4);if(_0x4ca8e7)return _0x55ae05(_0x4ca8e7);const _0x5437c9=new MutationObserver(_0x3bc567=>{const _0x4b5af9=_0x3bc567['filter'](_0x547c26=>_0x547c26['target']===_0x576aaf&&_0x547c26['addedNodes']['length']>0x0&&_0x547c26['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x435af4);_0x4b5af9['length']&&(_0x5437c9['disconnect'](),_0x55ae05(_0x4b5af9[0x0]['addedNodes'][0x0]));});_0x5437c9['observe'](_0x576aaf,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x595916){_0x595916['addEventListener']('apply',_0xbf6e39=>{this['fire']('apply',{'imageSrc':_0xbf6e39['detail']['cdnUrl']});}),_0x595916['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5e0200(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x55aeb6,_0x4e5f49,_0x276240){super(),this['_editor']=_0x55aeb6,this['_dialog']=_0x4e5f49,this['_imageElement']=_0x276240,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 _0x419c00=this['_imageElement'],_0x4734f6=_0x419c00['getAttribute']('uploadcareImageId'),_0x5075a5=_0x419c00['getAttribute']('src');if(_0x4734f6)await this['_loadImageInfo'](_0x4734f6,_0x5075a5);else{if(this['_imageCache']['has'](_0x5075a5)){const _0x502fe8=this['_imageCache']['get'](_0x5075a5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x502fe8['url'],this['imageDimension']=_0x502fe8['dimension'],this['imageId']=_0x502fe8['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1a1b1b}=this['_editor'],t=_0x1a1b1b['t'],_0x4da9da=new Z(_0x1a1b1b,this['imageStatus'],this['_attributes']);_0x4da9da['bind']('status')['to'](this,'imageStatus'),_0x4da9da['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4da9da['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4da9da['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4da9da,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x38d088,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4da9da,'position':_0x11a9d9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4da9da['focus']();},'onHide':()=>{_0x4da9da['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x160134=>!F(_0x160134,_0x4da9da['element'])}});}['_loadImageInfo'](_0x32a19a,_0x518c50){return C['getInfo'](_0x32a19a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x31541e=>{const {width:_0x2bd071,height:_0x1db8c8}=_0x31541e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x518c50,this['imageDimension']={'width':_0x2bd071,'height':_0x1db8c8},this['imageId']=_0x32a19a;})['catch'](_0x45eea1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x45eea1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x437253,_0x15a5e8){return this['_getImageAsFile'](_0x437253)['then'](_0x517173=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x15a5e8['signal'],'file':_0x517173,'onProgress':_0x40e92b=>{_0x40e92b&&_0x40e92b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x40e92b['value']));}}))['then'](_0x257040=>{const {width:_0x548472,height:_0x1d2867}=_0x257040['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x257040['cdnUrl'],this['imageDimension']={'width':_0x548472,'height':_0x1d2867},this['imageId']=_0x257040['uuid'],this['imageUploadProgress']=null;const _0xfc013c=_0x437253['getAttribute']('src');this['_imageCache']['set'](_0xfc013c,{'id':_0x257040['uuid'],'url':_0x257040['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x230d70=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x230d70['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x38d6e6,_0x3c0909){_0x38d6e6['on']('apply',(_0x26794b,_0x7bff75)=>{this['_replaceImage'](_0x3c0909,_0x7bff75['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x38d6e6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x38d6e6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4228c4,_0x3d2fab,_0x4b9a8f){const _0x1ce0df=this['_editor'],{width:_0x37d5ba,height:_0x3fc39c}=A(_0x3d2fab,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x36c286,imageSources:_0x22c361}=E(_0x3d2fab,_0x37d5ba);_0x1ce0df['model']['change'](_0xa23705=>{if('$graveyard'===_0x4228c4['root']['rootName']){_0x1ce0df['execute']('insertImage',{'imageType':_0x4228c4['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4228c4['getAttributes']()),'uploadcareImageId':_0x4b9a8f,'src':_0x36c286,'sources':_0x22c361,'width':_0x37d5ba,'height':_0x3fc39c}});const _0xc2aa41=_0x4228c4['getChildren']();_0x4228c4=_0x1ce0df['model']['document']['selection']['getSelectedElement']();for(const _0xe1e1ed of _0xc2aa41)_0xa23705['append'](_0xa23705['cloneElement'](_0xe1e1ed),_0x4228c4);}else _0xa23705['setSelection'](_0x4228c4,'on'),_0x1ce0df['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4228c4['getAttributes']()),'uploadcareImageId':_0x4b9a8f,'src':_0x36c286,'sources':_0x22c361,'width':_0x37d5ba,'height':_0x3fc39c},_0x4228c4);_0xa23705['setSelection'](_0x4228c4,'on');});}async['_getImageAsFile'](_0x484df8){const _0x320563=_0x825d17['window'],_0x1ca62d=_0x825d17['document']['location']['href'],_0x2da112=new _0x320563['URL'](_0x484df8['getAttribute']('src'),_0x1ca62d);if('data:'===_0x2da112['protocol']){const _0x3ddc55=_0x2da112['href']['split'](','),_0x5c74a9=_0x3ddc55[0x0]['match'](/:(.*?);/)[0x1],_0x4f37b8=_0x5c74a9['split']('/')[0x1],_0x370b5a=_0x320563['atob'](_0x3ddc55[_0x3ddc55['length']-0x1]);let _0x2e4a8d=_0x370b5a['length'];const _0x20e671=new _0x320563['Uint8Array'](_0x2e4a8d);for(;_0x2e4a8d--;)_0x20e671[_0x2e4a8d]=_0x370b5a['charCodeAt'](_0x2e4a8d);return new _0x320563['File']([_0x20e671],'image.'+_0x4f37b8,{'type':_0x5c74a9});}const _0x1c74ca=_0x2da112['href']['split']('/'),_0x2e121e=_0x1c74ca[_0x1c74ca['length']-0x1],_0x5220a1=_0x2e121e['split']('.')[0x1];return _0x320563['fetch'](_0x2da112['href'])['then'](_0x39cbfd=>_0x39cbfd['clone']()['blob']())['then'](_0x4e2b4f=>new _0x320563['File']([_0x4e2b4f],_0x2e121e,{'type':'image/'+_0x5220a1}));}}class J extends _0x482f89{['imageEditController'];static get['requires'](){return[_0xdafa55];}['_isEditable'];constructor(_0x8e98d4){super(_0x8e98d4),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x11b30d){const _0x40bda5=V(_0x11b30d);return _0x5f0029=>!(!_0x5f0029||!_0x5f0029['is']('element','imageBlock')&&!_0x5f0029['is']('element','imageInline'))&&(!!_0x5f0029['hasAttribute']('uploadcareImageId')||!!_0x5f0029['hasAttribute']('src')&&_0x40bda5(_0x5f0029['getAttribute']('src')));}(_0x8e98d4['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x867c6d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x867c6d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x533a40=this['editor']['model']['document']['selection']['getSelectedElement']();_0x533a40&&(_0x533a40['is']('element','imageBlock')||_0x533a40['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0xdafa55),_0x533a40),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x482f89{['refresh'](){const _0x1b3ca7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1b3ca7&&(_0x1b3ca7['is']('element','imageBlock')||_0x1b3ca7['is']('element','imageInline')));}['execute'](_0x4863ab){const _0x4c97d7=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x502470=>{_0x502470['setAttributes'](_0x4863ab,_0x4c97d7),_0x502470['removeAttribute']('srcset',_0x4c97d7),_0x502470['removeAttribute']('sizes',_0x4c97d7);});}}class g extends _0x2d0d04{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x592cda,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xe7ece6}=this;_0xe7ece6['commands']['add']('uploadcareImageEdit',new J(_0xe7ece6)),_0xe7ece6['commands']['add']('uploadcareImageReplace',new O(_0xe7ece6));}}class j extends _0x2d0d04{['_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 _0x3e9d91=this['editor'];_0x3e9d91['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1b78c4=>{const _0x110f49=_0x3e9d91['commands']['get']('uploadcareImageEdit'),_0x4a8dae=new _0x298306(_0x1b78c4),t=_0x1b78c4['t'];return _0x4a8dae['set']({'icon':_0x38d088,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4a8dae['bind']('isEnabled')['to'](_0x110f49),_0x4a8dae['bind']('isOn')['to'](_0x110f49,'isActive'),this['listenTo'](_0x4a8dae,'execute',()=>{_0x3e9d91['execute']('uploadcareImageEdit'),_0x3e9d91['editing']['view']['focus']();}),_0x4a8dae;}),this['_initConfig']();}['_initConfig'](){const _0x2fa15c=_0x297852(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2fa15c),this['listenTo'](this['editor'],'destroy',()=>{_0x2fa15c['remove']();});}}class P extends _0x2d0d04{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':_0x95bf96=>0x1!=_0x95bf96}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xc37711=>{const {af:{dictionary:_0xbda03,getPluralForm:_0x256f46}}={'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':_0x41f779=>0x1!=_0x41f779}};_0xc37711['af']||={'dictionary':{},'getPluralForm':null},_0xc37711['af']['dictionary']=Object['assign'](_0xc37711['af']['dictionary'],_0xbda03),_0xc37711['af']['getPluralForm']=_0x256f46;})(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':_0x41b09d=>0x0==_0x41b09d?0x0:0x1==_0x41b09d?0x1:0x2==_0x41b09d?0x2:_0x41b09d%0x64>=0x3&&_0x41b09d%0x64<=0xa?0x3:_0x41b09d%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3cec49=>{const {ar:{dictionary:_0xea73e,getPluralForm:_0x449610}}={'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':_0x3e1122=>0x0==_0x3e1122?0x0:0x1==_0x3e1122?0x1:0x2==_0x3e1122?0x2:_0x3e1122%0x64>=0x3&&_0x3e1122%0x64<=0xa?0x3:_0x3e1122%0x64>=0xb?0x4:0x5}};_0x3cec49['ar']||={'dictionary':{},'getPluralForm':null},_0x3cec49['ar']['dictionary']=Object['assign'](_0x3cec49['ar']['dictionary'],_0xea73e),_0x3cec49['ar']['getPluralForm']=_0x449610;})(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':_0x52a104=>0x1!=_0x52a104}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x148abf=>{const {ast:{dictionary:_0x5c94a7,getPluralForm:_0x3412ae}}={'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':_0x362c68=>0x1!=_0x362c68}};_0x148abf['ast']||={'dictionary':{},'getPluralForm':null},_0x148abf['ast']['dictionary']=Object['assign'](_0x148abf['ast']['dictionary'],_0x5c94a7),_0x148abf['ast']['getPluralForm']=_0x3412ae;})(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':_0x1fb26a=>0x1!=_0x1fb26a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5eb6fe=>{const {az:{dictionary:_0x225141,getPluralForm:_0x109a3f}}={'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':_0x508c74=>0x1!=_0x508c74}};_0x5eb6fe['az']||={'dictionary':{},'getPluralForm':null},_0x5eb6fe['az']['dictionary']=Object['assign'](_0x5eb6fe['az']['dictionary'],_0x225141),_0x5eb6fe['az']['getPluralForm']=_0x109a3f;})(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':_0x42df87=>_0x42df87%0xa==0x1&&_0x42df87%0x64!=0xb?0x0:_0x42df87%0xa>=0x2&&_0x42df87%0xa<=0x4&&(_0x42df87%0x64<0xa||_0x42df87%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4ee96f=>{const {be:{dictionary:_0x377d51,getPluralForm:_0x59baac}}={'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':_0x321d4d=>_0x321d4d%0xa==0x1&&_0x321d4d%0x64!=0xb?0x0:_0x321d4d%0xa>=0x2&&_0x321d4d%0xa<=0x4&&(_0x321d4d%0x64<0xa||_0x321d4d%0x64>=0x14)?0x1:0x2}};_0x4ee96f['be']||={'dictionary':{},'getPluralForm':null},_0x4ee96f['be']['dictionary']=Object['assign'](_0x4ee96f['be']['dictionary'],_0x377d51),_0x4ee96f['be']['getPluralForm']=_0x59baac;})(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':_0x4be0c3=>0x1!=_0x4be0c3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x22150d=>{const {bg:{dictionary:_0x15b725,getPluralForm:_0x3c45a5}}={'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':_0x4cbc90=>0x1!=_0x4cbc90}};_0x22150d['bg']||={'dictionary':{},'getPluralForm':null},_0x22150d['bg']['dictionary']=Object['assign'](_0x22150d['bg']['dictionary'],_0x15b725),_0x22150d['bg']['getPluralForm']=_0x3c45a5;})(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':_0x5a734b=>0x1!=_0x5a734b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x245810=>{const {bn:{dictionary:_0x36710a,getPluralForm:_0x513ddc}}={'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':_0x220cbc=>0x1!=_0x220cbc}};_0x245810['bn']||={'dictionary':{},'getPluralForm':null},_0x245810['bn']['dictionary']=Object['assign'](_0x245810['bn']['dictionary'],_0x36710a),_0x245810['bn']['getPluralForm']=_0x513ddc;})(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':_0x5635fc=>_0x5635fc%0xa==0x1&&_0x5635fc%0x64!=0xb?0x0:_0x5635fc%0xa>=0x2&&_0x5635fc%0xa<=0x4&&(_0x5635fc%0x64<0xa||_0x5635fc%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x480b11=>{const {bs:{dictionary:_0x147826,getPluralForm:_0x119e5f}}={'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':_0xcaf0dc=>_0xcaf0dc%0xa==0x1&&_0xcaf0dc%0x64!=0xb?0x0:_0xcaf0dc%0xa>=0x2&&_0xcaf0dc%0xa<=0x4&&(_0xcaf0dc%0x64<0xa||_0xcaf0dc%0x64>=0x14)?0x1:0x2}};_0x480b11['bs']||={'dictionary':{},'getPluralForm':null},_0x480b11['bs']['dictionary']=Object['assign'](_0x480b11['bs']['dictionary'],_0x147826),_0x480b11['bs']['getPluralForm']=_0x119e5f;})(window['CKEDITOR_TRANSLATIONS']||={});
|