@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250616.0 → 0.0.0-nightly-20250618.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 +10 -10
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.d.ts +1 -1
- 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.d.ts +11 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +2 -6
- 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 _0x4a984b,Command as _0x36d961}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x7caaf5,IconGooglePhotos as _0x38e42,IconGoogleDrive as _0x60fcbd,IconFacebook as _0x14bef6,IconDropbox as _0x4e41bb,IconUploadcareLink as _0x483d77,IconUploadcareImageUpload as _0xf280e8,IconError as _0x4cfd49,IconUploadcareImageEdit as _0xcc08}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4a1729,MenuBarMenuListItemButtonView as _0x3bcc21,View as _0x429902,FocusCycler as _0x73b108,Dialog as _0x2269f1,DialogViewPosition as _0x466743,SpinnerView as _0x2d73c2,IconView as _0x115457,Notification as _0x50d031}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x419141,DomEmitterMixin as _0x1ad474,global as _0x1769cf,getAncestors as _0x48bda9,ObservableMixin as _0xe99d8f,createElement as _0x949c90,uid as _0x4b6330}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x44bcdd}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xc2d213,info as _0x100881}from'@uploadcare/upload-client';import*as _0x3e6419 from'@uploadcare/file-uploader';var i=function(_0x24b105){return _0x24b105['Local']='local',_0x24b105['URL']='url',_0x24b105['Dropbox']='dropbox',_0x24b105['GDrive']='gdrive',_0x24b105['Facebook']='facebook',_0x24b105['GPhotos']='gphotos',_0x24b105['OneDrive']='onedrive',_0x24b105;}({});function _(_0x53ec2e,_0x4153b1,_0x46158b){const t=_0x53ec2e['t'],_0x1dfe7e=_0x53ec2e['t'];switch(_0x4153b1){case i['Local']:return{'text':_0x1dfe7e('Insert'===_0x46158b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1dfe7e('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x46158b?_0x1dfe7e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1dfe7e('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x46158b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x46158b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x46158b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x46158b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x46158b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4153b1;}}class e extends _0x4a984b{['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 _0x1ac49b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d325e;for(const _0x2e595e in _0x1ac49b){const _0x97bfdf=_0x2e595e,_0x259e53=_0x1ac49b[_0x97bfdf];if('uploadcareLicenseKeyValid'==_0x259e53||'uploadcareLicenseKeyInvalid'==_0x259e53||'uploadcareLicenseKeyExpired'==_0x259e53||'uploadcareLicenseKeyDomainLimit'==_0x259e53||'uploadcareLicenseKeyNotAllowed'==_0x259e53||'uploadcareLicenseKeyEvaluationLimit'==_0x259e53||'uploadcareLicenseKeyTrialLimit'==_0x259e53||'uploadcareLicenseKeyUsageLimit'==_0x259e53){delete _0x1ac49b[_0x97bfdf],_0x5d325e=_0x259e53,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5d325e&&_0x1ac49b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5d325e&&_0x1ac49b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5d325e&&_0x1ac49b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5d325e&&_0x1ac49b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5d325e&&_0x1ac49b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5d325e&&_0x1ac49b['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5d325e&&_0x1ac49b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3511d7}=this,_0x24246d=_0x3511d7['commands']['get']('uploadcare');if(!_0x24246d)return;const _0x1cabf8=this['_normalizeConfigSourceList'](_0x3511d7['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x194f30,_0x38f6f3)=>{const _0x24c8eb=this['_getIntegrationKey'](_0x38f6f3['type']);return _0x194f30[_0x24c8eb]||(_0x194f30[_0x24c8eb]=[]),_0x194f30[_0x24c8eb]['push'](_0x38f6f3),_0x194f30;},{});_0x3511d7['plugins']['has']('ImageInsertUI')&&_0x3511d7['commands']['get']('uploadcare')&&Object['entries'](_0x1cabf8)['forEach'](([_0x2ca9ce,_0x2e3134])=>{_0x3511d7['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2ca9ce,'observable':()=>_0x24246d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2e3134),'formViewCreator':()=>this['_createDropdownButtons'](_0x2e3134),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2e3134),'override':'assetManager'!==_0x2ca9ce});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x138646){const {locale:_0x5ded1f}=this['editor'];return _0x138646['map'](_0x2368e3=>{const _0x527c42=_(_0x5ded1f,_0x2368e3,'Insert');switch(_0x2368e3){case i['Local']:return{'icon':_0xf280e8,'type':i['Local'],..._0x527c42};case i['URL']:return{'icon':_0x483d77,'type':i['URL'],..._0x527c42};case i['Dropbox']:return{'icon':_0x4e41bb,'type':i['Dropbox'],..._0x527c42};case i['Facebook']:return{'icon':_0x14bef6,'type':i['Facebook'],..._0x527c42};case i['GDrive']:return{'icon':_0x60fcbd,'type':i['GDrive'],..._0x527c42};case i['GPhotos']:return{'icon':_0x38e42,'type':i['GPhotos'],..._0x527c42};case i['OneDrive']:return{'icon':_0x7caaf5,'type':i['OneDrive'],..._0x527c42};}});}['_getIntegrationKey'](_0x59a8ac){switch(_0x59a8ac){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2dcf7e,_0x128965){const _0x1bfbc4=this['editor'],_0x2de8b7=new _0x2dcf7e(_0x1bfbc4['locale']),_0xbef31c=_0x1bfbc4['commands']['get']('uploadcare');return _0x2de8b7['bind']('isEnabled')['to'](_0xbef31c),_0x2de8b7['on']('execute',()=>{_0xbef31c['execute'](_0x128965);}),_0x2de8b7;}['_createToolbarButton'](_0x3e75d5){const {locale:_0x3fbf56}=this['editor'],_0x138e3d=this['editor']['plugins']['get']('ImageInsertUI'),_0x4f58ff=_0x3e75d5[0x0],_0x43aeb8=this['_createButton'](_0x4a1729,_0x4f58ff['type']);return _0x43aeb8['icon']=_0x4f58ff['icon'],_0x43aeb8['bind']('label')['to'](_0x138e3d,'isImageSelected',_0x3a5406=>_(_0x3fbf56,_0x4f58ff['type'],_0x3a5406?'Replace':'Insert')['text']),_0x43aeb8['tooltip']=!0x0,_0x43aeb8;}['_createDropdownButtons'](_0xeec8db){const {locale:_0x4ce5b9}=this['editor'],_0x39d191=this['editor']['plugins']['get']('ImageInsertUI');return _0xeec8db['map'](_0x51b328=>{const _0x3286b7=this['_createButton'](_0x4a1729,_0x51b328['type']);return _0x3286b7['withText']=!0x0,_0x3286b7['icon']=_0x51b328['icon'],_0x3286b7['bind']('label')['to'](_0x39d191,'isImageSelected',_0x42a3b0=>_(_0x4ce5b9,_0x51b328['type'],_0x42a3b0?'Replace':'Insert')['text']),_0x3286b7;});}['_createMenuBarButtons'](_0x36359e){return _0x36359e['map'](_0x18eb48=>{const _0x16ba1a=this['_createButton'](_0x3bcc21,_0x18eb48['type']);return _0x16ba1a['icon']=_0x18eb48['icon'],_0x16ba1a['label']=_0x18eb48['shortText'],_0x16ba1a;});}}class F extends _0x429902{['focusTracker'];['focusCycler'];constructor(_0x319348){super(_0x319348),this['focusTracker']=new _0x419141(),this['focusCycler']=new _0x73b108({'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(_0x269a74){super(_0x269a74),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x1fef8a,_0x32eb50){const _0x66e704=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4a1fda=>_0x4a1fda<=_0x32eb50)['map'](_0x1ba4fc=>_0x1fef8a['replace'](/\/$/,'')+'/-/resize/'+_0x1ba4fc+'x/\x20'+_0x1ba4fc+'w');return{'imageFallbackUrl':_0x1fef8a,'imageSources':[{'srcset':_0x66e704['join'](',\x20'),'sizes':'(max-width:\x20'+_0x32eb50+'px)\x20100vw,\x20'+_0x32eb50+'px','type':'image/webp'}]};}function C(_0x56c1cd,_0xce087d,_0x749148){const _0x585386=_0x56c1cd['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x585386?parseInt(_0x585386[0x1],0xa):_0xce087d,'height':_0x585386?parseInt(_0x585386[0x2],0xa):_0x749148};}function p(_0x590410,_0x160a92){const _0x51b88b=new(_0x1ad474())(),_0x213b39=_0x590410['plugins']['get']('ImageUtils'),_0x574884=_0x590410['editing']['mapper']['toViewElement'](_0x160a92),_0x176a9c=_0x213b39['findViewImgElement'](_0x574884),_0xf0ae58=_0x590410['editing']['view']['domConverter']['viewToDom'](_0x176a9c),_0x5ef1cd=_0x160a92['getAttribute']('width'),_0x74fd2f=_0x160a92['getAttribute']('height'),_0x4dbd83='image-processing';_0x590410['editing']['view']['change'](_0x1df317=>{_0x1df317['addClass'](_0x4dbd83,_0x574884),_0x1df317['setStyle']('aspect-ratio',_0x5ef1cd+'/'+_0x74fd2f,_0x176a9c);}),_0x51b88b['listenTo'](_0xf0ae58,'load',()=>{_0x51b88b['stopListening'](_0xf0ae58,'load'),_0x590410['editing']['view']['change'](_0x5cd850=>{_0x5cd850['removeClass'](_0x4dbd83,_0x574884),_0x5cd850['removeStyle']('aspect-ratio',_0x176a9c);});});}function G(_0x32164b){if(Array['isArray'](_0x32164b)){const _0x50adac=_0x32164b['map'](G);return _0x59688d=>_0x50adac['some'](_0x459d87=>_0x459d87(_0x59688d));}if('origin'==_0x32164b){const _0x15aaef=_0x1769cf['window']['location']['origin'];return _0x2d19d0=>new URL(_0x2d19d0,_0x1769cf['document']['baseURI'])['origin']==_0x15aaef;}return'function'==typeof _0x32164b?_0x32164b:_0x32164b instanceof RegExp?_0x43c60e=>!(!_0x43c60e['match'](_0x32164b)&&!_0x43c60e['replace'](/^https?:\/\//,'')['match'](_0x32164b)):()=>!0x1;}function S(_0x565f2b,_0xbd679){return _0x48bda9(_0x565f2b['target'])['includes'](_0xbd679);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xe99d8f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1ffee9,_0x27517a,_0x368fc8){super(),this['_editor']=_0x1ffee9,this['_editing']=_0x27517a,this['_dialog']=_0x1ffee9['plugins']['get'](_0x2269f1),this['_api']=_0x27517a['ctxElement']['getAPI'](),this['_type']=_0x368fc8,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:_0x16cb8c,model:_0x3bfedb}=this['_editor'],_0x186ec4=_0x3bfedb['document']['selection']['getSelectedElement'](),_0x1ee5c5=_0x186ec4&&(_0x186ec4['is']('element','imageBlock')||_0x186ec4['is']('element','imageInline'));this['_formView']=new x(_0x16cb8c),this['_dialog']['show']({'id':'uploadCare','icon':_0xf280e8,'title':_(_0x16cb8c,this['_type'],_0x1ee5c5?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x466743['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x34a65e=>!S(_0x34a65e,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x296fb0}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1d4c8e=>{const _0x540bbd=_0x296fb0['length'];for(const _0x3e29fd of _0x296fb0){const _0x36300b=_0x3e29fd===_0x296fb0[_0x540bbd-0x1],{cdnUrl:_0x18da78,fileInfo:_0x32385d}=_0x3e29fd;if(!_0x18da78||!_0x32385d)continue;const {width:_0xa89ce5,height:_0x535937}=_0x32385d['imageInfo'],_0x3c13d7=C(_0x18da78,_0xa89ce5,_0x535937),_0xc4f39c=k(_0x18da78,_0x3c13d7['width']),_0x39c421={'id':_0x32385d['uuid'],'type':'image','attributes':{'imageDimension':_0x3c13d7,..._0xc4f39c}};this['_insertAsset'](_0x39c421,_0x36300b,_0x1d4c8e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2a1a7f=>{'idle'===_0x2a1a7f['detail']['status']&&!_0x2a1a7f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x229e66,_0x1fd604,_0x4ad25f){const _0x2c8b08=this['_editor']['model']['document']['selection'],_0x1dd3a7=_0x2c8b08['getSelectedElement'](),_0x168345=!(!_0x1dd3a7||!_0x1dd3a7['is']('element','imageInline'));_0x4ad25f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x229e66,_0x168345),_0x1fd604||_0x4ad25f['setSelection'](_0x2c8b08['getLastPosition']());}['_insertImage'](_0x2d8180,_0x4bec63){const _0x4f73c2=this['_editor'],{imageDimension:_0x2d3189,imageFallbackUrl:_0x14f11a,imageSources:_0x2207fd}=_0x2d8180['attributes'];_0x4f73c2['execute']('insertImage',{'imageType':_0x4bec63?'imageInline':null,'source':{'uploadcareImageId':_0x2d8180['id'],'src':_0x14f11a,'sources':_0x2207fd,..._0x2d3189}});}}class w extends _0x36d961{['_editing'];['_controller']=null;static get['requires'](){return[_0x2269f1,o];}constructor(_0x5a7e2b){super(_0x5a7e2b),this['_editing']=_0x5a7e2b['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x330202){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x330202);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x38a6c5,publicKey:_0x16fa82,signal:_0x81a1aa,onProgress:_0x725cda}){return _0xc2d213(_0x38a6c5,{'publicKey':_0x16fa82,'store':'auto','signal':_0x81a1aa,'onProgress':_0x725cda});}static['getInfo'](_0x4372d8,_0x458456){return _0x100881(_0x4372d8,_0x458456);}}class f extends _0x4a984b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x44bcdd,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x413ceb=this['editor'];if(!!!_0x413ceb['config']['get']('uploadcare'))return;_0x413ceb['plugins']['get'](_0x44bcdd)['createUploadAdapter']=_0x267bcf=>new A(_0x267bcf,_0x413ceb),_0x413ceb['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2dd49b,{imageElement:_0x2b3cb1,data:_0x1e12fd})=>{_0x413ceb['model']['change'](_0x2f8edf=>{_0x2f8edf['setAttribute']('uploadcareImageId',_0x1e12fd['uploadcareImageId'],_0x2b3cb1);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x1eee3f,_0xf19ab7){this['loader']=_0x1eee3f,this['editor']=_0xf19ab7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x121f77=this['editor']['config']['get']('uploadcare.pubkey'),_0x5004ef=await this['loader']['file'];return j['upload']({'file':_0x5004ef,'publicKey':_0x121f77,'signal':this['controller']['signal'],'onProgress':_0x13d4b7=>{_0x13d4b7&&_0x13d4b7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x13d4b7['value']);}})['then'](async _0x501a9c=>{const {imageFallbackUrl:_0x3e8872,imageSources:_0x4f8471}=k(_0x501a9c['cdnUrl'],_0x501a9c['imageInfo']['width']);return{'uploadcareImageId':_0x501a9c['uuid'],'default':_0x3e8872,'sources':_0x4f8471};})['catch'](()=>{const _0x1a97e4=t('Cannot\x20upload\x20file:')+('\x20'+_0x5004ef['name']+'.');return Promise['reject'](_0x1a97e4);});}['abort'](){this['controller']['abort']();}}class o extends _0x4a984b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2269f1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x59ab7e=this['editor'];_0x59ab7e['commands']['add']('uploadcare',new w(_0x59ab7e));}['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 _0x3c4870=_0x1769cf['document']['querySelector']('input[uploadcare-file-input]');_0x3c4870&&_0x3c4870['remove']();}),async function(_0x179310){const _0x1897f9=_0x3b8aff([0x46,0x64,0x61,0x72,0x57,0x53,0x66,0x6a,0x31,0x78,0x4e,0x62,0x4f,0x74,0x45,0x77,0x48,0x4d,0x39,0x6e,0x7a,0x32,0x35,0x73,0x51,0x75,0x76,0x42,0x4c,0x50,0x44,0x58,0x41,0x30,0x47,0x4a,0x49,0x63,0x59,0x6c,0x79,0x43,0x55,0x4b,0x5a,0x36,0x69,0x52,0x56,0x71,0x6d,0x6f,0x34,0x54,0x68,0x38,0x6b,0x67,0x70,0x37,0x65,0x33]),_0x50b599=0x7b37c444,_0x1a6e01=0x7b30aeac^_0x50b599,_0x5602b1=window[_0x3b8aff([0x44,0x61,0x74,0x65])][_0x3b8aff([0x6e,0x6f,0x77])](),_0x87ca50=_0x179310[_0x3b8aff([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59293f=new window[(_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e39d0=>{_0x87ca50[_0x3b8aff([0x6f,0x6e,0x63,0x65])](_0x3b8aff([0x72,0x65,0x61,0x64,0x79]),_0x5e39d0);}),_0x4a1f2e={[_0x3b8aff([0x6b,0x74,0x79])]:_0x3b8aff([0x45,0x43]),[_0x3b8aff([0x75,0x73,0x65])]:_0x3b8aff([0x73,0x69,0x67]),[_0x3b8aff([0x63,0x72,0x76])]:_0x3b8aff([0x50,0x2d,0x32,0x35,0x36]),[_0x3b8aff([0x78])]:_0x3b8aff([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]),[_0x3b8aff([0x79])]:_0x3b8aff([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]),[_0x3b8aff([0x61,0x6c,0x67])]:_0x3b8aff([0x45,0x53,0x32,0x35,0x36])},_0x3197bf=_0x87ca50[_0x3b8aff([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b8aff([0x67,0x65,0x74])](_0x3b8aff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x350ae0(){let _0x89dc09,_0x18a097=null,_0x62e2f0=null;try{if(_0x3197bf==_0x3b8aff([0x47,0x50,0x4c]))return _0x3b8aff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x89dc09=_0x1b566f(),!_0x89dc09)return _0x3b8aff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x89dc09[_0x3b8aff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x62e2f0=_0x2f65e0(_0x89dc09[_0x3b8aff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x89dc09[_0x3b8aff([0x6a,0x74,0x69])])),await _0x3dcc5a()?_0x2bde76()?_0x69e368()?_0x3b8aff([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x15c40d()?(_0x89dc09[_0x3b8aff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b8aff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x18a097=_0x1951f6(_0x3b8aff([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x89dc09[_0x3b8aff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b8aff([0x74,0x72,0x69,0x61,0x6c])&&(_0x18a097=_0x1951f6(_0x3b8aff([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ccfc2()):_0x3b8aff([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b8aff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b8aff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b8aff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x69e368(){const _0x10b80b=[_0x3b8aff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b8aff([0x74,0x72,0x69,0x61,0x6c])][_0x3b8aff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x89dc09[_0x3b8aff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5602b1/0x3e8:0xe10*_0x1a6e01;return _0x89dc09[_0x3b8aff([0x65,0x78,0x70])]<_0x10b80b;}function _0x2bde76(){const _0x2e36eb=_0x89dc09[_0x3b8aff([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2e36eb&&(!!_0x2e36eb[_0x3b8aff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8aff([0x2a]))||!!_0x2e36eb[_0x3b8aff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8aff([0x55,0x50,0x4c,0x43])));}function _0x15c40d(){const _0x536b58=_0x89dc09[_0x3b8aff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x536b58||0x0==_0x536b58[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3fdd13}=new URL(window[_0x3b8aff([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x536b58[_0x3b8aff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fdd13))return!0x0;const _0x2cebd0=_0x3fdd13[_0x3b8aff([0x73,0x70,0x6c,0x69,0x74])](_0x3b8aff([0x2e]));return _0x536b58[_0x3b8aff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46c259=>_0x46c259[_0x3b8aff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8aff([0x2a])))[_0x3b8aff([0x6d,0x61,0x70])](_0xcd8737=>_0xcd8737[_0x3b8aff([0x73,0x70,0x6c,0x69,0x74])](_0x3b8aff([0x2e])))[_0x3b8aff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1468f2=>_0x1468f2[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2cebd0[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b8aff([0x6d,0x61,0x70])](_0x27517e=>Array(_0x2cebd0[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27517e[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b8aff([0x66,0x69,0x6c,0x6c])](_0x27517e[0x0]===_0x3b8aff([0x2a])?_0x3b8aff([0x2a]):'')[_0x3b8aff([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27517e))[_0x3b8aff([0x73,0x6f,0x6d,0x65])](_0x34db92=>_0x2cebd0[_0x3b8aff([0x65,0x76,0x65,0x72,0x79])]((_0x2e65ea,_0x4c62a1)=>_0x34db92[_0x4c62a1]===_0x2e65ea||_0x34db92[_0x4c62a1]===_0x3b8aff([0x2a])));}function _0x5ccfc2(){return _0x18a097&&_0x62e2f0?new window[(_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ad25c,_0x572157)=>{_0x18a097[_0x3b8aff([0x74,0x68,0x65,0x6e])](_0x1ad25c,_0x572157),_0x62e2f0[_0x3b8aff([0x74,0x68,0x65,0x6e])](_0x39f7c8=>{_0x39f7c8!=_0x3b8aff([0x56,0x61,0x6c,0x69,0x64])&&_0x1ad25c(_0x39f7c8);},_0x572157);}):_0x18a097||_0x62e2f0||_0x3b8aff([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f65e0(_0x1c3650,_0x4283a8){return new window[(_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1253ab=>{if(_0x72dbf1())return _0x1253ab(_0x3b8aff([0x56,0x61,0x6c,0x69,0x64]));_0xb81f1e(),_0x87ca50[_0x3b8aff([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b8aff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c5dfd=!0x1;const _0x5b673f=_0x4b6330();function _0x16a463(_0x413954){return!!_0x413954&&(typeof _0x413954===_0x3b8aff([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x413954===_0x3b8aff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x413954[_0x3b8aff([0x74,0x68,0x65,0x6e])]===_0x3b8aff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x413954[_0x3b8aff([0x63,0x61,0x74,0x63,0x68])]===_0x3b8aff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x175012(_0x5cd995){_0x3f135f(_0x5cd995)[_0x3b8aff([0x74,0x68,0x65,0x6e])](_0x5c2068=>{if(!_0x5c2068||_0x5c2068[_0x3b8aff([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b8aff([0x6f,0x6b]))return _0x3b8aff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b066d(_0x18d0bb(_0x5b673f+_0x4283a8))!=_0x5c2068[_0x3b8aff([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b8aff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b8aff([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b8aff([0x74,0x68,0x65,0x6e])](_0x264519=>(_0x4b28a3(),_0x264519),()=>{const _0x2bf728=_0x7f7fc8();return null==_0x2bf728?(_0x4b28a3(),_0x3b8aff([0x56,0x61,0x6c,0x69,0x64])):_0x3b8aff(_0x5602b1-_0x2bf728>(0x5f3b4044^_0x50b599)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b8aff([0x74,0x68,0x65,0x6e])](_0x1253ab)[_0x3b8aff([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1253ab(_0x3b8aff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1eb0d9=0x7b012ac4^_0x50b599;function _0x4b28a3(){const _0x3841b7=_0x3b8aff([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b066d(_0x18d0bb(_0x1c3650)),_0x5f4b67=_0x124cd7(_0x5b066d(window[_0x3b8aff([0x4d,0x61,0x74,0x68])][_0x3b8aff([0x63,0x65,0x69,0x6c])](_0x5602b1/_0x1eb0d9)));window[_0x3b8aff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b8aff([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3841b7,_0x5f4b67);}function _0x7f7fc8(){const _0x5b507d=_0x3b8aff([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b066d(_0x18d0bb(_0x1c3650)),_0x934666=window[_0x3b8aff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b8aff([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b507d);return _0x934666?window[_0x3b8aff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x124cd7(_0x934666),0x10)*_0x1eb0d9:null;}function _0x3f135f(_0x2afafe){return new window[(_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x100bc0,_0x145c8a)=>{_0x2afafe[_0x3b8aff([0x74,0x68,0x65,0x6e])](_0x100bc0,_0x145c8a),window[_0x3b8aff([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x145c8a,0x7b361084^_0x50b599);});}}_0x87ca50[_0x3b8aff([0x6f,0x6e])](_0x3b8aff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36faef,_0x12e81e)=>{if(_0x12e81e[0x0]!=_0x1c3650)return _0x1253ab(_0x3b8aff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12e81e[0x1]={..._0x12e81e[0x1],[_0x3b8aff([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5b673f};},{[_0x3b8aff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b8aff([0x68,0x69,0x67,0x68])}),_0x87ca50[_0x3b8aff([0x6f,0x6e])](_0x3b8aff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3f235c=>{_0x16a463(_0x3f235c[_0x3b8aff([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c5dfd=!0x0,_0x175012(_0x3f235c[_0x3b8aff([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b8aff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b8aff([0x6c,0x6f,0x77])}),_0x59293f[_0x3b8aff([0x74,0x68,0x65,0x6e])](()=>{_0x5c5dfd||_0x1253ab(_0x3b8aff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x72dbf1(){return _0x87ca50[_0x3b8aff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b8aff([0x76,0x69,0x65,0x77])][_0x3b8aff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b8aff([0x61,0x75,0x74,0x6f]);}function _0xb81f1e(){_0x87ca50[_0x3b8aff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b8aff([0x76,0x69,0x65,0x77])][_0x3b8aff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b8aff([0x61,0x75,0x74,0x6f]);}}function _0x1951f6(_0x1fd6fe){const _0xfc5068=[new window[(_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x463a6b=>setTimeout(_0x463a6b,0x7b3efa88^_0x50b599)),_0x59293f[_0x3b8aff([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x229f88=>{let _0x209f60=0x0;_0x87ca50[_0x3b8aff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b8aff([0x6f,0x6e])](_0x3b8aff([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4287cf,_0x2aec1f)=>{_0x2aec1f[0x0][_0x3b8aff([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x209f60++,_0x209f60==(0x7b37c5bc^_0x50b599)&&(_0x229f88(),_0x4287cf[_0x3b8aff([0x6f,0x66,0x66])]());});}))];return window[_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b8aff([0x72,0x61,0x63,0x65])](_0xfc5068)[_0x3b8aff([0x74,0x68,0x65,0x6e])](()=>_0x1fd6fe);}async function _0x258521(){await _0x59293f,_0x87ca50[_0x3b8aff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b8aff([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7f779e,_0x87ca50[_0x3b8aff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b8aff([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7f779e,_0x87ca50[_0x3b8aff([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b8aff([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5d5456(_0xc5f1a5){const _0x476e7e=_0x7aaa45();_0x87ca50[_0x476e7e]=_0x3b8aff([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xc5f1a5,_0xc5f1a5!=_0x3b8aff([0x56,0x61,0x6c,0x69,0x64])&&_0x258521();}function _0x7aaa45(){const _0x8bc546=window[_0x3b8aff([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b8aff([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b8aff([0x6e,0x6f,0x77])]())[_0x3b8aff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b8aff([0x2e]),'');let _0x1b37bc=_0x3b8aff([0x46]);for(let _0x3b5d54=0x0;_0x3b5d54<_0x8bc546[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b5d54+=0x2){let _0xf5b18d=window[_0x3b8aff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8bc546[_0x3b8aff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b5d54,_0x3b5d54+0x2));_0xf5b18d>=_0x1897f9[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf5b18d-=_0x1897f9[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b37bc+=_0x1897f9[_0xf5b18d];}return _0x1b37bc;}function _0x1b566f(){const _0x480687=_0x3197bf[_0x3b8aff([0x73,0x70,0x6c,0x69,0x74])](_0x3b8aff([0x2e]));if(0x3!=_0x480687[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x553524(_0x480687[0x1]);function _0x553524(_0x2aec5f){const _0x5ae8c9=_0x40193d(_0x2aec5f);return _0x5ae8c9&&_0x3736d1()?_0x5ae8c9:null;function _0x3736d1(){const _0x31419c=_0x5ae8c9[_0x3b8aff([0x6a,0x74,0x69])],_0x576ffd=window[_0x3b8aff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31419c[_0x3b8aff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31419c[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5519b4={..._0x5ae8c9,[_0x3b8aff([0x6a,0x74,0x69])]:_0x31419c[_0x3b8aff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31419c[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5519b4[_0x3b8aff([0x76,0x63])],_0x18d0bb(_0x5519b4)==_0x576ffd;}}}async function _0x3dcc5a(){let _0x182808=!0x0;try{const _0x16a83f=_0x3197bf[_0x3b8aff([0x73,0x70,0x6c,0x69,0x74])](_0x3b8aff([0x2e])),[_0x195c74,_0x538363,_0x315090]=_0x16a83f;return _0x492494(_0x195c74),await _0x42833d(_0x195c74,_0x538363,_0x315090),_0x182808;}catch{return!0x1;}function _0x492494(_0x30dc38){const _0x238d56=_0x40193d(_0x30dc38);_0x238d56&&_0x238d56[_0x3b8aff([0x61,0x6c,0x67])]==_0x3b8aff([0x45,0x53,0x32,0x35,0x36])||(_0x182808=!0x1);}async function _0x42833d(_0x26b7ef,_0x38e4c0,_0xe0b06){const _0x3eaff2=window[_0x3b8aff([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b8aff([0x66,0x72,0x6f,0x6d])](_0x18db24(_0xe0b06),_0x237857=>_0x237857[_0x3b8aff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x253b9d=new window[(_0x3b8aff([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b8aff([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26b7ef+_0x3b8aff([0x2e])+_0x38e4c0),_0x4ca5ae=window[_0x3b8aff([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b8aff([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ca5ae)return;const _0x56114c=await _0x4ca5ae[_0x3b8aff([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b8aff([0x6a,0x77,0x6b]),_0x4a1f2e,{[_0x3b8aff([0x6e,0x61,0x6d,0x65])]:_0x3b8aff([0x45,0x43,0x44,0x53,0x41]),[_0x3b8aff([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b8aff([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b8aff([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ca5ae[_0x3b8aff([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b8aff([0x6e,0x61,0x6d,0x65])]:_0x3b8aff([0x45,0x43,0x44,0x53,0x41]),[_0x3b8aff([0x68,0x61,0x73,0x68])]:{[_0x3b8aff([0x6e,0x61,0x6d,0x65])]:_0x3b8aff([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x56114c,_0x3eaff2,_0x253b9d)||(_0x182808=!0x1);}}function _0x40193d(_0x4d1798){return _0x4d1798[_0x3b8aff([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b8aff([0x65,0x79]))?JSON[_0x3b8aff([0x70,0x61,0x72,0x73,0x65])](_0x18db24(_0x4d1798)):null;}function _0x18db24(_0x2da08b){return window[_0x3b8aff([0x61,0x74,0x6f,0x62])](_0x2da08b[_0x3b8aff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b8aff([0x2b]))[_0x3b8aff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b8aff([0x2f])));}function _0x18d0bb(_0x4201ae){let _0x25c340=0x1505;function _0x2c5ebb(_0x710888){for(let _0x1aa990=0x0;_0x1aa990<_0x710888[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1aa990++){const _0x590966=_0x710888[_0x3b8aff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1aa990);_0x25c340=(_0x25c340<<0x5)+_0x25c340+_0x590966,_0x25c340&=_0x25c340;}}function _0x33c5cf(_0x24a578){Array[_0x3b8aff([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x24a578)?_0x24a578[_0x3b8aff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33c5cf):_0x24a578&&typeof _0x24a578==_0x3b8aff([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b8aff([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x24a578)[_0x3b8aff([0x73,0x6f,0x72,0x74])]()[_0x3b8aff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d7b69,_0x5a6dbb])=>{_0x2c5ebb(_0x4d7b69),_0x33c5cf(_0x5a6dbb);}):_0x2c5ebb(window[_0x3b8aff([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x24a578));}return _0x33c5cf(_0x4201ae),_0x25c340>>>0x0;}function _0x5b066d(_0x538110){return _0x538110[_0x3b8aff([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b8aff([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b8aff([0x30]));}function _0x124cd7(_0x28229d){return _0x28229d[_0x3b8aff([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b8aff([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b8aff([0x6a,0x6f,0x69,0x6e])]('');}function _0x7f779e(){}function _0x3b8aff(_0x54c067){return _0x54c067['map'](_0x4355ad=>String['fromCharCode'](_0x4355ad))['join']('');}_0x5d5456(await _0x350ae0());}(this);}['_initSchema'](){const _0x36b826=this['editor']['model']['schema'];_0x36b826['isRegistered']('imageBlock')&&_0x36b826['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x36b826['isRegistered']('imageInline')&&_0x36b826['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x39d9c1=this['editor'];_0x39d9c1['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x39d9c1['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4b01eb=>_0x4b01eb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2d42f3=_0x39d9c1['commands']['get']('replaceImageSource');_0x2d42f3&&this['listenTo'](_0x2d42f3,'cleanupImage',(_0x1d9000,[_0x154a91,_0x1e5d7b])=>{_0x154a91['removeAttribute']('uploadcareImageId',_0x1e5d7b);});}['_initConfig'](){const _0x38a221=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2cc966=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x949c90(_0x1769cf['document'],'uc-config',{..._0x38a221,'pubkey':_0x2cc966,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x48c7f0=>{if('closeMax'==_0x48c7f0)return'#uc-icon-arrow-down';},_0x1769cf['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x949c90(_0x1769cf['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1769cf['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x56741a=this['editor']['commands']['get']('insertImage');_0x56741a&&this['listenTo'](_0x56741a,'execute',()=>{const _0xbfaf7=this['editor']['model']['document']['selection']['getSelectedElement']();_0xbfaf7&&_0xbfaf7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xbfaf7);});});const _0x194637=this['editor']['commands']['get']('uploadcareImageReplace');_0x194637&&this['listenTo'](_0x194637,'execute',()=>{const _0x208e67=this['editor']['model']['document']['selection']['getSelectedElement']();_0x208e67&&_0x208e67['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x208e67);});});}}class tt extends _0x4a984b{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf8b493){super(_0xf8b493),_0xf8b493['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3e6419['defineComponents'](_0x3e6419);}}class ii extends _0x429902{constructor(_0x4106b5){super(_0x4106b5);const t=_0x4106b5['t'],_0x52d6ee=this['bindTemplate'],_0x1d3c9d=new _0x2d73c2();_0x1d3c9d['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':[_0x1d3c9d,{'text':_0x52d6ee['to']('imageUploadProgress',_0x5e1021=>t('Loading\x20image...')+'\x20('+(_0x5e1021||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 _0x429902{constructor(_0x585ae8){super(_0x585ae8);const t=_0x585ae8['t'];this['set']('errorType',null);const _0x3de2c0=new _0x4a1729(_0x585ae8);_0x3de2c0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3de2c0['withText']=!0x0,_0x3de2c0['class']='ck-button-action',_0x3de2c0['on']('execute',()=>{this['fire']('retry');}),_0x3de2c0['bind']('isVisible')['to'](this,'errorType',_0xc876ee=>'NotFound'!==_0xc876ee);const _0x21540d=new _0x115457();_0x21540d['content']=_0x4cfd49,_0x21540d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1e246a=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':[_0x21540d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1e246a['to']('errorType',_0x3a3375=>t('NotFound'!==_0x3a3375?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3de2c0]},{'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 _0x429902{constructor(_0x254d88,_0x31fd86){super(_0x254d88);const _0xfe585d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x31fd86,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xfe585d['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2f9643,_0x568efc,_0x42fd92){super(_0x2f9643),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2f9643),this['_errorView']=new ti(_0x2f9643),this['_editingView']=new ei(_0x2f9643,_0x42fd92),this['_focusableView']=new _0x429902(_0x2f9643),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x568efc),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'],_0x5cabd3=>{this['_addUploadcareImageEditorListeners'](_0x5cabd3);});}),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'](_0x23c560,_0x1e2027){const _0xbec7ea='uc-cloud-image-editor',_0x32a06f=_0x23c560['querySelector'](_0xbec7ea);if(_0x32a06f)return _0x1e2027(_0x32a06f);const _0x4c2d20=new MutationObserver(_0x17f54a=>{const _0x1fa07e=_0x17f54a['filter'](_0x58e8bf=>_0x58e8bf['target']===_0x23c560&&_0x58e8bf['addedNodes']['length']>0x0&&_0x58e8bf['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xbec7ea);_0x1fa07e['length']&&(_0x4c2d20['disconnect'](),_0x1e2027(_0x1fa07e[0x0]['addedNodes'][0x0]));});_0x4c2d20['observe'](_0x23c560,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2a8df3){_0x2a8df3['addEventListener']('apply',_0x2c665c=>{this['fire']('apply',{'imageSrc':_0x2c665c['detail']['cdnUrl']});}),_0x2a8df3['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xe99d8f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x14c77c,_0x5bbfbd,_0xd41ecf){super(),this['_editor']=_0x14c77c,this['_dialog']=_0x5bbfbd,this['_imageElement']=_0xd41ecf,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 _0x2dfa28=this['_imageElement'],_0x2b60ec=_0x2dfa28['getAttribute']('uploadcareImageId'),_0x2fc393=_0x2dfa28['getAttribute']('src');if(_0x2b60ec)await this['_loadImageInfo'](_0x2b60ec,_0x2fc393);else{if(this['_imageCache']['has'](_0x2fc393)){const _0x2171fc=this['_imageCache']['get'](_0x2fc393);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2171fc['url'],this['imageDimension']=_0x2171fc['dimension'],this['imageId']=_0x2171fc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x498629}=this['_editor'],t=_0x498629['t'],_0xcd910e=new X(_0x498629,this['imageStatus'],this['_attributes']);_0xcd910e['bind']('status')['to'](this,'imageStatus'),_0xcd910e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xcd910e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xcd910e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xcd910e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xcc08,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xcd910e,'position':_0x466743['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xcd910e['focus']();},'onHide':()=>{_0xcd910e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2cacf7=>!S(_0x2cacf7,_0xcd910e['element'])}});}['_loadImageInfo'](_0x260eab,_0x27eb0d){return j['getInfo'](_0x260eab,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x6e12ab=>{const {width:_0x474ed2,height:_0x470a31}=_0x6e12ab['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x27eb0d,this['imageDimension']={'width':_0x474ed2,'height':_0x470a31},this['imageId']=_0x260eab;})['catch'](_0x2ed65c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2ed65c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d4ca2,_0x3240b6){return this['_getImageAsFile'](_0x1d4ca2)['then'](_0x40df35=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3240b6['signal'],'file':_0x40df35,'onProgress':_0x5ddea3=>{_0x5ddea3&&_0x5ddea3['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5ddea3['value']));}}))['then'](_0x52422c=>{const {width:_0x554301,height:_0x5b3c15}=_0x52422c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x52422c['cdnUrl'],this['imageDimension']={'width':_0x554301,'height':_0x5b3c15},this['imageId']=_0x52422c['uuid'],this['imageUploadProgress']=null;const _0x3e4400=_0x1d4ca2['getAttribute']('src');this['_imageCache']['set'](_0x3e4400,{'id':_0x52422c['uuid'],'url':_0x52422c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x597ac7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x597ac7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1dad78,_0x3bdcaf){_0x1dad78['on']('apply',(_0x8027a4,_0x48c3be)=>{this['_replaceImage'](_0x3bdcaf,_0x48c3be['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1dad78['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1dad78['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2bdde4,_0xffaa76,_0x20c1da){const _0x3cc8b5=this['_editor'],{width:_0x4613a7,height:_0x53a068}=C(_0xffaa76,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x35aa2b,imageSources:_0x14a9f4}=k(_0xffaa76,_0x4613a7);_0x3cc8b5['model']['change'](_0x4dbae1=>{if('$graveyard'===_0x2bdde4['root']['rootName']){_0x3cc8b5['execute']('insertImage',{'imageType':_0x2bdde4['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2bdde4['getAttributes']()),'uploadcareImageId':_0x20c1da,'src':_0x35aa2b,'sources':_0x14a9f4,'width':_0x4613a7,'height':_0x53a068}});const _0x17d996=_0x2bdde4['getChildren']();_0x2bdde4=_0x3cc8b5['model']['document']['selection']['getSelectedElement']();for(const _0x117224 of _0x17d996)_0x4dbae1['append'](_0x4dbae1['cloneElement'](_0x117224),_0x2bdde4);}else _0x4dbae1['setSelection'](_0x2bdde4,'on'),_0x3cc8b5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2bdde4['getAttributes']()),'uploadcareImageId':_0x20c1da,'src':_0x35aa2b,'sources':_0x14a9f4,'width':_0x4613a7,'height':_0x53a068},_0x2bdde4);_0x4dbae1['setSelection'](_0x2bdde4,'on');});}async['_getImageAsFile'](_0x359082){const _0x22a426=_0x1769cf['window'],_0x49b5c6=_0x1769cf['document']['location']['href'],_0x4195e1=new _0x22a426['URL'](_0x359082['getAttribute']('src'),_0x49b5c6);if('data:'===_0x4195e1['protocol']){const _0x20984d=_0x4195e1['href']['split'](','),_0x2fb848=_0x20984d[0x0]['match'](/:(.*?);/)[0x1],_0x3371ee=_0x2fb848['split']('/')[0x1],_0x5f423c=_0x22a426['atob'](_0x20984d[_0x20984d['length']-0x1]);let _0x2a9da6=_0x5f423c['length'];const _0x5d5276=new _0x22a426['Uint8Array'](_0x2a9da6);for(;_0x2a9da6--;)_0x5d5276[_0x2a9da6]=_0x5f423c['charCodeAt'](_0x2a9da6);return new _0x22a426['File']([_0x5d5276],'image.'+_0x3371ee,{'type':_0x2fb848});}const _0x55a924=_0x4195e1['href']['split']('/'),_0x200e53=_0x55a924[_0x55a924['length']-0x1],_0x357b1a=_0x200e53['split']('.')[0x1];return _0x22a426['fetch'](_0x4195e1['href'])['then'](_0x3df313=>_0x3df313['clone']()['blob']())['then'](_0x95e4af=>new _0x22a426['File']([_0x95e4af],_0x200e53,{'type':'image/'+_0x357b1a}));}}class O extends _0x36d961{['imageEditController'];static get['requires'](){return[_0x2269f1];}['_isEditable'];constructor(_0x3062f3){super(_0x3062f3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5ed6d2){const _0x362870=G(_0x5ed6d2);return _0x57615a=>!(!_0x57615a||!_0x57615a['is']('element','imageBlock')&&!_0x57615a['is']('element','imageInline'))&&(!!_0x57615a['hasAttribute']('uploadcareImageId')||!!_0x57615a['hasAttribute']('src')&&_0x362870(_0x57615a['getAttribute']('src')));}(_0x3062f3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x182f9d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x182f9d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1b4489=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1b4489&&(_0x1b4489['is']('element','imageBlock')||_0x1b4489['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2269f1),_0x1b4489),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x36d961{['refresh'](){const _0x6b3391=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x6b3391&&(_0x6b3391['is']('element','imageBlock')||_0x6b3391['is']('element','imageInline')));}['execute'](_0x3854c4){const _0x7fdcd5=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x448a3d=>{_0x448a3d['setAttributes'](_0x3854c4,_0x7fdcd5),_0x448a3d['removeAttribute']('srcset',_0x7fdcd5),_0x448a3d['removeAttribute']('sizes',_0x7fdcd5);});}}class m extends _0x4a984b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x50d031,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x38d12e}=this;_0x38d12e['commands']['add']('uploadcareImageEdit',new O(_0x38d12e)),_0x38d12e['commands']['add']('uploadcareImageReplace',new R(_0x38d12e));}}class g extends _0x4a984b{['_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 _0x9388a6=this['editor'];_0x9388a6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x22a407=>{const _0x2ed168=_0x9388a6['commands']['get']('uploadcareImageEdit'),_0x1e5f5a=new _0x4a1729(_0x22a407),t=_0x22a407['t'];return _0x1e5f5a['set']({'icon':_0xcc08,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1e5f5a['bind']('isEnabled')['to'](_0x2ed168),_0x1e5f5a['bind']('isOn')['to'](_0x2ed168,'isActive'),this['listenTo'](_0x1e5f5a,'execute',()=>{_0x9388a6['execute']('uploadcareImageEdit'),_0x9388a6['editing']['view']['focus']();}),_0x1e5f5a;}),this['_initConfig']();}['_initConfig'](){const _0x1d0086=_0x949c90(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1d0086),this['listenTo'](this['editor'],'destroy',()=>{_0x1d0086['remove']();});}}class et extends _0x4a984b{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 _0x3b8fd4,Command as _0x408a34}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3f266d,IconGooglePhotos as _0x4e6070,IconGoogleDrive as _0xebf2b2,IconFacebook as _0x3b8ed6,IconDropbox as _0x48374d,IconUploadcareLink as _0x398b2e,IconUploadcareImageUpload as _0x2d5487,IconError as _0x1a6cda,IconUploadcareImageEdit as _0x1b431c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1408d8,MenuBarMenuListItemButtonView as _0x48fa69,View as _0x15ccb4,FocusCycler as _0x2f5877,Dialog as _0x4188d0,DialogViewPosition as _0x2cece5,SpinnerView as _0x234043,IconView as _0xebe885,Notification as _0x398ded}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x35b0e5,DomEmitterMixin as _0x2b9be7,global as _0x39fc81,getAncestors as _0x4b8854,ObservableMixin as _0x2a058a,uid as _0x113c55,createElement as _0x5ea37a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x220fa9}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x6a223f,info as _0x39d56d}from'@uploadcare/upload-client';import*as _0x359d49 from'@uploadcare/file-uploader';var i=function(_0x5b2b43){return _0x5b2b43['Local']='local',_0x5b2b43['URL']='url',_0x5b2b43['Dropbox']='dropbox',_0x5b2b43['GDrive']='gdrive',_0x5b2b43['Facebook']='facebook',_0x5b2b43['GPhotos']='gphotos',_0x5b2b43['OneDrive']='onedrive',_0x5b2b43;}({});function _(_0x1b0530,_0x16ac67,_0x19d02e){const t=_0x1b0530['t'],_0x21b655=_0x1b0530['t'];switch(_0x16ac67){case i['Local']:return{'text':_0x21b655('Insert'===_0x19d02e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x21b655('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x19d02e?_0x21b655('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x21b655('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x19d02e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x19d02e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x19d02e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x19d02e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x19d02e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x16ac67;}}class e extends _0x3b8fd4{['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 _0x5d5b42=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22d4ab;for(const _0x274f5d in _0x5d5b42){const _0x61adfa=_0x274f5d,_0x2f6663=_0x5d5b42[_0x61adfa];if('uploadcareLicenseKeyValid'==_0x2f6663||'uploadcareLicenseKeyInvalid'==_0x2f6663||'uploadcareLicenseKeyExpired'==_0x2f6663||'uploadcareLicenseKeyDomainLimit'==_0x2f6663||'uploadcareLicenseKeyNotAllowed'==_0x2f6663||'uploadcareLicenseKeyEvaluationLimit'==_0x2f6663||'uploadcareLicenseKeyTrialLimit'==_0x2f6663||'uploadcareLicenseKeyUsageLimit'==_0x2f6663){delete _0x5d5b42[_0x61adfa],_0x22d4ab=_0x2f6663,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x22d4ab&&_0x5d5b42['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x22d4ab&&_0x5d5b42['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x22d4ab&&_0x5d5b42['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x22d4ab&&_0x5d5b42['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x22d4ab&&_0x5d5b42['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x22d4ab&&_0x5d5b42['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x22d4ab&&_0x5d5b42['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x206bca}=this,_0x1c0e41=_0x206bca['commands']['get']('uploadcare');if(!_0x1c0e41)return;const _0x360033=this['_normalizeConfigSourceList'](_0x206bca['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1bbfb0,_0xb77f68)=>{const _0x1a358f=this['_getIntegrationKey'](_0xb77f68['type']);return _0x1bbfb0[_0x1a358f]||(_0x1bbfb0[_0x1a358f]=[]),_0x1bbfb0[_0x1a358f]['push'](_0xb77f68),_0x1bbfb0;},{});_0x206bca['plugins']['has']('ImageInsertUI')&&_0x206bca['commands']['get']('uploadcare')&&Object['entries'](_0x360033)['forEach'](([_0x322688,_0x206f28])=>{_0x206bca['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x322688,'observable':()=>_0x1c0e41,'buttonViewCreator':()=>this['_createToolbarButton'](_0x206f28),'formViewCreator':()=>this['_createDropdownButtons'](_0x206f28),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x206f28),'override':'assetManager'!==_0x322688});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4a83f1){const {locale:_0x813cfc}=this['editor'];return _0x4a83f1['map'](_0x12aae4=>{const _0x4d818f=_(_0x813cfc,_0x12aae4,'Insert');switch(_0x12aae4){case i['Local']:return{'icon':_0x2d5487,'type':i['Local'],..._0x4d818f};case i['URL']:return{'icon':_0x398b2e,'type':i['URL'],..._0x4d818f};case i['Dropbox']:return{'icon':_0x48374d,'type':i['Dropbox'],..._0x4d818f};case i['Facebook']:return{'icon':_0x3b8ed6,'type':i['Facebook'],..._0x4d818f};case i['GDrive']:return{'icon':_0xebf2b2,'type':i['GDrive'],..._0x4d818f};case i['GPhotos']:return{'icon':_0x4e6070,'type':i['GPhotos'],..._0x4d818f};case i['OneDrive']:return{'icon':_0x3f266d,'type':i['OneDrive'],..._0x4d818f};}});}['_getIntegrationKey'](_0x59d089){switch(_0x59d089){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4d3d4e,_0x3db7ff){const _0x2c183c=this['editor'],_0x3b01ce=new _0x4d3d4e(_0x2c183c['locale']),_0xe63e93=_0x2c183c['commands']['get']('uploadcare');return _0x3b01ce['bind']('isEnabled')['to'](_0xe63e93),_0x3b01ce['on']('execute',()=>{_0xe63e93['execute'](_0x3db7ff);}),_0x3b01ce;}['_createToolbarButton'](_0x228c3c){const {locale:_0x2b08b8}=this['editor'],_0x58526f=this['editor']['plugins']['get']('ImageInsertUI'),_0x260487=_0x228c3c[0x0],_0x383ef1=this['_createButton'](_0x1408d8,_0x260487['type']);return _0x383ef1['icon']=_0x260487['icon'],_0x383ef1['bind']('label')['to'](_0x58526f,'isImageSelected',_0x347fb1=>_(_0x2b08b8,_0x260487['type'],_0x347fb1?'Replace':'Insert')['text']),_0x383ef1['tooltip']=!0x0,_0x383ef1;}['_createDropdownButtons'](_0x14b0e1){const {locale:_0x3ec8d7}=this['editor'],_0x5999e8=this['editor']['plugins']['get']('ImageInsertUI');return _0x14b0e1['map'](_0x21354f=>{const _0x429b1d=this['_createButton'](_0x1408d8,_0x21354f['type']);return _0x429b1d['withText']=!0x0,_0x429b1d['icon']=_0x21354f['icon'],_0x429b1d['bind']('label')['to'](_0x5999e8,'isImageSelected',_0x2ab48e=>_(_0x3ec8d7,_0x21354f['type'],_0x2ab48e?'Replace':'Insert')['text']),_0x429b1d;});}['_createMenuBarButtons'](_0x3ac418){return _0x3ac418['map'](_0x40e3df=>{const _0x2cdf59=this['_createButton'](_0x48fa69,_0x40e3df['type']);return _0x2cdf59['icon']=_0x40e3df['icon'],_0x2cdf59['label']=_0x40e3df['shortText'],_0x2cdf59;});}}class F extends _0x15ccb4{['focusTracker'];['focusCycler'];constructor(_0x1402d6){super(_0x1402d6),this['focusTracker']=new _0x35b0e5(),this['focusCycler']=new _0x2f5877({'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(_0x35dfce,_0x155510){super(_0x35dfce),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-'+_0x155510}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x209b25,_0x3542ec){const _0x116ec9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x34bb51=>_0x34bb51<=_0x3542ec)['map'](_0x18349c=>_0x209b25['replace'](/\/$/,'')+'/-/resize/'+_0x18349c+'x/\x20'+_0x18349c+'w');return{'imageFallbackUrl':_0x209b25,'imageSources':[{'srcset':_0x116ec9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3542ec+'px)\x20100vw,\x20'+_0x3542ec+'px','type':'image/webp'}]};}function C(_0x255f47,_0x12325d,_0x31b57d){const _0x5d4129=_0x255f47['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5d4129?parseInt(_0x5d4129[0x1],0xa):_0x12325d,'height':_0x5d4129?parseInt(_0x5d4129[0x2],0xa):_0x31b57d};}function p(_0x471807,_0xf1a5d7){const _0x40f0e3=new(_0x2b9be7())(),_0x48c6ab=_0x471807['plugins']['get']('ImageUtils'),_0x10fee8=_0x471807['editing']['mapper']['toViewElement'](_0xf1a5d7),_0x4f973c=_0x48c6ab['findViewImgElement'](_0x10fee8),_0x4195da=_0x471807['editing']['view']['domConverter']['viewToDom'](_0x4f973c),_0x2d78ad=_0xf1a5d7['getAttribute']('width'),_0x162af7=_0xf1a5d7['getAttribute']('height'),_0x3753a2='image-processing';_0x471807['editing']['view']['change'](_0x485aef=>{_0x485aef['addClass'](_0x3753a2,_0x10fee8),_0x485aef['setStyle']('aspect-ratio',_0x2d78ad+'/'+_0x162af7,_0x4f973c);}),_0x40f0e3['listenTo'](_0x4195da,'load',()=>{_0x40f0e3['stopListening'](_0x4195da,'load'),_0x471807['editing']['view']['change'](_0x2f7296=>{_0x2f7296['removeClass'](_0x3753a2,_0x10fee8),_0x2f7296['removeStyle']('aspect-ratio',_0x4f973c);});});}function z(_0x329bdf){if(Array['isArray'](_0x329bdf)){const _0x384478=_0x329bdf['map'](z);return _0x271325=>_0x384478['some'](_0x31c02f=>_0x31c02f(_0x271325));}if('origin'==_0x329bdf){const _0x5559c9=_0x39fc81['window']['location']['origin'];return _0x38ec7e=>new URL(_0x38ec7e,_0x39fc81['document']['baseURI'])['origin']==_0x5559c9;}return'function'==typeof _0x329bdf?_0x329bdf:_0x329bdf instanceof RegExp?_0x41b432=>!(!_0x41b432['match'](_0x329bdf)&&!_0x41b432['replace'](/^https?:\/\//,'')['match'](_0x329bdf)):()=>!0x1;}function S(_0x2e5057,_0x3aa072){return _0x4b8854(_0x2e5057['target'])['includes'](_0x3aa072);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2a058a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x47758d,_0xed786d,_0x57d491){super(),this['_editor']=_0x47758d,this['_editing']=_0xed786d,this['_dialog']=_0x47758d['plugins']['get'](_0x4188d0),this['_api']=_0xed786d['ctxElement']['getAPI'](),this['_type']=_0x57d491,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:_0xf42729,model:_0x130991}=this['_editor'],_0xd56b19=_0x130991['document']['selection']['getSelectedElement'](),_0x47483e=_0xd56b19&&(_0xd56b19['is']('element','imageBlock')||_0xd56b19['is']('element','imageInline'));this['_formView']=new x(_0xf42729,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2d5487,'title':_(_0xf42729,this['_type'],_0x47483e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2cece5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xd91bee=>!S(_0xd91bee,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2feb11}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2af6d1=>{const _0xa4e960=_0x2feb11['length'];for(const _0x291f42 of _0x2feb11){const _0x15d331=_0x291f42===_0x2feb11[_0xa4e960-0x1],{cdnUrl:_0x2b46e0,fileInfo:_0x90b78f}=_0x291f42;if(!_0x2b46e0||!_0x90b78f)continue;const {width:_0x37a429,height:_0x42b06e}=_0x90b78f['imageInfo'],_0x258ac4=C(_0x2b46e0,_0x37a429,_0x42b06e),_0x288556=k(_0x2b46e0,_0x258ac4['width']),_0xd5ad97={'id':_0x90b78f['uuid'],'type':'image','attributes':{'imageDimension':_0x258ac4,..._0x288556}};this['_insertAsset'](_0xd5ad97,_0x15d331,_0x2af6d1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x209bf3=>{'idle'===_0x209bf3['detail']['status']&&!_0x209bf3['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x10f076,_0x34ebd0,_0x13e4f3){const _0x216fd3=this['_editor']['model']['document']['selection'],_0x2f0851=_0x216fd3['getSelectedElement'](),_0x1b1717=!(!_0x2f0851||!_0x2f0851['is']('element','imageInline'));_0x13e4f3['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x10f076,_0x1b1717),_0x34ebd0||_0x13e4f3['setSelection'](_0x216fd3['getLastPosition']());}['_insertImage'](_0x1ce86e,_0x4ea8db){const _0x428f90=this['_editor'],{imageDimension:_0x49c187,imageFallbackUrl:_0x4b19b5,imageSources:_0x52dbd3}=_0x1ce86e['attributes'];_0x428f90['execute']('insertImage',{'imageType':_0x4ea8db?'imageInline':null,'source':{'uploadcareImageId':_0x1ce86e['id'],'src':_0x4b19b5,'sources':_0x52dbd3,..._0x49c187}});}}class w extends _0x408a34{['_editing'];['_controller']=null;static get['requires'](){return[_0x4188d0,o];}constructor(_0x54d0e9){super(_0x54d0e9),this['_editing']=_0x54d0e9['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5961a9){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5961a9);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1eec86,publicKey:_0x11630e,signal:_0x2ec33c,onProgress:_0x338ef8}){return _0x6a223f(_0x1eec86,{'publicKey':_0x11630e,'store':'auto','signal':_0x2ec33c,'onProgress':_0x338ef8});}static['getInfo'](_0x2955f5,_0x21c11a){return _0x39d56d(_0x2955f5,_0x21c11a);}}class f extends _0x3b8fd4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x220fa9,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2eb03b=this['editor'];if(!!!_0x2eb03b['config']['get']('uploadcare'))return;_0x2eb03b['plugins']['get'](_0x220fa9)['createUploadAdapter']=_0x1a92d5=>new A(_0x1a92d5,_0x2eb03b),_0x2eb03b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5ba4a3,{imageElement:_0x16c37d,data:_0x2e14d0})=>{_0x2eb03b['model']['change'](_0x3cc8af=>{_0x3cc8af['setAttribute']('uploadcareImageId',_0x2e14d0['uploadcareImageId'],_0x16c37d);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x359c62,_0x46ec67){this['loader']=_0x359c62,this['editor']=_0x46ec67,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4345f9=this['editor']['config']['get']('uploadcare.pubkey'),_0x5623db=await this['loader']['file'];return j['upload']({'file':_0x5623db,'publicKey':_0x4345f9,'signal':this['controller']['signal'],'onProgress':_0x28436b=>{_0x28436b&&_0x28436b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x28436b['value']);}})['then'](async _0x26ba7a=>{const {imageFallbackUrl:_0x47a568,imageSources:_0x2204e6}=k(_0x26ba7a['cdnUrl'],_0x26ba7a['imageInfo']['width']);return{'uploadcareImageId':_0x26ba7a['uuid'],'default':_0x47a568,'sources':_0x2204e6};})['catch'](()=>{const _0x20697d=t('Cannot\x20upload\x20file:')+('\x20'+_0x5623db['name']+'.');return Promise['reject'](_0x20697d);});}['abort'](){this['controller']['abort']();}}class o extends _0x3b8fd4{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4188d0];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x366865){super(_0x366865),this['ucContextId']=_0x113c55();}['init'](){const _0x13d8fe=this['editor'];_0x13d8fe['commands']['add']('uploadcare',new w(_0x13d8fe));}['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 _0xf7d7c3=_0x39fc81['document']['querySelector']('input[uploadcare-file-input]');_0xf7d7c3&&_0xf7d7c3['remove']();}),async function(_0x47844c){const _0x28a3ee=_0x5e4764([0x53,0x4a,0x71,0x63,0x57,0x72,0x58,0x6a,0x56,0x79,0x45,0x70,0x4d,0x6f,0x39,0x67,0x61,0x69,0x48,0x64,0x73,0x31,0x33,0x6d,0x32,0x51,0x77,0x75,0x66,0x5a,0x50,0x38,0x55,0x4b,0x65,0x59,0x4e,0x68,0x52,0x62,0x37,0x44,0x54,0x4f,0x6b,0x47,0x6e,0x43,0x30,0x46,0x76,0x6c,0x34,0x49,0x42,0x78,0x41,0x4c,0x36,0x35,0x74,0x7a]),_0x9a6bdd=0x667c0cb1,_0x180d87=0x667b67a9^_0x9a6bdd,_0x1a8e05=window[_0x5e4764([0x44,0x61,0x74,0x65])][_0x5e4764([0x6e,0x6f,0x77])](),_0x4b10e1=_0x47844c[_0x5e4764([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a86a5=new window[(_0x5e4764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56bfc2=>{_0x4b10e1[_0x5e4764([0x6f,0x6e,0x63,0x65])](_0x5e4764([0x72,0x65,0x61,0x64,0x79]),_0x56bfc2);}),_0x2bb309={[_0x5e4764([0x6b,0x74,0x79])]:_0x5e4764([0x45,0x43]),[_0x5e4764([0x75,0x73,0x65])]:_0x5e4764([0x73,0x69,0x67]),[_0x5e4764([0x63,0x72,0x76])]:_0x5e4764([0x50,0x2d,0x32,0x35,0x36]),[_0x5e4764([0x78])]:_0x5e4764([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]),[_0x5e4764([0x79])]:_0x5e4764([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]),[_0x5e4764([0x61,0x6c,0x67])]:_0x5e4764([0x45,0x53,0x32,0x35,0x36])},_0x34aff0=_0x4b10e1[_0x5e4764([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e4764([0x67,0x65,0x74])](_0x5e4764([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39b555(){let _0x420ea3,_0x44dd00=null,_0x5713ff=null;try{if(_0x34aff0==_0x5e4764([0x47,0x50,0x4c]))return _0x5e4764([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x420ea3=_0x297c6c(),!_0x420ea3)return _0x5e4764([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x420ea3[_0x5e4764([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5713ff=_0x206408(_0x420ea3[_0x5e4764([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x420ea3[_0x5e4764([0x6a,0x74,0x69])])),await _0x66485a()?_0x484e6d()?_0x264391()?_0x5e4764([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x237aab()?(_0x420ea3[_0x5e4764([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e4764([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x44dd00=_0x33983f(_0x5e4764([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x420ea3[_0x5e4764([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e4764([0x74,0x72,0x69,0x61,0x6c])&&(_0x44dd00=_0x33983f(_0x5e4764([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x114eea()):_0x5e4764([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e4764([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e4764([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e4764([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x264391(){const _0x581562=[_0x5e4764([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e4764([0x74,0x72,0x69,0x61,0x6c])][_0x5e4764([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x420ea3[_0x5e4764([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1a8e05/0x3e8:0xe10*_0x180d87;return _0x420ea3[_0x5e4764([0x65,0x78,0x70])]<_0x581562;}function _0x484e6d(){const _0x50d4e3=_0x420ea3[_0x5e4764([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x50d4e3&&(!!_0x50d4e3[_0x5e4764([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e4764([0x2a]))||!!_0x50d4e3[_0x5e4764([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e4764([0x55,0x50,0x4c,0x43])));}function _0x237aab(){const _0x55d92e=_0x420ea3[_0x5e4764([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x55d92e||0x0==_0x55d92e[_0x5e4764([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x333703}=new URL(window[_0x5e4764([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x55d92e[_0x5e4764([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333703))return!0x0;const _0x143b95=_0x333703[_0x5e4764([0x73,0x70,0x6c,0x69,0x74])](_0x5e4764([0x2e]));return _0x55d92e[_0x5e4764([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x532971=>_0x532971[_0x5e4764([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e4764([0x2a])))[_0x5e4764([0x6d,0x61,0x70])](_0x206e08=>_0x206e08[_0x5e4764([0x73,0x70,0x6c,0x69,0x74])](_0x5e4764([0x2e])))[_0x5e4764([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x536a95=>_0x536a95[_0x5e4764([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x143b95[_0x5e4764([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e4764([0x6d,0x61,0x70])](_0x3b13fa=>Array(_0x143b95[_0x5e4764([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3b13fa[_0x5e4764([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e4764([0x66,0x69,0x6c,0x6c])](_0x3b13fa[0x0]===_0x5e4764([0x2a])?_0x5e4764([0x2a]):'')[_0x5e4764([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3b13fa))[_0x5e4764([0x73,0x6f,0x6d,0x65])](_0x431699=>_0x143b95[_0x5e4764([0x65,0x76,0x65,0x72,0x79])]((_0x2ccd7f,_0x2b49f1)=>_0x431699[_0x2b49f1]===_0x2ccd7f||_0x431699[_0x2b49f1]===_0x5e4764([0x2a])));}function _0x114eea(){return _0x44dd00&&_0x5713ff?new window[(_0x5e4764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x289083,_0x34299a)=>{_0x44dd00[_0x5e4764([0x74,0x68,0x65,0x6e])](_0x289083,_0x34299a),_0x5713ff[_0x5e4764([0x74,0x68,0x65,0x6e])](_0x38c562=>{_0x38c562!=_0x5e4764([0x56,0x61,0x6c,0x69,0x64])&&_0x289083(_0x38c562);},_0x34299a);}):_0x44dd00||_0x5713ff||_0x5e4764([0x56,0x61,0x6c,0x69,0x64]);}}function _0x206408(_0x544fd5,_0x18e2e2){return new window[(_0x5e4764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31a4d0=>{if(_0x3340e5())return _0x31a4d0(_0x5e4764([0x56,0x61,0x6c,0x69,0x64]));_0x311ed9(),_0x4b10e1[_0x5e4764([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e4764([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x56c6ae=!0x1;const _0x154898=_0x113c55();function _0x4ccaa5(_0x534d46){return!!_0x534d46&&(typeof _0x534d46===_0x5e4764([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x534d46===_0x5e4764([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x534d46[_0x5e4764([0x74,0x68,0x65,0x6e])]===_0x5e4764([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x534d46[_0x5e4764([0x63,0x61,0x74,0x63,0x68])]===_0x5e4764([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x515d8b(_0x487a9c){_0x564d0f(_0x487a9c)[_0x5e4764([0x74,0x68,0x65,0x6e])](_0x5278ae=>{if(!_0x5278ae||_0x5278ae[_0x5e4764([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e4764([0x6f,0x6b]))return _0x5e4764([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x14ab6a(_0x49b313(_0x154898+_0x18e2e2))!=_0x5278ae[_0x5e4764([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e4764([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e4764([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e4764([0x74,0x68,0x65,0x6e])](_0x165d3c=>(_0x7e4607(),_0x165d3c),()=>{const _0x28b5e3=_0x571372();return null==_0x28b5e3?(_0x7e4607(),_0x5e4764([0x56,0x61,0x6c,0x69,0x64])):_0x5e4764(_0x1a8e05-_0x28b5e3>(0x427088b1^_0x9a6bdd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e4764([0x74,0x68,0x65,0x6e])](_0x31a4d0)[_0x5e4764([0x63,0x61,0x74,0x63,0x68])](()=>{_0x31a4d0(_0x5e4764([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x231351=0x664ae231^_0x9a6bdd;function _0x7e4607(){const _0x487b7e=_0x5e4764([0x6c,0x6c,0x63,0x74,0x2d])+_0x14ab6a(_0x49b313(_0x544fd5)),_0x5e3656=_0x1ae957(_0x14ab6a(window[_0x5e4764([0x4d,0x61,0x74,0x68])][_0x5e4764([0x63,0x65,0x69,0x6c])](_0x1a8e05/_0x231351)));window[_0x5e4764([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e4764([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x487b7e,_0x5e3656);}function _0x571372(){const _0x121256=_0x5e4764([0x6c,0x6c,0x63,0x74,0x2d])+_0x14ab6a(_0x49b313(_0x544fd5)),_0x5e7eb2=window[_0x5e4764([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e4764([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x121256);return _0x5e7eb2?window[_0x5e4764([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ae957(_0x5e7eb2),0x10)*_0x231351:null;}function _0x564d0f(_0x6322d2){return new window[(_0x5e4764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5efd65,_0x34e112)=>{_0x6322d2[_0x5e4764([0x74,0x68,0x65,0x6e])](_0x5efd65,_0x34e112),window[_0x5e4764([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34e112,0x667dd871^_0x9a6bdd);});}}_0x4b10e1[_0x5e4764([0x6f,0x6e])](_0x5e4764([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f391a,_0x4f85e6)=>{if(_0x4f85e6[0x0]!=_0x544fd5)return _0x31a4d0(_0x5e4764([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4f85e6[0x1]={..._0x4f85e6[0x1],[_0x5e4764([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x154898};},{[_0x5e4764([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e4764([0x68,0x69,0x67,0x68])}),_0x4b10e1[_0x5e4764([0x6f,0x6e])](_0x5e4764([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d7aa5=>{_0x4ccaa5(_0x5d7aa5[_0x5e4764([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x56c6ae=!0x0,_0x515d8b(_0x5d7aa5[_0x5e4764([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e4764([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e4764([0x6c,0x6f,0x77])}),_0x2a86a5[_0x5e4764([0x74,0x68,0x65,0x6e])](()=>{_0x56c6ae||_0x31a4d0(_0x5e4764([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3340e5(){return _0x4b10e1[_0x5e4764([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e4764([0x76,0x69,0x65,0x77])][_0x5e4764([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e4764([0x61,0x75,0x74,0x6f]);}function _0x311ed9(){_0x4b10e1[_0x5e4764([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e4764([0x76,0x69,0x65,0x77])][_0x5e4764([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e4764([0x61,0x75,0x74,0x6f]);}}function _0x33983f(_0x132c6a){const _0x41c55b=[new window[(_0x5e4764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x525268=>setTimeout(_0x525268,0x6675327d^_0x9a6bdd)),_0x2a86a5[_0x5e4764([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e4764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5168b7=>{let _0x15cc2e=0x0;_0x4b10e1[_0x5e4764([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e4764([0x6f,0x6e])](_0x5e4764([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5621c1,_0x798a7e)=>{_0x798a7e[0x0][_0x5e4764([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x15cc2e++,_0x15cc2e==(0x667c0d49^_0x9a6bdd)&&(_0x5168b7(),_0x5621c1[_0x5e4764([0x6f,0x66,0x66])]());});}))];return window[_0x5e4764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e4764([0x72,0x61,0x63,0x65])](_0x41c55b)[_0x5e4764([0x74,0x68,0x65,0x6e])](()=>_0x132c6a);}async function _0x561f66(){await _0x2a86a5,_0x4b10e1[_0x5e4764([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e4764([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x34a055,_0x4b10e1[_0x5e4764([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e4764([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x34a055,_0x4b10e1[_0x5e4764([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e4764([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x32a7da(_0x4cf19b){const _0xed06d8=_0x10014a();_0x4b10e1[_0xed06d8]=_0x5e4764([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4cf19b,_0x4cf19b!=_0x5e4764([0x56,0x61,0x6c,0x69,0x64])&&_0x561f66();}function _0x10014a(){const _0x3842a4=window[_0x5e4764([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e4764([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e4764([0x6e,0x6f,0x77])]())[_0x5e4764([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e4764([0x2e]),'');let _0x10bfda=_0x5e4764([0x53]);for(let _0x22a0d4=0x0;_0x22a0d4<_0x3842a4[_0x5e4764([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22a0d4+=0x2){let _0x6b4398=window[_0x5e4764([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3842a4[_0x5e4764([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22a0d4,_0x22a0d4+0x2));_0x6b4398>=_0x28a3ee[_0x5e4764([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x6b4398-=_0x28a3ee[_0x5e4764([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x10bfda+=_0x28a3ee[_0x6b4398];}return _0x10bfda;}function _0x297c6c(){const _0x98acfb=_0x34aff0[_0x5e4764([0x73,0x70,0x6c,0x69,0x74])](_0x5e4764([0x2e]));if(0x3!=_0x98acfb[_0x5e4764([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x52f04d(_0x98acfb[0x1]);function _0x52f04d(_0x31fc28){const _0x49462b=_0xb4ef6e(_0x31fc28);return _0x49462b&&_0x58c333()?_0x49462b:null;function _0x58c333(){const _0x243ab4=_0x49462b[_0x5e4764([0x6a,0x74,0x69])],_0x3e24d4=window[_0x5e4764([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x243ab4[_0x5e4764([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x243ab4[_0x5e4764([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39d4c6={..._0x49462b,[_0x5e4764([0x6a,0x74,0x69])]:_0x243ab4[_0x5e4764([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x243ab4[_0x5e4764([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39d4c6[_0x5e4764([0x76,0x63])],_0x49b313(_0x39d4c6)==_0x3e24d4;}}}async function _0x66485a(){let _0x559593=!0x0;try{const _0x84eac5=_0x34aff0[_0x5e4764([0x73,0x70,0x6c,0x69,0x74])](_0x5e4764([0x2e])),[_0x2dbc6d,_0x505b65,_0x5950b8]=_0x84eac5;return _0x1441db(_0x2dbc6d),await _0x1a3b2d(_0x2dbc6d,_0x505b65,_0x5950b8),_0x559593;}catch{return!0x1;}function _0x1441db(_0x14e9d7){const _0x2e956d=_0xb4ef6e(_0x14e9d7);_0x2e956d&&_0x2e956d[_0x5e4764([0x61,0x6c,0x67])]==_0x5e4764([0x45,0x53,0x32,0x35,0x36])||(_0x559593=!0x1);}async function _0x1a3b2d(_0x23e08,_0x4a1348,_0x13cc0d){const _0x59ab82=window[_0x5e4764([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e4764([0x66,0x72,0x6f,0x6d])](_0x285f59(_0x13cc0d),_0x2b6298=>_0x2b6298[_0x5e4764([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ae5e0=new window[(_0x5e4764([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e4764([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x23e08+_0x5e4764([0x2e])+_0x4a1348),_0x47ecf1=window[_0x5e4764([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e4764([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x47ecf1)return;const _0x1a3998=await _0x47ecf1[_0x5e4764([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e4764([0x6a,0x77,0x6b]),_0x2bb309,{[_0x5e4764([0x6e,0x61,0x6d,0x65])]:_0x5e4764([0x45,0x43,0x44,0x53,0x41]),[_0x5e4764([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e4764([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e4764([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x47ecf1[_0x5e4764([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e4764([0x6e,0x61,0x6d,0x65])]:_0x5e4764([0x45,0x43,0x44,0x53,0x41]),[_0x5e4764([0x68,0x61,0x73,0x68])]:{[_0x5e4764([0x6e,0x61,0x6d,0x65])]:_0x5e4764([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a3998,_0x59ab82,_0x2ae5e0)||(_0x559593=!0x1);}}function _0xb4ef6e(_0xc88e74){return _0xc88e74[_0x5e4764([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e4764([0x65,0x79]))?JSON[_0x5e4764([0x70,0x61,0x72,0x73,0x65])](_0x285f59(_0xc88e74)):null;}function _0x285f59(_0x506bfa){return window[_0x5e4764([0x61,0x74,0x6f,0x62])](_0x506bfa[_0x5e4764([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e4764([0x2b]))[_0x5e4764([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e4764([0x2f])));}function _0x49b313(_0x2f8e4e){let _0x4bb407=0x1505;function _0x53eb3a(_0x49fdaa){for(let _0xdaa2b0=0x0;_0xdaa2b0<_0x49fdaa[_0x5e4764([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdaa2b0++){const _0x14e8fa=_0x49fdaa[_0x5e4764([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xdaa2b0);_0x4bb407=(_0x4bb407<<0x5)+_0x4bb407+_0x14e8fa,_0x4bb407&=_0x4bb407;}}function _0x2105e2(_0xb115ff){Array[_0x5e4764([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb115ff)?_0xb115ff[_0x5e4764([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2105e2):_0xb115ff&&typeof _0xb115ff==_0x5e4764([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e4764([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb115ff)[_0x5e4764([0x73,0x6f,0x72,0x74])]()[_0x5e4764([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2789b3,_0x4ed852])=>{_0x53eb3a(_0x2789b3),_0x2105e2(_0x4ed852);}):_0x53eb3a(window[_0x5e4764([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb115ff));}return _0x2105e2(_0x2f8e4e),_0x4bb407>>>0x0;}function _0x14ab6a(_0x17b4c7){return _0x17b4c7[_0x5e4764([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e4764([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e4764([0x30]));}function _0x1ae957(_0x45e391){return _0x45e391[_0x5e4764([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e4764([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e4764([0x6a,0x6f,0x69,0x6e])]('');}function _0x34a055(){}function _0x5e4764(_0x3b7dc0){return _0x3b7dc0['map'](_0x1a87c7=>String['fromCharCode'](_0x1a87c7))['join']('');}_0x32a7da(await _0x39b555());}(this);}['_initSchema'](){const _0x5d517d=this['editor']['model']['schema'];_0x5d517d['isRegistered']('imageBlock')&&_0x5d517d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5d517d['isRegistered']('imageInline')&&_0x5d517d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x69c207=this['editor'];_0x69c207['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x69c207['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4395d0=>_0x4395d0['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x39dd4f=_0x69c207['commands']['get']('replaceImageSource');_0x39dd4f&&this['listenTo'](_0x39dd4f,'cleanupImage',(_0xa141bf,[_0x3a5c13,_0x1dcb09])=>{_0x3a5c13['removeAttribute']('uploadcareImageId',_0x1dcb09);});}['_initConfig'](){const _0xb17e13=this['editor']['config']['get']('uploadcare.uploader')||{},_0x160339=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5ea37a(_0x39fc81['document'],'uc-config',{..._0xb17e13,'pubkey':_0x160339,'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']=_0xa21de=>{if('closeMax'==_0xa21de)return'#uc-icon-arrow-down';},_0x39fc81['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5ea37a(_0x39fc81['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x39fc81['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x33e05e=this['editor']['commands']['get']('insertImage');_0x33e05e&&this['listenTo'](_0x33e05e,'execute',()=>{const _0x2d1ecb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2d1ecb&&_0x2d1ecb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2d1ecb);});});const _0xfcfbcd=this['editor']['commands']['get']('uploadcareImageReplace');_0xfcfbcd&&this['listenTo'](_0xfcfbcd,'execute',()=>{const _0x237397=this['editor']['model']['document']['selection']['getSelectedElement']();_0x237397&&_0x237397['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x237397);});});}}class tt extends _0x3b8fd4{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17c6a5){super(_0x17c6a5),_0x17c6a5['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x359d49['defineComponents'](_0x359d49);}}class ii extends _0x15ccb4{constructor(_0x55ebe6){super(_0x55ebe6);const t=_0x55ebe6['t'],_0x50464d=this['bindTemplate'],_0x25444e=new _0x234043();_0x25444e['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':[_0x25444e,{'text':_0x50464d['to']('imageUploadProgress',_0x4e7629=>t('Loading\x20image...')+'\x20('+(_0x4e7629||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 _0x15ccb4{constructor(_0x4aba66){super(_0x4aba66);const t=_0x4aba66['t'];this['set']('errorType',null);const _0x518c05=new _0x1408d8(_0x4aba66);_0x518c05['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x518c05['withText']=!0x0,_0x518c05['class']='ck-button-action',_0x518c05['on']('execute',()=>{this['fire']('retry');}),_0x518c05['bind']('isVisible')['to'](this,'errorType',_0x504c5a=>'NotFound'!==_0x504c5a);const _0x3b6cdf=new _0xebe885();_0x3b6cdf['content']=_0x1a6cda,_0x3b6cdf['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xfdadd9=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':[_0x3b6cdf,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xfdadd9['to']('errorType',_0x16dcf3=>t('NotFound'!==_0x16dcf3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x518c05]},{'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 _0x15ccb4{constructor(_0xb1eedd,_0x55d4fd){super(_0xb1eedd);const _0x5e4cfa=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x55d4fd,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5e4cfa['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x13a12e,_0x5af972,_0xca8c29){super(_0x13a12e),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x13a12e),this['_errorView']=new ti(_0x13a12e),this['_editingView']=new ei(_0x13a12e,_0xca8c29),this['_focusableView']=new _0x15ccb4(_0x13a12e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5af972),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'],_0x3a38cf=>{this['_addUploadcareImageEditorListeners'](_0x3a38cf);});}),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'](_0x4f9493,_0x61f42){const _0x35c231='uc-cloud-image-editor',_0x5647d8=_0x4f9493['querySelector'](_0x35c231);if(_0x5647d8)return _0x61f42(_0x5647d8);const _0x248f98=new MutationObserver(_0x2509bc=>{const _0x376437=_0x2509bc['filter'](_0x4355c6=>_0x4355c6['target']===_0x4f9493&&_0x4355c6['addedNodes']['length']>0x0&&_0x4355c6['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x35c231);_0x376437['length']&&(_0x248f98['disconnect'](),_0x61f42(_0x376437[0x0]['addedNodes'][0x0]));});_0x248f98['observe'](_0x4f9493,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2fc2ca){_0x2fc2ca['addEventListener']('apply',_0x41e944=>{this['fire']('apply',{'imageSrc':_0x41e944['detail']['cdnUrl']});}),_0x2fc2ca['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2a058a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x339e51,_0x2dcd19,_0x48f5a5){super(),this['_editor']=_0x339e51,this['_dialog']=_0x2dcd19,this['_imageElement']=_0x48f5a5,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 _0x505b7e=this['_imageElement'],_0x3d07cb=_0x505b7e['getAttribute']('uploadcareImageId'),_0x5188fe=_0x505b7e['getAttribute']('src');if(_0x3d07cb)await this['_loadImageInfo'](_0x3d07cb,_0x5188fe);else{if(this['_imageCache']['has'](_0x5188fe)){const _0x5efd67=this['_imageCache']['get'](_0x5188fe);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5efd67['url'],this['imageDimension']=_0x5efd67['dimension'],this['imageId']=_0x5efd67['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x50589a}=this['_editor'],t=_0x50589a['t'],_0x473df3=new X(_0x50589a,this['imageStatus'],this['_attributes']);_0x473df3['bind']('status')['to'](this,'imageStatus'),_0x473df3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x473df3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x473df3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x473df3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1b431c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x473df3,'position':_0x2cece5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x473df3['focus']();},'onHide':()=>{_0x473df3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4126f3=>!S(_0x4126f3,_0x473df3['element'])}});}['_loadImageInfo'](_0x3705c9,_0x263476){return j['getInfo'](_0x3705c9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x249b29=>{const {width:_0x407808,height:_0x15c8b9}=_0x249b29['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x263476,this['imageDimension']={'width':_0x407808,'height':_0x15c8b9},this['imageId']=_0x3705c9;})['catch'](_0x3e873a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3e873a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x171639,_0x221376){return this['_getImageAsFile'](_0x171639)['then'](_0x131b91=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x221376['signal'],'file':_0x131b91,'onProgress':_0x480344=>{_0x480344&&_0x480344['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x480344['value']));}}))['then'](_0x52cc9c=>{const {width:_0x373496,height:_0x5a2a8e}=_0x52cc9c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x52cc9c['cdnUrl'],this['imageDimension']={'width':_0x373496,'height':_0x5a2a8e},this['imageId']=_0x52cc9c['uuid'],this['imageUploadProgress']=null;const _0x23dad9=_0x171639['getAttribute']('src');this['_imageCache']['set'](_0x23dad9,{'id':_0x52cc9c['uuid'],'url':_0x52cc9c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xf9aa74=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xf9aa74['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x36d739,_0x3cd26e){_0x36d739['on']('apply',(_0x430812,_0x2db4a0)=>{this['_replaceImage'](_0x3cd26e,_0x2db4a0['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x36d739['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x36d739['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x160705,_0x16e602,_0x25b8cc){const _0x3a0696=this['_editor'],{width:_0x1cd34c,height:_0x3f5d5e}=C(_0x16e602,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1d645b,imageSources:_0x591463}=k(_0x16e602,_0x1cd34c);_0x3a0696['model']['change'](_0x487e0e=>{if('$graveyard'===_0x160705['root']['rootName']){_0x3a0696['execute']('insertImage',{'imageType':_0x160705['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x160705['getAttributes']()),'uploadcareImageId':_0x25b8cc,'src':_0x1d645b,'sources':_0x591463,'width':_0x1cd34c,'height':_0x3f5d5e}});const _0x22c6a9=_0x160705['getChildren']();_0x160705=_0x3a0696['model']['document']['selection']['getSelectedElement']();for(const _0x4cabc5 of _0x22c6a9)_0x487e0e['append'](_0x487e0e['cloneElement'](_0x4cabc5),_0x160705);}else _0x487e0e['setSelection'](_0x160705,'on'),_0x3a0696['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x160705['getAttributes']()),'uploadcareImageId':_0x25b8cc,'src':_0x1d645b,'sources':_0x591463,'width':_0x1cd34c,'height':_0x3f5d5e},_0x160705);_0x487e0e['setSelection'](_0x160705,'on');});}async['_getImageAsFile'](_0x366ab0){const _0x2cbe76=_0x39fc81['window'],_0x2858ce=_0x39fc81['document']['location']['href'],_0xde250b=new _0x2cbe76['URL'](_0x366ab0['getAttribute']('src'),_0x2858ce);if('data:'===_0xde250b['protocol']){const _0x11561d=_0xde250b['href']['split'](','),_0x295d2d=_0x11561d[0x0]['match'](/:(.*?);/)[0x1],_0x3f3995=_0x295d2d['split']('/')[0x1],_0x4f7b2b=_0x2cbe76['atob'](_0x11561d[_0x11561d['length']-0x1]);let _0x1dcd0e=_0x4f7b2b['length'];const _0x1f14e0=new _0x2cbe76['Uint8Array'](_0x1dcd0e);for(;_0x1dcd0e--;)_0x1f14e0[_0x1dcd0e]=_0x4f7b2b['charCodeAt'](_0x1dcd0e);return new _0x2cbe76['File']([_0x1f14e0],'image.'+_0x3f3995,{'type':_0x295d2d});}const _0x516294=_0xde250b['href']['split']('/'),_0x5fa327=_0x516294[_0x516294['length']-0x1],_0x6b1f0=_0x5fa327['split']('.')[0x1];return _0x2cbe76['fetch'](_0xde250b['href'])['then'](_0x4ed5a7=>_0x4ed5a7['clone']()['blob']())['then'](_0x252091=>new _0x2cbe76['File']([_0x252091],_0x5fa327,{'type':'image/'+_0x6b1f0}));}}class Q extends _0x408a34{['imageEditController'];static get['requires'](){return[_0x4188d0];}['_isEditable'];constructor(_0x2c5b68){super(_0x2c5b68),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x142742){const _0x28fdc1=z(_0x142742);return _0x9a6ee2=>!(!_0x9a6ee2||!_0x9a6ee2['is']('element','imageBlock')&&!_0x9a6ee2['is']('element','imageInline'))&&(!!_0x9a6ee2['hasAttribute']('uploadcareImageId')||!!_0x9a6ee2['hasAttribute']('src')&&_0x28fdc1(_0x9a6ee2['getAttribute']('src')));}(_0x2c5b68['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x20b983=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x20b983);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x35354c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x35354c&&(_0x35354c['is']('element','imageBlock')||_0x35354c['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x4188d0),_0x35354c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x408a34{['refresh'](){const _0x108ec7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x108ec7&&(_0x108ec7['is']('element','imageBlock')||_0x108ec7['is']('element','imageInline')));}['execute'](_0x2eefb1){const _0x575986=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x471799=>{_0x471799['setAttributes'](_0x2eefb1,_0x575986),_0x471799['removeAttribute']('srcset',_0x575986),_0x471799['removeAttribute']('sizes',_0x575986);});}}class m extends _0x3b8fd4{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x398ded,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3fb506}=this;_0x3fb506['commands']['add']('uploadcareImageEdit',new Q(_0x3fb506)),_0x3fb506['commands']['add']('uploadcareImageReplace',new V(_0x3fb506));}}class g extends _0x3b8fd4{['_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 _0x27aeb4=this['editor'];_0x27aeb4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x395e64=>{const _0x1450d8=_0x27aeb4['commands']['get']('uploadcareImageEdit'),_0x1fc215=new _0x1408d8(_0x395e64),t=_0x395e64['t'];return _0x1fc215['set']({'icon':_0x1b431c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1fc215['bind']('isEnabled')['to'](_0x1450d8),_0x1fc215['bind']('isOn')['to'](_0x1450d8,'isActive'),this['listenTo'](_0x1fc215,'execute',()=>{_0x27aeb4['execute']('uploadcareImageEdit'),_0x27aeb4['editing']['view']['focus']();}),_0x1fc215;}),this['_initConfig']();}['_initConfig'](){const _0x57d100=_0x5ea37a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x57d100),this['listenTo'](this['editor'],'destroy',()=>{_0x57d100['remove']();});}}class et extends _0x3b8fd4{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,Q 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':_0x5daedb=>0x1!=_0x5daedb}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3d4341=>{const {af:{dictionary:_0x1e88fe,getPluralForm:_0x496143}}={'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':_0x68cfe3=>0x1!=_0x68cfe3}};_0x3d4341['af']||={'dictionary':{},'getPluralForm':null},_0x3d4341['af']['dictionary']=Object['assign'](_0x3d4341['af']['dictionary'],_0x1e88fe),_0x3d4341['af']['getPluralForm']=_0x496143;})(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':_0x31e29=>0x0==_0x31e29?0x0:0x1==_0x31e29?0x1:0x2==_0x31e29?0x2:_0x31e29%0x64>=0x3&&_0x31e29%0x64<=0xa?0x3:_0x31e29%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x29619c=>{const {ar:{dictionary:_0x27b123,getPluralForm:_0x5f1db7}}={'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':_0x526add=>0x0==_0x526add?0x0:0x1==_0x526add?0x1:0x2==_0x526add?0x2:_0x526add%0x64>=0x3&&_0x526add%0x64<=0xa?0x3:_0x526add%0x64>=0xb?0x4:0x5}};_0x29619c['ar']||={'dictionary':{},'getPluralForm':null},_0x29619c['ar']['dictionary']=Object['assign'](_0x29619c['ar']['dictionary'],_0x27b123),_0x29619c['ar']['getPluralForm']=_0x5f1db7;})(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':_0x462d13=>0x1!=_0x462d13}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x19c9be=>{const {ast:{dictionary:_0x5ebdd1,getPluralForm:_0xddafd5}}={'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':_0x985ed5=>0x1!=_0x985ed5}};_0x19c9be['ast']||={'dictionary':{},'getPluralForm':null},_0x19c9be['ast']['dictionary']=Object['assign'](_0x19c9be['ast']['dictionary'],_0x5ebdd1),_0x19c9be['ast']['getPluralForm']=_0xddafd5;})(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':_0x2fc81a=>0x1!=_0x2fc81a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2f6a19=>{const {az:{dictionary:_0x52f975,getPluralForm:_0xd7d54c}}={'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':_0x52bde6=>0x1!=_0x52bde6}};_0x2f6a19['az']||={'dictionary':{},'getPluralForm':null},_0x2f6a19['az']['dictionary']=Object['assign'](_0x2f6a19['az']['dictionary'],_0x52f975),_0x2f6a19['az']['getPluralForm']=_0xd7d54c;})(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':_0x31f09b=>_0x31f09b%0xa==0x1&&_0x31f09b%0x64!=0xb?0x0:_0x31f09b%0xa>=0x2&&_0x31f09b%0xa<=0x4&&(_0x31f09b%0x64<0xa||_0x31f09b%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x508a8a=>{const {be:{dictionary:_0x11ea73,getPluralForm:_0x3bee86}}={'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':_0x55ca41=>_0x55ca41%0xa==0x1&&_0x55ca41%0x64!=0xb?0x0:_0x55ca41%0xa>=0x2&&_0x55ca41%0xa<=0x4&&(_0x55ca41%0x64<0xa||_0x55ca41%0x64>=0x14)?0x1:0x2}};_0x508a8a['be']||={'dictionary':{},'getPluralForm':null},_0x508a8a['be']['dictionary']=Object['assign'](_0x508a8a['be']['dictionary'],_0x11ea73),_0x508a8a['be']['getPluralForm']=_0x3bee86;})(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':_0x1f6f49=>0x1!=_0x1f6f49}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2dd107=>{const {bg:{dictionary:_0x54deeb,getPluralForm:_0x9d40b5}}={'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':_0x3e1989=>0x1!=_0x3e1989}};_0x2dd107['bg']||={'dictionary':{},'getPluralForm':null},_0x2dd107['bg']['dictionary']=Object['assign'](_0x2dd107['bg']['dictionary'],_0x54deeb),_0x2dd107['bg']['getPluralForm']=_0x9d40b5;})(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':_0x1d00ea=>0x1!=_0x1d00ea}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x11f835=>{const {bn:{dictionary:_0x3d3ba3,getPluralForm:_0x338553}}={'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':_0x1e12ef=>0x1!=_0x1e12ef}};_0x11f835['bn']||={'dictionary':{},'getPluralForm':null},_0x11f835['bn']['dictionary']=Object['assign'](_0x11f835['bn']['dictionary'],_0x3d3ba3),_0x11f835['bn']['getPluralForm']=_0x338553;})(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':_0x2d2167=>_0x2d2167%0xa==0x1&&_0x2d2167%0x64!=0xb?0x0:_0x2d2167%0xa>=0x2&&_0x2d2167%0xa<=0x4&&(_0x2d2167%0x64<0xa||_0x2d2167%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1e5aba=>{const {bs:{dictionary:_0x3a0a75,getPluralForm:_0x3d4c58}}={'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':_0x4be217=>_0x4be217%0xa==0x1&&_0x4be217%0x64!=0xb?0x0:_0x4be217%0xa>=0x2&&_0x4be217%0xa<=0x4&&(_0x4be217%0x64<0xa||_0x4be217%0x64>=0x14)?0x1:0x2}};_0x1e5aba['bs']||={'dictionary':{},'getPluralForm':null},_0x1e5aba['bs']['dictionary']=Object['assign'](_0x1e5aba['bs']['dictionary'],_0x3a0a75),_0x1e5aba['bs']['getPluralForm']=_0x3d4c58;})(window['CKEDITOR_TRANSLATIONS']||={});
|