@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250622.0 → 0.0.0-nightly-20250624.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 _0x149c7c,Command as _0x384a2f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x35f83c,IconGooglePhotos as _0x41ef89,IconGoogleDrive as _0x517b97,IconFacebook as _0x2df73f,IconDropbox as _0x2e83ca,IconUploadcareLink as _0x50abb6,IconUploadcareImageUpload as _0x3e5d81,IconError as _0x2d885f,IconUploadcareImageEdit as _0x12dde5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x527cc1,MenuBarMenuListItemButtonView as _0x57d6a3,View as _0x5e2a84,FocusCycler as _0x380e1c,Dialog as _0x3fbde9,DialogViewPosition as _0x1ca173,SpinnerView as _0x5cfab5,IconView as _0x1856ef,Notification as _0x1d95e7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4ac6f8,DomEmitterMixin as _0x54d6b7,global as _0x26c421,getAncestors as _0x2a3689,ObservableMixin as _0x3a1835,uid as _0xee435c,createElement as _0x5bad73}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5c273f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xd68278,info as _0x5b7d8c}from'@uploadcare/upload-client';import*as _0x2148cc from'@uploadcare/file-uploader';var i=function(_0x3ff8b9){return _0x3ff8b9['Local']='local',_0x3ff8b9['URL']='url',_0x3ff8b9['Dropbox']='dropbox',_0x3ff8b9['GDrive']='gdrive',_0x3ff8b9['Facebook']='facebook',_0x3ff8b9['GPhotos']='gphotos',_0x3ff8b9['OneDrive']='onedrive',_0x3ff8b9;}({});function _(_0x13cdd6,_0x1c140c,_0x120a21){const t=_0x13cdd6['t'],_0x2a16f7=_0x13cdd6['t'];switch(_0x1c140c){case i['Local']:return{'text':_0x2a16f7('Insert'===_0x120a21?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2a16f7('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x120a21?_0x2a16f7('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2a16f7('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x120a21?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1c140c;}}class e extends _0x149c7c{['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 _0x540444=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5e9c12;for(const _0x3997d8 in _0x540444){const _0x9ff3e6=_0x3997d8,_0x463172=_0x540444[_0x9ff3e6];if('uploadcareLicenseKeyValid'==_0x463172||'uploadcareLicenseKeyInvalid'==_0x463172||'uploadcareLicenseKeyExpired'==_0x463172||'uploadcareLicenseKeyDomainLimit'==_0x463172||'uploadcareLicenseKeyNotAllowed'==_0x463172||'uploadcareLicenseKeyEvaluationLimit'==_0x463172||'uploadcareLicenseKeyTrialLimit'==_0x463172||'uploadcareLicenseKeyUsageLimit'==_0x463172){delete _0x540444[_0x9ff3e6],_0x5e9c12=_0x463172,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5e9c12&&_0x540444['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5e9c12&&_0x540444['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5e9c12&&_0x540444['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5e9c12&&_0x540444['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5e9c12&&_0x540444['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5e9c12&&_0x540444['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5e9c12&&_0x540444['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xe394bb}=this,_0x50eed2=_0xe394bb['commands']['get']('uploadcare');if(!_0x50eed2)return;const _0x3a448e=this['_normalizeConfigSourceList'](_0xe394bb['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x285570,_0xa81fc)=>{const _0xff6a41=this['_getIntegrationKey'](_0xa81fc['type']);return _0x285570[_0xff6a41]||(_0x285570[_0xff6a41]=[]),_0x285570[_0xff6a41]['push'](_0xa81fc),_0x285570;},{});_0xe394bb['plugins']['has']('ImageInsertUI')&&_0xe394bb['commands']['get']('uploadcare')&&Object['entries'](_0x3a448e)['forEach'](([_0x5e3e09,_0x2f52a7])=>{_0xe394bb['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5e3e09,'observable':()=>_0x50eed2,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2f52a7),'formViewCreator':()=>this['_createDropdownButtons'](_0x2f52a7),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2f52a7),'override':'assetManager'!==_0x5e3e09});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x45041f){const {locale:_0x76190c}=this['editor'];return _0x45041f['map'](_0x326c0e=>{const _0x4eb274=_(_0x76190c,_0x326c0e,'Insert');switch(_0x326c0e){case i['Local']:return{'icon':_0x3e5d81,'type':i['Local'],..._0x4eb274};case i['URL']:return{'icon':_0x50abb6,'type':i['URL'],..._0x4eb274};case i['Dropbox']:return{'icon':_0x2e83ca,'type':i['Dropbox'],..._0x4eb274};case i['Facebook']:return{'icon':_0x2df73f,'type':i['Facebook'],..._0x4eb274};case i['GDrive']:return{'icon':_0x517b97,'type':i['GDrive'],..._0x4eb274};case i['GPhotos']:return{'icon':_0x41ef89,'type':i['GPhotos'],..._0x4eb274};case i['OneDrive']:return{'icon':_0x35f83c,'type':i['OneDrive'],..._0x4eb274};}});}['_getIntegrationKey'](_0x492902){switch(_0x492902){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2fef25,_0x2cc371){const _0x598a0e=this['editor'],_0x5953cc=new _0x2fef25(_0x598a0e['locale']),_0x506a04=_0x598a0e['commands']['get']('uploadcare');return _0x5953cc['bind']('isEnabled')['to'](_0x506a04),_0x5953cc['on']('execute',()=>{_0x506a04['execute'](_0x2cc371);}),_0x5953cc;}['_createToolbarButton'](_0x3d8ff9){const {locale:_0x24e5ae}=this['editor'],_0x2e413c=this['editor']['plugins']['get']('ImageInsertUI'),_0x5c329f=_0x3d8ff9[0x0],_0x9a1072=this['_createButton'](_0x527cc1,_0x5c329f['type']);return _0x9a1072['icon']=_0x5c329f['icon'],_0x9a1072['bind']('label')['to'](_0x2e413c,'isImageSelected',_0x4c0baa=>_(_0x24e5ae,_0x5c329f['type'],_0x4c0baa?'Replace':'Insert')['text']),_0x9a1072['tooltip']=!0x0,_0x9a1072;}['_createDropdownButtons'](_0x4c30e0){const {locale:_0xe37876}=this['editor'],_0x53e5f4=this['editor']['plugins']['get']('ImageInsertUI');return _0x4c30e0['map'](_0x2daed5=>{const _0x5e89ca=this['_createButton'](_0x527cc1,_0x2daed5['type']);return _0x5e89ca['withText']=!0x0,_0x5e89ca['icon']=_0x2daed5['icon'],_0x5e89ca['bind']('label')['to'](_0x53e5f4,'isImageSelected',_0x56ef20=>_(_0xe37876,_0x2daed5['type'],_0x56ef20?'Replace':'Insert')['text']),_0x5e89ca;});}['_createMenuBarButtons'](_0x131b26){return _0x131b26['map'](_0x265924=>{const _0x1b3692=this['_createButton'](_0x57d6a3,_0x265924['type']);return _0x1b3692['icon']=_0x265924['icon'],_0x1b3692['label']=_0x265924['shortText'],_0x1b3692;});}}class F extends _0x5e2a84{['focusTracker'];['focusCycler'];constructor(_0x42f713){super(_0x42f713),this['focusTracker']=new _0x4ac6f8(),this['focusCycler']=new _0x380e1c({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x26d947,_0x5bb5fd){super(_0x26d947),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-'+_0x5bb5fd}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x1db0cd,_0x5d2d23){const _0xbc2a91=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4a1474=>_0x4a1474<=_0x5d2d23)['map'](_0x2ff91d=>_0x1db0cd['replace'](/\/$/,'')+'/-/resize/'+_0x2ff91d+'x/\x20'+_0x2ff91d+'w');return{'imageFallbackUrl':_0x1db0cd,'imageSources':[{'srcset':_0xbc2a91['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5d2d23+'px)\x20100vw,\x20'+_0x5d2d23+'px','type':'image/webp'}]};}function C(_0x1e78f7,_0x5d21ff,_0x5ee395){const _0x46bab8=_0x1e78f7['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x46bab8?parseInt(_0x46bab8[0x1],0xa):_0x5d21ff,'height':_0x46bab8?parseInt(_0x46bab8[0x2],0xa):_0x5ee395};}function p(_0x18e536,_0x5807f4){const _0x11bbf3=new(_0x54d6b7())(),_0x1b5964=_0x18e536['plugins']['get']('ImageUtils'),_0x55e4b2=_0x18e536['editing']['mapper']['toViewElement'](_0x5807f4),_0x955b20=_0x1b5964['findViewImgElement'](_0x55e4b2),_0x4ac7d5=_0x18e536['editing']['view']['domConverter']['viewToDom'](_0x955b20),_0x3b2787=_0x5807f4['getAttribute']('width'),_0x53db82=_0x5807f4['getAttribute']('height'),_0x5b3a67='image-processing';_0x18e536['editing']['view']['change'](_0x26f5db=>{_0x26f5db['addClass'](_0x5b3a67,_0x55e4b2),_0x26f5db['setStyle']('aspect-ratio',_0x3b2787+'/'+_0x53db82,_0x955b20);}),_0x11bbf3['listenTo'](_0x4ac7d5,'load',()=>{_0x11bbf3['stopListening'](_0x4ac7d5,'load'),_0x18e536['editing']['view']['change'](_0x553a56=>{_0x553a56['removeClass'](_0x5b3a67,_0x55e4b2),_0x553a56['removeStyle']('aspect-ratio',_0x955b20);});});}function G(_0x5565a2){if(Array['isArray'](_0x5565a2)){const _0x59038b=_0x5565a2['map'](G);return _0x1df370=>_0x59038b['some'](_0x166774=>_0x166774(_0x1df370));}if('origin'==_0x5565a2){const _0x24dea6=_0x26c421['window']['location']['origin'];return _0xca503c=>new URL(_0xca503c,_0x26c421['document']['baseURI'])['origin']==_0x24dea6;}return'function'==typeof _0x5565a2?_0x5565a2:_0x5565a2 instanceof RegExp?_0x23aa6c=>!(!_0x23aa6c['match'](_0x5565a2)&&!_0x23aa6c['replace'](/^https?:\/\//,'')['match'](_0x5565a2)):()=>!0x1;}function S(_0x8ad8c1,_0x59637c){return _0x2a3689(_0x8ad8c1['target'])['includes'](_0x59637c);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3a1835(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2f3250,_0x41c8e1,_0x3121d9){super(),this['_editor']=_0x2f3250,this['_editing']=_0x41c8e1,this['_dialog']=_0x2f3250['plugins']['get'](_0x3fbde9),this['_api']=_0x41c8e1['ctxElement']['getAPI'](),this['_type']=_0x3121d9,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:_0x3437c1,model:_0x586047}=this['_editor'],_0x14309a=_0x586047['document']['selection']['getSelectedElement'](),_0x38206a=_0x14309a&&(_0x14309a['is']('element','imageBlock')||_0x14309a['is']('element','imageInline'));this['_formView']=new x(_0x3437c1,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3e5d81,'title':_(_0x3437c1,this['_type'],_0x38206a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1ca173['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x469a81=>!S(_0x469a81,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1a07a9}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4cc9e7=>{const _0xd7a724=_0x1a07a9['length'];for(const _0x42779c of _0x1a07a9){const _0x81b964=_0x42779c===_0x1a07a9[_0xd7a724-0x1],{cdnUrl:_0x171743,fileInfo:_0x5cac63}=_0x42779c;if(!_0x171743||!_0x5cac63)continue;const {width:_0x534410,height:_0x119f3c}=_0x5cac63['imageInfo'],_0x1207fa=C(_0x171743,_0x534410,_0x119f3c),_0x172638=k(_0x171743,_0x1207fa['width']),_0x364ece={'id':_0x5cac63['uuid'],'type':'image','attributes':{'imageDimension':_0x1207fa,..._0x172638}};this['_insertAsset'](_0x364ece,_0x81b964,_0x4cc9e7);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x569937=>{'idle'===_0x569937['detail']['status']&&!_0x569937['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5ada6a,_0x482847,_0x472156){const _0x4764be=this['_editor']['model']['document']['selection'],_0x28f4b5=_0x4764be['getSelectedElement'](),_0xc21471=!(!_0x28f4b5||!_0x28f4b5['is']('element','imageInline'));_0x472156['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5ada6a,_0xc21471),_0x482847||_0x472156['setSelection'](_0x4764be['getLastPosition']());}['_insertImage'](_0x531fd8,_0x39899d){const _0xc2ea49=this['_editor'],{imageDimension:_0xa53d2a,imageFallbackUrl:_0x25d388,imageSources:_0x76e0d8}=_0x531fd8['attributes'];_0xc2ea49['execute']('insertImage',{'imageType':_0x39899d?'imageInline':null,'source':{'uploadcareImageId':_0x531fd8['id'],'src':_0x25d388,'sources':_0x76e0d8,..._0xa53d2a}});}}class w extends _0x384a2f{['_editing'];['_controller']=null;static get['requires'](){return[_0x3fbde9,o];}constructor(_0x22b94c){super(_0x22b94c),this['_editing']=_0x22b94c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1da263){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1da263);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x31ad97,publicKey:_0x39db3b,signal:_0x26d65a,onProgress:_0x44c0a7}){return _0xd68278(_0x31ad97,{'publicKey':_0x39db3b,'store':'auto','signal':_0x26d65a,'onProgress':_0x44c0a7});}static['getInfo'](_0x5399db,_0x5c0120){return _0x5b7d8c(_0x5399db,_0x5c0120);}}class f extends _0x149c7c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5c273f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2165e1=this['editor'];if(!!!_0x2165e1['config']['get']('uploadcare'))return;_0x2165e1['plugins']['get'](_0x5c273f)['createUploadAdapter']=_0x2a0b12=>new A(_0x2a0b12,_0x2165e1),_0x2165e1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1b892b,{imageElement:_0x3f48f3,data:_0xcff99})=>{_0x2165e1['model']['change'](_0x500a39=>{_0x500a39['setAttribute']('uploadcareImageId',_0xcff99['uploadcareImageId'],_0x3f48f3);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x438703,_0x20f9a0){this['loader']=_0x438703,this['editor']=_0x20f9a0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x38bcd4=this['editor']['config']['get']('uploadcare.pubkey'),_0x2dda70=await this['loader']['file'];return j['upload']({'file':_0x2dda70,'publicKey':_0x38bcd4,'signal':this['controller']['signal'],'onProgress':_0x39df68=>{_0x39df68&&_0x39df68['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x39df68['value']);}})['then'](async _0x3d034a=>{const {imageFallbackUrl:_0x1d801f,imageSources:_0x2e6b99}=k(_0x3d034a['cdnUrl'],_0x3d034a['imageInfo']['width']);return{'uploadcareImageId':_0x3d034a['uuid'],'default':_0x1d801f,'sources':_0x2e6b99};})['catch'](()=>{const _0x3f3338=t('Cannot\x20upload\x20file:')+('\x20'+_0x2dda70['name']+'.');return Promise['reject'](_0x3f3338);});}['abort'](){this['controller']['abort']();}}class o extends _0x149c7c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3fbde9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5d6201){super(_0x5d6201),this['ucContextId']=_0xee435c();}['init'](){const _0x5a1426=this['editor'];_0x5a1426['commands']['add']('uploadcare',new w(_0x5a1426));}['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 _0x578cd1=_0x26c421['document']['querySelector']('input[uploadcare-file-input]');_0x578cd1&&_0x578cd1['remove']();}),async function(_0x5c9d1c){const _0x5dc097=_0x556499([0x63,0x57,0x30,0x42,0x4a,0x6d,0x4c,0x74,0x4d,0x41,0x49,0x50,0x71,0x64,0x44,0x6c,0x65,0x51,0x66,0x79,0x6f,0x4f,0x56,0x68,0x31,0x72,0x35,0x48,0x34,0x67,0x37,0x5a,0x53,0x55,0x6a,0x54,0x47,0x62,0x76,0x59,0x61,0x4e,0x39,0x77,0x36,0x38,0x58,0x70,0x6b,0x32,0x45,0x6e,0x46,0x75,0x4b,0x73,0x43,0x33,0x52,0x78,0x7a,0x69]),_0x660594=0x48619f64,_0x26b125=0x4866f41c^_0x660594,_0x1acf0a=window[_0x556499([0x44,0x61,0x74,0x65])][_0x556499([0x6e,0x6f,0x77])](),_0x3b5528=_0x5c9d1c[_0x556499([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a139a=new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43948c=>{_0x3b5528[_0x556499([0x6f,0x6e,0x63,0x65])](_0x556499([0x72,0x65,0x61,0x64,0x79]),_0x43948c);}),_0x548cff={[_0x556499([0x6b,0x74,0x79])]:_0x556499([0x45,0x43]),[_0x556499([0x75,0x73,0x65])]:_0x556499([0x73,0x69,0x67]),[_0x556499([0x63,0x72,0x76])]:_0x556499([0x50,0x2d,0x32,0x35,0x36]),[_0x556499([0x78])]:_0x556499([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]),[_0x556499([0x79])]:_0x556499([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]),[_0x556499([0x61,0x6c,0x67])]:_0x556499([0x45,0x53,0x32,0x35,0x36])},_0x1af362=_0x3b5528[_0x556499([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x556499([0x67,0x65,0x74])](_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x170a75(){let _0xf1be28,_0x3e1b18=null,_0x20365b=null;try{if(_0x1af362==_0x556499([0x47,0x50,0x4c]))return _0x556499([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf1be28=_0x2c1f3b(),!_0xf1be28)return _0x556499([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf1be28[_0x556499([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x20365b=_0x381c98(_0xf1be28[_0x556499([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf1be28[_0x556499([0x6a,0x74,0x69])])),await _0x4b2be9()?_0x55f0ba()?_0x5c4294()?_0x556499([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55edc2()?(_0xf1be28[_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x556499([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e1b18=_0x46d659(_0x556499([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf1be28[_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x556499([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e1b18=_0x46d659(_0x556499([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b4ede()):_0x556499([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x556499([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x556499([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x556499([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c4294(){const _0x5ef035=[_0x556499([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x556499([0x74,0x72,0x69,0x61,0x6c])][_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf1be28[_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1acf0a/0x3e8:0xe10*_0x26b125;return _0xf1be28[_0x556499([0x65,0x78,0x70])]<_0x5ef035;}function _0x55f0ba(){const _0x3ad095=_0xf1be28[_0x556499([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ad095&&(!!_0x3ad095[_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x556499([0x2a]))||!!_0x3ad095[_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x556499([0x55,0x50,0x4c,0x43])));}function _0x55edc2(){const _0x7a342f=_0xf1be28[_0x556499([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7a342f||0x0==_0x7a342f[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x77118e}=new URL(window[_0x556499([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x7a342f[_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x77118e))return!0x0;const _0x51d5fc=_0x77118e[_0x556499([0x73,0x70,0x6c,0x69,0x74])](_0x556499([0x2e]));return _0x7a342f[_0x556499([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1dc327=>_0x1dc327[_0x556499([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x556499([0x2a])))[_0x556499([0x6d,0x61,0x70])](_0x377e8b=>_0x377e8b[_0x556499([0x73,0x70,0x6c,0x69,0x74])](_0x556499([0x2e])))[_0x556499([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d10c2=>_0x5d10c2[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x51d5fc[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x556499([0x6d,0x61,0x70])](_0x1cdbd4=>Array(_0x51d5fc[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1cdbd4[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x556499([0x66,0x69,0x6c,0x6c])](_0x1cdbd4[0x0]===_0x556499([0x2a])?_0x556499([0x2a]):'')[_0x556499([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1cdbd4))[_0x556499([0x73,0x6f,0x6d,0x65])](_0x5cf4a6=>_0x51d5fc[_0x556499([0x65,0x76,0x65,0x72,0x79])]((_0x3ad583,_0x4472a4)=>_0x5cf4a6[_0x4472a4]===_0x3ad583||_0x5cf4a6[_0x4472a4]===_0x556499([0x2a])));}function _0x5b4ede(){return _0x3e1b18&&_0x20365b?new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2490a8,_0x8c5513)=>{_0x3e1b18[_0x556499([0x74,0x68,0x65,0x6e])](_0x2490a8,_0x8c5513),_0x20365b[_0x556499([0x74,0x68,0x65,0x6e])](_0x37e0cb=>{_0x37e0cb!=_0x556499([0x56,0x61,0x6c,0x69,0x64])&&_0x2490a8(_0x37e0cb);},_0x8c5513);}):_0x3e1b18||_0x20365b||_0x556499([0x56,0x61,0x6c,0x69,0x64]);}}function _0x381c98(_0xb4587b,_0x251a46){return new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d29d1=>{if(_0x3126db())return _0x5d29d1(_0x556499([0x56,0x61,0x6c,0x69,0x64]));_0x227179(),_0x3b5528[_0x556499([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x556499([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17008b=!0x1;const _0x2d2593=_0xee435c();function _0x4caf12(_0x486ff8){return!!_0x486ff8&&(typeof _0x486ff8===_0x556499([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x486ff8===_0x556499([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x486ff8[_0x556499([0x74,0x68,0x65,0x6e])]===_0x556499([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x486ff8[_0x556499([0x63,0x61,0x74,0x63,0x68])]===_0x556499([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x17c45e(_0x1d0c19){_0x46247c(_0x1d0c19)[_0x556499([0x74,0x68,0x65,0x6e])](_0x49cd03=>{if(!_0x49cd03||_0x49cd03[_0x556499([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x556499([0x6f,0x6b]))return _0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xbb9413(_0xb40b65(_0x2d2593+_0x251a46))!=_0x49cd03[_0x556499([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x556499([0x56,0x61,0x6c,0x69,0x64]);})[_0x556499([0x74,0x68,0x65,0x6e])](_0x1d9759=>(_0x224b79(),_0x1d9759),()=>{const _0x2141e8=_0x44267a();return null==_0x2141e8?(_0x224b79(),_0x556499([0x56,0x61,0x6c,0x69,0x64])):_0x556499(_0x1acf0a-_0x2141e8>(0x6c6d1b64^_0x660594)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x556499([0x74,0x68,0x65,0x6e])](_0x5d29d1)[_0x556499([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d29d1(_0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d9efc=0x485771e4^_0x660594;function _0x224b79(){const _0x1202d7=_0x556499([0x6c,0x6c,0x63,0x74,0x2d])+_0xbb9413(_0xb40b65(_0xb4587b)),_0x510b63=_0x51921b(_0xbb9413(window[_0x556499([0x4d,0x61,0x74,0x68])][_0x556499([0x63,0x65,0x69,0x6c])](_0x1acf0a/_0x4d9efc)));window[_0x556499([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x556499([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1202d7,_0x510b63);}function _0x44267a(){const _0x5e54a7=_0x556499([0x6c,0x6c,0x63,0x74,0x2d])+_0xbb9413(_0xb40b65(_0xb4587b)),_0x2609df=window[_0x556499([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x556499([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e54a7);return _0x2609df?window[_0x556499([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51921b(_0x2609df),0x10)*_0x4d9efc:null;}function _0x46247c(_0x53dc16){return new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x501c7e,_0x22ad21)=>{_0x53dc16[_0x556499([0x74,0x68,0x65,0x6e])](_0x501c7e,_0x22ad21),window[_0x556499([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22ad21,0x48604ba4^_0x660594);});}}_0x3b5528[_0x556499([0x6f,0x6e])](_0x556499([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4793ef,_0x54d6bc)=>{if(_0x54d6bc[0x0]!=_0xb4587b)return _0x5d29d1(_0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54d6bc[0x1]={..._0x54d6bc[0x1],[_0x556499([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d2593};},{[_0x556499([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x556499([0x68,0x69,0x67,0x68])}),_0x3b5528[_0x556499([0x6f,0x6e])](_0x556499([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7500da=>{_0x4caf12(_0x7500da[_0x556499([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17008b=!0x0,_0x17c45e(_0x7500da[_0x556499([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x556499([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x556499([0x6c,0x6f,0x77])}),_0x3a139a[_0x556499([0x74,0x68,0x65,0x6e])](()=>{_0x17008b||_0x5d29d1(_0x556499([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3126db(){return _0x3b5528[_0x556499([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x556499([0x76,0x69,0x65,0x77])][_0x556499([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x556499([0x61,0x75,0x74,0x6f]);}function _0x227179(){_0x3b5528[_0x556499([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x556499([0x76,0x69,0x65,0x77])][_0x556499([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x556499([0x61,0x75,0x74,0x6f]);}}function _0x46d659(_0x40fb0e){const _0xa1738c=[new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a4131=>setTimeout(_0x4a4131,0x4868a1a8^_0x660594)),_0x3a139a[_0x556499([0x74,0x68,0x65,0x6e])](()=>new window[(_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b6f77=>{let _0x1a2318=0x0;_0x3b5528[_0x556499([0x6d,0x6f,0x64,0x65,0x6c])][_0x556499([0x6f,0x6e])](_0x556499([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52cb33,_0x1b35ed)=>{_0x1b35ed[0x0][_0x556499([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a2318++,_0x1a2318==(0x48619e9c^_0x660594)&&(_0x4b6f77(),_0x52cb33[_0x556499([0x6f,0x66,0x66])]());});}))];return window[_0x556499([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x556499([0x72,0x61,0x63,0x65])](_0xa1738c)[_0x556499([0x74,0x68,0x65,0x6e])](()=>_0x40fb0e);}async function _0x4fe0be(){await _0x3a139a,_0x3b5528[_0x556499([0x6d,0x6f,0x64,0x65,0x6c])][_0x556499([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x467e19,_0x3b5528[_0x556499([0x6d,0x6f,0x64,0x65,0x6c])][_0x556499([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x467e19,_0x3b5528[_0x556499([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x556499([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x42ec5a(_0x50bf37){const _0x1a01c5=_0x266448();_0x3b5528[_0x1a01c5]=_0x556499([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x50bf37,_0x50bf37!=_0x556499([0x56,0x61,0x6c,0x69,0x64])&&_0x4fe0be();}function _0x266448(){const _0x12d432=window[_0x556499([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x556499([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x556499([0x6e,0x6f,0x77])]())[_0x556499([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x556499([0x2e]),'');let _0x38f51c=_0x556499([0x63]);for(let _0x3b4fe7=0x0;_0x3b4fe7<_0x12d432[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b4fe7+=0x2){let _0x42e24c=window[_0x556499([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12d432[_0x556499([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b4fe7,_0x3b4fe7+0x2));_0x42e24c>=_0x5dc097[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42e24c-=_0x5dc097[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x38f51c+=_0x5dc097[_0x42e24c];}return _0x38f51c;}function _0x2c1f3b(){const _0x4c8fdc=_0x1af362[_0x556499([0x73,0x70,0x6c,0x69,0x74])](_0x556499([0x2e]));if(0x3!=_0x4c8fdc[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1bca2b(_0x4c8fdc[0x1]);function _0x1bca2b(_0x524ced){const _0xbb421c=_0x988508(_0x524ced);return _0xbb421c&&_0x5340b8()?_0xbb421c:null;function _0x5340b8(){const _0xe4b61a=_0xbb421c[_0x556499([0x6a,0x74,0x69])],_0xb1f7a=window[_0x556499([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe4b61a[_0x556499([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe4b61a[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31214a={..._0xbb421c,[_0x556499([0x6a,0x74,0x69])]:_0xe4b61a[_0x556499([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe4b61a[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31214a[_0x556499([0x76,0x63])],_0xb40b65(_0x31214a)==_0xb1f7a;}}}async function _0x4b2be9(){let _0x43c0c1=!0x0;try{const _0x2c6ccd=_0x1af362[_0x556499([0x73,0x70,0x6c,0x69,0x74])](_0x556499([0x2e])),[_0x131b88,_0x392c77,_0x2332ec]=_0x2c6ccd;return _0xf1de5d(_0x131b88),await _0x1a0534(_0x131b88,_0x392c77,_0x2332ec),_0x43c0c1;}catch{return!0x1;}function _0xf1de5d(_0x3429aa){const _0xb7f0d9=_0x988508(_0x3429aa);_0xb7f0d9&&_0xb7f0d9[_0x556499([0x61,0x6c,0x67])]==_0x556499([0x45,0x53,0x32,0x35,0x36])||(_0x43c0c1=!0x1);}async function _0x1a0534(_0x1a0a75,_0x36d292,_0xa0f758){const _0xf0dda6=window[_0x556499([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x556499([0x66,0x72,0x6f,0x6d])](_0x47a85f(_0xa0f758),_0x19190e=>_0x19190e[_0x556499([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xdac28c=new window[(_0x556499([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x556499([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a0a75+_0x556499([0x2e])+_0x36d292),_0x295fd6=window[_0x556499([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x556499([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x295fd6)return;const _0x4b5525=await _0x295fd6[_0x556499([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x556499([0x6a,0x77,0x6b]),_0x548cff,{[_0x556499([0x6e,0x61,0x6d,0x65])]:_0x556499([0x45,0x43,0x44,0x53,0x41]),[_0x556499([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x556499([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x556499([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x295fd6[_0x556499([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x556499([0x6e,0x61,0x6d,0x65])]:_0x556499([0x45,0x43,0x44,0x53,0x41]),[_0x556499([0x68,0x61,0x73,0x68])]:{[_0x556499([0x6e,0x61,0x6d,0x65])]:_0x556499([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b5525,_0xf0dda6,_0xdac28c)||(_0x43c0c1=!0x1);}}function _0x988508(_0x4f063f){return _0x4f063f[_0x556499([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x556499([0x65,0x79]))?JSON[_0x556499([0x70,0x61,0x72,0x73,0x65])](_0x47a85f(_0x4f063f)):null;}function _0x47a85f(_0x577dfd){return window[_0x556499([0x61,0x74,0x6f,0x62])](_0x577dfd[_0x556499([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x556499([0x2b]))[_0x556499([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x556499([0x2f])));}function _0xb40b65(_0x241c2e){let _0x36fb0f=0x1505;function _0x1ef08a(_0x5a84da){for(let _0x14e491=0x0;_0x14e491<_0x5a84da[_0x556499([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14e491++){const _0xdbb8c9=_0x5a84da[_0x556499([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14e491);_0x36fb0f=(_0x36fb0f<<0x5)+_0x36fb0f+_0xdbb8c9,_0x36fb0f&=_0x36fb0f;}}function _0x1506e8(_0x3ddb87){Array[_0x556499([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ddb87)?_0x3ddb87[_0x556499([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1506e8):_0x3ddb87&&typeof _0x3ddb87==_0x556499([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x556499([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ddb87)[_0x556499([0x73,0x6f,0x72,0x74])]()[_0x556499([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4401dd,_0x2f356f])=>{_0x1ef08a(_0x4401dd),_0x1506e8(_0x2f356f);}):_0x1ef08a(window[_0x556499([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ddb87));}return _0x1506e8(_0x241c2e),_0x36fb0f>>>0x0;}function _0xbb9413(_0x23079){return _0x23079[_0x556499([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x556499([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x556499([0x30]));}function _0x51921b(_0x27eb76){return _0x27eb76[_0x556499([0x73,0x70,0x6c,0x69,0x74])]('')[_0x556499([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x556499([0x6a,0x6f,0x69,0x6e])]('');}function _0x467e19(){}function _0x556499(_0x4db727){return _0x4db727['map'](_0x4f5117=>String['fromCharCode'](_0x4f5117))['join']('');}_0x42ec5a(await _0x170a75());}(this);}['_initSchema'](){const _0x464303=this['editor']['model']['schema'];_0x464303['isRegistered']('imageBlock')&&_0x464303['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x464303['isRegistered']('imageInline')&&_0x464303['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2d4a60=this['editor'];_0x2d4a60['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2d4a60['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x554ba8=>_0x554ba8['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x470586=_0x2d4a60['commands']['get']('replaceImageSource');_0x470586&&this['listenTo'](_0x470586,'cleanupImage',(_0x269644,[_0x7ca528,_0x10fdeb])=>{_0x7ca528['removeAttribute']('uploadcareImageId',_0x10fdeb);});}['_initConfig'](){const _0x1086b6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1a4106=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5bad73(_0x26c421['document'],'uc-config',{..._0x1086b6,'pubkey':_0x1a4106,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x46848a=>{if('closeMax'==_0x46848a)return'#uc-icon-arrow-down';},_0x26c421['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5bad73(_0x26c421['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x26c421['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x35b907=this['editor']['commands']['get']('insertImage');_0x35b907&&this['listenTo'](_0x35b907,'execute',()=>{const _0x3bc992=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3bc992&&_0x3bc992['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3bc992);});});const _0xf62941=this['editor']['commands']['get']('uploadcareImageReplace');_0xf62941&&this['listenTo'](_0xf62941,'execute',()=>{const _0x449eb1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x449eb1&&_0x449eb1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x449eb1);});});}}class tt extends _0x149c7c{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2930df){super(_0x2930df),_0x2930df['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2148cc['defineComponents'](_0x2148cc);}}class ii extends _0x5e2a84{constructor(_0x383e21){super(_0x383e21);const t=_0x383e21['t'],_0x432e40=this['bindTemplate'],_0x11e89f=new _0x5cfab5();_0x11e89f['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':[_0x11e89f,{'text':_0x432e40['to']('imageUploadProgress',_0x4e00da=>t('Loading\x20image...')+'\x20('+(_0x4e00da||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x5e2a84{constructor(_0x3f4252){super(_0x3f4252);const t=_0x3f4252['t'];this['set']('errorType',null);const _0x51b858=new _0x527cc1(_0x3f4252);_0x51b858['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x51b858['withText']=!0x0,_0x51b858['class']='ck-button-action',_0x51b858['on']('execute',()=>{this['fire']('retry');}),_0x51b858['bind']('isVisible')['to'](this,'errorType',_0xd61041=>'NotFound'!==_0xd61041);const _0xe73f01=new _0x1856ef();_0xe73f01['content']=_0x2d885f,_0xe73f01['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x329f0e=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':[_0xe73f01,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x329f0e['to']('errorType',_0x23747c=>t('NotFound'!==_0x23747c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x51b858]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x5e2a84{constructor(_0xdb8930,_0x5e0d38){super(_0xdb8930);const _0x168350=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5e0d38,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x168350['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x198930,_0x3f0d28,_0x50af22){super(_0x198930),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x198930),this['_errorView']=new ti(_0x198930),this['_editingView']=new ei(_0x198930,_0x50af22),this['_focusableView']=new _0x5e2a84(_0x198930),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3f0d28),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'],_0x1b8f52=>{this['_addUploadcareImageEditorListeners'](_0x1b8f52);});}),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'](_0x31f4f4,_0x302c1c){const _0x5463c4='uc-cloud-image-editor',_0x2caa45=_0x31f4f4['querySelector'](_0x5463c4);if(_0x2caa45)return _0x302c1c(_0x2caa45);const _0x473f27=new MutationObserver(_0x2ab83b=>{const _0x1dd6ee=_0x2ab83b['filter'](_0x38c6eb=>_0x38c6eb['target']===_0x31f4f4&&_0x38c6eb['addedNodes']['length']>0x0&&_0x38c6eb['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5463c4);_0x1dd6ee['length']&&(_0x473f27['disconnect'](),_0x302c1c(_0x1dd6ee[0x0]['addedNodes'][0x0]));});_0x473f27['observe'](_0x31f4f4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x37666d){_0x37666d['addEventListener']('apply',_0xa62965=>{this['fire']('apply',{'imageSrc':_0xa62965['detail']['cdnUrl']});}),_0x37666d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3a1835(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x37b08d,_0x243ec7,_0x33980a){super(),this['_editor']=_0x37b08d,this['_dialog']=_0x243ec7,this['_imageElement']=_0x33980a,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 _0x3b45e1=this['_imageElement'],_0x517bf9=_0x3b45e1['getAttribute']('uploadcareImageId'),_0x21d3cd=_0x3b45e1['getAttribute']('src');if(_0x517bf9)await this['_loadImageInfo'](_0x517bf9,_0x21d3cd);else{if(this['_imageCache']['has'](_0x21d3cd)){const _0x1123ab=this['_imageCache']['get'](_0x21d3cd);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1123ab['url'],this['imageDimension']=_0x1123ab['dimension'],this['imageId']=_0x1123ab['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5c2f27}=this['_editor'],t=_0x5c2f27['t'],_0x33887f=new X(_0x5c2f27,this['imageStatus'],this['_attributes']);_0x33887f['bind']('status')['to'](this,'imageStatus'),_0x33887f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x33887f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x33887f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x33887f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x12dde5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x33887f,'position':_0x1ca173['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x33887f['focus']();},'onHide':()=>{_0x33887f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x588f3e=>!S(_0x588f3e,_0x33887f['element'])}});}['_loadImageInfo'](_0x411920,_0x16d85d){return j['getInfo'](_0x411920,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2f7b64=>{const {width:_0x374e72,height:_0x4d5ac7}=_0x2f7b64['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x16d85d,this['imageDimension']={'width':_0x374e72,'height':_0x4d5ac7},this['imageId']=_0x411920;})['catch'](_0x1deff0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1deff0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5e2f85,_0xd3cf98){return this['_getImageAsFile'](_0x5e2f85)['then'](_0x57980c=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xd3cf98['signal'],'file':_0x57980c,'onProgress':_0x2a8784=>{_0x2a8784&&_0x2a8784['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2a8784['value']));}}))['then'](_0x47a4ed=>{const {width:_0x117acb,height:_0x47c6bf}=_0x47a4ed['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x47a4ed['cdnUrl'],this['imageDimension']={'width':_0x117acb,'height':_0x47c6bf},this['imageId']=_0x47a4ed['uuid'],this['imageUploadProgress']=null;const _0x2a51bc=_0x5e2f85['getAttribute']('src');this['_imageCache']['set'](_0x2a51bc,{'id':_0x47a4ed['uuid'],'url':_0x47a4ed['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5c432e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5c432e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x33c9bf,_0x3821eb){_0x33c9bf['on']('apply',(_0x3d6c1b,_0x318659)=>{this['_replaceImage'](_0x3821eb,_0x318659['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x33c9bf['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x33c9bf['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x538aa0,_0x55a067,_0x2fa4ba){const _0x5ce7ab=this['_editor'],{width:_0x4a1137,height:_0x58cf0d}=C(_0x55a067,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x342308,imageSources:_0x46539f}=k(_0x55a067,_0x4a1137);_0x5ce7ab['model']['change'](_0x3e5244=>{if('$graveyard'===_0x538aa0['root']['rootName']){_0x5ce7ab['execute']('insertImage',{'imageType':_0x538aa0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x538aa0['getAttributes']()),'uploadcareImageId':_0x2fa4ba,'src':_0x342308,'sources':_0x46539f,'width':_0x4a1137,'height':_0x58cf0d}});const _0x4b6eaf=_0x538aa0['getChildren']();_0x538aa0=_0x5ce7ab['model']['document']['selection']['getSelectedElement']();for(const _0x1e77db of _0x4b6eaf)_0x3e5244['append'](_0x3e5244['cloneElement'](_0x1e77db),_0x538aa0);}else _0x3e5244['setSelection'](_0x538aa0,'on'),_0x5ce7ab['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x538aa0['getAttributes']()),'uploadcareImageId':_0x2fa4ba,'src':_0x342308,'sources':_0x46539f,'width':_0x4a1137,'height':_0x58cf0d},_0x538aa0);_0x3e5244['setSelection'](_0x538aa0,'on');});}async['_getImageAsFile'](_0xb3b6a1){const _0x486312=_0x26c421['window'],_0x19215a=_0x26c421['document']['location']['href'],_0x4370c7=new _0x486312['URL'](_0xb3b6a1['getAttribute']('src'),_0x19215a);if('data:'===_0x4370c7['protocol']){const _0x4f8aea=_0x4370c7['href']['split'](','),_0x3dbd2b=_0x4f8aea[0x0]['match'](/:(.*?);/)[0x1],_0x53234a=_0x3dbd2b['split']('/')[0x1],_0x2ad58d=_0x486312['atob'](_0x4f8aea[_0x4f8aea['length']-0x1]);let _0x852470=_0x2ad58d['length'];const _0x3f420c=new _0x486312['Uint8Array'](_0x852470);for(;_0x852470--;)_0x3f420c[_0x852470]=_0x2ad58d['charCodeAt'](_0x852470);return new _0x486312['File']([_0x3f420c],'image.'+_0x53234a,{'type':_0x3dbd2b});}const _0x994394=_0x4370c7['href']['split']('/'),_0x435ab5=_0x994394[_0x994394['length']-0x1],_0x54c785=_0x435ab5['split']('.')[0x1];return _0x486312['fetch'](_0x4370c7['href'])['then'](_0x449ee3=>_0x449ee3['clone']()['blob']())['then'](_0x5143e2=>new _0x486312['File']([_0x5143e2],_0x435ab5,{'type':'image/'+_0x54c785}));}}class O extends _0x384a2f{['imageEditController'];static get['requires'](){return[_0x3fbde9];}['_isEditable'];constructor(_0x2f3b7b){super(_0x2f3b7b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x56e552){const _0x4efa1f=G(_0x56e552);return _0x128d16=>!(!_0x128d16||!_0x128d16['is']('element','imageBlock')&&!_0x128d16['is']('element','imageInline'))&&(!!_0x128d16['hasAttribute']('uploadcareImageId')||!!_0x128d16['hasAttribute']('src')&&_0x4efa1f(_0x128d16['getAttribute']('src')));}(_0x2f3b7b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3e7404=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3e7404);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x10de53=this['editor']['model']['document']['selection']['getSelectedElement']();_0x10de53&&(_0x10de53['is']('element','imageBlock')||_0x10de53['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x3fbde9),_0x10de53),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x384a2f{['refresh'](){const _0x4613bb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4613bb&&(_0x4613bb['is']('element','imageBlock')||_0x4613bb['is']('element','imageInline')));}['execute'](_0x55cbb4){const _0x24c367=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5ab365=>{_0x5ab365['setAttributes'](_0x55cbb4,_0x24c367),_0x5ab365['removeAttribute']('srcset',_0x24c367),_0x5ab365['removeAttribute']('sizes',_0x24c367);});}}class m extends _0x149c7c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1d95e7,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x79a97c}=this;_0x79a97c['commands']['add']('uploadcareImageEdit',new O(_0x79a97c)),_0x79a97c['commands']['add']('uploadcareImageReplace',new R(_0x79a97c));}}class g extends _0x149c7c{['_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 _0x17ad51=this['editor'];_0x17ad51['ui']['componentFactory']['add']('uploadcareImageEdit',_0x340f21=>{const _0x277e44=_0x17ad51['commands']['get']('uploadcareImageEdit'),_0x7b4e02=new _0x527cc1(_0x340f21),t=_0x340f21['t'];return _0x7b4e02['set']({'icon':_0x12dde5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x7b4e02['bind']('isEnabled')['to'](_0x277e44),_0x7b4e02['bind']('isOn')['to'](_0x277e44,'isActive'),this['listenTo'](_0x7b4e02,'execute',()=>{_0x17ad51['execute']('uploadcareImageEdit'),_0x17ad51['editing']['view']['focus']();}),_0x7b4e02;}),this['_initConfig']();}['_initConfig'](){const _0x459c81=_0x5bad73(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x459c81),this['listenTo'](this['editor'],'destroy',()=>{_0x459c81['remove']();});}}class et extends _0x149c7c{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x1516d3,Command as _0x1e44da}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1a7b42,IconGooglePhotos as _0x46990e,IconGoogleDrive as _0x267861,IconFacebook as _0x355b73,IconDropbox as _0x50353a,IconUploadcareLink as _0x3dfea7,IconUploadcareImageUpload as _0x940fbe,IconError as _0x14b4bf,IconUploadcareImageEdit as _0x331908}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2ca024,MenuBarMenuListItemButtonView as _0x2fe9a7,View as _0x9102de,FocusCycler as _0x2dea7a,Dialog as _0x70f797,DialogViewPosition as _0xc598ac,SpinnerView as _0x24b222,IconView as _0x55ddcd,Notification as _0x21b8cc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3d4e9a,DomEmitterMixin as _0xf2cea0,global as _0x1cc2b2,getAncestors as _0x5869dc,ObservableMixin as _0x4e8520,uid as _0xccc7d6,createElement as _0x127ff0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x20c5ca}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x24c430,info as _0x4bb0e0}from'@uploadcare/upload-client';import*as _0x4f81fc from'@uploadcare/file-uploader';var i=function(_0x3ebdae){return _0x3ebdae['Local']='local',_0x3ebdae['URL']='url',_0x3ebdae['Dropbox']='dropbox',_0x3ebdae['GDrive']='gdrive',_0x3ebdae['Facebook']='facebook',_0x3ebdae['GPhotos']='gphotos',_0x3ebdae['OneDrive']='onedrive',_0x3ebdae;}({});function _(_0x2a255f,_0x7a4669,_0x44750c){const t=_0x2a255f['t'],_0x2ca8c2=_0x2a255f['t'];switch(_0x7a4669){case i['Local']:return{'text':_0x2ca8c2('Insert'===_0x44750c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2ca8c2('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x44750c?_0x2ca8c2('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2ca8c2('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x44750c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x44750c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x44750c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x44750c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x44750c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x7a4669;}}class e extends _0x1516d3{['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 _0x2272d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x273fd9;for(const _0x751a7a in _0x2272d3){const _0x525cbe=_0x751a7a,_0x488122=_0x2272d3[_0x525cbe];if('uploadcareLicenseKeyValid'==_0x488122||'uploadcareLicenseKeyInvalid'==_0x488122||'uploadcareLicenseKeyExpired'==_0x488122||'uploadcareLicenseKeyDomainLimit'==_0x488122||'uploadcareLicenseKeyNotAllowed'==_0x488122||'uploadcareLicenseKeyEvaluationLimit'==_0x488122||'uploadcareLicenseKeyTrialLimit'==_0x488122||'uploadcareLicenseKeyUsageLimit'==_0x488122){delete _0x2272d3[_0x525cbe],_0x273fd9=_0x488122,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x273fd9&&_0x2272d3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x273fd9&&_0x2272d3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x273fd9&&_0x2272d3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x273fd9&&_0x2272d3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x273fd9&&_0x2272d3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x273fd9&&_0x2272d3['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x273fd9&&_0x2272d3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x127e51}=this,_0x11a486=_0x127e51['commands']['get']('uploadcare');if(!_0x11a486)return;const _0xcbf3f3=this['_normalizeConfigSourceList'](_0x127e51['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xfc8a87,_0x9dfeff)=>{const _0x1714ff=this['_getIntegrationKey'](_0x9dfeff['type']);return _0xfc8a87[_0x1714ff]||(_0xfc8a87[_0x1714ff]=[]),_0xfc8a87[_0x1714ff]['push'](_0x9dfeff),_0xfc8a87;},{});_0x127e51['plugins']['has']('ImageInsertUI')&&_0x127e51['commands']['get']('uploadcare')&&Object['entries'](_0xcbf3f3)['forEach'](([_0x53c7f8,_0x4365fd])=>{_0x127e51['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x53c7f8,'observable':()=>_0x11a486,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4365fd),'formViewCreator':()=>this['_createDropdownButtons'](_0x4365fd),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4365fd),'override':'assetManager'!==_0x53c7f8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3ba1a5){const {locale:_0x401fe1}=this['editor'];return _0x3ba1a5['map'](_0x40a6ae=>{const _0x2d4d2c=_(_0x401fe1,_0x40a6ae,'Insert');switch(_0x40a6ae){case i['Local']:return{'icon':_0x940fbe,'type':i['Local'],..._0x2d4d2c};case i['URL']:return{'icon':_0x3dfea7,'type':i['URL'],..._0x2d4d2c};case i['Dropbox']:return{'icon':_0x50353a,'type':i['Dropbox'],..._0x2d4d2c};case i['Facebook']:return{'icon':_0x355b73,'type':i['Facebook'],..._0x2d4d2c};case i['GDrive']:return{'icon':_0x267861,'type':i['GDrive'],..._0x2d4d2c};case i['GPhotos']:return{'icon':_0x46990e,'type':i['GPhotos'],..._0x2d4d2c};case i['OneDrive']:return{'icon':_0x1a7b42,'type':i['OneDrive'],..._0x2d4d2c};}});}['_getIntegrationKey'](_0x14583f){switch(_0x14583f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1ec810,_0x1335b4){const _0x3bc01a=this['editor'],_0x269d63=new _0x1ec810(_0x3bc01a['locale']),_0x513689=_0x3bc01a['commands']['get']('uploadcare');return _0x269d63['bind']('isEnabled')['to'](_0x513689),_0x269d63['on']('execute',()=>{_0x513689['execute'](_0x1335b4);}),_0x269d63;}['_createToolbarButton'](_0x3f9bbf){const {locale:_0x489fef}=this['editor'],_0x532965=this['editor']['plugins']['get']('ImageInsertUI'),_0x4883c2=_0x3f9bbf[0x0],_0x14261d=this['_createButton'](_0x2ca024,_0x4883c2['type']);return _0x14261d['icon']=_0x4883c2['icon'],_0x14261d['bind']('label')['to'](_0x532965,'isImageSelected',_0x3d9def=>_(_0x489fef,_0x4883c2['type'],_0x3d9def?'Replace':'Insert')['text']),_0x14261d['tooltip']=!0x0,_0x14261d;}['_createDropdownButtons'](_0x52ff7c){const {locale:_0x316256}=this['editor'],_0x5a422b=this['editor']['plugins']['get']('ImageInsertUI');return _0x52ff7c['map'](_0x44a283=>{const _0x4e25d0=this['_createButton'](_0x2ca024,_0x44a283['type']);return _0x4e25d0['withText']=!0x0,_0x4e25d0['icon']=_0x44a283['icon'],_0x4e25d0['bind']('label')['to'](_0x5a422b,'isImageSelected',_0x4912f1=>_(_0x316256,_0x44a283['type'],_0x4912f1?'Replace':'Insert')['text']),_0x4e25d0;});}['_createMenuBarButtons'](_0x429cbb){return _0x429cbb['map'](_0x4b790e=>{const _0x1dc5e3=this['_createButton'](_0x2fe9a7,_0x4b790e['type']);return _0x1dc5e3['icon']=_0x4b790e['icon'],_0x1dc5e3['label']=_0x4b790e['shortText'],_0x1dc5e3;});}}class F extends _0x9102de{['focusTracker'];['focusCycler'];constructor(_0x2bc853){super(_0x2bc853),this['focusTracker']=new _0x3d4e9a(),this['focusCycler']=new _0x2dea7a({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0xd45adb,_0x12bdeb){super(_0xd45adb),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-'+_0x12bdeb}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x3a71cf,_0x59a918){const _0x1b2241=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3d9128=>_0x3d9128<=_0x59a918)['map'](_0x1c99d2=>_0x3a71cf['replace'](/\/$/,'')+'/-/resize/'+_0x1c99d2+'x/\x20'+_0x1c99d2+'w');return{'imageFallbackUrl':_0x3a71cf,'imageSources':[{'srcset':_0x1b2241['join'](',\x20'),'sizes':'(max-width:\x20'+_0x59a918+'px)\x20100vw,\x20'+_0x59a918+'px','type':'image/webp'}]};}function C(_0x5a881a,_0x59e348,_0x532491){const _0x1ca465=_0x5a881a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1ca465?parseInt(_0x1ca465[0x1],0xa):_0x59e348,'height':_0x1ca465?parseInt(_0x1ca465[0x2],0xa):_0x532491};}function p(_0x1cdeb7,_0x3355cd){const _0x5c0645=new(_0xf2cea0())(),_0x386a5b=_0x1cdeb7['plugins']['get']('ImageUtils'),_0x2ff508=_0x1cdeb7['editing']['mapper']['toViewElement'](_0x3355cd),_0x52c850=_0x386a5b['findViewImgElement'](_0x2ff508),_0x324301=_0x1cdeb7['editing']['view']['domConverter']['viewToDom'](_0x52c850),_0x4af872=_0x3355cd['getAttribute']('width'),_0xdee048=_0x3355cd['getAttribute']('height'),_0x88e9ed='image-processing';_0x1cdeb7['editing']['view']['change'](_0xc33300=>{_0xc33300['addClass'](_0x88e9ed,_0x2ff508),_0xc33300['setStyle']('aspect-ratio',_0x4af872+'/'+_0xdee048,_0x52c850);}),_0x5c0645['listenTo'](_0x324301,'load',()=>{_0x5c0645['stopListening'](_0x324301,'load'),_0x1cdeb7['editing']['view']['change'](_0x50c925=>{_0x50c925['removeClass'](_0x88e9ed,_0x2ff508),_0x50c925['removeStyle']('aspect-ratio',_0x52c850);});});}function G(_0x42c547){if(Array['isArray'](_0x42c547)){const _0x1b9210=_0x42c547['map'](G);return _0x4089d5=>_0x1b9210['some'](_0x2c6b47=>_0x2c6b47(_0x4089d5));}if('origin'==_0x42c547){const _0x1047df=_0x1cc2b2['window']['location']['origin'];return _0x4461c2=>new URL(_0x4461c2,_0x1cc2b2['document']['baseURI'])['origin']==_0x1047df;}return'function'==typeof _0x42c547?_0x42c547:_0x42c547 instanceof RegExp?_0x1e47fc=>!(!_0x1e47fc['match'](_0x42c547)&&!_0x1e47fc['replace'](/^https?:\/\//,'')['match'](_0x42c547)):()=>!0x1;}function S(_0x3c957b,_0x3beb55){return _0x5869dc(_0x3c957b['target'])['includes'](_0x3beb55);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4e8520(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xd6b882,_0x54e4a2,_0x8ca44){super(),this['_editor']=_0xd6b882,this['_editing']=_0x54e4a2,this['_dialog']=_0xd6b882['plugins']['get'](_0x70f797),this['_api']=_0x54e4a2['ctxElement']['getAPI'](),this['_type']=_0x8ca44,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:_0x5853a0,model:_0x5da4b2}=this['_editor'],_0x3aeb9f=_0x5da4b2['document']['selection']['getSelectedElement'](),_0x2f6ec3=_0x3aeb9f&&(_0x3aeb9f['is']('element','imageBlock')||_0x3aeb9f['is']('element','imageInline'));this['_formView']=new x(_0x5853a0,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x940fbe,'title':_(_0x5853a0,this['_type'],_0x2f6ec3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xc598ac['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x186ce2=>!S(_0x186ce2,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x236455}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x48f409=>{const _0x198439=_0x236455['length'];for(const _0x32748e of _0x236455){const _0x17b370=_0x32748e===_0x236455[_0x198439-0x1],{cdnUrl:_0x22c2f7,fileInfo:_0x44338d}=_0x32748e;if(!_0x22c2f7||!_0x44338d)continue;const {width:_0xfb77,height:_0x12fb56}=_0x44338d['imageInfo'],_0x494247=C(_0x22c2f7,_0xfb77,_0x12fb56),_0x40d414=k(_0x22c2f7,_0x494247['width']),_0x23970b={'id':_0x44338d['uuid'],'type':'image','attributes':{'imageDimension':_0x494247,..._0x40d414}};this['_insertAsset'](_0x23970b,_0x17b370,_0x48f409);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3678ce=>{'idle'===_0x3678ce['detail']['status']&&!_0x3678ce['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4de92e,_0x27adc4,_0x353de8){const _0x4b0518=this['_editor']['model']['document']['selection'],_0x440d2a=_0x4b0518['getSelectedElement'](),_0x32f1c2=!(!_0x440d2a||!_0x440d2a['is']('element','imageInline'));_0x353de8['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4de92e,_0x32f1c2),_0x27adc4||_0x353de8['setSelection'](_0x4b0518['getLastPosition']());}['_insertImage'](_0x11357a,_0xe949ae){const _0x1cc474=this['_editor'],{imageDimension:_0x399ea5,imageFallbackUrl:_0xf4b25d,imageSources:_0x5291d1}=_0x11357a['attributes'];_0x1cc474['execute']('insertImage',{'imageType':_0xe949ae?'imageInline':null,'source':{'uploadcareImageId':_0x11357a['id'],'src':_0xf4b25d,'sources':_0x5291d1,..._0x399ea5}});}}class w extends _0x1e44da{['_editing'];['_controller']=null;static get['requires'](){return[_0x70f797,o];}constructor(_0x2d8083){super(_0x2d8083),this['_editing']=_0x2d8083['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5f1f29){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5f1f29);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x526cc9,publicKey:_0x1e4ac9,signal:_0x3d03a6,onProgress:_0x43ed4f}){return _0x24c430(_0x526cc9,{'publicKey':_0x1e4ac9,'store':'auto','signal':_0x3d03a6,'onProgress':_0x43ed4f});}static['getInfo'](_0xbf0664,_0x4ae134){return _0x4bb0e0(_0xbf0664,_0x4ae134);}}class f extends _0x1516d3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x20c5ca,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4a5770=this['editor'];if(!!!_0x4a5770['config']['get']('uploadcare'))return;_0x4a5770['plugins']['get'](_0x20c5ca)['createUploadAdapter']=_0x2e866a=>new A(_0x2e866a,_0x4a5770),_0x4a5770['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x92be5d,{imageElement:_0x39eae2,data:_0x49254a})=>{_0x4a5770['model']['change'](_0x14587f=>{_0x14587f['setAttribute']('uploadcareImageId',_0x49254a['uploadcareImageId'],_0x39eae2);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x47c939,_0x347b1e){this['loader']=_0x47c939,this['editor']=_0x347b1e,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x13ffbd=this['editor']['config']['get']('uploadcare.pubkey'),_0x519fdd=await this['loader']['file'];return j['upload']({'file':_0x519fdd,'publicKey':_0x13ffbd,'signal':this['controller']['signal'],'onProgress':_0x2d267d=>{_0x2d267d&&_0x2d267d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2d267d['value']);}})['then'](async _0x3ea76e=>{const {imageFallbackUrl:_0xb98cba,imageSources:_0x5e4866}=k(_0x3ea76e['cdnUrl'],_0x3ea76e['imageInfo']['width']);return{'uploadcareImageId':_0x3ea76e['uuid'],'default':_0xb98cba,'sources':_0x5e4866};})['catch'](()=>{const _0x1ffcc5=t('Cannot\x20upload\x20file:')+('\x20'+_0x519fdd['name']+'.');return Promise['reject'](_0x1ffcc5);});}['abort'](){this['controller']['abort']();}}class o extends _0x1516d3{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x70f797];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xcafd3c){super(_0xcafd3c),this['ucContextId']=_0xccc7d6();}['init'](){const _0x247098=this['editor'];_0x247098['commands']['add']('uploadcare',new w(_0x247098));}['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 _0x53bd6a=_0x1cc2b2['document']['querySelector']('input[uploadcare-file-input]');_0x53bd6a&&_0x53bd6a['remove']();}),async function(_0x2214be){const _0x359ecc=_0x46a908([0x42,0x70,0x78,0x63,0x71,0x35,0x39,0x33,0x50,0x4d,0x61,0x4f,0x65,0x58,0x69,0x43,0x67,0x52,0x6b,0x54,0x77,0x31,0x48,0x4b,0x79,0x64,0x4c,0x49,0x7a,0x4a,0x57,0x74,0x6f,0x53,0x56,0x36,0x5a,0x32,0x76,0x51,0x75,0x45,0x4e,0x47,0x37,0x6d,0x41,0x38,0x6a,0x59,0x46,0x44,0x62,0x34,0x66,0x6c,0x30,0x73,0x55,0x6e,0x72,0x68]),_0x5113fa=0x7b27aef8,_0x1dc144=0x7b20c550^_0x5113fa,_0xacc17a=window[_0x46a908([0x44,0x61,0x74,0x65])][_0x46a908([0x6e,0x6f,0x77])](),_0x2ded50=_0x2214be[_0x46a908([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb45452=new window[(_0x46a908([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe2a0d0=>{_0x2ded50[_0x46a908([0x6f,0x6e,0x63,0x65])](_0x46a908([0x72,0x65,0x61,0x64,0x79]),_0xe2a0d0);}),_0x13d4e5={[_0x46a908([0x6b,0x74,0x79])]:_0x46a908([0x45,0x43]),[_0x46a908([0x75,0x73,0x65])]:_0x46a908([0x73,0x69,0x67]),[_0x46a908([0x63,0x72,0x76])]:_0x46a908([0x50,0x2d,0x32,0x35,0x36]),[_0x46a908([0x78])]:_0x46a908([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]),[_0x46a908([0x79])]:_0x46a908([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]),[_0x46a908([0x61,0x6c,0x67])]:_0x46a908([0x45,0x53,0x32,0x35,0x36])},_0x7dc5c=_0x2ded50[_0x46a908([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x46a908([0x67,0x65,0x74])](_0x46a908([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x435caa(){let _0xa47068,_0x3eb0ae=null,_0x20df40=null;try{if(_0x7dc5c==_0x46a908([0x47,0x50,0x4c]))return _0x46a908([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa47068=_0x34c208(),!_0xa47068)return _0x46a908([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa47068[_0x46a908([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x20df40=_0x16e5f6(_0xa47068[_0x46a908([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa47068[_0x46a908([0x6a,0x74,0x69])])),await _0x3e291c()?_0x1fdb80()?_0x4df177()?_0x46a908([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x517911()?(_0xa47068[_0x46a908([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46a908([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3eb0ae=_0x3209c9(_0x46a908([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xa47068[_0x46a908([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46a908([0x74,0x72,0x69,0x61,0x6c])&&(_0x3eb0ae=_0x3209c9(_0x46a908([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xec908e()):_0x46a908([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x46a908([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x46a908([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x46a908([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4df177(){const _0xc4e18b=[_0x46a908([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x46a908([0x74,0x72,0x69,0x61,0x6c])][_0x46a908([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa47068[_0x46a908([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xacc17a/0x3e8:0xe10*_0x1dc144;return _0xa47068[_0x46a908([0x65,0x78,0x70])]<_0xc4e18b;}function _0x1fdb80(){const _0x1e5eea=_0xa47068[_0x46a908([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1e5eea&&(!!_0x1e5eea[_0x46a908([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46a908([0x2a]))||!!_0x1e5eea[_0x46a908([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46a908([0x55,0x50,0x4c,0x43])));}function _0x517911(){const _0x3b055e=_0xa47068[_0x46a908([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b055e||0x0==_0x3b055e[_0x46a908([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2f2cb9}=new URL(window[_0x46a908([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b055e[_0x46a908([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f2cb9))return!0x0;const _0xab174f=_0x2f2cb9[_0x46a908([0x73,0x70,0x6c,0x69,0x74])](_0x46a908([0x2e]));return _0x3b055e[_0x46a908([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15480d=>_0x15480d[_0x46a908([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46a908([0x2a])))[_0x46a908([0x6d,0x61,0x70])](_0x4d39ec=>_0x4d39ec[_0x46a908([0x73,0x70,0x6c,0x69,0x74])](_0x46a908([0x2e])))[_0x46a908([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49624b=>_0x49624b[_0x46a908([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xab174f[_0x46a908([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46a908([0x6d,0x61,0x70])](_0x4821f8=>Array(_0xab174f[_0x46a908([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4821f8[_0x46a908([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46a908([0x66,0x69,0x6c,0x6c])](_0x4821f8[0x0]===_0x46a908([0x2a])?_0x46a908([0x2a]):'')[_0x46a908([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4821f8))[_0x46a908([0x73,0x6f,0x6d,0x65])](_0xe73b63=>_0xab174f[_0x46a908([0x65,0x76,0x65,0x72,0x79])]((_0x32e74a,_0x4d7b9f)=>_0xe73b63[_0x4d7b9f]===_0x32e74a||_0xe73b63[_0x4d7b9f]===_0x46a908([0x2a])));}function _0xec908e(){return _0x3eb0ae&&_0x20df40?new window[(_0x46a908([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29d4f5,_0x46a692)=>{_0x3eb0ae[_0x46a908([0x74,0x68,0x65,0x6e])](_0x29d4f5,_0x46a692),_0x20df40[_0x46a908([0x74,0x68,0x65,0x6e])](_0x18a38b=>{_0x18a38b!=_0x46a908([0x56,0x61,0x6c,0x69,0x64])&&_0x29d4f5(_0x18a38b);},_0x46a692);}):_0x3eb0ae||_0x20df40||_0x46a908([0x56,0x61,0x6c,0x69,0x64]);}}function _0x16e5f6(_0x26eef1,_0x3c1ebc){return new window[(_0x46a908([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b70af=>{if(_0x1c381e())return _0x5b70af(_0x46a908([0x56,0x61,0x6c,0x69,0x64]));_0x1a9798(),_0x2ded50[_0x46a908([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x46a908([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xade4d8=!0x1;const _0x4f4824=_0xccc7d6();function _0x41f70a(_0x3939e6){return!!_0x3939e6&&(typeof _0x3939e6===_0x46a908([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3939e6===_0x46a908([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3939e6[_0x46a908([0x74,0x68,0x65,0x6e])]===_0x46a908([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3939e6[_0x46a908([0x63,0x61,0x74,0x63,0x68])]===_0x46a908([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3cf3f(_0x4e511a){_0x47b009(_0x4e511a)[_0x46a908([0x74,0x68,0x65,0x6e])](_0x388473=>{if(!_0x388473||_0x388473[_0x46a908([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x46a908([0x6f,0x6b]))return _0x46a908([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e71a0(_0x56fcc0(_0x4f4824+_0x3c1ebc))!=_0x388473[_0x46a908([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x46a908([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x46a908([0x56,0x61,0x6c,0x69,0x64]);})[_0x46a908([0x74,0x68,0x65,0x6e])](_0x2b30ee=>(_0x20e7a4(),_0x2b30ee),()=>{const _0x40ebc2=_0x5bf0bd();return null==_0x40ebc2?(_0x20e7a4(),_0x46a908([0x56,0x61,0x6c,0x69,0x64])):_0x46a908(_0xacc17a-_0x40ebc2>(0x5f2b2af8^_0x5113fa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x46a908([0x74,0x68,0x65,0x6e])](_0x5b70af)[_0x46a908([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b70af(_0x46a908([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a28a6=0x7b114078^_0x5113fa;function _0x20e7a4(){const _0x2dee74=_0x46a908([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e71a0(_0x56fcc0(_0x26eef1)),_0x2d140e=_0x43de24(_0x4e71a0(window[_0x46a908([0x4d,0x61,0x74,0x68])][_0x46a908([0x63,0x65,0x69,0x6c])](_0xacc17a/_0x1a28a6)));window[_0x46a908([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46a908([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2dee74,_0x2d140e);}function _0x5bf0bd(){const _0xc207b9=_0x46a908([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e71a0(_0x56fcc0(_0x26eef1)),_0x47b94e=window[_0x46a908([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46a908([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc207b9);return _0x47b94e?window[_0x46a908([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43de24(_0x47b94e),0x10)*_0x1a28a6:null;}function _0x47b009(_0x4d6609){return new window[(_0x46a908([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5dabb0,_0x46ca37)=>{_0x4d6609[_0x46a908([0x74,0x68,0x65,0x6e])](_0x5dabb0,_0x46ca37),window[_0x46a908([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46ca37,0x7b267a38^_0x5113fa);});}}_0x2ded50[_0x46a908([0x6f,0x6e])](_0x46a908([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12f8a1,_0x307084)=>{if(_0x307084[0x0]!=_0x26eef1)return _0x5b70af(_0x46a908([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x307084[0x1]={..._0x307084[0x1],[_0x46a908([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4f4824};},{[_0x46a908([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46a908([0x68,0x69,0x67,0x68])}),_0x2ded50[_0x46a908([0x6f,0x6e])](_0x46a908([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x47342b=>{_0x41f70a(_0x47342b[_0x46a908([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xade4d8=!0x0,_0x3cf3f(_0x47342b[_0x46a908([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x46a908([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46a908([0x6c,0x6f,0x77])}),_0xb45452[_0x46a908([0x74,0x68,0x65,0x6e])](()=>{_0xade4d8||_0x5b70af(_0x46a908([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c381e(){return _0x2ded50[_0x46a908([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46a908([0x76,0x69,0x65,0x77])][_0x46a908([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x46a908([0x61,0x75,0x74,0x6f]);}function _0x1a9798(){_0x2ded50[_0x46a908([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46a908([0x76,0x69,0x65,0x77])][_0x46a908([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x46a908([0x61,0x75,0x74,0x6f]);}}function _0x3209c9(_0x465c7c){const _0x41fbb1=[new window[(_0x46a908([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4877a9=>setTimeout(_0x4877a9,0x7b2e9034^_0x5113fa)),_0xb45452[_0x46a908([0x74,0x68,0x65,0x6e])](()=>new window[(_0x46a908([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b8e4c=>{let _0x4ee7c8=0x0;_0x2ded50[_0x46a908([0x6d,0x6f,0x64,0x65,0x6c])][_0x46a908([0x6f,0x6e])](_0x46a908([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2da016,_0x33691e)=>{_0x33691e[0x0][_0x46a908([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4ee7c8++,_0x4ee7c8==(0x7b27af00^_0x5113fa)&&(_0x5b8e4c(),_0x2da016[_0x46a908([0x6f,0x66,0x66])]());});}))];return window[_0x46a908([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x46a908([0x72,0x61,0x63,0x65])](_0x41fbb1)[_0x46a908([0x74,0x68,0x65,0x6e])](()=>_0x465c7c);}async function _0x471579(){await _0xb45452,_0x2ded50[_0x46a908([0x6d,0x6f,0x64,0x65,0x6c])][_0x46a908([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x12adc8,_0x2ded50[_0x46a908([0x6d,0x6f,0x64,0x65,0x6c])][_0x46a908([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x12adc8,_0x2ded50[_0x46a908([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x46a908([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xaed5a8(_0x67c28f){const _0x9889ab=_0x578e2a();_0x2ded50[_0x9889ab]=_0x46a908([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x67c28f,_0x67c28f!=_0x46a908([0x56,0x61,0x6c,0x69,0x64])&&_0x471579();}function _0x578e2a(){const _0x121336=window[_0x46a908([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x46a908([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x46a908([0x6e,0x6f,0x77])]())[_0x46a908([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x46a908([0x2e]),'');let _0x540213=_0x46a908([0x42]);for(let _0x2e4b5b=0x0;_0x2e4b5b<_0x121336[_0x46a908([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e4b5b+=0x2){let _0x56b0ca=window[_0x46a908([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x121336[_0x46a908([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e4b5b,_0x2e4b5b+0x2));_0x56b0ca>=_0x359ecc[_0x46a908([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56b0ca-=_0x359ecc[_0x46a908([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x540213+=_0x359ecc[_0x56b0ca];}return _0x540213;}function _0x34c208(){const _0x1f85f6=_0x7dc5c[_0x46a908([0x73,0x70,0x6c,0x69,0x74])](_0x46a908([0x2e]));if(0x3!=_0x1f85f6[_0x46a908([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x15db6e(_0x1f85f6[0x1]);function _0x15db6e(_0x498bd2){const _0x197279=_0x64d8ee(_0x498bd2);return _0x197279&&_0x2f9953()?_0x197279:null;function _0x2f9953(){const _0x319ad8=_0x197279[_0x46a908([0x6a,0x74,0x69])],_0x182d4c=window[_0x46a908([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x319ad8[_0x46a908([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x319ad8[_0x46a908([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5cf7ae={..._0x197279,[_0x46a908([0x6a,0x74,0x69])]:_0x319ad8[_0x46a908([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x319ad8[_0x46a908([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5cf7ae[_0x46a908([0x76,0x63])],_0x56fcc0(_0x5cf7ae)==_0x182d4c;}}}async function _0x3e291c(){let _0x56990a=!0x0;try{const _0x142775=_0x7dc5c[_0x46a908([0x73,0x70,0x6c,0x69,0x74])](_0x46a908([0x2e])),[_0x3bf101,_0x52f6d4,_0x1a3387]=_0x142775;return _0x330b7e(_0x3bf101),await _0xd01427(_0x3bf101,_0x52f6d4,_0x1a3387),_0x56990a;}catch{return!0x1;}function _0x330b7e(_0x210c0f){const _0x32236f=_0x64d8ee(_0x210c0f);_0x32236f&&_0x32236f[_0x46a908([0x61,0x6c,0x67])]==_0x46a908([0x45,0x53,0x32,0x35,0x36])||(_0x56990a=!0x1);}async function _0xd01427(_0x463948,_0xaf766d,_0x3629ef){const _0x37876d=window[_0x46a908([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x46a908([0x66,0x72,0x6f,0x6d])](_0x685a69(_0x3629ef),_0x129484=>_0x129484[_0x46a908([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x302c76=new window[(_0x46a908([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x46a908([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x463948+_0x46a908([0x2e])+_0xaf766d),_0x34d902=window[_0x46a908([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x46a908([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x34d902)return;const _0x55b145=await _0x34d902[_0x46a908([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x46a908([0x6a,0x77,0x6b]),_0x13d4e5,{[_0x46a908([0x6e,0x61,0x6d,0x65])]:_0x46a908([0x45,0x43,0x44,0x53,0x41]),[_0x46a908([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x46a908([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x46a908([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x34d902[_0x46a908([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x46a908([0x6e,0x61,0x6d,0x65])]:_0x46a908([0x45,0x43,0x44,0x53,0x41]),[_0x46a908([0x68,0x61,0x73,0x68])]:{[_0x46a908([0x6e,0x61,0x6d,0x65])]:_0x46a908([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x55b145,_0x37876d,_0x302c76)||(_0x56990a=!0x1);}}function _0x64d8ee(_0xd132){return _0xd132[_0x46a908([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x46a908([0x65,0x79]))?JSON[_0x46a908([0x70,0x61,0x72,0x73,0x65])](_0x685a69(_0xd132)):null;}function _0x685a69(_0x59bb1a){return window[_0x46a908([0x61,0x74,0x6f,0x62])](_0x59bb1a[_0x46a908([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x46a908([0x2b]))[_0x46a908([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x46a908([0x2f])));}function _0x56fcc0(_0x59b549){let _0x3b1216=0x1505;function _0x31dd4b(_0x3b041a){for(let _0x85a8be=0x0;_0x85a8be<_0x3b041a[_0x46a908([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x85a8be++){const _0x29102c=_0x3b041a[_0x46a908([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x85a8be);_0x3b1216=(_0x3b1216<<0x5)+_0x3b1216+_0x29102c,_0x3b1216&=_0x3b1216;}}function _0x214aba(_0x4ba55c){Array[_0x46a908([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ba55c)?_0x4ba55c[_0x46a908([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x214aba):_0x4ba55c&&typeof _0x4ba55c==_0x46a908([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x46a908([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ba55c)[_0x46a908([0x73,0x6f,0x72,0x74])]()[_0x46a908([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d950f,_0xb35bc7])=>{_0x31dd4b(_0x1d950f),_0x214aba(_0xb35bc7);}):_0x31dd4b(window[_0x46a908([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ba55c));}return _0x214aba(_0x59b549),_0x3b1216>>>0x0;}function _0x4e71a0(_0x395a62){return _0x395a62[_0x46a908([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x46a908([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x46a908([0x30]));}function _0x43de24(_0x4b3feb){return _0x4b3feb[_0x46a908([0x73,0x70,0x6c,0x69,0x74])]('')[_0x46a908([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x46a908([0x6a,0x6f,0x69,0x6e])]('');}function _0x12adc8(){}function _0x46a908(_0xcbf0e7){return _0xcbf0e7['map'](_0x1a3fa9=>String['fromCharCode'](_0x1a3fa9))['join']('');}_0xaed5a8(await _0x435caa());}(this);}['_initSchema'](){const _0x40e319=this['editor']['model']['schema'];_0x40e319['isRegistered']('imageBlock')&&_0x40e319['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x40e319['isRegistered']('imageInline')&&_0x40e319['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3a0f83=this['editor'];_0x3a0f83['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3a0f83['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4b34c6=>_0x4b34c6['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x255d50=_0x3a0f83['commands']['get']('replaceImageSource');_0x255d50&&this['listenTo'](_0x255d50,'cleanupImage',(_0x331093,[_0x26ccda,_0x48bef8])=>{_0x26ccda['removeAttribute']('uploadcareImageId',_0x48bef8);});}['_initConfig'](){const _0x10452b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3a7fe2=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x127ff0(_0x1cc2b2['document'],'uc-config',{..._0x10452b,'pubkey':_0x3a7fe2,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x6147be=>{if('closeMax'==_0x6147be)return'#uc-icon-arrow-down';},_0x1cc2b2['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x127ff0(_0x1cc2b2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1cc2b2['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4754eb=this['editor']['commands']['get']('insertImage');_0x4754eb&&this['listenTo'](_0x4754eb,'execute',()=>{const _0x2e3284=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2e3284&&_0x2e3284['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2e3284);});});const _0x4100ce=this['editor']['commands']['get']('uploadcareImageReplace');_0x4100ce&&this['listenTo'](_0x4100ce,'execute',()=>{const _0x20ce48=this['editor']['model']['document']['selection']['getSelectedElement']();_0x20ce48&&_0x20ce48['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x20ce48);});});}}class tt extends _0x1516d3{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2201ce){super(_0x2201ce),_0x2201ce['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4f81fc['defineComponents'](_0x4f81fc);}}class ii extends _0x9102de{constructor(_0x2832c4){super(_0x2832c4);const t=_0x2832c4['t'],_0x27a600=this['bindTemplate'],_0x324619=new _0x24b222();_0x324619['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':[_0x324619,{'text':_0x27a600['to']('imageUploadProgress',_0xe74f6a=>t('Loading\x20image...')+'\x20('+(_0xe74f6a||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x9102de{constructor(_0x647e9c){super(_0x647e9c);const t=_0x647e9c['t'];this['set']('errorType',null);const _0x249d8e=new _0x2ca024(_0x647e9c);_0x249d8e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x249d8e['withText']=!0x0,_0x249d8e['class']='ck-button-action',_0x249d8e['on']('execute',()=>{this['fire']('retry');}),_0x249d8e['bind']('isVisible')['to'](this,'errorType',_0x1b411e=>'NotFound'!==_0x1b411e);const _0x4ccc94=new _0x55ddcd();_0x4ccc94['content']=_0x14b4bf,_0x4ccc94['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x468ef9=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':[_0x4ccc94,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x468ef9['to']('errorType',_0x520741=>t('NotFound'!==_0x520741?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x249d8e]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x9102de{constructor(_0x42940c,_0x4c8451){super(_0x42940c);const _0x2128ca=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4c8451,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2128ca['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5854aa,_0x2609bb,_0x2d6e2a){super(_0x5854aa),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5854aa),this['_errorView']=new ti(_0x5854aa),this['_editingView']=new ei(_0x5854aa,_0x2d6e2a),this['_focusableView']=new _0x9102de(_0x5854aa),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2609bb),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'],_0x3dfe6e=>{this['_addUploadcareImageEditorListeners'](_0x3dfe6e);});}),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'](_0x1fda74,_0x273369){const _0x4dda97='uc-cloud-image-editor',_0xe78a95=_0x1fda74['querySelector'](_0x4dda97);if(_0xe78a95)return _0x273369(_0xe78a95);const _0x558c86=new MutationObserver(_0x1ab53e=>{const _0x181337=_0x1ab53e['filter'](_0x20dcaf=>_0x20dcaf['target']===_0x1fda74&&_0x20dcaf['addedNodes']['length']>0x0&&_0x20dcaf['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4dda97);_0x181337['length']&&(_0x558c86['disconnect'](),_0x273369(_0x181337[0x0]['addedNodes'][0x0]));});_0x558c86['observe'](_0x1fda74,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x239a92){_0x239a92['addEventListener']('apply',_0x45a749=>{this['fire']('apply',{'imageSrc':_0x45a749['detail']['cdnUrl']});}),_0x239a92['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4e8520(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x23a93,_0x53ce2a,_0x142ce5){super(),this['_editor']=_0x23a93,this['_dialog']=_0x53ce2a,this['_imageElement']=_0x142ce5,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 _0xf5ab5a=this['_imageElement'],_0x495e9e=_0xf5ab5a['getAttribute']('uploadcareImageId'),_0x42daf1=_0xf5ab5a['getAttribute']('src');if(_0x495e9e)await this['_loadImageInfo'](_0x495e9e,_0x42daf1);else{if(this['_imageCache']['has'](_0x42daf1)){const _0x147bce=this['_imageCache']['get'](_0x42daf1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x147bce['url'],this['imageDimension']=_0x147bce['dimension'],this['imageId']=_0x147bce['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1a90bf}=this['_editor'],t=_0x1a90bf['t'],_0x732d63=new X(_0x1a90bf,this['imageStatus'],this['_attributes']);_0x732d63['bind']('status')['to'](this,'imageStatus'),_0x732d63['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x732d63['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x732d63['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x732d63,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x331908,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x732d63,'position':_0xc598ac['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x732d63['focus']();},'onHide':()=>{_0x732d63['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x42d68e=>!S(_0x42d68e,_0x732d63['element'])}});}['_loadImageInfo'](_0x18061f,_0x3c857b){return j['getInfo'](_0x18061f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1705df=>{const {width:_0x20c863,height:_0x14053a}=_0x1705df['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c857b,this['imageDimension']={'width':_0x20c863,'height':_0x14053a},this['imageId']=_0x18061f;})['catch'](_0x298db8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x298db8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4714a5,_0x57268a){return this['_getImageAsFile'](_0x4714a5)['then'](_0x688aed=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x57268a['signal'],'file':_0x688aed,'onProgress':_0x5d5607=>{_0x5d5607&&_0x5d5607['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5d5607['value']));}}))['then'](_0x196551=>{const {width:_0x3c388c,height:_0x3e711e}=_0x196551['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x196551['cdnUrl'],this['imageDimension']={'width':_0x3c388c,'height':_0x3e711e},this['imageId']=_0x196551['uuid'],this['imageUploadProgress']=null;const _0x4c0fcf=_0x4714a5['getAttribute']('src');this['_imageCache']['set'](_0x4c0fcf,{'id':_0x196551['uuid'],'url':_0x196551['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1df99d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1df99d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x463e69,_0x4fc6a7){_0x463e69['on']('apply',(_0x4a42d9,_0x56fd77)=>{this['_replaceImage'](_0x4fc6a7,_0x56fd77['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x463e69['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x463e69['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3de36b,_0x512927,_0x559fd6){const _0x3fff72=this['_editor'],{width:_0x2fc376,height:_0x4ad0fe}=C(_0x512927,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x404753,imageSources:_0x2c20cf}=k(_0x512927,_0x2fc376);_0x3fff72['model']['change'](_0x2f17a2=>{if('$graveyard'===_0x3de36b['root']['rootName']){_0x3fff72['execute']('insertImage',{'imageType':_0x3de36b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3de36b['getAttributes']()),'uploadcareImageId':_0x559fd6,'src':_0x404753,'sources':_0x2c20cf,'width':_0x2fc376,'height':_0x4ad0fe}});const _0x494dc3=_0x3de36b['getChildren']();_0x3de36b=_0x3fff72['model']['document']['selection']['getSelectedElement']();for(const _0x145ade of _0x494dc3)_0x2f17a2['append'](_0x2f17a2['cloneElement'](_0x145ade),_0x3de36b);}else _0x2f17a2['setSelection'](_0x3de36b,'on'),_0x3fff72['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3de36b['getAttributes']()),'uploadcareImageId':_0x559fd6,'src':_0x404753,'sources':_0x2c20cf,'width':_0x2fc376,'height':_0x4ad0fe},_0x3de36b);_0x2f17a2['setSelection'](_0x3de36b,'on');});}async['_getImageAsFile'](_0x7e95e8){const _0x33841d=_0x1cc2b2['window'],_0x51fb54=_0x1cc2b2['document']['location']['href'],_0x4b0bc3=new _0x33841d['URL'](_0x7e95e8['getAttribute']('src'),_0x51fb54);if('data:'===_0x4b0bc3['protocol']){const _0x6f3629=_0x4b0bc3['href']['split'](','),_0x1fe076=_0x6f3629[0x0]['match'](/:(.*?);/)[0x1],_0x486921=_0x1fe076['split']('/')[0x1],_0x56124c=_0x33841d['atob'](_0x6f3629[_0x6f3629['length']-0x1]);let _0x4e60dd=_0x56124c['length'];const _0x2d2122=new _0x33841d['Uint8Array'](_0x4e60dd);for(;_0x4e60dd--;)_0x2d2122[_0x4e60dd]=_0x56124c['charCodeAt'](_0x4e60dd);return new _0x33841d['File']([_0x2d2122],'image.'+_0x486921,{'type':_0x1fe076});}const _0x2b9b71=_0x4b0bc3['href']['split']('/'),_0x6d8dac=_0x2b9b71[_0x2b9b71['length']-0x1],_0x4e8e78=_0x6d8dac['split']('.')[0x1];return _0x33841d['fetch'](_0x4b0bc3['href'])['then'](_0x135014=>_0x135014['clone']()['blob']())['then'](_0x152b2a=>new _0x33841d['File']([_0x152b2a],_0x6d8dac,{'type':'image/'+_0x4e8e78}));}}class O extends _0x1e44da{['imageEditController'];static get['requires'](){return[_0x70f797];}['_isEditable'];constructor(_0x5805d2){super(_0x5805d2),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x6da6d1){const _0x1a6d11=G(_0x6da6d1);return _0x2270ea=>!(!_0x2270ea||!_0x2270ea['is']('element','imageBlock')&&!_0x2270ea['is']('element','imageInline'))&&(!!_0x2270ea['hasAttribute']('uploadcareImageId')||!!_0x2270ea['hasAttribute']('src')&&_0x1a6d11(_0x2270ea['getAttribute']('src')));}(_0x5805d2['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x14e987=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x14e987);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x469913=this['editor']['model']['document']['selection']['getSelectedElement']();_0x469913&&(_0x469913['is']('element','imageBlock')||_0x469913['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x70f797),_0x469913),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x1e44da{['refresh'](){const _0x1e3940=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1e3940&&(_0x1e3940['is']('element','imageBlock')||_0x1e3940['is']('element','imageInline')));}['execute'](_0xe59b10){const _0x3f36e7=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3c6c40=>{_0x3c6c40['setAttributes'](_0xe59b10,_0x3f36e7),_0x3c6c40['removeAttribute']('srcset',_0x3f36e7),_0x3c6c40['removeAttribute']('sizes',_0x3f36e7);});}}class m extends _0x1516d3{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x21b8cc,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x143644}=this;_0x143644['commands']['add']('uploadcareImageEdit',new O(_0x143644)),_0x143644['commands']['add']('uploadcareImageReplace',new R(_0x143644));}}class g extends _0x1516d3{['_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 _0x5c148a=this['editor'];_0x5c148a['ui']['componentFactory']['add']('uploadcareImageEdit',_0x6e0442=>{const _0x1d2e72=_0x5c148a['commands']['get']('uploadcareImageEdit'),_0x55485c=new _0x2ca024(_0x6e0442),t=_0x6e0442['t'];return _0x55485c['set']({'icon':_0x331908,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x55485c['bind']('isEnabled')['to'](_0x1d2e72),_0x55485c['bind']('isOn')['to'](_0x1d2e72,'isActive'),this['listenTo'](_0x55485c,'execute',()=>{_0x5c148a['execute']('uploadcareImageEdit'),_0x5c148a['editing']['view']['focus']();}),_0x55485c;}),this['_initConfig']();}['_initConfig'](){const _0x3ee0f6=_0x127ff0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3ee0f6),this['listenTo'](this['editor'],'destroy',()=>{_0x3ee0f6['remove']();});}}class et extends _0x1516d3{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x5aa7f4=>0x1!=_0x5aa7f4}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x39d597=>{const {af:{dictionary:_0x4a0c64,getPluralForm:_0x53abc9}}={'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':_0x2d4b07=>0x1!=_0x2d4b07}};_0x39d597['af']||={'dictionary':{},'getPluralForm':null},_0x39d597['af']['dictionary']=Object['assign'](_0x39d597['af']['dictionary'],_0x4a0c64),_0x39d597['af']['getPluralForm']=_0x53abc9;})(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':_0x3e0ba2=>0x0==_0x3e0ba2?0x0:0x1==_0x3e0ba2?0x1:0x2==_0x3e0ba2?0x2:_0x3e0ba2%0x64>=0x3&&_0x3e0ba2%0x64<=0xa?0x3:_0x3e0ba2%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x15be37=>{const {ar:{dictionary:_0x123606,getPluralForm:_0x20e002}}={'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':_0xc889bb=>0x0==_0xc889bb?0x0:0x1==_0xc889bb?0x1:0x2==_0xc889bb?0x2:_0xc889bb%0x64>=0x3&&_0xc889bb%0x64<=0xa?0x3:_0xc889bb%0x64>=0xb?0x4:0x5}};_0x15be37['ar']||={'dictionary':{},'getPluralForm':null},_0x15be37['ar']['dictionary']=Object['assign'](_0x15be37['ar']['dictionary'],_0x123606),_0x15be37['ar']['getPluralForm']=_0x20e002;})(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':_0x37ce7b=>0x1!=_0x37ce7b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5e6f66=>{const {ast:{dictionary:_0xfdea6b,getPluralForm:_0x2a8e02}}={'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':_0x536b77=>0x1!=_0x536b77}};_0x5e6f66['ast']||={'dictionary':{},'getPluralForm':null},_0x5e6f66['ast']['dictionary']=Object['assign'](_0x5e6f66['ast']['dictionary'],_0xfdea6b),_0x5e6f66['ast']['getPluralForm']=_0x2a8e02;})(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':_0x1527f5=>0x1!=_0x1527f5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2d59fb=>{const {az:{dictionary:_0x3936da,getPluralForm:_0x55a998}}={'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':_0x420709=>0x1!=_0x420709}};_0x2d59fb['az']||={'dictionary':{},'getPluralForm':null},_0x2d59fb['az']['dictionary']=Object['assign'](_0x2d59fb['az']['dictionary'],_0x3936da),_0x2d59fb['az']['getPluralForm']=_0x55a998;})(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':_0x4f19e8=>_0x4f19e8%0xa==0x1&&_0x4f19e8%0x64!=0xb?0x0:_0x4f19e8%0xa>=0x2&&_0x4f19e8%0xa<=0x4&&(_0x4f19e8%0x64<0xa||_0x4f19e8%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2dd873=>{const {be:{dictionary:_0x1549e6,getPluralForm:_0x263265}}={'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':_0x53696f=>_0x53696f%0xa==0x1&&_0x53696f%0x64!=0xb?0x0:_0x53696f%0xa>=0x2&&_0x53696f%0xa<=0x4&&(_0x53696f%0x64<0xa||_0x53696f%0x64>=0x14)?0x1:0x2}};_0x2dd873['be']||={'dictionary':{},'getPluralForm':null},_0x2dd873['be']['dictionary']=Object['assign'](_0x2dd873['be']['dictionary'],_0x1549e6),_0x2dd873['be']['getPluralForm']=_0x263265;})(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':_0x4fa0e0=>0x1!=_0x4fa0e0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4e709f=>{const {bg:{dictionary:_0x368647,getPluralForm:_0x426e77}}={'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':_0x2c4573=>0x1!=_0x2c4573}};_0x4e709f['bg']||={'dictionary':{},'getPluralForm':null},_0x4e709f['bg']['dictionary']=Object['assign'](_0x4e709f['bg']['dictionary'],_0x368647),_0x4e709f['bg']['getPluralForm']=_0x426e77;})(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':_0x254787=>0x1!=_0x254787}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x42a73c=>{const {bn:{dictionary:_0x56a227,getPluralForm:_0x5c0152}}={'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':_0x42dbdb=>0x1!=_0x42dbdb}};_0x42a73c['bn']||={'dictionary':{},'getPluralForm':null},_0x42a73c['bn']['dictionary']=Object['assign'](_0x42a73c['bn']['dictionary'],_0x56a227),_0x42a73c['bn']['getPluralForm']=_0x5c0152;})(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':_0x497e4c=>_0x497e4c%0xa==0x1&&_0x497e4c%0x64!=0xb?0x0:_0x497e4c%0xa>=0x2&&_0x497e4c%0xa<=0x4&&(_0x497e4c%0x64<0xa||_0x497e4c%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x397d3a=>{const {bs:{dictionary:_0x11c6ec,getPluralForm:_0x130e4d}}={'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':_0x5e1470=>_0x5e1470%0xa==0x1&&_0x5e1470%0x64!=0xb?0x0:_0x5e1470%0xa>=0x2&&_0x5e1470%0xa<=0x4&&(_0x5e1470%0x64<0xa||_0x5e1470%0x64>=0x14)?0x1:0x2}};_0x397d3a['bs']||={'dictionary':{},'getPluralForm':null},_0x397d3a['bs']['dictionary']=Object['assign'](_0x397d3a['bs']['dictionary'],_0x11c6ec),_0x397d3a['bs']['getPluralForm']=_0x130e4d;})(window['CKEDITOR_TRANSLATIONS']||={});
|