@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251029.0 → 0.0.0-nightly-20251031.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x49567f,Command as _0x4b44f4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x40d41f,IconGooglePhotos as _0x572bf7,IconGoogleDrive as _0x35b044,IconFacebook as _0x13cd5b,IconDropbox as _0x2e8729,IconUploadcareLink as _0x516b87,IconUploadcareImageUpload as _0x3f6613,IconError as _0x1f0d9e,IconUploadcareImageEdit as _0xb57633}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3529a8,MenuBarMenuListItemButtonView as _0x196e77,View as _0x3aa43a,FocusCycler as _0x3c3002,Dialog as _0x891a77,DialogViewPosition as _0x2748d0,SpinnerView as _0x268297,IconView as _0x3c5517,Notification as _0x12a52d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3bbf8e,DomEmitterMixin as _0x10c031,global as _0x434341,getAncestors as _0x3e75c6,ObservableMixin as _0x2edf27,uid as _0x295c6e,createElement as _0x416aad}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xbbff78}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x43177c,info as _0x188069}from'@uploadcare/upload-client';import*as _0x24ddcf from'@uploadcare/file-uploader';var i=function(_0x13f0f5){return _0x13f0f5['Local']='local',_0x13f0f5['URL']='url',_0x13f0f5['Dropbox']='dropbox',_0x13f0f5['GDrive']='gdrive',_0x13f0f5['Facebook']='facebook',_0x13f0f5['GPhotos']='gphotos',_0x13f0f5['OneDrive']='onedrive',_0x13f0f5;}({});function _(_0x5df4f8,_0x1da6ac,_0x7dd19c){const t=_0x5df4f8['t'],_0xd7fd73=_0x5df4f8['t'];switch(_0x1da6ac){case i['Local']:return{'text':_0xd7fd73('Insert'===_0x7dd19c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xd7fd73('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x7dd19c?_0xd7fd73('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xd7fd73('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x7dd19c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x7dd19c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x7dd19c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x7dd19c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x7dd19c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1da6ac;}}class e extends _0x49567f{['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 _0xa46d3f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x354cd7;for(const _0x4a34a2 in _0xa46d3f){const _0x5d9205=_0x4a34a2,_0x40d57f=_0xa46d3f[_0x5d9205];if('uploadcareLicenseKeyValid'==_0x40d57f||'uploadcareLicenseKeyInvalid'==_0x40d57f||'uploadcareLicenseKeyExpired'==_0x40d57f||'uploadcareLicenseKeyDomainLimit'==_0x40d57f||'uploadcareLicenseKeyNotAllowed'==_0x40d57f||'uploadcareLicenseKeyEvaluationLimit'==_0x40d57f||'uploadcareLicenseKeyTrialLimit'==_0x40d57f||'uploadcareLicenseKeyUsageLimit'==_0x40d57f){delete _0xa46d3f[_0x5d9205],_0x354cd7=_0x40d57f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x354cd7&&_0xa46d3f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x354cd7&&_0xa46d3f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x354cd7&&_0xa46d3f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x354cd7&&_0xa46d3f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x354cd7&&_0xa46d3f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x354cd7&&_0xa46d3f['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x354cd7&&_0xa46d3f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x30b024}=this,_0x33331e=_0x30b024['commands']['get']('uploadcare');if(!_0x33331e)return;const _0x27b41c=this['_normalizeConfigSourceList'](_0x30b024['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1af4cc,_0x6060a9)=>{const _0x4c3e61=this['_getIntegrationKey'](_0x6060a9['type']);return _0x1af4cc[_0x4c3e61]||(_0x1af4cc[_0x4c3e61]=[]),_0x1af4cc[_0x4c3e61]['push'](_0x6060a9),_0x1af4cc;},{});_0x30b024['plugins']['has']('ImageInsertUI')&&_0x30b024['commands']['get']('uploadcare')&&Object['entries'](_0x27b41c)['forEach'](([_0x67067a,_0x403986])=>{_0x30b024['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x67067a,'observable':()=>_0x33331e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x403986),'formViewCreator':()=>this['_createDropdownButtons'](_0x403986),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x403986),'override':'assetManager'!==_0x67067a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x639982){const {locale:_0x1e0d7b}=this['editor'];return _0x639982['map'](_0x3bba6f=>{const _0x3221ef=_(_0x1e0d7b,_0x3bba6f,'Insert');switch(_0x3bba6f){case i['Local']:return{'icon':_0x3f6613,'type':i['Local'],..._0x3221ef};case i['URL']:return{'icon':_0x516b87,'type':i['URL'],..._0x3221ef};case i['Dropbox']:return{'icon':_0x2e8729,'type':i['Dropbox'],..._0x3221ef};case i['Facebook']:return{'icon':_0x13cd5b,'type':i['Facebook'],..._0x3221ef};case i['GDrive']:return{'icon':_0x35b044,'type':i['GDrive'],..._0x3221ef};case i['GPhotos']:return{'icon':_0x572bf7,'type':i['GPhotos'],..._0x3221ef};case i['OneDrive']:return{'icon':_0x40d41f,'type':i['OneDrive'],..._0x3221ef};}});}['_getIntegrationKey'](_0x3ef755){switch(_0x3ef755){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x38de7b,_0x557523){const _0x19d6c5=this['editor'],_0xbe4d26=new _0x38de7b(_0x19d6c5['locale']),_0x332077=_0x19d6c5['commands']['get']('uploadcare');return _0xbe4d26['bind']('isEnabled')['to'](_0x332077),_0xbe4d26['on']('execute',()=>{_0x332077['execute'](_0x557523);}),_0xbe4d26;}['_createToolbarButton'](_0x300760){const {locale:_0x4be03d}=this['editor'],_0x354495=this['editor']['plugins']['get']('ImageInsertUI'),_0x9b0d24=_0x300760[0x0],_0x4d8e53=this['_createButton'](_0x3529a8,_0x9b0d24['type']);return _0x4d8e53['icon']=_0x9b0d24['icon'],_0x4d8e53['bind']('label')['to'](_0x354495,'isImageSelected',_0x59a806=>_(_0x4be03d,_0x9b0d24['type'],_0x59a806?'Replace':'Insert')['text']),_0x4d8e53['tooltip']=!0x0,_0x4d8e53;}['_createDropdownButtons'](_0x2267fa){const {locale:_0x57d880}=this['editor'],_0x11b39e=this['editor']['plugins']['get']('ImageInsertUI');return _0x2267fa['map'](_0x39c8b4=>{const _0x55faa7=this['_createButton'](_0x3529a8,_0x39c8b4['type']);return _0x55faa7['withText']=!0x0,_0x55faa7['icon']=_0x39c8b4['icon'],_0x55faa7['bind']('label')['to'](_0x11b39e,'isImageSelected',_0x5767dc=>_(_0x57d880,_0x39c8b4['type'],_0x5767dc?'Replace':'Insert')['text']),_0x55faa7;});}['_createMenuBarButtons'](_0x3bb13b){return _0x3bb13b['map'](_0x405c5b=>{const _0x27363b=this['_createButton'](_0x196e77,_0x405c5b['type']);return _0x27363b['icon']=_0x405c5b['icon'],_0x27363b['label']=_0x405c5b['shortText'],_0x27363b;});}}class F extends _0x3aa43a{['focusTracker'];['focusCycler'];constructor(_0x58040c){super(_0x58040c),this['focusTracker']=new _0x3bbf8e(),this['focusCycler']=new _0x3c3002({'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(_0x7b2bf0,_0x5e1df8){super(_0x7b2bf0),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-'+_0x5e1df8}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x59c086,_0x274023){const _0x5e939a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4f056c=>_0x4f056c<=_0x274023)['map'](_0x4561c0=>_0x59c086['replace'](/\/$/,'')+'/-/resize/'+_0x4561c0+'x/\x20'+_0x4561c0+'w');return{'imageFallbackUrl':_0x59c086,'imageSources':[{'srcset':_0x5e939a['join'](',\x20'),'sizes':'(max-width:\x20'+_0x274023+'px)\x20100vw,\x20'+_0x274023+'px','type':'image/webp'}]};}function S(_0x5e57f1,_0x296c7d,_0x301ae2){const _0x3e1369=_0x5e57f1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3e1369?parseInt(_0x3e1369[0x1],0xa):_0x296c7d,'height':_0x3e1369?parseInt(_0x3e1369[0x2],0xa):_0x301ae2};}function p(_0x581e67,_0x2941ea){const _0x113c59=new(_0x10c031())(),_0x5cdcda=_0x581e67['plugins']['get']('ImageUtils'),_0x29795d=_0x581e67['editing']['mapper']['toViewElement'](_0x2941ea),_0x2f72e1=_0x5cdcda['findViewImgElement'](_0x29795d),_0x57fc7f=_0x581e67['editing']['view']['domConverter']['viewToDom'](_0x2f72e1),_0x56907f=_0x2941ea['getAttribute']('width'),_0x552cf8=_0x2941ea['getAttribute']('height'),_0x2cd2c1='image-processing';_0x581e67['editing']['view']['change'](_0x2fe8c5=>{_0x2fe8c5['addClass'](_0x2cd2c1,_0x29795d),_0x2fe8c5['setStyle']('aspect-ratio',_0x56907f+'/'+_0x552cf8,_0x2f72e1);}),_0x113c59['listenTo'](_0x57fc7f,'load',()=>{_0x113c59['stopListening'](_0x57fc7f,'load'),_0x581e67['editing']['view']['change'](_0x5e7b90=>{_0x5e7b90['removeClass'](_0x2cd2c1,_0x29795d),_0x5e7b90['removeStyle']('aspect-ratio',_0x2f72e1);});});}function G(_0x254eaf){if(Array['isArray'](_0x254eaf)){const _0x1e1a97=_0x254eaf['map'](G);return _0x44c779=>_0x1e1a97['some'](_0x448b91=>_0x448b91(_0x44c779));}if('origin'==_0x254eaf){const _0x27fc5d=_0x434341['window']['location']['origin'];return _0x1d6cba=>new URL(_0x1d6cba,_0x434341['document']['baseURI'])['origin']==_0x27fc5d;}return'function'==typeof _0x254eaf?_0x254eaf:_0x254eaf instanceof RegExp?_0x6ff823=>!(!_0x6ff823['match'](_0x254eaf)&&!_0x6ff823['replace'](/^https?:\/\//,'')['match'](_0x254eaf)):()=>!0x1;}function A(_0x2bdbbc,_0x3466eb){return _0x3e75c6(_0x2bdbbc['target'])['includes'](_0x3466eb);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2edf27(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x9e9510,_0x23d78f,_0x3b2210){super(),this['_editor']=_0x9e9510,this['_editing']=_0x23d78f,this['_dialog']=_0x9e9510['plugins']['get'](_0x891a77),this['_api']=_0x23d78f['ctxElement']['getAPI'](),this['_type']=_0x3b2210,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:_0x535fe3,model:_0x29e659}=this['_editor'],_0x45107f=_0x29e659['document']['selection']['getSelectedElement'](),_0x5bd6b8=_0x45107f&&(_0x45107f['is']('element','imageBlock')||_0x45107f['is']('element','imageInline'));this['_formView']=new x(_0x535fe3,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3f6613,'title':_(_0x535fe3,this['_type'],_0x5bd6b8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2748d0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e4621=>!A(_0x5e4621,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3f5907}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x56fb18=>{const _0x1779ef=_0x3f5907['length'];for(const _0x484572 of _0x3f5907){const _0x5b6286=_0x484572===_0x3f5907[_0x1779ef-0x1],{cdnUrl:_0x48a2c9,fileInfo:_0x12a0bf}=_0x484572;if(!_0x48a2c9||!_0x12a0bf)continue;const {width:_0xaab7bf,height:_0x12eb99}=_0x12a0bf['imageInfo'],_0x7fb3ce=S(_0x48a2c9,_0xaab7bf,_0x12eb99),_0x598a97=C(_0x48a2c9,_0x7fb3ce['width']),_0x56c1c0={'id':_0x12a0bf['uuid'],'type':'image','attributes':{'imageDimension':_0x7fb3ce,..._0x598a97}};this['_insertAsset'](_0x56c1c0,_0x5b6286,_0x56fb18);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4c41ff=>{'idle'===_0x4c41ff['detail']['status']&&!_0x4c41ff['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x43d552,_0x3d0ad3,_0x2cde06){const _0x2c8da5=this['_editor']['model']['document']['selection'],_0x2e2de0=_0x2c8da5['getSelectedElement'](),_0x27c3f5=!(!_0x2e2de0||!_0x2e2de0['is']('element','imageInline'));_0x2cde06['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x43d552,_0x27c3f5),_0x3d0ad3||_0x2cde06['setSelection'](_0x2c8da5['getLastPosition']());}['_insertImage'](_0x2fe061,_0xb19c68){const _0x6bb0ae=this['_editor'],{imageDimension:_0xe3b396,imageFallbackUrl:_0x352a8e,imageSources:_0x4fcfb8}=_0x2fe061['attributes'];_0x6bb0ae['execute']('insertImage',{'imageType':_0xb19c68?'imageInline':null,'source':{'uploadcareImageId':_0x2fe061['id'],'src':_0x352a8e,'sources':_0x4fcfb8,..._0xe3b396}});}}class w extends _0x4b44f4{['_editing'];['_controller']=null;static get['requires'](){return[_0x891a77,o];}constructor(_0x455245){super(_0x455245),this['_editing']=_0x455245['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4cbf02){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4cbf02);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x301ef0,..._0x1d5670}){return _0x43177c(_0x301ef0,_0x1d5670);}static['getInfo'](_0x2a78f6,_0x57944c){return _0x188069(_0x2a78f6,_0x57944c);}}class f extends _0x49567f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xbbff78,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3db8b8=this['editor'];if(!!!_0x3db8b8['config']['get']('uploadcare'))return;_0x3db8b8['plugins']['get'](_0xbbff78)['createUploadAdapter']=_0x2da4ef=>new k(_0x2da4ef,_0x3db8b8),_0x3db8b8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4d3015,{imageElement:_0x36401c,data:_0x118ff5})=>{_0x3db8b8['model']['change'](_0x50acd5=>{_0x50acd5['setAttribute']('uploadcareImageId',_0x118ff5['uploadcareImageId'],_0x36401c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x101a65,_0x265a82){this['loader']=_0x101a65,this['editor']=_0x265a82,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x27dfa9=await this['loader']['file'];return j['upload']({'file':_0x27dfa9,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x3ac673=>{_0x3ac673&&_0x3ac673['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3ac673['value']);}})['then'](async _0x33ffd4=>{const {imageFallbackUrl:_0x45ca73,imageSources:_0x56820a}=C(_0x33ffd4['cdnUrl'],_0x33ffd4['imageInfo']['width']);return{'uploadcareImageId':_0x33ffd4['uuid'],'default':_0x45ca73,'sources':_0x56820a};})['catch'](()=>{const _0x343306=t('Cannot\x20upload\x20file:')+('\x20'+_0x27dfa9['name']+'.');return Promise['reject'](_0x343306);});}['abort'](){this['controller']['abort']();}}class o extends _0x49567f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x891a77];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x592a06){super(_0x592a06),this['ucContextId']=_0x295c6e();}['init'](){const _0x12c28e=this['editor'];_0x12c28e['commands']['add']('uploadcare',new w(_0x12c28e));}['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 _0x383d0e=_0x434341['document']['querySelector']('input[uploadcare-file-input]');_0x383d0e&&_0x383d0e['remove']();}),async function(_0x35f5d2){const _0x20da8e=_0x5400c4([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x591059=0x535f8c3a,_0xf55a59=0x5358fbaa^_0x591059,_0x345a74=window[_0x5400c4([0x44,0x61,0x74,0x65])][_0x5400c4([0x6e,0x6f,0x77])](),_0x56fcab=_0x35f5d2[_0x5400c4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x182017=new window[(_0x5400c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xba693e=>{_0x56fcab[_0x5400c4([0x6f,0x6e,0x63,0x65])](_0x5400c4([0x72,0x65,0x61,0x64,0x79]),_0xba693e);}),_0x1403f2={[_0x5400c4([0x6b,0x74,0x79])]:_0x5400c4([0x45,0x43]),[_0x5400c4([0x75,0x73,0x65])]:_0x5400c4([0x73,0x69,0x67]),[_0x5400c4([0x63,0x72,0x76])]:_0x5400c4([0x50,0x2d,0x32,0x35,0x36]),[_0x5400c4([0x78])]:_0x5400c4([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]),[_0x5400c4([0x79])]:_0x5400c4([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]),[_0x5400c4([0x61,0x6c,0x67])]:_0x5400c4([0x45,0x53,0x32,0x35,0x36])},_0xe6d0df=_0x56fcab[_0x5400c4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5400c4([0x67,0x65,0x74])](_0x5400c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2bbb66(){let _0x59bac8,_0x53e68d=null,_0x1a6eb5=null;try{if(_0xe6d0df==_0x5400c4([0x47,0x50,0x4c]))return _0x5400c4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x59bac8=_0x2d0b09(),!_0x59bac8)return _0x5400c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x59bac8[_0x5400c4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a6eb5=_0x37bcb3(_0x59bac8[_0x5400c4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x59bac8[_0x5400c4([0x6a,0x74,0x69])])),await _0x4f6fe6()?_0x1334aa()?_0x54b5f2()?_0x5400c4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd23c01()?(_0x59bac8[_0x5400c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5400c4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53e68d=_0x8a3856(_0x5400c4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x59bac8[_0x5400c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5400c4([0x74,0x72,0x69,0x61,0x6c])&&(_0x53e68d=_0x8a3856(_0x5400c4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x9d1cff()):_0x5400c4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5400c4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5400c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5400c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x54b5f2(){const _0x2f3fc2=[_0x5400c4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5400c4([0x74,0x72,0x69,0x61,0x6c])][_0x5400c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59bac8[_0x5400c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x345a74/0x3e8:0xe10*_0xf55a59;return _0x59bac8[_0x5400c4([0x65,0x78,0x70])]<_0x2f3fc2;}function _0x1334aa(){const _0x3345ee=_0x59bac8[_0x5400c4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3345ee&&(!!_0x3345ee[_0x5400c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5400c4([0x2a]))||!!_0x3345ee[_0x5400c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5400c4([0x55,0x50,0x4c,0x43])));}function _0xd23c01(){const _0xed676e=_0x59bac8[_0x5400c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xed676e||0x0==_0xed676e[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a385d}=new URL(window[_0x5400c4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xed676e[_0x5400c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a385d))return!0x0;const _0x2023e5=_0x1a385d[_0x5400c4([0x73,0x70,0x6c,0x69,0x74])](_0x5400c4([0x2e]));return _0xed676e[_0x5400c4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x517199=>_0x517199[_0x5400c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5400c4([0x2a])))[_0x5400c4([0x6d,0x61,0x70])](_0x24cc6a=>_0x24cc6a[_0x5400c4([0x73,0x70,0x6c,0x69,0x74])](_0x5400c4([0x2e])))[_0x5400c4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10fae3=>_0x10fae3[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2023e5[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5400c4([0x6d,0x61,0x70])](_0x1a8e3b=>Array(_0x2023e5[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a8e3b[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5400c4([0x66,0x69,0x6c,0x6c])](_0x1a8e3b[0x0]===_0x5400c4([0x2a])?_0x5400c4([0x2a]):'')[_0x5400c4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a8e3b))[_0x5400c4([0x73,0x6f,0x6d,0x65])](_0x4d6374=>_0x2023e5[_0x5400c4([0x65,0x76,0x65,0x72,0x79])]((_0x5ec553,_0x1a9576)=>_0x4d6374[_0x1a9576]===_0x5ec553||_0x4d6374[_0x1a9576]===_0x5400c4([0x2a])));}function _0x9d1cff(){return _0x53e68d&&_0x1a6eb5?new window[(_0x5400c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bd6e3,_0x5eb18a)=>{_0x53e68d[_0x5400c4([0x74,0x68,0x65,0x6e])](_0x4bd6e3,_0x5eb18a),_0x1a6eb5[_0x5400c4([0x74,0x68,0x65,0x6e])](_0x4b9075=>{_0x4b9075!=_0x5400c4([0x56,0x61,0x6c,0x69,0x64])&&_0x4bd6e3(_0x4b9075);},_0x5eb18a);}):_0x53e68d||_0x1a6eb5||_0x5400c4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x37bcb3(_0x46a93d,_0x446904){return new window[(_0x5400c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc8b064=>{if(_0x1b4221())return _0xc8b064(_0x5400c4([0x56,0x61,0x6c,0x69,0x64]));_0x44d134(),_0x56fcab[_0x5400c4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5400c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3751e4=!0x1;const _0x335a74=_0x295c6e();function _0xc6c550(_0x183d33){return!!_0x183d33&&(typeof _0x183d33===_0x5400c4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x183d33===_0x5400c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x183d33[_0x5400c4([0x74,0x68,0x65,0x6e])]===_0x5400c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x183d33[_0x5400c4([0x63,0x61,0x74,0x63,0x68])]===_0x5400c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xac8ddb(_0x5650b8){_0x42463d(_0x5650b8)[_0x5400c4([0x74,0x68,0x65,0x6e])](_0x532d3d=>{if(!_0x532d3d||_0x532d3d[_0x5400c4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5400c4([0x6f,0x6b]))return _0x5400c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x39332c(_0x2a7075(_0x335a74+_0x446904))!=_0x532d3d[_0x5400c4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5400c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5400c4([0x56,0x61,0x6c,0x69,0x64]);})[_0x5400c4([0x74,0x68,0x65,0x6e])](_0x28f159=>(_0x1d6ea4(),_0x28f159),()=>{const _0x2f87da=_0x5e4737();return null==_0x2f87da?(_0x1d6ea4(),_0x5400c4([0x56,0x61,0x6c,0x69,0x64])):_0x5400c4(_0x345a74-_0x2f87da>(0x7753083a^_0x591059)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5400c4([0x74,0x68,0x65,0x6e])](_0xc8b064)[_0x5400c4([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc8b064(_0x5400c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x22d8d5=0x536962ba^_0x591059;function _0x1d6ea4(){const _0x3a4197=_0x5400c4([0x6c,0x6c,0x63,0x74,0x2d])+_0x39332c(_0x2a7075(_0x46a93d)),_0x3538f0=_0x2b0e1c(_0x39332c(window[_0x5400c4([0x4d,0x61,0x74,0x68])][_0x5400c4([0x63,0x65,0x69,0x6c])](_0x345a74/_0x22d8d5)));window[_0x5400c4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5400c4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a4197,_0x3538f0);}function _0x5e4737(){const _0x598c6f=_0x5400c4([0x6c,0x6c,0x63,0x74,0x2d])+_0x39332c(_0x2a7075(_0x46a93d)),_0x1c9582=window[_0x5400c4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5400c4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x598c6f);return _0x1c9582?window[_0x5400c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b0e1c(_0x1c9582),0x10)*_0x22d8d5:null;}function _0x42463d(_0x2d6bcd){return new window[(_0x5400c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9dbd11,_0x464309)=>{_0x2d6bcd[_0x5400c4([0x74,0x68,0x65,0x6e])](_0x9dbd11,_0x464309),window[_0x5400c4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x464309,0x535e58fa^_0x591059);});}}_0x56fcab[_0x5400c4([0x6f,0x6e])](_0x5400c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x17ca4b,_0xfe57bf)=>{if(_0xfe57bf[0x0]!=_0x46a93d)return _0xc8b064(_0x5400c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xfe57bf[0x1]={..._0xfe57bf[0x1],[_0x5400c4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x335a74};},{[_0x5400c4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5400c4([0x68,0x69,0x67,0x68])}),_0x56fcab[_0x5400c4([0x6f,0x6e])](_0x5400c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x29bbc0=>{_0xc6c550(_0x29bbc0[_0x5400c4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3751e4=!0x0,_0xac8ddb(_0x29bbc0[_0x5400c4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5400c4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5400c4([0x6c,0x6f,0x77])}),_0x182017[_0x5400c4([0x74,0x68,0x65,0x6e])](()=>{_0x3751e4||_0xc8b064(_0x5400c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b4221(){return _0x56fcab[_0x5400c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5400c4([0x76,0x69,0x65,0x77])][_0x5400c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5400c4([0x61,0x75,0x74,0x6f]);}function _0x44d134(){_0x56fcab[_0x5400c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5400c4([0x76,0x69,0x65,0x77])][_0x5400c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5400c4([0x61,0x75,0x74,0x6f]);}}function _0x8a3856(_0xbb448d){const _0x208469=[new window[(_0x5400c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ff234=>setTimeout(_0x1ff234,0x5356b2f6^_0x591059)),_0x182017[_0x5400c4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5400c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x363010=>{let _0x199ef7=0x0;_0x56fcab[_0x5400c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5400c4([0x6f,0x6e])](_0x5400c4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f06e9,_0x55454f)=>{_0x55454f[0x0][_0x5400c4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x199ef7++,_0x199ef7==(0x535f8dc2^_0x591059)&&(_0x363010(),_0x3f06e9[_0x5400c4([0x6f,0x66,0x66])]());});}))];return window[_0x5400c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5400c4([0x72,0x61,0x63,0x65])](_0x208469)[_0x5400c4([0x74,0x68,0x65,0x6e])](()=>_0xbb448d);}async function _0x2c5cef(){await _0x182017,_0x56fcab[_0x5400c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5400c4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x130ee1,_0x56fcab[_0x5400c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5400c4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x130ee1,_0x56fcab[_0x5400c4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5400c4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x40f9d5(_0x212afe){const _0x3aaa37=_0x23ecb1();_0x56fcab[_0x3aaa37]=_0x5400c4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x212afe,_0x212afe!=_0x5400c4([0x56,0x61,0x6c,0x69,0x64])&&_0x2c5cef();}function _0x23ecb1(){const _0x5a69d9=window[_0x5400c4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5400c4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5400c4([0x6e,0x6f,0x77])]())[_0x5400c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5400c4([0x2e]),'');let _0x5ddc18=_0x5400c4([0x68]);for(let _0x36e50a=0x0;_0x36e50a<_0x5a69d9[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36e50a+=0x2){let _0xa55c0=window[_0x5400c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a69d9[_0x5400c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36e50a,_0x36e50a+0x2));_0xa55c0>=_0x20da8e[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xa55c0-=_0x20da8e[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5ddc18+=_0x20da8e[_0xa55c0];}return _0x5ddc18;}function _0x2d0b09(){const _0x243b98=_0xe6d0df[_0x5400c4([0x73,0x70,0x6c,0x69,0x74])](_0x5400c4([0x2e]));if(0x3!=_0x243b98[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa27776(_0x243b98[0x1]);function _0xa27776(_0xd2aeb9){const _0x2eacfe=_0x23c785(_0xd2aeb9);return _0x2eacfe&&_0x434fc8()?_0x2eacfe:null;function _0x434fc8(){const _0x413cd5=_0x2eacfe[_0x5400c4([0x6a,0x74,0x69])],_0x3141b2=window[_0x5400c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x413cd5[_0x5400c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x413cd5[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4875c1={..._0x2eacfe,[_0x5400c4([0x6a,0x74,0x69])]:_0x413cd5[_0x5400c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x413cd5[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4875c1[_0x5400c4([0x76,0x63])],_0x2a7075(_0x4875c1)==_0x3141b2;}}}async function _0x4f6fe6(){let _0x3c4a9a=!0x0;try{const _0x544b23=_0xe6d0df[_0x5400c4([0x73,0x70,0x6c,0x69,0x74])](_0x5400c4([0x2e])),[_0x4c67c2,_0x35c027,_0x59e935]=_0x544b23;return _0x30c604(_0x4c67c2),await _0x4e3bcf(_0x4c67c2,_0x35c027,_0x59e935),_0x3c4a9a;}catch{return!0x1;}function _0x30c604(_0xcd5c6d){const _0x1ace0c=_0x23c785(_0xcd5c6d);_0x1ace0c&&_0x1ace0c[_0x5400c4([0x61,0x6c,0x67])]==_0x5400c4([0x45,0x53,0x32,0x35,0x36])||(_0x3c4a9a=!0x1);}async function _0x4e3bcf(_0x2f8268,_0x5706df,_0x3185e0){const _0x1ac090=window[_0x5400c4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5400c4([0x66,0x72,0x6f,0x6d])](_0xa8eb24(_0x3185e0),_0x597c0f=>_0x597c0f[_0x5400c4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4baf69=new window[(_0x5400c4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5400c4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f8268+_0x5400c4([0x2e])+_0x5706df),_0x30b72d=window[_0x5400c4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5400c4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30b72d)return;const _0x344e8a=await _0x30b72d[_0x5400c4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5400c4([0x6a,0x77,0x6b]),_0x1403f2,{[_0x5400c4([0x6e,0x61,0x6d,0x65])]:_0x5400c4([0x45,0x43,0x44,0x53,0x41]),[_0x5400c4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5400c4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5400c4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30b72d[_0x5400c4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5400c4([0x6e,0x61,0x6d,0x65])]:_0x5400c4([0x45,0x43,0x44,0x53,0x41]),[_0x5400c4([0x68,0x61,0x73,0x68])]:{[_0x5400c4([0x6e,0x61,0x6d,0x65])]:_0x5400c4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x344e8a,_0x1ac090,_0x4baf69)||(_0x3c4a9a=!0x1);}}function _0x23c785(_0x5504d8){return _0x5504d8[_0x5400c4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5400c4([0x65,0x79]))?JSON[_0x5400c4([0x70,0x61,0x72,0x73,0x65])](_0xa8eb24(_0x5504d8)):null;}function _0xa8eb24(_0x19eee0){return window[_0x5400c4([0x61,0x74,0x6f,0x62])](_0x19eee0[_0x5400c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5400c4([0x2b]))[_0x5400c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5400c4([0x2f])));}function _0x2a7075(_0x55c3d4){let _0x2d60c2=0x1505;function _0x3adab8(_0x5e6e5c){for(let _0x2c959f=0x0;_0x2c959f<_0x5e6e5c[_0x5400c4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c959f++){const _0x24721a=_0x5e6e5c[_0x5400c4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c959f);_0x2d60c2=(_0x2d60c2<<0x5)+_0x2d60c2+_0x24721a,_0x2d60c2&=_0x2d60c2;}}function _0x292dfc(_0x5f3b2f){Array[_0x5400c4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5f3b2f)?_0x5f3b2f[_0x5400c4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x292dfc):_0x5f3b2f&&typeof _0x5f3b2f==_0x5400c4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5400c4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5f3b2f)[_0x5400c4([0x73,0x6f,0x72,0x74])]()[_0x5400c4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xed6a3e,_0x38f3c6])=>{_0x3adab8(_0xed6a3e),_0x292dfc(_0x38f3c6);}):_0x3adab8(window[_0x5400c4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5f3b2f));}return _0x292dfc(_0x55c3d4),_0x2d60c2>>>0x0;}function _0x39332c(_0x1cf6af){return _0x1cf6af[_0x5400c4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5400c4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5400c4([0x30]));}function _0x2b0e1c(_0x2a1446){return _0x2a1446[_0x5400c4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5400c4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5400c4([0x6a,0x6f,0x69,0x6e])]('');}function _0x130ee1(){}function _0x5400c4(_0x4f23c1){return _0x4f23c1['map'](_0x4a3430=>String['fromCharCode'](_0x4a3430))['join']('');}_0x40f9d5(await _0x2bbb66());}(this);}['_initSchema'](){const _0x5ca578=this['editor']['model']['schema'];_0x5ca578['isRegistered']('imageBlock')&&_0x5ca578['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5ca578['isRegistered']('imageInline')&&_0x5ca578['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x42f409=this['editor'];_0x42f409['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x42f409['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1d5e25=>_0x1d5e25['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x15bf69=_0x42f409['commands']['get']('replaceImageSource');_0x15bf69&&this['listenTo'](_0x15bf69,'cleanupImage',(_0x29572c,[_0x453a00,_0x26a2c2])=>{_0x453a00['removeAttribute']('uploadcareImageId',_0x26a2c2);});}['_initConfig'](){const _0x2899b4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1d4ee6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x416aad(_0x434341['document'],'uc-config',{..._0x2899b4,'pubkey':_0x1d4ee6,'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']=_0xd7cee0=>{if('closeMax'==_0xd7cee0)return'#uc-icon-arrow-down';},_0x434341['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x416aad(_0x434341['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x434341['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1deae4=this['editor']['commands']['get']('insertImage');_0x1deae4&&this['listenTo'](_0x1deae4,'execute',()=>{const _0x355b89=this['editor']['model']['document']['selection']['getSelectedElement']();_0x355b89&&_0x355b89['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x355b89);});});const _0x3eebe4=this['editor']['commands']['get']('uploadcareImageReplace');_0x3eebe4&&this['listenTo'](_0x3eebe4,'execute',()=>{const _0x151d66=this['editor']['model']['document']['selection']['getSelectedElement']();_0x151d66&&_0x151d66['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x151d66);});});}}class tt extends _0x49567f{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x83fcaf){super(_0x83fcaf),_0x83fcaf['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x24ddcf['defineComponents'](_0x24ddcf),this['_defineLocale']();}['_defineLocale'](){const _0x31af17=this['editor']['config']['get']('uploadcare.locale'),_0x50699b=this['editor']['locale']['contentLanguage'];_0x31af17&&_0x24ddcf['defineLocale'](_0x50699b,_0x31af17);}}class ii extends _0x3aa43a{constructor(_0x550ad4){super(_0x550ad4);const t=_0x550ad4['t'],_0x2a71b7=this['bindTemplate'],_0x3abd89=new _0x268297();_0x3abd89['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':[_0x3abd89,{'text':_0x2a71b7['to']('imageUploadProgress',_0x191ed6=>t('Loading\x20image...')+'\x20('+(_0x191ed6||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 _0x3aa43a{constructor(_0x2fe927){super(_0x2fe927);const t=_0x2fe927['t'];this['set']('errorType',null);const _0x31b5a2=new _0x3529a8(_0x2fe927);_0x31b5a2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x31b5a2['withText']=!0x0,_0x31b5a2['class']='ck-button-action',_0x31b5a2['on']('execute',()=>{this['fire']('retry');}),_0x31b5a2['bind']('isVisible')['to'](this,'errorType',_0x5c3ae0=>'NotFound'!==_0x5c3ae0);const _0x431ba2=new _0x3c5517();_0x431ba2['content']=_0x1f0d9e,_0x431ba2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5838b6=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':[_0x431ba2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5838b6['to']('errorType',_0xf34f00=>t('NotFound'!==_0xf34f00?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x31b5a2]},{'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 _0x3aa43a{constructor(_0x2a3a57,_0x56235d){super(_0x2a3a57);const _0x354119=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x56235d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x354119['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1f8cb5,_0x4bc7fc,_0x550b5d){super(_0x1f8cb5),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1f8cb5),this['_errorView']=new ti(_0x1f8cb5),this['_editingView']=new ei(_0x1f8cb5,_0x550b5d),this['_focusableView']=new _0x3aa43a(_0x1f8cb5),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4bc7fc),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'],_0x1dd558=>{this['_addUploadcareImageEditorListeners'](_0x1dd558);});}),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'](_0x21b8d6,_0x2aaa34){const _0x184b6b='uc-cloud-image-editor',_0x433eca=_0x21b8d6['querySelector'](_0x184b6b);if(_0x433eca)return _0x2aaa34(_0x433eca);const _0x1c11f8=new MutationObserver(_0x4449ee=>{const _0x4f5ce7=_0x4449ee['filter'](_0xf60f6e=>_0xf60f6e['target']===_0x21b8d6&&_0xf60f6e['addedNodes']['length']>0x0&&_0xf60f6e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x184b6b);_0x4f5ce7['length']&&(_0x1c11f8['disconnect'](),_0x2aaa34(_0x4f5ce7[0x0]['addedNodes'][0x0]));});_0x1c11f8['observe'](_0x21b8d6,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xf5a754){_0xf5a754['addEventListener']('apply',_0x2577b9=>{this['fire']('apply',{'imageSrc':_0x2577b9['detail']['cdnUrl']});}),_0xf5a754['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2edf27(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x561c93,_0x19c6bf,_0x5da97e){super(),this['_editor']=_0x561c93,this['_dialog']=_0x19c6bf,this['_imageElement']=_0x5da97e,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 _0xd95b4b=this['_imageElement'],_0x4876f3=_0xd95b4b['getAttribute']('uploadcareImageId'),_0x566990=_0xd95b4b['getAttribute']('src');if(_0x4876f3)await this['_loadImageInfo'](_0x4876f3,_0x566990);else{if(this['_imageCache']['has'](_0x566990)){const _0x1a0986=this['_imageCache']['get'](_0x566990);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1a0986['url'],this['imageDimension']=_0x1a0986['dimension'],this['imageId']=_0x1a0986['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2ec2d0}=this['_editor'],t=_0x2ec2d0['t'],_0x2bda72=new X(_0x2ec2d0,this['imageStatus'],this['_attributes']);_0x2bda72['bind']('status')['to'](this,'imageStatus'),_0x2bda72['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2bda72['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2bda72['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2bda72,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xb57633,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2bda72,'position':_0x2748d0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2bda72['focus']();},'onHide':()=>{_0x2bda72['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x592cdb=>!A(_0x592cdb,_0x2bda72['element'])}});}['_loadImageInfo'](_0x4ead9f,_0x543584){return j['getInfo'](_0x4ead9f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x9fb898=>{const {width:_0x1e19ec,height:_0xd8a5b1}=_0x9fb898['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x543584,this['imageDimension']={'width':_0x1e19ec,'height':_0xd8a5b1},this['imageId']=_0x4ead9f;})['catch'](_0x2230b4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2230b4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xd2ec93,_0xc7d554){return this['_getImageAsFile'](_0xd2ec93)['then'](_0x23943e=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0xc7d554['signal'],'file':_0x23943e,'onProgress':_0x527737=>{_0x527737&&_0x527737['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x527737['value']));}}))['then'](_0x50cf06=>{const {width:_0x1c2176,height:_0x223487}=_0x50cf06['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50cf06['cdnUrl'],this['imageDimension']={'width':_0x1c2176,'height':_0x223487},this['imageId']=_0x50cf06['uuid'],this['imageUploadProgress']=null;const _0x1d10b3=_0xd2ec93['getAttribute']('src');this['_imageCache']['set'](_0x1d10b3,{'id':_0x50cf06['uuid'],'url':_0x50cf06['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5da157=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5da157['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x48e1ef,_0x17b3f1){_0x48e1ef['on']('apply',(_0xba78fa,_0x3091f1)=>{this['_replaceImage'](_0x17b3f1,_0x3091f1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x48e1ef['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x48e1ef['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3b0c8d,_0x10b1d9,_0xadebcc){const _0x1fddc7=this['_editor'],{width:_0x568d63,height:_0x126021}=S(_0x10b1d9,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x518fed,imageSources:_0xd85f8e}=C(_0x10b1d9,_0x568d63);_0x1fddc7['model']['change'](_0x397e85=>{if('$graveyard'===_0x3b0c8d['root']['rootName']){_0x1fddc7['execute']('insertImage',{'imageType':_0x3b0c8d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3b0c8d['getAttributes']()),'uploadcareImageId':_0xadebcc,'src':_0x518fed,'sources':_0xd85f8e,'width':_0x568d63,'height':_0x126021}});const _0x5899a8=_0x3b0c8d['getChildren']();_0x3b0c8d=_0x1fddc7['model']['document']['selection']['getSelectedElement']();for(const _0x347dac of _0x5899a8)_0x397e85['append'](_0x397e85['cloneElement'](_0x347dac),_0x3b0c8d);}else _0x397e85['setSelection'](_0x3b0c8d,'on'),_0x1fddc7['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3b0c8d['getAttributes']()),'uploadcareImageId':_0xadebcc,'src':_0x518fed,'sources':_0xd85f8e,'width':_0x568d63,'height':_0x126021},_0x3b0c8d);_0x397e85['setSelection'](_0x3b0c8d,'on');});}async['_getImageAsFile'](_0x2ad341){const _0x500709=_0x434341['window'],_0x4037dc=_0x434341['document']['location']['href'],_0x5067bb=new _0x500709['URL'](_0x2ad341['getAttribute']('src'),_0x4037dc);if('data:'===_0x5067bb['protocol']){const _0x413aa5=_0x5067bb['href']['split'](','),_0x4b3d98=_0x413aa5[0x0]['match'](/:(.*?);/)[0x1],_0x309c23=_0x4b3d98['split']('/')[0x1],_0x55837b=_0x500709['atob'](_0x413aa5[_0x413aa5['length']-0x1]);let _0x5babfe=_0x55837b['length'];const _0x59f212=new _0x500709['Uint8Array'](_0x5babfe);for(;_0x5babfe--;)_0x59f212[_0x5babfe]=_0x55837b['charCodeAt'](_0x5babfe);return new _0x500709['File']([_0x59f212],'image.'+_0x309c23,{'type':_0x4b3d98});}const _0x4f26a6=_0x5067bb['href']['split']('/'),_0x21e926=_0x4f26a6[_0x4f26a6['length']-0x1],_0x283d48=_0x21e926['split']('.')[0x1];return _0x500709['fetch'](_0x5067bb['href'])['then'](_0x1f5cf2=>_0x1f5cf2['clone']()['blob']())['then'](_0x102dc8=>new _0x500709['File']([_0x102dc8],_0x21e926,{'type':'image/'+_0x283d48}));}}class O extends _0x4b44f4{['imageEditController'];static get['requires'](){return[_0x891a77];}['_isEditable'];constructor(_0x1bd7fb){super(_0x1bd7fb),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x102563){const _0x48c415=G(_0x102563);return _0x413943=>!(!_0x413943||!_0x413943['is']('element','imageBlock')&&!_0x413943['is']('element','imageInline'))&&(!!_0x413943['hasAttribute']('uploadcareImageId')||!!_0x413943['hasAttribute']('src')&&_0x48c415(_0x413943['getAttribute']('src')));}(_0x1bd7fb['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x496acf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x496acf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x220cb1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x220cb1&&(_0x220cb1['is']('element','imageBlock')||_0x220cb1['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x891a77),_0x220cb1),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4b44f4{['refresh'](){const _0x45672b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x45672b&&(_0x45672b['is']('element','imageBlock')||_0x45672b['is']('element','imageInline')));}['execute'](_0x3e87d4){const _0xc06ba1=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xed2b37=>{_0xed2b37['setAttributes'](_0x3e87d4,_0xc06ba1),_0xed2b37['removeAttribute']('srcset',_0xc06ba1),_0xed2b37['removeAttribute']('sizes',_0xc06ba1);});}}class m extends _0x49567f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x12a52d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x15d45c}=this;_0x15d45c['commands']['add']('uploadcareImageEdit',new O(_0x15d45c)),_0x15d45c['commands']['add']('uploadcareImageReplace',new R(_0x15d45c));}}class g extends _0x49567f{['_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 _0x3789ee=this['editor'];_0x3789ee['ui']['componentFactory']['add']('uploadcareImageEdit',_0x379116=>{const _0xe75fae=_0x3789ee['commands']['get']('uploadcareImageEdit'),_0xeae4f8=new _0x3529a8(_0x379116),t=_0x379116['t'];return _0xeae4f8['set']({'icon':_0xb57633,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xeae4f8['bind']('isEnabled')['to'](_0xe75fae),_0xeae4f8['bind']('isOn')['to'](_0xe75fae,'isActive'),this['listenTo'](_0xeae4f8,'execute',()=>{_0x3789ee['execute']('uploadcareImageEdit'),_0x3789ee['editing']['view']['focus']();}),_0xeae4f8;}),this['_initConfig']();}['_initConfig'](){const _0x26d305=_0x416aad(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x26d305),this['listenTo'](this['editor'],'destroy',()=>{_0x26d305['remove']();});}}class et extends _0x49567f{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 _0x19716f,Command as _0x29ef3d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x46df94,IconGooglePhotos as _0x5c8c92,IconGoogleDrive as _0x49da05,IconFacebook as _0x38ee21,IconDropbox as _0x358768,IconUploadcareLink as _0x322385,IconUploadcareImageUpload as _0x5a29f4,IconError as _0x2e7227,IconUploadcareImageEdit as _0x54cf47}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x265a21,MenuBarMenuListItemButtonView as _0x3a92d7,View as _0x455cc3,FocusCycler as _0x171e29,Dialog as _0x32a6c9,DialogViewPosition as _0x1a4cf5,SpinnerView as _0x311818,IconView as _0x70bb5b,Notification as _0x58b960}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x24f142,DomEmitterMixin as _0x22eab5,global as _0x4d0e52,getAncestors as _0x429b4a,ObservableMixin as _0x4ea697,uid as _0x3f9b53,createElement as _0x484b1f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xf53d6a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3b9a80,info as _0x5285dd}from'@uploadcare/upload-client';import*as _0x59dda9 from'@uploadcare/file-uploader';var i=function(_0x4da72f){return _0x4da72f['Local']='local',_0x4da72f['URL']='url',_0x4da72f['Dropbox']='dropbox',_0x4da72f['GDrive']='gdrive',_0x4da72f['Facebook']='facebook',_0x4da72f['GPhotos']='gphotos',_0x4da72f['OneDrive']='onedrive',_0x4da72f;}({});function _(_0x38933e,_0x239398,_0x3d16e8){const t=_0x38933e['t'],_0x4d5b52=_0x38933e['t'];switch(_0x239398){case i['Local']:return{'text':_0x4d5b52('Insert'===_0x3d16e8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4d5b52('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3d16e8?_0x4d5b52('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4d5b52('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3d16e8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3d16e8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3d16e8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3d16e8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3d16e8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x239398;}}class e extends _0x19716f{['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 _0x149d19=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x132c6f;for(const _0x39f41d in _0x149d19){const _0x44826f=_0x39f41d,_0xe9acb8=_0x149d19[_0x44826f];if('uploadcareLicenseKeyValid'==_0xe9acb8||'uploadcareLicenseKeyInvalid'==_0xe9acb8||'uploadcareLicenseKeyExpired'==_0xe9acb8||'uploadcareLicenseKeyDomainLimit'==_0xe9acb8||'uploadcareLicenseKeyNotAllowed'==_0xe9acb8||'uploadcareLicenseKeyEvaluationLimit'==_0xe9acb8||'uploadcareLicenseKeyTrialLimit'==_0xe9acb8||'uploadcareLicenseKeyUsageLimit'==_0xe9acb8){delete _0x149d19[_0x44826f],_0x132c6f=_0xe9acb8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x132c6f&&_0x149d19['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x132c6f&&_0x149d19['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x132c6f&&_0x149d19['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x132c6f&&_0x149d19['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x132c6f&&_0x149d19['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x132c6f&&_0x149d19['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x132c6f&&_0x149d19['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4308ee}=this,_0xdaedf6=_0x4308ee['commands']['get']('uploadcare');if(!_0xdaedf6)return;const _0xe1cb39=this['_normalizeConfigSourceList'](_0x4308ee['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x503bbd,_0x4522dc)=>{const _0x36c006=this['_getIntegrationKey'](_0x4522dc['type']);return _0x503bbd[_0x36c006]||(_0x503bbd[_0x36c006]=[]),_0x503bbd[_0x36c006]['push'](_0x4522dc),_0x503bbd;},{});_0x4308ee['plugins']['has']('ImageInsertUI')&&_0x4308ee['commands']['get']('uploadcare')&&Object['entries'](_0xe1cb39)['forEach'](([_0x24683d,_0x5cb511])=>{_0x4308ee['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x24683d,'observable':()=>_0xdaedf6,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5cb511),'formViewCreator':()=>this['_createDropdownButtons'](_0x5cb511),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5cb511),'override':'assetManager'!==_0x24683d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x45cdd4){const {locale:_0x20b429}=this['editor'];return _0x45cdd4['map'](_0x59d2f6=>{const _0x45317a=_(_0x20b429,_0x59d2f6,'Insert');switch(_0x59d2f6){case i['Local']:return{'icon':_0x5a29f4,'type':i['Local'],..._0x45317a};case i['URL']:return{'icon':_0x322385,'type':i['URL'],..._0x45317a};case i['Dropbox']:return{'icon':_0x358768,'type':i['Dropbox'],..._0x45317a};case i['Facebook']:return{'icon':_0x38ee21,'type':i['Facebook'],..._0x45317a};case i['GDrive']:return{'icon':_0x49da05,'type':i['GDrive'],..._0x45317a};case i['GPhotos']:return{'icon':_0x5c8c92,'type':i['GPhotos'],..._0x45317a};case i['OneDrive']:return{'icon':_0x46df94,'type':i['OneDrive'],..._0x45317a};}});}['_getIntegrationKey'](_0x3aa05d){switch(_0x3aa05d){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5345e9,_0x4126c8){const _0x797fd=this['editor'],_0xf25ef0=new _0x5345e9(_0x797fd['locale']),_0x32b52a=_0x797fd['commands']['get']('uploadcare');return _0xf25ef0['bind']('isEnabled')['to'](_0x32b52a),_0xf25ef0['on']('execute',()=>{_0x32b52a['execute'](_0x4126c8);}),_0xf25ef0;}['_createToolbarButton'](_0x161d60){const {locale:_0x159ed7}=this['editor'],_0x34422e=this['editor']['plugins']['get']('ImageInsertUI'),_0x5aed68=_0x161d60[0x0],_0x5eb5e1=this['_createButton'](_0x265a21,_0x5aed68['type']);return _0x5eb5e1['icon']=_0x5aed68['icon'],_0x5eb5e1['bind']('label')['to'](_0x34422e,'isImageSelected',_0x32f1f2=>_(_0x159ed7,_0x5aed68['type'],_0x32f1f2?'Replace':'Insert')['text']),_0x5eb5e1['tooltip']=!0x0,_0x5eb5e1;}['_createDropdownButtons'](_0x980682){const {locale:_0x31daf9}=this['editor'],_0x1fbf13=this['editor']['plugins']['get']('ImageInsertUI');return _0x980682['map'](_0x51f07d=>{const _0x247e64=this['_createButton'](_0x265a21,_0x51f07d['type']);return _0x247e64['withText']=!0x0,_0x247e64['icon']=_0x51f07d['icon'],_0x247e64['bind']('label')['to'](_0x1fbf13,'isImageSelected',_0x499a0e=>_(_0x31daf9,_0x51f07d['type'],_0x499a0e?'Replace':'Insert')['text']),_0x247e64;});}['_createMenuBarButtons'](_0x118779){return _0x118779['map'](_0x274c3b=>{const _0x836165=this['_createButton'](_0x3a92d7,_0x274c3b['type']);return _0x836165['icon']=_0x274c3b['icon'],_0x836165['label']=_0x274c3b['shortText'],_0x836165;});}}class F extends _0x455cc3{['focusTracker'];['focusCycler'];constructor(_0x432f85){super(_0x432f85),this['focusTracker']=new _0x24f142(),this['focusCycler']=new _0x171e29({'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(_0x28211c,_0x314aae){super(_0x28211c),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-'+_0x314aae}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1242af,_0x28ee92){const _0xd3e187=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x55e93b=>_0x55e93b<=_0x28ee92)['map'](_0x44c7d0=>_0x1242af['replace'](/\/$/,'')+'/-/resize/'+_0x44c7d0+'x/\x20'+_0x44c7d0+'w');return{'imageFallbackUrl':_0x1242af,'imageSources':[{'srcset':_0xd3e187['join'](',\x20'),'sizes':'(max-width:\x20'+_0x28ee92+'px)\x20100vw,\x20'+_0x28ee92+'px','type':'image/webp'}]};}function S(_0x428e0e,_0x8e4a00,_0x3ecc37){const _0x231ea1=_0x428e0e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x231ea1?parseInt(_0x231ea1[0x1],0xa):_0x8e4a00,'height':_0x231ea1?parseInt(_0x231ea1[0x2],0xa):_0x3ecc37};}function p(_0xfbc066,_0x18ec43){const _0x445685=new(_0x22eab5())(),_0x4f014a=_0xfbc066['plugins']['get']('ImageUtils'),_0x501f81=_0xfbc066['editing']['mapper']['toViewElement'](_0x18ec43),_0x3eade6=_0x4f014a['findViewImgElement'](_0x501f81),_0x5d692f=_0xfbc066['editing']['view']['domConverter']['viewToDom'](_0x3eade6),_0x322ff5=_0x18ec43['getAttribute']('width'),_0x2af60f=_0x18ec43['getAttribute']('height'),_0x2ec089='image-processing';_0xfbc066['editing']['view']['change'](_0x31978f=>{_0x31978f['addClass'](_0x2ec089,_0x501f81),_0x31978f['setStyle']('aspect-ratio',_0x322ff5+'/'+_0x2af60f,_0x3eade6);}),_0x445685['listenTo'](_0x5d692f,'load',()=>{_0x445685['stopListening'](_0x5d692f,'load'),_0xfbc066['editing']['view']['change'](_0x338833=>{_0x338833['removeClass'](_0x2ec089,_0x501f81),_0x338833['removeStyle']('aspect-ratio',_0x3eade6);});});}function z(_0x243cd5){if(Array['isArray'](_0x243cd5)){const _0x2f7580=_0x243cd5['map'](z);return _0x37ddef=>_0x2f7580['some'](_0x283b31=>_0x283b31(_0x37ddef));}if('origin'==_0x243cd5){const _0x13a95f=_0x4d0e52['window']['location']['origin'];return _0xbc4263=>new URL(_0xbc4263,_0x4d0e52['document']['baseURI'])['origin']==_0x13a95f;}return'function'==typeof _0x243cd5?_0x243cd5:_0x243cd5 instanceof RegExp?_0x1c8251=>!(!_0x1c8251['match'](_0x243cd5)&&!_0x1c8251['replace'](/^https?:\/\//,'')['match'](_0x243cd5)):()=>!0x1;}function A(_0x30ecb1,_0x7342d3){return _0x429b4a(_0x30ecb1['target'])['includes'](_0x7342d3);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4ea697(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x360e9c,_0x5d972b,_0x191bef){super(),this['_editor']=_0x360e9c,this['_editing']=_0x5d972b,this['_dialog']=_0x360e9c['plugins']['get'](_0x32a6c9),this['_api']=_0x5d972b['ctxElement']['getAPI'](),this['_type']=_0x191bef,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:_0x57218e,model:_0x527083}=this['_editor'],_0x7b66e=_0x527083['document']['selection']['getSelectedElement'](),_0x18c4dc=_0x7b66e&&(_0x7b66e['is']('element','imageBlock')||_0x7b66e['is']('element','imageInline'));this['_formView']=new x(_0x57218e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5a29f4,'title':_(_0x57218e,this['_type'],_0x18c4dc?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1a4cf5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x51428a=>!A(_0x51428a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3b78f3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5dc1ea=>{const _0x417bbd=_0x3b78f3['length'];for(const _0x106158 of _0x3b78f3){const _0x59bc43=_0x106158===_0x3b78f3[_0x417bbd-0x1],{cdnUrl:_0x37a4ef,fileInfo:_0x47b026}=_0x106158;if(!_0x37a4ef||!_0x47b026)continue;const {width:_0xf95327,height:_0x348d68}=_0x47b026['imageInfo'],_0x1c040e=S(_0x37a4ef,_0xf95327,_0x348d68),_0x3c77ab=C(_0x37a4ef,_0x1c040e['width']),_0x21adee={'id':_0x47b026['uuid'],'type':'image','attributes':{'imageDimension':_0x1c040e,..._0x3c77ab}};this['_insertAsset'](_0x21adee,_0x59bc43,_0x5dc1ea);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x300a96=>{'idle'===_0x300a96['detail']['status']&&!_0x300a96['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x472eac,_0x4e04ec,_0x597eb4){const _0x5ce0ce=this['_editor']['model']['document']['selection'],_0x190fbc=_0x5ce0ce['getSelectedElement'](),_0x4934db=!(!_0x190fbc||!_0x190fbc['is']('element','imageInline'));_0x597eb4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x472eac,_0x4934db),_0x4e04ec||_0x597eb4['setSelection'](_0x5ce0ce['getLastPosition']());}['_insertImage'](_0x50ece8,_0x11c217){const _0x1b9e5c=this['_editor'],{imageDimension:_0xf97c6b,imageFallbackUrl:_0x9d60df,imageSources:_0xe84b10}=_0x50ece8['attributes'];_0x1b9e5c['execute']('insertImage',{'imageType':_0x11c217?'imageInline':null,'source':{'uploadcareImageId':_0x50ece8['id'],'src':_0x9d60df,'sources':_0xe84b10,..._0xf97c6b}});}}class w extends _0x29ef3d{['_editing'];['_controller']=null;static get['requires'](){return[_0x32a6c9,o];}constructor(_0x1bb914){super(_0x1bb914),this['_editing']=_0x1bb914['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xa81d53){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xa81d53);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1ab90b,..._0x40be67}){return _0x3b9a80(_0x1ab90b,_0x40be67);}static['getInfo'](_0x4605c0,_0x54c9c5){return _0x5285dd(_0x4605c0,_0x54c9c5);}}class f extends _0x19716f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xf53d6a,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x23d67a=this['editor'];if(!!!_0x23d67a['config']['get']('uploadcare'))return;_0x23d67a['plugins']['get'](_0xf53d6a)['createUploadAdapter']=_0xdc9730=>new k(_0xdc9730,_0x23d67a),_0x23d67a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x10b497,{imageElement:_0x2d0e0f,data:_0x50f526})=>{_0x23d67a['model']['change'](_0x38f1e8=>{_0x38f1e8['setAttribute']('uploadcareImageId',_0x50f526['uploadcareImageId'],_0x2d0e0f);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2f365b,_0x54294b){this['loader']=_0x2f365b,this['editor']=_0x54294b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x200c82=await this['loader']['file'];return j['upload']({'file':_0x200c82,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0xb36c12=>{_0xb36c12&&_0xb36c12['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xb36c12['value']);}})['then'](async _0x441e73=>{const {imageFallbackUrl:_0x2fd814,imageSources:_0x4b599f}=C(_0x441e73['cdnUrl'],_0x441e73['imageInfo']['width']);return{'uploadcareImageId':_0x441e73['uuid'],'default':_0x2fd814,'sources':_0x4b599f};})['catch'](()=>{const _0x26e627=t('Cannot\x20upload\x20file:')+('\x20'+_0x200c82['name']+'.');return Promise['reject'](_0x26e627);});}['abort'](){this['controller']['abort']();}}class o extends _0x19716f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x32a6c9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2d3dab){super(_0x2d3dab),this['ucContextId']=_0x3f9b53();}['init'](){const _0xa02eb9=this['editor'];_0xa02eb9['commands']['add']('uploadcare',new w(_0xa02eb9));}['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 _0x58da8f=_0x4d0e52['document']['querySelector']('input[uploadcare-file-input]');_0x58da8f&&_0x58da8f['remove']();}),async function(_0xd2f7a9){const _0x2955f7=_0x3d0110([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5163ec=0x535f8c3a,_0x27fee9=0x5358fbfa^_0x5163ec,_0x985110=window[_0x3d0110([0x44,0x61,0x74,0x65])][_0x3d0110([0x6e,0x6f,0x77])](),_0x50e70a=_0xd2f7a9[_0x3d0110([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x24d47a=new window[(_0x3d0110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2524dc=>{_0x50e70a[_0x3d0110([0x6f,0x6e,0x63,0x65])](_0x3d0110([0x72,0x65,0x61,0x64,0x79]),_0x2524dc);}),_0x2a09e8={[_0x3d0110([0x6b,0x74,0x79])]:_0x3d0110([0x45,0x43]),[_0x3d0110([0x75,0x73,0x65])]:_0x3d0110([0x73,0x69,0x67]),[_0x3d0110([0x63,0x72,0x76])]:_0x3d0110([0x50,0x2d,0x32,0x35,0x36]),[_0x3d0110([0x78])]:_0x3d0110([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]),[_0x3d0110([0x79])]:_0x3d0110([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]),[_0x3d0110([0x61,0x6c,0x67])]:_0x3d0110([0x45,0x53,0x32,0x35,0x36])},_0x8cc2cf=_0x50e70a[_0x3d0110([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d0110([0x67,0x65,0x74])](_0x3d0110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x48aa9b(){let _0xc6b062,_0x36c4b5=null,_0x27ec07=null;try{if(_0x8cc2cf==_0x3d0110([0x47,0x50,0x4c]))return _0x3d0110([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xc6b062=_0x579932(),!_0xc6b062)return _0x3d0110([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xc6b062[_0x3d0110([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x27ec07=_0x3bc3c9(_0xc6b062[_0x3d0110([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xc6b062[_0x3d0110([0x6a,0x74,0x69])])),await _0x475c38()?_0x310e9c()?_0x1bc91a()?_0x3d0110([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11c033()?(_0xc6b062[_0x3d0110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d0110([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36c4b5=_0x541f11(_0x3d0110([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xc6b062[_0x3d0110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d0110([0x74,0x72,0x69,0x61,0x6c])&&(_0x36c4b5=_0x541f11(_0x3d0110([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x46507a()):_0x3d0110([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d0110([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d0110([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3d0110([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1bc91a(){const _0x2b362a=[_0x3d0110([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d0110([0x74,0x72,0x69,0x61,0x6c])][_0x3d0110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc6b062[_0x3d0110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x985110/0x3e8:0xe10*_0x27fee9;return _0xc6b062[_0x3d0110([0x65,0x78,0x70])]<_0x2b362a;}function _0x310e9c(){const _0x296e15=_0xc6b062[_0x3d0110([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x296e15&&(!!_0x296e15[_0x3d0110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d0110([0x2a]))||!!_0x296e15[_0x3d0110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d0110([0x55,0x50,0x4c,0x43])));}function _0x11c033(){const _0x552593=_0xc6b062[_0x3d0110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x552593||0x0==_0x552593[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f7373}=new URL(window[_0x3d0110([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x552593[_0x3d0110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f7373))return!0x0;const _0x2f0f83=_0x3f7373[_0x3d0110([0x73,0x70,0x6c,0x69,0x74])](_0x3d0110([0x2e]));return _0x552593[_0x3d0110([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ca5be=>_0x2ca5be[_0x3d0110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d0110([0x2a])))[_0x3d0110([0x6d,0x61,0x70])](_0x1c4faf=>_0x1c4faf[_0x3d0110([0x73,0x70,0x6c,0x69,0x74])](_0x3d0110([0x2e])))[_0x3d0110([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xef65ca=>_0xef65ca[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2f0f83[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d0110([0x6d,0x61,0x70])](_0x542126=>Array(_0x2f0f83[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x542126[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d0110([0x66,0x69,0x6c,0x6c])](_0x542126[0x0]===_0x3d0110([0x2a])?_0x3d0110([0x2a]):'')[_0x3d0110([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x542126))[_0x3d0110([0x73,0x6f,0x6d,0x65])](_0x2f43db=>_0x2f0f83[_0x3d0110([0x65,0x76,0x65,0x72,0x79])]((_0x2c6243,_0x3cbab1)=>_0x2f43db[_0x3cbab1]===_0x2c6243||_0x2f43db[_0x3cbab1]===_0x3d0110([0x2a])));}function _0x46507a(){return _0x36c4b5&&_0x27ec07?new window[(_0x3d0110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23e8a5,_0x5d3698)=>{_0x36c4b5[_0x3d0110([0x74,0x68,0x65,0x6e])](_0x23e8a5,_0x5d3698),_0x27ec07[_0x3d0110([0x74,0x68,0x65,0x6e])](_0x320c23=>{_0x320c23!=_0x3d0110([0x56,0x61,0x6c,0x69,0x64])&&_0x23e8a5(_0x320c23);},_0x5d3698);}):_0x36c4b5||_0x27ec07||_0x3d0110([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3bc3c9(_0x14dc85,_0x4e268c){return new window[(_0x3d0110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x305cbb=>{if(_0x151429())return _0x305cbb(_0x3d0110([0x56,0x61,0x6c,0x69,0x64]));_0x2b010f(),_0x50e70a[_0x3d0110([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d0110([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x359c7e=!0x1;const _0x32bcec=_0x3f9b53();function _0x154ea4(_0x55f771){return!!_0x55f771&&(typeof _0x55f771===_0x3d0110([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x55f771===_0x3d0110([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x55f771[_0x3d0110([0x74,0x68,0x65,0x6e])]===_0x3d0110([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x55f771[_0x3d0110([0x63,0x61,0x74,0x63,0x68])]===_0x3d0110([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x118ff7(_0x144408){_0x5dd534(_0x144408)[_0x3d0110([0x74,0x68,0x65,0x6e])](_0x185a61=>{if(!_0x185a61||_0x185a61[_0x3d0110([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d0110([0x6f,0x6b]))return _0x3d0110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10c07a(_0x24fb66(_0x32bcec+_0x4e268c))!=_0x185a61[_0x3d0110([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d0110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d0110([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d0110([0x74,0x68,0x65,0x6e])](_0x4a3f06=>(_0x1ebe61(),_0x4a3f06),()=>{const _0x47f8ec=_0x73fd6();return null==_0x47f8ec?(_0x1ebe61(),_0x3d0110([0x56,0x61,0x6c,0x69,0x64])):_0x3d0110(_0x985110-_0x47f8ec>(0x7753083a^_0x5163ec)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d0110([0x74,0x68,0x65,0x6e])](_0x305cbb)[_0x3d0110([0x63,0x61,0x74,0x63,0x68])](()=>{_0x305cbb(_0x3d0110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x489342=0x536962ba^_0x5163ec;function _0x1ebe61(){const _0x327c67=_0x3d0110([0x6c,0x6c,0x63,0x74,0x2d])+_0x10c07a(_0x24fb66(_0x14dc85)),_0x1e6af1=_0x2a8307(_0x10c07a(window[_0x3d0110([0x4d,0x61,0x74,0x68])][_0x3d0110([0x63,0x65,0x69,0x6c])](_0x985110/_0x489342)));window[_0x3d0110([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d0110([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x327c67,_0x1e6af1);}function _0x73fd6(){const _0x3b1c2a=_0x3d0110([0x6c,0x6c,0x63,0x74,0x2d])+_0x10c07a(_0x24fb66(_0x14dc85)),_0x518b62=window[_0x3d0110([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d0110([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b1c2a);return _0x518b62?window[_0x3d0110([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a8307(_0x518b62),0x10)*_0x489342:null;}function _0x5dd534(_0x44fd07){return new window[(_0x3d0110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48944f,_0x2532a2)=>{_0x44fd07[_0x3d0110([0x74,0x68,0x65,0x6e])](_0x48944f,_0x2532a2),window[_0x3d0110([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2532a2,0x535e58fa^_0x5163ec);});}}_0x50e70a[_0x3d0110([0x6f,0x6e])](_0x3d0110([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2604d9,_0x39395f)=>{if(_0x39395f[0x0]!=_0x14dc85)return _0x305cbb(_0x3d0110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39395f[0x1]={..._0x39395f[0x1],[_0x3d0110([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32bcec};},{[_0x3d0110([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d0110([0x68,0x69,0x67,0x68])}),_0x50e70a[_0x3d0110([0x6f,0x6e])](_0x3d0110([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x246f7b=>{_0x154ea4(_0x246f7b[_0x3d0110([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x359c7e=!0x0,_0x118ff7(_0x246f7b[_0x3d0110([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d0110([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d0110([0x6c,0x6f,0x77])}),_0x24d47a[_0x3d0110([0x74,0x68,0x65,0x6e])](()=>{_0x359c7e||_0x305cbb(_0x3d0110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x151429(){return _0x50e70a[_0x3d0110([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d0110([0x76,0x69,0x65,0x77])][_0x3d0110([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d0110([0x61,0x75,0x74,0x6f]);}function _0x2b010f(){_0x50e70a[_0x3d0110([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d0110([0x76,0x69,0x65,0x77])][_0x3d0110([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d0110([0x61,0x75,0x74,0x6f]);}}function _0x541f11(_0x421ff2){const _0x5dcad0=[new window[(_0x3d0110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2653c6=>setTimeout(_0x2653c6,0x5356b2f6^_0x5163ec)),_0x24d47a[_0x3d0110([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d0110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45c181=>{let _0x1bcc92=0x0;_0x50e70a[_0x3d0110([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d0110([0x6f,0x6e])](_0x3d0110([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a476e,_0x52ff24)=>{_0x52ff24[0x0][_0x3d0110([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1bcc92++,_0x1bcc92==(0x535f8dc2^_0x5163ec)&&(_0x45c181(),_0x1a476e[_0x3d0110([0x6f,0x66,0x66])]());});}))];return window[_0x3d0110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d0110([0x72,0x61,0x63,0x65])](_0x5dcad0)[_0x3d0110([0x74,0x68,0x65,0x6e])](()=>_0x421ff2);}async function _0x2d7cbd(){await _0x24d47a,_0x50e70a[_0x3d0110([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d0110([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x509012,_0x50e70a[_0x3d0110([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d0110([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x509012,_0x50e70a[_0x3d0110([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d0110([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x36d705(_0x551a21){const _0x624ed6=_0x5c04a3();_0x50e70a[_0x624ed6]=_0x3d0110([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x551a21,_0x551a21!=_0x3d0110([0x56,0x61,0x6c,0x69,0x64])&&_0x2d7cbd();}function _0x5c04a3(){const _0x2d007e=window[_0x3d0110([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d0110([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d0110([0x6e,0x6f,0x77])]())[_0x3d0110([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d0110([0x2e]),'');let _0x2efc60=_0x3d0110([0x68]);for(let _0x5e2a6b=0x0;_0x5e2a6b<_0x2d007e[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e2a6b+=0x2){let _0x373c36=window[_0x3d0110([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d007e[_0x3d0110([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e2a6b,_0x5e2a6b+0x2));_0x373c36>=_0x2955f7[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x373c36-=_0x2955f7[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2efc60+=_0x2955f7[_0x373c36];}return _0x2efc60;}function _0x579932(){const _0x1508a1=_0x8cc2cf[_0x3d0110([0x73,0x70,0x6c,0x69,0x74])](_0x3d0110([0x2e]));if(0x3!=_0x1508a1[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54ee7c(_0x1508a1[0x1]);function _0x54ee7c(_0xcb4c51){const _0x461ee4=_0x118569(_0xcb4c51);return _0x461ee4&&_0x51ab7b()?_0x461ee4:null;function _0x51ab7b(){const _0x26d737=_0x461ee4[_0x3d0110([0x6a,0x74,0x69])],_0x5a7a7a=window[_0x3d0110([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26d737[_0x3d0110([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26d737[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x32dfab={..._0x461ee4,[_0x3d0110([0x6a,0x74,0x69])]:_0x26d737[_0x3d0110([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x26d737[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x32dfab[_0x3d0110([0x76,0x63])],_0x24fb66(_0x32dfab)==_0x5a7a7a;}}}async function _0x475c38(){let _0x4994c2=!0x0;try{const _0x56ec3e=_0x8cc2cf[_0x3d0110([0x73,0x70,0x6c,0x69,0x74])](_0x3d0110([0x2e])),[_0x25d3bc,_0x564899,_0x1681cb]=_0x56ec3e;return _0x55c062(_0x25d3bc),await _0x2692b6(_0x25d3bc,_0x564899,_0x1681cb),_0x4994c2;}catch{return!0x1;}function _0x55c062(_0x3451e4){const _0x15ce8b=_0x118569(_0x3451e4);_0x15ce8b&&_0x15ce8b[_0x3d0110([0x61,0x6c,0x67])]==_0x3d0110([0x45,0x53,0x32,0x35,0x36])||(_0x4994c2=!0x1);}async function _0x2692b6(_0x3bfbce,_0x517a4b,_0x771f7a){const _0x31446a=window[_0x3d0110([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d0110([0x66,0x72,0x6f,0x6d])](_0x8ae0ef(_0x771f7a),_0x4258bd=>_0x4258bd[_0x3d0110([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ef38e=new window[(_0x3d0110([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d0110([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3bfbce+_0x3d0110([0x2e])+_0x517a4b),_0x2828b7=window[_0x3d0110([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d0110([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2828b7)return;const _0x3a3112=await _0x2828b7[_0x3d0110([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d0110([0x6a,0x77,0x6b]),_0x2a09e8,{[_0x3d0110([0x6e,0x61,0x6d,0x65])]:_0x3d0110([0x45,0x43,0x44,0x53,0x41]),[_0x3d0110([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d0110([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d0110([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2828b7[_0x3d0110([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d0110([0x6e,0x61,0x6d,0x65])]:_0x3d0110([0x45,0x43,0x44,0x53,0x41]),[_0x3d0110([0x68,0x61,0x73,0x68])]:{[_0x3d0110([0x6e,0x61,0x6d,0x65])]:_0x3d0110([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a3112,_0x31446a,_0x5ef38e)||(_0x4994c2=!0x1);}}function _0x118569(_0x54f355){return _0x54f355[_0x3d0110([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d0110([0x65,0x79]))?JSON[_0x3d0110([0x70,0x61,0x72,0x73,0x65])](_0x8ae0ef(_0x54f355)):null;}function _0x8ae0ef(_0x28a955){return window[_0x3d0110([0x61,0x74,0x6f,0x62])](_0x28a955[_0x3d0110([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d0110([0x2b]))[_0x3d0110([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d0110([0x2f])));}function _0x24fb66(_0x3e8741){let _0x5c6c3e=0x1505;function _0xf89ace(_0x13e02d){for(let _0x1f41c5=0x0;_0x1f41c5<_0x13e02d[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f41c5++){const _0x577a2f=_0x13e02d[_0x3d0110([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f41c5);_0x5c6c3e=(_0x5c6c3e<<0x5)+_0x5c6c3e+_0x577a2f,_0x5c6c3e&=_0x5c6c3e;}}function _0x3f3b87(_0x38c0cc){Array[_0x3d0110([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x38c0cc)?_0x38c0cc[_0x3d0110([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f3b87):_0x38c0cc&&typeof _0x38c0cc==_0x3d0110([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d0110([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x38c0cc)[_0x3d0110([0x73,0x6f,0x72,0x74])]()[_0x3d0110([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x553da9,_0x424990])=>{_0xf89ace(_0x553da9),_0x3f3b87(_0x424990);}):_0xf89ace(window[_0x3d0110([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x38c0cc));}return _0x3f3b87(_0x3e8741),_0x5c6c3e>>>0x0;}function _0x10c07a(_0x34aadd){return _0x34aadd[_0x3d0110([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d0110([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d0110([0x30]));}function _0x2a8307(_0x19f1ac){return _0x19f1ac[_0x3d0110([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d0110([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d0110([0x6a,0x6f,0x69,0x6e])]('');}function _0x509012(){}function _0x3d0110(_0x2946af){return _0x2946af['map'](_0x2555cd=>String['fromCharCode'](_0x2555cd))['join']('');}_0x36d705(await _0x48aa9b());}(this);}['_initSchema'](){const _0x313b09=this['editor']['model']['schema'];_0x313b09['isRegistered']('imageBlock')&&_0x313b09['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x313b09['isRegistered']('imageInline')&&_0x313b09['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x14c15a=this['editor'];_0x14c15a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x14c15a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3e5ca6=>_0x3e5ca6['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x44a216=_0x14c15a['commands']['get']('replaceImageSource');_0x44a216&&this['listenTo'](_0x44a216,'cleanupImage',(_0x29308b,[_0x3614b8,_0x3e48c2])=>{_0x3614b8['removeAttribute']('uploadcareImageId',_0x3e48c2);});}['_initConfig'](){const _0x49683c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x18599e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x484b1f(_0x4d0e52['document'],'uc-config',{..._0x49683c,'pubkey':_0x18599e,'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']=_0x21d42b=>{if('closeMax'==_0x21d42b)return'#uc-icon-arrow-down';},_0x4d0e52['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x484b1f(_0x4d0e52['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4d0e52['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x39148a=this['editor']['commands']['get']('insertImage');_0x39148a&&this['listenTo'](_0x39148a,'execute',()=>{const _0x455f94=this['editor']['model']['document']['selection']['getSelectedElement']();_0x455f94&&_0x455f94['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x455f94);});});const _0x4e4178=this['editor']['commands']['get']('uploadcareImageReplace');_0x4e4178&&this['listenTo'](_0x4e4178,'execute',()=>{const _0x3d901a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3d901a&&_0x3d901a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3d901a);});});}}class tt extends _0x19716f{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e0fc3){super(_0x3e0fc3),_0x3e0fc3['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x59dda9['defineComponents'](_0x59dda9),this['_defineLocale']();}['_defineLocale'](){const _0x2a9984=this['editor']['config']['get']('uploadcare.locale'),_0x1f9f2d=this['editor']['locale']['contentLanguage'];_0x2a9984&&_0x59dda9['defineLocale'](_0x1f9f2d,_0x2a9984);}}class ii extends _0x455cc3{constructor(_0x57cb3d){super(_0x57cb3d);const t=_0x57cb3d['t'],_0x16e38c=this['bindTemplate'],_0x1d0847=new _0x311818();_0x1d0847['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':[_0x1d0847,{'text':_0x16e38c['to']('imageUploadProgress',_0x1fa6e7=>t('Loading\x20image...')+'\x20('+(_0x1fa6e7||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 _0x455cc3{constructor(_0x13843b){super(_0x13843b);const t=_0x13843b['t'];this['set']('errorType',null);const _0x32b715=new _0x265a21(_0x13843b);_0x32b715['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x32b715['withText']=!0x0,_0x32b715['class']='ck-button-action',_0x32b715['on']('execute',()=>{this['fire']('retry');}),_0x32b715['bind']('isVisible')['to'](this,'errorType',_0x653e78=>'NotFound'!==_0x653e78);const _0x270492=new _0x70bb5b();_0x270492['content']=_0x2e7227,_0x270492['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x508a64=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':[_0x270492,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x508a64['to']('errorType',_0x2acb7e=>t('NotFound'!==_0x2acb7e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x32b715]},{'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 _0x455cc3{constructor(_0x2c1b8b,_0x228669){super(_0x2c1b8b);const _0x2ac838=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x228669,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2ac838['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x182ca,_0x35183a,_0x28a832){super(_0x182ca),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x182ca),this['_errorView']=new ti(_0x182ca),this['_editingView']=new ei(_0x182ca,_0x28a832),this['_focusableView']=new _0x455cc3(_0x182ca),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x35183a),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'],_0x43fa44=>{this['_addUploadcareImageEditorListeners'](_0x43fa44);});}),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'](_0xec3b74,_0x4381a1){const _0x30a824='uc-cloud-image-editor',_0x335d21=_0xec3b74['querySelector'](_0x30a824);if(_0x335d21)return _0x4381a1(_0x335d21);const _0x561cad=new MutationObserver(_0x25c06c=>{const _0x597223=_0x25c06c['filter'](_0x3b907d=>_0x3b907d['target']===_0xec3b74&&_0x3b907d['addedNodes']['length']>0x0&&_0x3b907d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x30a824);_0x597223['length']&&(_0x561cad['disconnect'](),_0x4381a1(_0x597223[0x0]['addedNodes'][0x0]));});_0x561cad['observe'](_0xec3b74,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x41917a){_0x41917a['addEventListener']('apply',_0x5499e7=>{this['fire']('apply',{'imageSrc':_0x5499e7['detail']['cdnUrl']});}),_0x41917a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4ea697(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4f31d1,_0x55c7c0,_0x2cc323){super(),this['_editor']=_0x4f31d1,this['_dialog']=_0x55c7c0,this['_imageElement']=_0x2cc323,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 _0x7d9a80=this['_imageElement'],_0x5e965c=_0x7d9a80['getAttribute']('uploadcareImageId'),_0x14dbd6=_0x7d9a80['getAttribute']('src');if(_0x5e965c)await this['_loadImageInfo'](_0x5e965c,_0x14dbd6);else{if(this['_imageCache']['has'](_0x14dbd6)){const _0x3ab546=this['_imageCache']['get'](_0x14dbd6);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3ab546['url'],this['imageDimension']=_0x3ab546['dimension'],this['imageId']=_0x3ab546['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x9ce917}=this['_editor'],t=_0x9ce917['t'],_0x42f09d=new X(_0x9ce917,this['imageStatus'],this['_attributes']);_0x42f09d['bind']('status')['to'](this,'imageStatus'),_0x42f09d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x42f09d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x42f09d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x42f09d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x54cf47,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x42f09d,'position':_0x1a4cf5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x42f09d['focus']();},'onHide':()=>{_0x42f09d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x385126=>!A(_0x385126,_0x42f09d['element'])}});}['_loadImageInfo'](_0x54f233,_0x1acbef){return j['getInfo'](_0x54f233,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1428fd=>{const {width:_0x34bb3a,height:_0x455a59}=_0x1428fd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1acbef,this['imageDimension']={'width':_0x34bb3a,'height':_0x455a59},this['imageId']=_0x54f233;})['catch'](_0x404eb5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x404eb5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x37acab,_0xa8b834){return this['_getImageAsFile'](_0x37acab)['then'](_0x2c22e2=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0xa8b834['signal'],'file':_0x2c22e2,'onProgress':_0x170f0f=>{_0x170f0f&&_0x170f0f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x170f0f['value']));}}))['then'](_0x2033b7=>{const {width:_0x53c0d0,height:_0x1fb414}=_0x2033b7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2033b7['cdnUrl'],this['imageDimension']={'width':_0x53c0d0,'height':_0x1fb414},this['imageId']=_0x2033b7['uuid'],this['imageUploadProgress']=null;const _0xcce19=_0x37acab['getAttribute']('src');this['_imageCache']['set'](_0xcce19,{'id':_0x2033b7['uuid'],'url':_0x2033b7['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x66dd02=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x66dd02['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x255712,_0x16dc0f){_0x255712['on']('apply',(_0xc276b3,_0x129afd)=>{this['_replaceImage'](_0x16dc0f,_0x129afd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x255712['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x255712['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1e310a,_0x28a593,_0x48573e){const _0x35bc8e=this['_editor'],{width:_0x1d53d0,height:_0x4c097f}=S(_0x28a593,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4d20de,imageSources:_0x576f7c}=C(_0x28a593,_0x1d53d0);_0x35bc8e['model']['change'](_0x28c614=>{if('$graveyard'===_0x1e310a['root']['rootName']){_0x35bc8e['execute']('insertImage',{'imageType':_0x1e310a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1e310a['getAttributes']()),'uploadcareImageId':_0x48573e,'src':_0x4d20de,'sources':_0x576f7c,'width':_0x1d53d0,'height':_0x4c097f}});const _0x43811b=_0x1e310a['getChildren']();_0x1e310a=_0x35bc8e['model']['document']['selection']['getSelectedElement']();for(const _0x2181ac of _0x43811b)_0x28c614['append'](_0x28c614['cloneElement'](_0x2181ac),_0x1e310a);}else _0x28c614['setSelection'](_0x1e310a,'on'),_0x35bc8e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1e310a['getAttributes']()),'uploadcareImageId':_0x48573e,'src':_0x4d20de,'sources':_0x576f7c,'width':_0x1d53d0,'height':_0x4c097f},_0x1e310a);_0x28c614['setSelection'](_0x1e310a,'on');});}async['_getImageAsFile'](_0x1c7837){const _0x211c3a=_0x4d0e52['window'],_0x43bfaf=_0x4d0e52['document']['location']['href'],_0x4a5688=new _0x211c3a['URL'](_0x1c7837['getAttribute']('src'),_0x43bfaf);if('data:'===_0x4a5688['protocol']){const _0x50bc62=_0x4a5688['href']['split'](','),_0x246027=_0x50bc62[0x0]['match'](/:(.*?);/)[0x1],_0x164eae=_0x246027['split']('/')[0x1],_0x172a70=_0x211c3a['atob'](_0x50bc62[_0x50bc62['length']-0x1]);let _0x5607a3=_0x172a70['length'];const _0x4f40e1=new _0x211c3a['Uint8Array'](_0x5607a3);for(;_0x5607a3--;)_0x4f40e1[_0x5607a3]=_0x172a70['charCodeAt'](_0x5607a3);return new _0x211c3a['File']([_0x4f40e1],'image.'+_0x164eae,{'type':_0x246027});}const _0x133a6f=_0x4a5688['href']['split']('/'),_0x4e28aa=_0x133a6f[_0x133a6f['length']-0x1],_0x107aac=_0x4e28aa['split']('.')[0x1];return _0x211c3a['fetch'](_0x4a5688['href'])['then'](_0x1fab38=>_0x1fab38['clone']()['blob']())['then'](_0x5f3113=>new _0x211c3a['File']([_0x5f3113],_0x4e28aa,{'type':'image/'+_0x107aac}));}}class Q extends _0x29ef3d{['imageEditController'];static get['requires'](){return[_0x32a6c9];}['_isEditable'];constructor(_0x29f561){super(_0x29f561),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x16e9ee){const _0x5b9d7a=z(_0x16e9ee);return _0x1f531a=>!(!_0x1f531a||!_0x1f531a['is']('element','imageBlock')&&!_0x1f531a['is']('element','imageInline'))&&(!!_0x1f531a['hasAttribute']('uploadcareImageId')||!!_0x1f531a['hasAttribute']('src')&&_0x5b9d7a(_0x1f531a['getAttribute']('src')));}(_0x29f561['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5626b9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5626b9);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x50bb8f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x50bb8f&&(_0x50bb8f['is']('element','imageBlock')||_0x50bb8f['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x32a6c9),_0x50bb8f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x29ef3d{['refresh'](){const _0x5d5372=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5d5372&&(_0x5d5372['is']('element','imageBlock')||_0x5d5372['is']('element','imageInline')));}['execute'](_0x19747c){const _0x27e80b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xbe656e=>{_0xbe656e['setAttributes'](_0x19747c,_0x27e80b),_0xbe656e['removeAttribute']('srcset',_0x27e80b),_0xbe656e['removeAttribute']('sizes',_0x27e80b);});}}class m extends _0x19716f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x58b960,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1b9244}=this;_0x1b9244['commands']['add']('uploadcareImageEdit',new Q(_0x1b9244)),_0x1b9244['commands']['add']('uploadcareImageReplace',new V(_0x1b9244));}}class g extends _0x19716f{['_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 _0x5542b0=this['editor'];_0x5542b0['ui']['componentFactory']['add']('uploadcareImageEdit',_0x102ec7=>{const _0x23e909=_0x5542b0['commands']['get']('uploadcareImageEdit'),_0x28de98=new _0x265a21(_0x102ec7),t=_0x102ec7['t'];return _0x28de98['set']({'icon':_0x54cf47,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x28de98['bind']('isEnabled')['to'](_0x23e909),_0x28de98['bind']('isOn')['to'](_0x23e909,'isActive'),this['listenTo'](_0x28de98,'execute',()=>{_0x5542b0['execute']('uploadcareImageEdit'),_0x5542b0['editing']['view']['focus']();}),_0x28de98;}),this['_initConfig']();}['_initConfig'](){const _0x2ffa99=_0x484b1f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2ffa99),this['listenTo'](this['editor'],'destroy',()=>{_0x2ffa99['remove']();});}}class et extends _0x19716f{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':_0x3b2efe=>0x1!=_0x3b2efe}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x38b681=>{const {af:{dictionary:_0x914f8e,getPluralForm:_0x1eac38}}={'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':_0x56ed45=>0x1!=_0x56ed45}};_0x38b681['af']||={'dictionary':{},'getPluralForm':null},_0x38b681['af']['dictionary']=Object['assign'](_0x38b681['af']['dictionary'],_0x914f8e),_0x38b681['af']['getPluralForm']=_0x1eac38;})(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':_0xeb48f9=>0x0==_0xeb48f9?0x0:0x1==_0xeb48f9?0x1:0x2==_0xeb48f9?0x2:_0xeb48f9%0x64>=0x3&&_0xeb48f9%0x64<=0xa?0x3:_0xeb48f9%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5987f4=>{const {ar:{dictionary:_0x58cd4e,getPluralForm:_0x385f3d}}={'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':_0x1c2d3d=>0x0==_0x1c2d3d?0x0:0x1==_0x1c2d3d?0x1:0x2==_0x1c2d3d?0x2:_0x1c2d3d%0x64>=0x3&&_0x1c2d3d%0x64<=0xa?0x3:_0x1c2d3d%0x64>=0xb?0x4:0x5}};_0x5987f4['ar']||={'dictionary':{},'getPluralForm':null},_0x5987f4['ar']['dictionary']=Object['assign'](_0x5987f4['ar']['dictionary'],_0x58cd4e),_0x5987f4['ar']['getPluralForm']=_0x385f3d;})(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':_0x1f7f3c=>0x1!=_0x1f7f3c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4b8834=>{const {ast:{dictionary:_0x248c92,getPluralForm:_0xdb47ba}}={'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':_0x1e3a74=>0x1!=_0x1e3a74}};_0x4b8834['ast']||={'dictionary':{},'getPluralForm':null},_0x4b8834['ast']['dictionary']=Object['assign'](_0x4b8834['ast']['dictionary'],_0x248c92),_0x4b8834['ast']['getPluralForm']=_0xdb47ba;})(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':_0x122f61=>0x1!=_0x122f61}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5c3575=>{const {az:{dictionary:_0x2ab44a,getPluralForm:_0x5c7671}}={'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':_0x34a8f4=>0x1!=_0x34a8f4}};_0x5c3575['az']||={'dictionary':{},'getPluralForm':null},_0x5c3575['az']['dictionary']=Object['assign'](_0x5c3575['az']['dictionary'],_0x2ab44a),_0x5c3575['az']['getPluralForm']=_0x5c7671;})(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':_0x4b47a8=>_0x4b47a8%0xa==0x1&&_0x4b47a8%0x64!=0xb?0x0:_0x4b47a8%0xa>=0x2&&_0x4b47a8%0xa<=0x4&&(_0x4b47a8%0x64<0xa||_0x4b47a8%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1374e1=>{const {be:{dictionary:_0x3b7f7c,getPluralForm:_0xf09f69}}={'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':_0x192cee=>_0x192cee%0xa==0x1&&_0x192cee%0x64!=0xb?0x0:_0x192cee%0xa>=0x2&&_0x192cee%0xa<=0x4&&(_0x192cee%0x64<0xa||_0x192cee%0x64>=0x14)?0x1:0x2}};_0x1374e1['be']||={'dictionary':{},'getPluralForm':null},_0x1374e1['be']['dictionary']=Object['assign'](_0x1374e1['be']['dictionary'],_0x3b7f7c),_0x1374e1['be']['getPluralForm']=_0xf09f69;})(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':_0x1207cf=>0x1!=_0x1207cf}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x352459=>{const {bg:{dictionary:_0x3c37a3,getPluralForm:_0x48e67f}}={'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':_0x4b4859=>0x1!=_0x4b4859}};_0x352459['bg']||={'dictionary':{},'getPluralForm':null},_0x352459['bg']['dictionary']=Object['assign'](_0x352459['bg']['dictionary'],_0x3c37a3),_0x352459['bg']['getPluralForm']=_0x48e67f;})(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':_0x495be6=>0x1!=_0x495be6}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5a7735=>{const {bn:{dictionary:_0x29095f,getPluralForm:_0x40a9e4}}={'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':_0x2d3e83=>0x1!=_0x2d3e83}};_0x5a7735['bn']||={'dictionary':{},'getPluralForm':null},_0x5a7735['bn']['dictionary']=Object['assign'](_0x5a7735['bn']['dictionary'],_0x29095f),_0x5a7735['bn']['getPluralForm']=_0x40a9e4;})(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':_0x2ac127=>_0x2ac127%0xa==0x1&&_0x2ac127%0x64!=0xb?0x0:_0x2ac127%0xa>=0x2&&_0x2ac127%0xa<=0x4&&(_0x2ac127%0x64<0xa||_0x2ac127%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x558b57=>{const {bs:{dictionary:_0x4163da,getPluralForm:_0x4599b9}}={'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':_0x5dd34d=>_0x5dd34d%0xa==0x1&&_0x5dd34d%0x64!=0xb?0x0:_0x5dd34d%0xa>=0x2&&_0x5dd34d%0xa<=0x4&&(_0x5dd34d%0x64<0xa||_0x5dd34d%0x64>=0x14)?0x1:0x2}};_0x558b57['bs']||={'dictionary':{},'getPluralForm':null},_0x558b57['bs']['dictionary']=Object['assign'](_0x558b57['bs']['dictionary'],_0x4163da),_0x558b57['bs']['getPluralForm']=_0x4599b9;})(window['CKEDITOR_TRANSLATIONS']||={});
|